dsh-motion-ui 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/DESIGN.zh-CN.md +2 -2
- package/README.md +18 -18
- package/VERIFICATION.md +10 -10
- package/client.js +1 -1
- package/lib/assets/katex.css +1 -1
- package/lib/assets/mermaid.js +2 -2
- package/lib/assets/standalone-runtime.js +3 -3
- package/lib/assets/visual.js +21 -21
- package/lib/build-info.js +1 -1
- package/lib/catalog.js +94 -94
- package/lib/mechanism-css.js +1 -1
- package/lib/mechanism-geometry.js +2 -2
- package/lib/mechanism-scenes.js +1 -1
- package/lib/protocol.js +352 -352
- package/lib/scene-entry.js +1 -1
- package/lib/third-party/anatomy-NOTICE.md +1 -1
- package/lib/third-party/dsh-genui-LICENSE.txt +21 -21
- package/lib/third-party/lucian-uxui-LICENSE.txt +21 -21
- package/lib/ui-skill.js +29 -29
- package/lib/visual.js +1 -1
- package/package.json +8 -7
- package/skills/motion-design/upstream.json +8 -8
package/lib/assets/visual.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
window.__MotionVisualFactory=(require)=>{var module={exports:{}};var exports=module.exports;var
|
|
2
|
-
${e}`}var ap,ip,wl=kn(()=>{ap=/<script|[\s"']on[a-z]+\s*=|javascript:/i;ip=/-->(?!>)|==>|-\.->/});var kl={};Ta(kl,{assertSafeSvg:()=>yl,ensureFlowchartKind:()=>xl,renderMermaid:()=>sp,repairMermaidSource:()=>vl});async function sp(t){return(await Er("mermaid")).renderMermaid(t)}var Sl=kn(()=>{Dr();wl()});var Al={};Ta(Al,{mountScene:()=>op});async function op(t,e){return(await Er("three")).mountScene(t,e)}var Tl=kn(()=>{Dr()});var J1={};Ta(J1,{ErrorBoundary:()=>ga,FileLinkOpenContext:()=>wi,GenuiActionContext:()=>Mi,GenuiBlock:()=>
|
|
1
|
+
window.__MotionVisualFactory=(require)=>{var module={exports:{}};var exports=module.exports;var Vc=Object.create;var wn=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Yc=Object.getOwnPropertyNames;var Kc=Object.getPrototypeOf,Jc=Object.prototype.hasOwnProperty;var kn=(t,e)=>()=>(t&&(e=t(t=0)),e);var Ta=(t,e)=>{for(var r in e)wn(t,r,{get:e[r],enumerable:!0})},ks=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Yc(e))!Jc.call(t,a)&&a!==r&&wn(t,a,{get:()=>e[a],enumerable:!(n=Wc(e,a))||n.enumerable});return t};var Ss=(t,e,r)=>(r=t!=null?Vc(Kc(t)):{},ks(e||!t||!t.__esModule?wn(r,"default",{value:t,enumerable:!0}):r,t)),Xc=t=>ks(wn({},"__esModule",{value:!0}),t);function bl(t){qi=new URL(t,document.baseURI).href.replace(/\/?$/,"/")}function np(t){let e=t.replace(/-(\w)/g,(r,n)=>n.toUpperCase());return window.__GenuiAssets__?.[e]}function Oi(t){if(qi!==void 0)return new URL(t,qi).href;let r=window.__DSH_BOOT__?.entries?.find(n=>n.id===gl)?.rev;return`${rp}/${t}${r===void 0?"":`?rev=${r}`}`}function Er(t){let e=np(t);if(e!==void 0)return Promise.resolve(e);let r=`${t}.js`,n=hl.get(r);if(n!==void 0)return n;let a=new Promise((i,s)=>{let o=document.createElement("script");o.src=Oi(r),o.async=!0,o.onload=()=>{let l=window.__GenuiAssets__??{},m=t.replace(/-(\w)/g,(p,b)=>b.toUpperCase()),u=l[m];if(u===void 0){s(new Error(`genui asset '${r}' loaded but registered no '${t}' engine`));return}i(u)},o.onerror=()=>{s(new Error(`genui asset '${r}' failed to load (host asset route missing?)`))},document.head.appendChild(o)});return hl.set(r,a),a}var gl,rp,qi,hl,Dr=kn(()=>{gl="@changfenhuang/dsh-genui",rp=`/plugins/${gl}/assets`;hl=new Map});function yl(t){if(ap.test(t))throw new Error("mermaid output failed the sanitization check; refusing to render")}function vl(t){let e=/^([A-Za-z]+)/.exec(t.trim())?.[1]??"";if(e!=="graph"&&e!=="flowchart")return t;let r=t.replace(/`/g,"").replace(/<br\s*\/?>/gi," "),n=/(--|==|-\.)(?!>)[ \t]*([^-\n]|-(?!--))*?[ \t]*(-->|==>|\.->)/g,a=[],i=r.replace(n,u=>(a.push(u),`\uE000${a.length-1}\uE001`)),s=/\|([^|\n]*[\[\]][^|\n]*)\|/g,o=[];return i.replace(s,(u,p)=>{let b=p.trim();return b.includes('"')?u:(o.push(b),`\uE002${o.length-1}\uE003`)}).replace(/([\[\(])([^\[\]\(\)\{\}"'\n]*)([\]\)])/g,(u,p,b,y)=>{let k=b.trim();return k===""?u:/[\u4e00-\u9fff\u3040-\u30ff\uac00-\ud7af]/.test(k)||/\s/.test(k)?`${p}"${k}"${y}`:u}).replace(/\uE000(\d+)\uE001/g,(u,p)=>a[Number(p)]??u).replace(/\uE002(\d+)\uE003/g,(u,p)=>{let b=o[Number(p)];return b===void 0?u:`|"${b}"|`})}function xl(t){let e=t.trim(),r=/^([A-Za-z]+)/.exec(e)?.[1]??"";return r==="graph"||r==="flowchart"||!ip.test(e)?t:`graph TD
|
|
2
|
+
${e}`}var ap,ip,wl=kn(()=>{ap=/<script|[\s"']on[a-z]+\s*=|javascript:/i;ip=/-->(?!>)|==>|-\.->/});var kl={};Ta(kl,{assertSafeSvg:()=>yl,ensureFlowchartKind:()=>xl,renderMermaid:()=>sp,repairMermaidSource:()=>vl});async function sp(t){return(await Er("mermaid")).renderMermaid(t)}var Sl=kn(()=>{Dr();wl()});var Al={};Ta(Al,{mountScene:()=>op});async function op(t,e){return(await Er("three")).mountScene(t,e)}var Tl=kn(()=>{Dr()});var J1={};Ta(J1,{ErrorBoundary:()=>ga,FileLinkOpenContext:()=>wi,GenuiActionContext:()=>Mi,GenuiBlock:()=>fc,analyzeGenuiPortability:()=>Pr,buildStandaloneHtml:()=>gn,createGenuiArtifact:()=>fn,downloadGenuiArtifactHtml:()=>bs,downloadGenuiArtifactJson:()=>gs,isRenderableProcess:()=>$c,parseGenuiArtifact:()=>hn,processGenuiSpec:()=>qr,serializeGenuiArtifact:()=>bn,setGenuiAssetBase:()=>bl,setLocale:()=>Qn});module.exports=Xc(J1);var kt=require("react");var q=class t extends Error{constructor(e,r){var n="KaTeX parse error: "+e,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start,i=s.end,a===o.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=o.slice(a,i).replace(/[^]/g,"$&\u0332"),m;a>15?m="\u2026"+o.slice(a-15,a):m=o.slice(0,a);var u;i+15<o.length?u=o.slice(i,i+15)+"\u2026":u=o.slice(i),n+=m+l+u}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,t.prototype),this.position=a,a!=null&&i!=null&&(this.length=i-a),this.rawMessage=e}},_c=/([A-Z])/g,Zc=t=>t.replace(_c,"-$1").toLowerCase(),Qc={"&":"&",">":">","<":"<",'"':""","'":"'"},ed=/[&><"']/g,_e=t=>String(t).replace(ed,e=>Qc[e]),$n=t=>t.type==="ordgroup"||t.type==="color"?t.body.length===1?$n(t.body[0]):t:t.type==="font"?$n(t.body):t,td=new Set(["mathord","textord","atom"]),Ut=t=>td.has($n(t).type),rd=t=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},Oa={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 <type>"},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 <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:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},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:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",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:t=>Math.max(0,t),cli:"-s, --max-size <n>",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:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function nd(t){if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function ad(t){if(Object.prototype.hasOwnProperty.call(t,"default")&&t.default!==void 0)return t.default;var e=Array.isArray(t.type)?t.type[0]:t.type;return nd(e)}function id(t,e,r,n){var a=Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0,i=Object.prototype.hasOwnProperty.call(n,"processor")?n.processor:void 0;t[e]=a!==void 0?i?i(a):a:ad(n)}var Yr=class{constructor(e){e===void 0&&(e={}),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,e=e||{};for(var r of Object.keys(Oa)){var n=Oa[r];n&&id(this,r,e,n)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=rd(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}},zt=class{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Rt[sd[this.id]]}sub(){return Rt[od[this.id]]}fracNum(){return Rt[ld[this.id]]}fracDen(){return Rt[cd[this.id]]}cramp(){return Rt[dd[this.id]]}text(){return Rt[ud[this.id]]}isTight(){return this.size>=2}},si=0,Dn=1,Ar=2,jt=3,Kr=4,ht=5,Tr=6,nt=7,Rt=[new zt(si,0,!1),new zt(Dn,0,!0),new zt(Ar,1,!1),new zt(jt,1,!0),new zt(Kr,2,!1),new zt(ht,2,!0),new zt(Tr,3,!1),new zt(nt,3,!0)],sd=[Kr,ht,Kr,ht,Tr,nt,Tr,nt],od=[ht,ht,ht,ht,nt,nt,nt,nt],ld=[Ar,jt,Kr,ht,Tr,nt,Tr,nt],cd=[jt,jt,ht,ht,nt,nt,nt,nt],dd=[Dn,Dn,jt,jt,ht,ht,nt,nt],ud=[si,Dn,Ar,jt,Ar,jt,Ar,jt],me={DISPLAY:Rt[si],TEXT:Rt[Ar],SCRIPT:Rt[Kr],SCRIPTSCRIPT:Rt[Tr]},Fa=[{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 md(t){for(var e=0;e<Fa.length;e++)for(var r=Fa[e],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(t>=a[0]&&t<=a[1])return r.name}return null}var En=[];Fa.forEach(t=>t.blocks.forEach(e=>En.push(...e)));function oo(t){for(var e=0;e<En.length;e+=2)if(t>=En[e]&&t<=En[e+1])return!0;return!1}var Ve=t=>t+" "+t,Sr=80,pd=function(e,r){return"M95,"+(622+e+r)+`
|
|
3
3
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
4
4
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
5
5
|
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
|
|
@@ -10,7 +10,7 @@ c5.3,-9.3,12,-14,20,-14
|
|
|
10
10
|
H400000v`+(40+e)+`H845.2724
|
|
11
11
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
12
12
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
13
|
-
M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},
|
|
13
|
+
M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},fd=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119
|
|
14
14
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
15
15
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
16
16
|
l`+e/2.084+" -"+e+`
|
|
@@ -20,7 +20,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
|
|
|
20
20
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
21
21
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
22
22
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
23
|
-
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},
|
|
23
|
+
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},hd=function(e,r){return"M983 "+(10+e+r)+`
|
|
24
24
|
l`+e/3.13+" -"+e+`
|
|
25
25
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
|
|
26
26
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
@@ -29,7 +29,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
29
29
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
30
30
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
31
31
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
32
|
-
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},
|
|
32
|
+
M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},gd=function(e,r){return"M424,"+(2398+e+r)+`
|
|
33
33
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
34
34
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
35
35
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
@@ -39,18 +39,18 @@ v`+(40+e)+`H1014.6
|
|
|
39
39
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
40
40
|
c-2,6,-10,9,-24,9
|
|
41
41
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+`
|
|
42
|
-
h400000v`+(40+e)+"h-400000z"},
|
|
42
|
+
h400000v`+(40+e)+"h-400000z"},bd=function(e,r){return"M473,"+(2713+e+r)+`
|
|
43
43
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
|
|
44
44
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
|
|
45
45
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
46
46
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
47
47
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
48
48
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
49
|
-
606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},
|
|
49
|
+
606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},yd=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},vd=function(e,r,n){var a=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+`
|
|
50
50
|
H742v`+a+`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
|
|
51
51
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
52
52
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
53
|
-
219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},
|
|
53
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},xd=function(e,r,n){r=1e3*r;var a="";switch(e){case"sqrtMain":a=pd(r,Sr);break;case"sqrtSize1":a=fd(r,Sr);break;case"sqrtSize2":a=hd(r,Sr);break;case"sqrtSize3":a=gd(r,Sr);break;case"sqrtSize4":a=bd(r,Sr);break;case"sqrtTall":a=vd(r,Sr,n)}return a},wd=function(e,r){switch(e){case"\u239C":return Ve("M291 0 H417 V"+r+" H291z");case"\u2223":return Ve("M145 0 H188 V"+r+" H145z");case"\u2225":return Ve("M145 0 H188 V"+r+" H145z")+Ve("M367 0 H410 V"+r+" H367z");case"\u239F":return Ve("M457 0 H583 V"+r+" H457z");case"\u23A2":return Ve("M319 0 H403 V"+r+" H319z");case"\u23A5":return Ve("M263 0 H347 V"+r+" H263z");case"\u23AA":return Ve("M384 0 H504 V"+r+" H384z");case"\u23D0":return Ve("M312 0 H355 V"+r+" H312z");case"\u2016":return Ve("M257 0 H300 V"+r+" H257z")+Ve("M478 0 H521 V"+r+" H478z");default:return""}},As={doubleleftarrow:`M262 157
|
|
54
54
|
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
|
|
55
55
|
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
|
|
56
56
|
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
|
|
@@ -221,7 +221,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
|
|
|
221
221
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
222
222
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
223
223
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
224
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
|
|
224
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},kd=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
|
|
225
225
|
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
226
226
|
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
227
227
|
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
@@ -249,16 +249,16 @@ 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
|
|
|
249
249
|
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
|
|
250
250
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
251
251
|
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
252
|
-
-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.")}};function Sc(t){return"toText"in t}var tr=class{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(Sc(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}},Pa={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},Ac={ex:!0,em:!0,mu:!0},lo=function(e){return typeof e!="string"&&(e=e.unit),e in Pa||e in Ac||e==="ex"},qe=function(e,r){var n;if(e.unit in Pa)n=Pa[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new q("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},F=function(e){return+e.toFixed(4)+"em"},rr=function(e){return e.filter(r=>r).join(" ")},oi=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=Zd(n)+":"+a+";")}return r},co=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},uo=function(e){var r=document.createElement(e);r.className=rr(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},Tc=/[\s"'>/=\x00-\x1f]/,mo=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+_e(rr(this.classes))+'"');var n=oi(this.style);n&&(r+=' style="'+_e(n)+'"');for(var a of Object.keys(this.attributes)){if(Tc.test(a))throw new q("Invalid attribute name '"+a+"'");r+=" "+a+'="'+_e(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r},nr=class{constructor(e,r,n,a){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,this.italic=void 0,co.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uo.call(this,"span")}toMarkup(){return mo.call(this,"span")}},Nr=class{constructor(e,r,n,a){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,co.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uo.call(this,"a")}toMarkup(){return mo.call(this,"a")}},Ha=class{constructor(e,r,n){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=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+_e(this.src)+'"'+(' alt="'+_e(this.alt)+'"'),r=oi(this.style);return r&&(e+=' style="'+_e(r)+'"'),e+="'/>",e}},Nc={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},at=class{constructor(e,r,n,a,i,s,o,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=l||{},this.maxFontSize=0;var m=mc(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Nc[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=F(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=rr(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=_e(rr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+F(this.italic)+";"),n+=oi(this.style),n&&(e=!0,r+=' style="'+_e(n)+'"');var a=_e(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}},wt=class{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+_e(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}},$t=class{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",As[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+_e(this.alternate)+'"/>':'<path d="'+_e(As[this.pathName])+'"/>'}},Jr=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+_e(this.attributes[r])+'"';return e+="/>",e}};function Mc(t){if(t instanceof at)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Cc(t){if(t instanceof nr)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var zc=t=>t instanceof nr||t instanceof Nr||t instanceof tr,Gt={"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]}},Na={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]},Ts={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Rc(t,e){Gt[t]=e}function li(t,e,r){if(!Gt[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Gt[e][n];if(!a&&t[0]in Ts&&(n=Ts[t[0]].charCodeAt(0),a=Gt[e][n]),!a&&r==="text"&&oo(n)&&(a=Gt[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Ma={};function Gc(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Ma[e]){var r=Ma[e]={cssEmPerMu:Na.quad[e]/18};for(var n of Object.keys(Na))r[n]=Na[n][e]}return Ma[e]}var De={math:{},text:{}};function d(t,e,r,n,a,i){De[t][a]={font:e,group:r,replace:n},i&&n&&(De[t][n]=De[t][a])}var c="math",$="text",f="main",v="ams",Ie="accent-token",K="bin",it="close",zr="inner",re="mathord",je="op-token",mt="open",en="punct",x="rel",Vt="spacing",w="textord";d(c,f,x,"\u2261","\\equiv",!0);d(c,f,x,"\u227A","\\prec",!0);d(c,f,x,"\u227B","\\succ",!0);d(c,f,x,"\u223C","\\sim",!0);d(c,f,x,"\u22A5","\\perp");d(c,f,x,"\u2AAF","\\preceq",!0);d(c,f,x,"\u2AB0","\\succeq",!0);d(c,f,x,"\u2243","\\simeq",!0);d(c,f,x,"\u2223","\\mid",!0);d(c,f,x,"\u226A","\\ll",!0);d(c,f,x,"\u226B","\\gg",!0);d(c,f,x,"\u224D","\\asymp",!0);d(c,f,x,"\u2225","\\parallel");d(c,f,x,"\u22C8","\\bowtie",!0);d(c,f,x,"\u2323","\\smile",!0);d(c,f,x,"\u2291","\\sqsubseteq",!0);d(c,f,x,"\u2292","\\sqsupseteq",!0);d(c,f,x,"\u2250","\\doteq",!0);d(c,f,x,"\u2322","\\frown",!0);d(c,f,x,"\u220B","\\ni",!0);d(c,f,x,"\u221D","\\propto",!0);d(c,f,x,"\u22A2","\\vdash",!0);d(c,f,x,"\u22A3","\\dashv",!0);d(c,f,x,"\u220B","\\owns");d(c,f,en,".","\\ldotp");d(c,f,en,"\u22C5","\\cdotp");d(c,f,en,"\u22C5","\xB7");d($,f,w,"\u22C5","\xB7");d(c,f,w,"#","\\#");d($,f,w,"#","\\#");d(c,f,w,"&","\\&");d($,f,w,"&","\\&");d(c,f,w,"\u2135","\\aleph",!0);d(c,f,w,"\u2200","\\forall",!0);d(c,f,w,"\u210F","\\hbar",!0);d(c,f,w,"\u2203","\\exists",!0);d(c,f,w,"\u2207","\\nabla",!0);d(c,f,w,"\u266D","\\flat",!0);d(c,f,w,"\u2113","\\ell",!0);d(c,f,w,"\u266E","\\natural",!0);d(c,f,w,"\u2663","\\clubsuit",!0);d(c,f,w,"\u2118","\\wp",!0);d(c,f,w,"\u266F","\\sharp",!0);d(c,f,w,"\u2662","\\diamondsuit",!0);d(c,f,w,"\u211C","\\Re",!0);d(c,f,w,"\u2661","\\heartsuit",!0);d(c,f,w,"\u2111","\\Im",!0);d(c,f,w,"\u2660","\\spadesuit",!0);d(c,f,w,"\xA7","\\S",!0);d($,f,w,"\xA7","\\S");d(c,f,w,"\xB6","\\P",!0);d($,f,w,"\xB6","\\P");d(c,f,w,"\u2020","\\dag");d($,f,w,"\u2020","\\dag");d($,f,w,"\u2020","\\textdagger");d(c,f,w,"\u2021","\\ddag");d($,f,w,"\u2021","\\ddag");d($,f,w,"\u2021","\\textdaggerdbl");d(c,f,it,"\u23B1","\\rmoustache",!0);d(c,f,mt,"\u23B0","\\lmoustache",!0);d(c,f,it,"\u27EF","\\rgroup",!0);d(c,f,mt,"\u27EE","\\lgroup",!0);d(c,f,K,"\u2213","\\mp",!0);d(c,f,K,"\u2296","\\ominus",!0);d(c,f,K,"\u228E","\\uplus",!0);d(c,f,K,"\u2293","\\sqcap",!0);d(c,f,K,"\u2217","\\ast");d(c,f,K,"\u2294","\\sqcup",!0);d(c,f,K,"\u25EF","\\bigcirc",!0);d(c,f,K,"\u2219","\\bullet",!0);d(c,f,K,"\u2021","\\ddagger");d(c,f,K,"\u2240","\\wr",!0);d(c,f,K,"\u2A3F","\\amalg");d(c,f,K,"&","\\And");d(c,f,x,"\u27F5","\\longleftarrow",!0);d(c,f,x,"\u21D0","\\Leftarrow",!0);d(c,f,x,"\u27F8","\\Longleftarrow",!0);d(c,f,x,"\u27F6","\\longrightarrow",!0);d(c,f,x,"\u21D2","\\Rightarrow",!0);d(c,f,x,"\u27F9","\\Longrightarrow",!0);d(c,f,x,"\u2194","\\leftrightarrow",!0);d(c,f,x,"\u27F7","\\longleftrightarrow",!0);d(c,f,x,"\u21D4","\\Leftrightarrow",!0);d(c,f,x,"\u27FA","\\Longleftrightarrow",!0);d(c,f,x,"\u21A6","\\mapsto",!0);d(c,f,x,"\u27FC","\\longmapsto",!0);d(c,f,x,"\u2197","\\nearrow",!0);d(c,f,x,"\u21A9","\\hookleftarrow",!0);d(c,f,x,"\u21AA","\\hookrightarrow",!0);d(c,f,x,"\u2198","\\searrow",!0);d(c,f,x,"\u21BC","\\leftharpoonup",!0);d(c,f,x,"\u21C0","\\rightharpoonup",!0);d(c,f,x,"\u2199","\\swarrow",!0);d(c,f,x,"\u21BD","\\leftharpoondown",!0);d(c,f,x,"\u21C1","\\rightharpoondown",!0);d(c,f,x,"\u2196","\\nwarrow",!0);d(c,f,x,"\u21CC","\\rightleftharpoons",!0);d(c,v,x,"\u226E","\\nless",!0);d(c,v,x,"\uE010","\\@nleqslant");d(c,v,x,"\uE011","\\@nleqq");d(c,v,x,"\u2A87","\\lneq",!0);d(c,v,x,"\u2268","\\lneqq",!0);d(c,v,x,"\uE00C","\\@lvertneqq");d(c,v,x,"\u22E6","\\lnsim",!0);d(c,v,x,"\u2A89","\\lnapprox",!0);d(c,v,x,"\u2280","\\nprec",!0);d(c,v,x,"\u22E0","\\npreceq",!0);d(c,v,x,"\u22E8","\\precnsim",!0);d(c,v,x,"\u2AB9","\\precnapprox",!0);d(c,v,x,"\u2241","\\nsim",!0);d(c,v,x,"\uE006","\\@nshortmid");d(c,v,x,"\u2224","\\nmid",!0);d(c,v,x,"\u22AC","\\nvdash",!0);d(c,v,x,"\u22AD","\\nvDash",!0);d(c,v,x,"\u22EA","\\ntriangleleft");d(c,v,x,"\u22EC","\\ntrianglelefteq",!0);d(c,v,x,"\u228A","\\subsetneq",!0);d(c,v,x,"\uE01A","\\@varsubsetneq");d(c,v,x,"\u2ACB","\\subsetneqq",!0);d(c,v,x,"\uE017","\\@varsubsetneqq");d(c,v,x,"\u226F","\\ngtr",!0);d(c,v,x,"\uE00F","\\@ngeqslant");d(c,v,x,"\uE00E","\\@ngeqq");d(c,v,x,"\u2A88","\\gneq",!0);d(c,v,x,"\u2269","\\gneqq",!0);d(c,v,x,"\uE00D","\\@gvertneqq");d(c,v,x,"\u22E7","\\gnsim",!0);d(c,v,x,"\u2A8A","\\gnapprox",!0);d(c,v,x,"\u2281","\\nsucc",!0);d(c,v,x,"\u22E1","\\nsucceq",!0);d(c,v,x,"\u22E9","\\succnsim",!0);d(c,v,x,"\u2ABA","\\succnapprox",!0);d(c,v,x,"\u2246","\\ncong",!0);d(c,v,x,"\uE007","\\@nshortparallel");d(c,v,x,"\u2226","\\nparallel",!0);d(c,v,x,"\u22AF","\\nVDash",!0);d(c,v,x,"\u22EB","\\ntriangleright");d(c,v,x,"\u22ED","\\ntrianglerighteq",!0);d(c,v,x,"\uE018","\\@nsupseteqq");d(c,v,x,"\u228B","\\supsetneq",!0);d(c,v,x,"\uE01B","\\@varsupsetneq");d(c,v,x,"\u2ACC","\\supsetneqq",!0);d(c,v,x,"\uE019","\\@varsupsetneqq");d(c,v,x,"\u22AE","\\nVdash",!0);d(c,v,x,"\u2AB5","\\precneqq",!0);d(c,v,x,"\u2AB6","\\succneqq",!0);d(c,v,x,"\uE016","\\@nsubseteqq");d(c,v,K,"\u22B4","\\unlhd");d(c,v,K,"\u22B5","\\unrhd");d(c,v,x,"\u219A","\\nleftarrow",!0);d(c,v,x,"\u219B","\\nrightarrow",!0);d(c,v,x,"\u21CD","\\nLeftarrow",!0);d(c,v,x,"\u21CF","\\nRightarrow",!0);d(c,v,x,"\u21AE","\\nleftrightarrow",!0);d(c,v,x,"\u21CE","\\nLeftrightarrow",!0);d(c,v,x,"\u25B3","\\vartriangle");d(c,v,w,"\u210F","\\hslash");d(c,v,w,"\u25BD","\\triangledown");d(c,v,w,"\u25CA","\\lozenge");d(c,v,w,"\u24C8","\\circledS");d(c,v,w,"\xAE","\\circledR");d($,v,w,"\xAE","\\circledR");d(c,v,w,"\u2221","\\measuredangle",!0);d(c,v,w,"\u2204","\\nexists");d(c,v,w,"\u2127","\\mho");d(c,v,w,"\u2132","\\Finv",!0);d(c,v,w,"\u2141","\\Game",!0);d(c,v,w,"\u2035","\\backprime");d(c,v,w,"\u25B2","\\blacktriangle");d(c,v,w,"\u25BC","\\blacktriangledown");d(c,v,w,"\u25A0","\\blacksquare");d(c,v,w,"\u29EB","\\blacklozenge");d(c,v,w,"\u2605","\\bigstar");d(c,v,w,"\u2222","\\sphericalangle",!0);d(c,v,w,"\u2201","\\complement",!0);d(c,v,w,"\xF0","\\eth",!0);d($,f,w,"\xF0","\xF0");d(c,v,w,"\u2571","\\diagup");d(c,v,w,"\u2572","\\diagdown");d(c,v,w,"\u25A1","\\square");d(c,v,w,"\u25A1","\\Box");d(c,v,w,"\u25CA","\\Diamond");d(c,v,w,"\xA5","\\yen",!0);d($,v,w,"\xA5","\\yen",!0);d(c,v,w,"\u2713","\\checkmark",!0);d($,v,w,"\u2713","\\checkmark");d(c,v,w,"\u2136","\\beth",!0);d(c,v,w,"\u2138","\\daleth",!0);d(c,v,w,"\u2137","\\gimel",!0);d(c,v,w,"\u03DD","\\digamma",!0);d(c,v,w,"\u03F0","\\varkappa");d(c,v,mt,"\u250C","\\@ulcorner",!0);d(c,v,it,"\u2510","\\@urcorner",!0);d(c,v,mt,"\u2514","\\@llcorner",!0);d(c,v,it,"\u2518","\\@lrcorner",!0);d(c,v,x,"\u2266","\\leqq",!0);d(c,v,x,"\u2A7D","\\leqslant",!0);d(c,v,x,"\u2A95","\\eqslantless",!0);d(c,v,x,"\u2272","\\lesssim",!0);d(c,v,x,"\u2A85","\\lessapprox",!0);d(c,v,x,"\u224A","\\approxeq",!0);d(c,v,K,"\u22D6","\\lessdot");d(c,v,x,"\u22D8","\\lll",!0);d(c,v,x,"\u2276","\\lessgtr",!0);d(c,v,x,"\u22DA","\\lesseqgtr",!0);d(c,v,x,"\u2A8B","\\lesseqqgtr",!0);d(c,v,x,"\u2251","\\doteqdot");d(c,v,x,"\u2253","\\risingdotseq",!0);d(c,v,x,"\u2252","\\fallingdotseq",!0);d(c,v,x,"\u223D","\\backsim",!0);d(c,v,x,"\u22CD","\\backsimeq",!0);d(c,v,x,"\u2AC5","\\subseteqq",!0);d(c,v,x,"\u22D0","\\Subset",!0);d(c,v,x,"\u228F","\\sqsubset",!0);d(c,v,x,"\u227C","\\preccurlyeq",!0);d(c,v,x,"\u22DE","\\curlyeqprec",!0);d(c,v,x,"\u227E","\\precsim",!0);d(c,v,x,"\u2AB7","\\precapprox",!0);d(c,v,x,"\u22B2","\\vartriangleleft");d(c,v,x,"\u22B4","\\trianglelefteq");d(c,v,x,"\u22A8","\\vDash",!0);d(c,v,x,"\u22AA","\\Vvdash",!0);d(c,v,x,"\u2323","\\smallsmile");d(c,v,x,"\u2322","\\smallfrown");d(c,v,x,"\u224F","\\bumpeq",!0);d(c,v,x,"\u224E","\\Bumpeq",!0);d(c,v,x,"\u2267","\\geqq",!0);d(c,v,x,"\u2A7E","\\geqslant",!0);d(c,v,x,"\u2A96","\\eqslantgtr",!0);d(c,v,x,"\u2273","\\gtrsim",!0);d(c,v,x,"\u2A86","\\gtrapprox",!0);d(c,v,K,"\u22D7","\\gtrdot");d(c,v,x,"\u22D9","\\ggg",!0);d(c,v,x,"\u2277","\\gtrless",!0);d(c,v,x,"\u22DB","\\gtreqless",!0);d(c,v,x,"\u2A8C","\\gtreqqless",!0);d(c,v,x,"\u2256","\\eqcirc",!0);d(c,v,x,"\u2257","\\circeq",!0);d(c,v,x,"\u225C","\\triangleq",!0);d(c,v,x,"\u223C","\\thicksim");d(c,v,x,"\u2248","\\thickapprox");d(c,v,x,"\u2AC6","\\supseteqq",!0);d(c,v,x,"\u22D1","\\Supset",!0);d(c,v,x,"\u2290","\\sqsupset",!0);d(c,v,x,"\u227D","\\succcurlyeq",!0);d(c,v,x,"\u22DF","\\curlyeqsucc",!0);d(c,v,x,"\u227F","\\succsim",!0);d(c,v,x,"\u2AB8","\\succapprox",!0);d(c,v,x,"\u22B3","\\vartriangleright");d(c,v,x,"\u22B5","\\trianglerighteq");d(c,v,x,"\u22A9","\\Vdash",!0);d(c,v,x,"\u2223","\\shortmid");d(c,v,x,"\u2225","\\shortparallel");d(c,v,x,"\u226C","\\between",!0);d(c,v,x,"\u22D4","\\pitchfork",!0);d(c,v,x,"\u221D","\\varpropto");d(c,v,x,"\u25C0","\\blacktriangleleft");d(c,v,x,"\u2234","\\therefore",!0);d(c,v,x,"\u220D","\\backepsilon");d(c,v,x,"\u25B6","\\blacktriangleright");d(c,v,x,"\u2235","\\because",!0);d(c,v,x,"\u22D8","\\llless");d(c,v,x,"\u22D9","\\gggtr");d(c,v,K,"\u22B2","\\lhd");d(c,v,K,"\u22B3","\\rhd");d(c,v,x,"\u2242","\\eqsim",!0);d(c,f,x,"\u22C8","\\Join");d(c,v,x,"\u2251","\\Doteq",!0);d(c,v,K,"\u2214","\\dotplus",!0);d(c,v,K,"\u2216","\\smallsetminus");d(c,v,K,"\u22D2","\\Cap",!0);d(c,v,K,"\u22D3","\\Cup",!0);d(c,v,K,"\u2A5E","\\doublebarwedge",!0);d(c,v,K,"\u229F","\\boxminus",!0);d(c,v,K,"\u229E","\\boxplus",!0);d(c,v,K,"\u22C7","\\divideontimes",!0);d(c,v,K,"\u22C9","\\ltimes",!0);d(c,v,K,"\u22CA","\\rtimes",!0);d(c,v,K,"\u22CB","\\leftthreetimes",!0);d(c,v,K,"\u22CC","\\rightthreetimes",!0);d(c,v,K,"\u22CF","\\curlywedge",!0);d(c,v,K,"\u22CE","\\curlyvee",!0);d(c,v,K,"\u229D","\\circleddash",!0);d(c,v,K,"\u229B","\\circledast",!0);d(c,v,K,"\u22C5","\\centerdot");d(c,v,K,"\u22BA","\\intercal",!0);d(c,v,K,"\u22D2","\\doublecap");d(c,v,K,"\u22D3","\\doublecup");d(c,v,K,"\u22A0","\\boxtimes",!0);d(c,v,x,"\u21E2","\\dashrightarrow",!0);d(c,v,x,"\u21E0","\\dashleftarrow",!0);d(c,v,x,"\u21C7","\\leftleftarrows",!0);d(c,v,x,"\u21C6","\\leftrightarrows",!0);d(c,v,x,"\u21DA","\\Lleftarrow",!0);d(c,v,x,"\u219E","\\twoheadleftarrow",!0);d(c,v,x,"\u21A2","\\leftarrowtail",!0);d(c,v,x,"\u21AB","\\looparrowleft",!0);d(c,v,x,"\u21CB","\\leftrightharpoons",!0);d(c,v,x,"\u21B6","\\curvearrowleft",!0);d(c,v,x,"\u21BA","\\circlearrowleft",!0);d(c,v,x,"\u21B0","\\Lsh",!0);d(c,v,x,"\u21C8","\\upuparrows",!0);d(c,v,x,"\u21BF","\\upharpoonleft",!0);d(c,v,x,"\u21C3","\\downharpoonleft",!0);d(c,f,x,"\u22B6","\\origof",!0);d(c,f,x,"\u22B7","\\imageof",!0);d(c,v,x,"\u22B8","\\multimap",!0);d(c,v,x,"\u21AD","\\leftrightsquigarrow",!0);d(c,v,x,"\u21C9","\\rightrightarrows",!0);d(c,v,x,"\u21C4","\\rightleftarrows",!0);d(c,v,x,"\u21A0","\\twoheadrightarrow",!0);d(c,v,x,"\u21A3","\\rightarrowtail",!0);d(c,v,x,"\u21AC","\\looparrowright",!0);d(c,v,x,"\u21B7","\\curvearrowright",!0);d(c,v,x,"\u21BB","\\circlearrowright",!0);d(c,v,x,"\u21B1","\\Rsh",!0);d(c,v,x,"\u21CA","\\downdownarrows",!0);d(c,v,x,"\u21BE","\\upharpoonright",!0);d(c,v,x,"\u21C2","\\downharpoonright",!0);d(c,v,x,"\u21DD","\\rightsquigarrow",!0);d(c,v,x,"\u21DD","\\leadsto");d(c,v,x,"\u21DB","\\Rrightarrow",!0);d(c,v,x,"\u21BE","\\restriction");d(c,f,w,"\u2018","`");d(c,f,w,"$","\\$");d($,f,w,"$","\\$");d($,f,w,"$","\\textdollar");d(c,f,w,"%","\\%");d($,f,w,"%","\\%");d(c,f,w,"_","\\_");d($,f,w,"_","\\_");d($,f,w,"_","\\textunderscore");d(c,f,w,"\u2220","\\angle",!0);d(c,f,w,"\u221E","\\infty",!0);d(c,f,w,"\u2032","\\prime");d(c,f,w,"\u25B3","\\triangle");d(c,f,w,"\u0393","\\Gamma",!0);d(c,f,w,"\u0394","\\Delta",!0);d(c,f,w,"\u0398","\\Theta",!0);d(c,f,w,"\u039B","\\Lambda",!0);d(c,f,w,"\u039E","\\Xi",!0);d(c,f,w,"\u03A0","\\Pi",!0);d(c,f,w,"\u03A3","\\Sigma",!0);d(c,f,w,"\u03A5","\\Upsilon",!0);d(c,f,w,"\u03A6","\\Phi",!0);d(c,f,w,"\u03A8","\\Psi",!0);d(c,f,w,"\u03A9","\\Omega",!0);d(c,f,w,"A","\u0391");d(c,f,w,"B","\u0392");d(c,f,w,"E","\u0395");d(c,f,w,"Z","\u0396");d(c,f,w,"H","\u0397");d(c,f,w,"I","\u0399");d(c,f,w,"K","\u039A");d(c,f,w,"M","\u039C");d(c,f,w,"N","\u039D");d(c,f,w,"O","\u039F");d(c,f,w,"P","\u03A1");d(c,f,w,"T","\u03A4");d(c,f,w,"X","\u03A7");d(c,f,w,"\xAC","\\neg",!0);d(c,f,w,"\xAC","\\lnot");d(c,f,w,"\u22A4","\\top");d(c,f,w,"\u22A5","\\bot");d(c,f,w,"\u2205","\\emptyset");d(c,v,w,"\u2205","\\varnothing");d(c,f,re,"\u03B1","\\alpha",!0);d(c,f,re,"\u03B2","\\beta",!0);d(c,f,re,"\u03B3","\\gamma",!0);d(c,f,re,"\u03B4","\\delta",!0);d(c,f,re,"\u03F5","\\epsilon",!0);d(c,f,re,"\u03B6","\\zeta",!0);d(c,f,re,"\u03B7","\\eta",!0);d(c,f,re,"\u03B8","\\theta",!0);d(c,f,re,"\u03B9","\\iota",!0);d(c,f,re,"\u03BA","\\kappa",!0);d(c,f,re,"\u03BB","\\lambda",!0);d(c,f,re,"\u03BC","\\mu",!0);d(c,f,re,"\u03BD","\\nu",!0);d(c,f,re,"\u03BE","\\xi",!0);d(c,f,re,"\u03BF","\\omicron",!0);d(c,f,re,"\u03C0","\\pi",!0);d(c,f,re,"\u03C1","\\rho",!0);d(c,f,re,"\u03C3","\\sigma",!0);d(c,f,re,"\u03C4","\\tau",!0);d(c,f,re,"\u03C5","\\upsilon",!0);d(c,f,re,"\u03D5","\\phi",!0);d(c,f,re,"\u03C7","\\chi",!0);d(c,f,re,"\u03C8","\\psi",!0);d(c,f,re,"\u03C9","\\omega",!0);d(c,f,re,"\u03B5","\\varepsilon",!0);d(c,f,re,"\u03D1","\\vartheta",!0);d(c,f,re,"\u03D6","\\varpi",!0);d(c,f,re,"\u03F1","\\varrho",!0);d(c,f,re,"\u03C2","\\varsigma",!0);d(c,f,re,"\u03C6","\\varphi",!0);d(c,f,K,"\u2217","*",!0);d(c,f,K,"+","+");d(c,f,K,"\u2212","-",!0);d(c,f,K,"\u22C5","\\cdot",!0);d(c,f,K,"\u2218","\\circ",!0);d(c,f,K,"\xF7","\\div",!0);d(c,f,K,"\xB1","\\pm",!0);d(c,f,K,"\xD7","\\times",!0);d(c,f,K,"\u2229","\\cap",!0);d(c,f,K,"\u222A","\\cup",!0);d(c,f,K,"\u2216","\\setminus",!0);d(c,f,K,"\u2227","\\land");d(c,f,K,"\u2228","\\lor");d(c,f,K,"\u2227","\\wedge",!0);d(c,f,K,"\u2228","\\vee",!0);d(c,f,w,"\u221A","\\surd");d(c,f,mt,"\u27E8","\\langle",!0);d(c,f,mt,"\u2223","\\lvert");d(c,f,mt,"\u2225","\\lVert");d(c,f,it,"?","?");d(c,f,it,"!","!");d(c,f,it,"\u27E9","\\rangle",!0);d(c,f,it,"\u2223","\\rvert");d(c,f,it,"\u2225","\\rVert");d(c,f,x,"=","=");d(c,f,x,":",":");d(c,f,x,"\u2248","\\approx",!0);d(c,f,x,"\u2245","\\cong",!0);d(c,f,x,"\u2265","\\ge");d(c,f,x,"\u2265","\\geq",!0);d(c,f,x,"\u2190","\\gets");d(c,f,x,">","\\gt",!0);d(c,f,x,"\u2208","\\in",!0);d(c,f,x,"\uE020","\\@not");d(c,f,x,"\u2282","\\subset",!0);d(c,f,x,"\u2283","\\supset",!0);d(c,f,x,"\u2286","\\subseteq",!0);d(c,f,x,"\u2287","\\supseteq",!0);d(c,v,x,"\u2288","\\nsubseteq",!0);d(c,v,x,"\u2289","\\nsupseteq",!0);d(c,f,x,"\u22A8","\\models");d(c,f,x,"\u2190","\\leftarrow",!0);d(c,f,x,"\u2264","\\le");d(c,f,x,"\u2264","\\leq",!0);d(c,f,x,"<","\\lt",!0);d(c,f,x,"\u2192","\\rightarrow",!0);d(c,f,x,"\u2192","\\to");d(c,v,x,"\u2271","\\ngeq",!0);d(c,v,x,"\u2270","\\nleq",!0);d(c,f,Vt,"\xA0","\\ ");d(c,f,Vt,"\xA0","\\space");d(c,f,Vt,"\xA0","\\nobreakspace");d($,f,Vt,"\xA0","\\ ");d($,f,Vt,"\xA0"," ");d($,f,Vt,"\xA0","\\space");d($,f,Vt,"\xA0","\\nobreakspace");d(c,f,Vt,"","\\nobreak");d(c,f,Vt,"","\\allowbreak");d(c,f,en,",",",");d(c,f,en,";",";");d(c,v,K,"\u22BC","\\barwedge",!0);d(c,v,K,"\u22BB","\\veebar",!0);d(c,f,K,"\u2299","\\odot",!0);d(c,f,K,"\u2295","\\oplus",!0);d(c,f,K,"\u2297","\\otimes",!0);d(c,f,w,"\u2202","\\partial",!0);d(c,f,K,"\u2298","\\oslash",!0);d(c,v,K,"\u229A","\\circledcirc",!0);d(c,v,K,"\u22A1","\\boxdot",!0);d(c,f,K,"\u25B3","\\bigtriangleup");d(c,f,K,"\u25BD","\\bigtriangledown");d(c,f,K,"\u2020","\\dagger");d(c,f,K,"\u22C4","\\diamond");d(c,f,K,"\u22C6","\\star");d(c,f,K,"\u25C3","\\triangleleft");d(c,f,K,"\u25B9","\\triangleright");d(c,f,mt,"{","\\{");d($,f,w,"{","\\{");d($,f,w,"{","\\textbraceleft");d(c,f,it,"}","\\}");d($,f,w,"}","\\}");d($,f,w,"}","\\textbraceright");d(c,f,mt,"{","\\lbrace");d(c,f,it,"}","\\rbrace");d(c,f,mt,"[","\\lbrack",!0);d($,f,w,"[","\\lbrack",!0);d(c,f,it,"]","\\rbrack",!0);d($,f,w,"]","\\rbrack",!0);d(c,f,mt,"(","\\lparen",!0);d(c,f,it,")","\\rparen",!0);d($,f,w,"<","\\textless",!0);d($,f,w,">","\\textgreater",!0);d(c,f,mt,"\u230A","\\lfloor",!0);d(c,f,it,"\u230B","\\rfloor",!0);d(c,f,mt,"\u2308","\\lceil",!0);d(c,f,it,"\u2309","\\rceil",!0);d(c,f,w,"\\","\\backslash");d(c,f,w,"\u2223","|");d(c,f,w,"\u2223","\\vert");d($,f,w,"|","\\textbar",!0);d(c,f,w,"\u2225","\\|");d(c,f,w,"\u2225","\\Vert");d($,f,w,"\u2225","\\textbardbl");d($,f,w,"~","\\textasciitilde");d($,f,w,"\\","\\textbackslash");d($,f,w,"^","\\textasciicircum");d(c,f,x,"\u2191","\\uparrow",!0);d(c,f,x,"\u21D1","\\Uparrow",!0);d(c,f,x,"\u2193","\\downarrow",!0);d(c,f,x,"\u21D3","\\Downarrow",!0);d(c,f,x,"\u2195","\\updownarrow",!0);d(c,f,x,"\u21D5","\\Updownarrow",!0);d(c,f,je,"\u2210","\\coprod");d(c,f,je,"\u22C1","\\bigvee");d(c,f,je,"\u22C0","\\bigwedge");d(c,f,je,"\u2A04","\\biguplus");d(c,f,je,"\u22C2","\\bigcap");d(c,f,je,"\u22C3","\\bigcup");d(c,f,je,"\u222B","\\int");d(c,f,je,"\u222B","\\intop");d(c,f,je,"\u222C","\\iint");d(c,f,je,"\u222D","\\iiint");d(c,f,je,"\u220F","\\prod");d(c,f,je,"\u2211","\\sum");d(c,f,je,"\u2A02","\\bigotimes");d(c,f,je,"\u2A01","\\bigoplus");d(c,f,je,"\u2A00","\\bigodot");d(c,f,je,"\u222E","\\oint");d(c,f,je,"\u222F","\\oiint");d(c,f,je,"\u2230","\\oiiint");d(c,f,je,"\u2A06","\\bigsqcup");d(c,f,je,"\u222B","\\smallint");d($,f,zr,"\u2026","\\textellipsis");d(c,f,zr,"\u2026","\\mathellipsis");d($,f,zr,"\u2026","\\ldots",!0);d(c,f,zr,"\u2026","\\ldots",!0);d(c,f,zr,"\u22EF","\\@cdots",!0);d(c,f,zr,"\u22F1","\\ddots",!0);d(c,f,w,"\u22EE","\\varvdots");d($,f,w,"\u22EE","\\varvdots");d(c,f,Ie,"\u02CA","\\acute");d(c,f,Ie,"\u02CB","\\grave");d(c,f,Ie,"\xA8","\\ddot");d(c,f,Ie,"~","\\tilde");d(c,f,Ie,"\u02C9","\\bar");d(c,f,Ie,"\u02D8","\\breve");d(c,f,Ie,"\u02C7","\\check");d(c,f,Ie,"^","\\hat");d(c,f,Ie,"\u20D7","\\vec");d(c,f,Ie,"\u02D9","\\dot");d(c,f,Ie,"\u02DA","\\mathring");d(c,f,re,"\uE131","\\@imath");d(c,f,re,"\uE237","\\@jmath");d(c,f,w,"\u0131","\u0131");d(c,f,w,"\u0237","\u0237");d($,f,w,"\u0131","\\i",!0);d($,f,w,"\u0237","\\j",!0);d($,f,w,"\xDF","\\ss",!0);d($,f,w,"\xE6","\\ae",!0);d($,f,w,"\u0153","\\oe",!0);d($,f,w,"\xF8","\\o",!0);d($,f,w,"\xC6","\\AE",!0);d($,f,w,"\u0152","\\OE",!0);d($,f,w,"\xD8","\\O",!0);d($,f,Ie,"\u02CA","\\'");d($,f,Ie,"\u02CB","\\`");d($,f,Ie,"\u02C6","\\^");d($,f,Ie,"\u02DC","\\~");d($,f,Ie,"\u02C9","\\=");d($,f,Ie,"\u02D8","\\u");d($,f,Ie,"\u02D9","\\.");d($,f,Ie,"\xB8","\\c");d($,f,Ie,"\u02DA","\\r");d($,f,Ie,"\u02C7","\\v");d($,f,Ie,"\xA8",'\\"');d($,f,Ie,"\u02DD","\\H");d($,f,Ie,"\u25EF","\\textcircled");var po={"--":!0,"---":!0,"``":!0,"''":!0};d($,f,w,"\u2013","--",!0);d($,f,w,"\u2013","\\textendash");d($,f,w,"\u2014","---",!0);d($,f,w,"\u2014","\\textemdash");d($,f,w,"\u2018","`",!0);d($,f,w,"\u2018","\\textquoteleft");d($,f,w,"\u2019","'",!0);d($,f,w,"\u2019","\\textquoteright");d($,f,w,"\u201C","``",!0);d($,f,w,"\u201C","\\textquotedblleft");d($,f,w,"\u201D","''",!0);d($,f,w,"\u201D","\\textquotedblright");d(c,f,w,"\xB0","\\degree",!0);d($,f,w,"\xB0","\\degree");d($,f,w,"\xB0","\\textdegree",!0);d(c,f,w,"\xA3","\\pounds");d(c,f,w,"\xA3","\\mathsterling",!0);d($,f,w,"\xA3","\\pounds");d($,f,w,"\xA3","\\textsterling",!0);d(c,v,w,"\u2720","\\maltese");d($,v,w,"\u2720","\\maltese");var Ns='0123456789/@."';for(Sn=0;Sn<Ns.length;Sn++)Ca=Ns.charAt(Sn),d(c,f,w,Ca,Ca);var Ca,Sn,Ms='0123456789!@*()-=+";:?/.,';for(An=0;An<Ms.length;An++)za=Ms.charAt(An),d($,f,w,za,za);var za,An,In="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Tn=0;Tn<In.length;Tn++)jr=In.charAt(Tn),d(c,f,re,jr,jr),d($,f,w,jr,jr);var jr,Tn;d(c,v,w,"C","\u2102");d($,v,w,"C","\u2102");d(c,v,w,"H","\u210D");d($,v,w,"H","\u210D");d(c,v,w,"N","\u2115");d($,v,w,"N","\u2115");d(c,v,w,"P","\u2119");d($,v,w,"P","\u2119");d(c,v,w,"Q","\u211A");d($,v,w,"Q","\u211A");d(c,v,w,"R","\u211D");d($,v,w,"R","\u211D");d(c,v,w,"Z","\u2124");d($,v,w,"Z","\u2124");d(c,f,re,"h","\u210E");d($,f,re,"h","\u210E");var oe;for(Xe=0;Xe<In.length;Xe++)Le=In.charAt(Xe),oe=String.fromCharCode(55349,56320+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56372+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56424+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56580+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56684+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56736+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56788+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56840+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56944+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),Xe<26&&(oe=String.fromCharCode(55349,56632+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe),oe=String.fromCharCode(55349,56476+Xe),d(c,f,re,Le,oe),d($,f,w,Le,oe));var Le,Xe;oe="\u{1D55C}";d(c,f,re,"k",oe);d($,f,w,"k",oe);for(Qt=0;Qt<10;Qt++)Pt=Qt.toString(),oe=String.fromCharCode(55349,57294+Qt),d(c,f,re,Pt,oe),d($,f,w,Pt,oe),oe=String.fromCharCode(55349,57314+Qt),d(c,f,re,Pt,oe),d($,f,w,Pt,oe),oe=String.fromCharCode(55349,57324+Qt),d(c,f,re,Pt,oe),d($,f,w,Pt,oe),oe=String.fromCharCode(55349,57334+Qt),d(c,f,re,Pt,oe),d($,f,w,Pt,oe);var Pt,Qt,ja="\xD0\xDE\xFE";for(Nn=0;Nn<ja.length;Nn++)Ur=ja.charAt(Nn),d(c,f,re,Ur,Ur),d($,f,w,Ur,Ur);var Ur,Nn,Ua={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Cs={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},zs={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},$c={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},hr={mathClass:"",textClass:"",font:""},Rs={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Gs={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},$s={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Va={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Wa={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},Es={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Ya={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Ds=[Ua,Ua,Cs,Cs,zs,zs,$c,hr,hr,hr,Rs,Rs,Gs,Gs,$s,$s,Va,Va,Wa,Wa,Es,Es,hr,hr,Ya,Ya],Ec=[Ua,hr,Va,Wa,Ya],Dc=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return Ds[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return Ec[i]}else{if(n===120485||n===120486)return Ds[0];if(120486<n&&n<120782)return hr;throw new q("Unsupported character: "+t)}};function lt(t){var e=t.strict,r=t.errorCode,n=t.errorMsg,a=t.token,i=t.report,s=e;if(typeof e=="function")if(i)s=e(r,n,a);else try{s=e(r,n,a)}catch{s="error"}switch(s){case!0:case"error":if(i)throw new q("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+r+"]"),a);return!0;case!1:case"ignore":if(!i)return!1;break;case"warn":default:if(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")),!i)return!1;break}}var Fn=function(e,r,n){if(De[n][e]){var a=De[n][e].replace;a&&(e=a)}return{value:e,metrics:li(e,r,n)}},rt=function(e,r,n,a,i){var s=Fn(e,r,n),o=s.metrics;e=s.value;var l;if(o){var m=o.italic;(n==="text"||a&&a.font==="mathit")&&(m=0),l=new at(e,o.height,o.depth,m,o.skew,o.width,i)}else lt({strict:a.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+e+"' in style '"+r+"' and mode '"+n+"'",report:!0}),l=new at(e,0,0,0,0,0,i);l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var u=a.getColor();return u&&(l.style.color=u),l},di=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Fn(e,"Main-Bold",r).metrics?rt(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||De[r][e].font==="main"?rt(e,"Main-Regular",r,n,a):rt(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},Ic=function(e,r,n){return n!=="textord"&&Fn(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Pn=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,l=r.fontFamily,m=r.fontWeight,u=r.fontShape,p=a==="math"||a==="text"&&!!o,b=p?o:l,y="",k="";if(i.charCodeAt(0)===55349){var T=Dc(i);y=T.font,k=T[a+"Class"]}if(y)return rt(i,y,a,r,s.concat(k));if(b){var C,D;if(b==="boldsymbol"){var R=Ic(i,a,n);C=R.fontName,D=[R.fontClass]}else p?(C=Ka[o].fontName,D=[o]):(C=Mn(l,m,u),D=[l,m,u]);if(Fn(i,C,a).metrics)return rt(i,C,a,r,s.concat(D));if(Object.prototype.hasOwnProperty.call(po,i)&&C.slice(0,10)==="Typewriter"){for(var G=[],L=0;L<i.length;L++)G.push(rt(i[L],C,a,r,s.concat(D)));return Wt(G)}}if(n==="mathord")return rt(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var X=De[a][i]&&De[a][i].font;if(X==="ams"){var J=Mn("amsrm",m,u);return rt(i,J,a,r,s.concat("amsrm",m,u))}else if(X==="main"||!X){var ae=Mn("textrm",m,u);return rt(i,ae,a,r,s.concat(m,u))}else{var Y=Mn(X,m,u);return rt(i,Y,a,r,s.concat(Y,m,u))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Lc=(t,e)=>{if(rr(t.classes)!==rr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},fo=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof at&&n instanceof at&&Lc(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},ci=function(e){for(var r=0,n=0,a=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},I=function(e,r,n,a){var i=new nr(e,r,n,a);return ci(i),i},ar=(t,e,r,n)=>new nr(t,e,r,n),Mr=function(e,r,n){var a=I([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=F(a.height),a.maxFontSize=1,a},Bc=function(e,r,n,a){var i=new Nr(e,r,n,a);return ci(i),i},Wt=function(e){var r=new tr(e);return ci(r),r},Cr=function(e,r){return e instanceof tr?I([],[e],r):e},qc=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,l=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:a}}var m;if(e.positionType==="top"){for(var u=e.positionData,p=0;p<e.children.length;p++){var b=e.children[p];u-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}m=u}else if(e.positionType==="bottom")m=-e.positionData;else{var y=e.children[0];if(y.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")m=-y.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")m=-y.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:m}},Ce=function(e,r){for(var n=qc(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var l=a[o];if(l.type==="elem"){var m=l.elem;s=Math.max(s,m.maxFontSize,m.height)}}s+=2;var u=I(["pstrut"],[]);u.style.height=F(s);for(var p=[],b=i,y=i,k=i,T=0;T<a.length;T++){var C=a[T];if(C.type==="kern")k+=C.size;else{var D=C.elem,R=C.wrapperClasses||[],G=C.wrapperStyle||{},L=I(R,[u,D],void 0,G);L.style.top=F(-s-k-D.depth),C.marginLeft&&(L.style.marginLeft=C.marginLeft),C.marginRight&&(L.style.marginRight=C.marginRight),p.push(L),k+=D.height+D.depth}b=Math.min(b,k),y=Math.max(y,k)}var X=I(["vlist"],p);X.style.height=F(y);var J;if(b<0){var ae=I([],[]),Y=I(["vlist"],[ae]);Y.style.height=F(-b);var V=I(["vlist-s"],[new at("\u200B")]);J=[I(["vlist-r"],[X,V]),I(["vlist-r"],[Y])]}else J=[I(["vlist-r"],[X])];var Z=I(["vlist-t"],J);return J.length===2&&Z.classes.push("vlist-t2"),Z.height=y,Z.depth=-b,Z},ho=(t,e)=>{var r=I(["mspace"],[],e),n=qe(t,e);return r.style.marginRight=F(n),r},Mn=(t,e,r)=>{var n,a;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},Ka={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"}},go={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},bo=function(e,r){var n=go[e],a=n[0],i=n[1],s=n[2],o=new $t(a),l=new wt([o],{width:F(i),height:F(s),style:"width:"+F(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),m=ar(["katex-overlay"],[l],r);return m.height=s,m.style.height=F(s),m.style.width=F(i),m},Be={number:3,unit:"mu"},fr={number:4,unit:"mu"},Ht={number:5,unit:"mu"},Oc={mord:{mop:Be,mbin:fr,mrel:Ht,minner:Be},mop:{mord:Be,mop:Be,mrel:Ht,minner:Be},mbin:{mord:fr,mop:fr,mopen:fr,minner:fr},mrel:{mord:Ht,mop:Ht,mopen:Ht,minner:Ht},mopen:{},mclose:{mop:Be,mbin:fr,mrel:Ht,minner:Be},mpunct:{mord:Be,mop:Be,mrel:Ht,mopen:Be,mclose:Be,mpunct:Be,minner:Be},minner:{mord:Be,mop:Be,mbin:fr,mrel:Ht,mopen:Be,mpunct:Be,minner:Be}},Fc={mord:{mop:Be},mop:{mord:Be,mop:Be},mbin:{},mrel:{},mopen:{},mclose:{mop:Be},mpunct:{},minner:{mop:Be}},yo={},Xr={},_r={};function W(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)yo[r[i]]=t;e&&(n&&(Xr[e]=n),a&&(_r[e]=a))}function gr(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(Xr[e]=r),n&&(_r[e]=n)}var Zr=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},He=function(e){return e.type==="ordgroup"?e.body:[e]},Pc=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Hc=new Set(["rightmost","mrel","mclose","mpunct"]),jc={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT},Uc={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},We=function(e,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<e.length;s++){var o=Ae(e[s],r);if(o instanceof tr){var l=o.children;i.push(...l)}else i.push(o)}if(fo(i),!n)return i;var m=r;if(e.length===1){var u=e[0];u.type==="sizing"?m=r.havingSize(u.size):u.type==="styling"&&(m=r.havingStyle(jc[u.style]))}var p=I([a[0]||"leftmost"],[],r),b=I([a[1]||"rightmost"],[],r),y=n==="root";return Ja(i,(k,T)=>{var C=T.classes[0],D=k.classes[0];C==="mbin"&&Hc.has(D)?T.classes[0]="mord":D==="mbin"&&Pc.has(C)&&(k.classes[0]="mord")},{node:p},b,y),Ja(i,(k,T)=>{var C,D,R=_a(T),G=_a(k),L=R&&G?k.hasClass("mtight")?(C=Fc[R])==null?void 0:C[G]:(D=Oc[R])==null?void 0:D[G]:null;if(L)return ho(L,m)},{node:p},b,y),i},Ja=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],l=vo(o);if(l){Ja(l.children,r,n,null,i);continue}var m=!o.hasClass("mspace");if(m){var u=r(o,n.node);u&&(n.insertAfter?n.insertAfter(u):(e.unshift(u),s++))}m?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=I(["leftmost"])),n.insertAfter=(p=>b=>{e.splice(p+1,0,b),s++})(s)}a&&e.pop()},vo=function(e){return e instanceof tr||e instanceof Nr||e instanceof nr&&e.hasClass("enclosing")?e:null},Xa=function(e,r){var n=vo(e);if(n){var a=n.children;if(a.length){if(r==="right")return Xa(a[a.length-1],"right");if(r==="left")return Xa(a[0],"left")}}return e},_a=function(e,r){if(!e)return null;r&&(e=Xa(e,r));var n=e.classes[0];return Uc[n]||null},Qr=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return I(r.concat(n))},Ae=function(e,r,n){if(!e)return I();if(Xr[e.type]){var a=Xr[e.type](e,r);if(n&&r.size!==n.size){a=I(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new q("Got group of unknown type: '"+e.type+"'")};function Cn(t,e){var r=I(["katex-base"],t,e),n=I(["katex-strut"]);return n.style.height=F(r.height+r.depth),r.depth&&(n.style.verticalAlign=F(-r.depth)),r.children.unshift(n),r}function Za(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=We(t,e,"root"),a;n.length===2&&n[1].hasClass("katex-tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var l=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("katex-newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(l=!0);l||(i.push(Cn(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(Cn(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(Cn(s,e));var m;r?(m=Cn(We(r,e,!0),e),m.classes=["katex-tag"],i.push(m)):a&&i.push(a);var u=I(["katex-html"],i);if(u.setAttribute("aria-hidden","true"),m){var p=m.children[0];p.style.height=F(u.height+u.depth),u.depth&&(p.style.verticalAlign=F(-u.depth))}return u}function xo(t){return new tr(t)}var O=class{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e.setAttribute(n,a)}this.classes.length>0&&(e.className=rr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Pe&&this.children[i+1]instanceof Pe){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Pe;)s+=this.children[++i].toText();e.appendChild(new Pe(s).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e="<"+this.type;for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e+=" "+n+'="',e+=_e(a),e+='"'}this.classes.length>0&&(e+=' class ="'+_e(rr(this.classes))+'"'),e+=">";for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}},Pe=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return _e(this.toText())}toText(){return this.text}},Ln=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",F(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+F(this.width)+'"/>'}toText(){return this.character?this.character:" "}},Vc=new Set(["\\imath","\\jmath"]),Wc=new Set(["mrow","mtable"]),gt=function(e,r,n){var a,i;return De[r][e]&&De[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(po,e)&&((n==null||(a=n.fontFamily)==null?void 0:a.slice(4,6))==="tt"||(n==null||(i=n.font)==null?void 0:i.slice(4,6))==="tt"))&&(e=De[r][e].replace),new Pe(e)},ui=function(e){return e.length===1?e[0]:new O("mrow",e)},Yc={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},mi=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,a=Yc[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(Vc.has(i))return null;if(De[n][i]){var s=De[n][i].replace;s&&(i=s)}var o=Ka[r].fontName;return li(i,o,n)?Ka[r].variant:null};function Ra(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Pe&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof Pe&&r.text===","}else return!1}var pt=function(e,r,n){if(e.length===1){var a=ze(e[0],r);return n&&a instanceof O&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<e.length;o++){var l=ze(e[o],r);if(l instanceof O&&s instanceof O){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(Ra(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&Ra(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||Ra(s))){var m=l.children[0];m instanceof O&&m.type==="mn"&&(m.children=[...s.children,...m.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var u=s.children[0];if(u instanceof Pe&&u.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var p=l.children[0];p instanceof Pe&&p.text.length>0&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),i.pop())}}}i.push(l),s=l}return i},ir=function(e,r,n){return ui(pt(e,r,n))},ze=function(e,r){if(!e)return new O("mrow");if(_r[e.type])return _r[e.type](e,r);throw new q("Got group of unknown type: '"+e.type+"'")};function Is(t,e,r,n,a){var i=pt(t,r),s;i.length===1&&i[0]instanceof O&&Wc.has(i[0].type)?s=i[0]:s=new O("mrow",i);var o=new O("annotation",[new Pe(e)]);o.setAttribute("encoding","application/x-tex");var l=new O("semantics",[s,o]),m=new O("math",[l]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&m.setAttribute("display","block");var u=a?"katex":"katex-mathml";return I([u],[m])}var Kc=[[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]],Ls=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Bs=function(e,r){return r.size<2?e:Kc[e-1][r.size-1]},Bn=class t{constructor(e){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.strict=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ls[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){var r={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,strict:this.strict};return Object.assign(r,e),new t(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Bs(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ls[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Bs(t.BASESIZE,e);return this.size===r&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["katex-sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Gc(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Bn.BASESIZE=6;var wo=t=>new Bn({style:t.displayMode?me.DISPLAY:me.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),ko=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=I(n,[e])}return e},Jc=function(e,r,n){var a=wo(n),i;if(n.output==="mathml")return Is(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=Za(e,a);i=I(["katex"],[s])}else{var o=Is(e,r,a,n.displayMode,!1),l=Za(e,a);i=I(["katex"],[o,l])}return ko(i,n)},Xc=function(e,r){var n=wo(r),a=Za(e,n),i=I(["katex"],[a]);return ko(i,r)},_c={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Hn=function(e){var r=new O("mo",[new Pe(_c[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Zc={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},Qc=new Set(["widehat","widecheck","widetilde","utilde"]),jn=function(e,r){function n(){var l=4e5,m=e.label.slice(1);if(Qc.has(m)&&"base"in e){var u=e.base.type==="ordgroup"?e.base.body.length:1,p,b,y;if(u>5)m==="widehat"||m==="widecheck"?(p=420,l=2364,y=.42,b=m+"4"):(p=312,l=2340,y=.34,b="tilde4");else{var k=[1,1,2,2,3,3][u];m==="widehat"||m==="widecheck"?(l=[0,1062,2364,2364,2364][k],p=[0,239,300,360,420][k],y=[0,.24,.3,.3,.36,.42][k],b=m+k):(l=[0,600,1033,2339,2340][k],p=[0,260,286,306,312][k],y=[0,.26,.286,.3,.306,.34][k],b="tilde"+k)}var T=new $t(b),C=new wt([T],{width:"100%",height:F(y),viewBox:"0 0 "+l+" "+p,preserveAspectRatio:"none"});return{span:ar([],[C],r),minWidth:0,height:y}}else{var D=[],R=Zc[m];if(!R)throw new Error('No SVG data for "'+m+'".');var G=R[0],L=R[1],X=R[2],J=X/1e3,ae=G.length,Y,V;if(ae===1){if(R.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+m+'".');Y=["hide-tail"],V=[R[3]]}else if(ae===2)Y=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(ae===3)Y=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
253
|
-
`+ae+" children.");for(var Z=0;Z<ae;Z++){var Q=new $t(G[Z]),te=new wt([Q],{width:"400em",height:F(J),viewBox:"0 0 "+l+" "+X,preserveAspectRatio:V[Z]+" slice"}),fe=ar([Y[Z]],[te],r);if(ae===1)return{span:fe,minWidth:L,height:J};fe.style.height=F(J),D.push(fe)}return{span:I(["katex-stretchy"],D,r),minWidth:L,height:J}}}var a=n(),i=a.span,s=a.minWidth,o=a.height;return i.height=o,i.style.height=F(o),s>0&&(i.style.minWidth=F(s)),i},eu=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=I(["katex-stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var m=[];/^[bx]cancel$/.test(r)&&m.push(new Jr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&m.push(new Jr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new wt(m,{width:"100%",height:F(o)});s=ar([],[u],i)}return s.height=o,s.style.height=F(o),s},tu=["bin","close","inner","open","punct","rel"],ru=["accent-token","mathord","op-token","spacing","textord"],nu=new Set(tu),au=new Set(ru);function iu(t){return nu.has(t)}function be(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Un(t){var e=Vn(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Vn(t){return t.type==="atom"||au.has(t.type)?t:null}function pi(t,e,r){var n="";for(var a of t.body)if(a.type==="textord")n+=a.text;else if(r&&a.type==="spacing"&&a.text===" ")n+=" ";else throw new q(e,t);return n}var So=t=>{if(t instanceof at)return t;if(zc(t)&&t.children.length===1)return So(t.children[0])},Ao=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=be(t.base,"accent"),r=n.base,t.base=r,a=Cc(Ae(t,e)),t.base=n):(n=be(t,"accent"),r=n.base);var i=Ae(r,e.havingCrampedStyle()),s=n.isShifty&&Ut(r),o=0;if(s){var l,m;o=(l=(m=So(i))==null?void 0:m.skew)!=null?l:0}var u=n.label==="\\c",p=u?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),b;if(n.isStretchy)b=jn(n,e),b=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+F(2*o)+")",marginLeft:F(2*o)}:void 0}]});else{var y,k;n.label==="\\vec"?(y=bo("vec",e),k=go.vec[1]):(y=Pn({type:"textord",mode:n.mode,text:n.label},e),y=Mc(y),y.italic=0,k=y.width,u&&(p+=y.depth)),b=I(["accent-body"],[y]);var T=n.label==="\\textcircled";T&&(b.classes.push("accent-full"),p=i.height);var C=o;T||(C-=k/2),b.style.left=F(C),n.label==="\\textcircled"&&(b.style.top=".2em"),b=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-p},{type:"elem",elem:b}]})}var D=I(["mord","katex-accent"],[b],e);return a?(a.children[0]=D,a.height=Math.max(D.height,a.height),a.classes[0]="mord",a):D},su=(t,e)=>{var r=t.isStretchy?Hn(t.label):new O("mo",[gt(t.label,t.mode)]),n=new O("mover",[ze(t.base,e),r]);return n.setAttribute("accent","true"),n},ou=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));W({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"],numArgs:1,handler:(t,e)=>{var r=Zr(e[0]),n=!ou.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Ao,mathmlBuilder:su});W({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(lt({strict:t.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+t.funcName+" works only in text mode",report:!0}),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});W({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Ae(t.base,e),n=jn(t,e),a=t.label==="\\utilde"?.12:0,i=Ce({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return I(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Hn(t.label),n=new O("munder",[ze(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var zn=t=>{var e=new O("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};W({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"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=Cr(Ae(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=Cr(Ae(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=jn(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,m=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(m-=a.depth);var u;if(s){var p=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;u=Ce({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:p}]})}else u=Ce({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return I(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var r=Hn(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=zn(ze(t.body,e));if(t.below){var i=zn(ze(t.below,e));n=new O("munderover",[r,i,a])}else n=new O("mover",[r,a])}else if(t.below){var s=zn(ze(t.below,e));n=new O("munder",[r,s])}else n=zn(),n=new O("mover",[r,n]);return n}});function lu(t,e){var r=We(t.body,e,!0);return I([t.mclass],r,e)}function du(t,e){var r,n=pt(t.body,e);return t.mclass==="minner"?r=new O("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new O("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new O("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}W({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:He(a),isCharacterBox:Ut(a)}},htmlBuilder:lu,mathmlBuilder:du});var Wn=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};W({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:Wn(e[0]),body:He(e[1]),isCharacterBox:Ut(e[1])}}});W({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,n=t.funcName,a=e[1],i=e[0],s;n!=="\\stackrel"?s=Wn(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:He(a)},l=n==="\\underset"?{type:"supsub",mode:i.mode,base:o,sub:i}:{type:"supsub",mode:i.mode,base:o,sup:i};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:Ut(l)}}});W({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:Wn(e[0]),body:He(e[0])}},htmlBuilder(t,e){var r=We(t.body,e,!0),n=I([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=pt(t.body,e),n=new O("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var cu={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},qs=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Os=t=>t.type==="textord"&&t.text==="@",uu=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function mu(t,e,r){var n=cu[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function pu(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new q("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],a=[n],i=0;i<e.length;i++){for(var s=e[i],o=qs(),l=0;l<s.length;l++)if(!Os(s[l]))o.body.push(s[l]);else{n.push(o),l+=1;var m=Un(s[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(m))if("<>AV".includes(m))for(var p=0;p<2;p++){for(var b=!0,y=l+1;y<s.length;y++){if(uu(s[y],m)){b=!1,l=y;break}if(Os(s[y]))throw new q("Missing a "+m+" character to complete a CD arrow.",s[y]);u[p].body.push(s[y])}if(b)throw new q("Missing a "+m+" character to complete a CD arrow.",s[l])}else throw new q('Expected one of "<>AV=|." after @',s[l]);var k=mu(m,u,t),T={type:"styling",body:[k],mode:"math",style:"display",resetFont:!0};n.push(T),o=qs()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var C=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}W({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=Cr(Ae(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=F(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new O("mrow",[ze(t.label,e)]);return r=new O("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new O("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});W({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=Cr(Ae(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new O("mrow",[ze(t.fragment,e)])}});W({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=be(e[0],"ordgroup"),a=pi(n,"\\@char has non-numeric argument"),i=parseInt(a),s;if(isNaN(i))throw new q("\\@char has non-numeric argument "+a);if(i<0||i>1114111)throw new q("\\@char with invalid code point "+a);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:"textord",mode:r.mode,text:s}}});var fu=(t,e)=>{var r=We(t.body,e.withColor(t.color),!1);return Wt(r)},hu=(t,e)=>{var r=pt(t.body,e.withColor(t.color)),n=new O("mstyle",r);return n.setAttribute("mathcolor",t.color),n};W({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,n=be(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:He(a)}},htmlBuilder:fu,mathmlBuilder:hu});W({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,n=t.breakOnTokenText,a=be(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}}});W({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=e.gullet.future().text==="["?e.parseSizeGroup(!0):null,n=!e.settings.displayMode||!lt({strict:e.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:e.mode,newLine:n,size:r&&be(r,"size").value}},htmlBuilder(t,e){var r=I(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=F(qe(t.size,e)))),r},mathmlBuilder(t,e){var r=new O("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",F(qe(t.size,e)))),r}});var Qa={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},To=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new q("Expected a control sequence",t);return e},gu=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},No=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};W({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var n=e.fetch();if(Qa[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Qa[n.text]),be(e.parseFunction(),"internal");throw new q("Invalid token after macro prefix",n)}});W({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new q("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new q('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new q('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new q("Expected a macro definition");o[i].push(n.text)}var l=e.gullet.consumeArg(),m=l.tokens;return s&&m.unshift(s),(r==="\\edef"||r==="\\xdef")&&(m=e.gullet.expandTokens(m),m.reverse()),e.gullet.macros.set(a,{tokens:m,numArgs:i,delimiters:o},r===Qa[r]),{type:"internal",mode:e.mode}}});W({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=To(e.gullet.popToken());e.gullet.consumeSpaces();var a=gu(e);return No(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});W({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=To(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return No(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var Vr=function(e,r,n){var a=De.math[e]&&De.math[e].replace,i=li(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},fi=function(e,r,n,a){var i=n.havingBaseStyle(r),s=I(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},Mo=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=F(i),e.height-=i,e.depth+=i},bu=function(e,r,n,a,i,s){var o=rt(e,"Main-Regular",i,a),l=fi(o,r,a,s);return n&&Mo(l,a,r),l},yu=function(e,r,n,a){return rt(e,"Size"+r+"-Regular",n,a)},Co=function(e,r,n,a,i,s){var o=yu(e,r,i,a),l=fi(I(["delimsizing","size"+r],[o],a),me.TEXT,a,s);return n&&Mo(l,a,me.TEXT),l},Ga=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=I(["delimsizinginner",i],[I([],[rt(e,r,n,a)])]);return{type:"elem",elem:s}},$a=function(e,r,n){var a=Gt["Size4-Regular"][e.charCodeAt(0)]?Gt["Size4-Regular"][e.charCodeAt(0)][4]:Gt["Size1-Regular"][e.charCodeAt(0)][4],i=new $t("inner",wc(e,Math.round(1e3*r))),s=new wt([i],{width:F(a),height:F(r),style:"width:"+F(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=ar([],[s],n);return o.height=r,o.style.height=F(r),o.style.width=F(a),{type:"elem",elem:o}},ei=.008,Rn={type:"kern",size:-1*ei},vu=new Set(["|","\\lvert","\\rvert","\\vert"]),xu=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),zo=function(e,r,n,a,i,s){var o,l,m,u,p="",b=0;o=m=u=e,l=null;var y="Size1-Regular";e==="\\uparrow"?m=u="\u23D0":e==="\\Uparrow"?m=u="\u2016":e==="\\downarrow"?o=m="\u23D0":e==="\\Downarrow"?o=m="\u2016":e==="\\updownarrow"?(o="\\uparrow",m="\u23D0",u="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",m="\u2016",u="\\Downarrow"):vu.has(e)?(m="\u2223",p="vert",b=333):xu.has(e)?(m="\u2225",p="doublevert",b=556):e==="["||e==="\\lbrack"?(o="\u23A1",m="\u23A2",u="\u23A3",y="Size4-Regular",p="lbrack",b=667):e==="]"||e==="\\rbrack"?(o="\u23A4",m="\u23A5",u="\u23A6",y="Size4-Regular",p="rbrack",b=667):e==="\\lfloor"||e==="\u230A"?(m=o="\u23A2",u="\u23A3",y="Size4-Regular",p="lfloor",b=667):e==="\\lceil"||e==="\u2308"?(o="\u23A1",m=u="\u23A2",y="Size4-Regular",p="lceil",b=667):e==="\\rfloor"||e==="\u230B"?(m=o="\u23A5",u="\u23A6",y="Size4-Regular",p="rfloor",b=667):e==="\\rceil"||e==="\u2309"?(o="\u23A4",m=u="\u23A5",y="Size4-Regular",p="rceil",b=667):e==="("||e==="\\lparen"?(o="\u239B",m="\u239C",u="\u239D",y="Size4-Regular",p="lparen",b=875):e===")"||e==="\\rparen"?(o="\u239E",m="\u239F",u="\u23A0",y="Size4-Regular",p="rparen",b=875):e==="\\{"||e==="\\lbrace"?(o="\u23A7",l="\u23A8",u="\u23A9",m="\u23AA",y="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="\u23AB",l="\u23AC",u="\u23AD",m="\u23AA",y="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(o="\u23A7",u="\u23A9",m="\u23AA",y="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(o="\u23AB",u="\u23AD",m="\u23AA",y="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(o="\u23A7",u="\u23AD",m="\u23AA",y="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(o="\u23AB",u="\u23A9",m="\u23AA",y="Size4-Regular");var k=Vr(o,y,i),T=k.height+k.depth,C=Vr(m,y,i),D=C.height+C.depth,R=Vr(u,y,i),G=R.height+R.depth,L=0,X=1;if(l!==null){var J=Vr(l,y,i);L=J.height+J.depth,X=2}var ae=T+G+L,Y=Math.max(0,Math.ceil((r-ae)/(X*D))),V=ae+Y*X*D,Z=a.fontMetrics().axisHeight;n&&(Z*=a.sizeMultiplier);var Q=V/2-Z,te=[];if(p.length>0){var fe=V-T-G,he=Math.round(V*1e3),ye=kc(p,Math.round(fe*1e3)),M=new $t(p,ye),j=F(b/1e3),H=F(he/1e3),ee=new wt([M],{width:j,height:H,viewBox:"0 0 "+b+" "+he}),ie=ar([],[ee],a);ie.height=he/1e3,ie.style.width=j,ie.style.height=H,te.push({type:"elem",elem:ie})}else{if(te.push(Ga(u,y,i,a)),te.push(Rn),l===null){var Se=V-T-G+2*ei;te.push($a(m,Se,a))}else{var Fe=(V-T-G-L)/2+2*ei;te.push($a(m,Fe,a)),te.push(Rn),te.push(Ga(l,y,i,a)),te.push(Rn),te.push($a(m,Fe,a))}te.push(Rn),te.push(Ga(o,y,i,a))}var Me=a.havingBaseStyle(me.TEXT),ct=Ce({positionType:"bottom",positionData:Q,children:te});return fi(I(["delimsizing","mult"],[ct],Me),me.TEXT,a,s)},Ea=80,Da=.08,Ia=function(e,r,n,a,i){var s=xc(e,a,n),o=new $t(e,s),l=new wt([o],{width:"400em",height:F(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return ar(["hide-tail"],[l],i)},wu=function(e,r){var n=r.havingBaseSizing(),a=Do("\\surd",e*n.sizeMultiplier,Eo,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,m,u,p;return a.type==="small"?(u=1e3+1e3*s+Ea,e<1?i=1:e<1.4&&(i=.7),l=(1+s+Da)/i,m=(1+s)/i,o=Ia("sqrtMain",l,u,s,r),o.style.minWidth="0.853em",p=.833/i):a.type==="large"?(u=(1e3+Ea)*Wr[a.size],m=(Wr[a.size]+s)/i,l=(Wr[a.size]+s+Da)/i,o=Ia("sqrtSize"+a.size,l,u,s,r),o.style.minWidth="1.02em",p=1/i):(l=e+s+Da,m=e+s,u=Math.floor(1e3*e+s)+Ea,o=Ia("sqrtTall",l,u,s,r),o.style.minWidth="0.742em",p=1.056),o.height=m,o.style.height=F(l),{span:o,advanceWidth:p,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},Ro=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),ku=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),Go=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Wr=[0,1.2,1.8,2.4,3],$o=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Ro.has(e)||Go.has(e))return Co(e,r,!1,n,a,i);if(ku.has(e))return zo(e,Wr[r],!1,n,a,i);throw new q("Illegal delimiter: '"+e+"'")},Su=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Au=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"stack"}],Eo=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Tu=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Do=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var l=Vr(e,Tu(o),"math"),m=l.height+l.depth;if(o.type==="small"){var u=a.havingBaseStyle(o.style);m*=u.sizeMultiplier}if(m>r)return o}return n[n.length-1]},ti=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var o;Go.has(e)?o=Su:Ro.has(e)?o=Eo:o=Au;var l=Do(e,r,o,a);return l.type==="small"?bu(e,l.style,n,a,i,s):l.type==="large"?Co(e,l.size,n,a,i,s):zo(e,r,n,a,i,s)},La=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,m=5/a.fontMetrics().ptPerEm,u=Math.max(r-o,n+o),p=Math.max(u/500*l,2*u-m);return ti(e,p,!0,a,i,s)},Fs={"\\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}},Nu=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Ps(t){return"isMiddle"in t}function Yn(t,e){var r=Vn(t);if(r&&Nu.has(r.text))return r;throw r?new q("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new q("Invalid delimiter type '"+t.type+"'",t)}W({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=Yn(Zr(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:Fs[t.funcName].size,mclass:Fs[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?I([t.mclass]):$o(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(gt(t.delim,t.mode));var r=new O("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=F(Wr[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Hs(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}W({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new q("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Yn(e[0],t).text,color:r}}});W({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Yn(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=be(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{Hs(t);for(var r=We(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++){var o=r[s];Ps(o)?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var l;if(t.left==="."?l=Qr(e,["mopen"]):l=La(t.left,n,a,e,t.mode,["mopen"]),r.unshift(l),i)for(var m=1;m<r.length;m++){var u=r[m];if(Ps(u)){var p=u.isMiddle;r[m]=La(p.delim,n,a,p.options,t.mode,[])}}var b;if(t.right===".")b=Qr(e,["mclose"]);else{var y=t.rightColor?e.withColor(t.rightColor):e;b=La(t.right,n,a,y,t.mode,["mclose"])}return r.push(b),I(["minner"],r,e)},mathmlBuilder:(t,e)=>{Hs(t);var r=pt(t.body,e);if(t.left!=="."){var n=new O("mo",[gt(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new O("mo",[gt(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return ui(r)}});W({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Yn(e[0],t);if(!t.parser.leftrightDepth)throw new q("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=Qr(e,[]):(r=$o(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?gt("|","text"):gt(t.delim,t.mode),n=new O("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Mu=(t,e)=>{var r=Cr(Ae(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Ut(t.body);if(n==="sout")i=I(["katex-stretchy","katex-sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=qe({number:.6,unit:"pt"},e),m=qe({number:.35,unit:"ex"},e),u=e.havingBaseSizing();a=a/u.sizeMultiplier;var p=r.height+r.depth+l+m;r.style.paddingLeft=F(p/2+l);var b=Math.floor(1e3*p*a),y=yc(b),k=new wt([new $t("phase",y)],{width:"400em",height:F(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});i=ar(["hide-tail"],[k],e),i.style.height=F(p),s=r.depth+l+m}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var T,C,D=0;/box/.test(n)?(D=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),T=e.fontMetrics().fboxsep+(n==="colorbox"?0:D),C=T):n==="angl"?(D=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),T=4*D,C=Math.max(0,.25-r.depth)):(T=o?.2:0,C=T),i=eu(r,n,T,C,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=F(D)):n==="angl"&&D!==.049&&(i.style.borderTopWidth=F(D),i.style.borderRightWidth=F(D)),s=r.depth+C,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var R;if(t.backgroundColor)R=Ce({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var G=/cancel|phase/.test(n)?["svg-align"]:[];R=Ce({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:G}]})}return/cancel/.test(n)&&(R.height=r.height,R.depth=r.depth),/cancel/.test(n)&&!o?I(["mord","cancel-lap"],[R],e):I(["mord"],[R],e)},Cu=(t,e)=>{var r,n=new O(t.label.includes("colorbox")?"mpadded":"menclose",[ze(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+F(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};W({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=be(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Mu,mathmlBuilder:Cu});W({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=be(e[0],"color-token").color,s=be(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}}});W({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});W({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});W({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName;r.mode==="math"&<({strict:r.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});W({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Io={};function Et(t){for(var e=t.type,r=t.names,n=t.props,a=t.handler,i=t.htmlBuilder,s=t.mathmlBuilder,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)Io[r[l]]=o;i&&(Xr[e]=i),s&&(_r[e]=s)}var Lo={};function h(t,e){Lo[t]=e}var ot=class t{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new t(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}},ut=class t{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new t(r,ot.range(this,e))}};function js(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var Kn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new q("{"+t.envName+"} can be used only in display mode.")},zu=new Set(["gather","gather*"]);function hi(t){if(!t.includes("ed"))return!t.includes("*")}function sr(t,e,r){var n=e.hskipBeforeAndAfter,a=e.addJot,i=e.cols,s=e.arraystretch,o=e.colSeparationType,l=e.autoTag,m=e.singleRow,u=e.emptySingleRow,p=e.maxNumCols,b=e.leqno;if(t.gullet.beginGroup(),m||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var y=t.gullet.expandMacroAsText("\\arraystretch");if(y==null)s=1;else if(s=parseFloat(y),!s||s<0)throw new q("Invalid \\arraystretch: "+y)}t.gullet.beginGroup();var k=[],T=[k],C=[],D=[],R=l!=null?[]:void 0;function G(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function L(){R&&(t.gullet.macros.get("\\df@tag")?(R.push(t.subparse([new ut("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):R.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(G(),D.push(js(t));;){var X=t.parseExpression(!1,m?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var J={type:"ordgroup",mode:t.mode,body:X};r&&(J={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[J]}),k.push(J);var ae=t.fetch().text;if(ae==="&"){if(p&&k.length===p){if(m||o)throw new q("Too many tab characters: &",t.nextToken);lt({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(ae==="\\end"){L(),k.length===1&&J.type==="styling"&&J.body.length===1&&J.body[0].type==="ordgroup"&&J.body[0].body.length===0&&(T.length>1||!u)&&!Array.isArray(R?.[R.length-1])&&!(l&&R?.[R.length-1]===!0)&&T.pop(),D.length<T.length+1&&D.push([]);break}else if(ae==="\\\\"){t.consume();var Y=void 0;t.gullet.future().text!==" "&&(Y=t.parseSizeGroup(!0)),C.push(Y?Y.value:null),L(),D.push(js(t)),k=[],T.push(k),G()}else throw new q("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:a,arraystretch:s,body:T,cols:i,rowGaps:C,hskipBeforeAndAfter:n,hLinesBeforeRow:D,colSeparationType:o,tags:R,leqno:b}}function gi(t){return t.slice(0,1)==="d"?"display":"text"}var Dt=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,l=new Array(i),m=[],u=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),p=1/r.fontMetrics().ptPerEm,b=5*p;if(e.colSeparationType&&e.colSeparationType==="small"){var y=r.havingStyle(me.SCRIPT).sizeMultiplier;b=.2778*(y/r.sizeMultiplier)}var k=e.colSeparationType==="CD"?qe({number:3,unit:"ex"},r):12*p,T=3*p,C=e.arraystretch*k,D=.7*C,R=.3*C,G=0;function L(vn){for(var xn=0;xn<vn.length;++xn)xn>0&&(G+=.25),m.push({pos:G,isDashed:vn[xn]})}for(L(s[0]),n=0;n<e.body.length;++n){var X=e.body[n],J=D,ae=R;o<X.length&&(o=X.length);var Y={cells:new Array(X.length),height:0,depth:0,pos:0};for(a=0;a<X.length;++a){var V=Ae(X[a],r);ae<V.depth&&(ae=V.depth),J<V.height&&(J=V.height),Y.cells[a]=V}var Z=e.rowGaps[n],Q=0;Z&&(Q=qe(Z,r),Q>0&&(Q+=R,ae<Q&&(ae=Q),Q=0)),e.addJot&&n<e.body.length-1&&(ae+=T),Y.height=J,Y.depth=ae,G+=J,Y.pos=G,G+=ae+Q,l[n]=Y,L(s[n+1])}var te=G/2+r.fontMetrics().axisHeight,fe=e.cols||[],he=[],ye,M,j=[];if(e.tags&&e.tags.some(vn=>vn))for(n=0;n<i;++n){var H=l[n],ee=H.pos-te,ie=e.tags[n],Se=void 0;ie===!0?Se=I(["eqn-num"],[],r):ie===!1?Se=I([],[],r):Se=I([],We(ie,r,!0),r),Se.depth=H.depth,Se.height=H.height,j.push({type:"elem",elem:Se,shift:ee})}for(a=0,M=0;a<o||M<fe.length;++a,++M){for(var Fe,Me=fe[M],ct=!0;((pr=Me)==null?void 0:pr.type)==="separator";){var pr;if(ct||(ye=I(["arraycolsep"],[]),ye.style.width=F(r.fontMetrics().doubleRuleSep),he.push(ye)),Me.separator==="|"||Me.separator===":"){var U=Me.separator==="|"?"solid":"dashed",de=I(["vertical-separator"],[],r);de.style.height=F(G),de.style.borderRightWidth=F(u),de.style.borderRightStyle=U,de.style.margin="0 "+F(-u/2);var se=G-te;se&&(de.style.verticalAlign=F(-se)),he.push(de)}else throw new q("Invalid separator type: "+Me.separator);M++,Me=fe[M],ct=!1}if(!(a>=o)){var ve=void 0;if(a>0||e.hskipBeforeAndAfter){var we,Ee;ve=(we=(Ee=Me)==null?void 0:Ee.pregap)!=null?we:b,ve!==0&&(ye=I(["arraycolsep"],[]),ye.style.width=F(ve),he.push(ye))}var Re=[];for(n=0;n<i;++n){var Ge=l[n],tt=Ge.cells[a];if(tt){var kr=Ge.pos-te;tt.depth=Ge.depth,tt.height=Ge.height,Re.push({type:"elem",elem:tt,shift:kr})}}var Hr=Ce({positionType:"individualShift",children:Re}),Fd=I(["col-align-"+(((Fe=Me)==null?void 0:Fe.align)||"c")],[Hr]);if(he.push(Fd),a<o-1||e.hskipBeforeAndAfter){var ys,vs;ve=(ys=(vs=Me)==null?void 0:vs.postgap)!=null?ys:b,ve!==0&&(ye=I(["arraycolsep"],[]),ye.style.width=F(ve),he.push(ye))}}}var yn=I(["mtable"],he);if(m.length>0){for(var Pd=Mr("katex-hline",r,u),Hd=Mr("katex-hdashline",r,u),Aa=[{type:"elem",elem:yn,shift:0}];m.length>0;){var xs=m.pop(),ws=xs.pos-te;xs.isDashed?Aa.push({type:"elem",elem:Hd,shift:ws}):Aa.push({type:"elem",elem:Pd,shift:ws})}yn=Ce({positionType:"individualShift",children:Aa})}if(j.length===0)return I(["mord"],[yn],r);var jd=Ce({positionType:"individualShift",children:j}),Ud=I(["katex-tag"],[jd],r);return Wt([yn,Ud])},Ru={c:"center ",l:"left ",r:"right "},It=function(e,r){for(var n=[],a=new O("mtd",[],["mtr-glue"]),i=new O("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],l=[],m=0;m<o.length;m++)l.push(new O("mtd",[ze(o[m],r)]));e.tags&&e.tags[s]&&(l.unshift(a),l.push(a),e.leqno?l.unshift(i):l.push(i)),n.push(new O("mtr",l))}var u=new O("mtable",n),p=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",F(p));var b="",y="";if(e.cols&&e.cols.length>0){var k=e.cols,T="",C=!1,D=0,R=k.length;k[0].type==="separator"&&(b+="top ",D=1),k[k.length-1].type==="separator"&&(b+="bottom ",R-=1);for(var G=D;G<R;G++){var L=k[G];L.type==="align"?(y+=Ru[L.align],C&&(T+="none "),C=!0):L.type==="separator"&&C&&(T+=L.separator==="|"?"solid ":"dashed ",C=!1)}u.setAttribute("columnalign",y.trim()),/[sd]/.test(T)&&u.setAttribute("columnlines",T.trim())}if(e.colSeparationType==="align"){for(var X=e.cols||[],J="",ae=1;ae<X.length;ae++)J+=ae%2?"0em ":"1em ";u.setAttribute("columnspacing",J.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var Y="",V=e.hLinesBeforeRow;b+=V[0].length>0?"left ":"",b+=V[V.length-1].length>0?"right ":"";for(var Z=1;Z<V.length-1;Z++)Y+=V[Z].length===0?"none ":V[Z][0]?"dashed ":"solid ";return/[sd]/.test(Y)&&u.setAttribute("rowlines",Y.trim()),b!==""&&(u=new O("menclose",[u]),u.setAttribute("notation",b.trim())),e.arraystretch&&e.arraystretch<1&&(u=new O("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},Bo=function(e,r){e.envName.includes("ed")||Kn(e);var n=[],a=e.envName==="split",i=sr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:hi(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes("at")?"alignat":"align",maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,o=0,l={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var m="Number of columns should be a positive integer",u=pi(r[0],m);if(!/^[0-9]+$/.test(u)||Number(u)<1)throw new q(m,r[0]);s=Number(u),o=s*2}var p=!o;i.body.forEach(function(T){for(var C=1;C<T.length;C+=2){var D=be(T[C],"styling"),R=be(D.body[0],"ordgroup");R.body.unshift(l)}if(p)o<T.length&&(o=T.length);else{var G=T.length/2;if(s<G)throw new q("Too many math in a row: "+("expected "+s+", but got "+G),T[0])}});for(var b=0;b<o;++b){var y="r",k=0;b%2===1?y="l":b>0&&p&&(k=1),n[b]={type:"align",align:y,pregap:k,postgap:0}}return i.colSeparationType=p?"align":"alignat",i};Et({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Vn(e[0]),n=r?[e[0]]:be(e[0],"ordgroup").body,a=n.map(function(s){var o=Un(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new q("Unknown column alignment: "+l,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return sr(t.parser,i,gi(t.envName))},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new q("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=sr(t.parser,n,gi(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=sr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Vn(e[0]),n=r?[e[0]]:be(e[0],"ordgroup").body,a=n.map(function(o){var l=Un(o),m=l.text;if("lc".includes(m))return{type:"align",align:m};throw new q("Unknown column alignment: "+m,o)});if(a.length>1)throw new q("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=sr(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new q("{subarray} can contain only one column");return s},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=sr(t.parser,e,gi(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Bo,htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){zu.has(t.envName)&&Kn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:hi(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return sr(t.parser,e,"display")},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Bo,htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Kn(t);var e={autoTag:hi(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return sr(t.parser,e,"display")},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Kn(t),pu(t.parser)},htmlBuilder:Dt,mathmlBuilder:It});h("\\nonumber","\\gdef\\@eqnsw{0}");h("\\notag","\\nonumber");W({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new q(t.funcName+" valid only within array environment")}});var Us=Io;W({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,n=t.funcName,a=e[0];if(a.type!=="ordgroup")throw new q("Invalid environment name",a);var i=pi(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Us,i))throw new q("No such environment: "+i,a);var s=Us[i],o=r.parseArguments("\\begin{"+i+"}",s),l=o.args,m=o.optArgs,u={mode:r.mode,envName:i,parser:r},p=s.handler(u,l,m);r.expect("\\end",!1);var b=r.nextToken,y=be(r.parseFunction(),"environment");if(y.name!==i)throw new q("Mismatch: \\begin{"+i+"} matched by \\end{"+y.name+"}",b);return p}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var Gu=(t,e)=>{var r=t.font,n=e.withFont(r);return Ae(t.body,n)},$u=(t,e)=>{var r=t.font,n=e.withFont(r);return ze(t.body,n)},Vs={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};W({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=Zr(e[0]),i=n in Vs?Vs[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Gu,mathmlBuilder:$u});W({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"mclass",mode:r.mode,mclass:Wn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Ut(n)}}});W({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=t.breakOnTokenText,i=r.mode,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var Eu=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Ae(t.numer,i,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<l?l:s.depth}i=e.havingStyle(a);var m=Ae(t.denom,i,e),u,p,b;t.hasBarLine?(t.barSize?(p=qe(t.barSize,e),u=Mr("frac-line",e,p)):u=Mr("frac-line",e),p=u.height,b=u.height):(u=null,p=0,b=e.fontMetrics().defaultRuleThickness);var y,k,T;r.size===me.DISPLAY.size?(y=e.fontMetrics().num1,p>0?k=3*b:k=7*b,T=e.fontMetrics().denom1):(p>0?(y=e.fontMetrics().num2,k=b):(y=e.fontMetrics().num3,k=3*b),T=e.fontMetrics().denom2);var C;if(u){var R=e.fontMetrics().axisHeight;y-s.depth-(R+.5*p)<k&&(y+=k-(y-s.depth-(R+.5*p))),R-.5*p-(m.height-T)<k&&(T+=k-(R-.5*p-(m.height-T)));var G=-(R-.5*p);C=Ce({positionType:"individualShift",children:[{type:"elem",elem:m,shift:T},{type:"elem",elem:u,shift:G},{type:"elem",elem:s,shift:-y}]})}else{var D=y-s.depth-(m.height-T);D<k&&(y+=.5*(k-D),T+=.5*(k-D)),C=Ce({positionType:"individualShift",children:[{type:"elem",elem:m,shift:T},{type:"elem",elem:s,shift:-y}]})}i=e.havingStyle(r),C.height*=i.sizeMultiplier/e.sizeMultiplier,C.depth*=i.sizeMultiplier/e.sizeMultiplier;var L;r.size===me.DISPLAY.size?L=e.fontMetrics().delim1:r.size===me.SCRIPTSCRIPT.size?L=e.havingStyle(me.SCRIPT).fontMetrics().delim2:L=e.fontMetrics().delim2;var X,J;return t.leftDelim==null?X=Qr(e,["mopen"]):X=ti(t.leftDelim,L,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?J=I([]):t.rightDelim==null?J=Qr(e,["mclose"]):J=ti(t.rightDelim,L,!0,e.havingStyle(r),t.mode,["mclose"]),I(["mord"].concat(i.sizingClasses(e)),[X,I(["mfrac"],[C]),J],e)},Du=(t,e)=>{var r=new O("mfrac",[ze(t.numer,e),ze(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=qe(t.barSize,e);r.setAttribute("linethickness",F(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new O("mo",[new Pe(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new O("mo",[new Pe(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return ui(a)}return r},qo=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};W({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0],i=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var m=n==="\\cfrac",u=null;return m||n.startsWith("\\d")?u="display":n.startsWith("\\t")&&(u="text"),qo({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:m,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},u)},htmlBuilder:Eu,mathmlBuilder:Du});W({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,n=t.token,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Ws=["display","text","script","scriptscript"],Ys=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};W({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,n=e[4],a=e[5],i=Zr(e[0]),s=i.type==="atom"&&i.family==="open"?Ys(i.text):null,o=Zr(e[1]),l=o.type==="atom"&&o.family==="close"?Ys(o.text):null,m=be(e[2],"size"),u,p=null;m.isBlank?u=!0:(p=m.value,u=p.number>0);var b=null,y=e[3];if(y.type==="ordgroup"){if(y.body.length>0){var k=be(y.body[0],"textord");b=Ws[Number(k.text)]}}else y=be(y,"textord"),b=Ws[Number(y.text)];return qo({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:u,barSize:p,leftDelim:s,rightDelim:l},b)}});W({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var n=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:be(e[0],"size").value,token:n}}});W({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var n=e[0],a=be(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var i=e[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Oo=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Ae(t.sup,e.havingStyle(r.sup()),e):Ae(t.sub,e.havingStyle(r.sub()),e),a=be(t.base,"horizBrace")):a=be(t,"horizBrace");var i=Ae(a.base,e.havingBaseStyle(me.DISPLAY)),s=jn(a,e),o;if(a.isOver?o=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=Ce({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var l=I(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=Ce({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return I(["minner",a.isOver?"mover":"munder"],[o],e)},Iu=(t,e)=>{var r=Hn(t.label);return new O(t.isOver?"mover":"munder",[ze(t.base,e),r])};W({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:Oo,mathmlBuilder:Iu});W({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[1],a=be(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:He(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1);return Bc(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=ir(t.body,e);return r instanceof O||(r=new O("mrow",[r])),r.setAttribute("href",t.href),r}});W({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=be(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:He(o)}}});W({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(t,e){var r=t.parser;return{type:"hbox",mode:r.mode,body:He(e[0])}},htmlBuilder(t,e){var r=We(t.body,e.withFont(""),!1);return Wt(r)},mathmlBuilder(t,e){return new O("mrow",pt(t.body,e.withFont("")))}});W({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName;t.token;var a=be(e[0],"raw").string,i=e[1];r.settings.strict&<({strict:r.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l="{,}",m=[],u="",p=0;p<a.length;p++)a.startsWith(l,p)?(u+=",",p+=l.length-1):a[p]===","?(m.push(u),u=""):u+=a[p];m.push(u);for(var b=0;b<m.length;b++){var y=m[b],k=y.indexOf("=");if(k<0)throw new q("\\htmlData key/value '"+y+"' missing equals sign");var T=y.slice(0,k),C=y.slice(k+1);o["data-"+T.trim()]=C}s={command:"\\htmlData",attributes:o};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:o,body:He(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=I(n,r,e);for(var i of Object.entries(t.attributes)){var s=i[0],o=i[1];s!=="class"&&a.setAttribute(s,o)}return a},mathmlBuilder:(t,e)=>ir(t.body,e)});W({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:He(e[0]),mathml:He(e[1])}},htmlBuilder:(t,e)=>{var r=We(t.html,e,!1);return Wt(r)},mathmlBuilder:(t,e)=>ir(t.mathml,e)});var Ba=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new q("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!lo(n))throw new q("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};W({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var n=t.parser,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=be(r[0],"raw").string,m=l.split(","),u=0;u<m.length;u++){var p=m[u].split("=");if(p.length===2){var b=p[1].trim();switch(p[0].trim()){case"alt":o=b;break;case"width":a=Ba(b);break;case"height":i=Ba(b);break;case"totalheight":s=Ba(b);break;default:throw new q("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var y=be(e[0],"url").url;return o===""&&(o=y,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:y})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:y}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=qe(t.height,e),n=0;t.totalheight.number>0&&(n=qe(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=qe(t.width,e));var i={height:F(r+n)};a>0&&(i.width=F(a)),n>0&&(i.verticalAlign=F(-n));var s=new Ha(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new O("mglyph",[]);r.setAttribute("alt",t.alt);var n=qe(t.height,e),a=0;if(t.totalheight.number>0&&(a=qe(t.totalheight,e)-n,r.setAttribute("valign",F(-a))),r.setAttribute("height",F(n+a)),t.width.number>0){var i=qe(t.width,e);r.setAttribute("width",F(i))}return r.setAttribute("src",t.src),r}});W({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=be(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||lt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&<({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&<({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" doesn't support mu units",report:!0})}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(t,e){return ho(t.dimension,e)},mathmlBuilder(t,e){var r=qe(t.dimension,e);return new Ln(r)}});W({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=I([],[Ae(t.body,e)]),r=I(["katex-inner"],[r],e)):r=I(["katex-inner"],[Ae(t.body,e)]);var n=I(["katex-fix"],[]),a=I([t.alignment],[r,n],e),i=I(["katex-strut"]);return i.style.height=F(a.height+a.depth),a.depth&&(i.style.verticalAlign=F(-a.depth)),a.children.unshift(i),a=I(["katex-thinbox"],[a],e),I(["mord","katex-vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new O("mpadded",[ze(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});W({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,n=t.parser,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});W({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new q("Mismatched "+t.funcName)}});var Ks=(t,e)=>{switch(e.style.size){case me.DISPLAY.size:return t.display;case me.TEXT.size:return t.text;case me.SCRIPT.size:return t.script;case me.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};W({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:He(e[0]),text:He(e[1]),script:He(e[2]),scriptscript:He(e[3])}},htmlBuilder:(t,e)=>{var r=Ks(t,e),n=We(r,e,!1);return Wt(n)},mathmlBuilder:(t,e)=>{var r=Ks(t,e);return ir(r,e)}});var Fo=(t,e,r,n,a,i,s)=>{t=I([],[t]);var o=r&&Ut(r),l,m;if(e){var u=Ae(e,n.havingStyle(a.sup()),n);m={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var p=Ae(r,n.havingStyle(a.sub()),n);l={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}var b;if(m&&l){var y=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;b=Ce({positionType:"bottom",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:F(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:F(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var k=t.height-s;b=Ce({positionType:"top",positionData:k,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:F(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(m){var T=t.depth+s;b=Ce({positionType:"bottom",positionData:T,children:[{type:"elem",elem:t},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:F(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var C=[b];if(l&&i!==0&&!o){var D=I(["mspace"],[],n);D.style.marginRight=F(i),C.unshift(D)}return I(["mop","op-limits"],C,n)},Po=new Set(["\\smallint"]),Ho=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=be(t.base,"op"),a=!0):i=be(t,"op");var s=e.style,o=!1;s.size===me.DISPLAY.size&&i.symbol&&!Po.has(i.name)&&(o=!0);var l,m;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",p="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(p=i.name.slice(1),i.name=p==="oiint"?"\\iint":"\\iiint"),l=rt(i.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),m=l.italic,p.length>0){var b=bo(p+"Size"+(o?"2":"1"),e);l=Ce({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:b,shift:o?.08:0}]}),i.name="\\"+p,l.classes.unshift("mop"),l.italic=m}}else if(i.body){var y=We(i.body,e,!0);y.length===1&&y[0]instanceof at?(l=y[0],l.classes[0]="mop"):l=I(["mop"],y,e)}else{for(var k=[],T=1;T<i.name.length;T++)k.push(di(i.name[T],i.mode,e));l=I(["mop"],k,e)}var C=0,D=0;if((l instanceof at||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var R;C=(l.height-l.depth)/2-e.fontMetrics().axisHeight,D=(R=l.italic)!=null?R:0}return a?Fo(l,r,n,e,s,D,C):(C&&(l.style.position="relative",l.style.top=F(C)),l)},Lu=(t,e)=>{var r;if(t.symbol)r=new O("mo",[gt(t.name,t.mode)]),Po.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new O("mo",pt(t.body,e));else{r=new O("mi",[new Pe(t.name.slice(1))]);var n=new O("mo",[gt("\u2061","text")]);t.parentIsSupSub?r=new O("mrow",[r,n]):r=xo([r,n])}return r},Bu={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};W({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],numArgs:0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=n;return a.length===1&&(a=Bu[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Ho,mathmlBuilder:Lu});W({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:He(n)}}});var qu={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};W({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"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});W({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});W({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,n=r;return n.length===1&&(n=qu[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var jo=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=be(t.base,"operatorname"),a=!0):i=be(t,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(p=>{var b="text"in p?p.text:void 0;return typeof b=="string"?{type:"textord",mode:p.mode,text:b}:p}),l=We(o,e.withFont("mathrm"),!0),m=0;m<l.length;m++){var u=l[m];u instanceof at&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=I(["mop"],l,e)}else s=I(["mop"],[],e);return a?Fo(s,r,n,e,e.style,0,0):s},Ou=(t,e)=>{for(var r=pt(t.body,e.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof Ln))if(i instanceof O)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof Pe?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(u=>u.toText()).join("");r=[new Pe(o)]}var l=new O("mi",r);l.setAttribute("mathvariant","normal");var m=new O("mo",[gt("\u2061","text")]);return t.parentIsSupSub?new O("mrow",[l,m]):xo([l,m])};W({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"operatorname",mode:r.mode,body:He(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:jo,mathmlBuilder:Ou});h("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");gr({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Wt(We(t.body,e,!1)):I(["mord"],We(t.body,e,!0),e)},mathmlBuilder(t,e){return ir(t.body,e,!0)}});W({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=Ae(t.body,e.havingCrampedStyle()),n=Mr("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return I(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new O("mo",[new Pe("\u203E")]);r.setAttribute("stretchy","true");var n=new O("mover",[ze(t.body,e),r]);return n.setAttribute("accent","true"),n}});W({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"phantom",mode:r.mode,body:He(n)}},htmlBuilder:(t,e)=>{var r=We(t.body,e.withPhantom(),!1);return Wt(r)},mathmlBuilder:(t,e)=>{var r=pt(t.body,e);return new O("mphantom",r)}});h("\\hphantom","\\smash{\\phantom{#1}}");W({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=I(["katex-inner"],[Ae(t.body,e.withPhantom())]),n=I(["katex-fix"],[]);return I(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=pt(He(t.body),e),n=new O("mphantom",r),a=new O("mpadded",[n]);return a.setAttribute("width","0px"),a}});W({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,n=be(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Ae(t.body,e),n=qe(t.dy,e);return Ce({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new O("mpadded",[ze(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});var Uo=(t,e)=>{var r=t.parser;return{type:"reflectbox",mode:r.mode,body:e[0]}};W({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:Uo,htmlBuilder(t,e){return I(["mord","reflectbox"],[Ae(t.body,e)],e)},mathmlBuilder(t,e){return ze(t.body,e)}});W({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Uo});W({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});W({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var n=t.parser,a=r[0],i=be(e[0],"size"),s=be(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&be(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=I(["mord","katex-rule"],[],e),n=qe(t.width,e),a=qe(t.height,e),i=t.shift?qe(t.shift,e):0;return r.style.borderRightWidth=F(n),r.style.borderTopWidth=F(a),r.style.bottom=F(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=qe(t.width,e),n=qe(t.height,e),a=t.shift?qe(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new O("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",F(r)),s.setAttribute("height",F(n));var o=new O("mpadded",[s]);return a>=0?o.setAttribute("height",F(a)):(o.setAttribute("height",F(a)),o.setAttribute("depth",F(-a))),o.setAttribute("voffset",F(a)),o}});function Vo(t,e,r){for(var n=We(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("katex-sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Wt(n)}var Js=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Fu=(t,e)=>{var r=e.havingSize(t.size);return Vo(t.body,r,e)};W({type:"sizing",names:Js,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Js.indexOf(n)+1,body:i}},htmlBuilder:Fu,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=pt(t.body,r),a=new O("mstyle",n);return a.setAttribute("mathsize",F(r.sizeMultiplier)),a}});W({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var n=t.parser,a=!1,i=!1,s=r[0]&&be(r[0],"ordgroup");if(s)for(var o,l=0;l<s.body.length;++l){var m=s.body[l];if(o=Un(m).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var u=e[0];return{type:"smash",mode:n.mode,body:u,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=I([],[Ae(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return I(["mord","katex-smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var a=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return I(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new O("mpadded",[ze(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});W({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Ae(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=Cr(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;e.style.id<me.TEXT.id&&(i=e.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,l=wu(o,e),m=l.span,u=l.ruleWidth,p=l.advanceWidth,b=m.height-u;b>r.height+r.depth+s&&(s=(s+b-r.height-r.depth)/2);var y=m.height-r.height-s-u;r.style.paddingLeft=F(p);var k=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+y)},{type:"elem",elem:m},{type:"kern",size:u}]});if(t.index){var T=e.havingStyle(me.SCRIPTSCRIPT),C=Ae(t.index,T,e),D=.6*(k.height-k.depth),R=Ce({positionType:"shift",positionData:-D,children:[{type:"elem",elem:C}]}),G=I(["katex-root"],[R]);return I(["mord","sqrt"],[G,k],e)}else return I(["mord","sqrt"],[k],e)},mathmlBuilder(t,e){var r=t.body,n=t.index;return n?new O("mroot",[ze(r,e),ze(n,e)]):new O("msqrt",[ze(r,e)])}});var ri={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT};function Pu(t){return t in ri}W({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!Pu(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=ri[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Vo(t.body,n,e)},mathmlBuilder(t,e){var r=ri[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=pt(t.body,n),i=new O("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var Hu=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===me.DISPLAY.size||n.alwaysHandleSupSub);return a?Ho:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===me.DISPLAY.size||n.limits);return i?jo:null}else{if(n.type==="accent")return Ut(n.base)?Ao:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Oo:null}else return null}else return null};gr({type:"supsub",htmlBuilder(t,e){var r=Hu(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=Ae(n,e),o,l,m=e.fontMetrics(),u=0,p=0,b=n&&Ut(n);if(a){var y=e.havingStyle(e.style.sup());o=Ae(a,y,e),b||(u=s.height-y.fontMetrics().supDrop*y.sizeMultiplier/e.sizeMultiplier)}if(i){var k=e.havingStyle(e.style.sub());l=Ae(i,k,e),b||(p=s.depth+k.fontMetrics().subDrop*k.sizeMultiplier/e.sizeMultiplier)}var T;e.style===me.DISPLAY?T=m.sup1:e.style.cramped?T=m.sup3:T=m.sup2;var C=e.sizeMultiplier,D=F(.5/m.ptPerEm/C),R=null;if(l){var G=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof at||G){var L;R=F(-((L=s.italic)!=null?L:0))}}var X;if(o&&l){u=Math.max(u,T,o.depth+.25*m.xHeight),p=Math.max(p,m.sub2);var J=m.defaultRuleThickness,ae=4*J;if(u-o.depth-(l.height-p)<ae){p=ae-(u-o.depth)+l.height;var Y=.8*m.xHeight-(u-o.depth);Y>0&&(u+=Y,p-=Y)}var V=[{type:"elem",elem:l,shift:p,marginRight:D,marginLeft:R},{type:"elem",elem:o,shift:-u,marginRight:D}];X=Ce({positionType:"individualShift",children:V})}else if(l){p=Math.max(p,m.sub1,l.height-.8*m.xHeight);var Z=[{type:"elem",elem:l,marginLeft:R,marginRight:D}];X=Ce({positionType:"shift",positionData:p,children:Z})}else if(o)u=Math.max(u,T,o.depth+.25*m.xHeight),X=Ce({positionType:"shift",positionData:-u,children:[{type:"elem",elem:o,marginRight:D}]});else throw new Error("supsub must have either sup or sub.");var Q=_a(s,"right")||"mord";return I([Q],[s,I(["msupsub"],[X])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[ze(t.base,e)];t.sub&&i.push(ze(t.sub,e)),t.sup&&i.push(ze(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var m=t.base;m&&m.type==="op"&&m.limits&&e.style===me.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(e.style===me.DISPLAY||m.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===me.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===me.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===me.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===me.DISPLAY)?s="mover":s="msup"}return new O(s,i)}});gr({type:"atom",htmlBuilder(t,e){return di(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new O("mo",[gt(t.text,t.mode)]);if(t.family==="bin"){var n=mi(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var Wo={mi:"italic",mn:"normal",mtext:"normal"};gr({type:"mathord",htmlBuilder(t,e){return Pn(t,e)},mathmlBuilder(t,e){var r=new O("mi",[gt(t.text,t.mode,e)]),n=mi(t,e)||"italic";return n!==Wo[r.type]&&r.setAttribute("mathvariant",n),r}});gr({type:"textord",htmlBuilder(t,e){return Pn(t,e)},mathmlBuilder(t,e){var r=gt(t.text,t.mode,e),n=mi(t,e)||"normal",a;return t.mode==="text"?a=new O("mtext",[r]):/[0-9]/.test(t.text)?a=new O("mn",[r]):t.text==="\\prime"?a=new O("mo",[r]):a=new O("mi",[r]),n!==Wo[a.type]&&a.setAttribute("mathvariant",n),a}});var Xs=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),_s=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);gr({type:"spacing",htmlBuilder(t,e){var r=_s.get(t.text),n=Xs.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Pn(t,e);return i.classes.push(a),i}else return I(["mspace",a],[di(t.text,t.mode,e)],e)}else{if(n)return I(["mspace",n],[],e);throw new q('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(_s.has(t.text))r=new O("mtext",[new Pe("\xA0")]);else{if(Xs.has(t.text))return new O("mspace");throw new q('Unknown type of space "'+t.text+'"')}return r}});var Zs=()=>{var t=new O("mtd",[]);return t.setAttribute("width","50%"),t};gr({type:"tag",mathmlBuilder(t,e){var r=new O("mtable",[new O("mtr",[Zs(),new O("mtd",[ir(t.body,e)]),Zs(),new O("mtd",[ir(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Qs={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eo={"\\textbf":"textbf","\\textmd":"textmd"},ju={"\\textit":"textit","\\textup":"textup"},to=(t,e)=>{var r=t.font;if(r){if(Qs[r])return e.withTextFontFamily(Qs[r]);if(eo[r])return e.withTextFontWeight(eo[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(ju[r])};W({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:He(a),font:n}},htmlBuilder(t,e){var r=to(t,e),n=We(t.body,r,!0);return I(["mord","text"],n,r)},mathmlBuilder(t,e){var r=to(t,e);return ir(t.body,r)}});W({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ae(t.body,e),n=Mr("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=Ce({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return I(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new O("mo",[new Pe("\u203E")]);r.setAttribute("stretchy","true");var n=new O("munder",[ze(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});W({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ae(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Ce({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new O("mpadded",[ze(t.body,e)],["vcenter"]);return new O("mrow",[r])}});W({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new q("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=ro(t),n=[],a=e.havingStyle(e.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(rt(s,"Typewriter-Regular",t.mode,a,["mord","texttt"]))}return I(["mord","text"].concat(a.sizingClasses(e)),fo(n),a)},mathmlBuilder(t,e){var r=new Pe(ro(t)),n=new O("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var ro=t=>t.body.replace(/ /g,t.star?"\u2423":"\xA0"),er=yo,Yo=`[ \r
|
|
252
|
+
-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.")}};function Sd(t){return"toText"in t}var tr=class{constructor(e){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=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){return this.children.map(e=>{if(Sd(e))return e.toText();throw new Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}},Pa={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},Ad={ex:!0,em:!0,mu:!0},lo=function(e){return typeof e!="string"&&(e=e.unit),e in Pa||e in Ad||e==="ex"},qe=function(e,r){var n;if(e.unit in Pa)n=Pa[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,e.unit==="ex")n=a.fontMetrics().xHeight;else if(e.unit==="em")n=a.fontMetrics().quad;else throw new q("Invalid unit: '"+e.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},F=function(e){return+e.toFixed(4)+"em"},rr=function(e){return e.filter(r=>r).join(" ")},oi=function(e){var r="";for(var n of Object.keys(e)){var a=e[n];a!==void 0&&(r+=Zc(n)+":"+a+";")}return r},co=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},uo=function(e){var r=document.createElement(e);r.className=rr(this.classes),Object.assign(r.style,this.style);for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},Td=/[\s"'>/=\x00-\x1f]/,mo=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+_e(rr(this.classes))+'"');var n=oi(this.style);n&&(r+=' style="'+_e(n)+'"');for(var a of Object.keys(this.attributes)){if(Td.test(a))throw new q("Invalid attribute name '"+a+"'");r+=" "+a+'="'+_e(this.attributes[a])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+e+">",r},nr=class{constructor(e,r,n,a){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,this.italic=void 0,co.call(this,e,n,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uo.call(this,"span")}toMarkup(){return mo.call(this,"span")}},Nr=class{constructor(e,r,n,a){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,co.call(this,r,a),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return uo.call(this,"a")}toMarkup(){return mo.call(this,"a")}},Ha=class{constructor(e,r,n){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=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e='<img src="'+_e(this.src)+'"'+(' alt="'+_e(this.alt)+'"'),r=oi(this.style);return r&&(e+=' style="'+_e(r)+'"'),e+="'/>",e}},Nd={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},at=class{constructor(e,r,n,a,i,s,o,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=o||[],this.style=l||{},this.maxFontSize=0;var m=md(this.text.charCodeAt(0));m&&this.classes.push(m+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Nd[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=F(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=rr(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=_e(rr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+F(this.italic)+";"),n+=oi(this.style),n&&(e=!0,r+=' style="'+_e(n)+'"');var a=_e(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}},wt=class{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))e+=" "+r+'="'+_e(this.attributes[r])+'"';e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}},$t=class{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",As[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+_e(this.alternate)+'"/>':'<path d="'+_e(As[this.pathName])+'"/>'}},Jr=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r of Object.keys(this.attributes))e+=" "+r+'="'+_e(this.attributes[r])+'"';return e+="/>",e}};function Md(t){if(t instanceof at)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Cd(t){if(t instanceof nr)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var zd=t=>t instanceof nr||t instanceof Nr||t instanceof tr,Gt={"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]}},Na={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]},Ts={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Rd(t,e){Gt[t]=e}function li(t,e,r){if(!Gt[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),a=Gt[e][n];if(!a&&t[0]in Ts&&(n=Ts[t[0]].charCodeAt(0),a=Gt[e][n]),!a&&r==="text"&&oo(n)&&(a=Gt[e][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Ma={};function Gd(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Ma[e]){var r=Ma[e]={cssEmPerMu:Na.quad[e]/18};for(var n of Object.keys(Na))r[n]=Na[n][e]}return Ma[e]}var De={math:{},text:{}};function c(t,e,r,n,a,i){De[t][a]={font:e,group:r,replace:n},i&&n&&(De[t][n]=De[t][a])}var d="math",$="text",f="main",v="ams",Ie="accent-token",K="bin",it="close",zr="inner",re="mathord",je="op-token",mt="open",en="punct",x="rel",Vt="spacing",w="textord";c(d,f,x,"\u2261","\\equiv",!0);c(d,f,x,"\u227A","\\prec",!0);c(d,f,x,"\u227B","\\succ",!0);c(d,f,x,"\u223C","\\sim",!0);c(d,f,x,"\u22A5","\\perp");c(d,f,x,"\u2AAF","\\preceq",!0);c(d,f,x,"\u2AB0","\\succeq",!0);c(d,f,x,"\u2243","\\simeq",!0);c(d,f,x,"\u2223","\\mid",!0);c(d,f,x,"\u226A","\\ll",!0);c(d,f,x,"\u226B","\\gg",!0);c(d,f,x,"\u224D","\\asymp",!0);c(d,f,x,"\u2225","\\parallel");c(d,f,x,"\u22C8","\\bowtie",!0);c(d,f,x,"\u2323","\\smile",!0);c(d,f,x,"\u2291","\\sqsubseteq",!0);c(d,f,x,"\u2292","\\sqsupseteq",!0);c(d,f,x,"\u2250","\\doteq",!0);c(d,f,x,"\u2322","\\frown",!0);c(d,f,x,"\u220B","\\ni",!0);c(d,f,x,"\u221D","\\propto",!0);c(d,f,x,"\u22A2","\\vdash",!0);c(d,f,x,"\u22A3","\\dashv",!0);c(d,f,x,"\u220B","\\owns");c(d,f,en,".","\\ldotp");c(d,f,en,"\u22C5","\\cdotp");c(d,f,en,"\u22C5","\xB7");c($,f,w,"\u22C5","\xB7");c(d,f,w,"#","\\#");c($,f,w,"#","\\#");c(d,f,w,"&","\\&");c($,f,w,"&","\\&");c(d,f,w,"\u2135","\\aleph",!0);c(d,f,w,"\u2200","\\forall",!0);c(d,f,w,"\u210F","\\hbar",!0);c(d,f,w,"\u2203","\\exists",!0);c(d,f,w,"\u2207","\\nabla",!0);c(d,f,w,"\u266D","\\flat",!0);c(d,f,w,"\u2113","\\ell",!0);c(d,f,w,"\u266E","\\natural",!0);c(d,f,w,"\u2663","\\clubsuit",!0);c(d,f,w,"\u2118","\\wp",!0);c(d,f,w,"\u266F","\\sharp",!0);c(d,f,w,"\u2662","\\diamondsuit",!0);c(d,f,w,"\u211C","\\Re",!0);c(d,f,w,"\u2661","\\heartsuit",!0);c(d,f,w,"\u2111","\\Im",!0);c(d,f,w,"\u2660","\\spadesuit",!0);c(d,f,w,"\xA7","\\S",!0);c($,f,w,"\xA7","\\S");c(d,f,w,"\xB6","\\P",!0);c($,f,w,"\xB6","\\P");c(d,f,w,"\u2020","\\dag");c($,f,w,"\u2020","\\dag");c($,f,w,"\u2020","\\textdagger");c(d,f,w,"\u2021","\\ddag");c($,f,w,"\u2021","\\ddag");c($,f,w,"\u2021","\\textdaggerdbl");c(d,f,it,"\u23B1","\\rmoustache",!0);c(d,f,mt,"\u23B0","\\lmoustache",!0);c(d,f,it,"\u27EF","\\rgroup",!0);c(d,f,mt,"\u27EE","\\lgroup",!0);c(d,f,K,"\u2213","\\mp",!0);c(d,f,K,"\u2296","\\ominus",!0);c(d,f,K,"\u228E","\\uplus",!0);c(d,f,K,"\u2293","\\sqcap",!0);c(d,f,K,"\u2217","\\ast");c(d,f,K,"\u2294","\\sqcup",!0);c(d,f,K,"\u25EF","\\bigcirc",!0);c(d,f,K,"\u2219","\\bullet",!0);c(d,f,K,"\u2021","\\ddagger");c(d,f,K,"\u2240","\\wr",!0);c(d,f,K,"\u2A3F","\\amalg");c(d,f,K,"&","\\And");c(d,f,x,"\u27F5","\\longleftarrow",!0);c(d,f,x,"\u21D0","\\Leftarrow",!0);c(d,f,x,"\u27F8","\\Longleftarrow",!0);c(d,f,x,"\u27F6","\\longrightarrow",!0);c(d,f,x,"\u21D2","\\Rightarrow",!0);c(d,f,x,"\u27F9","\\Longrightarrow",!0);c(d,f,x,"\u2194","\\leftrightarrow",!0);c(d,f,x,"\u27F7","\\longleftrightarrow",!0);c(d,f,x,"\u21D4","\\Leftrightarrow",!0);c(d,f,x,"\u27FA","\\Longleftrightarrow",!0);c(d,f,x,"\u21A6","\\mapsto",!0);c(d,f,x,"\u27FC","\\longmapsto",!0);c(d,f,x,"\u2197","\\nearrow",!0);c(d,f,x,"\u21A9","\\hookleftarrow",!0);c(d,f,x,"\u21AA","\\hookrightarrow",!0);c(d,f,x,"\u2198","\\searrow",!0);c(d,f,x,"\u21BC","\\leftharpoonup",!0);c(d,f,x,"\u21C0","\\rightharpoonup",!0);c(d,f,x,"\u2199","\\swarrow",!0);c(d,f,x,"\u21BD","\\leftharpoondown",!0);c(d,f,x,"\u21C1","\\rightharpoondown",!0);c(d,f,x,"\u2196","\\nwarrow",!0);c(d,f,x,"\u21CC","\\rightleftharpoons",!0);c(d,v,x,"\u226E","\\nless",!0);c(d,v,x,"\uE010","\\@nleqslant");c(d,v,x,"\uE011","\\@nleqq");c(d,v,x,"\u2A87","\\lneq",!0);c(d,v,x,"\u2268","\\lneqq",!0);c(d,v,x,"\uE00C","\\@lvertneqq");c(d,v,x,"\u22E6","\\lnsim",!0);c(d,v,x,"\u2A89","\\lnapprox",!0);c(d,v,x,"\u2280","\\nprec",!0);c(d,v,x,"\u22E0","\\npreceq",!0);c(d,v,x,"\u22E8","\\precnsim",!0);c(d,v,x,"\u2AB9","\\precnapprox",!0);c(d,v,x,"\u2241","\\nsim",!0);c(d,v,x,"\uE006","\\@nshortmid");c(d,v,x,"\u2224","\\nmid",!0);c(d,v,x,"\u22AC","\\nvdash",!0);c(d,v,x,"\u22AD","\\nvDash",!0);c(d,v,x,"\u22EA","\\ntriangleleft");c(d,v,x,"\u22EC","\\ntrianglelefteq",!0);c(d,v,x,"\u228A","\\subsetneq",!0);c(d,v,x,"\uE01A","\\@varsubsetneq");c(d,v,x,"\u2ACB","\\subsetneqq",!0);c(d,v,x,"\uE017","\\@varsubsetneqq");c(d,v,x,"\u226F","\\ngtr",!0);c(d,v,x,"\uE00F","\\@ngeqslant");c(d,v,x,"\uE00E","\\@ngeqq");c(d,v,x,"\u2A88","\\gneq",!0);c(d,v,x,"\u2269","\\gneqq",!0);c(d,v,x,"\uE00D","\\@gvertneqq");c(d,v,x,"\u22E7","\\gnsim",!0);c(d,v,x,"\u2A8A","\\gnapprox",!0);c(d,v,x,"\u2281","\\nsucc",!0);c(d,v,x,"\u22E1","\\nsucceq",!0);c(d,v,x,"\u22E9","\\succnsim",!0);c(d,v,x,"\u2ABA","\\succnapprox",!0);c(d,v,x,"\u2246","\\ncong",!0);c(d,v,x,"\uE007","\\@nshortparallel");c(d,v,x,"\u2226","\\nparallel",!0);c(d,v,x,"\u22AF","\\nVDash",!0);c(d,v,x,"\u22EB","\\ntriangleright");c(d,v,x,"\u22ED","\\ntrianglerighteq",!0);c(d,v,x,"\uE018","\\@nsupseteqq");c(d,v,x,"\u228B","\\supsetneq",!0);c(d,v,x,"\uE01B","\\@varsupsetneq");c(d,v,x,"\u2ACC","\\supsetneqq",!0);c(d,v,x,"\uE019","\\@varsupsetneqq");c(d,v,x,"\u22AE","\\nVdash",!0);c(d,v,x,"\u2AB5","\\precneqq",!0);c(d,v,x,"\u2AB6","\\succneqq",!0);c(d,v,x,"\uE016","\\@nsubseteqq");c(d,v,K,"\u22B4","\\unlhd");c(d,v,K,"\u22B5","\\unrhd");c(d,v,x,"\u219A","\\nleftarrow",!0);c(d,v,x,"\u219B","\\nrightarrow",!0);c(d,v,x,"\u21CD","\\nLeftarrow",!0);c(d,v,x,"\u21CF","\\nRightarrow",!0);c(d,v,x,"\u21AE","\\nleftrightarrow",!0);c(d,v,x,"\u21CE","\\nLeftrightarrow",!0);c(d,v,x,"\u25B3","\\vartriangle");c(d,v,w,"\u210F","\\hslash");c(d,v,w,"\u25BD","\\triangledown");c(d,v,w,"\u25CA","\\lozenge");c(d,v,w,"\u24C8","\\circledS");c(d,v,w,"\xAE","\\circledR");c($,v,w,"\xAE","\\circledR");c(d,v,w,"\u2221","\\measuredangle",!0);c(d,v,w,"\u2204","\\nexists");c(d,v,w,"\u2127","\\mho");c(d,v,w,"\u2132","\\Finv",!0);c(d,v,w,"\u2141","\\Game",!0);c(d,v,w,"\u2035","\\backprime");c(d,v,w,"\u25B2","\\blacktriangle");c(d,v,w,"\u25BC","\\blacktriangledown");c(d,v,w,"\u25A0","\\blacksquare");c(d,v,w,"\u29EB","\\blacklozenge");c(d,v,w,"\u2605","\\bigstar");c(d,v,w,"\u2222","\\sphericalangle",!0);c(d,v,w,"\u2201","\\complement",!0);c(d,v,w,"\xF0","\\eth",!0);c($,f,w,"\xF0","\xF0");c(d,v,w,"\u2571","\\diagup");c(d,v,w,"\u2572","\\diagdown");c(d,v,w,"\u25A1","\\square");c(d,v,w,"\u25A1","\\Box");c(d,v,w,"\u25CA","\\Diamond");c(d,v,w,"\xA5","\\yen",!0);c($,v,w,"\xA5","\\yen",!0);c(d,v,w,"\u2713","\\checkmark",!0);c($,v,w,"\u2713","\\checkmark");c(d,v,w,"\u2136","\\beth",!0);c(d,v,w,"\u2138","\\daleth",!0);c(d,v,w,"\u2137","\\gimel",!0);c(d,v,w,"\u03DD","\\digamma",!0);c(d,v,w,"\u03F0","\\varkappa");c(d,v,mt,"\u250C","\\@ulcorner",!0);c(d,v,it,"\u2510","\\@urcorner",!0);c(d,v,mt,"\u2514","\\@llcorner",!0);c(d,v,it,"\u2518","\\@lrcorner",!0);c(d,v,x,"\u2266","\\leqq",!0);c(d,v,x,"\u2A7D","\\leqslant",!0);c(d,v,x,"\u2A95","\\eqslantless",!0);c(d,v,x,"\u2272","\\lesssim",!0);c(d,v,x,"\u2A85","\\lessapprox",!0);c(d,v,x,"\u224A","\\approxeq",!0);c(d,v,K,"\u22D6","\\lessdot");c(d,v,x,"\u22D8","\\lll",!0);c(d,v,x,"\u2276","\\lessgtr",!0);c(d,v,x,"\u22DA","\\lesseqgtr",!0);c(d,v,x,"\u2A8B","\\lesseqqgtr",!0);c(d,v,x,"\u2251","\\doteqdot");c(d,v,x,"\u2253","\\risingdotseq",!0);c(d,v,x,"\u2252","\\fallingdotseq",!0);c(d,v,x,"\u223D","\\backsim",!0);c(d,v,x,"\u22CD","\\backsimeq",!0);c(d,v,x,"\u2AC5","\\subseteqq",!0);c(d,v,x,"\u22D0","\\Subset",!0);c(d,v,x,"\u228F","\\sqsubset",!0);c(d,v,x,"\u227C","\\preccurlyeq",!0);c(d,v,x,"\u22DE","\\curlyeqprec",!0);c(d,v,x,"\u227E","\\precsim",!0);c(d,v,x,"\u2AB7","\\precapprox",!0);c(d,v,x,"\u22B2","\\vartriangleleft");c(d,v,x,"\u22B4","\\trianglelefteq");c(d,v,x,"\u22A8","\\vDash",!0);c(d,v,x,"\u22AA","\\Vvdash",!0);c(d,v,x,"\u2323","\\smallsmile");c(d,v,x,"\u2322","\\smallfrown");c(d,v,x,"\u224F","\\bumpeq",!0);c(d,v,x,"\u224E","\\Bumpeq",!0);c(d,v,x,"\u2267","\\geqq",!0);c(d,v,x,"\u2A7E","\\geqslant",!0);c(d,v,x,"\u2A96","\\eqslantgtr",!0);c(d,v,x,"\u2273","\\gtrsim",!0);c(d,v,x,"\u2A86","\\gtrapprox",!0);c(d,v,K,"\u22D7","\\gtrdot");c(d,v,x,"\u22D9","\\ggg",!0);c(d,v,x,"\u2277","\\gtrless",!0);c(d,v,x,"\u22DB","\\gtreqless",!0);c(d,v,x,"\u2A8C","\\gtreqqless",!0);c(d,v,x,"\u2256","\\eqcirc",!0);c(d,v,x,"\u2257","\\circeq",!0);c(d,v,x,"\u225C","\\triangleq",!0);c(d,v,x,"\u223C","\\thicksim");c(d,v,x,"\u2248","\\thickapprox");c(d,v,x,"\u2AC6","\\supseteqq",!0);c(d,v,x,"\u22D1","\\Supset",!0);c(d,v,x,"\u2290","\\sqsupset",!0);c(d,v,x,"\u227D","\\succcurlyeq",!0);c(d,v,x,"\u22DF","\\curlyeqsucc",!0);c(d,v,x,"\u227F","\\succsim",!0);c(d,v,x,"\u2AB8","\\succapprox",!0);c(d,v,x,"\u22B3","\\vartriangleright");c(d,v,x,"\u22B5","\\trianglerighteq");c(d,v,x,"\u22A9","\\Vdash",!0);c(d,v,x,"\u2223","\\shortmid");c(d,v,x,"\u2225","\\shortparallel");c(d,v,x,"\u226C","\\between",!0);c(d,v,x,"\u22D4","\\pitchfork",!0);c(d,v,x,"\u221D","\\varpropto");c(d,v,x,"\u25C0","\\blacktriangleleft");c(d,v,x,"\u2234","\\therefore",!0);c(d,v,x,"\u220D","\\backepsilon");c(d,v,x,"\u25B6","\\blacktriangleright");c(d,v,x,"\u2235","\\because",!0);c(d,v,x,"\u22D8","\\llless");c(d,v,x,"\u22D9","\\gggtr");c(d,v,K,"\u22B2","\\lhd");c(d,v,K,"\u22B3","\\rhd");c(d,v,x,"\u2242","\\eqsim",!0);c(d,f,x,"\u22C8","\\Join");c(d,v,x,"\u2251","\\Doteq",!0);c(d,v,K,"\u2214","\\dotplus",!0);c(d,v,K,"\u2216","\\smallsetminus");c(d,v,K,"\u22D2","\\Cap",!0);c(d,v,K,"\u22D3","\\Cup",!0);c(d,v,K,"\u2A5E","\\doublebarwedge",!0);c(d,v,K,"\u229F","\\boxminus",!0);c(d,v,K,"\u229E","\\boxplus",!0);c(d,v,K,"\u22C7","\\divideontimes",!0);c(d,v,K,"\u22C9","\\ltimes",!0);c(d,v,K,"\u22CA","\\rtimes",!0);c(d,v,K,"\u22CB","\\leftthreetimes",!0);c(d,v,K,"\u22CC","\\rightthreetimes",!0);c(d,v,K,"\u22CF","\\curlywedge",!0);c(d,v,K,"\u22CE","\\curlyvee",!0);c(d,v,K,"\u229D","\\circleddash",!0);c(d,v,K,"\u229B","\\circledast",!0);c(d,v,K,"\u22C5","\\centerdot");c(d,v,K,"\u22BA","\\intercal",!0);c(d,v,K,"\u22D2","\\doublecap");c(d,v,K,"\u22D3","\\doublecup");c(d,v,K,"\u22A0","\\boxtimes",!0);c(d,v,x,"\u21E2","\\dashrightarrow",!0);c(d,v,x,"\u21E0","\\dashleftarrow",!0);c(d,v,x,"\u21C7","\\leftleftarrows",!0);c(d,v,x,"\u21C6","\\leftrightarrows",!0);c(d,v,x,"\u21DA","\\Lleftarrow",!0);c(d,v,x,"\u219E","\\twoheadleftarrow",!0);c(d,v,x,"\u21A2","\\leftarrowtail",!0);c(d,v,x,"\u21AB","\\looparrowleft",!0);c(d,v,x,"\u21CB","\\leftrightharpoons",!0);c(d,v,x,"\u21B6","\\curvearrowleft",!0);c(d,v,x,"\u21BA","\\circlearrowleft",!0);c(d,v,x,"\u21B0","\\Lsh",!0);c(d,v,x,"\u21C8","\\upuparrows",!0);c(d,v,x,"\u21BF","\\upharpoonleft",!0);c(d,v,x,"\u21C3","\\downharpoonleft",!0);c(d,f,x,"\u22B6","\\origof",!0);c(d,f,x,"\u22B7","\\imageof",!0);c(d,v,x,"\u22B8","\\multimap",!0);c(d,v,x,"\u21AD","\\leftrightsquigarrow",!0);c(d,v,x,"\u21C9","\\rightrightarrows",!0);c(d,v,x,"\u21C4","\\rightleftarrows",!0);c(d,v,x,"\u21A0","\\twoheadrightarrow",!0);c(d,v,x,"\u21A3","\\rightarrowtail",!0);c(d,v,x,"\u21AC","\\looparrowright",!0);c(d,v,x,"\u21B7","\\curvearrowright",!0);c(d,v,x,"\u21BB","\\circlearrowright",!0);c(d,v,x,"\u21B1","\\Rsh",!0);c(d,v,x,"\u21CA","\\downdownarrows",!0);c(d,v,x,"\u21BE","\\upharpoonright",!0);c(d,v,x,"\u21C2","\\downharpoonright",!0);c(d,v,x,"\u21DD","\\rightsquigarrow",!0);c(d,v,x,"\u21DD","\\leadsto");c(d,v,x,"\u21DB","\\Rrightarrow",!0);c(d,v,x,"\u21BE","\\restriction");c(d,f,w,"\u2018","`");c(d,f,w,"$","\\$");c($,f,w,"$","\\$");c($,f,w,"$","\\textdollar");c(d,f,w,"%","\\%");c($,f,w,"%","\\%");c(d,f,w,"_","\\_");c($,f,w,"_","\\_");c($,f,w,"_","\\textunderscore");c(d,f,w,"\u2220","\\angle",!0);c(d,f,w,"\u221E","\\infty",!0);c(d,f,w,"\u2032","\\prime");c(d,f,w,"\u25B3","\\triangle");c(d,f,w,"\u0393","\\Gamma",!0);c(d,f,w,"\u0394","\\Delta",!0);c(d,f,w,"\u0398","\\Theta",!0);c(d,f,w,"\u039B","\\Lambda",!0);c(d,f,w,"\u039E","\\Xi",!0);c(d,f,w,"\u03A0","\\Pi",!0);c(d,f,w,"\u03A3","\\Sigma",!0);c(d,f,w,"\u03A5","\\Upsilon",!0);c(d,f,w,"\u03A6","\\Phi",!0);c(d,f,w,"\u03A8","\\Psi",!0);c(d,f,w,"\u03A9","\\Omega",!0);c(d,f,w,"A","\u0391");c(d,f,w,"B","\u0392");c(d,f,w,"E","\u0395");c(d,f,w,"Z","\u0396");c(d,f,w,"H","\u0397");c(d,f,w,"I","\u0399");c(d,f,w,"K","\u039A");c(d,f,w,"M","\u039C");c(d,f,w,"N","\u039D");c(d,f,w,"O","\u039F");c(d,f,w,"P","\u03A1");c(d,f,w,"T","\u03A4");c(d,f,w,"X","\u03A7");c(d,f,w,"\xAC","\\neg",!0);c(d,f,w,"\xAC","\\lnot");c(d,f,w,"\u22A4","\\top");c(d,f,w,"\u22A5","\\bot");c(d,f,w,"\u2205","\\emptyset");c(d,v,w,"\u2205","\\varnothing");c(d,f,re,"\u03B1","\\alpha",!0);c(d,f,re,"\u03B2","\\beta",!0);c(d,f,re,"\u03B3","\\gamma",!0);c(d,f,re,"\u03B4","\\delta",!0);c(d,f,re,"\u03F5","\\epsilon",!0);c(d,f,re,"\u03B6","\\zeta",!0);c(d,f,re,"\u03B7","\\eta",!0);c(d,f,re,"\u03B8","\\theta",!0);c(d,f,re,"\u03B9","\\iota",!0);c(d,f,re,"\u03BA","\\kappa",!0);c(d,f,re,"\u03BB","\\lambda",!0);c(d,f,re,"\u03BC","\\mu",!0);c(d,f,re,"\u03BD","\\nu",!0);c(d,f,re,"\u03BE","\\xi",!0);c(d,f,re,"\u03BF","\\omicron",!0);c(d,f,re,"\u03C0","\\pi",!0);c(d,f,re,"\u03C1","\\rho",!0);c(d,f,re,"\u03C3","\\sigma",!0);c(d,f,re,"\u03C4","\\tau",!0);c(d,f,re,"\u03C5","\\upsilon",!0);c(d,f,re,"\u03D5","\\phi",!0);c(d,f,re,"\u03C7","\\chi",!0);c(d,f,re,"\u03C8","\\psi",!0);c(d,f,re,"\u03C9","\\omega",!0);c(d,f,re,"\u03B5","\\varepsilon",!0);c(d,f,re,"\u03D1","\\vartheta",!0);c(d,f,re,"\u03D6","\\varpi",!0);c(d,f,re,"\u03F1","\\varrho",!0);c(d,f,re,"\u03C2","\\varsigma",!0);c(d,f,re,"\u03C6","\\varphi",!0);c(d,f,K,"\u2217","*",!0);c(d,f,K,"+","+");c(d,f,K,"\u2212","-",!0);c(d,f,K,"\u22C5","\\cdot",!0);c(d,f,K,"\u2218","\\circ",!0);c(d,f,K,"\xF7","\\div",!0);c(d,f,K,"\xB1","\\pm",!0);c(d,f,K,"\xD7","\\times",!0);c(d,f,K,"\u2229","\\cap",!0);c(d,f,K,"\u222A","\\cup",!0);c(d,f,K,"\u2216","\\setminus",!0);c(d,f,K,"\u2227","\\land");c(d,f,K,"\u2228","\\lor");c(d,f,K,"\u2227","\\wedge",!0);c(d,f,K,"\u2228","\\vee",!0);c(d,f,w,"\u221A","\\surd");c(d,f,mt,"\u27E8","\\langle",!0);c(d,f,mt,"\u2223","\\lvert");c(d,f,mt,"\u2225","\\lVert");c(d,f,it,"?","?");c(d,f,it,"!","!");c(d,f,it,"\u27E9","\\rangle",!0);c(d,f,it,"\u2223","\\rvert");c(d,f,it,"\u2225","\\rVert");c(d,f,x,"=","=");c(d,f,x,":",":");c(d,f,x,"\u2248","\\approx",!0);c(d,f,x,"\u2245","\\cong",!0);c(d,f,x,"\u2265","\\ge");c(d,f,x,"\u2265","\\geq",!0);c(d,f,x,"\u2190","\\gets");c(d,f,x,">","\\gt",!0);c(d,f,x,"\u2208","\\in",!0);c(d,f,x,"\uE020","\\@not");c(d,f,x,"\u2282","\\subset",!0);c(d,f,x,"\u2283","\\supset",!0);c(d,f,x,"\u2286","\\subseteq",!0);c(d,f,x,"\u2287","\\supseteq",!0);c(d,v,x,"\u2288","\\nsubseteq",!0);c(d,v,x,"\u2289","\\nsupseteq",!0);c(d,f,x,"\u22A8","\\models");c(d,f,x,"\u2190","\\leftarrow",!0);c(d,f,x,"\u2264","\\le");c(d,f,x,"\u2264","\\leq",!0);c(d,f,x,"<","\\lt",!0);c(d,f,x,"\u2192","\\rightarrow",!0);c(d,f,x,"\u2192","\\to");c(d,v,x,"\u2271","\\ngeq",!0);c(d,v,x,"\u2270","\\nleq",!0);c(d,f,Vt,"\xA0","\\ ");c(d,f,Vt,"\xA0","\\space");c(d,f,Vt,"\xA0","\\nobreakspace");c($,f,Vt,"\xA0","\\ ");c($,f,Vt,"\xA0"," ");c($,f,Vt,"\xA0","\\space");c($,f,Vt,"\xA0","\\nobreakspace");c(d,f,Vt,"","\\nobreak");c(d,f,Vt,"","\\allowbreak");c(d,f,en,",",",");c(d,f,en,";",";");c(d,v,K,"\u22BC","\\barwedge",!0);c(d,v,K,"\u22BB","\\veebar",!0);c(d,f,K,"\u2299","\\odot",!0);c(d,f,K,"\u2295","\\oplus",!0);c(d,f,K,"\u2297","\\otimes",!0);c(d,f,w,"\u2202","\\partial",!0);c(d,f,K,"\u2298","\\oslash",!0);c(d,v,K,"\u229A","\\circledcirc",!0);c(d,v,K,"\u22A1","\\boxdot",!0);c(d,f,K,"\u25B3","\\bigtriangleup");c(d,f,K,"\u25BD","\\bigtriangledown");c(d,f,K,"\u2020","\\dagger");c(d,f,K,"\u22C4","\\diamond");c(d,f,K,"\u22C6","\\star");c(d,f,K,"\u25C3","\\triangleleft");c(d,f,K,"\u25B9","\\triangleright");c(d,f,mt,"{","\\{");c($,f,w,"{","\\{");c($,f,w,"{","\\textbraceleft");c(d,f,it,"}","\\}");c($,f,w,"}","\\}");c($,f,w,"}","\\textbraceright");c(d,f,mt,"{","\\lbrace");c(d,f,it,"}","\\rbrace");c(d,f,mt,"[","\\lbrack",!0);c($,f,w,"[","\\lbrack",!0);c(d,f,it,"]","\\rbrack",!0);c($,f,w,"]","\\rbrack",!0);c(d,f,mt,"(","\\lparen",!0);c(d,f,it,")","\\rparen",!0);c($,f,w,"<","\\textless",!0);c($,f,w,">","\\textgreater",!0);c(d,f,mt,"\u230A","\\lfloor",!0);c(d,f,it,"\u230B","\\rfloor",!0);c(d,f,mt,"\u2308","\\lceil",!0);c(d,f,it,"\u2309","\\rceil",!0);c(d,f,w,"\\","\\backslash");c(d,f,w,"\u2223","|");c(d,f,w,"\u2223","\\vert");c($,f,w,"|","\\textbar",!0);c(d,f,w,"\u2225","\\|");c(d,f,w,"\u2225","\\Vert");c($,f,w,"\u2225","\\textbardbl");c($,f,w,"~","\\textasciitilde");c($,f,w,"\\","\\textbackslash");c($,f,w,"^","\\textasciicircum");c(d,f,x,"\u2191","\\uparrow",!0);c(d,f,x,"\u21D1","\\Uparrow",!0);c(d,f,x,"\u2193","\\downarrow",!0);c(d,f,x,"\u21D3","\\Downarrow",!0);c(d,f,x,"\u2195","\\updownarrow",!0);c(d,f,x,"\u21D5","\\Updownarrow",!0);c(d,f,je,"\u2210","\\coprod");c(d,f,je,"\u22C1","\\bigvee");c(d,f,je,"\u22C0","\\bigwedge");c(d,f,je,"\u2A04","\\biguplus");c(d,f,je,"\u22C2","\\bigcap");c(d,f,je,"\u22C3","\\bigcup");c(d,f,je,"\u222B","\\int");c(d,f,je,"\u222B","\\intop");c(d,f,je,"\u222C","\\iint");c(d,f,je,"\u222D","\\iiint");c(d,f,je,"\u220F","\\prod");c(d,f,je,"\u2211","\\sum");c(d,f,je,"\u2A02","\\bigotimes");c(d,f,je,"\u2A01","\\bigoplus");c(d,f,je,"\u2A00","\\bigodot");c(d,f,je,"\u222E","\\oint");c(d,f,je,"\u222F","\\oiint");c(d,f,je,"\u2230","\\oiiint");c(d,f,je,"\u2A06","\\bigsqcup");c(d,f,je,"\u222B","\\smallint");c($,f,zr,"\u2026","\\textellipsis");c(d,f,zr,"\u2026","\\mathellipsis");c($,f,zr,"\u2026","\\ldots",!0);c(d,f,zr,"\u2026","\\ldots",!0);c(d,f,zr,"\u22EF","\\@cdots",!0);c(d,f,zr,"\u22F1","\\ddots",!0);c(d,f,w,"\u22EE","\\varvdots");c($,f,w,"\u22EE","\\varvdots");c(d,f,Ie,"\u02CA","\\acute");c(d,f,Ie,"\u02CB","\\grave");c(d,f,Ie,"\xA8","\\ddot");c(d,f,Ie,"~","\\tilde");c(d,f,Ie,"\u02C9","\\bar");c(d,f,Ie,"\u02D8","\\breve");c(d,f,Ie,"\u02C7","\\check");c(d,f,Ie,"^","\\hat");c(d,f,Ie,"\u20D7","\\vec");c(d,f,Ie,"\u02D9","\\dot");c(d,f,Ie,"\u02DA","\\mathring");c(d,f,re,"\uE131","\\@imath");c(d,f,re,"\uE237","\\@jmath");c(d,f,w,"\u0131","\u0131");c(d,f,w,"\u0237","\u0237");c($,f,w,"\u0131","\\i",!0);c($,f,w,"\u0237","\\j",!0);c($,f,w,"\xDF","\\ss",!0);c($,f,w,"\xE6","\\ae",!0);c($,f,w,"\u0153","\\oe",!0);c($,f,w,"\xF8","\\o",!0);c($,f,w,"\xC6","\\AE",!0);c($,f,w,"\u0152","\\OE",!0);c($,f,w,"\xD8","\\O",!0);c($,f,Ie,"\u02CA","\\'");c($,f,Ie,"\u02CB","\\`");c($,f,Ie,"\u02C6","\\^");c($,f,Ie,"\u02DC","\\~");c($,f,Ie,"\u02C9","\\=");c($,f,Ie,"\u02D8","\\u");c($,f,Ie,"\u02D9","\\.");c($,f,Ie,"\xB8","\\c");c($,f,Ie,"\u02DA","\\r");c($,f,Ie,"\u02C7","\\v");c($,f,Ie,"\xA8",'\\"');c($,f,Ie,"\u02DD","\\H");c($,f,Ie,"\u25EF","\\textcircled");var po={"--":!0,"---":!0,"``":!0,"''":!0};c($,f,w,"\u2013","--",!0);c($,f,w,"\u2013","\\textendash");c($,f,w,"\u2014","---",!0);c($,f,w,"\u2014","\\textemdash");c($,f,w,"\u2018","`",!0);c($,f,w,"\u2018","\\textquoteleft");c($,f,w,"\u2019","'",!0);c($,f,w,"\u2019","\\textquoteright");c($,f,w,"\u201C","``",!0);c($,f,w,"\u201C","\\textquotedblleft");c($,f,w,"\u201D","''",!0);c($,f,w,"\u201D","\\textquotedblright");c(d,f,w,"\xB0","\\degree",!0);c($,f,w,"\xB0","\\degree");c($,f,w,"\xB0","\\textdegree",!0);c(d,f,w,"\xA3","\\pounds");c(d,f,w,"\xA3","\\mathsterling",!0);c($,f,w,"\xA3","\\pounds");c($,f,w,"\xA3","\\textsterling",!0);c(d,v,w,"\u2720","\\maltese");c($,v,w,"\u2720","\\maltese");var Ns='0123456789/@."';for(Sn=0;Sn<Ns.length;Sn++)Ca=Ns.charAt(Sn),c(d,f,w,Ca,Ca);var Ca,Sn,Ms='0123456789!@*()-=+";:?/.,';for(An=0;An<Ms.length;An++)za=Ms.charAt(An),c($,f,w,za,za);var za,An,In="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Tn=0;Tn<In.length;Tn++)jr=In.charAt(Tn),c(d,f,re,jr,jr),c($,f,w,jr,jr);var jr,Tn;c(d,v,w,"C","\u2102");c($,v,w,"C","\u2102");c(d,v,w,"H","\u210D");c($,v,w,"H","\u210D");c(d,v,w,"N","\u2115");c($,v,w,"N","\u2115");c(d,v,w,"P","\u2119");c($,v,w,"P","\u2119");c(d,v,w,"Q","\u211A");c($,v,w,"Q","\u211A");c(d,v,w,"R","\u211D");c($,v,w,"R","\u211D");c(d,v,w,"Z","\u2124");c($,v,w,"Z","\u2124");c(d,f,re,"h","\u210E");c($,f,re,"h","\u210E");var oe;for(Xe=0;Xe<In.length;Xe++)Le=In.charAt(Xe),oe=String.fromCharCode(55349,56320+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56372+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56424+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56580+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56684+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56736+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56788+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56840+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56944+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),Xe<26&&(oe=String.fromCharCode(55349,56632+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe),oe=String.fromCharCode(55349,56476+Xe),c(d,f,re,Le,oe),c($,f,w,Le,oe));var Le,Xe;oe="\u{1D55C}";c(d,f,re,"k",oe);c($,f,w,"k",oe);for(Qt=0;Qt<10;Qt++)Pt=Qt.toString(),oe=String.fromCharCode(55349,57294+Qt),c(d,f,re,Pt,oe),c($,f,w,Pt,oe),oe=String.fromCharCode(55349,57314+Qt),c(d,f,re,Pt,oe),c($,f,w,Pt,oe),oe=String.fromCharCode(55349,57324+Qt),c(d,f,re,Pt,oe),c($,f,w,Pt,oe),oe=String.fromCharCode(55349,57334+Qt),c(d,f,re,Pt,oe),c($,f,w,Pt,oe);var Pt,Qt,ja="\xD0\xDE\xFE";for(Nn=0;Nn<ja.length;Nn++)Ur=ja.charAt(Nn),c(d,f,re,Ur,Ur),c($,f,w,Ur,Ur);var Ur,Nn,Ua={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Cs={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},zs={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},$d={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},hr={mathClass:"",textClass:"",font:""},Rs={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Gs={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},$s={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},Va={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},Wa={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},Es={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},Ya={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},Ds=[Ua,Ua,Cs,Cs,zs,zs,$d,hr,hr,hr,Rs,Rs,Gs,Gs,$s,$s,Va,Va,Wa,Wa,Es,Es,hr,hr,Ya,Ya],Ed=[Ua,hr,Va,Wa,Ya],Dd=t=>{var e=t.charCodeAt(0),r=t.charCodeAt(1),n=(e-55296)*1024+(r-56320)+65536;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return Ds[a]}else if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return Ed[i]}else{if(n===120485||n===120486)return Ds[0];if(120486<n&&n<120782)return hr;throw new q("Unsupported character: "+t)}};function lt(t){var e=t.strict,r=t.errorCode,n=t.errorMsg,a=t.token,i=t.report,s=e;if(typeof e=="function")if(i)s=e(r,n,a);else try{s=e(r,n,a)}catch{s="error"}switch(s){case!0:case"error":if(i)throw new q("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+r+"]"),a);return!0;case!1:case"ignore":if(!i)return!1;break;case"warn":default:if(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")),!i)return!1;break}}var Fn=function(e,r,n){if(De[n][e]){var a=De[n][e].replace;a&&(e=a)}return{value:e,metrics:li(e,r,n)}},rt=function(e,r,n,a,i){var s=Fn(e,r,n),o=s.metrics;e=s.value;var l;if(o){var m=o.italic;(n==="text"||a&&a.font==="mathit")&&(m=0),l=new at(e,o.height,o.depth,m,o.skew,o.width,i)}else lt({strict:a.strict,errorCode:"symbolNotInFont",errorMsg:"No character metrics for '"+e+"' in style '"+r+"' and mode '"+n+"'",report:!0}),l=new at(e,0,0,0,0,0,i);l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var u=a.getColor();return u&&(l.style.color=u),l},ci=function(e,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Fn(e,"Main-Bold",r).metrics?rt(e,"Main-Bold",r,n,a.concat(["mathbf"])):e==="\\"||De[r][e].font==="main"?rt(e,"Main-Regular",r,n,a):rt(e,"AMS-Regular",r,n,a.concat(["amsrm"]))},Id=function(e,r,n){return n!=="textord"&&Fn(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Pn=function(e,r){var n=e.type==="mathord"?"mathord":"textord",a=e.mode,i=e.text,s=["mord"],o=r.font,l=r.fontFamily,m=r.fontWeight,u=r.fontShape,p=a==="math"||a==="text"&&!!o,b=p?o:l,y="",k="";if(i.charCodeAt(0)===55349){var T=Dd(i);y=T.font,k=T[a+"Class"]}if(y)return rt(i,y,a,r,s.concat(k));if(b){var C,D;if(b==="boldsymbol"){var R=Id(i,a,n);C=R.fontName,D=[R.fontClass]}else p?(C=Ka[o].fontName,D=[o]):(C=Mn(l,m,u),D=[l,m,u]);if(Fn(i,C,a).metrics)return rt(i,C,a,r,s.concat(D));if(Object.prototype.hasOwnProperty.call(po,i)&&C.slice(0,10)==="Typewriter"){for(var G=[],L=0;L<i.length;L++)G.push(rt(i[L],C,a,r,s.concat(D)));return Wt(G)}}if(n==="mathord")return rt(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var X=De[a][i]&&De[a][i].font;if(X==="ams"){var J=Mn("amsrm",m,u);return rt(i,J,a,r,s.concat("amsrm",m,u))}else if(X==="main"||!X){var ae=Mn("textrm",m,u);return rt(i,ae,a,r,s.concat(m,u))}else{var Y=Mn(X,m,u);return rt(i,Y,a,r,s.concat(Y,m,u))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Ld=(t,e)=>{if(rr(t.classes)!==rr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize||t.italic!==0&&t.hasClass("mathnormal"))return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(t.style))if(t.style[n]!==e.style[n])return!1;for(var a of Object.keys(e.style))if(t.style[a]!==e.style[a])return!1;return!0},fo=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof at&&n instanceof at&&Ld(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},di=function(e){for(var r=0,n=0,a=0,i=0;i<e.children.length;i++){var s=e.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=a},I=function(e,r,n,a){var i=new nr(e,r,n,a);return di(i),i},ar=(t,e,r,n)=>new nr(t,e,r,n),Mr=function(e,r,n){var a=I([e],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=F(a.height),a.maxFontSize=1,a},Bd=function(e,r,n,a){var i=new Nr(e,r,n,a);return di(i),i},Wt=function(e){var r=new tr(e);return di(r),r},Cr=function(e,r){return e instanceof tr?I([],[e],r):e},qd=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var o=-r[s].shift-i-r[s].elem.depth,l=o-(r[s-1].elem.height+r[s-1].elem.depth);i=i+o,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:a}}var m;if(e.positionType==="top"){for(var u=e.positionData,p=0;p<e.children.length;p++){var b=e.children[p];u-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}m=u}else if(e.positionType==="bottom")m=-e.positionData;else{var y=e.children[0];if(y.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")m=-y.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")m=-y.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:m}},Ce=function(e,r){for(var n=qd(e),a=n.children,i=n.depth,s=0,o=0;o<a.length;o++){var l=a[o];if(l.type==="elem"){var m=l.elem;s=Math.max(s,m.maxFontSize,m.height)}}s+=2;var u=I(["pstrut"],[]);u.style.height=F(s);for(var p=[],b=i,y=i,k=i,T=0;T<a.length;T++){var C=a[T];if(C.type==="kern")k+=C.size;else{var D=C.elem,R=C.wrapperClasses||[],G=C.wrapperStyle||{},L=I(R,[u,D],void 0,G);L.style.top=F(-s-k-D.depth),C.marginLeft&&(L.style.marginLeft=C.marginLeft),C.marginRight&&(L.style.marginRight=C.marginRight),p.push(L),k+=D.height+D.depth}b=Math.min(b,k),y=Math.max(y,k)}var X=I(["vlist"],p);X.style.height=F(y);var J;if(b<0){var ae=I([],[]),Y=I(["vlist"],[ae]);Y.style.height=F(-b);var V=I(["vlist-s"],[new at("\u200B")]);J=[I(["vlist-r"],[X,V]),I(["vlist-r"],[Y])]}else J=[I(["vlist-r"],[X])];var Z=I(["vlist-t"],J);return J.length===2&&Z.classes.push("vlist-t2"),Z.height=y,Z.depth=-b,Z},ho=(t,e)=>{var r=I(["mspace"],[],e),n=qe(t,e);return r.style.marginRight=F(n),r},Mn=(t,e,r)=>{var n,a;switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}return e==="textbf"&&r==="textit"?a="BoldItalic":e==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",n+"-"+a},Ka={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"}},go={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},bo=function(e,r){var n=go[e],a=n[0],i=n[1],s=n[2],o=new $t(a),l=new wt([o],{width:F(i),height:F(s),style:"width:"+F(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),m=ar(["katex-overlay"],[l],r);return m.height=s,m.style.height=F(s),m.style.width=F(i),m},Be={number:3,unit:"mu"},fr={number:4,unit:"mu"},Ht={number:5,unit:"mu"},Od={mord:{mop:Be,mbin:fr,mrel:Ht,minner:Be},mop:{mord:Be,mop:Be,mrel:Ht,minner:Be},mbin:{mord:fr,mop:fr,mopen:fr,minner:fr},mrel:{mord:Ht,mop:Ht,mopen:Ht,minner:Ht},mopen:{},mclose:{mop:Be,mbin:fr,mrel:Ht,minner:Be},mpunct:{mord:Be,mop:Be,mrel:Ht,mopen:Be,mclose:Be,mpunct:Be,minner:Be},minner:{mord:Be,mop:Be,mbin:fr,mrel:Ht,mopen:Be,mpunct:Be,minner:Be}},Fd={mord:{mop:Be},mop:{mord:Be,mop:Be},mbin:{},mrel:{},mopen:{},mclose:{mop:Be},mpunct:{},minner:{mop:Be}},yo={},Xr={},_r={};function W(t){for(var e=t.type,r=t.names,n=t.htmlBuilder,a=t.mathmlBuilder,i=0;i<r.length;++i)yo[r[i]]=t;e&&(n&&(Xr[e]=n),a&&(_r[e]=a))}function gr(t){var e=t.type,r=t.htmlBuilder,n=t.mathmlBuilder;r&&(Xr[e]=r),n&&(_r[e]=n)}var Zr=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},He=function(e){return e.type==="ordgroup"?e.body:[e]},Pd=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Hd=new Set(["rightmost","mrel","mclose","mpunct"]),jd={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT},Ud={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},We=function(e,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<e.length;s++){var o=Ae(e[s],r);if(o instanceof tr){var l=o.children;i.push(...l)}else i.push(o)}if(fo(i),!n)return i;var m=r;if(e.length===1){var u=e[0];u.type==="sizing"?m=r.havingSize(u.size):u.type==="styling"&&(m=r.havingStyle(jd[u.style]))}var p=I([a[0]||"leftmost"],[],r),b=I([a[1]||"rightmost"],[],r),y=n==="root";return Ja(i,(k,T)=>{var C=T.classes[0],D=k.classes[0];C==="mbin"&&Hd.has(D)?T.classes[0]="mord":D==="mbin"&&Pd.has(C)&&(k.classes[0]="mord")},{node:p},b,y),Ja(i,(k,T)=>{var C,D,R=_a(T),G=_a(k),L=R&&G?k.hasClass("mtight")?(C=Fd[R])==null?void 0:C[G]:(D=Od[R])==null?void 0:D[G]:null;if(L)return ho(L,m)},{node:p},b,y),i},Ja=function(e,r,n,a,i){a&&e.push(a);for(var s=0;s<e.length;s++){var o=e[s],l=vo(o);if(l){Ja(l.children,r,n,null,i);continue}var m=!o.hasClass("mspace");if(m){var u=r(o,n.node);u&&(n.insertAfter?n.insertAfter(u):(e.unshift(u),s++))}m?n.node=o:i&&o.hasClass("katex-newline")&&(n.node=I(["leftmost"])),n.insertAfter=(p=>b=>{e.splice(p+1,0,b),s++})(s)}a&&e.pop()},vo=function(e){return e instanceof tr||e instanceof Nr||e instanceof nr&&e.hasClass("enclosing")?e:null},Xa=function(e,r){var n=vo(e);if(n){var a=n.children;if(a.length){if(r==="right")return Xa(a[a.length-1],"right");if(r==="left")return Xa(a[0],"left")}}return e},_a=function(e,r){if(!e)return null;r&&(e=Xa(e,r));var n=e.classes[0];return Ud[n]||null},Qr=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return I(r.concat(n))},Ae=function(e,r,n){if(!e)return I();if(Xr[e.type]){var a=Xr[e.type](e,r);if(n&&r.size!==n.size){a=I(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new q("Got group of unknown type: '"+e.type+"'")};function Cn(t,e){var r=I(["katex-base"],t,e),n=I(["katex-strut"]);return n.style.height=F(r.height+r.depth),r.depth&&(n.style.verticalAlign=F(-r.depth)),r.children.unshift(n),r}function Za(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=We(t,e,"root"),a;n.length===2&&n[1].hasClass("katex-tag")&&(a=n.pop());for(var i=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var l=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("katex-newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(l=!0);l||(i.push(Cn(s,e)),s=[])}else n[o].hasClass("katex-newline")&&(s.pop(),s.length>0&&(i.push(Cn(s,e)),s=[]),i.push(n[o]));s.length>0&&i.push(Cn(s,e));var m;r?(m=Cn(We(r,e,!0),e),m.classes=["katex-tag"],i.push(m)):a&&i.push(a);var u=I(["katex-html"],i);if(u.setAttribute("aria-hidden","true"),m){var p=m.children[0];p.style.height=F(u.height+u.depth),u.depth&&(p.style.verticalAlign=F(-u.depth))}return u}function xo(t){return new tr(t)}var O=class{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e.setAttribute(n,a)}this.classes.length>0&&(e.className=rr(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Pe&&this.children[i+1]instanceof Pe){for(var s=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Pe;)s+=this.children[++i].toText();e.appendChild(new Pe(s).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e="<"+this.type;for(var r of Object.entries(this.attributes)){var n=r[0],a=r[1];e+=" "+n+'="',e+=_e(a),e+='"'}this.classes.length>0&&(e+=' class ="'+_e(rr(this.classes))+'"'),e+=">";for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}},Pe=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return _e(this.toText())}toText(){return this.text}},Ln=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",F(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+F(this.width)+'"/>'}toText(){return this.character?this.character:" "}},Vd=new Set(["\\imath","\\jmath"]),Wd=new Set(["mrow","mtable"]),gt=function(e,r,n){var a,i;return De[r][e]&&De[r][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(po,e)&&((n==null||(a=n.fontFamily)==null?void 0:a.slice(4,6))==="tt"||(n==null||(i=n.font)==null?void 0:i.slice(4,6))==="tt"))&&(e=De[r][e].replace),new Pe(e)},ui=function(e){return e.length===1?e[0]:new O("mrow",e)},Yd={mathit:"italic",boldsymbol:t=>t.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},mi=(t,e)=>{if(t.mode==="text"){if(e.fontFamily==="texttt")return"monospace";if(e.fontFamily==="textsf")return e.fontShape==="textit"&&e.fontWeight==="textbf"?"sans-serif-bold-italic":e.fontShape==="textit"?"sans-serif-italic":e.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(e.fontShape==="textit"&&e.fontWeight==="textbf")return"bold-italic";if(e.fontShape==="textit")return"italic";if(e.fontWeight==="textbf")return"bold"}var r=e.font;if(!r||r==="mathnormal")return null;var n=t.mode,a=Yd[r];if(a)return typeof a=="function"?a(t):a;var i=t.text;if(Vd.has(i))return null;if(De[n][i]){var s=De[n][i].replace;s&&(i=s)}var o=Ka[r].fontName;return li(i,o,n)?Ka[r].variant:null};function Ra(t){if(!t)return!1;if(t.type==="mi"&&t.children.length===1){var e=t.children[0];return e instanceof Pe&&e.text==="."}else if(t.type==="mo"&&t.children.length===1&&t.getAttribute("separator")==="true"&&t.getAttribute("lspace")==="0em"&&t.getAttribute("rspace")==="0em"){var r=t.children[0];return r instanceof Pe&&r.text===","}else return!1}var pt=function(e,r,n){if(e.length===1){var a=ze(e[0],r);return n&&a instanceof O&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,o=0;o<e.length;o++){var l=ze(e[o],r);if(l instanceof O&&s instanceof O){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(Ra(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&Ra(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||Ra(s))){var m=l.children[0];m instanceof O&&m.type==="mn"&&(m.children=[...s.children,...m.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var u=s.children[0];if(u instanceof Pe&&u.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var p=l.children[0];p instanceof Pe&&p.text.length>0&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),i.pop())}}}i.push(l),s=l}return i},ir=function(e,r,n){return ui(pt(e,r,n))},ze=function(e,r){if(!e)return new O("mrow");if(_r[e.type])return _r[e.type](e,r);throw new q("Got group of unknown type: '"+e.type+"'")};function Is(t,e,r,n,a){var i=pt(t,r),s;i.length===1&&i[0]instanceof O&&Wd.has(i[0].type)?s=i[0]:s=new O("mrow",i);var o=new O("annotation",[new Pe(e)]);o.setAttribute("encoding","application/x-tex");var l=new O("semantics",[s,o]),m=new O("math",[l]);m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&m.setAttribute("display","block");var u=a?"katex":"katex-mathml";return I([u],[m])}var Kd=[[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]],Ls=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Bs=function(e,r){return r.size<2?e:Kd[e-1][r.size-1]},Bn=class t{constructor(e){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.strict=void 0,this.style=e.style,this.color=e.color,this.size=e.size||t.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ls[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){var r={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,strict:this.strict};return Object.assign(r,e),new t(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Bs(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ls[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Bs(t.BASESIZE,e);return this.size===r&&this.textSize===t.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["katex-sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==t.BASESIZE?["katex-sizing","reset-size"+this.size,"size"+t.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Gd(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Bn.BASESIZE=6;var wo=t=>new Bn({style:t.displayMode?me.DISPLAY:me.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness,strict:t.strict}),ko=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=I(n,[e])}return e},Jd=function(e,r,n){var a=wo(n),i;if(n.output==="mathml")return Is(e,r,a,n.displayMode,!0);if(n.output==="html"){var s=Za(e,a);i=I(["katex"],[s])}else{var o=Is(e,r,a,n.displayMode,!1),l=Za(e,a);i=I(["katex"],[o,l])}return ko(i,n)},Xd=function(e,r){var n=wo(r),a=Za(e,n),i=I(["katex"],[a]);return ko(i,r)},_d={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Hn=function(e){var r=new O("mo",[new Pe(_d[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Zd={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},Qd=new Set(["widehat","widecheck","widetilde","utilde"]),jn=function(e,r){function n(){var l=4e5,m=e.label.slice(1);if(Qd.has(m)&&"base"in e){var u=e.base.type==="ordgroup"?e.base.body.length:1,p,b,y;if(u>5)m==="widehat"||m==="widecheck"?(p=420,l=2364,y=.42,b=m+"4"):(p=312,l=2340,y=.34,b="tilde4");else{var k=[1,1,2,2,3,3][u];m==="widehat"||m==="widecheck"?(l=[0,1062,2364,2364,2364][k],p=[0,239,300,360,420][k],y=[0,.24,.3,.3,.36,.42][k],b=m+k):(l=[0,600,1033,2339,2340][k],p=[0,260,286,306,312][k],y=[0,.26,.286,.3,.306,.34][k],b="tilde"+k)}var T=new $t(b),C=new wt([T],{width:"100%",height:F(y),viewBox:"0 0 "+l+" "+p,preserveAspectRatio:"none"});return{span:ar([],[C],r),minWidth:0,height:y}}else{var D=[],R=Zd[m];if(!R)throw new Error('No SVG data for "'+m+'".');var G=R[0],L=R[1],X=R[2],J=X/1e3,ae=G.length,Y,V;if(ae===1){if(R.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+m+'".');Y=["hide-tail"],V=[R[3]]}else if(ae===2)Y=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(ae===3)Y=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
253
|
+
`+ae+" children.");for(var Z=0;Z<ae;Z++){var Q=new $t(G[Z]),te=new wt([Q],{width:"400em",height:F(J),viewBox:"0 0 "+l+" "+X,preserveAspectRatio:V[Z]+" slice"}),fe=ar([Y[Z]],[te],r);if(ae===1)return{span:fe,minWidth:L,height:J};fe.style.height=F(J),D.push(fe)}return{span:I(["katex-stretchy"],D,r),minWidth:L,height:J}}}var a=n(),i=a.span,s=a.minWidth,o=a.height;return i.height=o,i.style.height=F(o),s>0&&(i.style.minWidth=F(s)),i},eu=function(e,r,n,a,i){var s,o=e.height+e.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=I(["katex-stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var m=[];/^[bx]cancel$/.test(r)&&m.push(new Jr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&m.push(new Jr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new wt(m,{width:"100%",height:F(o)});s=ar([],[u],i)}return s.height=o,s.style.height=F(o),s},tu=["bin","close","inner","open","punct","rel"],ru=["accent-token","mathord","op-token","spacing","textord"],nu=new Set(tu),au=new Set(ru);function iu(t){return nu.has(t)}function be(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Un(t){var e=Vn(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Vn(t){return t.type==="atom"||au.has(t.type)?t:null}function pi(t,e,r){var n="";for(var a of t.body)if(a.type==="textord")n+=a.text;else if(r&&a.type==="spacing"&&a.text===" ")n+=" ";else throw new q(e,t);return n}var So=t=>{if(t instanceof at)return t;if(zd(t)&&t.children.length===1)return So(t.children[0])},Ao=(t,e)=>{var r,n,a;t&&t.type==="supsub"?(n=be(t.base,"accent"),r=n.base,t.base=r,a=Cd(Ae(t,e)),t.base=n):(n=be(t,"accent"),r=n.base);var i=Ae(r,e.havingCrampedStyle()),s=n.isShifty&&Ut(r),o=0;if(s){var l,m;o=(l=(m=So(i))==null?void 0:m.skew)!=null?l:0}var u=n.label==="\\c",p=u?i.height+i.depth:Math.min(i.height,e.fontMetrics().xHeight),b;if(n.isStretchy)b=jn(n,e),b=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+F(2*o)+")",marginLeft:F(2*o)}:void 0}]});else{var y,k;n.label==="\\vec"?(y=bo("vec",e),k=go.vec[1]):(y=Pn({type:"textord",mode:n.mode,text:n.label},e),y=Md(y),y.italic=0,k=y.width,u&&(p+=y.depth)),b=I(["accent-body"],[y]);var T=n.label==="\\textcircled";T&&(b.classes.push("accent-full"),p=i.height);var C=o;T||(C-=k/2),b.style.left=F(C),n.label==="\\textcircled"&&(b.style.top=".2em"),b=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-p},{type:"elem",elem:b}]})}var D=I(["mord","katex-accent"],[b],e);return a?(a.children[0]=D,a.height=Math.max(D.height,a.height),a.classes[0]="mord",a):D},su=(t,e)=>{var r=t.isStretchy?Hn(t.label):new O("mo",[gt(t.label,t.mode)]),n=new O("mover",[ze(t.base,e),r]);return n.setAttribute("accent","true"),n},ou=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));W({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"],numArgs:1,handler:(t,e)=>{var r=Zr(e[0]),n=!ou.test(t.funcName),a=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Ao,mathmlBuilder:su});W({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(lt({strict:t.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+t.funcName+" works only in text mode",report:!0}),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}}});W({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(t,e)=>{var r=Ae(t.base,e),n=jn(t,e),a=t.label==="\\utilde"?.12:0,i=Ce({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return I(["mord","accentunder"],[i],e)},mathmlBuilder:(t,e)=>{var r=Hn(t.label),n=new O("munder",[ze(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var zn=t=>{var e=new O("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};W({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"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=t.funcName;return{type:"xArrow",mode:n.mode,label:a,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),a=Cr(Ae(t.body,n,e),e),i=t.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=Cr(Ae(t.below,n,e),e),s.classes.push(i+"-arrow-pad"));var o=jn(t,e),l=-e.fontMetrics().axisHeight+.5*o.height,m=-e.fontMetrics().axisHeight-.5*o.height-.111;(a.depth>.25||t.label==="\\xleftequilibrium")&&(m-=a.depth);var u;if(s){var p=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;u=Ce({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:p}]})}else u=Ce({positionType:"individualShift",children:[{type:"elem",elem:a,shift:m},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return I(["mrel","x-arrow"],[u],e)},mathmlBuilder(t,e){var r=Hn(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var a=zn(ze(t.body,e));if(t.below){var i=zn(ze(t.below,e));n=new O("munderover",[r,i,a])}else n=new O("mover",[r,a])}else if(t.below){var s=zn(ze(t.below,e));n=new O("munder",[r,s])}else n=zn(),n=new O("mover",[r,n]);return n}});function lu(t,e){var r=We(t.body,e,!0);return I([t.mclass],r,e)}function cu(t,e){var r,n=pt(t.body,e);return t.mclass==="minner"?r=new O("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new O("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new O("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):(t.mclass==="mopen"||t.mclass==="mclose")&&(r.attributes.lspace="0em",r.attributes.rspace="0em")),r}W({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:He(a),isCharacterBox:Ut(a)}},htmlBuilder:lu,mathmlBuilder:cu});var Wn=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};W({type:"mclass",names:["\\@binrel"],numArgs:2,handler(t,e){var r=t.parser;return{type:"mclass",mode:r.mode,mclass:Wn(e[0]),body:He(e[1]),isCharacterBox:Ut(e[1])}}});W({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(t,e){var r=t.parser,n=t.funcName,a=e[1],i=e[0],s;n!=="\\stackrel"?s=Wn(a):s="mrel";var o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:He(a)},l=n==="\\underset"?{type:"supsub",mode:i.mode,base:o,sub:i}:{type:"supsub",mode:i.mode,base:o,sup:i};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:Ut(l)}}});W({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"pmb",mode:r.mode,mclass:Wn(e[0]),body:He(e[0])}},htmlBuilder(t,e){var r=We(t.body,e,!0),n=I([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=pt(t.body,e),n=new O("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var du={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},qs=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Os=t=>t.type==="textord"&&t.text==="@",uu=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function mu(t,e,r){var n=du[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[e[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[a,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function pu(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new q("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],a=[n],i=0;i<e.length;i++){for(var s=e[i],o=qs(),l=0;l<s.length;l++)if(!Os(s[l]))o.body.push(s[l]);else{n.push(o),l+=1;var m=Un(s[l]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(m))if("<>AV".includes(m))for(var p=0;p<2;p++){for(var b=!0,y=l+1;y<s.length;y++){if(uu(s[y],m)){b=!1,l=y;break}if(Os(s[y]))throw new q("Missing a "+m+" character to complete a CD arrow.",s[y]);u[p].body.push(s[y])}if(b)throw new q("Missing a "+m+" character to complete a CD arrow.",s[l])}else throw new q('Expected one of "<>AV=|." after @',s[l]);var k=mu(m,u,t),T={type:"styling",body:[k],mode:"math",style:"display",resetFont:!0};n.push(T),o=qs()}i%2===0?n.push(o):n.shift(),n=[],a.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var C=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}W({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=Cr(Ae(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=F(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new O("mrow",[ze(t.label,e)]);return r=new O("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new O("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});W({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(t,e){var r=t.parser;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=Cr(Ae(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new O("mrow",[ze(t.fragment,e)])}});W({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=be(e[0],"ordgroup"),a=pi(n,"\\@char has non-numeric argument"),i=parseInt(a),s;if(isNaN(i))throw new q("\\@char has non-numeric argument "+a);if(i<0||i>1114111)throw new q("\\@char with invalid code point "+a);return i<=65535?s=String.fromCharCode(i):(i-=65536,s=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:"textord",mode:r.mode,text:s}}});var fu=(t,e)=>{var r=We(t.body,e.withColor(t.color),!1);return Wt(r)},hu=(t,e)=>{var r=pt(t.body,e.withColor(t.color)),n=new O("mstyle",r);return n.setAttribute("mathcolor",t.color),n};W({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(t,e){var r=t.parser,n=be(e[0],"color-token").color,a=e[1];return{type:"color",mode:r.mode,color:n,body:He(a)}},htmlBuilder:fu,mathmlBuilder:hu});W({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(t,e){var r=t.parser,n=t.breakOnTokenText,a=be(e[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}}});W({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=e.gullet.future().text==="["?e.parseSizeGroup(!0):null,n=!e.settings.displayMode||!lt({strict:e.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:e.mode,newLine:n,size:r&&be(r,"size").value}},htmlBuilder(t,e){var r=I(["mspace"],[],e);return t.newLine&&(r.classes.push("katex-newline"),t.size&&(r.style.marginTop=F(qe(t.size,e)))),r},mathmlBuilder(t,e){var r=new O("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",F(qe(t.size,e)))),r}});var Qa={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},To=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new q("Expected a control sequence",t);return e},gu=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},No=(t,e,r,n)=>{var a=t.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,a,n)};W({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(t){var e=t.parser,r=t.funcName;e.consumeSpaces();var n=e.fetch();if(Qa[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Qa[n.text]),be(e.parseFunction(),"internal");throw new q("Invalid token after macro prefix",n)}});W({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=e.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new q("Expected a control sequence",n);for(var i=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[i].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new q('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new q('Argument number "'+n.text+'" out of order');i++,o.push([])}else{if(n.text==="EOF")throw new q("Expected a macro definition");o[i].push(n.text)}var l=e.gullet.consumeArg(),m=l.tokens;return s&&m.unshift(s),(r==="\\edef"||r==="\\xdef")&&(m=e.gullet.expandTokens(m),m.reverse()),e.gullet.macros.set(a,{tokens:m,numArgs:i,delimiters:o},r===Qa[r]),{type:"internal",mode:e.mode}}});W({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=To(e.gullet.popToken());e.gullet.consumeSpaces();var a=gu(e);return No(e,n,a,r==="\\\\globallet"),{type:"internal",mode:e.mode}}});W({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(t){var e=t.parser,r=t.funcName,n=To(e.gullet.popToken()),a=e.gullet.popToken(),i=e.gullet.popToken();return No(e,n,i,r==="\\\\globalfuture"),e.gullet.pushToken(i),e.gullet.pushToken(a),{type:"internal",mode:e.mode}}});var Vr=function(e,r,n){var a=De.math[e]&&De.math[e].replace,i=li(a||e,r,n);if(!i)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return i},fi=function(e,r,n,a){var i=n.havingBaseStyle(r),s=I(a.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=i.sizeMultiplier,s},Mo=function(e,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=F(i),e.height-=i,e.depth+=i},bu=function(e,r,n,a,i,s){var o=rt(e,"Main-Regular",i,a),l=fi(o,r,a,s);return n&&Mo(l,a,r),l},yu=function(e,r,n,a){return rt(e,"Size"+r+"-Regular",n,a)},Co=function(e,r,n,a,i,s){var o=yu(e,r,i,a),l=fi(I(["delimsizing","size"+r],[o],a),me.TEXT,a,s);return n&&Mo(l,a,me.TEXT),l},Ga=function(e,r,n,a){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=I(["delimsizinginner",i],[I([],[rt(e,r,n,a)])]);return{type:"elem",elem:s}},$a=function(e,r,n){var a=Gt["Size4-Regular"][e.charCodeAt(0)]?Gt["Size4-Regular"][e.charCodeAt(0)][4]:Gt["Size1-Regular"][e.charCodeAt(0)][4],i=new $t("inner",wd(e,Math.round(1e3*r))),s=new wt([i],{width:F(a),height:F(r),style:"width:"+F(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=ar([],[s],n);return o.height=r,o.style.height=F(r),o.style.width=F(a),{type:"elem",elem:o}},ei=.008,Rn={type:"kern",size:-1*ei},vu=new Set(["|","\\lvert","\\rvert","\\vert"]),xu=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),zo=function(e,r,n,a,i,s){var o,l,m,u,p="",b=0;o=m=u=e,l=null;var y="Size1-Regular";e==="\\uparrow"?m=u="\u23D0":e==="\\Uparrow"?m=u="\u2016":e==="\\downarrow"?o=m="\u23D0":e==="\\Downarrow"?o=m="\u2016":e==="\\updownarrow"?(o="\\uparrow",m="\u23D0",u="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",m="\u2016",u="\\Downarrow"):vu.has(e)?(m="\u2223",p="vert",b=333):xu.has(e)?(m="\u2225",p="doublevert",b=556):e==="["||e==="\\lbrack"?(o="\u23A1",m="\u23A2",u="\u23A3",y="Size4-Regular",p="lbrack",b=667):e==="]"||e==="\\rbrack"?(o="\u23A4",m="\u23A5",u="\u23A6",y="Size4-Regular",p="rbrack",b=667):e==="\\lfloor"||e==="\u230A"?(m=o="\u23A2",u="\u23A3",y="Size4-Regular",p="lfloor",b=667):e==="\\lceil"||e==="\u2308"?(o="\u23A1",m=u="\u23A2",y="Size4-Regular",p="lceil",b=667):e==="\\rfloor"||e==="\u230B"?(m=o="\u23A5",u="\u23A6",y="Size4-Regular",p="rfloor",b=667):e==="\\rceil"||e==="\u2309"?(o="\u23A4",m=u="\u23A5",y="Size4-Regular",p="rceil",b=667):e==="("||e==="\\lparen"?(o="\u239B",m="\u239C",u="\u239D",y="Size4-Regular",p="lparen",b=875):e===")"||e==="\\rparen"?(o="\u239E",m="\u239F",u="\u23A0",y="Size4-Regular",p="rparen",b=875):e==="\\{"||e==="\\lbrace"?(o="\u23A7",l="\u23A8",u="\u23A9",m="\u23AA",y="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="\u23AB",l="\u23AC",u="\u23AD",m="\u23AA",y="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(o="\u23A7",u="\u23A9",m="\u23AA",y="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(o="\u23AB",u="\u23AD",m="\u23AA",y="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(o="\u23A7",u="\u23AD",m="\u23AA",y="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(o="\u23AB",u="\u23A9",m="\u23AA",y="Size4-Regular");var k=Vr(o,y,i),T=k.height+k.depth,C=Vr(m,y,i),D=C.height+C.depth,R=Vr(u,y,i),G=R.height+R.depth,L=0,X=1;if(l!==null){var J=Vr(l,y,i);L=J.height+J.depth,X=2}var ae=T+G+L,Y=Math.max(0,Math.ceil((r-ae)/(X*D))),V=ae+Y*X*D,Z=a.fontMetrics().axisHeight;n&&(Z*=a.sizeMultiplier);var Q=V/2-Z,te=[];if(p.length>0){var fe=V-T-G,he=Math.round(V*1e3),ye=kd(p,Math.round(fe*1e3)),M=new $t(p,ye),j=F(b/1e3),H=F(he/1e3),ee=new wt([M],{width:j,height:H,viewBox:"0 0 "+b+" "+he}),ie=ar([],[ee],a);ie.height=he/1e3,ie.style.width=j,ie.style.height=H,te.push({type:"elem",elem:ie})}else{if(te.push(Ga(u,y,i,a)),te.push(Rn),l===null){var Se=V-T-G+2*ei;te.push($a(m,Se,a))}else{var Fe=(V-T-G-L)/2+2*ei;te.push($a(m,Fe,a)),te.push(Rn),te.push(Ga(l,y,i,a)),te.push(Rn),te.push($a(m,Fe,a))}te.push(Rn),te.push(Ga(o,y,i,a))}var Me=a.havingBaseStyle(me.TEXT),dt=Ce({positionType:"bottom",positionData:Q,children:te});return fi(I(["delimsizing","mult"],[dt],Me),me.TEXT,a,s)},Ea=80,Da=.08,Ia=function(e,r,n,a,i){var s=xd(e,a,n),o=new $t(e,s),l=new wt([o],{width:"400em",height:F(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return ar(["hide-tail"],[l],i)},wu=function(e,r){var n=r.havingBaseSizing(),a=Do("\\surd",e*n.sizeMultiplier,Eo,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,m,u,p;return a.type==="small"?(u=1e3+1e3*s+Ea,e<1?i=1:e<1.4&&(i=.7),l=(1+s+Da)/i,m=(1+s)/i,o=Ia("sqrtMain",l,u,s,r),o.style.minWidth="0.853em",p=.833/i):a.type==="large"?(u=(1e3+Ea)*Wr[a.size],m=(Wr[a.size]+s)/i,l=(Wr[a.size]+s+Da)/i,o=Ia("sqrtSize"+a.size,l,u,s,r),o.style.minWidth="1.02em",p=1/i):(l=e+s+Da,m=e+s,u=Math.floor(1e3*e+s)+Ea,o=Ia("sqrtTall",l,u,s,r),o.style.minWidth="0.742em",p=1.056),o.height=m,o.style.height=F(l),{span:o,advanceWidth:p,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},Ro=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),ku=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),Go=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Wr=[0,1.2,1.8,2.4,3],$o=function(e,r,n,a,i){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Ro.has(e)||Go.has(e))return Co(e,r,!1,n,a,i);if(ku.has(e))return zo(e,Wr[r],!1,n,a,i);throw new q("Illegal delimiter: '"+e+"'")},Su=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Au=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"stack"}],Eo=[{type:"small",style:me.SCRIPTSCRIPT},{type:"small",style:me.SCRIPT},{type:"small",style:me.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Tu=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";var r=e.type;throw new Error("Add support for delim type '"+r+"' here.")},Do=function(e,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length;s++){var o=n[s];if(o.type==="stack")break;var l=Vr(e,Tu(o),"math"),m=l.height+l.depth;if(o.type==="small"){var u=a.havingBaseStyle(o.style);m*=u.sizeMultiplier}if(m>r)return o}return n[n.length-1]},ti=function(e,r,n,a,i,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var o;Go.has(e)?o=Su:Ro.has(e)?o=Eo:o=Au;var l=Do(e,r,o,a);return l.type==="small"?bu(e,l.style,n,a,i,s):l.type==="large"?Co(e,l.size,n,a,i,s):zo(e,r,n,a,i,s)},La=function(e,r,n,a,i,s){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,m=5/a.fontMetrics().ptPerEm,u=Math.max(r-o,n+o),p=Math.max(u/500*l,2*u-m);return ti(e,p,!0,a,i,s)},Fs={"\\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}},Nu=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Ps(t){return"isMiddle"in t}function Yn(t,e){var r=Vn(t);if(r&&Nu.has(r.text))return r;throw r?new q("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new q("Invalid delimiter type '"+t.type+"'",t)}W({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(t,e)=>{var r=Yn(Zr(e[0]),t);return{type:"delimsizing",mode:t.parser.mode,size:Fs[t.funcName].size,mclass:Fs[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?I([t.mclass]):$o(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(gt(t.delim,t.mode));var r=new O("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=F(Wr[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Hs(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}W({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new q("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Yn(e[0],t).text,color:r}}});W({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Yn(e[0],t),n=t.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=be(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(t,e)=>{Hs(t);for(var r=We(t.body,e,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++){var o=r[s];Ps(o)?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a))}n*=e.sizeMultiplier,a*=e.sizeMultiplier;var l;if(t.left==="."?l=Qr(e,["mopen"]):l=La(t.left,n,a,e,t.mode,["mopen"]),r.unshift(l),i)for(var m=1;m<r.length;m++){var u=r[m];if(Ps(u)){var p=u.isMiddle;r[m]=La(p.delim,n,a,p.options,t.mode,[])}}var b;if(t.right===".")b=Qr(e,["mclose"]);else{var y=t.rightColor?e.withColor(t.rightColor):e;b=La(t.right,n,a,y,t.mode,["mclose"])}return r.push(b),I(["minner"],r,e)},mathmlBuilder:(t,e)=>{Hs(t);var r=pt(t.body,e);if(t.left!=="."){var n=new O("mo",[gt(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var a=new O("mo",[gt(t.right,t.mode)]);a.setAttribute("fence","true"),t.rightColor&&a.setAttribute("mathcolor",t.rightColor),r.push(a)}return ui(r)}});W({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=Yn(e[0],t);if(!t.parser.leftrightDepth)throw new q("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;return t.delim==="."?r=Qr(e,[]):(r=$o(t.delim,1,e,t.mode,[]),r.isMiddle={delim:t.delim,options:e}),r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?gt("|","text"):gt(t.delim,t.mode),n=new O("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Mu=(t,e)=>{var r=Cr(Ae(t.body,e),e),n=t.label.slice(1),a=e.sizeMultiplier,i,s,o=Ut(t.body);if(n==="sout")i=I(["katex-stretchy","katex-sout"]),i.height=e.fontMetrics().defaultRuleThickness/a,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=qe({number:.6,unit:"pt"},e),m=qe({number:.35,unit:"ex"},e),u=e.havingBaseSizing();a=a/u.sizeMultiplier;var p=r.height+r.depth+l+m;r.style.paddingLeft=F(p/2+l);var b=Math.floor(1e3*p*a),y=yd(b),k=new wt([new $t("phase",y)],{width:"400em",height:F(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});i=ar(["hide-tail"],[k],e),i.style.height=F(p),s=r.depth+l+m}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var T,C,D=0;/box/.test(n)?(D=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),T=e.fontMetrics().fboxsep+(n==="colorbox"?0:D),C=T):n==="angl"?(D=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),T=4*D,C=Math.max(0,.25-r.depth)):(T=o?.2:0,C=T),i=eu(r,n,T,C,e),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=F(D)):n==="angl"&&D!==.049&&(i.style.borderTopWidth=F(D),i.style.borderRightWidth=F(D)),s=r.depth+C,t.backgroundColor&&(i.style.backgroundColor=t.backgroundColor,t.borderColor&&(i.style.borderColor=t.borderColor))}var R;if(t.backgroundColor)R=Ce({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]});else{var G=/cancel|phase/.test(n)?["svg-align"]:[];R=Ce({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:G}]})}return/cancel/.test(n)&&(R.height=r.height,R.depth=r.depth),/cancel/.test(n)&&!o?I(["mord","cancel-lap"],[R],e):I(["mord"],[R],e)},Cu=(t,e)=>{var r,n=new O(t.label.includes("colorbox")?"mpadded":"menclose",[ze(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var a=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+F(a)+" solid "+t.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};W({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=be(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:Mu,mathmlBuilder:Cu});W({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(t,e,r){var n=t.parser,a=t.funcName,i=be(e[0],"color-token").color,s=be(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:o}}});W({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}});W({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});W({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName;r.mode==="math"&<({strict:r.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var a=e[0];return{type:"enclose",mode:r.mode,label:n,body:a}}});W({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Io={};function Et(t){for(var e=t.type,r=t.names,n=t.props,a=t.handler,i=t.htmlBuilder,s=t.mathmlBuilder,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)Io[r[l]]=o;i&&(Xr[e]=i),s&&(_r[e]=s)}var Lo={};function h(t,e){Lo[t]=e}var ot=class t{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new t(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}},ut=class t{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new t(r,ot.range(this,e))}};function js(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var Kn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new q("{"+t.envName+"} can be used only in display mode.")},zu=new Set(["gather","gather*"]);function hi(t){if(!t.includes("ed"))return!t.includes("*")}function sr(t,e,r){var n=e.hskipBeforeAndAfter,a=e.addJot,i=e.cols,s=e.arraystretch,o=e.colSeparationType,l=e.autoTag,m=e.singleRow,u=e.emptySingleRow,p=e.maxNumCols,b=e.leqno;if(t.gullet.beginGroup(),m||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var y=t.gullet.expandMacroAsText("\\arraystretch");if(y==null)s=1;else if(s=parseFloat(y),!s||s<0)throw new q("Invalid \\arraystretch: "+y)}t.gullet.beginGroup();var k=[],T=[k],C=[],D=[],R=l!=null?[]:void 0;function G(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function L(){R&&(t.gullet.macros.get("\\df@tag")?(R.push(t.subparse([new ut("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):R.push(!!l&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(G(),D.push(js(t));;){var X=t.parseExpression(!1,m?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup();var J={type:"ordgroup",mode:t.mode,body:X};r&&(J={type:"styling",mode:t.mode,style:r,resetFont:!0,body:[J]}),k.push(J);var ae=t.fetch().text;if(ae==="&"){if(p&&k.length===p){if(m||o)throw new q("Too many tab characters: &",t.nextToken);lt({strict:t.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0})}t.consume()}else if(ae==="\\end"){L(),k.length===1&&J.type==="styling"&&J.body.length===1&&J.body[0].type==="ordgroup"&&J.body[0].body.length===0&&(T.length>1||!u)&&!Array.isArray(R?.[R.length-1])&&!(l&&R?.[R.length-1]===!0)&&T.pop(),D.length<T.length+1&&D.push([]);break}else if(ae==="\\\\"){t.consume();var Y=void 0;t.gullet.future().text!==" "&&(Y=t.parseSizeGroup(!0)),C.push(Y?Y.value:null),L(),D.push(js(t)),k=[],T.push(k),G()}else throw new q("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:a,arraystretch:s,body:T,cols:i,rowGaps:C,hskipBeforeAndAfter:n,hLinesBeforeRow:D,colSeparationType:o,tags:R,leqno:b}}function gi(t){return t.slice(0,1)==="d"?"display":"text"}var Dt=function(e,r){var n,a,i=e.body.length,s=e.hLinesBeforeRow,o=0,l=new Array(i),m=[],u=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),p=1/r.fontMetrics().ptPerEm,b=5*p;if(e.colSeparationType&&e.colSeparationType==="small"){var y=r.havingStyle(me.SCRIPT).sizeMultiplier;b=.2778*(y/r.sizeMultiplier)}var k=e.colSeparationType==="CD"?qe({number:3,unit:"ex"},r):12*p,T=3*p,C=e.arraystretch*k,D=.7*C,R=.3*C,G=0;function L(vn){for(var xn=0;xn<vn.length;++xn)xn>0&&(G+=.25),m.push({pos:G,isDashed:vn[xn]})}for(L(s[0]),n=0;n<e.body.length;++n){var X=e.body[n],J=D,ae=R;o<X.length&&(o=X.length);var Y={cells:new Array(X.length),height:0,depth:0,pos:0};for(a=0;a<X.length;++a){var V=Ae(X[a],r);ae<V.depth&&(ae=V.depth),J<V.height&&(J=V.height),Y.cells[a]=V}var Z=e.rowGaps[n],Q=0;Z&&(Q=qe(Z,r),Q>0&&(Q+=R,ae<Q&&(ae=Q),Q=0)),e.addJot&&n<e.body.length-1&&(ae+=T),Y.height=J,Y.depth=ae,G+=J,Y.pos=G,G+=ae+Q,l[n]=Y,L(s[n+1])}var te=G/2+r.fontMetrics().axisHeight,fe=e.cols||[],he=[],ye,M,j=[];if(e.tags&&e.tags.some(vn=>vn))for(n=0;n<i;++n){var H=l[n],ee=H.pos-te,ie=e.tags[n],Se=void 0;ie===!0?Se=I(["eqn-num"],[],r):ie===!1?Se=I([],[],r):Se=I([],We(ie,r,!0),r),Se.depth=H.depth,Se.height=H.height,j.push({type:"elem",elem:Se,shift:ee})}for(a=0,M=0;a<o||M<fe.length;++a,++M){for(var Fe,Me=fe[M],dt=!0;((pr=Me)==null?void 0:pr.type)==="separator";){var pr;if(dt||(ye=I(["arraycolsep"],[]),ye.style.width=F(r.fontMetrics().doubleRuleSep),he.push(ye)),Me.separator==="|"||Me.separator===":"){var U=Me.separator==="|"?"solid":"dashed",ce=I(["vertical-separator"],[],r);ce.style.height=F(G),ce.style.borderRightWidth=F(u),ce.style.borderRightStyle=U,ce.style.margin="0 "+F(-u/2);var se=G-te;se&&(ce.style.verticalAlign=F(-se)),he.push(ce)}else throw new q("Invalid separator type: "+Me.separator);M++,Me=fe[M],dt=!1}if(!(a>=o)){var ve=void 0;if(a>0||e.hskipBeforeAndAfter){var we,Ee;ve=(we=(Ee=Me)==null?void 0:Ee.pregap)!=null?we:b,ve!==0&&(ye=I(["arraycolsep"],[]),ye.style.width=F(ve),he.push(ye))}var Re=[];for(n=0;n<i;++n){var Ge=l[n],tt=Ge.cells[a];if(tt){var kr=Ge.pos-te;tt.depth=Ge.depth,tt.height=Ge.height,Re.push({type:"elem",elem:tt,shift:kr})}}var Hr=Ce({positionType:"individualShift",children:Re}),Fc=I(["col-align-"+(((Fe=Me)==null?void 0:Fe.align)||"c")],[Hr]);if(he.push(Fc),a<o-1||e.hskipBeforeAndAfter){var ys,vs;ve=(ys=(vs=Me)==null?void 0:vs.postgap)!=null?ys:b,ve!==0&&(ye=I(["arraycolsep"],[]),ye.style.width=F(ve),he.push(ye))}}}var yn=I(["mtable"],he);if(m.length>0){for(var Pc=Mr("katex-hline",r,u),Hc=Mr("katex-hdashline",r,u),Aa=[{type:"elem",elem:yn,shift:0}];m.length>0;){var xs=m.pop(),ws=xs.pos-te;xs.isDashed?Aa.push({type:"elem",elem:Hc,shift:ws}):Aa.push({type:"elem",elem:Pc,shift:ws})}yn=Ce({positionType:"individualShift",children:Aa})}if(j.length===0)return I(["mord"],[yn],r);var jc=Ce({positionType:"individualShift",children:j}),Uc=I(["katex-tag"],[jc],r);return Wt([yn,Uc])},Ru={c:"center ",l:"left ",r:"right "},It=function(e,r){for(var n=[],a=new O("mtd",[],["mtr-glue"]),i=new O("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],l=[],m=0;m<o.length;m++)l.push(new O("mtd",[ze(o[m],r)]));e.tags&&e.tags[s]&&(l.unshift(a),l.push(a),e.leqno?l.unshift(i):l.push(i)),n.push(new O("mtr",l))}var u=new O("mtable",n),p=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",F(p));var b="",y="";if(e.cols&&e.cols.length>0){var k=e.cols,T="",C=!1,D=0,R=k.length;k[0].type==="separator"&&(b+="top ",D=1),k[k.length-1].type==="separator"&&(b+="bottom ",R-=1);for(var G=D;G<R;G++){var L=k[G];L.type==="align"?(y+=Ru[L.align],C&&(T+="none "),C=!0):L.type==="separator"&&C&&(T+=L.separator==="|"?"solid ":"dashed ",C=!1)}u.setAttribute("columnalign",y.trim()),/[sd]/.test(T)&&u.setAttribute("columnlines",T.trim())}if(e.colSeparationType==="align"){for(var X=e.cols||[],J="",ae=1;ae<X.length;ae++)J+=ae%2?"0em ":"1em ";u.setAttribute("columnspacing",J.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?u.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?u.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var Y="",V=e.hLinesBeforeRow;b+=V[0].length>0?"left ":"",b+=V[V.length-1].length>0?"right ":"";for(var Z=1;Z<V.length-1;Z++)Y+=V[Z].length===0?"none ":V[Z][0]?"dashed ":"solid ";return/[sd]/.test(Y)&&u.setAttribute("rowlines",Y.trim()),b!==""&&(u=new O("menclose",[u]),u.setAttribute("notation",b.trim())),e.arraystretch&&e.arraystretch<1&&(u=new O("mstyle",[u]),u.setAttribute("scriptlevel","1")),u},Bo=function(e,r){e.envName.includes("ed")||Kn(e);var n=[],a=e.envName==="split",i=sr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:hi(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes("at")?"alignat":"align",maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,o=0,l={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var m="Number of columns should be a positive integer",u=pi(r[0],m);if(!/^[0-9]+$/.test(u)||Number(u)<1)throw new q(m,r[0]);s=Number(u),o=s*2}var p=!o;i.body.forEach(function(T){for(var C=1;C<T.length;C+=2){var D=be(T[C],"styling"),R=be(D.body[0],"ordgroup");R.body.unshift(l)}if(p)o<T.length&&(o=T.length);else{var G=T.length/2;if(s<G)throw new q("Too many math in a row: "+("expected "+s+", but got "+G),T[0])}});for(var b=0;b<o;++b){var y="r",k=0;b%2===1?y="l":b>0&&p&&(k=1),n[b]={type:"align",align:y,pregap:k,postgap:0}}return i.colSeparationType=p?"align":"alignat",i};Et({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Vn(e[0]),n=r?[e[0]]:be(e[0],"ordgroup").body,a=n.map(function(s){var o=Un(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new q("Unknown column alignment: "+l,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return sr(t.parser,i,gi(t.envName))},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var a=t.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new q("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=sr(t.parser,n,gi(t.envName)),s=Math.max(0,...i.body.map(o=>o.length));return i.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[i],left:e[0],right:e[1],rightColor:void 0}:i},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=sr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Vn(e[0]),n=r?[e[0]]:be(e[0],"ordgroup").body,a=n.map(function(o){var l=Un(o),m=l.text;if("lc".includes(m))return{type:"align",align:m};throw new q("Unknown column alignment: "+m,o)});if(a.length>1)throw new q("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},s=sr(t.parser,i,"script");if(s.body.length>0&&s.body[0].length>1)throw new q("{subarray} can contain only one column");return s},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=sr(t.parser,e,gi(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.includes("r")?".":"\\{",right:t.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Bo,htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){zu.has(t.envName)&&Kn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:hi(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return sr(t.parser,e,"display")},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Bo,htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){Kn(t);var e={autoTag:hi(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return sr(t.parser,e,"display")},htmlBuilder:Dt,mathmlBuilder:It});Et({type:"array",names:["CD"],props:{numArgs:0},handler(t){return Kn(t),pu(t.parser)},htmlBuilder:Dt,mathmlBuilder:It});h("\\nonumber","\\gdef\\@eqnsw{0}");h("\\notag","\\nonumber");W({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(t,e){throw new q(t.funcName+" valid only within array environment")}});var Us=Io;W({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(t,e){var r=t.parser,n=t.funcName,a=e[0];if(a.type!=="ordgroup")throw new q("Invalid environment name",a);var i=pi(a,"Environment name should contain only text characters and spaces",!0);if(n==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Us,i))throw new q("No such environment: "+i,a);var s=Us[i],o=r.parseArguments("\\begin{"+i+"}",s),l=o.args,m=o.optArgs,u={mode:r.mode,envName:i,parser:r},p=s.handler(u,l,m);r.expect("\\end",!1);var b=r.nextToken,y=be(r.parseFunction(),"environment");if(y.name!==i)throw new q("Mismatch: \\begin{"+i+"} matched by \\end{"+y.name+"}",b);return p}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var Gu=(t,e)=>{var r=t.font,n=e.withFont(r);return Ae(t.body,n)},$u=(t,e)=>{var r=t.font,n=e.withFont(r);return ze(t.body,n)},Vs={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};W({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=Zr(e[0]),i=n in Vs?Vs[n]:n;return{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Gu,mathmlBuilder:$u});W({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"mclass",mode:r.mode,mclass:Wn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Ut(n)}}});W({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=t.breakOnTokenText,i=r.mode,s=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}}});var Eu=(t,e)=>{var r=e.style,n=r.fracNum(),a=r.fracDen(),i;i=e.havingStyle(n);var s=Ae(t.numer,i,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<l?l:s.depth}i=e.havingStyle(a);var m=Ae(t.denom,i,e),u,p,b;t.hasBarLine?(t.barSize?(p=qe(t.barSize,e),u=Mr("frac-line",e,p)):u=Mr("frac-line",e),p=u.height,b=u.height):(u=null,p=0,b=e.fontMetrics().defaultRuleThickness);var y,k,T;r.size===me.DISPLAY.size?(y=e.fontMetrics().num1,p>0?k=3*b:k=7*b,T=e.fontMetrics().denom1):(p>0?(y=e.fontMetrics().num2,k=b):(y=e.fontMetrics().num3,k=3*b),T=e.fontMetrics().denom2);var C;if(u){var R=e.fontMetrics().axisHeight;y-s.depth-(R+.5*p)<k&&(y+=k-(y-s.depth-(R+.5*p))),R-.5*p-(m.height-T)<k&&(T+=k-(R-.5*p-(m.height-T)));var G=-(R-.5*p);C=Ce({positionType:"individualShift",children:[{type:"elem",elem:m,shift:T},{type:"elem",elem:u,shift:G},{type:"elem",elem:s,shift:-y}]})}else{var D=y-s.depth-(m.height-T);D<k&&(y+=.5*(k-D),T+=.5*(k-D)),C=Ce({positionType:"individualShift",children:[{type:"elem",elem:m,shift:T},{type:"elem",elem:s,shift:-y}]})}i=e.havingStyle(r),C.height*=i.sizeMultiplier/e.sizeMultiplier,C.depth*=i.sizeMultiplier/e.sizeMultiplier;var L;r.size===me.DISPLAY.size?L=e.fontMetrics().delim1:r.size===me.SCRIPTSCRIPT.size?L=e.havingStyle(me.SCRIPT).fontMetrics().delim2:L=e.fontMetrics().delim2;var X,J;return t.leftDelim==null?X=Qr(e,["mopen"]):X=ti(t.leftDelim,L,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?J=I([]):t.rightDelim==null?J=Qr(e,["mclose"]):J=ti(t.rightDelim,L,!0,e.havingStyle(r),t.mode,["mclose"]),I(["mord"].concat(i.sizingClasses(e)),[X,I(["mfrac"],[C]),J],e)},Du=(t,e)=>{var r=new O("mfrac",[ze(t.numer,e),ze(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=qe(t.barSize,e);r.setAttribute("linethickness",F(n))}if(t.leftDelim!=null||t.rightDelim!=null){var a=[];if(t.leftDelim!=null){var i=new O("mo",[new Pe(t.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}if(a.push(r),t.rightDelim!=null){var s=new O("mo",[new Pe(t.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}return ui(a)}return r},qo=(t,e)=>{if(!e)return t;var r={type:"styling",mode:t.mode,style:e,body:[t]};return r};W({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0],i=e[1],s,o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var m=n==="\\cfrac",u=null;return m||n.startsWith("\\d")?u="display":n.startsWith("\\t")&&(u="text"),qo({type:"genfrac",mode:r.mode,numer:a,denom:i,continued:m,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},u)},htmlBuilder:Eu,mathmlBuilder:Du});W({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(t){var e=t.parser,r=t.funcName,n=t.token,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:a,token:n}}});var Ws=["display","text","script","scriptscript"],Ys=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};W({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(t,e){var r=t.parser,n=e[4],a=e[5],i=Zr(e[0]),s=i.type==="atom"&&i.family==="open"?Ys(i.text):null,o=Zr(e[1]),l=o.type==="atom"&&o.family==="close"?Ys(o.text):null,m=be(e[2],"size"),u,p=null;m.isBlank?u=!0:(p=m.value,u=p.number>0);var b=null,y=e[3];if(y.type==="ordgroup"){if(y.body.length>0){var k=be(y.body[0],"textord");b=Ws[Number(k.text)]}}else y=be(y,"textord"),b=Ws[Number(y.text)];return qo({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:u,barSize:p,leftDelim:s,rightDelim:l},b)}});W({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(t,e){var r=t.parser;t.funcName;var n=t.token;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:be(e[0],"size").value,token:n}}});W({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(t,e)=>{var r=t.parser;t.funcName;var n=e[0],a=be(e[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var i=e[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var Oo=(t,e)=>{var r=e.style,n,a;t.type==="supsub"?(n=t.sup?Ae(t.sup,e.havingStyle(r.sup()),e):Ae(t.sub,e.havingStyle(r.sub()),e),a=be(t.base,"horizBrace")):a=be(t,"horizBrace");var i=Ae(a.base,e.havingBaseStyle(me.DISPLAY)),s=jn(a,e),o;if(a.isOver?o=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=Ce({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:i}]}),n){var l=I(["minner",a.isOver?"mover":"munder"],[o],e);a.isOver?o=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):o=Ce({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return I(["minner",a.isOver?"mover":"munder"],[o],e)},Iu=(t,e)=>{var r=Hn(t.label);return new O(t.isOver?"mover":"munder",[ze(t.base,e),r])};W({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(t,e){var r=t.parser,n=t.funcName;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:e[0]}},htmlBuilder:Oo,mathmlBuilder:Iu});W({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[1],a=be(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:He(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1);return Bd(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=ir(t.body,e);return r instanceof O||(r=new O("mrow",[r])),r.setAttribute("href",t.href),r}});W({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=be(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:He(o)}}});W({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(t,e){var r=t.parser;return{type:"hbox",mode:r.mode,body:He(e[0])}},htmlBuilder(t,e){var r=We(t.body,e.withFont(""),!1);return Wt(r)},mathmlBuilder(t,e){return new O("mrow",pt(t.body,e.withFont("")))}});W({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName;t.token;var a=be(e[0],"raw").string,i=e[1];r.settings.strict&<({strict:r.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var s,o={};switch(n){case"\\htmlClass":o.class=a,s={command:"\\htmlClass",class:a};break;case"\\htmlId":o.id=a,s={command:"\\htmlId",id:a};break;case"\\htmlStyle":o.style=a,s={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l="{,}",m=[],u="",p=0;p<a.length;p++)a.startsWith(l,p)?(u+=",",p+=l.length-1):a[p]===","?(m.push(u),u=""):u+=a[p];m.push(u);for(var b=0;b<m.length;b++){var y=m[b],k=y.indexOf("=");if(k<0)throw new q("\\htmlData key/value '"+y+"' missing equals sign");var T=y.slice(0,k),C=y.slice(k+1);o["data-"+T.trim()]=C}s={command:"\\htmlData",attributes:o};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:o,body:He(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=We(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var a=I(n,r,e);for(var i of Object.entries(t.attributes)){var s=i[0],o=i[1];s!=="class"&&a.setAttribute(s,o)}return a},mathmlBuilder:(t,e)=>ir(t.body,e)});W({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(t,e)=>{var r=t.parser;return{type:"htmlmathml",mode:r.mode,html:He(e[0]),mathml:He(e[1])}},htmlBuilder:(t,e)=>{var r=We(t.html,e,!1);return Wt(r)},mathmlBuilder:(t,e)=>ir(t.mathml,e)});var Ba=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new q("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!lo(n))throw new q("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};W({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(t,e,r)=>{var n=t.parser,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=be(r[0],"raw").string,m=l.split(","),u=0;u<m.length;u++){var p=m[u].split("=");if(p.length===2){var b=p[1].trim();switch(p[0].trim()){case"alt":o=b;break;case"width":a=Ba(b);break;case"height":i=Ba(b);break;case"totalheight":s=Ba(b);break;default:throw new q("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var y=be(e[0],"url").url;return o===""&&(o=y,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:y})?{type:"includegraphics",mode:n.mode,alt:o,width:a,height:i,totalheight:s,src:y}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=qe(t.height,e),n=0;t.totalheight.number>0&&(n=qe(t.totalheight,e)-r);var a=0;t.width.number>0&&(a=qe(t.width,e));var i={height:F(r+n)};a>0&&(i.width=F(a)),n>0&&(i.verticalAlign=F(-n));var s=new Ha(t.src,t.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new O("mglyph",[]);r.setAttribute("alt",t.alt);var n=qe(t.height,e),a=0;if(t.totalheight.number>0&&(a=qe(t.totalheight,e)-n,r.setAttribute("valign",F(-a))),r.setAttribute("height",F(n+a)),t.width.number>0){var i=qe(t.width,e);r.setAttribute("width",F(i))}return r.setAttribute("src",t.src),r}});W({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=be(e[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||lt({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units"),report:!0}),r.mode!=="math"&<({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" works only in math mode",report:!0})):s&<({strict:r.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+n+" doesn't support mu units",report:!0})}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(t,e){return ho(t.dimension,e)},mathmlBuilder(t,e){var r=qe(t.dimension,e);return new Ln(r)}});W({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=I([],[Ae(t.body,e)]),r=I(["katex-inner"],[r],e)):r=I(["katex-inner"],[Ae(t.body,e)]);var n=I(["katex-fix"],[]),a=I([t.alignment],[r,n],e),i=I(["katex-strut"]);return i.style.height=F(a.height+a.depth),a.depth&&(i.style.verticalAlign=F(-a.depth)),a.children.unshift(i),a=I(["katex-thinbox"],[a],e),I(["mord","katex-vbox"],[a],e)},mathmlBuilder:(t,e)=>{var r=new O("mpadded",[ze(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});W({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){var r=t.funcName,n=t.parser,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:s}}});W({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(t,e){throw new q("Mismatched "+t.funcName)}});var Ks=(t,e)=>{switch(e.style.size){case me.DISPLAY.size:return t.display;case me.TEXT.size:return t.text;case me.SCRIPT.size:return t.script;case me.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};W({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(t,e)=>{var r=t.parser;return{type:"mathchoice",mode:r.mode,display:He(e[0]),text:He(e[1]),script:He(e[2]),scriptscript:He(e[3])}},htmlBuilder:(t,e)=>{var r=Ks(t,e),n=We(r,e,!1);return Wt(n)},mathmlBuilder:(t,e)=>{var r=Ks(t,e);return ir(r,e)}});var Fo=(t,e,r,n,a,i,s)=>{t=I([],[t]);var o=r&&Ut(r),l,m;if(e){var u=Ae(e,n.havingStyle(a.sup()),n);m={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var p=Ae(r,n.havingStyle(a.sub()),n);l={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}var b;if(m&&l){var y=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+t.depth+s;b=Ce({positionType:"bottom",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:F(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:F(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var k=t.height-s;b=Ce({positionType:"top",positionData:k,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:F(-i)},{type:"kern",size:l.kern},{type:"elem",elem:t}]})}else if(m){var T=t.depth+s;b=Ce({positionType:"bottom",positionData:T,children:[{type:"elem",elem:t},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:F(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return t;var C=[b];if(l&&i!==0&&!o){var D=I(["mspace"],[],n);D.style.marginRight=F(i),C.unshift(D)}return I(["mop","op-limits"],C,n)},Po=new Set(["\\smallint"]),Ho=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=be(t.base,"op"),a=!0):i=be(t,"op");var s=e.style,o=!1;s.size===me.DISPLAY.size&&i.symbol&&!Po.has(i.name)&&(o=!0);var l,m;if(i.symbol){var u=o?"Size2-Regular":"Size1-Regular",p="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(p=i.name.slice(1),i.name=p==="oiint"?"\\iint":"\\iiint"),l=rt(i.name,u,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),m=l.italic,p.length>0){var b=bo(p+"Size"+(o?"2":"1"),e);l=Ce({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:b,shift:o?.08:0}]}),i.name="\\"+p,l.classes.unshift("mop"),l.italic=m}}else if(i.body){var y=We(i.body,e,!0);y.length===1&&y[0]instanceof at?(l=y[0],l.classes[0]="mop"):l=I(["mop"],y,e)}else{for(var k=[],T=1;T<i.name.length;T++)k.push(ci(i.name[T],i.mode,e));l=I(["mop"],k,e)}var C=0,D=0;if((l instanceof at||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift){var R;C=(l.height-l.depth)/2-e.fontMetrics().axisHeight,D=(R=l.italic)!=null?R:0}return a?Fo(l,r,n,e,s,D,C):(C&&(l.style.position="relative",l.style.top=F(C)),l)},Lu=(t,e)=>{var r;if(t.symbol)r=new O("mo",[gt(t.name,t.mode)]),Po.has(t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new O("mo",pt(t.body,e));else{r=new O("mi",[new Pe(t.name.slice(1))]);var n=new O("mo",[gt("\u2061","text")]);t.parentIsSupSub?r=new O("mrow",[r,n]):r=xo([r,n])}return r},Bu={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};W({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],numArgs:0,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=n;return a.length===1&&(a=Bu[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Ho,mathmlBuilder:Lu});W({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:He(n)}}});var qu={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};W({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"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}}});W({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(t){var e=t.parser,r=t.funcName;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}}});W({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],numArgs:0,allowedInArgument:!0,handler(t){var e=t.parser,r=t.funcName,n=r;return n.length===1&&(n=qu[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var jo=(t,e)=>{var r,n,a=!1,i;t.type==="supsub"?(r=t.sup,n=t.sub,i=be(t.base,"operatorname"),a=!0):i=be(t,"operatorname");var s;if(i.body.length>0){for(var o=i.body.map(p=>{var b="text"in p?p.text:void 0;return typeof b=="string"?{type:"textord",mode:p.mode,text:b}:p}),l=We(o,e.withFont("mathrm"),!0),m=0;m<l.length;m++){var u=l[m];u instanceof at&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=I(["mop"],l,e)}else s=I(["mop"],[],e);return a?Fo(s,r,n,e,e.style,0,0):s},Ou=(t,e)=>{for(var r=pt(t.body,e.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof Ln))if(i instanceof O)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof Pe?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(u=>u.toText()).join("");r=[new Pe(o)]}var l=new O("mi",r);l.setAttribute("mathvariant","normal");var m=new O("mo",[gt("\u2061","text")]);return t.parentIsSupSub?new O("mrow",[l,m]):xo([l,m])};W({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(t,e)=>{var r=t.parser,n=t.funcName,a=e[0];return{type:"operatorname",mode:r.mode,body:He(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:jo,mathmlBuilder:Ou});h("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");gr({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?Wt(We(t.body,e,!1)):I(["mord"],We(t.body,e,!0),e)},mathmlBuilder(t,e){return ir(t.body,e,!0)}});W({type:"overline",names:["\\overline"],numArgs:1,handler(t,e){var r=t.parser,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=Ae(t.body,e.havingCrampedStyle()),n=Mr("overline-line",e),a=e.fontMetrics().defaultRuleThickness,i=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return I(["mord","katex-overline"],[i],e)},mathmlBuilder(t,e){var r=new O("mo",[new Pe("\u203E")]);r.setAttribute("stretchy","true");var n=new O("mover",[ze(t.body,e),r]);return n.setAttribute("accent","true"),n}});W({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"phantom",mode:r.mode,body:He(n)}},htmlBuilder:(t,e)=>{var r=We(t.body,e.withPhantom(),!1);return Wt(r)},mathmlBuilder:(t,e)=>{var r=pt(t.body,e);return new O("mphantom",r)}});h("\\hphantom","\\smash{\\phantom{#1}}");W({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(t,e)=>{var r=t.parser,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=I(["katex-inner"],[Ae(t.body,e.withPhantom())]),n=I(["katex-fix"],[]);return I(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=pt(He(t.body),e),n=new O("mphantom",r),a=new O("mpadded",[n]);return a.setAttribute("width","0px"),a}});W({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(t,e){var r=t.parser,n=be(e[0],"size").value,a=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(t,e){var r=Ae(t.body,e),n=qe(t.dy,e);return Ce({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new O("mpadded",[ze(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}});var Uo=(t,e)=>{var r=t.parser;return{type:"reflectbox",mode:r.mode,body:e[0]}};W({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:Uo,htmlBuilder(t,e){return I(["mord","reflectbox"],[Ae(t.body,e)],e)},mathmlBuilder(t,e){return ze(t.body,e)}});W({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Uo});W({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(t){var e=t.parser;return{type:"internal",mode:e.mode}}});W({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(t,e,r){var n=t.parser,a=r[0],i=be(e[0],"size"),s=be(e[1],"size");return{type:"rule",mode:n.mode,shift:a&&be(a,"size").value,width:i.value,height:s.value}},htmlBuilder(t,e){var r=I(["mord","katex-rule"],[],e),n=qe(t.width,e),a=qe(t.height,e),i=t.shift?qe(t.shift,e):0;return r.style.borderRightWidth=F(n),r.style.borderTopWidth=F(a),r.style.bottom=F(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=qe(t.width,e),n=qe(t.height,e),a=t.shift?qe(t.shift,e):0,i=e.color&&e.getColor()||"black",s=new O("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",F(r)),s.setAttribute("height",F(n));var o=new O("mpadded",[s]);return a>=0?o.setAttribute("height",F(a)):(o.setAttribute("height",F(a)),o.setAttribute("depth",F(-a))),o.setAttribute("voffset",F(a)),o}});function Vo(t,e,r){for(var n=We(t,e,!1),a=e.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("katex-sizing");s<0?Array.prototype.push.apply(n[i].classes,e.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+e.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Wt(n)}var Js=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Fu=(t,e)=>{var r=e.havingSize(t.size);return Vo(t.body,r,e)};W({type:"sizing",names:Js,numArgs:0,allowedInText:!0,handler:(t,e)=>{var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Js.indexOf(n)+1,body:i}},htmlBuilder:Fu,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=pt(t.body,r),a=new O("mstyle",n);return a.setAttribute("mathsize",F(r.sizeMultiplier)),a}});W({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(t,e,r)=>{var n=t.parser,a=!1,i=!1,s=r[0]&&be(r[0],"ordgroup");if(s)for(var o,l=0;l<s.body.length;++l){var m=s.body[l];if(o=Un(m).text,o==="t")a=!0;else if(o==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var u=e[0];return{type:"smash",mode:n.mode,body:u,smashHeight:a,smashDepth:i}},htmlBuilder:(t,e)=>{var r=I([],[Ae(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0),t.smashDepth&&(r.depth=0),t.smashHeight&&t.smashDepth)return I(["mord","katex-smash"],[r],e);if(r.children)for(var n=0;n<r.children.length;n++)t.smashHeight&&(r.children[n].height=0),t.smashDepth&&(r.children[n].depth=0);var a=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return I(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new O("mpadded",[ze(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}});W({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(t,e,r){var n=t.parser,a=r[0],i=e[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(t,e){var r=Ae(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=Cr(r,e);var n=e.fontMetrics(),a=n.defaultRuleThickness,i=a;e.style.id<me.TEXT.id&&(i=e.fontMetrics().xHeight);var s=a+i/4,o=r.height+r.depth+s+a,l=wu(o,e),m=l.span,u=l.ruleWidth,p=l.advanceWidth,b=m.height-u;b>r.height+r.depth+s&&(s=(s+b-r.height-r.depth)/2);var y=m.height-r.height-s-u;r.style.paddingLeft=F(p);var k=Ce({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+y)},{type:"elem",elem:m},{type:"kern",size:u}]});if(t.index){var T=e.havingStyle(me.SCRIPTSCRIPT),C=Ae(t.index,T,e),D=.6*(k.height-k.depth),R=Ce({positionType:"shift",positionData:-D,children:[{type:"elem",elem:C}]}),G=I(["katex-root"],[R]);return I(["mord","sqrt"],[G,k],e)}else return I(["mord","sqrt"],[k],e)},mathmlBuilder(t,e){var r=t.body,n=t.index;return n?new O("mroot",[ze(r,e),ze(n,e)]):new O("msqrt",[ze(r,e)])}});var ri={display:me.DISPLAY,text:me.TEXT,script:me.SCRIPT,scriptscript:me.SCRIPTSCRIPT};function Pu(t){return t in ri}W({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(t,e){var r=t.breakOnTokenText,n=t.funcName,a=t.parser,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);if(!Pu(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(t,e){var r=ri[t.style],n=e.havingStyle(r);return t.resetFont&&(n=n.withFont("")),Vo(t.body,n,e)},mathmlBuilder(t,e){var r=ri[t.style],n=e.havingStyle(r);t.resetFont&&(n=n.withFont(""));var a=pt(t.body,n),i=new O("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});var Hu=function(e,r){var n=e.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===me.DISPLAY.size||n.alwaysHandleSupSub);return a?Ho:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===me.DISPLAY.size||n.limits);return i?jo:null}else{if(n.type==="accent")return Ut(n.base)?Ao:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Oo:null}else return null}else return null};gr({type:"supsub",htmlBuilder(t,e){var r=Hu(t,e);if(r)return r(t,e);var n=t.base,a=t.sup,i=t.sub,s=Ae(n,e),o,l,m=e.fontMetrics(),u=0,p=0,b=n&&Ut(n);if(a){var y=e.havingStyle(e.style.sup());o=Ae(a,y,e),b||(u=s.height-y.fontMetrics().supDrop*y.sizeMultiplier/e.sizeMultiplier)}if(i){var k=e.havingStyle(e.style.sub());l=Ae(i,k,e),b||(p=s.depth+k.fontMetrics().subDrop*k.sizeMultiplier/e.sizeMultiplier)}var T;e.style===me.DISPLAY?T=m.sup1:e.style.cramped?T=m.sup3:T=m.sup2;var C=e.sizeMultiplier,D=F(.5/m.ptPerEm/C),R=null;if(l){var G=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");if(s instanceof at||G){var L;R=F(-((L=s.italic)!=null?L:0))}}var X;if(o&&l){u=Math.max(u,T,o.depth+.25*m.xHeight),p=Math.max(p,m.sub2);var J=m.defaultRuleThickness,ae=4*J;if(u-o.depth-(l.height-p)<ae){p=ae-(u-o.depth)+l.height;var Y=.8*m.xHeight-(u-o.depth);Y>0&&(u+=Y,p-=Y)}var V=[{type:"elem",elem:l,shift:p,marginRight:D,marginLeft:R},{type:"elem",elem:o,shift:-u,marginRight:D}];X=Ce({positionType:"individualShift",children:V})}else if(l){p=Math.max(p,m.sub1,l.height-.8*m.xHeight);var Z=[{type:"elem",elem:l,marginLeft:R,marginRight:D}];X=Ce({positionType:"shift",positionData:p,children:Z})}else if(o)u=Math.max(u,T,o.depth+.25*m.xHeight),X=Ce({positionType:"shift",positionData:-u,children:[{type:"elem",elem:o,marginRight:D}]});else throw new Error("supsub must have either sup or sub.");var Q=_a(s,"right")||"mord";return I([Q],[s,I(["msupsub"],[X])],e)},mathmlBuilder(t,e){var r=!1,n,a;t.base&&t.base.type==="horizBrace"&&(a=!!t.sup,a===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var i=[ze(t.base,e)];t.sub&&i.push(ze(t.sub,e)),t.sup&&i.push(ze(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var m=t.base;m&&m.type==="op"&&m.limits&&e.style===me.DISPLAY||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(e.style===me.DISPLAY||m.limits)?s="munderover":s="msubsup"}else{var l=t.base;l&&l.type==="op"&&l.limits&&(e.style===me.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===me.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===me.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===me.DISPLAY)?s="mover":s="msup"}return new O(s,i)}});gr({type:"atom",htmlBuilder(t,e){return ci(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new O("mo",[gt(t.text,t.mode)]);if(t.family==="bin"){var n=mi(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var Wo={mi:"italic",mn:"normal",mtext:"normal"};gr({type:"mathord",htmlBuilder(t,e){return Pn(t,e)},mathmlBuilder(t,e){var r=new O("mi",[gt(t.text,t.mode,e)]),n=mi(t,e)||"italic";return n!==Wo[r.type]&&r.setAttribute("mathvariant",n),r}});gr({type:"textord",htmlBuilder(t,e){return Pn(t,e)},mathmlBuilder(t,e){var r=gt(t.text,t.mode,e),n=mi(t,e)||"normal",a;return t.mode==="text"?a=new O("mtext",[r]):/[0-9]/.test(t.text)?a=new O("mn",[r]):t.text==="\\prime"?a=new O("mo",[r]):a=new O("mi",[r]),n!==Wo[a.type]&&a.setAttribute("mathvariant",n),a}});var Xs=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),_s=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);gr({type:"spacing",htmlBuilder(t,e){var r=_s.get(t.text),n=Xs.get(t.text);if(r){var a=r.className||"";if(t.mode==="text"){var i=Pn(t,e);return i.classes.push(a),i}else return I(["mspace",a],[ci(t.text,t.mode,e)],e)}else{if(n)return I(["mspace",n],[],e);throw new q('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(_s.has(t.text))r=new O("mtext",[new Pe("\xA0")]);else{if(Xs.has(t.text))return new O("mspace");throw new q('Unknown type of space "'+t.text+'"')}return r}});var Zs=()=>{var t=new O("mtd",[]);return t.setAttribute("width","50%"),t};gr({type:"tag",mathmlBuilder(t,e){var r=new O("mtable",[new O("mtr",[Zs(),new O("mtd",[ir(t.body,e)]),Zs(),new O("mtd",[ir(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var Qs={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eo={"\\textbf":"textbf","\\textmd":"textmd"},ju={"\\textit":"textit","\\textup":"textup"},to=(t,e)=>{var r=t.font;if(r){if(Qs[r])return e.withTextFontFamily(Qs[r]);if(eo[r])return e.withTextFontWeight(eo[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(ju[r])};W({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(t,e){var r=t.parser,n=t.funcName,a=e[0];return{type:"text",mode:r.mode,body:He(a),font:n}},htmlBuilder(t,e){var r=to(t,e),n=We(t.body,r,!0);return I(["mord","text"],n,r)},mathmlBuilder(t,e){var r=to(t,e);return ir(t.body,r)}});W({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(t,e){var r=t.parser;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ae(t.body,e),n=Mr("underline-line",e),a=e.fontMetrics().defaultRuleThickness,i=Ce({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return I(["mord","katex-underline"],[i],e)},mathmlBuilder(t,e){var r=new O("mo",[new Pe("\u203E")]);r.setAttribute("stretchy","true");var n=new O("munder",[ze(t.body,e),r]);return n.setAttribute("accentunder","true"),n}});W({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(t,e){var r=t.parser;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=Ae(t.body,e),n=e.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Ce({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(t,e){var r=new O("mpadded",[ze(t.body,e)],["vcenter"]);return new O("mrow",[r])}});W({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(t,e,r){throw new q("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=ro(t),n=[],a=e.havingStyle(e.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(rt(s,"Typewriter-Regular",t.mode,a,["mord","texttt"]))}return I(["mord","text"].concat(a.sizingClasses(e)),fo(n),a)},mathmlBuilder(t,e){var r=new Pe(ro(t)),n=new O("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var ro=t=>t.body.replace(/ /g,t.star?"\u2423":"\xA0"),er=yo,Yo=`[ \r
|
|
254
254
|
]`,Uu="\\\\[a-zA-Z@]+",Vu="\\\\[^\uD800-\uDFFF]",Wu="("+Uu+")"+Yo+"*",Yu=`\\\\(
|
|
255
255
|
|[ \r ]+
|
|
256
256
|
?)[ \r ]*`,ni="[\u0300-\u036F]",Ku=new RegExp(ni+"+$"),Ju="("+Yo+"+)|"+(Yu+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(ni+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ni+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Wu)+("|"+Vu+")"),qn=class{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(Ju,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new ut("EOF",new ot(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new q("Unexpected character: '"+e[r]+"'",new ut(e[r],new ot(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=e.indexOf(`
|
|
257
|
-
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,lt({strict:this.settings.strict,errorCode:"commentAtEnd",errorMsg:"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new ut(a,new ot(this,r,this.tokenRegex.lastIndex))}},ai=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new q("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))e[r]===void 0?delete this.current[r]:this.current[r]=e[r]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}r==null?delete this.current[e]:this.current[e]=r}},Xu=Lo;h("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});h("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});h("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});h("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});h("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});h("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");h("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var no={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};h("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new q("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=no[e.text],n==null||n>=r)throw new q("Invalid base-"+r+" digit "+e.text);for(var a;(a=no[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var bi=(t,e,r,n)=>{var a=t.consumeArg().tokens;if(a.length!==1)throw new q("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new q("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new q("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",m=t.expandNextToken();m.text!=="]"&&m.text!=="EOF";)l+=m.text,m=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new q("Invalid number of arguments: "+l);o=parseInt(l),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};h("\\newcommand",t=>bi(t,!1,!0,!1));h("\\renewcommand",t=>bi(t,!0,!1,!1));h("\\providecommand",t=>bi(t,!0,!0,!0));h("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});h("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});h("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),er[r],De.math[r],De.text[r]),""});h("\\bgroup","{");h("\\egroup","}");h("~","\\nobreakspace");h("\\lq","`");h("\\rq","'");h("\\aa","\\r a");h("\\AA","\\r A");h("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");h("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");h("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");h("\u212C","\\mathscr{B}");h("\u2130","\\mathscr{E}");h("\u2131","\\mathscr{F}");h("\u210B","\\mathscr{H}");h("\u2110","\\mathscr{I}");h("\u2112","\\mathscr{L}");h("\u2133","\\mathscr{M}");h("\u211B","\\mathscr{R}");h("\u212D","\\mathfrak{C}");h("\u210C","\\mathfrak{H}");h("\u2128","\\mathfrak{Z}");h("\\Bbbk","\\Bbb{k}");h("\\llap","\\mathllap{\\textrm{#1}}");h("\\rlap","\\mathrlap{\\textrm{#1}}");h("\\clap","\\mathclap{\\textrm{#1}}");h("\\mathstrut","\\vphantom{(}");h("\\underbar","\\underline{\\text{#1}}");h("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');h("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");h("\\ne","\\neq");h("\u2260","\\neq");h("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");h("\u2209","\\notin");h("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");h("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");h("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");h("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");h("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");h("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");h("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");h("\u27C2","\\perp");h("\u203C","\\mathclose{!\\mkern-0.8mu!}");h("\u220C","\\notni");h("\u231C","\\ulcorner");h("\u231D","\\urcorner");h("\u231E","\\llcorner");h("\u231F","\\lrcorner");h("\xA9","\\copyright");h("\xAE","\\textregistered");h("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');h("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');h("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');h("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');h("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");h("\u22EE","\\vdots");h("\\varGamma","\\mathit{\\Gamma}");h("\\varDelta","\\mathit{\\Delta}");h("\\varTheta","\\mathit{\\Theta}");h("\\varLambda","\\mathit{\\Lambda}");h("\\varXi","\\mathit{\\Xi}");h("\\varPi","\\mathit{\\Pi}");h("\\varSigma","\\mathit{\\Sigma}");h("\\varUpsilon","\\mathit{\\Upsilon}");h("\\varPhi","\\mathit{\\Phi}");h("\\varPsi","\\mathit{\\Psi}");h("\\varOmega","\\mathit{\\Omega}");h("\\substack","\\begin{subarray}{c}#1\\end{subarray}");h("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");h("\\boxed","\\fbox{$\\displaystyle{#1}$}");h("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");h("\\implies","\\DOTSB\\;\\Longrightarrow\\;");h("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");h("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");h("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ao={",":"\\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"},_u=new Set(["bin","rel"]);h("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in ao?e=ao[r]:(r.slice(0,4)==="\\not"||r in De.math&&_u.has(De.math[r].group))&&(e="\\dotsb"),e});var yi={")":!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};h("\\dotso",function(t){var e=t.future().text;return e in yi?"\\ldots\\,":"\\ldots"});h("\\dotsc",function(t){var e=t.future().text;return e in yi&&e!==","?"\\ldots\\,":"\\ldots"});h("\\cdots",function(t){var e=t.future().text;return e in yi?"\\@cdots\\,":"\\@cdots"});h("\\dotsb","\\cdots");h("\\dotsm","\\cdots");h("\\dotsi","\\!\\cdots");h("\\dotsx","\\ldots\\,");h("\\DOTSI","\\relax");h("\\DOTSB","\\relax");h("\\DOTSX","\\relax");h("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");h("\\,","\\tmspace+{3mu}{.1667em}");h("\\thinspace","\\,");h("\\>","\\mskip{4mu}");h("\\:","\\tmspace+{4mu}{.2222em}");h("\\medspace","\\:");h("\\;","\\tmspace+{5mu}{.2777em}");h("\\thickspace","\\;");h("\\!","\\tmspace-{3mu}{.1667em}");h("\\negthinspace","\\!");h("\\negmedspace","\\tmspace-{4mu}{.2222em}");h("\\negthickspace","\\tmspace-{5mu}{.277em}");h("\\enspace","\\kern.5em ");h("\\enskip","\\hskip.5em\\relax");h("\\quad","\\hskip1em\\relax");h("\\qquad","\\hskip2em\\relax");h("\\tag","\\@ifstar\\tag@literal\\tag@paren");h("\\tag@paren","\\tag@literal{({#1})}");h("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new q("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});h("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");h("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");h("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");h("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");h("\\newline","\\\\\\relax");h("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ko=F(Gt["Main-Regular"][84][1]-.7*Gt["Main-Regular"][65][1]);h("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ko+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");h("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ko+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");h("\\hspace","\\@ifstar\\@hspacer\\@hspace");h("\\@hspace","\\hskip #1\\relax");h("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");h("\\ordinarycolon",":");h("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");h("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');h("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');h("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');h("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');h("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');h("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');h("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');h("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');h("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');h("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');h("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');h("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');h("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');h("\u2237","\\dblcolon");h("\u2239","\\eqcolon");h("\u2254","\\coloneqq");h("\u2255","\\eqqcolon");h("\u2A74","\\Coloneqq");h("\\ratio","\\vcentcolon");h("\\coloncolon","\\dblcolon");h("\\colonequals","\\coloneqq");h("\\coloncolonequals","\\Coloneqq");h("\\equalscolon","\\eqqcolon");h("\\equalscoloncolon","\\Eqqcolon");h("\\colonminus","\\coloneq");h("\\coloncolonminus","\\Coloneq");h("\\minuscolon","\\eqcolon");h("\\minuscoloncolon","\\Eqcolon");h("\\coloncolonapprox","\\Colonapprox");h("\\coloncolonsim","\\Colonsim");h("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");h("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");h("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");h("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");h("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");h("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");h("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");h("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");h("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");h("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");h("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");h("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");h("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");h("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");h("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");h("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");h("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");h("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");h("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");h("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");h("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");h("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");h("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");h("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");h("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");h("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");h("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");h("\\imath","\\html@mathml{\\@imath}{\u0131}");h("\\jmath","\\html@mathml{\\@jmath}{\u0237}");h("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");h("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");h("\u27E6","\\llbracket");h("\u27E7","\\rrbracket");h("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");h("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");h("\u21A4","\\mapsfrom");h("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`\u21A4}}");h("\u2983","\\lBrace");h("\u2984","\\rBrace");h("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");h("\u29B5","\\minuso");h("\\darr","\\downarrow");h("\\dArr","\\Downarrow");h("\\Darr","\\Downarrow");h("\\lang","\\langle");h("\\rang","\\rangle");h("\\uarr","\\uparrow");h("\\uArr","\\Uparrow");h("\\Uarr","\\Uparrow");h("\\N","\\mathbb{N}");h("\\R","\\mathbb{R}");h("\\Z","\\mathbb{Z}");h("\\alef","\\aleph");h("\\alefsym","\\aleph");h("\\Alpha","\\mathrm{A}");h("\\Beta","\\mathrm{B}");h("\\bull","\\bullet");h("\\Chi","\\mathrm{X}");h("\\clubs","\\clubsuit");h("\\cnums","\\mathbb{C}");h("\\Complex","\\mathbb{C}");h("\\Dagger","\\ddagger");h("\\diamonds","\\diamondsuit");h("\\empty","\\emptyset");h("\\Epsilon","\\mathrm{E}");h("\\Eta","\\mathrm{H}");h("\\exist","\\exists");h("\\harr","\\leftrightarrow");h("\\hArr","\\Leftrightarrow");h("\\Harr","\\Leftrightarrow");h("\\hearts","\\heartsuit");h("\\image","\\Im");h("\\infin","\\infty");h("\\Iota","\\mathrm{I}");h("\\isin","\\in");h("\\Kappa","\\mathrm{K}");h("\\larr","\\leftarrow");h("\\lArr","\\Leftarrow");h("\\Larr","\\Leftarrow");h("\\lrarr","\\leftrightarrow");h("\\lrArr","\\Leftrightarrow");h("\\Lrarr","\\Leftrightarrow");h("\\Mu","\\mathrm{M}");h("\\natnums","\\mathbb{N}");h("\\Nu","\\mathrm{N}");h("\\Omicron","\\mathrm{O}");h("\\plusmn","\\pm");h("\\rarr","\\rightarrow");h("\\rArr","\\Rightarrow");h("\\Rarr","\\Rightarrow");h("\\real","\\Re");h("\\reals","\\mathbb{R}");h("\\Reals","\\mathbb{R}");h("\\Rho","\\mathrm{P}");h("\\sdot","\\cdot");h("\\sect","\\S");h("\\spades","\\spadesuit");h("\\sub","\\subset");h("\\sube","\\subseteq");h("\\supe","\\supseteq");h("\\Tau","\\mathrm{T}");h("\\thetasym","\\vartheta");h("\\weierp","\\wp");h("\\Zeta","\\mathrm{Z}");h("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");h("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");h("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");h("\\bra","\\mathinner{\\langle{#1}|}");h("\\ket","\\mathinner{|{#1}\\rangle}");h("\\braket","\\mathinner{\\langle{#1}\\rangle}");h("\\Bra","\\left\\langle#1\\right|");h("\\Ket","\\left|#1\\right\\rangle");var Jo=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=p=>b=>{t&&(b.macros.set("|",s),a.length&&b.macros.set("\\|",o));var y=p;if(!p&&a.length){var k=b.future();k.text==="|"&&(b.popToken(),y=!0)}return{tokens:y?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var m=e.consumeArg().tokens,u=e.expandTokens([...i,...m,...r]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};h("\\bra@ket",Jo(!1));h("\\bra@set",Jo(!0));h("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");h("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");h("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");h("\\angln","{\\angl n}");h("\\blue","\\textcolor{##6495ed}{#1}");h("\\orange","\\textcolor{##ffa500}{#1}");h("\\pink","\\textcolor{##ff00af}{#1}");h("\\red","\\textcolor{##df0030}{#1}");h("\\green","\\textcolor{##28ae7b}{#1}");h("\\gray","\\textcolor{gray}{#1}");h("\\purple","\\textcolor{##9d38bd}{#1}");h("\\blueA","\\textcolor{##ccfaff}{#1}");h("\\blueB","\\textcolor{##80f6ff}{#1}");h("\\blueC","\\textcolor{##63d9ea}{#1}");h("\\blueD","\\textcolor{##11accd}{#1}");h("\\blueE","\\textcolor{##0c7f99}{#1}");h("\\tealA","\\textcolor{##94fff5}{#1}");h("\\tealB","\\textcolor{##26edd5}{#1}");h("\\tealC","\\textcolor{##01d1c1}{#1}");h("\\tealD","\\textcolor{##01a995}{#1}");h("\\tealE","\\textcolor{##208170}{#1}");h("\\greenA","\\textcolor{##b6ffb0}{#1}");h("\\greenB","\\textcolor{##8af281}{#1}");h("\\greenC","\\textcolor{##74cf70}{#1}");h("\\greenD","\\textcolor{##1fab54}{#1}");h("\\greenE","\\textcolor{##0d923f}{#1}");h("\\goldA","\\textcolor{##ffd0a9}{#1}");h("\\goldB","\\textcolor{##ffbb71}{#1}");h("\\goldC","\\textcolor{##ff9c39}{#1}");h("\\goldD","\\textcolor{##e07d10}{#1}");h("\\goldE","\\textcolor{##a75a05}{#1}");h("\\redA","\\textcolor{##fca9a9}{#1}");h("\\redB","\\textcolor{##ff8482}{#1}");h("\\redC","\\textcolor{##f9685d}{#1}");h("\\redD","\\textcolor{##e84d39}{#1}");h("\\redE","\\textcolor{##bc2612}{#1}");h("\\maroonA","\\textcolor{##ffbde0}{#1}");h("\\maroonB","\\textcolor{##ff92c6}{#1}");h("\\maroonC","\\textcolor{##ed5fa6}{#1}");h("\\maroonD","\\textcolor{##ca337c}{#1}");h("\\maroonE","\\textcolor{##9e034e}{#1}");h("\\purpleA","\\textcolor{##ddd7ff}{#1}");h("\\purpleB","\\textcolor{##c6b9fc}{#1}");h("\\purpleC","\\textcolor{##aa87ff}{#1}");h("\\purpleD","\\textcolor{##7854ab}{#1}");h("\\purpleE","\\textcolor{##543b78}{#1}");h("\\mintA","\\textcolor{##f5f9e8}{#1}");h("\\mintB","\\textcolor{##edf2df}{#1}");h("\\mintC","\\textcolor{##e0e5cc}{#1}");h("\\grayA","\\textcolor{##f6f7f7}{#1}");h("\\grayB","\\textcolor{##f0f1f2}{#1}");h("\\grayC","\\textcolor{##e3e5e6}{#1}");h("\\grayD","\\textcolor{##d6d8da}{#1}");h("\\grayE","\\textcolor{##babec2}{#1}");h("\\grayF","\\textcolor{##888d93}{#1}");h("\\grayG","\\textcolor{##626569}{#1}");h("\\grayH","\\textcolor{##3b3e40}{#1}");h("\\grayI","\\textcolor{##21242c}{#1}");h("\\kaBlue","\\textcolor{##314453}{#1}");h("\\kaGreen","\\textcolor{##71B307}{#1}");var Xo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ii=class{constructor(e,r,n){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=r,this.expansionCount=0,this.feed(e),this.macros=new ai(Xu,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new qn(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var i=this.consumeArg(["]"]);a=i.tokens,n=i.end}else{var s=this.consumeArg();a=s.tokens,r=s.start,n=s.end}return this.pushToken(new ut("EOF",n.loc)),this.pushTokens(a),new ut("",ot.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new q("Extra }",i)}else if(i.text==="EOF")throw new q("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new q("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new q("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new q("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new q("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new q("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new q("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new ut(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new qn(a,this.settings),l=[],m=o.lex();m.text!=="EOF";)l.push(m),m=o.lex();l.reverse();var u={tokens:l,numArgs:i};return u}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(er,e)||Object.prototype.hasOwnProperty.call(De.math,e)||Object.prototype.hasOwnProperty.call(De.text,e)||Object.prototype.hasOwnProperty.call(Xo,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(er,e)&&!er[e].primitive}},io=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Gn=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),qa={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},so={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},On=class t{constructor(e,r){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 ii(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new q("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new ut("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(t.endOfExpression.has(a.text)||r&&a.text===r||e&&er[a.text]&&er[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a<e.length;a++){var i=e[a];if(i.type==="infix"){if(r!==-1)throw new q("only one infix operator per group",i.token);r=a,n=i.replaceWith}}if(r!==-1&&n){var s,o,l=e.slice(0,r),m=e.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},m.length===1&&m[0].type==="ordgroup"?o=m[0]:o={type:"ordgroup",mode:this.mode,body:m};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[s,e[r],o],[]):u=this.callFunction(n,[s,o],[]),[u]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(e)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new q("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(e){var r=this.parseGroup("atom",e);if(r?.type==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op")r.limits=i.text==="\\limits",r.alwaysHandleSupSub=!0;else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new q("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new q("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new q("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new q("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},o=[s];for(this.consume();this.fetch().text==="'";)o.push(s),this.consume();this.fetch().text==="^"&&o.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:o}}else if(Gn[i.text]){var l=io.test(i.text),m=[];for(m.push(new ut(Gn[i.text])),this.consume();;){var u=this.fetch().text;if(!Gn[u]||io.test(u)!==l)break;m.unshift(new ut(Gn[u])),this.consume()}var p=this.subparse(m);l?a={type:"ordgroup",mode:"math",body:p}:n={type:"ordgroup",mode:"math",body:p}}else break}return n&&a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:n?{type:"supsub",mode:this.mode,base:r,sup:n}:a?{type:"supsub",mode:this.mode,base:r,sub:a}:r}parseFunction(e,r){var n=this.fetch(),a=n.text,i=er[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new q("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new q("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new q("Can't use function '"+a+"' in math mode",n);var s=this.parseArguments(a,i),o=s.args,l=s.optArgs;return this.callFunction(a,o,l,n,e)}callFunction(e,r,n,a,i){var s={funcName:e,parser:this,token:a,breakOnTokenText:i},o=er[e];if(o&&o.handler)return o.handler(s,r,n);throw new q("No function handler for "+e)}parseArguments(e,r){var n,a=(n=r.numOptionalArgs)!=null?n:0,i=r.numArgs+a;if(i===0)return{args:[],optArgs:[]};for(var s=[],o=[],l=0;l<i;l++){var m,u=(m=r.argTypes)==null?void 0:m[l],p=l<a;("primitive"in r&&r.primitive&&u==null||r.type==="sqrt"&&l===1&&o[0]==null)&&(u="primitive");var b=this.parseGroupOfType("argument to '"+e+"'",u,p);if(p)o.push(b);else if(b!=null)s.push(b);else throw new q("Null argument, please report this as a bug")}return{args:s,optArgs:o}}parseGroupOfType(e,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{var i=this.parseStringGroup(n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new q("A primitive argument cannot be optional");var s=this.parseGroup(e);if(s==null)throw new q("Expected group as "+e,this.fetch());return s}case"original":case void 0:return this.parseArgumentGroup(n);default:throw new q("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e){var r=this.gullet.scanArgument(e);if(r==null)return null;for(var n="",a;(a=this.fetch()).text!=="EOF";)n+=a.text,this.consume();return this.consume(),r.text=n,r}parseRegexGroup(e,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&e.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new q("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var r=this.parseStringGroup(e);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new q("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup(e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new q("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!lo(i))throw new q("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(e,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:ot.range(n,l),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,e)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Object.prototype.hasOwnProperty.call(Xo,a)){if(this.settings.throwOnError)throw new q("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var a=e[n];if(a.type==="textord"){var i=a.text,s=e[n+1];if(!(!s||s.type!=="textord")){if(i==="-"&&s.text==="-"){var o=e[n+2];n+1<r&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:ot.range(a,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:ot.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:ot.range(a,s),text:i+i}),r-=1)}}}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new q(`\\verb assertion failed --
|
|
258
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Object.prototype.hasOwnProperty.call(so,r[0])&&!De[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&<({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=so[r[0]]+r.slice(1));var i=Ku.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var s;if(De[this.mode][r]){this.settings.strict&&this.mode==="math"&&ja.includes(r)&<({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Latin-1/Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e});var o=De[this.mode][r].group,l=ot.range(e),m;iu(o)?m={type:"atom",mode:this.mode,family:o,loc:l,text:r}:m={type:o,mode:this.mode,loc:l,text:r},s=m}else if(r.charCodeAt(0)>=128)this.settings.strict&&(oo(r.charCodeAt(0))?this.mode==="math"&<({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):lt({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e})),s={type:"textord",mode:"text",loc:ot.range(e),text:r};else return null;if(this.consume(),i)for(var u=0;u<i[0].length;u++){var p=i[0][u];if(!qa[p])throw new q("Unknown accent ' "+p+"'",e);var b=qa[p][this.mode]||qa[p].text;if(!b)throw new q("Accent "+p+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:ot.range(e),label:b,isStretchy:!1,isShifty:!0,base:s}}return s}};On.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var vi=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new On(e,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new q("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new ut("\\df@tag")])}]}return a},_o=function(e,r,n){r.textContent="";var a=xi(e,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),_o=function(){throw new q("KaTeX doesn't work in quirks mode.")});var Zu=function(e,r){var n=xi(e,r).toMarkup();return n},Qu=function(e,r){var n=new Yr(r);return vi(e,n)},Zo=function(e,r,n){if(n.throwOnError||!(e instanceof q))throw e;var a=I(["katex-error"],[new at(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},xi=function(e,r){var n=new Yr(r);try{var a=vi(e,n);return Jc(a,e,n)}catch(i){return Zo(i,e,n)}},em=function(e,r){var n=new Yr(r);try{var a=vi(e,n);return Xc(a,n)}catch(i){return Zo(i,e,n)}},tm="0.19.0",rm={Span:nr,Anchor:Nr,SymbolNode:at,SvgNode:wt,PathNode:$t,LineNode:Jr},Qo={version:tm,render:_o,renderToString:Zu,ParseError:q,SETTINGS_SCHEMA:Oa,__parse:Qu,__renderToDomTree:xi,__renderToHTMLTree:em,__setFontMetrics:Rc,__defineSymbol:d,__defineFunction:W,__defineMacro:h,__domTree:rm};var g={block:"o",panel:"t",banner:"ia",col:"oa",row:"l",wrap:"Rr",card:"e",grid:"B",gridSpan:"ta",spacer:"Tr",divider:"Ur",chart:"la",lineChart:"na",donut:"da",hbars:"ga",cardTitle:"i",text:"s",h1:"Vr",h2:"Wr",h3:"Xr",body:"Zr",muted:"_r",caption:"ae",center:"re",button:"r",primary:"pa",danger:"ca",success:"fa",ghost:"ee",full:"se",small:"ie",field:"C",input:"D",select:"ba",checkbox:"k",link:"E",linkText:"oe",media:"te",mediaLabel:"va",mediaPlayer:"xa",videoPlayer:"le",mediaError:"ne",hero:"de",heroSuccess:"ge",heroWarning:"pe",heroDanger:"ce",heroLabel:"ma",heroTop:"fe",heroValue:"be",heroUnit:"ve",heroSpark:"xe",heroTitle:"ua",heroSubtitle:"wa",inlineCode:"g",inlineStrong:"me",inlineMark:"ue",inlineLink:"ha",inlineFileLink:"G",badge:"p",warn:"we",accent:"he",stat:"H",statHero:"c",statValue:"ya",statLabel:"I",statUnit:"ka",statDelta:"J",up:"ye",statSpark:"za",down:"ke",progress:"ze",progressRow:"ja",track:"Ya",fill:"Fa",list:"je",li:"f",liTitle:"Ma",liDesc:"Sa",tableWrap:"b",table:"a",thNum:"qa",tdNum:"Ye",tdDelta:"Fe",tdDeltaUp:"Me",tdDeltaDown:"Se",tdMultiline:"v",tdCode:"x",detailRow:"K",calloutBody:"Aa",kvValue:"Ba",tlDesc:"Ca",detailBody:"Da",accBody:"Ea",ringLabel:"Ga",ringSub:"Ha",calloutTitle:"n",stepTitle:"z",stepDesc:"Ia",kvKey:"Ja",tlTitle:"Ka",tlTime:"La",accTitle:"qe",fieldLabel:"Na",switchLabel:"Oa",radio:"j",tab:"m",badgeLabel:"Ae",gradeQ:"Pa",gradeAns:"Qa",gradeRight:"Ra",gradeExp:"Ta",quizQuestion:"Ua",quizFeedback:"Va",quizExplanation:"Wa",thSort:"u",thSortMark:"Be",chartBody:"Ce",chartYAxis:"De",chartYTick:"Ee",chartPlot:"Ge",baseline:"He",gridline:"Ie",chartLabels:"Xa",chartLegend:"Je",legendItem:"Ke",legendSwatch:"Le",lineArea:"Ne",chartTip:"Oe",chartTipRow:"Pe",chartTipValue:"Qe",stackValue:"Re",barCol:"Te",barValue:"Ue",stack:"Ve",stackSeg:"Za",barFill:"L",barLabel:"We",tabs:"Xe",tabBar:"Ze",tabActive:"_e",avatar:"as",callout:"rs",calloutInfo:"_a",calloutSuccess:"ar",calloutWarning:"rr",calloutError:"er",steps:"es",step:"sr",stepDone:"ir",stepActive:"or",stepMarker:"N",stepContent:"ss",keyvalue:"is",kvRow:"Y",jsonScalar:"os",linePath:"ts",lineDot:"tr",lineGrid:"ls",lineGridAxis:"ns",lineTick:"ds",lineLabel:"gs",lineLabels:"ps",groupedBars:"cs",groupedBar:"fs",groupValue:"bs",groupedFill:"lr",donutTrack:"vs",donutSeg:"nr",donutTotal:"xs",donutTotalLabel:"ms",donutLegend:"us",donutPct:"ws",ring:"hs",ringTrack:"ys",ringFill:"ks",ringValue:"zs",ringMeta:"js",targetMark:"Ys",filterRow:"Fs",filterHint:"Ms",tableTools:"Ss",tableTool:"O",detailCell:"dr",detailToggle:"F",detailContent:"qs",detailChevron:"gr",groupRow:"w",groupToggle:"P",groupLabel:"pr",groupChevron:"As",groupCount:"Bs",groupChild:"Q",cardInfo:"cr",cardSuccess:"fr",cardWarning:"br",cardDanger:"vr",hbarRow:"Cs",hbarLabel:"Ds",hbarTracks:"Es",hbarSeg:"Gs",hbarTrack:"Hs",hbarFill:"Is",hbarValue:"Js",cellBadge:"Ks",cellSpark:"Ls",cellRing:"Ns",cellRingText:"Os",cellIndex:"Ps",cellBar:"Qs",cellBarFill:"Rs",cellBarText:"Ts",fieldGroup:"Us",submitRow:"Vs",submit:"Ws",submitHint:"Xs",btnSent:"R",gradeWrap:"Zs",gradeScore:"_s",gradeScoreValue:"ai",gradeScoreLabel:"ri",gradeList:"ei",gradeItem:"si",gradeItemOk:"xr",gradeItemNo:"mr",gradeTag:"T",switchRow:"ur",switch:"U",switchOn:"wr",switchKnob:"V",sliderRow:"ii",sliderInput:"hr",sliderValue:"oi",textarea:"yr",accordion:"ti",accItem:"kr",accHead:"M",accChevron:"zr",copyChip:"S",copyChipDone:"li",mermaid:"d",mermaidFallback:"jr",mermaidErr:"ni",mermaidHint:"di",scene3dWrap:"gi",echartWrap:"pi",echartTitle:"ci",echartCanvas:"fi",echartHint:"bi",echartFallback:"vi",echartErr:"xi",scene3dTitle:"mi",scene3dCanvas:"Yr",scene3dHint:"ui",timeline:"wi",tlItem:"W",tlRail:"hi",tlDot:"Fr",tlLine:"yi",tlBody:"Mr",tlHead:"ki",fileTree:"h",ftChildren:"zi",ftRow:"Sr",ftGuide:"ji",ftChevron:"qr",ftGlyph:"Yi",ftGlyphDir:"Fi",ftName:"Mi",ftDir:"Si",ftNameBtn:"X",breadcrumb:"qi",bcItem:"Ai",bcText:"Z",bcCurrent:"Bi",bcSep:"Ci",skeleton:"Di",skeletonTitle:"_",skeletonBars:"q",skeletonBlock:"aa","dsl-skeleton":"Ar",genuiReveal:"Br",genuiPopIn:"Cr",reveal:"Dr",panelBody:"y",visuallyHidden:"Ei",quiz:"Gi",quizOptions:"Hi",quizOpt:"A",quizRetry:"ra",resetBtn:"Ii",playBtn:"Ji",quizOptCorrect:"Er",quizOptWrong:"Gr",quizOptReveal:"Ki",quizMarker:"ea",quizResult:"Li",quizCorrectMsg:"Ni",quizWrongMsg:"Oi",tool:"Pi",toolFallback:"Qi",toolFallbackTitle:"Ri",toolFallbackMeta:"Ti",panelHeader:"Hr",panelToggle:"Ir",panelClose:"sa",panelTpl:"Jr",panelTplActive:"Ui",panelOnboard:"Vi",panelOnboardText:"Wi",panelFlash:"Xi",panelHint:"Zi",achToasts:"_i",achToast:"ao",achToastBadge:"ro",achToastBody:"eo",achToastName:"so",achToastDesc:"io",panelBadge:"oo",panelTitle:"to",panelChevron:"lo",panelResizeHandle:"Kr",panelResizeHandleActive:"no",inlineMath:"Lr"};function am(t,e){return typeof t=="string"&&e.includes(t)}function z(t,e){return typeof t=="string"?t.slice(0,e):void 0}var im=/^(?:#[\da-fA-F]{3,8}|rgba?\([^)]{0,64}\)|hsla?\([^)]{0,64}\)|var\(--dsw-[\w-]+(?:,\s*#[0-9a-fA-F]{3,8})?\))$/;function Lt(t){if(typeof t!="string")return;let e=t.trim();return e.length<=64&&im.test(e)?e:void 0}function e0(t){if(typeof t!="string")return;let e=t.trim();if(!(e.length>2048))return/^https?:\/\//i.test(e)||/^mailto:[^@\s]+@[^@\s]+$/i.test(e)?e:void 0}function or(t){if(typeof t!="string")return;let e=t.trim();if(!(e===""||e.length>2048)){if(/^https?:\/\//i.test(e))return e;if(!(/^[a-z][a-z0-9+.-]*:/i.test(e)||/^[/\\]{2}/.test(e)))return e}}function Te(t,e,r){return typeof t=="number"&&Number.isFinite(t)?Math.min(r,Math.max(e,t)):void 0}function Bt(t,e,r){return typeof t=="number"&&Number.isFinite(t)?Math.min(r,Math.max(e,Math.trunc(t))):void 0}function Ue(t,e){return am(t,e)?t:void 0}function ue(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:void 0}function S(t,e){return e===void 0?{}:{[t]:e}}function sm(t){if(t.length>2048)return;let e=t.indexOf("#"),r=e<0?t:t.slice(0,e);if(r.includes("?"))return;let n;try{n=decodeURIComponent(r)}catch{return}if(n===""||/[\u0000-\u001f\u007f]/.test(n)||/^[\\/]{2}/.test(n)||/^[a-z][a-z\d+.-]*:/i.test(n)&&!/^[a-z]:[\\/]/i.test(n))return;if(e<0)return{path:n};let a=/^L([1-9]\d*)(?:-L([1-9]\d*))?$/.exec(t.slice(e+1));if(a===null)return;let i=Number(a[1]),s=a[2]===void 0?i:Number(a[2]);if(!(!Number.isSafeInteger(i)||!Number.isSafeInteger(s)||s<i))return{path:n,line:i}}function Rr(t){let e=e0(t);if(e!==void 0)return{type:"external",href:e};if(typeof t!="string")return{type:"invalid"};let r=sm(t.trim());return r===void 0?{type:"invalid"}:{type:"file",file:r}}var Yt=require("react");var wi=(0,Yt.createContext)(void 0);function Jn({path:t,line:e,label:r,children:n}){let a=(0,Yt.useContext)(wi);return a===void 0?(0,Yt.createElement)("span",{title:t},n):(0,Yt.createElement)("button",{type:"button",className:g.inlineFileLink,title:t,"aria-label":`${r} (${t})`,onClick:i=>{i.stopPropagation(),a(t,e)}},n)}function om({source:t,display:e}){let r=(0,kt.useRef)(null);return(0,kt.useLayoutEffect)(()=>{r.current!==null&&Qo.render(t,r.current,{displayMode:e,throwOnError:!1,trust:!1,maxExpand:1e3,maxSize:20,output:"htmlAndMathml"})},[t,e]),(0,kt.createElement)("span",{ref:r,className:g.inlineMath})}var lm=/(?<!`)`[^`\n]+`(?!`)|\\\\|\\\$|(?<![\\$])\$\$(?:\\.|[^\\])*?\$\$|\\\[(?:\\(?!\])[^]|[^\\])*?\\\]|\\\((?:\\(?!\))[^]|[^\\])*?\\\)|(?<![\\$])\$(?!\s|\$)(?:\\.|[^$\\\n])+(?<!\s)\$(?!\d|\$)|\*\*[\s\S]+?\*\*|==[\s\S]+?==|\[[^\]\n]+\]\([^)\s]+\)|\r?\n/g,t0=/`{3,}|~{3,}/g;function dm(t){return typeof t=="string"&&/[`*=$\\\n\r]|\[/.test(t)}function B(t,e=!0,r=0){if(typeof t!="string"||t===""||!dm(t)||r>=8)return t;let n=[],a=0;for(let l of t.matchAll(t0)){let m=l.index??0;if(m<a)continue;let u=l[0],p=m+u.length,b;for(let y of t.slice(p).matchAll(t0))if(y[0][0]===u[0]&&y[0].length>=u.length){b=p+(y.index??0)+y[0].length;break}if(m>a&&n.push(B(t.slice(a,m),e,r)),a=b??t.length,n.push(t.slice(m,a)),b===void 0)break}if(n.length>0)return a<t.length&&n.push(B(t.slice(a),e,r)),n;let i=[],s=0,o=0;for(let l of t.matchAll(lm)){let m=l.index??0,u=l[0];if(m>s&&i.push(t.slice(s,m)),u===`
|
|
257
|
+
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,lt({strict:this.settings.strict,errorCode:"commentAtEnd",errorMsg:"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new ut(a,new ot(this,r,this.tokenRegex.lastIndex))}},ai=class{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new q("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))e[r]===void 0?delete this.current[r]:this.current[r]=e[r]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){return Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:Object.prototype.hasOwnProperty.call(this.builtins,e)?this.builtins[e]:void 0}set(e,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}r==null?delete this.current[e]:this.current[e]=r}},Xu=Lo;h("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});h("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}});h("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}});h("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}});h("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});h("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");h("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var no={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};h("\\char",function(t){var e=t.popToken(),r,n=0;if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new q("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=no[e.text],n==null||n>=r)throw new q("Invalid base-"+r+" digit "+e.text);for(var a;(a=no[t.future().text])!=null&&a<r;)n*=r,n+=a,t.popToken()}return"\\@char{"+n+"}"});var bi=(t,e,r,n)=>{var a=t.consumeArg().tokens;if(a.length!==1)throw new q("\\newcommand's first argument must be a macro name");var i=a[0].text,s=t.isDefined(i);if(s&&!e)throw new q("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new q("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var o=0;if(a=t.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",m=t.expandNextToken();m.text!=="]"&&m.text!=="EOF";)l+=m.text,m=t.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new q("Invalid number of arguments: "+l);o=parseInt(l),a=t.consumeArg().tokens}return s&&n||t.macros.set(i,{tokens:a,numArgs:o}),""};h("\\newcommand",t=>bi(t,!1,!0,!1));h("\\renewcommand",t=>bi(t,!0,!1,!1));h("\\providecommand",t=>bi(t,!0,!0,!0));h("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""});h("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""});h("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),er[r],De.math[r],De.text[r]),""});h("\\bgroup","{");h("\\egroup","}");h("~","\\nobreakspace");h("\\lq","`");h("\\rq","'");h("\\aa","\\r a");h("\\AA","\\r A");h("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");h("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");h("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");h("\u212C","\\mathscr{B}");h("\u2130","\\mathscr{E}");h("\u2131","\\mathscr{F}");h("\u210B","\\mathscr{H}");h("\u2110","\\mathscr{I}");h("\u2112","\\mathscr{L}");h("\u2133","\\mathscr{M}");h("\u211B","\\mathscr{R}");h("\u212D","\\mathfrak{C}");h("\u210C","\\mathfrak{H}");h("\u2128","\\mathfrak{Z}");h("\\Bbbk","\\Bbb{k}");h("\\llap","\\mathllap{\\textrm{#1}}");h("\\rlap","\\mathrlap{\\textrm{#1}}");h("\\clap","\\mathclap{\\textrm{#1}}");h("\\mathstrut","\\vphantom{(}");h("\\underbar","\\underline{\\text{#1}}");h("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');h("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");h("\\ne","\\neq");h("\u2260","\\neq");h("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");h("\u2209","\\notin");h("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");h("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");h("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");h("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");h("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");h("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");h("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");h("\u27C2","\\perp");h("\u203C","\\mathclose{!\\mkern-0.8mu!}");h("\u220C","\\notni");h("\u231C","\\ulcorner");h("\u231D","\\urcorner");h("\u231E","\\llcorner");h("\u231F","\\lrcorner");h("\xA9","\\copyright");h("\xAE","\\textregistered");h("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');h("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');h("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');h("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');h("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");h("\u22EE","\\vdots");h("\\varGamma","\\mathit{\\Gamma}");h("\\varDelta","\\mathit{\\Delta}");h("\\varTheta","\\mathit{\\Theta}");h("\\varLambda","\\mathit{\\Lambda}");h("\\varXi","\\mathit{\\Xi}");h("\\varPi","\\mathit{\\Pi}");h("\\varSigma","\\mathit{\\Sigma}");h("\\varUpsilon","\\mathit{\\Upsilon}");h("\\varPhi","\\mathit{\\Phi}");h("\\varPsi","\\mathit{\\Psi}");h("\\varOmega","\\mathit{\\Omega}");h("\\substack","\\begin{subarray}{c}#1\\end{subarray}");h("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");h("\\boxed","\\fbox{$\\displaystyle{#1}$}");h("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");h("\\implies","\\DOTSB\\;\\Longrightarrow\\;");h("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");h("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");h("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ao={",":"\\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"},_u=new Set(["bin","rel"]);h("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in ao?e=ao[r]:(r.slice(0,4)==="\\not"||r in De.math&&_u.has(De.math[r].group))&&(e="\\dotsb"),e});var yi={")":!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};h("\\dotso",function(t){var e=t.future().text;return e in yi?"\\ldots\\,":"\\ldots"});h("\\dotsc",function(t){var e=t.future().text;return e in yi&&e!==","?"\\ldots\\,":"\\ldots"});h("\\cdots",function(t){var e=t.future().text;return e in yi?"\\@cdots\\,":"\\@cdots"});h("\\dotsb","\\cdots");h("\\dotsm","\\cdots");h("\\dotsi","\\!\\cdots");h("\\dotsx","\\ldots\\,");h("\\DOTSI","\\relax");h("\\DOTSB","\\relax");h("\\DOTSX","\\relax");h("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");h("\\,","\\tmspace+{3mu}{.1667em}");h("\\thinspace","\\,");h("\\>","\\mskip{4mu}");h("\\:","\\tmspace+{4mu}{.2222em}");h("\\medspace","\\:");h("\\;","\\tmspace+{5mu}{.2777em}");h("\\thickspace","\\;");h("\\!","\\tmspace-{3mu}{.1667em}");h("\\negthinspace","\\!");h("\\negmedspace","\\tmspace-{4mu}{.2222em}");h("\\negthickspace","\\tmspace-{5mu}{.277em}");h("\\enspace","\\kern.5em ");h("\\enskip","\\hskip.5em\\relax");h("\\quad","\\hskip1em\\relax");h("\\qquad","\\hskip2em\\relax");h("\\tag","\\@ifstar\\tag@literal\\tag@paren");h("\\tag@paren","\\tag@literal{({#1})}");h("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new q("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});h("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");h("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");h("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");h("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");h("\\newline","\\\\\\relax");h("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ko=F(Gt["Main-Regular"][84][1]-.7*Gt["Main-Regular"][65][1]);h("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ko+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");h("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ko+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");h("\\hspace","\\@ifstar\\@hspacer\\@hspace");h("\\@hspace","\\hskip #1\\relax");h("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");h("\\ordinarycolon",":");h("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");h("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');h("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');h("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');h("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');h("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');h("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');h("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');h("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');h("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');h("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');h("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');h("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');h("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');h("\u2237","\\dblcolon");h("\u2239","\\eqcolon");h("\u2254","\\coloneqq");h("\u2255","\\eqqcolon");h("\u2A74","\\Coloneqq");h("\\ratio","\\vcentcolon");h("\\coloncolon","\\dblcolon");h("\\colonequals","\\coloneqq");h("\\coloncolonequals","\\Coloneqq");h("\\equalscolon","\\eqqcolon");h("\\equalscoloncolon","\\Eqqcolon");h("\\colonminus","\\coloneq");h("\\coloncolonminus","\\Coloneq");h("\\minuscolon","\\eqcolon");h("\\minuscoloncolon","\\Eqcolon");h("\\coloncolonapprox","\\Colonapprox");h("\\coloncolonsim","\\Colonsim");h("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");h("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");h("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");h("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");h("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");h("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");h("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");h("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");h("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");h("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");h("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");h("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");h("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");h("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");h("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");h("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");h("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");h("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");h("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");h("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");h("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");h("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");h("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");h("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");h("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");h("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");h("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");h("\\imath","\\html@mathml{\\@imath}{\u0131}");h("\\jmath","\\html@mathml{\\@jmath}{\u0237}");h("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");h("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");h("\u27E6","\\llbracket");h("\u27E7","\\rrbracket");h("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");h("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");h("\u21A4","\\mapsfrom");h("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`\u21A4}}");h("\u2983","\\lBrace");h("\u2984","\\rBrace");h("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");h("\u29B5","\\minuso");h("\\darr","\\downarrow");h("\\dArr","\\Downarrow");h("\\Darr","\\Downarrow");h("\\lang","\\langle");h("\\rang","\\rangle");h("\\uarr","\\uparrow");h("\\uArr","\\Uparrow");h("\\Uarr","\\Uparrow");h("\\N","\\mathbb{N}");h("\\R","\\mathbb{R}");h("\\Z","\\mathbb{Z}");h("\\alef","\\aleph");h("\\alefsym","\\aleph");h("\\Alpha","\\mathrm{A}");h("\\Beta","\\mathrm{B}");h("\\bull","\\bullet");h("\\Chi","\\mathrm{X}");h("\\clubs","\\clubsuit");h("\\cnums","\\mathbb{C}");h("\\Complex","\\mathbb{C}");h("\\Dagger","\\ddagger");h("\\diamonds","\\diamondsuit");h("\\empty","\\emptyset");h("\\Epsilon","\\mathrm{E}");h("\\Eta","\\mathrm{H}");h("\\exist","\\exists");h("\\harr","\\leftrightarrow");h("\\hArr","\\Leftrightarrow");h("\\Harr","\\Leftrightarrow");h("\\hearts","\\heartsuit");h("\\image","\\Im");h("\\infin","\\infty");h("\\Iota","\\mathrm{I}");h("\\isin","\\in");h("\\Kappa","\\mathrm{K}");h("\\larr","\\leftarrow");h("\\lArr","\\Leftarrow");h("\\Larr","\\Leftarrow");h("\\lrarr","\\leftrightarrow");h("\\lrArr","\\Leftrightarrow");h("\\Lrarr","\\Leftrightarrow");h("\\Mu","\\mathrm{M}");h("\\natnums","\\mathbb{N}");h("\\Nu","\\mathrm{N}");h("\\Omicron","\\mathrm{O}");h("\\plusmn","\\pm");h("\\rarr","\\rightarrow");h("\\rArr","\\Rightarrow");h("\\Rarr","\\Rightarrow");h("\\real","\\Re");h("\\reals","\\mathbb{R}");h("\\Reals","\\mathbb{R}");h("\\Rho","\\mathrm{P}");h("\\sdot","\\cdot");h("\\sect","\\S");h("\\spades","\\spadesuit");h("\\sub","\\subset");h("\\sube","\\subseteq");h("\\supe","\\supseteq");h("\\Tau","\\mathrm{T}");h("\\thetasym","\\vartheta");h("\\weierp","\\wp");h("\\Zeta","\\mathrm{Z}");h("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");h("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");h("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");h("\\bra","\\mathinner{\\langle{#1}|}");h("\\ket","\\mathinner{|{#1}\\rangle}");h("\\braket","\\mathinner{\\langle{#1}\\rangle}");h("\\Bra","\\left\\langle#1\\right|");h("\\Ket","\\left|#1\\right\\rangle");var Jo=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,a=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var l=p=>b=>{t&&(b.macros.set("|",s),a.length&&b.macros.set("\\|",o));var y=p;if(!p&&a.length){var k=b.future();k.text==="|"&&(b.popToken(),y=!0)}return{tokens:y?a:n,numArgs:0}};e.macros.set("|",l(!1)),a.length&&e.macros.set("\\|",l(!0));var m=e.consumeArg().tokens,u=e.expandTokens([...i,...m,...r]);return e.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};h("\\bra@ket",Jo(!1));h("\\bra@set",Jo(!0));h("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");h("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");h("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");h("\\angln","{\\angl n}");h("\\blue","\\textcolor{##6495ed}{#1}");h("\\orange","\\textcolor{##ffa500}{#1}");h("\\pink","\\textcolor{##ff00af}{#1}");h("\\red","\\textcolor{##df0030}{#1}");h("\\green","\\textcolor{##28ae7b}{#1}");h("\\gray","\\textcolor{gray}{#1}");h("\\purple","\\textcolor{##9d38bd}{#1}");h("\\blueA","\\textcolor{##ccfaff}{#1}");h("\\blueB","\\textcolor{##80f6ff}{#1}");h("\\blueC","\\textcolor{##63d9ea}{#1}");h("\\blueD","\\textcolor{##11accd}{#1}");h("\\blueE","\\textcolor{##0c7f99}{#1}");h("\\tealA","\\textcolor{##94fff5}{#1}");h("\\tealB","\\textcolor{##26edd5}{#1}");h("\\tealC","\\textcolor{##01d1c1}{#1}");h("\\tealD","\\textcolor{##01a995}{#1}");h("\\tealE","\\textcolor{##208170}{#1}");h("\\greenA","\\textcolor{##b6ffb0}{#1}");h("\\greenB","\\textcolor{##8af281}{#1}");h("\\greenC","\\textcolor{##74cf70}{#1}");h("\\greenD","\\textcolor{##1fab54}{#1}");h("\\greenE","\\textcolor{##0d923f}{#1}");h("\\goldA","\\textcolor{##ffd0a9}{#1}");h("\\goldB","\\textcolor{##ffbb71}{#1}");h("\\goldC","\\textcolor{##ff9c39}{#1}");h("\\goldD","\\textcolor{##e07d10}{#1}");h("\\goldE","\\textcolor{##a75a05}{#1}");h("\\redA","\\textcolor{##fca9a9}{#1}");h("\\redB","\\textcolor{##ff8482}{#1}");h("\\redC","\\textcolor{##f9685d}{#1}");h("\\redD","\\textcolor{##e84d39}{#1}");h("\\redE","\\textcolor{##bc2612}{#1}");h("\\maroonA","\\textcolor{##ffbde0}{#1}");h("\\maroonB","\\textcolor{##ff92c6}{#1}");h("\\maroonC","\\textcolor{##ed5fa6}{#1}");h("\\maroonD","\\textcolor{##ca337c}{#1}");h("\\maroonE","\\textcolor{##9e034e}{#1}");h("\\purpleA","\\textcolor{##ddd7ff}{#1}");h("\\purpleB","\\textcolor{##c6b9fc}{#1}");h("\\purpleC","\\textcolor{##aa87ff}{#1}");h("\\purpleD","\\textcolor{##7854ab}{#1}");h("\\purpleE","\\textcolor{##543b78}{#1}");h("\\mintA","\\textcolor{##f5f9e8}{#1}");h("\\mintB","\\textcolor{##edf2df}{#1}");h("\\mintC","\\textcolor{##e0e5cc}{#1}");h("\\grayA","\\textcolor{##f6f7f7}{#1}");h("\\grayB","\\textcolor{##f0f1f2}{#1}");h("\\grayC","\\textcolor{##e3e5e6}{#1}");h("\\grayD","\\textcolor{##d6d8da}{#1}");h("\\grayE","\\textcolor{##babec2}{#1}");h("\\grayF","\\textcolor{##888d93}{#1}");h("\\grayG","\\textcolor{##626569}{#1}");h("\\grayH","\\textcolor{##3b3e40}{#1}");h("\\grayI","\\textcolor{##21242c}{#1}");h("\\kaBlue","\\textcolor{##314453}{#1}");h("\\kaGreen","\\textcolor{##71B307}{#1}");var Xo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ii=class{constructor(e,r,n){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=r,this.expansionCount=0,this.feed(e),this.macros=new ai(Xu,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new qn(e,this.settings)}switchMode(e){this.mode=e}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(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var i=this.consumeArg(["]"]);a=i.tokens,n=i.end}else{var s=this.consumeArg();a=s.tokens,r=s.start,n=s.end}return this.pushToken(new ut("EOF",n.loc)),this.pushTokens(a),new ut("",ot.range(r,n))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,o=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new q("Extra }",i)}else if(i.text==="EOF")throw new q("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",i);if(e&&n)if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new q("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new q("Use of the macro doesn't match its definition",i)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new q("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||e&&a.unexpandable){if(e&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new q("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0)throw new q("Incomplete placeholder at end of macro body",l);if(l=i[--o],l.text==="#")i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[+l.text-1]);else throw new q("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new ut(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.includes("#"))for(var s=a.replace(/##/g,"");s.includes("#"+(i+1));)++i;for(var o=new qn(a,this.settings),l=[],m=o.lex();m.text!=="EOF";)l.push(m),m=o.lex();l.reverse();var u={tokens:l,numArgs:i};return u}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(er,e)||Object.prototype.hasOwnProperty.call(De.math,e)||Object.prototype.hasOwnProperty.call(De.text,e)||Object.prototype.hasOwnProperty.call(Xo,e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Object.prototype.hasOwnProperty.call(er,e)&&!er[e].primitive}},io=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Gn=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),qa={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},so={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},On=class t{constructor(e,r){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 ii(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new q("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new ut("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(t.endOfExpression.has(a.text)||r&&a.text===r||e&&er[a.text]&&er[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,a=0;a<e.length;a++){var i=e[a];if(i.type==="infix"){if(r!==-1)throw new q("only one infix operator per group",i.token);r=a,n=i.replaceWith}}if(r!==-1&&n){var s,o,l=e.slice(0,r),m=e.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},m.length===1&&m[0].type==="ordgroup"?o=m[0]:o={type:"ordgroup",mode:this.mode,body:m};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[s,e[r],o],[]):u=this.callFunction(n,[s,o],[]),[u]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(e)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new q("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(e){var r=this.parseGroup("atom",e);if(r?.type==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op")r.limits=i.text==="\\limits",r.alwaysHandleSupSub=!0;else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new q("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new q("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new q("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new q("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},o=[s];for(this.consume();this.fetch().text==="'";)o.push(s),this.consume();this.fetch().text==="^"&&o.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:o}}else if(Gn[i.text]){var l=io.test(i.text),m=[];for(m.push(new ut(Gn[i.text])),this.consume();;){var u=this.fetch().text;if(!Gn[u]||io.test(u)!==l)break;m.unshift(new ut(Gn[u])),this.consume()}var p=this.subparse(m);l?a={type:"ordgroup",mode:"math",body:p}:n={type:"ordgroup",mode:"math",body:p}}else break}return n&&a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:n?{type:"supsub",mode:this.mode,base:r,sup:n}:a?{type:"supsub",mode:this.mode,base:r,sub:a}:r}parseFunction(e,r){var n=this.fetch(),a=n.text,i=er[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new q("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new q("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new q("Can't use function '"+a+"' in math mode",n);var s=this.parseArguments(a,i),o=s.args,l=s.optArgs;return this.callFunction(a,o,l,n,e)}callFunction(e,r,n,a,i){var s={funcName:e,parser:this,token:a,breakOnTokenText:i},o=er[e];if(o&&o.handler)return o.handler(s,r,n);throw new q("No function handler for "+e)}parseArguments(e,r){var n,a=(n=r.numOptionalArgs)!=null?n:0,i=r.numArgs+a;if(i===0)return{args:[],optArgs:[]};for(var s=[],o=[],l=0;l<i;l++){var m,u=(m=r.argTypes)==null?void 0:m[l],p=l<a;("primitive"in r&&r.primitive&&u==null||r.type==="sqrt"&&l===1&&o[0]==null)&&(u="primitive");var b=this.parseGroupOfType("argument to '"+e+"'",u,p);if(p)o.push(b);else if(b!=null)s.push(b);else throw new q("Null argument, please report this as a bug")}return{args:s,optArgs:o}}parseGroupOfType(e,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text",resetFont:!0}:null}case"raw":{this.gullet.consumeSpaces();var i=this.gullet.lexer.catcodes["%"];this.gullet.lexer.setCatcode("%",12);var s=this.parseStringGroup(n);return this.gullet.lexer.setCatcode("%",i),s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new q("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new q("Expected group as "+e,this.fetch());return o}case"original":case void 0:return this.parseArgumentGroup(n);default:throw new q("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e){var r=this.gullet.scanArgument(e);if(r==null)return null;for(var n="",a;(a=this.fetch()).text!=="EOF";)n+=a.text,this.consume();return this.consume(),r.text=n,r}parseRegexGroup(e,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&e.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new q("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var r=this.parseStringGroup(e);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new q("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup(e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new q("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!lo(i))throw new q("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){var r=this.gullet.lexer.catcodes["%"],n=this.gullet.lexer.catcodes["~"];this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var a=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode("%",r),this.gullet.lexer.setCatcode("~",n),a==null)return null;var i=a.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(e,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:ot.range(n,l),body:o,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,e)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Object.prototype.hasOwnProperty.call(Xo,a)){if(this.settings.throwOnError)throw new q("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var a=e[n];if(a.type==="textord"){var i=a.text,s=e[n+1];if(!(!s||s.type!=="textord")){if(i==="-"&&s.text==="-"){var o=e[n+2];n+1<r&&o&&o.type==="textord"&&o.text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:ot.range(a,o),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:ot.range(a,s),text:"--"}),r-=1)}(i==="'"||i==="`")&&s.text===i&&(e.splice(n,2,{type:"textord",mode:"text",loc:ot.range(a,s),text:i+i}),r-=1)}}}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new q(`\\verb assertion failed --
|
|
258
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Object.prototype.hasOwnProperty.call(so,r[0])&&!De[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&<({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Accented Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}),r=so[r[0]]+r.slice(1));var i=Ku.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var s;if(De[this.mode][r]){this.settings.strict&&this.mode==="math"&&ja.includes(r)&<({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Latin-1/Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e});var o=De[this.mode][r].group,l=ot.range(e),m;iu(o)?m={type:"atom",mode:this.mode,family:o,loc:l,text:r}:m={type:o,mode:this.mode,loc:l,text:r},s=m}else if(r.charCodeAt(0)>=128)this.settings.strict&&(oo(r.charCodeAt(0))?this.mode==="math"&<({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e}):lt({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e})),s={type:"textord",mode:"text",loc:ot.range(e),text:r};else return null;if(this.consume(),i)for(var u=0;u<i[0].length;u++){var p=i[0][u];if(!qa[p])throw new q("Unknown accent ' "+p+"'",e);var b=qa[p][this.mode]||qa[p].text;if(!b)throw new q("Accent "+p+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:ot.range(e),label:b,isStretchy:!1,isShifty:!0,base:s}}return s}};On.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var vi=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new On(e,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new q("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new ut("\\df@tag")])}]}return a},_o=function(e,r,n){r.textContent="";var a=xi(e,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),_o=function(){throw new q("KaTeX doesn't work in quirks mode.")});var Zu=function(e,r){var n=xi(e,r).toMarkup();return n},Qu=function(e,r){var n=new Yr(r);return vi(e,n)},Zo=function(e,r,n){if(n.throwOnError||!(e instanceof q))throw e;var a=I(["katex-error"],[new at(r)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},xi=function(e,r){var n=new Yr(r);try{var a=vi(e,n);return Jd(a,e,n)}catch(i){return Zo(i,e,n)}},em=function(e,r){var n=new Yr(r);try{var a=vi(e,n);return Xd(a,n)}catch(i){return Zo(i,e,n)}},tm="0.19.1",rm={Span:nr,Anchor:Nr,SymbolNode:at,SvgNode:wt,PathNode:$t,LineNode:Jr},Qo={version:tm,render:_o,renderToString:Zu,ParseError:q,SETTINGS_SCHEMA:Oa,__parse:Qu,__renderToDomTree:xi,__renderToHTMLTree:em,__setFontMetrics:Rd,__defineSymbol:c,__defineFunction:W,__defineMacro:h,__domTree:rm};var g={block:"o",panel:"t",banner:"ia",col:"oa",row:"l",wrap:"Rr",card:"e",grid:"B",gridSpan:"ta",spacer:"Tr",divider:"Ur",chart:"la",lineChart:"na",donut:"da",hbars:"ga",cardTitle:"i",text:"s",h1:"Vr",h2:"Wr",h3:"Xr",body:"Zr",muted:"_r",caption:"ae",center:"re",button:"r",primary:"pa",danger:"ca",success:"fa",ghost:"ee",full:"se",small:"ie",field:"C",input:"D",select:"ba",checkbox:"k",link:"E",linkText:"oe",media:"te",mediaLabel:"va",mediaPlayer:"xa",videoPlayer:"le",mediaError:"ne",hero:"de",heroSuccess:"ge",heroWarning:"pe",heroDanger:"ce",heroLabel:"ma",heroTop:"fe",heroValue:"be",heroUnit:"ve",heroSpark:"xe",heroTitle:"ua",heroSubtitle:"wa",inlineCode:"g",inlineStrong:"me",inlineMark:"ue",inlineLink:"ha",inlineFileLink:"G",badge:"p",warn:"we",accent:"he",stat:"H",statHero:"c",statValue:"ya",statLabel:"I",statUnit:"ka",statDelta:"J",up:"ye",statSpark:"za",down:"ke",progress:"ze",progressRow:"ja",track:"Ya",fill:"Fa",list:"je",li:"f",liTitle:"Ma",liDesc:"Sa",tableWrap:"b",table:"a",thNum:"qa",tdNum:"Ye",tdDelta:"Fe",tdDeltaUp:"Me",tdDeltaDown:"Se",tdMultiline:"v",tdCode:"x",detailRow:"K",calloutBody:"Aa",kvValue:"Ba",tlDesc:"Ca",detailBody:"Da",accBody:"Ea",ringLabel:"Ga",ringSub:"Ha",calloutTitle:"n",stepTitle:"z",stepDesc:"Ia",kvKey:"Ja",tlTitle:"Ka",tlTime:"La",accTitle:"qe",fieldLabel:"Na",switchLabel:"Oa",radio:"j",tab:"m",badgeLabel:"Ae",gradeQ:"Pa",gradeAns:"Qa",gradeRight:"Ra",gradeExp:"Ta",quizQuestion:"Ua",quizFeedback:"Va",quizExplanation:"Wa",thSort:"u",thSortMark:"Be",chartBody:"Ce",chartYAxis:"De",chartYTick:"Ee",chartPlot:"Ge",baseline:"He",gridline:"Ie",chartLabels:"Xa",chartLegend:"Je",legendItem:"Ke",legendSwatch:"Le",lineArea:"Ne",chartTip:"Oe",chartTipRow:"Pe",chartTipValue:"Qe",stackValue:"Re",barCol:"Te",barValue:"Ue",stack:"Ve",stackSeg:"Za",barFill:"L",barLabel:"We",tabs:"Xe",tabBar:"Ze",tabActive:"_e",avatar:"as",callout:"rs",calloutInfo:"_a",calloutSuccess:"ar",calloutWarning:"rr",calloutError:"er",steps:"es",step:"sr",stepDone:"ir",stepActive:"or",stepMarker:"N",stepContent:"ss",keyvalue:"is",kvRow:"Y",jsonScalar:"os",linePath:"ts",lineDot:"tr",lineGrid:"ls",lineGridAxis:"ns",lineTick:"ds",lineLabel:"gs",lineLabels:"ps",groupedBars:"cs",groupedBar:"fs",groupValue:"bs",groupedFill:"lr",donutTrack:"vs",donutSeg:"nr",donutTotal:"xs",donutTotalLabel:"ms",donutLegend:"us",donutPct:"ws",ring:"hs",ringTrack:"ys",ringFill:"ks",ringValue:"zs",ringMeta:"js",targetMark:"Ys",filterRow:"Fs",filterHint:"Ms",tableTools:"Ss",tableTool:"O",detailCell:"dr",detailToggle:"F",detailContent:"qs",detailChevron:"gr",groupRow:"w",groupToggle:"P",groupLabel:"pr",groupChevron:"As",groupCount:"Bs",groupChild:"Q",cardInfo:"cr",cardSuccess:"fr",cardWarning:"br",cardDanger:"vr",hbarRow:"Cs",hbarLabel:"Ds",hbarTracks:"Es",hbarSeg:"Gs",hbarTrack:"Hs",hbarFill:"Is",hbarValue:"Js",cellBadge:"Ks",cellSpark:"Ls",cellRing:"Ns",cellRingText:"Os",cellIndex:"Ps",cellBar:"Qs",cellBarFill:"Rs",cellBarText:"Ts",fieldGroup:"Us",submitRow:"Vs",submit:"Ws",submitHint:"Xs",btnSent:"R",gradeWrap:"Zs",gradeScore:"_s",gradeScoreValue:"ai",gradeScoreLabel:"ri",gradeList:"ei",gradeItem:"si",gradeItemOk:"xr",gradeItemNo:"mr",gradeTag:"T",switchRow:"ur",switch:"U",switchOn:"wr",switchKnob:"V",sliderRow:"ii",sliderInput:"hr",sliderValue:"oi",textarea:"yr",accordion:"ti",accItem:"kr",accHead:"M",accChevron:"zr",copyChip:"S",copyChipDone:"li",mermaid:"d",mermaidFallback:"jr",mermaidErr:"ni",mermaidHint:"di",scene3dWrap:"gi",echartWrap:"pi",echartTitle:"ci",echartCanvas:"fi",echartHint:"bi",echartFallback:"vi",echartErr:"xi",scene3dTitle:"mi",scene3dCanvas:"Yr",scene3dHint:"ui",timeline:"wi",tlItem:"W",tlRail:"hi",tlDot:"Fr",tlLine:"yi",tlBody:"Mr",tlHead:"ki",fileTree:"h",ftChildren:"zi",ftRow:"Sr",ftGuide:"ji",ftChevron:"qr",ftGlyph:"Yi",ftGlyphDir:"Fi",ftName:"Mi",ftDir:"Si",ftNameBtn:"X",breadcrumb:"qi",bcItem:"Ai",bcText:"Z",bcCurrent:"Bi",bcSep:"Ci",skeleton:"Di",skeletonTitle:"_",skeletonBars:"q",skeletonBlock:"aa","dsl-skeleton":"Ar",genuiReveal:"Br",genuiPopIn:"Cr",reveal:"Dr",panelBody:"y",visuallyHidden:"Ei",quiz:"Gi",quizOptions:"Hi",quizOpt:"A",quizRetry:"ra",resetBtn:"Ii",playBtn:"Ji",quizOptCorrect:"Er",quizOptWrong:"Gr",quizOptReveal:"Ki",quizMarker:"ea",quizResult:"Li",quizCorrectMsg:"Ni",quizWrongMsg:"Oi",tool:"Pi",toolFallback:"Qi",toolFallbackTitle:"Ri",toolFallbackMeta:"Ti",panelHeader:"Hr",panelToggle:"Ir",panelClose:"sa",panelTpl:"Jr",panelTplActive:"Ui",panelOnboard:"Vi",panelOnboardText:"Wi",panelFlash:"Xi",panelHint:"Zi",achToasts:"_i",achToast:"ao",achToastBadge:"ro",achToastBody:"eo",achToastName:"so",achToastDesc:"io",panelBadge:"oo",panelTitle:"to",panelChevron:"lo",panelResizeHandle:"Kr",panelResizeHandleActive:"no",inlineMath:"Lr"};function am(t,e){return typeof t=="string"&&e.includes(t)}function z(t,e){return typeof t=="string"?t.slice(0,e):void 0}var im=/^(?:#[\da-fA-F]{3,8}|rgba?\([^)]{0,64}\)|hsla?\([^)]{0,64}\)|var\(--dsw-[\w-]+(?:,\s*#[0-9a-fA-F]{3,8})?\))$/;function Lt(t){if(typeof t!="string")return;let e=t.trim();return e.length<=64&&im.test(e)?e:void 0}function e0(t){if(typeof t!="string")return;let e=t.trim();if(!(e.length>2048))return/^https?:\/\//i.test(e)||/^mailto:[^@\s]+@[^@\s]+$/i.test(e)?e:void 0}function or(t){if(typeof t!="string")return;let e=t.trim();if(!(e===""||e.length>2048)){if(/^https?:\/\//i.test(e))return e;if(!(/^[a-z][a-z0-9+.-]*:/i.test(e)||/^[/\\]{2}/.test(e)))return e}}function Te(t,e,r){return typeof t=="number"&&Number.isFinite(t)?Math.min(r,Math.max(e,t)):void 0}function Bt(t,e,r){return typeof t=="number"&&Number.isFinite(t)?Math.min(r,Math.max(e,Math.trunc(t))):void 0}function Ue(t,e){return am(t,e)?t:void 0}function ue(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:void 0}function S(t,e){return e===void 0?{}:{[t]:e}}function sm(t){if(t.length>2048)return;let e=t.indexOf("#"),r=e<0?t:t.slice(0,e);if(r.includes("?"))return;let n;try{n=decodeURIComponent(r)}catch{return}if(n===""||/[\u0000-\u001f\u007f]/.test(n)||/^[\\/]{2}/.test(n)||/^[a-z][a-z\d+.-]*:/i.test(n)&&!/^[a-z]:[\\/]/i.test(n))return;if(e<0)return{path:n};let a=/^L([1-9]\d*)(?:-L([1-9]\d*))?$/.exec(t.slice(e+1));if(a===null)return;let i=Number(a[1]),s=a[2]===void 0?i:Number(a[2]);if(!(!Number.isSafeInteger(i)||!Number.isSafeInteger(s)||s<i))return{path:n,line:i}}function Rr(t){let e=e0(t);if(e!==void 0)return{type:"external",href:e};if(typeof t!="string")return{type:"invalid"};let r=sm(t.trim());return r===void 0?{type:"invalid"}:{type:"file",file:r}}var Yt=require("react");var wi=(0,Yt.createContext)(void 0);function Jn({path:t,line:e,label:r,children:n}){let a=(0,Yt.useContext)(wi);return a===void 0?(0,Yt.createElement)("span",{title:t},n):(0,Yt.createElement)("button",{type:"button",className:g.inlineFileLink,title:t,"aria-label":`${r} (${t})`,onClick:i=>{i.stopPropagation(),a(t,e)}},n)}function om({source:t,display:e}){let r=(0,kt.useRef)(null);return(0,kt.useLayoutEffect)(()=>{r.current!==null&&Qo.render(t,r.current,{displayMode:e,throwOnError:!1,trust:!1,maxExpand:1e3,maxSize:20,output:"htmlAndMathml"})},[t,e]),(0,kt.createElement)("span",{ref:r,className:g.inlineMath})}var lm=/(?<!`)`[^`\n]+`(?!`)|\\\\|\\\$|(?<![\\$])\$\$(?:\\.|[^\\])*?\$\$|\\\[(?:\\(?!\])[^]|[^\\])*?\\\]|\\\((?:\\(?!\))[^]|[^\\])*?\\\)|(?<![\\$])\$(?!\s|\$)(?:\\.|[^$\\\n])+(?<!\s)\$(?!\d|\$)|\*\*[\s\S]+?\*\*|==[\s\S]+?==|\[[^\]\n]+\]\([^)\s]+\)|\r?\n/g,t0=/`{3,}|~{3,}/g;function cm(t){return typeof t=="string"&&/[`*=$\\\n\r]|\[/.test(t)}function B(t,e=!0,r=0){if(typeof t!="string"||t===""||!cm(t)||r>=8)return t;let n=[],a=0;for(let l of t.matchAll(t0)){let m=l.index??0;if(m<a)continue;let u=l[0],p=m+u.length,b;for(let y of t.slice(p).matchAll(t0))if(y[0][0]===u[0]&&y[0].length>=u.length){b=p+(y.index??0)+y[0].length;break}if(m>a&&n.push(B(t.slice(a,m),e,r)),a=b??t.length,n.push(t.slice(m,a)),b===void 0)break}if(n.length>0)return a<t.length&&n.push(B(t.slice(a),e,r)),n;let i=[],s=0,o=0;for(let l of t.matchAll(lm)){let m=l.index??0,u=l[0];if(m>s&&i.push(t.slice(s,m)),u===`
|
|
259
259
|
`||u===`\r
|
|
260
260
|
`)i.push(`
|
|
261
|
-
`);else if(u.startsWith("`"))i.push((0,kt.createElement)("code",{key:o++,className:g.inlineCode},u.slice(1,-1)));else if(u==="\\$"||u==="\\\\")i.push(u.slice(1));else if(u.startsWith("$")||u.startsWith("\\(")||u.startsWith("\\[")){let p=u.startsWith("$$")||u.startsWith("\\["),b=u.startsWith("$")&&!p?1:2;i.push((0,kt.createElement)(om,{key:o++,source:u.slice(b,-b),display:p}))}else if(u.startsWith("**")||u.startsWith("==")){let p=u.startsWith("**");i.push((0,kt.createElement)(p?"strong":"mark",{key:o++,className:p?g.inlineStrong:g.inlineMark},B(u.slice(2,-2),e,r+1)))}else{let p=/^\[([^\]\n]+)\]\(([^)\s]+)\)$/.exec(u);if(p===null)i.push(u);else{let b=Rr(p[2]),y=B(p[1],!1,r+1);b.type==="external"&&e===!0?i.push((0,kt.createElement)("a",{key:o++,className:g.inlineLink,href:b.href,target:"_blank",rel:"noreferrer noopener"},y)):b.type==="file"&&e!==!1?i.push((0,kt.createElement)(Jn,{key:o++,path:b.file.path,label:p[1],...b.file.line===void 0?{}:{line:b.file.line}},y)):i.push(y)}}s=m+u.length}return s<t.length&&i.push(t.slice(s)),i.length===0?t:i}var Ne=require("react");var ta=require("react");var rn=require("react");var o0=require("react");var r0={"artifact.export":"Export","artifact.exportHtml":"HTML","artifact.exportJson":"GenUI JSON","artifact.exportFailed":"Export failed. Try again.","artifact.unsupportedCustom":"Cannot export HTML because the standalone runtime cannot render custom components: {types}. Export GenUI JSON to preserve these nodes.","artifact.externalMediaNotice":"External media may not appear when this file is opened offline.","panel.badge":"Panel","panel.title.default":"GenUI panel","panel.title.explore":"GenUI explorer","panel.templates":"Templates","panel.templates.aria":"Template center","panel.templates.title":"Template center: preview and try GenUI examples","panel.achievements":"Trophies","panel.achievements.aria":"Exploration trophies","panel.achievements.title":"Exploration trophies: badges and progress","panel.close.aria":"Close panel","panel.resize.aria":"Resize panel height","panel.hint":"\u{1F4A1} This is the GenUI session panel \u2014 hit \u201CTemplates\u201D above to browse runnable examples","panel.boundary":"panel","panel.flash.inserted":"Instruction inserted into the composer \u2014 send it to generate","panel.cmd.hint":"Open the GenUI panel; /panel <instruction> to customize; /panel clear to empty","panel.cmd.description":"Open the GenUI panel (/panel clear empties it; /panel <instruction> tailors the content)","panel.default.heading":"GenUI generative interface","panel.default.subtitle":"The panel updates in place: say \u201Cupdate the panel\u201D in chat, or run /panel again to refresh.","panel.default.stat.components":"Components","panel.default.stat.single":"Primitives","panel.default.stat.composite":"Composites","panel.default.stat.advanced":"Advanced","panel.default.group.single":"Primitives \xD712","panel.default.group.composite":"Composites \xD78","panel.default.group.data":"Data \xD77","panel.default.group.interactive":"Interactive \xD75","panel.default.group.advanced":"Advanced \xD75","panel.default.group.teaching":"Teaching \xD71","panel.default.callout.title":"How to update","panel.default.callout.body":"Say \u201Cupdate the panel\u201D in chat \u2192 the model emits a panel:true fence; /panel clear empties it.","tpl.category.all":"All","tpl.category.dashboard":"Dashboard","tpl.category.data":"Data","tpl.category.flow":"Flow","tpl.category.chart":"Charts","tpl.category.interactive":"Interactive","tpl.category.quiz":"Quiz","tpl.category.advanced":"Advanced","tpl.categories.aria":"Template categories","tpl.try":"Try it: insert into composer","tpl.copy":"Copy instruction","tpl.copied":"\u2713 Copied","tpl.boundary.preview":"template preview","tpl.boundary.achievements":"trophy page","tpl.dashboard.name":"Project dashboard","tpl.dashboard.desc":"Core metrics on one card: numbers, deltas and a progress bar \u2014 the decision at a glance.","tpl.dashboard.instruction":"Use dsh-ui to build a dashboard for this project: 4 key-metric stat cards (with deltas), an overall progress bar, and a list of today\u2019s 3 todos. Title it \u201CProject dashboard\u201D.","tpl.dashboard.demo.title":"Project dashboard (example)","tpl.dashboard.demo.metrics":"This week\u2019s key metrics","tpl.dashboard.demo.done":"Completed","tpl.dashboard.demo.blocked":"Blocked","tpl.dashboard.demo.duration":"Avg. cycle time","tpl.dashboard.demo.coverage":"Coverage","tpl.dashboard.demo.progress":"Overall progress","tpl.dashboard.demo.milestone":"v1.0 milestone","tpl.dashboard.demo.todo":"Today\u2019s todos","tpl.dashboard.demo.todo1":"Review the M1 template-center PR","tpl.dashboard.demo.todo2":"Sync vendor to SSiD","tpl.dashboard.demo.todo3":"Wednesday standup deck","tpl.compare.name":"Option comparison","tpl.compare.desc":"Options scored dimension by dimension \u2014 the contested cells jump out.","tpl.compare.instruction":"Use dsh-ui to turn these options into a comparison table: options A/B/C \xD7 dimensions (cost / complexity / risk / payoff), marking the recommended column; add a callout at the top stating the conclusion.","tpl.compare.demo.title":"Option comparison (example)","tpl.compare.demo.conclusion":"Conclusion","tpl.compare.demo.body":"Option B wins overall: medium cost, low complexity, low risk.","tpl.compare.demo.dimension":"Dimension","tpl.compare.demo.optionA":"Option A","tpl.compare.demo.optionB":"Option B \u2605","tpl.compare.demo.optionC":"Option C","tpl.compare.demo.cost":"Cost","tpl.compare.demo.complexity":"Complexity","tpl.compare.demo.risk":"Risk","tpl.compare.demo.payoff":"Payoff","tpl.compare.demo.high":"High","tpl.compare.demo.medium":"Medium","tpl.compare.demo.low":"Low","tpl.compare.demo.large":"Large","tpl.compare.demo.small":"Small","tpl.steps.name":"Five-step walkthrough","tpl.steps.desc":"Key steps on a timeline, one line each \u2014 for tutorials, handovers and release runbooks.","tpl.steps.instruction":"Use dsh-ui to turn the procedure into a steps walkthrough: 5 steps following the real flow, each with a title and a line or two of detail, with a badge at the top showing the expected duration.","tpl.steps.demo.title":"Getting started (example)","tpl.steps.demo.badge":"About 5 minutes","tpl.steps.demo.s1":"Install the plugin","tpl.steps.demo.s1desc":"From the plugin center, or npm-install it into your profile","tpl.steps.demo.s2":"Send your first instruction","tpl.steps.demo.s2desc":"Ask the model to answer with a dsh-ui interface","tpl.steps.demo.s3":"Try the interaction","tpl.steps.demo.s3desc":"Click a button, grade a quiz, switch a tab \u2014 actions travel back to the model","tpl.steps.demo.s4":"Pin a panel","tpl.steps.demo.s4desc":"The model uses panel:true to pin results to the session panel","tpl.steps.demo.s5":"Advanced components","tpl.steps.demo.s5desc":"Charts, diagrams and 3D load lazily, on demand","tpl.quiz.name":"Pop quiz","tpl.quiz.desc":"Graded the moment you answer: right or wrong plus an explanation \u2014 good for training.","tpl.quiz.instruction":"Use dsh-ui to write 3 pop-quiz questions (quiz component: question + options, exactly one correct, each with an explanation), titled \u201CPop quiz\u201D, graded as soon as an option is picked.","tpl.quiz.demo.title":"Pop quiz (example)","tpl.quiz.demo.hint":"Picking an option grades it instantly and reveals the explanation.","tpl.quiz.demo.q1":"What is the smallest unit of a DSH plugin?","tpl.quiz.demo.q1a":"A service","tpl.quiz.demo.q1b":"A plugin (a cordis plugin)","tpl.quiz.demo.q1bfx":"\u2713 Everything is a plugin: services, tools and UI all register through one.","tpl.quiz.demo.q1c":"A tool","tpl.quiz.demo.q1exp":"DSH is built on cordis: every capability, services and tools included, registers as a plugin.","tpl.quiz.demo.q2":"Who emits a dsh-ui fence?","tpl.quiz.demo.q2a":"The user","tpl.quiz.demo.q2b":"The model","tpl.quiz.demo.q2bfx":"\u2713 The model writes the dsh-ui fence into its reply.","tpl.quiz.demo.q2c":"The host","tpl.quiz.demo.q2exp":"The model emits the fence; the renderer paints it into real components.","tpl.quiz.demo.q3":"Where does a panel:true fence render?","tpl.quiz.demo.q3a":"The message flow","tpl.quiz.demo.q3b":"The session panel dock","tpl.quiz.demo.q3bfx":"\u2713 Panel updates never spam the transcript.","tpl.quiz.demo.q3c":"The settings page","tpl.stats.name":"Key figures + progress","tpl.stats.desc":"Numbers, progress and milestones in one delivery \u2014 the standard weekly report.","tpl.stats.instruction":"Use dsh-ui to summarize this week: a keyvalue block with 3 key figures, two progress bars (planned vs actual), and a timeline with 3 milestones. Title it \u201CWeekly snapshot\u201D.","tpl.stats.demo.title":"Weekly snapshot (example)","tpl.stats.demo.done":"Completed","tpl.stats.demo.late":"Late","tpl.stats.demo.risk":"Risks","tpl.stats.demo.riskValue":"2 (both mitigated)","tpl.stats.demo.planned":"Planned progress","tpl.stats.demo.actual":"Actual progress","tpl.stats.demo.mon":"Monday","tpl.stats.demo.monDesc":"M1 development complete","tpl.stats.demo.wed":"Wednesday","tpl.stats.demo.wedDesc":"End-to-end verification passed","tpl.stats.demo.fri":"Friday","tpl.stats.demo.friDesc":"Shipped 0.9.4","tpl.chart.name":"Trend chart","tpl.chart.desc":"Data drawn straight into a chart \u2014 multiple series, trend visible at a glance.","tpl.chart.instruction":"Use dsh-ui to plot this data as a chart (bars, multi-series): completed vs planned over the last 6 weeks, with a one-line trend conclusion above the chart.","tpl.chart.demo.title":"Trend comparison (example)","tpl.chart.demo.conclusion":"Conclusion: completions rose 3 weeks running and overtook plan for the first time this week.","tpl.tabs.name":"Tabbed sections","tpl.tabs.desc":"A big block split into tabs: clear anchors, an uncluttered panel, no transcript spam.","tpl.tabs.instruction":"Use dsh-ui to split the content into three tabs: Overview / Details / FAQ, at most 3 points per tab. Title it \u201CFeature tour\u201D.","tpl.tabs.demo.title":"Feature tour (example)","tpl.tabs.demo.overview":"Overview","tpl.tabs.demo.overviewBody":"Three capabilities: live rendering, action round-trips, and a persistent panel.","tpl.tabs.demo.details":"Details","tpl.tabs.demo.d1":"Rendering: incremental fence parsing, painted as it streams","tpl.tabs.demo.d2":"Interaction: actions travel back and the model updates in place","tpl.tabs.demo.d3":"Panel: a session-level dock you can collapse and resize","tpl.tabs.demo.faqBody":"Q: What if the model never replies? A: Components still grade and expand locally.","tpl.checklist.name":"Release checklist","tpl.checklist.desc":"Tick every box before you ship: the list is the process, and gaps are visible.","tpl.checklist.instruction":"Use dsh-ui to build a release checklist: 6 tickable checkbox items (tests / docs / release / rollback / monitoring / announcement), with a badge at the top reading \u201CTick everything before merging\u201D.","tpl.checklist.demo.title":"Release checklist (example)","tpl.checklist.demo.badge":"Tick everything before merging","tpl.checklist.demo.c1":"Unit tests pass","tpl.checklist.demo.c2":"Docs updated","tpl.checklist.demo.c3":"Release bundle ready","tpl.checklist.demo.c4":"Rollback plan","tpl.accordion.name":"FAQ accordion","tpl.accordion.desc":"Questions and answers folded away: long documents get short and answers stop intimidating.","tpl.accordion.instruction":"Use dsh-ui to build an FAQ accordion: 5 common questions, the question as the header and the answer inside, with the first one expanded by default.","tpl.accordion.demo.title":"FAQ (example)","tpl.accordion.demo.q1":"Which chart types are supported?","tpl.accordion.demo.a1":"chart (bars/line/donut), plot for function graphs, and echart for the full chart library.","tpl.accordion.demo.q2":"Does the panel persist?","tpl.accordion.demo.a2":"The same content fingerprint restores its state across refresh and replay; new content resets.","tpl.accordion.demo.q3":"Do interactions disturb the model?","tpl.accordion.demo.a3":"Only components carrying an action send anything; pure display costs zero round-trips.","tpl.diagram.name":"System architecture","tpl.diagram.desc":"Architecture drawn as SVG: layered nodes, real edges, labelled zones \u2014 clearer than a screenshot.","tpl.diagram.instruction":"Use dsh-ui to draw an architecture diagram: 5 nodes of this system and their connections (kind: architecture or flowchart), including one security zone.","tpl.diagram.demo.title":"Architecture (example)","tpl.diagram.demo.caption":"DSH plugin path","tpl.diagram.demo.model":"Model","tpl.diagram.demo.plugin":"Plugin","tpl.diagram.demo.host":"Host","tpl.3d.name":"3D scene","tpl.3d.desc":"A rotatable 3D scene \u2014 for product demos and spatial explanations.","tpl.3d.instruction":"Use dsh-ui to render a 3D scene (scene3d): a cube and a sphere, titled \u201CExample scene\u201D, with a sentence on when to use it.","tpl.3d.demo.title":"3D scene (example)","tpl.3d.demo.note":"The first load downloads three.js (~700KB, lazily); afterwards it comes from cache.","tpl.3d.demo.scene":"Example scene","tpl.breadcrumb.name":"Path breadcrumb","tpl.breadcrumb.desc":"Long paths as breadcrumbs: file location and org hierarchy read instantly.","tpl.breadcrumb.instruction":"Use dsh-ui to show the current workspace layout: a breadcrumb for the file path (4 segments) and a file-tree of the project (3 directories, 2 children each).","tpl.breadcrumb.demo.title":"Directory layout (example)","tpl.breadcrumb.demo.workspace":"Workspace","ach.page.title":"GenUI exploration trophies","ach.stat.unlocked":"Unlocked","ach.stat.rendered":"Interfaces rendered","ach.stat.interactions":"Interactions","ach.progress":"Exploration progress","ach.rarity.common":"Common","ach.rarity.rare":"Rare","ach.rarity.legendary":"Legendary","ach.hidden.name":"?","ach.hidden.desc":"Keep exploring to reveal","ach.toast.unlocked":"Trophy unlocked: {name}","ach.first-fence.name":"First contact","ach.first-fence.desc":"Rendered your first GenUI interface.","ach.fence-5.name":"Getting the hang of it","ach.fence-5.desc":"Rendered 5 interfaces.","ach.fence-25.name":"Interface weaver","ach.fence-25.desc":"Rendered 25 interfaces.","ach.fence-50.name":"Soul of the blueprint","ach.fence-50.desc":"Rendered 50 interfaces \u2014 you and GenUI go way back.","ach.first-interaction.name":"The button works","ach.first-interaction.desc":"Triggered a component interaction for the first time.","ach.interaction-10.name":"Little puppeteer","ach.interaction-10.desc":"Triggered 10 component interactions.","ach.first-panel.name":"Pinned to the wall","ach.first-panel.desc":"Pinned content to the session panel for the first time.","ach.panel-5.name":"Panel keeper","ach.panel-5.desc":"Used the panel in 5 different sessions.","ach.first-chart.name":"Chart enthusiast","ach.first-chart.desc":"Rendered your first chart (chart/plot/echart).","ach.chart-10.name":"Data visualizer","ach.chart-10.desc":"Charts appeared in 10 interfaces.","ach.first-advanced.name":"Power user","ach.first-advanced.desc":"Used 3D, a chart engine, or an architecture diagram.","ach.template-1.name":"Template student","ach.template-1.desc":"Tried a template from the template center.","label.copy":"Copy","label.copied":"Copied","label.copiedDone":"Copied","label.copiedShort":"\u2713 Copied","label.copiedToClipboard":"Copied to clipboard","label.copyFailed":"Copy failed","label.code":"Code","label.wrap":"Wrap lines","label.unwrap":"Unwrap lines","label.collapse":"Collapse","label.collapseDiff.aria":"Collapse diff","label.expandDiff.aria":"Show the remaining {hidden} diff lines","label.expandDiff":"\u2026 {hidden} more lines","label.diffFiles":"{count} files","label.copyValue":"Copy value","label.copyJson":"Copy JSON","label.copyPath":"Copy property path","label.copyPrettyJson":"Copy formatted JSON","label.copyCompactJson":"Copy compact JSON","label.collapseNode":"Collapse JSON node","label.expandNode":"Expand JSON node","label.copyButtonTitle":"{action}; right-click for copy options","block.copyMarkdown":"Copy Markdown","block.copyCsv":"Copy CSV","block.table.expandDetails":"Expand details for {label}","block.table.collapseDetails":"Collapse details for {label}","block.table.expandGroup":"Expand group {label}","block.table.collapseGroup":"Collapse group {label}","block.total":"Total","block.filteredRows":"{visible} / {total} rows after filtering","block.filterMatch":"{shown} / {total} matched","block.triggered":"\u2713 Sent","block.triggeredPlain":"Sent","block.audio":"Audio","block.audioError":"Audio cannot be played","block.video":"Video","block.videoError":"Video cannot be played","block.image":"Image","block.imageError":"Image failed to load","block.svgLabel":"SVG diagram","block.svgPreview":"Preview","block.svgSource":"Source","block.svgError":"SVG could not be displayed \u2014 showing the source instead","block.mermaidError":"Diagram rendering failed \u2014 showing the source instead","block.mermaidLoading":"Rendering\u2026","block.scene3dLoading":"Loading 3D scene\u2026","block.scene3dError":"3D rendering failed","block.quizCorrect":"\u2713 Correct!","block.quizWrong":"\u2717 Try again","block.quizRetry":"Start over","block.selectPlaceholder":"Choose\u2026","block.score":"Score","block.scoreUngraded":" ({count} unanswered, not scored)","block.yourAnswer":"Your answer:","block.correctAnswer":" Correct answer:","block.selectedCount":"{answered}/{total} answered","block.target":"Target {value}%","block.chart.barsAria":"Horizontal bar chart, {count} groups","block.chart.barsSummary":"Bar chart, {count} groups, max {max}","block.chart.lineSeries":"Line chart, {count} series, range {min} to {max}","block.chart.linePoints":"Line chart, {count} points, range {min} to {max}","block.chart.donutSummary":"Donut chart, {count} slices, total {total}","block.chart.node":"Point","err.boundary.generic":"this interface","err.boundary.fence":"this interface","err.boundary.body":"\u26A0\uFE0F {label} failed to render (isolated \u2014 the rest of the reply is unaffected)","err.fieldValidation":"GenUI field validation failed: {errors}","err.chartValidation":"chart field validation failed: {errors}","err.fenceKeptAsCode":"\u26A0\uFE0F dsh-ui {diagnostic} \u2014 the fence stays a code block; fix it and resend.","err.fenceParse":"\u26A0\uFE0F dsh-ui fence JSON failed to parse{diagnostic} \u2014 the fence stays a code block; ask the model to fix the JSON and resend."};var n0={"artifact.export":"\u5BFC\u51FA","artifact.exportHtml":"HTML","artifact.exportJson":"GenUI JSON","artifact.exportFailed":"\u5BFC\u51FA\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002","artifact.unsupportedCustom":"\u65E0\u6CD5\u5BFC\u51FA HTML\uFF1A\u72EC\u7ACB\u8FD0\u884C\u73AF\u5883\u65E0\u6CD5\u663E\u793A\u81EA\u5B9A\u4E49\u7EC4\u4EF6 {types}\u3002\u53EF\u5BFC\u51FA GenUI JSON \u4FDD\u5B58\u8FD9\u4E9B\u8282\u70B9\u3002","artifact.externalMediaNotice":"\u6B64\u9875\u9762\u542B\u6709\u5916\u90E8\u5A92\u4F53\uFF0C\u79BB\u7EBF\u6253\u5F00\u65F6\u90E8\u5206\u5185\u5BB9\u53EF\u80FD\u65E0\u6CD5\u663E\u793A\u3002","panel.badge":"\u9762\u677F","panel.title.default":"GenUI \u9762\u677F","panel.title.explore":"GenUI \u63A2\u7D22","panel.templates":"\u6A21\u677F","panel.templates.aria":"\u6A21\u677F\u4E2D\u5FC3","panel.templates.title":"\u6A21\u677F\u4E2D\u5FC3\uFF1A\u9884\u89C8\u5E76\u8BD5\u7528 GenUI \u793A\u4F8B","panel.achievements":"\u6210\u5C31","panel.achievements.aria":"\u63A2\u7D22\u6210\u5C31","panel.achievements.title":"\u63A2\u7D22\u6210\u5C31\uFF1A\u89E3\u9501\u5FBD\u7AE0\u4E0E\u8FDB\u5EA6","panel.close.aria":"\u5173\u95ED\u9762\u677F","panel.resize.aria":"\u8C03\u6574\u9762\u677F\u9AD8\u5EA6","panel.hint":"\u{1F4A1} \u8FD9\u662F GenUI \u4F1A\u8BDD\u9762\u677F\uFF1A\u70B9\u53F3\u4E0A\u89D2\u300C\u6A21\u677F\u300D\u53EF\u6D4F\u89C8\u5E76\u8BD5\u7528\u793A\u4F8B","panel.boundary":"\u9762\u677F","panel.flash.inserted":"\u6307\u4EE4\u5DF2\u63D2\u5165\u8F93\u5165\u6846\uFF0C\u53D1\u9001\u5373\u53EF\u8BA9\u6A21\u578B\u751F\u6210","panel.cmd.hint":"\u5F00\u542F GenUI \u9762\u677F\uFF1B/panel <\u6307\u4EE4> \u8BA9\u6A21\u578B\u5B9A\u5236\uFF1B/panel clear \u6E05\u7A7A","panel.cmd.description":"\u5F00\u542F GenUI \u9762\u677F\uFF08/panel clear \u6E05\u7A7A\uFF1B/panel <\u6307\u4EE4> \u5B9A\u5236\u5185\u5BB9\uFF09","panel.default.heading":"GenUI \u751F\u6210\u5F0F\u754C\u9762","panel.default.subtitle":"\u9762\u677F\u4F1A\u539F\u5730\u66F4\u65B0\uFF1A\u5BF9\u8BDD\u91CC\u8BF4\u300C\u66F4\u65B0\u9762\u677F\u300D\uFF0C\u6216\u518D\u6B21\u6267\u884C /panel \u5237\u65B0\u3002","panel.default.stat.components":"\u7EC4\u4EF6","panel.default.stat.single":"\u5355\u4E2A","panel.default.stat.composite":"\u7EC4\u5408","panel.default.stat.advanced":"\u9AD8\u7EA7","panel.default.group.single":"\u5355\u4E2A \xD712","panel.default.group.composite":"\u7EC4\u5408 \xD78","panel.default.group.data":"\u6570\u636E \xD77","panel.default.group.interactive":"\u4EA4\u4E92 \xD75","panel.default.group.advanced":"\u9AD8\u7EA7 \xD75","panel.default.group.teaching":"\u6559\u5B66 \xD71","panel.default.callout.title":"\u66F4\u65B0\u65B9\u5F0F","panel.default.callout.body":"\u5BF9\u8BDD\u8BF4\u300C\u66F4\u65B0\u9762\u677F\u300D\u2192 \u6A21\u578B\u8F93\u51FA panel:true \u56F4\u680F\uFF1B/panel clear \u6E05\u7A7A\u9762\u677F\u3002","tpl.category.all":"\u5168\u90E8","tpl.category.dashboard":"\u4EEA\u8868\u76D8","tpl.category.data":"\u6570\u636E","tpl.category.flow":"\u6D41\u7A0B","tpl.category.chart":"\u56FE\u8868","tpl.category.interactive":"\u4EA4\u4E92","tpl.category.quiz":"\u6D4B\u9A8C","tpl.category.advanced":"\u9AD8\u7EA7","tpl.categories.aria":"\u6A21\u677F\u5206\u7C7B","tpl.try":"\u8BD5\u7528\uFF1A\u63D2\u5165\u8F93\u5165\u6846","tpl.copy":"\u590D\u5236\u6307\u4EE4","tpl.copied":"\u2713 \u5DF2\u590D\u5236","tpl.boundary.preview":"\u6A21\u677F\u9884\u89C8","tpl.boundary.achievements":"\u6210\u5C31\u9875","tpl.dashboard.name":"\u9879\u76EE\u4EEA\u8868\u76D8","tpl.dashboard.desc":"\u4E00\u5F20\u5361\u7247\u6C47\u603B\u6838\u5FC3\u6307\u6807\uFF1A\u6570\u5B57 + \u73AF\u6BD4 + \u8FDB\u5EA6\u6761\uFF0C\u51B3\u7B56\u4E00\u773C\u53EF\u89C1\u3002","tpl.dashboard.instruction":"\u8BF7\u7528 dsh-ui \u7ED9\u5F53\u524D\u9879\u76EE\u505A\u4E00\u4E2A\u4EEA\u8868\u76D8\uFF1A4 \u4E2A\u5173\u952E\u6307\u6807\u7684 stat \u5361\u7247\uFF08\u5E26\u73AF\u6BD4 delta\uFF09\u3001\u6574\u4F53\u8FDB\u5EA6 progress \u6761\u3001\u4ECA\u5929\u7684 3 \u4EF6\u5F85\u529E list\u3002\u6807\u9898\u7528\u300C\u9879\u76EE\u4EEA\u8868\u76D8\u300D\u3002","tpl.dashboard.demo.title":"\u9879\u76EE\u4EEA\u8868\u76D8\uFF08\u793A\u4F8B\uFF09","tpl.dashboard.demo.metrics":"\u672C\u5468\u5173\u952E\u6307\u6807","tpl.dashboard.demo.done":"\u672C\u5468\u5B8C\u6210","tpl.dashboard.demo.blocked":"\u963B\u585E\u4E8B\u9879","tpl.dashboard.demo.duration":"\u5E73\u5747\u8017\u65F6","tpl.dashboard.demo.coverage":"\u8986\u76D6\u7387","tpl.dashboard.demo.progress":"\u6574\u4F53\u8FDB\u5EA6","tpl.dashboard.demo.milestone":"v1.0 \u91CC\u7A0B\u7891","tpl.dashboard.demo.todo":"\u4ECA\u65E5\u5F85\u529E","tpl.dashboard.demo.todo1":"\u8BC4\u5BA1 M1 \u6A21\u677F\u4E2D\u5FC3 PR","tpl.dashboard.demo.todo2":"\u540C\u6B65 vendor \u5230 SSiD","tpl.dashboard.demo.todo3":"\u5468\u4E09\u5468\u4F1A\u6750\u6599","tpl.compare.name":"\u65B9\u6848\u5BF9\u6BD4\u8868","tpl.compare.desc":"\u591A\u65B9\u6848\u9010\u7EF4\u5EA6\u5BF9\u7167\uFF0C\u8868\u683C\u76F4\u63A5\u53EF\u8BFB\uFF0C\u4E89\u8BAE\u70B9\u4E00\u76EE\u4E86\u7136\u3002","tpl.compare.instruction":"\u8BF7\u7528 dsh-ui \u628A\u4EE5\u4E0B\u65B9\u6848\u7684\u5BF9\u6BD4\u505A\u6210\u4E00\u5F20 table\uFF1A\u65B9\u6848 A/B/C \xD7 \u7EF4\u5EA6\uFF08\u6210\u672C/\u590D\u6742\u5EA6/\u98CE\u9669/\u6536\u76CA\uFF09\uFF0C\u5217\u9996\u9AD8\u4EAE\u63A8\u8350\u9879\uFF1B\u9876\u90E8\u52A0\u4E00\u884C callout \u8BF4\u660E\u7ED3\u8BBA\u3002","tpl.compare.demo.title":"\u65B9\u6848\u5BF9\u6BD4\uFF08\u793A\u4F8B\uFF09","tpl.compare.demo.conclusion":"\u7ED3\u8BBA","tpl.compare.demo.body":"\u65B9\u6848 B \u7EFC\u5408\u6700\u4F18\uFF1A\u6210\u672C\u4E2D\u3001\u590D\u6742\u5EA6\u4F4E\u3001\u98CE\u9669\u4F4E\u3002","tpl.compare.demo.dimension":"\u7EF4\u5EA6","tpl.compare.demo.optionA":"\u65B9\u6848 A","tpl.compare.demo.optionB":"\u65B9\u6848 B \u2605","tpl.compare.demo.optionC":"\u65B9\u6848 C","tpl.compare.demo.cost":"\u6210\u672C","tpl.compare.demo.complexity":"\u590D\u6742\u5EA6","tpl.compare.demo.risk":"\u98CE\u9669","tpl.compare.demo.payoff":"\u6536\u76CA","tpl.compare.demo.high":"\u9AD8","tpl.compare.demo.medium":"\u4E2D","tpl.compare.demo.low":"\u4F4E","tpl.compare.demo.large":"\u5927","tpl.compare.demo.small":"\u5C0F","tpl.steps.name":"\u4E94\u6B65\u4E0A\u624B\u6D41\u7A0B","tpl.steps.desc":"\u5173\u952E\u6B65\u9AA4\u6392\u6210\u65F6\u95F4\u7EBF\uFF0C\u6BCF\u6B65\u4E00\u53E5\u8981\u70B9\uFF0C\u9002\u5408\u6559\u7A0B/\u4EA4\u63A5/\u53D1\u5E03\u6D41\u7A0B\u3002","tpl.steps.instruction":"\u8BF7\u7528 dsh-ui \u628A\u64CD\u4F5C\u6B65\u9AA4\u505A\u6210 steps \u6559\u7A0B\uFF1A5 \u6B65\uFF08\u6309\u5B9E\u9645\u6D41\u7A0B\uFF09\uFF0C\u6BCF\u6B65\u6807\u9898 + \u4E00\u4E24\u53E5\u8981\u70B9\uFF0C\u9876\u90E8\u7528 badge \u6807\u51FA\u9884\u8BA1\u8017\u65F6\u3002","tpl.steps.demo.title":"\u4E0A\u624B\u6D41\u7A0B\uFF08\u793A\u4F8B\uFF09","tpl.steps.demo.badge":"\u7EA6 5 \u5206\u949F","tpl.steps.demo.s1":"\u5B89\u88C5\u63D2\u4EF6","tpl.steps.demo.s1desc":"\u4ECE\u63D2\u4EF6\u4E2D\u5FC3\u5B89\u88C5\uFF0C\u6216 npm \u5B89\u88C5\u5230 profile","tpl.steps.demo.s2":"\u53D1\u9001\u7B2C\u4E00\u6761\u6307\u4EE4","tpl.steps.demo.s2desc":"\u8BA9\u6A21\u578B\u7528 dsh-ui \u8F93\u51FA\u4E00\u4E2A\u754C\u9762","tpl.steps.demo.s3":"\u4F53\u9A8C\u4EA4\u4E92","tpl.steps.demo.s3desc":"\u70B9\u6309\u94AE/\u5224\u5377/\u5207 tab\uFF0C\u52A8\u4F5C\u4F1A\u56DE\u4F20\u6A21\u578B","tpl.steps.demo.s4":"\u5E38\u9A7B\u9762\u677F","tpl.steps.demo.s4desc":"\u6A21\u578B\u7528 panel:true \u628A\u7ED3\u679C\u9489\u5728\u4F1A\u8BDD\u9762\u677F","tpl.steps.demo.s5":"\u8FDB\u9636\u7EC4\u4EF6","tpl.steps.demo.s5desc":"\u56FE\u8868/\u6D41\u7A0B/3D \u6309\u9700\u61D2\u52A0\u8F7D","tpl.quiz.name":"\u968F\u5802\u6D4B\u9A8C","tpl.quiz.desc":"\u4E00\u9898\u4E00\u7B54\u5373\u65F6\u5224\u5377\uFF1A\u9009\u4E2D\u5373\u77E5\u5BF9\u9519\uFF0C\u9644\u8BB2\u89E3\uFF0C\u9002\u5408\u57F9\u8BAD\u95EE\u7B54\u3002","tpl.quiz.instruction":"\u8BF7\u7528 dsh-ui \u51FA 3 \u9053\u968F\u5802\u6D4B\u9A8C\uFF08quiz \u7EC4\u4EF6\uFF1Aquestion + options\uFF0C\u5176\u4E2D\u4E00\u9879 correct\uFF0C\u9644 explanation\uFF09\uFF0C\u6807\u9898\u300C\u968F\u5802\u6D4B\u9A8C\u300D\uFF0C\u6BCF\u9898\u5373\u9009\u5373\u8BC4\u3002","tpl.quiz.demo.title":"\u968F\u5802\u6D4B\u9A8C\uFF08\u793A\u4F8B\uFF09","tpl.quiz.demo.hint":"\u9009\u4E2D\u5373\u5224\u5377\u5E76\u663E\u793A\u8BB2\u89E3\u3002","tpl.quiz.demo.q1":"DSH \u63D2\u4EF6\u7684\u6700\u5C0F\u5355\u4F4D\u662F\uFF1F","tpl.quiz.demo.q1a":"\u670D\u52A1","tpl.quiz.demo.q1b":"\u63D2\u4EF6\uFF08cordis \u63D2\u4EF6\uFF09","tpl.quiz.demo.q1bfx":"\u2713 \u4E00\u5207\u7686\u63D2\u4EF6\uFF1A\u670D\u52A1\u3001\u5DE5\u5177\u3001UI \u90FD\u901A\u8FC7\u63D2\u4EF6\u6CE8\u518C\u3002","tpl.quiz.demo.q1c":"\u5DE5\u5177","tpl.quiz.demo.q1exp":"DSH \u57FA\u4E8E cordis\uFF0C\u4EFB\u4F55\u80FD\u529B\uFF08\u542B\u670D\u52A1\u4E0E\u5DE5\u5177\uFF09\u90FD\u4EE5\u63D2\u4EF6\u5F62\u5F0F\u6CE8\u518C\u3002","tpl.quiz.demo.q2":"dsh-ui \u56F4\u680F\u7531\u8C01\u8F93\u51FA\uFF1F","tpl.quiz.demo.q2a":"\u7528\u6237","tpl.quiz.demo.q2b":"\u6A21\u578B","tpl.quiz.demo.q2bfx":"\u2713 \u6A21\u578B\u5728\u56DE\u590D\u4E2D\u8F93\u51FA dsh-ui fence\u3002","tpl.quiz.demo.q2c":"\u5BBF\u4E3B","tpl.quiz.demo.q2exp":"\u6A21\u578B\u8F93\u51FA fence\uFF0C\u6E32\u67D3\u5668\u5C06\u5176\u753B\u6210\u771F\u5B9E\u7EC4\u4EF6\u3002","tpl.quiz.demo.q3":"panel:true \u7684\u56F4\u680F\u6E32\u67D3\u5230\u54EA\u91CC\uFF1F","tpl.quiz.demo.q3a":"\u6D88\u606F\u6D41","tpl.quiz.demo.q3b":"\u4F1A\u8BDD\u9762\u677F dock","tpl.quiz.demo.q3bfx":"\u2713 \u9762\u677F\u66F4\u65B0\u4E0D\u5237\u5C4F\u3002","tpl.quiz.demo.q3c":"\u8BBE\u7F6E\u9875","tpl.stats.name":"\u5173\u952E\u503C + \u8FDB\u5EA6","tpl.stats.desc":"\u4E00\u6B21\u4EA4\u4ED8\uFF1A\u6570\u503C\u3001\u8FDB\u5EA6\u3001\u91CC\u7A0B\u7891\u4E09\u4EF6\u5957\uFF0C\u5468\u62A5/\u590D\u76D8\u901A\u7528\u3002","tpl.stats.instruction":"\u8BF7\u7528 dsh-ui \u603B\u7ED3\u672C\u5468\u5173\u952E\u6570\u636E\uFF1Akeyvalue \u5217 3 \u7EC4\u5173\u952E\u503C\u3001\u4E24\u6839 progress \u8FDB\u5EA6\uFF08\u8BA1\u5212 vs \u5B9E\u9645\uFF09\u3001timeline \u653E 3 \u4E2A\u91CC\u7A0B\u7891\uFF0C\u6807\u9898\u300C\u5468\u62A5\u901F\u89C8\u300D\u3002","tpl.stats.demo.title":"\u5468\u62A5\u901F\u89C8\uFF08\u793A\u4F8B\uFF09","tpl.stats.demo.done":"\u5B8C\u6210\u9879","tpl.stats.demo.late":"\u5EF6\u671F","tpl.stats.demo.risk":"\u98CE\u9669","tpl.stats.demo.riskValue":"2\uFF08\u5747\u5DF2\u6709\u7F13\u89E3\uFF09","tpl.stats.demo.planned":"\u8BA1\u5212\u8FDB\u5EA6","tpl.stats.demo.actual":"\u5B9E\u9645\u8FDB\u5EA6","tpl.stats.demo.mon":"\u5468\u4E00","tpl.stats.demo.monDesc":"\u5B8C\u6210 M1 \u5F00\u53D1","tpl.stats.demo.wed":"\u5468\u4E09","tpl.stats.demo.wedDesc":"\u5168\u94FE\u8DEF\u9A8C\u8BC1\u901A\u8FC7","tpl.stats.demo.fri":"\u5468\u4E94","tpl.stats.demo.friDesc":"\u53D1\u5E03 0.9.4","tpl.chart.name":"\u8D8B\u52BF\u67F1\u72B6\u56FE","tpl.chart.desc":"\u6570\u636E\u76F4\u63A5\u753B\u6210\u67F1\u72B6\u56FE\uFF0C\u591A\u5E8F\u5217\u5BF9\u6BD4\uFF0C\u8D70\u52BF\u4E00\u773C\u770B\u6E05\u3002","tpl.chart.instruction":"\u8BF7\u7528 dsh-ui \u628A\u4E0B\u5217\u6570\u636E\u753B\u6210 chart\uFF08bars\uFF0C\u591A\u5E8F\u5217\uFF09\uFF1A\u8FD1 6 \u5468\u5B8C\u6210\u91CF vs \u8BA1\u5212\u91CF\uFF1B\u56FE\u8868\u4E0A\u65B9\u7ED9\u4E00\u53E5\u8D8B\u52BF\u7ED3\u8BBA\u3002","tpl.chart.demo.title":"\u8D8B\u52BF\u5BF9\u6BD4\uFF08\u793A\u4F8B\uFF09","tpl.chart.demo.conclusion":"\u7ED3\u8BBA\uFF1A\u8FD1 3 \u5468\u5B8C\u6210\u91CF\u8FDE\u7EED\u4E0A\u5347\uFF0C\u672C\u5468\u9996\u6B21\u53CD\u8D85\u8BA1\u5212\u3002","tpl.tabs.name":"\u5206\u6807\u7B7E\u9875","tpl.tabs.desc":"\u4E00\u5927\u5757\u5185\u5BB9\u62C6\u6210\u6807\u7B7E\u9875\uFF0C\u951A\u70B9\u6E05\u6670\uFF1B\u9762\u677F\u4E0D\u6324\u3001\u6D88\u606F\u4E0D\u5237\u5C4F\u3002","tpl.tabs.instruction":"\u8BF7\u7528 dsh-ui \u628A\u5185\u5BB9\u5206\u6210 tabs \u4E09\u4E2A\u6807\u7B7E\uFF1A\u6982\u89C8/\u660E\u7EC6/FAQ\uFF0C\u6BCF\u4E2A\u6807\u7B7E 3 \u6761\u4EE5\u5185\u8981\u70B9\uFF1B\u6807\u9898\u300C\u529F\u80FD\u901F\u89C8\u300D\u3002","tpl.tabs.demo.title":"\u529F\u80FD\u901F\u89C8\uFF08\u793A\u4F8B\uFF09","tpl.tabs.demo.overview":"\u6982\u89C8","tpl.tabs.demo.overviewBody":"\u4E09\u9879\u80FD\u529B\uFF1A\u5B9E\u65F6\u6E32\u67D3\u3001\u4EA4\u4E92\u56DE\u4F20\u3001\u5E38\u9A7B\u9762\u677F\u3002","tpl.tabs.demo.details":"\u660E\u7EC6","tpl.tabs.demo.d1":"\u6E32\u67D3\uFF1Afence \u589E\u91CF\u89E3\u6790\uFF0C\u8FB9\u6D41\u8FB9\u51FA","tpl.tabs.demo.d2":"\u4EA4\u4E92\uFF1A\u52A8\u4F5C\u56DE\u4F20\u6A21\u578B\u589E\u91CF\u66F4\u65B0","tpl.tabs.demo.d3":"\u9762\u677F\uFF1A\u4F1A\u8BDD\u7EA7 dock\uFF0C\u6298\u53E0/\u8C03\u9AD8","tpl.tabs.demo.faqBody":"\u95EE\uFF1A\u4E0D\u52A8\u6A21\u578B\u4F1A\u600E\u6837\uFF1F\u7B54\uFF1A\u7EC4\u4EF6\u4ECD\u53EF\u672C\u5730\u5224\u5377/\u5C55\u5F00\u3002","tpl.checklist.name":"\u4EA4\u4ED8\u68C0\u67E5\u6E05\u5355","tpl.checklist.desc":"\u63D0\u4EA4\u524D\u9010\u9879\u6253\u52FE\uFF1A\u6E05\u5355\u5373\u6D41\u7A0B\uFF0C\u6F0F\u9879\u770B\u5F97\u89C1\u3002","tpl.checklist.instruction":"\u8BF7\u7528 dsh-ui \u505A\u4E00\u5F20\u4EA4\u4ED8\u68C0\u67E5\u6E05\u5355\uFF1A6 \u9879\uFF08\u6D4B\u8BD5/\u6587\u6863/\u53D1\u5E03/\u56DE\u6EDA/\u76D1\u63A7/\u516C\u544A\uFF09\uFF0Ccheckbox \u53EF\u52FE\u9009\uFF0C\u9876\u90E8 badge \u63D0\u793A\u300C\u5168\u90E8\u52FE\u9009\u518D\u5408\u5E76\u300D\u3002","tpl.checklist.demo.title":"\u4EA4\u4ED8\u6E05\u5355\uFF08\u793A\u4F8B\uFF09","tpl.checklist.demo.badge":"\u5168\u90E8\u52FE\u9009\u518D\u5408\u5E76","tpl.checklist.demo.c1":"\u5355\u5143\u6D4B\u8BD5\u901A\u8FC7","tpl.checklist.demo.c2":"\u6587\u6863\u540C\u6B65","tpl.checklist.demo.c3":"\u53D1\u5E03\u5957\u9910\u5C31\u7EEA","tpl.checklist.demo.c4":"\u56DE\u6EDA\u9884\u6848","tpl.accordion.name":"FAQ \u624B\u98CE\u7434","tpl.accordion.desc":"\u4E00\u95EE\u4E00\u7B54\u6536\u5728\u6298\u53E0\u9762\u677F\u91CC\uFF0C\u957F\u6587\u6863\u53D8\u77ED\uFF0C\u56DE\u7B54\u4E0D\u5413\u4EBA\u3002","tpl.accordion.instruction":"\u8BF7\u7528 dsh-ui \u505A FAQ \u624B\u98CE\u7434\uFF08accordion\uFF09\uFF1A5 \u4E2A\u9AD8\u9891\u95EE\u9898\uFF0C\u6807\u9898\u680F\u5C31\u662F\u95EE\u9898\u3001\u5C55\u5F00\u4E00\u6761\u7ED9\u7B54\u6848\uFF1B\u7B2C\u4E00\u95EE\u9ED8\u8BA4\u5C55\u5F00\u3002","tpl.accordion.demo.title":"FAQ\uFF08\u793A\u4F8B\uFF09","tpl.accordion.demo.q1":"\u652F\u6301\u54EA\u4E9B\u56FE\u8868\uFF1F","tpl.accordion.demo.a1":"chart\uFF08bars/line/donut\uFF09\u3001plot \u51FD\u6570\u56FE\u3001echart \u5168\u529F\u80FD\u56FE\u8868\u3002","tpl.accordion.demo.q2":"\u9762\u677F\u80FD\u6301\u4E45\u5417\uFF1F","tpl.accordion.demo.a2":"\u540C\u4E00\u5185\u5BB9\u6307\u7EB9\u5237\u65B0/\u91CD\u653E\u6062\u590D\u72B6\u6001\uFF1B\u65B0\u5185\u5BB9\u91CD\u7F6E\u3002","tpl.accordion.demo.q3":"\u4EA4\u4E92\u4F1A\u6253\u6270\u6A21\u578B\u5417\uFF1F","tpl.accordion.demo.a3":"\u5E26 action \u7684\u7EC4\u4EF6\u624D\u56DE\u4F20\uFF1B\u7EAF\u5C55\u793A\u7EC4\u4EF6\u96F6\u5F80\u8FD4\u3002","tpl.diagram.name":"\u7CFB\u7EDF\u67B6\u6784\u56FE","tpl.diagram.desc":"\u6846\u67B6\u56FE\u753B\u6210 SVG\uFF1A\u8282\u70B9\u5206\u5C42\u3001\u8FDE\u63A5\u7EBF\u3001\u5206\u533A\u6807\u6CE8\uFF0C\u6BD4\u622A\u56FE\u6E05\u695A\u3002","tpl.diagram.instruction":"\u8BF7\u7528 dsh-ui \u753B\u4E00\u5E45\u67B6\u6784\u56FE\uFF08diagram\uFF09\uFF1A\u63CF\u8FF0\u5F53\u524D\u7CFB\u7EDF\u7684 5 \u4E2A\u8282\u70B9\u4E0E\u8FDE\u63A5\uFF08kind: architecture \u6216 flowchart\uFF09\uFF0C\u5305\u542B\u4E00\u4E2A\u5B89\u5168\u533A zone\u3002","tpl.diagram.demo.title":"\u67B6\u6784\u56FE\uFF08\u793A\u4F8B\uFF09","tpl.diagram.demo.caption":"DSH \u63D2\u4EF6\u94FE\u8DEF","tpl.diagram.demo.model":"\u6A21\u578B","tpl.diagram.demo.plugin":"\u63D2\u4EF6","tpl.diagram.demo.host":"\u5BBF\u4E3B","tpl.3d.name":"3D \u573A\u666F","tpl.3d.desc":"\u4E00\u4E2A\u53EF\u65CB\u8F6C\u7684 3D \u573A\u666F\uFF1A\u4EA7\u54C1\u6F14\u793A/\u7A7A\u95F4\u793A\u610F\u7528\u5F97\u4E0A\u3002","tpl.3d.instruction":"\u8BF7\u7528 dsh-ui \u6E32\u67D3\u4E00\u4E2A 3D \u573A\u666F\uFF08scene3d\uFF09\uFF1A\u4E00\u4E2A\u7ACB\u65B9\u4F53 + \u4E00\u4E2A\u7403\u4F53\uFF0C\u6807\u9898\u300C\u793A\u4F8B\u573A\u666F\u300D\uFF0C\u9644\u4E00\u53E5\u4F7F\u7528\u573A\u666F\u8BF4\u660E\u3002","tpl.3d.demo.title":"3D \u573A\u666F\uFF08\u793A\u4F8B\uFF09","tpl.3d.demo.note":"\u9996\u6B21\u52A0\u8F7D\u9700\u4E0B\u8F7D three.js\uFF08\u7EA6 700KB\uFF0C\u61D2\u52A0\u8F7D\uFF09\uFF0C\u4E4B\u540E\u8D70\u7F13\u5B58\u3002","tpl.3d.demo.scene":"\u793A\u4F8B\u573A\u666F","tpl.breadcrumb.name":"\u8DEF\u5F84\u9762\u5305\u5C51","tpl.breadcrumb.desc":"\u957F\u8DEF\u5F84\u62C6\u6210\u9762\u5305\u5C51\uFF1A\u6587\u4EF6\u4F4D\u7F6E\u3001\u7EC4\u7EC7\u5C42\u7EA7\u4E00\u8BFB\u5C31\u61C2\u3002","tpl.breadcrumb.instruction":"\u8BF7\u7528 dsh-ui \u5C55\u793A\u5F53\u524D\u5DE5\u4F5C\u533A\u7ED3\u6784\uFF1Abreadcrumb \u663E\u793A\u6587\u4EF6\u8DEF\u5F84\uFF084 \u6BB5\uFF09\u3001file-tree \u63CF\u8FF0\u9879\u76EE\u76EE\u5F55\uFF083 \u4E2A\u76EE\u5F55\u3001\u6BCF\u4E2A 2 \u4E2A\u5B50\u9879\uFF09\u3002","tpl.breadcrumb.demo.title":"\u76EE\u5F55\u7ED3\u6784\uFF08\u793A\u4F8B\uFF09","tpl.breadcrumb.demo.workspace":"\u5DE5\u4F5C\u533A","ach.page.title":"GenUI \u63A2\u7D22\u6210\u5C31","ach.stat.unlocked":"\u5DF2\u89E3\u9501","ach.stat.rendered":"\u6E32\u67D3\u754C\u9762","ach.stat.interactions":"\u7EC4\u4EF6\u4EA4\u4E92","ach.progress":"\u63A2\u7D22\u8FDB\u5EA6","ach.rarity.common":"\u666E\u901A","ach.rarity.rare":"\u7A00\u6709","ach.rarity.legendary":"\u4F20\u8BF4","ach.hidden.name":"\uFF1F","ach.hidden.desc":"\u7EE7\u7EED\u63A2\u7D22\u4EE5\u63ED\u793A","ach.toast.unlocked":"\u6210\u5C31\u89E3\u9501\uFF1A{name}","ach.first-fence.name":"\u521D\u6B21\u76F8\u89C1","ach.first-fence.desc":"\u6E32\u67D3\u4E86\u7B2C\u4E00\u5757 GenUI \u754C\u9762\u3002","ach.fence-5.name":"\u6E10\u5165\u4F73\u5883","ach.fence-5.desc":"\u7D2F\u8BA1\u6E32\u67D3 5 \u4E2A\u754C\u9762\u3002","ach.fence-25.name":"\u754C\u9762\u7F16\u7EC7\u8005","ach.fence-25.desc":"\u7D2F\u8BA1\u6E32\u67D3 25 \u4E2A\u754C\u9762\u3002","ach.fence-50.name":"\u84DD\u56FE\u4E4B\u9B42","ach.fence-50.desc":"\u7D2F\u8BA1\u6E32\u67D3 50 \u4E2A\u754C\u9762\u2014\u2014\u4F60\u662F GenUI \u7684\u8001\u670B\u53CB\u4E86\u3002","ach.first-interaction.name":"\u6309\u94AE\u6309\u5F97\u52A8","ach.first-interaction.desc":"\u89E6\u53D1\u4E86\u4E00\u6B21\u7EC4\u4EF6\u4EA4\u4E92\uFF08\u52A8\u4F5C\u56DE\u4F20\uFF09\u3002","ach.interaction-10.name":"\u5C0F\u5C0F\u64CD\u7EB5\u8005","ach.interaction-10.desc":"\u7D2F\u8BA1\u89E6\u53D1 10 \u6B21\u7EC4\u4EF6\u4EA4\u4E92\u3002","ach.first-panel.name":"\u9489\u5728\u5899\u4E0A","ach.first-panel.desc":"\u7B2C\u4E00\u6B21\u628A\u5185\u5BB9\u9489\u8FDB\u4E86\u4F1A\u8BDD\u9762\u677F\u3002","ach.panel-5.name":"\u9762\u677F\u7BA1\u5BB6","ach.panel-5.desc":"5 \u4E2A\u4F1A\u8BDD\u90FD\u7528\u8FC7\u9762\u677F\u3002","ach.first-chart.name":"\u56FE\u8868\u7231\u597D\u8005","ach.first-chart.desc":"\u6E32\u67D3\u4E86\u7B2C\u4E00\u5F20\u56FE\u8868\uFF08chart/plot/echart\uFF09\u3002","ach.chart-10.name":"\u6570\u636E\u53EF\u89C6\u5316\u4EBA","ach.chart-10.desc":"10 \u4E2A\u754C\u9762\u91CC\u51FA\u73B0\u8FC7\u56FE\u8868\u3002","ach.first-advanced.name":"\u9AD8\u7EA7\u73A9\u5BB6","ach.first-advanced.desc":"\u7528\u4E0A\u4E86 3D/\u56FE\u8868\u5F15\u64CE/\u67B6\u6784\u56FE\u4E4B\u4E00\u3002","ach.template-1.name":"\u6A21\u677F\u5B66\u5458","ach.template-1.desc":"\u4ECE\u6A21\u677F\u4E2D\u5FC3\u8BD5\u7528\u4E86\u4E00\u4E2A\u6A21\u677F\u3002","label.copy":"\u590D\u5236","label.copied":"\u590D\u5236\u6210\u529F","label.copiedDone":"\u5DF2\u590D\u5236","label.copiedShort":"\u2713 \u5DF2\u590D\u5236","label.copiedToClipboard":"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F","label.copyFailed":"\u590D\u5236\u5931\u8D25","label.code":"\u4EE3\u7801","label.wrap":"\u81EA\u52A8\u6362\u884C","label.unwrap":"\u53D6\u6D88\u81EA\u52A8\u6362\u884C","label.collapse":"\u6536\u8D77","label.collapseDiff.aria":"\u6536\u8D77\u5DEE\u5F02","label.expandDiff.aria":"\u5C55\u5F00\u5176\u4F59 {hidden} \u884C\u5DEE\u5F02","label.expandDiff":"\u2026 \u5176\u4F59 {hidden} \u884C","label.diffFiles":"{count} \u4E2A\u6587\u4EF6","label.copyValue":"\u590D\u5236\u503C","label.copyJson":"\u590D\u5236 JSON","label.copyPath":"\u590D\u5236\u5C5E\u6027\u8DEF\u5F84","label.copyPrettyJson":"\u590D\u5236\u683C\u5F0F\u5316 JSON","label.copyCompactJson":"\u590D\u5236\u7D27\u51D1 JSON","label.collapseNode":"\u6536\u8D77 JSON \u8282\u70B9","label.expandNode":"\u5C55\u5F00 JSON \u8282\u70B9","label.copyButtonTitle":"{action}\uFF1B\u53F3\u952E\u67E5\u770B\u590D\u5236\u9009\u9879","block.copyMarkdown":"\u590D\u5236 Markdown","block.copyCsv":"\u590D\u5236 CSV","block.table.expandDetails":"\u5C55\u5F00 {label} \u7684\u660E\u7EC6","block.table.collapseDetails":"\u6536\u8D77 {label} \u7684\u660E\u7EC6","block.table.expandGroup":"\u5C55\u5F00\u5206\u7EC4 {label}","block.table.collapseGroup":"\u6536\u8D77\u5206\u7EC4 {label}","block.total":"\u5408\u8BA1","block.filteredRows":"\u7B5B\u9009\u540E {visible} / {total} \u884C","block.filterMatch":"\u5339\u914D {shown} / {total} \u9879","block.triggered":"\u2713 \u5DF2\u89E6\u53D1","block.triggeredPlain":"\u5DF2\u89E6\u53D1","block.audio":"\u97F3\u9891","block.audioError":"\u97F3\u9891\u65E0\u6CD5\u64AD\u653E","block.video":"\u89C6\u9891","block.videoError":"\u89C6\u9891\u65E0\u6CD5\u64AD\u653E","block.image":"\u56FE\u7247","block.imageError":"\u56FE\u7247\u65E0\u6CD5\u52A0\u8F7D","block.svgLabel":"SVG \u56FE\u5F62","block.svgPreview":"\u9884\u89C8","block.svgSource":"\u6E90\u7801","block.svgError":"SVG \u65E0\u6CD5\u663E\u793A\uFF0C\u5DF2\u964D\u7EA7\u663E\u793A\u6E90\u7801","block.mermaidError":"\u56FE\u8868\u6E32\u67D3\u5931\u8D25\uFF0C\u5DF2\u663E\u793A\u6E90\u7801","block.mermaidLoading":"\u6E32\u67D3\u4E2D\u2026","block.scene3dLoading":"\u52A0\u8F7D 3D \u573A\u666F\u2026","block.scene3dError":"3D \u6E32\u67D3\u5931\u8D25","block.quizCorrect":"\u2713 \u56DE\u7B54\u6B63\u786E\uFF01","block.quizWrong":"\u2717 \u518D\u60F3\u60F3\u770B","block.quizRetry":"\u91CD\u65B0\u4F5C\u7B54","block.selectPlaceholder":"\u8BF7\u9009\u62E9\u2026","block.score":"\u5F97\u5206","block.scoreUngraded":"\uFF08{count} \u9898\u65E0\u7B54\u6848\u672A\u8BA1\u5206\uFF09","block.yourAnswer":"\u4F60\u7684\u7B54\u6848\uFF1A","block.correctAnswer":" \u6B63\u786E\u7B54\u6848\uFF1A","block.selectedCount":"\u5DF2\u9009 {answered}/{total}","block.target":"\u76EE\u6807 {value}%","block.chart.barsAria":"\u6A2A\u5411\u67F1\u72B6\u56FE\uFF0C{count} \u7EC4","block.chart.barsSummary":"\u67F1\u72B6\u56FE\uFF0C{count} \u7EC4\uFF0C\u6700\u5927 {max}","block.chart.lineSeries":"\u6298\u7EBF\u56FE\uFF0C{count} \u6761\u5E8F\u5217\uFF0C\u8303\u56F4 {min} \u5230 {max}","block.chart.linePoints":"\u6298\u7EBF\u56FE\uFF0C{count} \u4E2A\u70B9\uFF0C\u8303\u56F4 {min} \u5230 {max}","block.chart.donutSummary":"\u73AF\u5F62\u56FE\uFF0C{count} \u9879\uFF0C\u5408\u8BA1 {total}","block.chart.node":"\u8282\u70B9","err.boundary.generic":"\u6B64\u754C\u9762","err.boundary.fence":"\u8BE5\u754C\u9762","err.boundary.body":"\u26A0\uFE0F {label}\u6E32\u67D3\u5931\u8D25\uFF08\u5DF2\u9694\u79BB\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u5185\u5BB9\uFF09","err.fieldValidation":"GenUI \u5B57\u6BB5\u9A8C\u8BC1\u5931\u8D25\uFF1A{errors}","err.chartValidation":"chart \u5B57\u6BB5\u9A8C\u8BC1\u5931\u8D25\uFF1A{errors}","err.fenceKeptAsCode":"\u26A0\uFE0F dsh-ui {diagnostic} \u2014\u2014 \u56F4\u680F\u4FDD\u6301\u4E3A\u4EE3\u7801\u5757\uFF1B\u8BF7\u4FEE\u6B63\u540E\u91CD\u53D1\u3002","err.fenceParse":"\u26A0\uFE0F dsh-ui fence JSON \u89E3\u6790\u5931\u8D25{diagnostic} \u2014\u2014 \u56F4\u680F\u4FDD\u6301\u4E3A\u4EE3\u7801\u5757\uFF1B\u8BF7\u8BA9\u6A21\u578B\u68C0\u67E5\u5E76\u4FEE\u590D JSON \u540E\u91CD\u53D1\u3002"};var Xn="en",Si=["en","zh"],a0={en:r0,zh:n0};function Ai(t){if(typeof t!="string"||t==="")return;let e=t.toLowerCase().split(/[-_]/)[0];return Si.find(r=>r===e)}function i0(){if(typeof navigator>"u")return Xn;let t=navigator,e=Array.isArray(t.languages)&&t.languages.length>0?t.languages:[t.language];for(let r of e){let n=Ai(r);if(n!==void 0)return n}return Xn}var _n=i0(),s0=0,ki=new Set;function Ti(){return _n}function Zn(){return s0}function Ni(t){return ki.add(t),()=>{ki.delete(t)}}function Qn(t){let e=Ai(t);if(!(e===void 0||e===_n)){_n=e,s0+=1;for(let r of[...ki])r()}}function cm(t,e){return e===void 0?t:t.replace(/\{(\w+)\}/g,(r,n)=>{let a=e[n];return a===void 0?r:String(a)})}function _(t,e){let r=a0[_n][t]??a0[Xn][t]??t;return cm(r,e)}function Oe(){return(0,o0.useSyncExternalStore)(Ni,Zn,Zn),_}function l0(){return Ti()}var lr=Ss(require("react"),1);var u0=Ss(require("react"),1),d0=u0.default.createElement,c0={play:["m8 4 12 8-12 8V4Z"],pause:["M7 4h3v16H7zM14 4h3v16h-3z"],volume:["M11 4 5 9H2v6h3l6 5V4Z","M15 8a6 6 0 0 1 0 8M18 4a11 11 0 0 1 0 16"],volumeOff:["M11 4 5 9H2v6h3l6 5V4Z","m16 9 6 6m0-6-6 6"],fullscreen:["M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"],minimize:["M3 8h5V3m8 0v5h5M8 21v-5H3m13 5v-5h5"],download:["M12 3v12m-5-5 5 5 5-5M4 17v4h16v-4"],copy:["M9 8h11v13H9z","M15 8V3H4v13h5"],external:["M14 4h6v6M20 4l-9 9","M10 4H4v16h16v-6"],file:["M14 3H5v18h14V8l-5-5Z","M14 3v5h5M8 13h8M8 17h5"],globe:["M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","M3 12h18M12 3c-5 5-5 13 0 18 5-5 5-13 0-18Z"],sparkles:["m12 3 2.4 6.6L21 12l-6.6 2.4L12 21l-2.4-6.6L3 12l6.6-2.4L12 3Z","M20 2v4M18 4h4"],sliders:["M4 7h6m4 0h6M4 17h10m4 0h2","M10 4v6m4 4v6"],layers:["m12 3 9 5-9 5-9-5 9-5Z","m3 12 9 5 9-5M3 16l9 5 9-5"],chart:["M4 3v17h17M8 15v-4m5 4V7m5 8v-6"],gauge:["M5 18a9 9 0 1 1 14 0","m12 13 4-5M8 18h8"],cpu:["M8 3v3m4-3v3m4-3v3M8 18v3m4-3v3m4-3v3M3 8h3m-3 4h3m-3 4h3m12-8h3m-3 4h3m-3 4h3","M6 6h12v12H6zM9 9h6v6H9z"],database:["M4 6c0-4 16-4 16 0s-16 4-16 0Z","M4 6v12c0 4 16 4 16 0V6M4 12c0 4 16 4 16 0"],info:["M12 11v6M12 7h.01","M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],check:["m5 12 4 4L19 6"],warning:["m12 3 10 18H2L12 3Z","M12 9v5m0 3h.01"],arrow:["M4 12h16m-6-6 6 6-6 6"],target:["M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","M17 12a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM12 11v2"]};function m0({name:t="info",className:e=""}){return d0("svg",{className:`dgui-icon ${e}`,width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.65,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},(c0[t]??c0.info).map((r,n)=>d0("path",{key:n,d:r})))}var p0=Object.freeze({editorial:{description:"\u5F00\u653E\u6B63\u6587 \xB7 \u6742\u5FD7\u5C42\u7EA7 \xB7 \u7EC6\u7EBF\u5206\u7EC4",grammar:"\u7F16\u8F91\u5F0F\u9605\u8BFB",composition:"\u5148\u7ED9\u4E00\u4E2A\u660E\u786E\u7ED3\u8BBA\uFF0C\u518D\u7528\u5F00\u653E\u6B63\u6587\u3001\u5DE6\u53F3\u5BF9\u9F50\u6BD4\u8F83\u548C\u7EC6\u7EBF\u6BB5\u843D\u5C55\u5F00\u3002\u7528 column \u7EC4\u7EC7\u6587\u7AE0\uFF0Ccard \u5728\u6B64\u98CE\u683C\u4E2D\u662F\u7AE0\u8282\uFF0C\u4E0D\u662F\u5C01\u95ED\u9762\u677F\uFF1B\u4E0D\u8981\u7ED9\u6BCF\u6BB5\u5957\u6846\u3002\u6307\u6807\u5D4C\u5728\u89E3\u91CA\u65C1\uFF0C\u6D41\u7A0B\u50CF\u6587\u4E2D\u7684\u7F16\u53F7\u63D0\u7EB2\u3002",typography:"\u6807\u9898\u6709\u886C\u7EBF\u9605\u8BFB\u611F\uFF0C\u6B63\u6587\u884C\u8DDD\u8212\u5C55\uFF1B\u6807\u9898\u3001\u6B63\u6587\u3001\u6CE8\u91CA\u81F3\u5C11\u4E09\u4E2A\u5C42\u7EA7\uFF0C\u5F3A\u8C03\u4F9D\u8D56\u5B57\u91CD\u548C\u4F4D\u7F6E\u3002",surfaces:"\u900F\u660E\u6B63\u6587\u3001\u7EC6\u5206\u9694\u7EBF\u3001\u4F4E\u9634\u5F71\u6216\u65E0\u9634\u5F71\uFF1B\u4FDD\u6301\u7ED3\u6784\u6027\u7559\u767D\uFF0C\u4E0D\u52A0\u5927\u9762\u79EF\u6E10\u53D8\u3002",controls:"\u8868\u5355\u50CF\u6587\u7AE0\u4E2D\u7684\u8BBE\u7F6E\u884C\uFF0C\u6807\u7B7E\u4E0E\u5F53\u524D\u503C\u5DE6\u53F3\u5BF9\u9F50\uFF1B\u6309\u94AE\u7D27\u51D1\uFF0C\u4EE3\u7801\u50CF\u6709\u8FB9\u6CE8\u7684\u6458\u5F55\u3002",avoid:"\u907F\u514D\u5927\u5F69\u8272\u5361\u7247\u3001\u6BCF\u4E2A\u6570\u5B57\u4E00\u4E2A\u76D2\u5B50\u3001\u7C97\u91CD\u8FB9\u6846\u548C\u88C5\u9970\u6027\u80CC\u666F\u3002",native:{title:27,weight:650,gap:24,radius:12,metric:32,feedback:210,gain:.25}},soft:{description:"\u7B14\u8BB0\u8272\u5757 \xB7 \u67D4\u5706\u5206\u7EC4 \xB7 \u8212\u7F13\u8282\u594F",grammar:"\u67D4\u548C\u5F69\u8272\u7B14\u8BB0",composition:"\u50CF\u6E05\u6670\u53CB\u597D\u7684\u7B14\u8BB0\uFF1A\u628A\u76F8\u5173\u5185\u5BB9\u653E\u5728\u67D4\u5706\u8272\u5757\u91CC\uFF0C\u5148\u63D0\u793A\u4E3B\u9898\uFF0C\u518D\u7ED9\u4E24\u4E09\u9879\u8981\u70B9\u3002\u7AE0\u8282\u6807\u9898\u53EF\u4EE5\u662F\u5C0F\u6807\u7B7E\uFF1B\u6BD4\u8F83\u9879\u5982\u5E76\u6392\u4FBF\u7B7E\uFF0C\u6D41\u7A0B\u50CF\u4E00\u4E32\u6709\u95F4\u8DDD\u7684\u7B14\u8BB0\u3002",typography:"\u5706\u6DA6\u6807\u9898\u548C\u6E29\u548C\u5B57\u91CD\uFF1B\u6B63\u6587\u6E05\u695A\uFF0C\u6570\u503C\u4E0E\u5355\u4F4D\u8D34\u8FD1\uFF0C\u6B21\u8981\u8BF4\u660E\u653E\u5728\u7EC4\u5185\u3002",surfaces:"\u4F4E\u9971\u548C\u5F69\u8272\u4FBF\u7B7E\u3001\u4E0D\u540C\u7AE0\u8282\u8F7B\u5FAE\u4EA4\u66FF\u8272\u5757\u3001\u4E0D\u5BF9\u79F0\u7684\u5927\u5706\u89D2\uFF1B\u4F7F\u7528\u5B9E\u8272\u5E95\u6216\u5C11\u91CF\u67D4\u548C\u6E10\u53D8\u3002",controls:"\u63A7\u4EF6\u5185\u5D4C\u5728\u67D4\u8272\u5206\u7EC4\uFF0C\u9009\u62E9\u5668\u50CF\u6807\u7B7E\uFF0C\u64CD\u4F5C\u6709\u67D4\u548C\u56DE\u5F39\uFF1B\u907F\u514D\u6BCF\u884C\u90FD\u53D8\u6210\u8FB9\u6846\u8868\u5355\u3002",avoid:"\u907F\u514D\u5DE5\u7A0B\u7F51\u683C\u3001\u91CD\u9ED1\u6D77\u62A5\u3001\u900F\u660E\u73BB\u7483\u3001\u6CDB\u767D\u4F4E\u5BF9\u6BD4\u5EA6\u6587\u5B57\u3002",native:{title:25,weight:700,gap:20,radius:28,metric:36,feedback:390,gain:.7}},technical:{description:"\u5DE5\u7A0B\u7F51\u683C \xB7 \u6570\u636E\u6761\u5E26 \xB7 \u7F16\u53F7\u8FDE\u63A5",grammar:"\u6280\u672F\u8BF4\u660E\u4E0E\u5DE5\u7A0B\u56FE",composition:"\u50CF\u5DE5\u7A0B\u8BF4\u660E\uFF1A\u6309\u8F93\u5165\u2192\u673A\u5236\u2192\u8F93\u51FA\u7EC4\u7EC7\uFF1B\u4F18\u5148\u5BF9\u9F50\u7684\u6570\u636E\u6761\u5E26\u3001\u7F16\u53F7\u6D41\u7A0B\u3001\u8868\u683C\u548C\u6709\u610F\u4E49\u7684\u8FDE\u63A5\u7EBF\u3002\u6307\u6807\u653E\u6210\u7D27\u51D1\u6D4B\u91CF\u5E26\u800C\u975E\u4E00\u6392\u88C5\u9970\u5361\uFF1B\u6BD4\u8F83\u56F4\u7ED5\u76F8\u540C\u7EF4\u5EA6\u5BF9\u9F50\u3002",typography:"\u4E2D\u6587\u6B63\u6587\u4FDD\u6301\u6B63\u5E38\u5B57\u53F7\uFF0C\u6570\u503C/\u5355\u4F4D/\u5E8F\u53F7\u7528\u7B49\u5BBD\u5B57\u4F53\u4E0E tabular-nums\uFF1B\u6807\u9898\u7B80\u77ED\u7CBE\u786E\uFF0C\u660E\u786E\u57FA\u51C6\u3001\u5355\u4F4D\u548C\u5047\u8BBE\u3002",surfaces:"\u7EC6\u7EBF\u7F51\u683C\u3001\u89C4\u5219\u7684\u5C0F\u5706\u89D2\u3001\u6E05\u6670\u8FB9\u754C\u548C\u8868\u5934\u3001\u65E0\u6D6E\u52A8\u6295\u5F71\u3002\u7F51\u683C\u4EC5\u5728\u56FE\u89E3\u80CC\u666F\u4F7F\u7528\uFF0C\u6587\u5B57\u533A\u57DF\u4FDD\u6301\u5E72\u51C0\u3002",controls:"\u6807\u7B7E\u548C\u8F93\u5165\u4E25\u683C\u5BF9\u9F50\uFF0C\u53C2\u6570\u533A\u50CF\u4EEA\u8868\u8BBE\u7F6E\u884C\uFF1B\u6309\u94AE\u548C\u5206\u6BB5\u9009\u9879\u91C7\u7528\u89C4\u5219\u77E9\u5F62\uFF0C\u4FDD\u7559\u952E\u76D8\u53CA\u5168\u5C40\u53CD\u9988\u3002",avoid:"\u907F\u514D\u80F6\u56CA\u5806\u53E0\u3001\u5DE8\u5927\u6D77\u62A5\u6570\u5B57\u3001\u5F69\u8272\u4FBF\u7B7E\u3001\u88C5\u9970\u7BAD\u5934\u3001\u9760\u5C0F\u5B57\u786C\u585E\u4FE1\u606F\u3002",native:{title:22,weight:750,gap:16,radius:10,metric:28,feedback:180,gain:.3}},expressive:{description:"\u6D77\u62A5\u5C42\u7EA7 \xB7 \u975E\u5BF9\u79F0\u91CD\u70B9 \xB7 \u9192\u76EE\u6570\u5B57",grammar:"\u6D3B\u529B\u5C55\u793A\u4E0E\u91CD\u70B9\u6D77\u62A5",composition:"\u5148\u9009\u4E00\u4E2A\u771F\u6B63\u7684\u89C6\u89C9\u4E2D\u5FC3\uFF1A\u5927\u6807\u9898\u6216\u5173\u952E\u6570\u5B57\uFF0C\u518D\u7528\u4E0D\u5BF9\u79F0\u5206\u680F\u5C55\u5F00\u89E3\u91CA\u3002\u4E3B\u8981\u7ED3\u8BBA\u5360\u66F4\u5927\u7A7A\u95F4\uFF0C\u6B21\u8981\u6BD4\u8F83\u9000\u540E\uFF1B\u6D41\u7A0B\u7528\u9192\u76EE\u7684\u5E8F\u53F7\u4E0E\u77ED\u53E5\u3002\u4E0D\u8981\u628A\u6BCF\u4E00\u9879\u90FD\u505A\u6210\u540C\u7B49\u5927\u5C0F\u5361\u7247\u3002",typography:"\u77ED\u800C\u6709\u529B\u7684\u91CD\u6807\u9898\u3001\u5927\u6570\u5B57\u3001\u7D27\u51D1\u6807\u9898\u884C\u8DDD\uFF0C\u6B63\u6587\u4ECD\u6613\u8BFB\u3002\u6700\u591A\u4E00\u4E2A\u4E3B\u8981\u5F3A\u8C03\u533A\uFF0C\u5176\u4F59\u7559\u767D\u548C\u7EC6\u7EBF\u8F85\u52A9\u3002",surfaces:"\u5B9E\u8272\u8272\u5757\u3001\u7C97\u7EC6\u660E\u786E\u7684\u8FB9\u7EBF\u3001\u5C40\u90E8\u9AD8\u5BF9\u6BD4\u5F3A\u8C03\uFF1B\u53EF\u7528\u6A59/\u73CA\u745A/\u6696\u9EC4\uFF0C\u4F46\u4E0D\u80FD\u6574\u9875\u4E89\u62A2\u6CE8\u610F\u529B\u3002",controls:"\u4E3B\u8981\u64CD\u4F5C\u9192\u76EE\u3001\u6B21\u8981\u64CD\u4F5C\u8F7B\u91CF\uFF1B\u8868\u5355\u548C\u6570\u636E\u4FDD\u6301\u5BF9\u9F50\uFF0C\u56DE\u5F39\u6BD4\u9605\u8BFB\u98CE\u683C\u660E\u663E\u4F46\u4E0D\u7A7A\u95F2\u5FAA\u73AF\u3002",avoid:"\u907F\u514D\u516D\u5F20\u7B49\u5927\u7684\u6307\u6807\u5361\u3001\u6EE1\u5C4F\u6E10\u53D8\u3001\u5168\u5C4F\u5927\u7559\u767D\u3001\u65E0\u610F\u4E49\u6570\u5B57\u88C5\u9970\u3002",native:{title:34,weight:850,gap:22,radius:20,metric:50,feedback:480,gain:1.1}},prismframe:{description:"\u5E94\u7528\u6A21\u5757 \xB7 \u5B9E\u8272\u63A7\u4EF6 \xB7 \u504F\u79FB\u5E95\u9762",grammar:"\u660E\u4EAE\u6241\u5E73\u7684\u8F7B\u91CF\u5E94\u7528",composition:"\u50CF\u53EF\u76F4\u63A5\u4F7F\u7528\u7684\u8F7B\u91CF\u5E94\u7528\uFF1A\u4EFB\u52A1\u6807\u9898\u3001\u8F93\u5165\u6A21\u5757\u3001\u7ED3\u679C\u6A21\u5757\u3001\u89E3\u91CA\u533A\u804C\u8D23\u6E05\u695A\u3002\u6A21\u5757\u4F7F\u7528\u7A33\u5B9A\u7F51\u683C\uFF0C\u64CD\u4F5C\u9760\u8FD1\u5BF9\u5E94\u7ED3\u679C\uFF1B\u6BD4\u8F83\u3001\u6D41\u7A0B\u548C\u6570\u636E\u770B\u677F\u5404\u81EA\u91C7\u7528\u5408\u9002\u7ED3\u6784\uFF0C\u4E0D\u56FA\u5B9A\u6210\u540C\u4E00\u5957\u5361\u7247\u3002",typography:"\u5706\u6DA6\u6E05\u6670\u7684\u7CFB\u7EDF\u5B57\u4F53\u3001\u660E\u786E\u6A21\u5757\u6807\u9898\u3001\u4E2D\u7B49\u5927\u6570\u5B57\uFF1B\u6570\u5B57\u7ED1\u5B9A\u540D\u79F0\u548C\u5355\u4F4D\uFF0C\u56FE\u5F62\u627F\u62C5\u5173\u7CFB\u8BF4\u660E\u3002",surfaces:"\u6D45\u5F69\u5E95\u3001\u767D\u8272\u5B9E\u5FC3\u6A21\u5757\u3001\u7EC6\u5F69\u8272\u8FB9\u7EBF\u548C\u6241\u5E73\u504F\u79FB\u5E95\u9762\uFF1B\u5C40\u90E8\u591A\u8272\u7528\u6765\u533A\u5206\u804C\u8D23\uFF0C\u907F\u514D\u6BCF\u5757\u540C\u8272\u540C\u5F62\u3002",controls:"\u6574\u9F50\u4E14\u6709\u9762\u79EF\u7684\u5B9E\u8272\u8868\u5355\u884C\u3001\u6E05\u6670\u72B6\u6001\u6807\u7B7E\uFF0C\u4E3B\u8981\u64CD\u4F5C\u6709\u8F7B\u5FAE\u504F\u79FB\u5E95\u9762\uFF1B\u4E0D\u662F\u78E8\u7802\u73BB\u7483\u3002",avoid:"\u907F\u514D\u6587\u6863\u5F0F\u6EE1\u5C4F\u7EC6\u7EBF\u3001\u6D77\u62A5\u5F0F\u8D85\u5927\u5B57\u3001\u900F\u660E\u5C42\u53E0\u3001\u89C6\u9891\u9875\u7801\u548C\u5B57\u5E55\u3001\u91CD\u590D\u6807\u9898\u3002",native:{title:26,weight:780,gap:20,radius:24,metric:36,feedback:320,gain:.65}},aurora:{description:"\u4EA7\u54C1\u5C42\u7EA7 \xB7 \u6696\u767D\u66F2\u9762 \xB7 \u5C40\u90E8\u6E10\u5F69",grammar:"\u67D4\u5149\u6E10\u5F69\u7684\u7CBE\u81F4\u4EA7\u54C1\u754C\u9762",composition:"\u50CF\u7CBE\u81F4\u7684\u4EA7\u54C1\u9762\u677F\uFF1A\u6696\u767D\u5F00\u653E\u80CC\u666F\u4E0A\u5B89\u6392\u5C11\u91CF\u5B9E\u5FC3\u8868\u9762\uFF0C\u6807\u9898\u7B80\u6D01\u3001\u6307\u6807\u7A81\u51FA\u3001\u63A7\u4EF6\u987A\u624B\u3002\u7528\u5BBD\u7A84\u548C\u758F\u5BC6\u533A\u5206\u4E3B\u8981\u7ED3\u679C\u4E0E\u6B21\u8981\u8BF4\u660E\uFF1B\u6309\u94AE\u3001\u8868\u5355\u3001\u8868\u683C\u3001\u4EE3\u7801\u4E0E\u6587\u5B57\u8981\u5C5E\u4E8E\u540C\u4E00\u5957\u8BED\u8A00\u3002",typography:"\u8FD1\u9ED1\u6807\u9898\u3001\u6E05\u6670\u7684\u5B57\u91CD\u5DEE\u3001\u5927\u800C\u5229\u843D\u7684\u6570\u5B57\u3001\u67D4\u548C\u6B21\u8981\u8BF4\u660E\uFF1B\u4E0D\u628A\u6587\u5B57\u90FD\u67D3\u6210\u7D2B\u8272\u3002",surfaces:"\u6696\u767D\u5B9E\u8272\u300124..30px \u5706\u6DA6\u8868\u9762\u3001\u67D4\u548C\u6295\u5F71\u3001\u5C40\u90E8\u7D2B\u84DD\u9752\u6E10\u5F69\u5F3A\u8C03\uFF1B\u4E0D\u628A\u6574\u9875\u94FA\u6210\u7D2B\u9762\u677F\u3002",controls:"\u5706\u6DA6\u5185\u5D4C\u8F93\u5165\u3001\u80F6\u56CA\u9009\u62E9\u5668\u3001\u6DF1\u8272\u4E3B\u64CD\u4F5C\u4E0E\u6E10\u5F69\u56FE\u6807\u5706\u70B9\uFF1B\u771F\u5B9E\u64CD\u4F5C\u89E6\u53D1\u6E10\u53D8\u6269\u6563\u548C\u5F39\u6027\u53CD\u9988\u3002",avoid:"\u7981\u6B62\u73BB\u7483/backdrop-filter\u3001\u6CDB\u767D\u4F4E\u5BF9\u6BD4\u5EA6\u3001\u4EC5\u52A0\u4E00\u4E2A\u6F14\u793A\u6309\u94AE\u5C31\u7B97\u98CE\u683C\u3001\u7A7A\u95F2\u6F02\u6D6E\u3002",native:{title:28,weight:780,gap:24,radius:28,metric:42,feedback:460,gain:1}}});var mm=[".dgui-card",".dgui-metric",".dgui-control",".dgui-chart",".dgui-table-wrap",".dgui-steps li",".dgui-step-dot",".dgui-copy",".dgui-header",".dgui-heading-icon",".dgui-badge",".dgui-tag",".dgui-details",".dgui-progress",".dgui-progress progress",".dgui-button",".dgui-secondary",".dgui-toggle",".dgui-control output",".dgui-control input:not([type=range]):not([type=checkbox])",".dgui-control select",".dgui-root textarea",".dgui-root pre",".dgui-plot",".dgui-menu-trigger",".dgui-menu-content",".dgui-menu-content button",".dgui-canvas-loading",".dgui-canvas-spinner",".dgui-canvas-placeholder",".dgui-canvas-issue",".dgui-canvas-stage iframe",".dgui-version-preview",".dgui-segmented",".dgui-segment-indicator",".dgui-segmented button",".dgui-action-orb",".dgui-elastic",".dgui-stepper",".dgui-stepper>button",".dgui-card>.dgui-section-title",".dgui-row:has(>.dgui-metric)",".motion-copy-block",".motion-copy-button","[data-motion-component=card]","[data-motion-component=stat]"],pm=mm.map(t=>t.replace(/^\.dgui-root /,"")).join(",");function f0(t){return t.replace(/border-radius\s*:\s*([^;}]+)/g,(e,r)=>e+";--du-component-radius:"+r.replaceAll("var(--du-radius-inner","var(--du-owned-radius-inner").replaceAll("var(--du-radius","var(--du-owned-radius"))}var tn=".dgui-root[data-preset]:not(.dgui-style-preview)",fm=`
|
|
261
|
+
`);else if(u.startsWith("`"))i.push((0,kt.createElement)("code",{key:o++,className:g.inlineCode},u.slice(1,-1)));else if(u==="\\$"||u==="\\\\")i.push(u.slice(1));else if(u.startsWith("$")||u.startsWith("\\(")||u.startsWith("\\[")){let p=u.startsWith("$$")||u.startsWith("\\["),b=u.startsWith("$")&&!p?1:2;i.push((0,kt.createElement)(om,{key:o++,source:u.slice(b,-b),display:p}))}else if(u.startsWith("**")||u.startsWith("==")){let p=u.startsWith("**");i.push((0,kt.createElement)(p?"strong":"mark",{key:o++,className:p?g.inlineStrong:g.inlineMark},B(u.slice(2,-2),e,r+1)))}else{let p=/^\[([^\]\n]+)\]\(([^)\s]+)\)$/.exec(u);if(p===null)i.push(u);else{let b=Rr(p[2]),y=B(p[1],!1,r+1);b.type==="external"&&e===!0?i.push((0,kt.createElement)("a",{key:o++,className:g.inlineLink,href:b.href,target:"_blank",rel:"noreferrer noopener"},y)):b.type==="file"&&e!==!1?i.push((0,kt.createElement)(Jn,{key:o++,path:b.file.path,label:p[1],...b.file.line===void 0?{}:{line:b.file.line}},y)):i.push(y)}}s=m+u.length}return s<t.length&&i.push(t.slice(s)),i.length===0?t:i}var Ne=require("react");var ta=require("react");var rn=require("react");var o0=require("react");var r0={"artifact.export":"Export","artifact.exportHtml":"HTML","artifact.exportJson":"GenUI JSON","artifact.exportFailed":"Export failed. Try again.","artifact.unsupportedCustom":"Cannot export HTML because the standalone runtime cannot render custom components: {types}. Export GenUI JSON to preserve these nodes.","artifact.externalMediaNotice":"External media may not appear when this file is opened offline.","panel.badge":"Panel","panel.title.default":"GenUI panel","panel.title.explore":"GenUI explorer","panel.templates":"Templates","panel.templates.aria":"Template center","panel.templates.title":"Template center: preview and try GenUI examples","panel.achievements":"Trophies","panel.achievements.aria":"Exploration trophies","panel.achievements.title":"Exploration trophies: badges and progress","panel.close.aria":"Close panel","panel.resize.aria":"Resize panel height","panel.hint":"\u{1F4A1} This is the GenUI session panel \u2014 hit \u201CTemplates\u201D above to browse runnable examples","panel.boundary":"panel","panel.flash.inserted":"Instruction inserted into the composer \u2014 send it to generate","panel.cmd.hint":"Open the GenUI panel; /panel <instruction> to customize; /panel clear to empty","panel.cmd.description":"Open the GenUI panel (/panel clear empties it; /panel <instruction> tailors the content)","panel.default.heading":"GenUI generative interface","panel.default.subtitle":"The panel updates in place: say \u201Cupdate the panel\u201D in chat, or run /panel again to refresh.","panel.default.stat.components":"Components","panel.default.stat.single":"Primitives","panel.default.stat.composite":"Composites","panel.default.stat.advanced":"Advanced","panel.default.group.single":"Primitives \xD712","panel.default.group.composite":"Composites \xD78","panel.default.group.data":"Data \xD77","panel.default.group.interactive":"Interactive \xD75","panel.default.group.advanced":"Advanced \xD75","panel.default.group.teaching":"Teaching \xD71","panel.default.callout.title":"How to update","panel.default.callout.body":"Say \u201Cupdate the panel\u201D in chat \u2192 the model emits a panel:true fence; /panel clear empties it.","tpl.category.all":"All","tpl.category.dashboard":"Dashboard","tpl.category.data":"Data","tpl.category.flow":"Flow","tpl.category.chart":"Charts","tpl.category.interactive":"Interactive","tpl.category.quiz":"Quiz","tpl.category.advanced":"Advanced","tpl.categories.aria":"Template categories","tpl.try":"Try it: insert into composer","tpl.copy":"Copy instruction","tpl.copied":"\u2713 Copied","tpl.boundary.preview":"template preview","tpl.boundary.achievements":"trophy page","tpl.dashboard.name":"Project dashboard","tpl.dashboard.desc":"Core metrics on one card: numbers, deltas and a progress bar \u2014 the decision at a glance.","tpl.dashboard.instruction":"Use dsh-ui to build a dashboard for this project: 4 key-metric stat cards (with deltas), an overall progress bar, and a list of today\u2019s 3 todos. Title it \u201CProject dashboard\u201D.","tpl.dashboard.demo.title":"Project dashboard (example)","tpl.dashboard.demo.metrics":"This week\u2019s key metrics","tpl.dashboard.demo.done":"Completed","tpl.dashboard.demo.blocked":"Blocked","tpl.dashboard.demo.duration":"Avg. cycle time","tpl.dashboard.demo.coverage":"Coverage","tpl.dashboard.demo.progress":"Overall progress","tpl.dashboard.demo.milestone":"v1.0 milestone","tpl.dashboard.demo.todo":"Today\u2019s todos","tpl.dashboard.demo.todo1":"Review the M1 template-center PR","tpl.dashboard.demo.todo2":"Sync vendor to SSiD","tpl.dashboard.demo.todo3":"Wednesday standup deck","tpl.compare.name":"Option comparison","tpl.compare.desc":"Options scored dimension by dimension \u2014 the contested cells jump out.","tpl.compare.instruction":"Use dsh-ui to turn these options into a comparison table: options A/B/C \xD7 dimensions (cost / complexity / risk / payoff), marking the recommended column; add a callout at the top stating the conclusion.","tpl.compare.demo.title":"Option comparison (example)","tpl.compare.demo.conclusion":"Conclusion","tpl.compare.demo.body":"Option B wins overall: medium cost, low complexity, low risk.","tpl.compare.demo.dimension":"Dimension","tpl.compare.demo.optionA":"Option A","tpl.compare.demo.optionB":"Option B \u2605","tpl.compare.demo.optionC":"Option C","tpl.compare.demo.cost":"Cost","tpl.compare.demo.complexity":"Complexity","tpl.compare.demo.risk":"Risk","tpl.compare.demo.payoff":"Payoff","tpl.compare.demo.high":"High","tpl.compare.demo.medium":"Medium","tpl.compare.demo.low":"Low","tpl.compare.demo.large":"Large","tpl.compare.demo.small":"Small","tpl.steps.name":"Five-step walkthrough","tpl.steps.desc":"Key steps on a timeline, one line each \u2014 for tutorials, handovers and release runbooks.","tpl.steps.instruction":"Use dsh-ui to turn the procedure into a steps walkthrough: 5 steps following the real flow, each with a title and a line or two of detail, with a badge at the top showing the expected duration.","tpl.steps.demo.title":"Getting started (example)","tpl.steps.demo.badge":"About 5 minutes","tpl.steps.demo.s1":"Install the plugin","tpl.steps.demo.s1desc":"From the plugin center, or npm-install it into your profile","tpl.steps.demo.s2":"Send your first instruction","tpl.steps.demo.s2desc":"Ask the model to answer with a dsh-ui interface","tpl.steps.demo.s3":"Try the interaction","tpl.steps.demo.s3desc":"Click a button, grade a quiz, switch a tab \u2014 actions travel back to the model","tpl.steps.demo.s4":"Pin a panel","tpl.steps.demo.s4desc":"The model uses panel:true to pin results to the session panel","tpl.steps.demo.s5":"Advanced components","tpl.steps.demo.s5desc":"Charts, diagrams and 3D load lazily, on demand","tpl.quiz.name":"Pop quiz","tpl.quiz.desc":"Graded the moment you answer: right or wrong plus an explanation \u2014 good for training.","tpl.quiz.instruction":"Use dsh-ui to write 3 pop-quiz questions (quiz component: question + options, exactly one correct, each with an explanation), titled \u201CPop quiz\u201D, graded as soon as an option is picked.","tpl.quiz.demo.title":"Pop quiz (example)","tpl.quiz.demo.hint":"Picking an option grades it instantly and reveals the explanation.","tpl.quiz.demo.q1":"What is the smallest unit of a DSH plugin?","tpl.quiz.demo.q1a":"A service","tpl.quiz.demo.q1b":"A plugin (a cordis plugin)","tpl.quiz.demo.q1bfx":"\u2713 Everything is a plugin: services, tools and UI all register through one.","tpl.quiz.demo.q1c":"A tool","tpl.quiz.demo.q1exp":"DSH is built on cordis: every capability, services and tools included, registers as a plugin.","tpl.quiz.demo.q2":"Who emits a dsh-ui fence?","tpl.quiz.demo.q2a":"The user","tpl.quiz.demo.q2b":"The model","tpl.quiz.demo.q2bfx":"\u2713 The model writes the dsh-ui fence into its reply.","tpl.quiz.demo.q2c":"The host","tpl.quiz.demo.q2exp":"The model emits the fence; the renderer paints it into real components.","tpl.quiz.demo.q3":"Where does a panel:true fence render?","tpl.quiz.demo.q3a":"The message flow","tpl.quiz.demo.q3b":"The session panel dock","tpl.quiz.demo.q3bfx":"\u2713 Panel updates never spam the transcript.","tpl.quiz.demo.q3c":"The settings page","tpl.stats.name":"Key figures + progress","tpl.stats.desc":"Numbers, progress and milestones in one delivery \u2014 the standard weekly report.","tpl.stats.instruction":"Use dsh-ui to summarize this week: a keyvalue block with 3 key figures, two progress bars (planned vs actual), and a timeline with 3 milestones. Title it \u201CWeekly snapshot\u201D.","tpl.stats.demo.title":"Weekly snapshot (example)","tpl.stats.demo.done":"Completed","tpl.stats.demo.late":"Late","tpl.stats.demo.risk":"Risks","tpl.stats.demo.riskValue":"2 (both mitigated)","tpl.stats.demo.planned":"Planned progress","tpl.stats.demo.actual":"Actual progress","tpl.stats.demo.mon":"Monday","tpl.stats.demo.monDesc":"M1 development complete","tpl.stats.demo.wed":"Wednesday","tpl.stats.demo.wedDesc":"End-to-end verification passed","tpl.stats.demo.fri":"Friday","tpl.stats.demo.friDesc":"Shipped 0.9.4","tpl.chart.name":"Trend chart","tpl.chart.desc":"Data drawn straight into a chart \u2014 multiple series, trend visible at a glance.","tpl.chart.instruction":"Use dsh-ui to plot this data as a chart (bars, multi-series): completed vs planned over the last 6 weeks, with a one-line trend conclusion above the chart.","tpl.chart.demo.title":"Trend comparison (example)","tpl.chart.demo.conclusion":"Conclusion: completions rose 3 weeks running and overtook plan for the first time this week.","tpl.tabs.name":"Tabbed sections","tpl.tabs.desc":"A big block split into tabs: clear anchors, an uncluttered panel, no transcript spam.","tpl.tabs.instruction":"Use dsh-ui to split the content into three tabs: Overview / Details / FAQ, at most 3 points per tab. Title it \u201CFeature tour\u201D.","tpl.tabs.demo.title":"Feature tour (example)","tpl.tabs.demo.overview":"Overview","tpl.tabs.demo.overviewBody":"Three capabilities: live rendering, action round-trips, and a persistent panel.","tpl.tabs.demo.details":"Details","tpl.tabs.demo.d1":"Rendering: incremental fence parsing, painted as it streams","tpl.tabs.demo.d2":"Interaction: actions travel back and the model updates in place","tpl.tabs.demo.d3":"Panel: a session-level dock you can collapse and resize","tpl.tabs.demo.faqBody":"Q: What if the model never replies? A: Components still grade and expand locally.","tpl.checklist.name":"Release checklist","tpl.checklist.desc":"Tick every box before you ship: the list is the process, and gaps are visible.","tpl.checklist.instruction":"Use dsh-ui to build a release checklist: 6 tickable checkbox items (tests / docs / release / rollback / monitoring / announcement), with a badge at the top reading \u201CTick everything before merging\u201D.","tpl.checklist.demo.title":"Release checklist (example)","tpl.checklist.demo.badge":"Tick everything before merging","tpl.checklist.demo.c1":"Unit tests pass","tpl.checklist.demo.c2":"Docs updated","tpl.checklist.demo.c3":"Release bundle ready","tpl.checklist.demo.c4":"Rollback plan","tpl.accordion.name":"FAQ accordion","tpl.accordion.desc":"Questions and answers folded away: long documents get short and answers stop intimidating.","tpl.accordion.instruction":"Use dsh-ui to build an FAQ accordion: 5 common questions, the question as the header and the answer inside, with the first one expanded by default.","tpl.accordion.demo.title":"FAQ (example)","tpl.accordion.demo.q1":"Which chart types are supported?","tpl.accordion.demo.a1":"chart (bars/line/donut), plot for function graphs, and echart for the full chart library.","tpl.accordion.demo.q2":"Does the panel persist?","tpl.accordion.demo.a2":"The same content fingerprint restores its state across refresh and replay; new content resets.","tpl.accordion.demo.q3":"Do interactions disturb the model?","tpl.accordion.demo.a3":"Only components carrying an action send anything; pure display costs zero round-trips.","tpl.diagram.name":"System architecture","tpl.diagram.desc":"Architecture drawn as SVG: layered nodes, real edges, labelled zones \u2014 clearer than a screenshot.","tpl.diagram.instruction":"Use dsh-ui to draw an architecture diagram: 5 nodes of this system and their connections (kind: architecture or flowchart), including one security zone.","tpl.diagram.demo.title":"Architecture (example)","tpl.diagram.demo.caption":"DSH plugin path","tpl.diagram.demo.model":"Model","tpl.diagram.demo.plugin":"Plugin","tpl.diagram.demo.host":"Host","tpl.3d.name":"3D scene","tpl.3d.desc":"A rotatable 3D scene \u2014 for product demos and spatial explanations.","tpl.3d.instruction":"Use dsh-ui to render a 3D scene (scene3d): a cube and a sphere, titled \u201CExample scene\u201D, with a sentence on when to use it.","tpl.3d.demo.title":"3D scene (example)","tpl.3d.demo.note":"The first load downloads three.js (~700KB, lazily); afterwards it comes from cache.","tpl.3d.demo.scene":"Example scene","tpl.breadcrumb.name":"Path breadcrumb","tpl.breadcrumb.desc":"Long paths as breadcrumbs: file location and org hierarchy read instantly.","tpl.breadcrumb.instruction":"Use dsh-ui to show the current workspace layout: a breadcrumb for the file path (4 segments) and a file-tree of the project (3 directories, 2 children each).","tpl.breadcrumb.demo.title":"Directory layout (example)","tpl.breadcrumb.demo.workspace":"Workspace","ach.page.title":"GenUI exploration trophies","ach.stat.unlocked":"Unlocked","ach.stat.rendered":"Interfaces rendered","ach.stat.interactions":"Interactions","ach.progress":"Exploration progress","ach.rarity.common":"Common","ach.rarity.rare":"Rare","ach.rarity.legendary":"Legendary","ach.hidden.name":"?","ach.hidden.desc":"Keep exploring to reveal","ach.toast.unlocked":"Trophy unlocked: {name}","ach.first-fence.name":"First contact","ach.first-fence.desc":"Rendered your first GenUI interface.","ach.fence-5.name":"Getting the hang of it","ach.fence-5.desc":"Rendered 5 interfaces.","ach.fence-25.name":"Interface weaver","ach.fence-25.desc":"Rendered 25 interfaces.","ach.fence-50.name":"Soul of the blueprint","ach.fence-50.desc":"Rendered 50 interfaces \u2014 you and GenUI go way back.","ach.first-interaction.name":"The button works","ach.first-interaction.desc":"Triggered a component interaction for the first time.","ach.interaction-10.name":"Little puppeteer","ach.interaction-10.desc":"Triggered 10 component interactions.","ach.first-panel.name":"Pinned to the wall","ach.first-panel.desc":"Pinned content to the session panel for the first time.","ach.panel-5.name":"Panel keeper","ach.panel-5.desc":"Used the panel in 5 different sessions.","ach.first-chart.name":"Chart enthusiast","ach.first-chart.desc":"Rendered your first chart (chart/plot/echart).","ach.chart-10.name":"Data visualizer","ach.chart-10.desc":"Charts appeared in 10 interfaces.","ach.first-advanced.name":"Power user","ach.first-advanced.desc":"Used 3D, a chart engine, or an architecture diagram.","ach.template-1.name":"Template student","ach.template-1.desc":"Tried a template from the template center.","label.copy":"Copy","label.copied":"Copied","label.copiedDone":"Copied","label.copiedShort":"\u2713 Copied","label.copiedToClipboard":"Copied to clipboard","label.copyFailed":"Copy failed","label.code":"Code","label.wrap":"Wrap lines","label.unwrap":"Unwrap lines","label.collapse":"Collapse","label.collapseDiff.aria":"Collapse diff","label.expandDiff.aria":"Show the remaining {hidden} diff lines","label.expandDiff":"\u2026 {hidden} more lines","label.diffFiles":"{count} files","label.copyValue":"Copy value","label.copyJson":"Copy JSON","label.copyPath":"Copy property path","label.copyPrettyJson":"Copy formatted JSON","label.copyCompactJson":"Copy compact JSON","label.collapseNode":"Collapse JSON node","label.expandNode":"Expand JSON node","label.copyButtonTitle":"{action}; right-click for copy options","block.copyMarkdown":"Copy Markdown","block.copyCsv":"Copy CSV","block.table.expandDetails":"Expand details for {label}","block.table.collapseDetails":"Collapse details for {label}","block.table.expandGroup":"Expand group {label}","block.table.collapseGroup":"Collapse group {label}","block.total":"Total","block.filteredRows":"{visible} / {total} rows after filtering","block.filterMatch":"{shown} / {total} matched","block.triggered":"\u2713 Sent","block.triggeredPlain":"Sent","block.audio":"Audio","block.audioError":"Audio cannot be played","block.video":"Video","block.videoError":"Video cannot be played","block.image":"Image","block.imageError":"Image failed to load","block.svgLabel":"SVG diagram","block.svgPreview":"Preview","block.svgSource":"Source","block.svgError":"SVG could not be displayed \u2014 showing the source instead","block.mermaidError":"Diagram rendering failed \u2014 showing the source instead","block.mermaidLoading":"Rendering\u2026","block.scene3dLoading":"Loading 3D scene\u2026","block.scene3dError":"3D rendering failed","block.quizCorrect":"\u2713 Correct!","block.quizWrong":"\u2717 Try again","block.quizRetry":"Start over","block.selectPlaceholder":"Choose\u2026","block.score":"Score","block.scoreUngraded":" ({count} unanswered, not scored)","block.yourAnswer":"Your answer:","block.correctAnswer":" Correct answer:","block.selectedCount":"{answered}/{total} answered","block.target":"Target {value}%","block.chart.barsAria":"Horizontal bar chart, {count} groups","block.chart.barsSummary":"Bar chart, {count} groups, max {max}","block.chart.lineSeries":"Line chart, {count} series, range {min} to {max}","block.chart.linePoints":"Line chart, {count} points, range {min} to {max}","block.chart.donutSummary":"Donut chart, {count} slices, total {total}","block.chart.node":"Point","err.boundary.generic":"this interface","err.boundary.fence":"this interface","err.boundary.body":"\u26A0\uFE0F {label} failed to render (isolated \u2014 the rest of the reply is unaffected)","err.fieldValidation":"GenUI field validation failed: {errors}","err.chartValidation":"chart field validation failed: {errors}","err.fenceKeptAsCode":"\u26A0\uFE0F dsh-ui {diagnostic} \u2014 the fence stays a code block; fix it and resend.","err.fenceParse":"\u26A0\uFE0F dsh-ui fence JSON failed to parse{diagnostic} \u2014 the fence stays a code block; ask the model to fix the JSON and resend."};var n0={"artifact.export":"\u5BFC\u51FA","artifact.exportHtml":"HTML","artifact.exportJson":"GenUI JSON","artifact.exportFailed":"\u5BFC\u51FA\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u3002","artifact.unsupportedCustom":"\u65E0\u6CD5\u5BFC\u51FA HTML\uFF1A\u72EC\u7ACB\u8FD0\u884C\u73AF\u5883\u65E0\u6CD5\u663E\u793A\u81EA\u5B9A\u4E49\u7EC4\u4EF6 {types}\u3002\u53EF\u5BFC\u51FA GenUI JSON \u4FDD\u5B58\u8FD9\u4E9B\u8282\u70B9\u3002","artifact.externalMediaNotice":"\u6B64\u9875\u9762\u542B\u6709\u5916\u90E8\u5A92\u4F53\uFF0C\u79BB\u7EBF\u6253\u5F00\u65F6\u90E8\u5206\u5185\u5BB9\u53EF\u80FD\u65E0\u6CD5\u663E\u793A\u3002","panel.badge":"\u9762\u677F","panel.title.default":"GenUI \u9762\u677F","panel.title.explore":"GenUI \u63A2\u7D22","panel.templates":"\u6A21\u677F","panel.templates.aria":"\u6A21\u677F\u4E2D\u5FC3","panel.templates.title":"\u6A21\u677F\u4E2D\u5FC3\uFF1A\u9884\u89C8\u5E76\u8BD5\u7528 GenUI \u793A\u4F8B","panel.achievements":"\u6210\u5C31","panel.achievements.aria":"\u63A2\u7D22\u6210\u5C31","panel.achievements.title":"\u63A2\u7D22\u6210\u5C31\uFF1A\u89E3\u9501\u5FBD\u7AE0\u4E0E\u8FDB\u5EA6","panel.close.aria":"\u5173\u95ED\u9762\u677F","panel.resize.aria":"\u8C03\u6574\u9762\u677F\u9AD8\u5EA6","panel.hint":"\u{1F4A1} \u8FD9\u662F GenUI \u4F1A\u8BDD\u9762\u677F\uFF1A\u70B9\u53F3\u4E0A\u89D2\u300C\u6A21\u677F\u300D\u53EF\u6D4F\u89C8\u5E76\u8BD5\u7528\u793A\u4F8B","panel.boundary":"\u9762\u677F","panel.flash.inserted":"\u6307\u4EE4\u5DF2\u63D2\u5165\u8F93\u5165\u6846\uFF0C\u53D1\u9001\u5373\u53EF\u8BA9\u6A21\u578B\u751F\u6210","panel.cmd.hint":"\u5F00\u542F GenUI \u9762\u677F\uFF1B/panel <\u6307\u4EE4> \u8BA9\u6A21\u578B\u5B9A\u5236\uFF1B/panel clear \u6E05\u7A7A","panel.cmd.description":"\u5F00\u542F GenUI \u9762\u677F\uFF08/panel clear \u6E05\u7A7A\uFF1B/panel <\u6307\u4EE4> \u5B9A\u5236\u5185\u5BB9\uFF09","panel.default.heading":"GenUI \u751F\u6210\u5F0F\u754C\u9762","panel.default.subtitle":"\u9762\u677F\u4F1A\u539F\u5730\u66F4\u65B0\uFF1A\u5BF9\u8BDD\u91CC\u8BF4\u300C\u66F4\u65B0\u9762\u677F\u300D\uFF0C\u6216\u518D\u6B21\u6267\u884C /panel \u5237\u65B0\u3002","panel.default.stat.components":"\u7EC4\u4EF6","panel.default.stat.single":"\u5355\u4E2A","panel.default.stat.composite":"\u7EC4\u5408","panel.default.stat.advanced":"\u9AD8\u7EA7","panel.default.group.single":"\u5355\u4E2A \xD712","panel.default.group.composite":"\u7EC4\u5408 \xD78","panel.default.group.data":"\u6570\u636E \xD77","panel.default.group.interactive":"\u4EA4\u4E92 \xD75","panel.default.group.advanced":"\u9AD8\u7EA7 \xD75","panel.default.group.teaching":"\u6559\u5B66 \xD71","panel.default.callout.title":"\u66F4\u65B0\u65B9\u5F0F","panel.default.callout.body":"\u5BF9\u8BDD\u8BF4\u300C\u66F4\u65B0\u9762\u677F\u300D\u2192 \u6A21\u578B\u8F93\u51FA panel:true \u56F4\u680F\uFF1B/panel clear \u6E05\u7A7A\u9762\u677F\u3002","tpl.category.all":"\u5168\u90E8","tpl.category.dashboard":"\u4EEA\u8868\u76D8","tpl.category.data":"\u6570\u636E","tpl.category.flow":"\u6D41\u7A0B","tpl.category.chart":"\u56FE\u8868","tpl.category.interactive":"\u4EA4\u4E92","tpl.category.quiz":"\u6D4B\u9A8C","tpl.category.advanced":"\u9AD8\u7EA7","tpl.categories.aria":"\u6A21\u677F\u5206\u7C7B","tpl.try":"\u8BD5\u7528\uFF1A\u63D2\u5165\u8F93\u5165\u6846","tpl.copy":"\u590D\u5236\u6307\u4EE4","tpl.copied":"\u2713 \u5DF2\u590D\u5236","tpl.boundary.preview":"\u6A21\u677F\u9884\u89C8","tpl.boundary.achievements":"\u6210\u5C31\u9875","tpl.dashboard.name":"\u9879\u76EE\u4EEA\u8868\u76D8","tpl.dashboard.desc":"\u4E00\u5F20\u5361\u7247\u6C47\u603B\u6838\u5FC3\u6307\u6807\uFF1A\u6570\u5B57 + \u73AF\u6BD4 + \u8FDB\u5EA6\u6761\uFF0C\u51B3\u7B56\u4E00\u773C\u53EF\u89C1\u3002","tpl.dashboard.instruction":"\u8BF7\u7528 dsh-ui \u7ED9\u5F53\u524D\u9879\u76EE\u505A\u4E00\u4E2A\u4EEA\u8868\u76D8\uFF1A4 \u4E2A\u5173\u952E\u6307\u6807\u7684 stat \u5361\u7247\uFF08\u5E26\u73AF\u6BD4 delta\uFF09\u3001\u6574\u4F53\u8FDB\u5EA6 progress \u6761\u3001\u4ECA\u5929\u7684 3 \u4EF6\u5F85\u529E list\u3002\u6807\u9898\u7528\u300C\u9879\u76EE\u4EEA\u8868\u76D8\u300D\u3002","tpl.dashboard.demo.title":"\u9879\u76EE\u4EEA\u8868\u76D8\uFF08\u793A\u4F8B\uFF09","tpl.dashboard.demo.metrics":"\u672C\u5468\u5173\u952E\u6307\u6807","tpl.dashboard.demo.done":"\u672C\u5468\u5B8C\u6210","tpl.dashboard.demo.blocked":"\u963B\u585E\u4E8B\u9879","tpl.dashboard.demo.duration":"\u5E73\u5747\u8017\u65F6","tpl.dashboard.demo.coverage":"\u8986\u76D6\u7387","tpl.dashboard.demo.progress":"\u6574\u4F53\u8FDB\u5EA6","tpl.dashboard.demo.milestone":"v1.0 \u91CC\u7A0B\u7891","tpl.dashboard.demo.todo":"\u4ECA\u65E5\u5F85\u529E","tpl.dashboard.demo.todo1":"\u8BC4\u5BA1 M1 \u6A21\u677F\u4E2D\u5FC3 PR","tpl.dashboard.demo.todo2":"\u540C\u6B65 vendor \u5230 SSiD","tpl.dashboard.demo.todo3":"\u5468\u4E09\u5468\u4F1A\u6750\u6599","tpl.compare.name":"\u65B9\u6848\u5BF9\u6BD4\u8868","tpl.compare.desc":"\u591A\u65B9\u6848\u9010\u7EF4\u5EA6\u5BF9\u7167\uFF0C\u8868\u683C\u76F4\u63A5\u53EF\u8BFB\uFF0C\u4E89\u8BAE\u70B9\u4E00\u76EE\u4E86\u7136\u3002","tpl.compare.instruction":"\u8BF7\u7528 dsh-ui \u628A\u4EE5\u4E0B\u65B9\u6848\u7684\u5BF9\u6BD4\u505A\u6210\u4E00\u5F20 table\uFF1A\u65B9\u6848 A/B/C \xD7 \u7EF4\u5EA6\uFF08\u6210\u672C/\u590D\u6742\u5EA6/\u98CE\u9669/\u6536\u76CA\uFF09\uFF0C\u5217\u9996\u9AD8\u4EAE\u63A8\u8350\u9879\uFF1B\u9876\u90E8\u52A0\u4E00\u884C callout \u8BF4\u660E\u7ED3\u8BBA\u3002","tpl.compare.demo.title":"\u65B9\u6848\u5BF9\u6BD4\uFF08\u793A\u4F8B\uFF09","tpl.compare.demo.conclusion":"\u7ED3\u8BBA","tpl.compare.demo.body":"\u65B9\u6848 B \u7EFC\u5408\u6700\u4F18\uFF1A\u6210\u672C\u4E2D\u3001\u590D\u6742\u5EA6\u4F4E\u3001\u98CE\u9669\u4F4E\u3002","tpl.compare.demo.dimension":"\u7EF4\u5EA6","tpl.compare.demo.optionA":"\u65B9\u6848 A","tpl.compare.demo.optionB":"\u65B9\u6848 B \u2605","tpl.compare.demo.optionC":"\u65B9\u6848 C","tpl.compare.demo.cost":"\u6210\u672C","tpl.compare.demo.complexity":"\u590D\u6742\u5EA6","tpl.compare.demo.risk":"\u98CE\u9669","tpl.compare.demo.payoff":"\u6536\u76CA","tpl.compare.demo.high":"\u9AD8","tpl.compare.demo.medium":"\u4E2D","tpl.compare.demo.low":"\u4F4E","tpl.compare.demo.large":"\u5927","tpl.compare.demo.small":"\u5C0F","tpl.steps.name":"\u4E94\u6B65\u4E0A\u624B\u6D41\u7A0B","tpl.steps.desc":"\u5173\u952E\u6B65\u9AA4\u6392\u6210\u65F6\u95F4\u7EBF\uFF0C\u6BCF\u6B65\u4E00\u53E5\u8981\u70B9\uFF0C\u9002\u5408\u6559\u7A0B/\u4EA4\u63A5/\u53D1\u5E03\u6D41\u7A0B\u3002","tpl.steps.instruction":"\u8BF7\u7528 dsh-ui \u628A\u64CD\u4F5C\u6B65\u9AA4\u505A\u6210 steps \u6559\u7A0B\uFF1A5 \u6B65\uFF08\u6309\u5B9E\u9645\u6D41\u7A0B\uFF09\uFF0C\u6BCF\u6B65\u6807\u9898 + \u4E00\u4E24\u53E5\u8981\u70B9\uFF0C\u9876\u90E8\u7528 badge \u6807\u51FA\u9884\u8BA1\u8017\u65F6\u3002","tpl.steps.demo.title":"\u4E0A\u624B\u6D41\u7A0B\uFF08\u793A\u4F8B\uFF09","tpl.steps.demo.badge":"\u7EA6 5 \u5206\u949F","tpl.steps.demo.s1":"\u5B89\u88C5\u63D2\u4EF6","tpl.steps.demo.s1desc":"\u4ECE\u63D2\u4EF6\u4E2D\u5FC3\u5B89\u88C5\uFF0C\u6216 npm \u5B89\u88C5\u5230 profile","tpl.steps.demo.s2":"\u53D1\u9001\u7B2C\u4E00\u6761\u6307\u4EE4","tpl.steps.demo.s2desc":"\u8BA9\u6A21\u578B\u7528 dsh-ui \u8F93\u51FA\u4E00\u4E2A\u754C\u9762","tpl.steps.demo.s3":"\u4F53\u9A8C\u4EA4\u4E92","tpl.steps.demo.s3desc":"\u70B9\u6309\u94AE/\u5224\u5377/\u5207 tab\uFF0C\u52A8\u4F5C\u4F1A\u56DE\u4F20\u6A21\u578B","tpl.steps.demo.s4":"\u5E38\u9A7B\u9762\u677F","tpl.steps.demo.s4desc":"\u6A21\u578B\u7528 panel:true \u628A\u7ED3\u679C\u9489\u5728\u4F1A\u8BDD\u9762\u677F","tpl.steps.demo.s5":"\u8FDB\u9636\u7EC4\u4EF6","tpl.steps.demo.s5desc":"\u56FE\u8868/\u6D41\u7A0B/3D \u6309\u9700\u61D2\u52A0\u8F7D","tpl.quiz.name":"\u968F\u5802\u6D4B\u9A8C","tpl.quiz.desc":"\u4E00\u9898\u4E00\u7B54\u5373\u65F6\u5224\u5377\uFF1A\u9009\u4E2D\u5373\u77E5\u5BF9\u9519\uFF0C\u9644\u8BB2\u89E3\uFF0C\u9002\u5408\u57F9\u8BAD\u95EE\u7B54\u3002","tpl.quiz.instruction":"\u8BF7\u7528 dsh-ui \u51FA 3 \u9053\u968F\u5802\u6D4B\u9A8C\uFF08quiz \u7EC4\u4EF6\uFF1Aquestion + options\uFF0C\u5176\u4E2D\u4E00\u9879 correct\uFF0C\u9644 explanation\uFF09\uFF0C\u6807\u9898\u300C\u968F\u5802\u6D4B\u9A8C\u300D\uFF0C\u6BCF\u9898\u5373\u9009\u5373\u8BC4\u3002","tpl.quiz.demo.title":"\u968F\u5802\u6D4B\u9A8C\uFF08\u793A\u4F8B\uFF09","tpl.quiz.demo.hint":"\u9009\u4E2D\u5373\u5224\u5377\u5E76\u663E\u793A\u8BB2\u89E3\u3002","tpl.quiz.demo.q1":"DSH \u63D2\u4EF6\u7684\u6700\u5C0F\u5355\u4F4D\u662F\uFF1F","tpl.quiz.demo.q1a":"\u670D\u52A1","tpl.quiz.demo.q1b":"\u63D2\u4EF6\uFF08cordis \u63D2\u4EF6\uFF09","tpl.quiz.demo.q1bfx":"\u2713 \u4E00\u5207\u7686\u63D2\u4EF6\uFF1A\u670D\u52A1\u3001\u5DE5\u5177\u3001UI \u90FD\u901A\u8FC7\u63D2\u4EF6\u6CE8\u518C\u3002","tpl.quiz.demo.q1c":"\u5DE5\u5177","tpl.quiz.demo.q1exp":"DSH \u57FA\u4E8E cordis\uFF0C\u4EFB\u4F55\u80FD\u529B\uFF08\u542B\u670D\u52A1\u4E0E\u5DE5\u5177\uFF09\u90FD\u4EE5\u63D2\u4EF6\u5F62\u5F0F\u6CE8\u518C\u3002","tpl.quiz.demo.q2":"dsh-ui \u56F4\u680F\u7531\u8C01\u8F93\u51FA\uFF1F","tpl.quiz.demo.q2a":"\u7528\u6237","tpl.quiz.demo.q2b":"\u6A21\u578B","tpl.quiz.demo.q2bfx":"\u2713 \u6A21\u578B\u5728\u56DE\u590D\u4E2D\u8F93\u51FA dsh-ui fence\u3002","tpl.quiz.demo.q2c":"\u5BBF\u4E3B","tpl.quiz.demo.q2exp":"\u6A21\u578B\u8F93\u51FA fence\uFF0C\u6E32\u67D3\u5668\u5C06\u5176\u753B\u6210\u771F\u5B9E\u7EC4\u4EF6\u3002","tpl.quiz.demo.q3":"panel:true \u7684\u56F4\u680F\u6E32\u67D3\u5230\u54EA\u91CC\uFF1F","tpl.quiz.demo.q3a":"\u6D88\u606F\u6D41","tpl.quiz.demo.q3b":"\u4F1A\u8BDD\u9762\u677F dock","tpl.quiz.demo.q3bfx":"\u2713 \u9762\u677F\u66F4\u65B0\u4E0D\u5237\u5C4F\u3002","tpl.quiz.demo.q3c":"\u8BBE\u7F6E\u9875","tpl.stats.name":"\u5173\u952E\u503C + \u8FDB\u5EA6","tpl.stats.desc":"\u4E00\u6B21\u4EA4\u4ED8\uFF1A\u6570\u503C\u3001\u8FDB\u5EA6\u3001\u91CC\u7A0B\u7891\u4E09\u4EF6\u5957\uFF0C\u5468\u62A5/\u590D\u76D8\u901A\u7528\u3002","tpl.stats.instruction":"\u8BF7\u7528 dsh-ui \u603B\u7ED3\u672C\u5468\u5173\u952E\u6570\u636E\uFF1Akeyvalue \u5217 3 \u7EC4\u5173\u952E\u503C\u3001\u4E24\u6839 progress \u8FDB\u5EA6\uFF08\u8BA1\u5212 vs \u5B9E\u9645\uFF09\u3001timeline \u653E 3 \u4E2A\u91CC\u7A0B\u7891\uFF0C\u6807\u9898\u300C\u5468\u62A5\u901F\u89C8\u300D\u3002","tpl.stats.demo.title":"\u5468\u62A5\u901F\u89C8\uFF08\u793A\u4F8B\uFF09","tpl.stats.demo.done":"\u5B8C\u6210\u9879","tpl.stats.demo.late":"\u5EF6\u671F","tpl.stats.demo.risk":"\u98CE\u9669","tpl.stats.demo.riskValue":"2\uFF08\u5747\u5DF2\u6709\u7F13\u89E3\uFF09","tpl.stats.demo.planned":"\u8BA1\u5212\u8FDB\u5EA6","tpl.stats.demo.actual":"\u5B9E\u9645\u8FDB\u5EA6","tpl.stats.demo.mon":"\u5468\u4E00","tpl.stats.demo.monDesc":"\u5B8C\u6210 M1 \u5F00\u53D1","tpl.stats.demo.wed":"\u5468\u4E09","tpl.stats.demo.wedDesc":"\u5168\u94FE\u8DEF\u9A8C\u8BC1\u901A\u8FC7","tpl.stats.demo.fri":"\u5468\u4E94","tpl.stats.demo.friDesc":"\u53D1\u5E03 0.9.4","tpl.chart.name":"\u8D8B\u52BF\u67F1\u72B6\u56FE","tpl.chart.desc":"\u6570\u636E\u76F4\u63A5\u753B\u6210\u67F1\u72B6\u56FE\uFF0C\u591A\u5E8F\u5217\u5BF9\u6BD4\uFF0C\u8D70\u52BF\u4E00\u773C\u770B\u6E05\u3002","tpl.chart.instruction":"\u8BF7\u7528 dsh-ui \u628A\u4E0B\u5217\u6570\u636E\u753B\u6210 chart\uFF08bars\uFF0C\u591A\u5E8F\u5217\uFF09\uFF1A\u8FD1 6 \u5468\u5B8C\u6210\u91CF vs \u8BA1\u5212\u91CF\uFF1B\u56FE\u8868\u4E0A\u65B9\u7ED9\u4E00\u53E5\u8D8B\u52BF\u7ED3\u8BBA\u3002","tpl.chart.demo.title":"\u8D8B\u52BF\u5BF9\u6BD4\uFF08\u793A\u4F8B\uFF09","tpl.chart.demo.conclusion":"\u7ED3\u8BBA\uFF1A\u8FD1 3 \u5468\u5B8C\u6210\u91CF\u8FDE\u7EED\u4E0A\u5347\uFF0C\u672C\u5468\u9996\u6B21\u53CD\u8D85\u8BA1\u5212\u3002","tpl.tabs.name":"\u5206\u6807\u7B7E\u9875","tpl.tabs.desc":"\u4E00\u5927\u5757\u5185\u5BB9\u62C6\u6210\u6807\u7B7E\u9875\uFF0C\u951A\u70B9\u6E05\u6670\uFF1B\u9762\u677F\u4E0D\u6324\u3001\u6D88\u606F\u4E0D\u5237\u5C4F\u3002","tpl.tabs.instruction":"\u8BF7\u7528 dsh-ui \u628A\u5185\u5BB9\u5206\u6210 tabs \u4E09\u4E2A\u6807\u7B7E\uFF1A\u6982\u89C8/\u660E\u7EC6/FAQ\uFF0C\u6BCF\u4E2A\u6807\u7B7E 3 \u6761\u4EE5\u5185\u8981\u70B9\uFF1B\u6807\u9898\u300C\u529F\u80FD\u901F\u89C8\u300D\u3002","tpl.tabs.demo.title":"\u529F\u80FD\u901F\u89C8\uFF08\u793A\u4F8B\uFF09","tpl.tabs.demo.overview":"\u6982\u89C8","tpl.tabs.demo.overviewBody":"\u4E09\u9879\u80FD\u529B\uFF1A\u5B9E\u65F6\u6E32\u67D3\u3001\u4EA4\u4E92\u56DE\u4F20\u3001\u5E38\u9A7B\u9762\u677F\u3002","tpl.tabs.demo.details":"\u660E\u7EC6","tpl.tabs.demo.d1":"\u6E32\u67D3\uFF1Afence \u589E\u91CF\u89E3\u6790\uFF0C\u8FB9\u6D41\u8FB9\u51FA","tpl.tabs.demo.d2":"\u4EA4\u4E92\uFF1A\u52A8\u4F5C\u56DE\u4F20\u6A21\u578B\u589E\u91CF\u66F4\u65B0","tpl.tabs.demo.d3":"\u9762\u677F\uFF1A\u4F1A\u8BDD\u7EA7 dock\uFF0C\u6298\u53E0/\u8C03\u9AD8","tpl.tabs.demo.faqBody":"\u95EE\uFF1A\u4E0D\u52A8\u6A21\u578B\u4F1A\u600E\u6837\uFF1F\u7B54\uFF1A\u7EC4\u4EF6\u4ECD\u53EF\u672C\u5730\u5224\u5377/\u5C55\u5F00\u3002","tpl.checklist.name":"\u4EA4\u4ED8\u68C0\u67E5\u6E05\u5355","tpl.checklist.desc":"\u63D0\u4EA4\u524D\u9010\u9879\u6253\u52FE\uFF1A\u6E05\u5355\u5373\u6D41\u7A0B\uFF0C\u6F0F\u9879\u770B\u5F97\u89C1\u3002","tpl.checklist.instruction":"\u8BF7\u7528 dsh-ui \u505A\u4E00\u5F20\u4EA4\u4ED8\u68C0\u67E5\u6E05\u5355\uFF1A6 \u9879\uFF08\u6D4B\u8BD5/\u6587\u6863/\u53D1\u5E03/\u56DE\u6EDA/\u76D1\u63A7/\u516C\u544A\uFF09\uFF0Ccheckbox \u53EF\u52FE\u9009\uFF0C\u9876\u90E8 badge \u63D0\u793A\u300C\u5168\u90E8\u52FE\u9009\u518D\u5408\u5E76\u300D\u3002","tpl.checklist.demo.title":"\u4EA4\u4ED8\u6E05\u5355\uFF08\u793A\u4F8B\uFF09","tpl.checklist.demo.badge":"\u5168\u90E8\u52FE\u9009\u518D\u5408\u5E76","tpl.checklist.demo.c1":"\u5355\u5143\u6D4B\u8BD5\u901A\u8FC7","tpl.checklist.demo.c2":"\u6587\u6863\u540C\u6B65","tpl.checklist.demo.c3":"\u53D1\u5E03\u5957\u9910\u5C31\u7EEA","tpl.checklist.demo.c4":"\u56DE\u6EDA\u9884\u6848","tpl.accordion.name":"FAQ \u624B\u98CE\u7434","tpl.accordion.desc":"\u4E00\u95EE\u4E00\u7B54\u6536\u5728\u6298\u53E0\u9762\u677F\u91CC\uFF0C\u957F\u6587\u6863\u53D8\u77ED\uFF0C\u56DE\u7B54\u4E0D\u5413\u4EBA\u3002","tpl.accordion.instruction":"\u8BF7\u7528 dsh-ui \u505A FAQ \u624B\u98CE\u7434\uFF08accordion\uFF09\uFF1A5 \u4E2A\u9AD8\u9891\u95EE\u9898\uFF0C\u6807\u9898\u680F\u5C31\u662F\u95EE\u9898\u3001\u5C55\u5F00\u4E00\u6761\u7ED9\u7B54\u6848\uFF1B\u7B2C\u4E00\u95EE\u9ED8\u8BA4\u5C55\u5F00\u3002","tpl.accordion.demo.title":"FAQ\uFF08\u793A\u4F8B\uFF09","tpl.accordion.demo.q1":"\u652F\u6301\u54EA\u4E9B\u56FE\u8868\uFF1F","tpl.accordion.demo.a1":"chart\uFF08bars/line/donut\uFF09\u3001plot \u51FD\u6570\u56FE\u3001echart \u5168\u529F\u80FD\u56FE\u8868\u3002","tpl.accordion.demo.q2":"\u9762\u677F\u80FD\u6301\u4E45\u5417\uFF1F","tpl.accordion.demo.a2":"\u540C\u4E00\u5185\u5BB9\u6307\u7EB9\u5237\u65B0/\u91CD\u653E\u6062\u590D\u72B6\u6001\uFF1B\u65B0\u5185\u5BB9\u91CD\u7F6E\u3002","tpl.accordion.demo.q3":"\u4EA4\u4E92\u4F1A\u6253\u6270\u6A21\u578B\u5417\uFF1F","tpl.accordion.demo.a3":"\u5E26 action \u7684\u7EC4\u4EF6\u624D\u56DE\u4F20\uFF1B\u7EAF\u5C55\u793A\u7EC4\u4EF6\u96F6\u5F80\u8FD4\u3002","tpl.diagram.name":"\u7CFB\u7EDF\u67B6\u6784\u56FE","tpl.diagram.desc":"\u6846\u67B6\u56FE\u753B\u6210 SVG\uFF1A\u8282\u70B9\u5206\u5C42\u3001\u8FDE\u63A5\u7EBF\u3001\u5206\u533A\u6807\u6CE8\uFF0C\u6BD4\u622A\u56FE\u6E05\u695A\u3002","tpl.diagram.instruction":"\u8BF7\u7528 dsh-ui \u753B\u4E00\u5E45\u67B6\u6784\u56FE\uFF08diagram\uFF09\uFF1A\u63CF\u8FF0\u5F53\u524D\u7CFB\u7EDF\u7684 5 \u4E2A\u8282\u70B9\u4E0E\u8FDE\u63A5\uFF08kind: architecture \u6216 flowchart\uFF09\uFF0C\u5305\u542B\u4E00\u4E2A\u5B89\u5168\u533A zone\u3002","tpl.diagram.demo.title":"\u67B6\u6784\u56FE\uFF08\u793A\u4F8B\uFF09","tpl.diagram.demo.caption":"DSH \u63D2\u4EF6\u94FE\u8DEF","tpl.diagram.demo.model":"\u6A21\u578B","tpl.diagram.demo.plugin":"\u63D2\u4EF6","tpl.diagram.demo.host":"\u5BBF\u4E3B","tpl.3d.name":"3D \u573A\u666F","tpl.3d.desc":"\u4E00\u4E2A\u53EF\u65CB\u8F6C\u7684 3D \u573A\u666F\uFF1A\u4EA7\u54C1\u6F14\u793A/\u7A7A\u95F4\u793A\u610F\u7528\u5F97\u4E0A\u3002","tpl.3d.instruction":"\u8BF7\u7528 dsh-ui \u6E32\u67D3\u4E00\u4E2A 3D \u573A\u666F\uFF08scene3d\uFF09\uFF1A\u4E00\u4E2A\u7ACB\u65B9\u4F53 + \u4E00\u4E2A\u7403\u4F53\uFF0C\u6807\u9898\u300C\u793A\u4F8B\u573A\u666F\u300D\uFF0C\u9644\u4E00\u53E5\u4F7F\u7528\u573A\u666F\u8BF4\u660E\u3002","tpl.3d.demo.title":"3D \u573A\u666F\uFF08\u793A\u4F8B\uFF09","tpl.3d.demo.note":"\u9996\u6B21\u52A0\u8F7D\u9700\u4E0B\u8F7D three.js\uFF08\u7EA6 700KB\uFF0C\u61D2\u52A0\u8F7D\uFF09\uFF0C\u4E4B\u540E\u8D70\u7F13\u5B58\u3002","tpl.3d.demo.scene":"\u793A\u4F8B\u573A\u666F","tpl.breadcrumb.name":"\u8DEF\u5F84\u9762\u5305\u5C51","tpl.breadcrumb.desc":"\u957F\u8DEF\u5F84\u62C6\u6210\u9762\u5305\u5C51\uFF1A\u6587\u4EF6\u4F4D\u7F6E\u3001\u7EC4\u7EC7\u5C42\u7EA7\u4E00\u8BFB\u5C31\u61C2\u3002","tpl.breadcrumb.instruction":"\u8BF7\u7528 dsh-ui \u5C55\u793A\u5F53\u524D\u5DE5\u4F5C\u533A\u7ED3\u6784\uFF1Abreadcrumb \u663E\u793A\u6587\u4EF6\u8DEF\u5F84\uFF084 \u6BB5\uFF09\u3001file-tree \u63CF\u8FF0\u9879\u76EE\u76EE\u5F55\uFF083 \u4E2A\u76EE\u5F55\u3001\u6BCF\u4E2A 2 \u4E2A\u5B50\u9879\uFF09\u3002","tpl.breadcrumb.demo.title":"\u76EE\u5F55\u7ED3\u6784\uFF08\u793A\u4F8B\uFF09","tpl.breadcrumb.demo.workspace":"\u5DE5\u4F5C\u533A","ach.page.title":"GenUI \u63A2\u7D22\u6210\u5C31","ach.stat.unlocked":"\u5DF2\u89E3\u9501","ach.stat.rendered":"\u6E32\u67D3\u754C\u9762","ach.stat.interactions":"\u7EC4\u4EF6\u4EA4\u4E92","ach.progress":"\u63A2\u7D22\u8FDB\u5EA6","ach.rarity.common":"\u666E\u901A","ach.rarity.rare":"\u7A00\u6709","ach.rarity.legendary":"\u4F20\u8BF4","ach.hidden.name":"\uFF1F","ach.hidden.desc":"\u7EE7\u7EED\u63A2\u7D22\u4EE5\u63ED\u793A","ach.toast.unlocked":"\u6210\u5C31\u89E3\u9501\uFF1A{name}","ach.first-fence.name":"\u521D\u6B21\u76F8\u89C1","ach.first-fence.desc":"\u6E32\u67D3\u4E86\u7B2C\u4E00\u5757 GenUI \u754C\u9762\u3002","ach.fence-5.name":"\u6E10\u5165\u4F73\u5883","ach.fence-5.desc":"\u7D2F\u8BA1\u6E32\u67D3 5 \u4E2A\u754C\u9762\u3002","ach.fence-25.name":"\u754C\u9762\u7F16\u7EC7\u8005","ach.fence-25.desc":"\u7D2F\u8BA1\u6E32\u67D3 25 \u4E2A\u754C\u9762\u3002","ach.fence-50.name":"\u84DD\u56FE\u4E4B\u9B42","ach.fence-50.desc":"\u7D2F\u8BA1\u6E32\u67D3 50 \u4E2A\u754C\u9762\u2014\u2014\u4F60\u662F GenUI \u7684\u8001\u670B\u53CB\u4E86\u3002","ach.first-interaction.name":"\u6309\u94AE\u6309\u5F97\u52A8","ach.first-interaction.desc":"\u89E6\u53D1\u4E86\u4E00\u6B21\u7EC4\u4EF6\u4EA4\u4E92\uFF08\u52A8\u4F5C\u56DE\u4F20\uFF09\u3002","ach.interaction-10.name":"\u5C0F\u5C0F\u64CD\u7EB5\u8005","ach.interaction-10.desc":"\u7D2F\u8BA1\u89E6\u53D1 10 \u6B21\u7EC4\u4EF6\u4EA4\u4E92\u3002","ach.first-panel.name":"\u9489\u5728\u5899\u4E0A","ach.first-panel.desc":"\u7B2C\u4E00\u6B21\u628A\u5185\u5BB9\u9489\u8FDB\u4E86\u4F1A\u8BDD\u9762\u677F\u3002","ach.panel-5.name":"\u9762\u677F\u7BA1\u5BB6","ach.panel-5.desc":"5 \u4E2A\u4F1A\u8BDD\u90FD\u7528\u8FC7\u9762\u677F\u3002","ach.first-chart.name":"\u56FE\u8868\u7231\u597D\u8005","ach.first-chart.desc":"\u6E32\u67D3\u4E86\u7B2C\u4E00\u5F20\u56FE\u8868\uFF08chart/plot/echart\uFF09\u3002","ach.chart-10.name":"\u6570\u636E\u53EF\u89C6\u5316\u4EBA","ach.chart-10.desc":"10 \u4E2A\u754C\u9762\u91CC\u51FA\u73B0\u8FC7\u56FE\u8868\u3002","ach.first-advanced.name":"\u9AD8\u7EA7\u73A9\u5BB6","ach.first-advanced.desc":"\u7528\u4E0A\u4E86 3D/\u56FE\u8868\u5F15\u64CE/\u67B6\u6784\u56FE\u4E4B\u4E00\u3002","ach.template-1.name":"\u6A21\u677F\u5B66\u5458","ach.template-1.desc":"\u4ECE\u6A21\u677F\u4E2D\u5FC3\u8BD5\u7528\u4E86\u4E00\u4E2A\u6A21\u677F\u3002","label.copy":"\u590D\u5236","label.copied":"\u590D\u5236\u6210\u529F","label.copiedDone":"\u5DF2\u590D\u5236","label.copiedShort":"\u2713 \u5DF2\u590D\u5236","label.copiedToClipboard":"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F","label.copyFailed":"\u590D\u5236\u5931\u8D25","label.code":"\u4EE3\u7801","label.wrap":"\u81EA\u52A8\u6362\u884C","label.unwrap":"\u53D6\u6D88\u81EA\u52A8\u6362\u884C","label.collapse":"\u6536\u8D77","label.collapseDiff.aria":"\u6536\u8D77\u5DEE\u5F02","label.expandDiff.aria":"\u5C55\u5F00\u5176\u4F59 {hidden} \u884C\u5DEE\u5F02","label.expandDiff":"\u2026 \u5176\u4F59 {hidden} \u884C","label.diffFiles":"{count} \u4E2A\u6587\u4EF6","label.copyValue":"\u590D\u5236\u503C","label.copyJson":"\u590D\u5236 JSON","label.copyPath":"\u590D\u5236\u5C5E\u6027\u8DEF\u5F84","label.copyPrettyJson":"\u590D\u5236\u683C\u5F0F\u5316 JSON","label.copyCompactJson":"\u590D\u5236\u7D27\u51D1 JSON","label.collapseNode":"\u6536\u8D77 JSON \u8282\u70B9","label.expandNode":"\u5C55\u5F00 JSON \u8282\u70B9","label.copyButtonTitle":"{action}\uFF1B\u53F3\u952E\u67E5\u770B\u590D\u5236\u9009\u9879","block.copyMarkdown":"\u590D\u5236 Markdown","block.copyCsv":"\u590D\u5236 CSV","block.table.expandDetails":"\u5C55\u5F00 {label} \u7684\u660E\u7EC6","block.table.collapseDetails":"\u6536\u8D77 {label} \u7684\u660E\u7EC6","block.table.expandGroup":"\u5C55\u5F00\u5206\u7EC4 {label}","block.table.collapseGroup":"\u6536\u8D77\u5206\u7EC4 {label}","block.total":"\u5408\u8BA1","block.filteredRows":"\u7B5B\u9009\u540E {visible} / {total} \u884C","block.filterMatch":"\u5339\u914D {shown} / {total} \u9879","block.triggered":"\u2713 \u5DF2\u89E6\u53D1","block.triggeredPlain":"\u5DF2\u89E6\u53D1","block.audio":"\u97F3\u9891","block.audioError":"\u97F3\u9891\u65E0\u6CD5\u64AD\u653E","block.video":"\u89C6\u9891","block.videoError":"\u89C6\u9891\u65E0\u6CD5\u64AD\u653E","block.image":"\u56FE\u7247","block.imageError":"\u56FE\u7247\u65E0\u6CD5\u52A0\u8F7D","block.svgLabel":"SVG \u56FE\u5F62","block.svgPreview":"\u9884\u89C8","block.svgSource":"\u6E90\u7801","block.svgError":"SVG \u65E0\u6CD5\u663E\u793A\uFF0C\u5DF2\u964D\u7EA7\u663E\u793A\u6E90\u7801","block.mermaidError":"\u56FE\u8868\u6E32\u67D3\u5931\u8D25\uFF0C\u5DF2\u663E\u793A\u6E90\u7801","block.mermaidLoading":"\u6E32\u67D3\u4E2D\u2026","block.scene3dLoading":"\u52A0\u8F7D 3D \u573A\u666F\u2026","block.scene3dError":"3D \u6E32\u67D3\u5931\u8D25","block.quizCorrect":"\u2713 \u56DE\u7B54\u6B63\u786E\uFF01","block.quizWrong":"\u2717 \u518D\u60F3\u60F3\u770B","block.quizRetry":"\u91CD\u65B0\u4F5C\u7B54","block.selectPlaceholder":"\u8BF7\u9009\u62E9\u2026","block.score":"\u5F97\u5206","block.scoreUngraded":"\uFF08{count} \u9898\u65E0\u7B54\u6848\u672A\u8BA1\u5206\uFF09","block.yourAnswer":"\u4F60\u7684\u7B54\u6848\uFF1A","block.correctAnswer":" \u6B63\u786E\u7B54\u6848\uFF1A","block.selectedCount":"\u5DF2\u9009 {answered}/{total}","block.target":"\u76EE\u6807 {value}%","block.chart.barsAria":"\u6A2A\u5411\u67F1\u72B6\u56FE\uFF0C{count} \u7EC4","block.chart.barsSummary":"\u67F1\u72B6\u56FE\uFF0C{count} \u7EC4\uFF0C\u6700\u5927 {max}","block.chart.lineSeries":"\u6298\u7EBF\u56FE\uFF0C{count} \u6761\u5E8F\u5217\uFF0C\u8303\u56F4 {min} \u5230 {max}","block.chart.linePoints":"\u6298\u7EBF\u56FE\uFF0C{count} \u4E2A\u70B9\uFF0C\u8303\u56F4 {min} \u5230 {max}","block.chart.donutSummary":"\u73AF\u5F62\u56FE\uFF0C{count} \u9879\uFF0C\u5408\u8BA1 {total}","block.chart.node":"\u8282\u70B9","err.boundary.generic":"\u6B64\u754C\u9762","err.boundary.fence":"\u8BE5\u754C\u9762","err.boundary.body":"\u26A0\uFE0F {label}\u6E32\u67D3\u5931\u8D25\uFF08\u5DF2\u9694\u79BB\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u5185\u5BB9\uFF09","err.fieldValidation":"GenUI \u5B57\u6BB5\u9A8C\u8BC1\u5931\u8D25\uFF1A{errors}","err.chartValidation":"chart \u5B57\u6BB5\u9A8C\u8BC1\u5931\u8D25\uFF1A{errors}","err.fenceKeptAsCode":"\u26A0\uFE0F dsh-ui {diagnostic} \u2014\u2014 \u56F4\u680F\u4FDD\u6301\u4E3A\u4EE3\u7801\u5757\uFF1B\u8BF7\u4FEE\u6B63\u540E\u91CD\u53D1\u3002","err.fenceParse":"\u26A0\uFE0F dsh-ui fence JSON \u89E3\u6790\u5931\u8D25{diagnostic} \u2014\u2014 \u56F4\u680F\u4FDD\u6301\u4E3A\u4EE3\u7801\u5757\uFF1B\u8BF7\u8BA9\u6A21\u578B\u68C0\u67E5\u5E76\u4FEE\u590D JSON \u540E\u91CD\u53D1\u3002"};var Xn="en",Si=["en","zh"],a0={en:r0,zh:n0};function Ai(t){if(typeof t!="string"||t==="")return;let e=t.toLowerCase().split(/[-_]/)[0];return Si.find(r=>r===e)}function i0(){if(typeof navigator>"u")return Xn;let t=navigator,e=Array.isArray(t.languages)&&t.languages.length>0?t.languages:[t.language];for(let r of e){let n=Ai(r);if(n!==void 0)return n}return Xn}var _n=i0(),s0=0,ki=new Set;function Ti(){return _n}function Zn(){return s0}function Ni(t){return ki.add(t),()=>{ki.delete(t)}}function Qn(t){let e=Ai(t);if(!(e===void 0||e===_n)){_n=e,s0+=1;for(let r of[...ki])r()}}function dm(t,e){return e===void 0?t:t.replace(/\{(\w+)\}/g,(r,n)=>{let a=e[n];return a===void 0?r:String(a)})}function _(t,e){let r=a0[_n][t]??a0[Xn][t]??t;return dm(r,e)}function Oe(){return(0,o0.useSyncExternalStore)(Ni,Zn,Zn),_}function l0(){return Ti()}var lr=Ss(require("react"),1);var u0=Ss(require("react"),1),c0=u0.default.createElement,d0={play:["m8 4 12 8-12 8V4Z"],pause:["M7 4h3v16H7zM14 4h3v16h-3z"],volume:["M11 4 5 9H2v6h3l6 5V4Z","M15 8a6 6 0 0 1 0 8M18 4a11 11 0 0 1 0 16"],volumeOff:["M11 4 5 9H2v6h3l6 5V4Z","m16 9 6 6m0-6-6 6"],fullscreen:["M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"],minimize:["M3 8h5V3m8 0v5h5M8 21v-5H3m13 5v-5h5"],download:["M12 3v12m-5-5 5 5 5-5M4 17v4h16v-4"],copy:["M9 8h11v13H9z","M15 8V3H4v13h5"],external:["M14 4h6v6M20 4l-9 9","M10 4H4v16h16v-6"],file:["M14 3H5v18h14V8l-5-5Z","M14 3v5h5M8 13h8M8 17h5"],globe:["M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","M3 12h18M12 3c-5 5-5 13 0 18 5-5 5-13 0-18Z"],sparkles:["m12 3 2.4 6.6L21 12l-6.6 2.4L12 21l-2.4-6.6L3 12l6.6-2.4L12 3Z","M20 2v4M18 4h4"],sliders:["M4 7h6m4 0h6M4 17h10m4 0h2","M10 4v6m4 4v6"],layers:["m12 3 9 5-9 5-9-5 9-5Z","m3 12 9 5 9-5M3 16l9 5 9-5"],chart:["M4 3v17h17M8 15v-4m5 4V7m5 8v-6"],gauge:["M5 18a9 9 0 1 1 14 0","m12 13 4-5M8 18h8"],cpu:["M8 3v3m4-3v3m4-3v3M8 18v3m4-3v3m4-3v3M3 8h3m-3 4h3m-3 4h3m12-8h3m-3 4h3m-3 4h3","M6 6h12v12H6zM9 9h6v6H9z"],database:["M4 6c0-4 16-4 16 0s-16 4-16 0Z","M4 6v12c0 4 16 4 16 0V6M4 12c0 4 16 4 16 0"],info:["M12 11v6M12 7h.01","M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],check:["m5 12 4 4L19 6"],warning:["m12 3 10 18H2L12 3Z","M12 9v5m0 3h.01"],arrow:["M4 12h16m-6-6 6 6-6 6"],target:["M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","M17 12a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM12 11v2"]};function m0({name:t="info",className:e=""}){return c0("svg",{className:`dgui-icon ${e}`,width:18,height:18,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.65,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},(d0[t]??d0.info).map((r,n)=>c0("path",{key:n,d:r})))}var p0=Object.freeze({editorial:{description:"\u5F00\u653E\u6B63\u6587 \xB7 \u6742\u5FD7\u5C42\u7EA7 \xB7 \u7EC6\u7EBF\u5206\u7EC4",grammar:"\u7F16\u8F91\u5F0F\u9605\u8BFB",composition:"\u5148\u7ED9\u4E00\u4E2A\u660E\u786E\u7ED3\u8BBA\uFF0C\u518D\u7528\u5F00\u653E\u6B63\u6587\u3001\u5DE6\u53F3\u5BF9\u9F50\u6BD4\u8F83\u548C\u7EC6\u7EBF\u6BB5\u843D\u5C55\u5F00\u3002\u7528 column \u7EC4\u7EC7\u6587\u7AE0\uFF0Ccard \u5728\u6B64\u98CE\u683C\u4E2D\u662F\u7AE0\u8282\uFF0C\u4E0D\u662F\u5C01\u95ED\u9762\u677F\uFF1B\u4E0D\u8981\u7ED9\u6BCF\u6BB5\u5957\u6846\u3002\u6307\u6807\u5D4C\u5728\u89E3\u91CA\u65C1\uFF0C\u6D41\u7A0B\u50CF\u6587\u4E2D\u7684\u7F16\u53F7\u63D0\u7EB2\u3002",typography:"\u6807\u9898\u6709\u886C\u7EBF\u9605\u8BFB\u611F\uFF0C\u6B63\u6587\u884C\u8DDD\u8212\u5C55\uFF1B\u6807\u9898\u3001\u6B63\u6587\u3001\u6CE8\u91CA\u81F3\u5C11\u4E09\u4E2A\u5C42\u7EA7\uFF0C\u5F3A\u8C03\u4F9D\u8D56\u5B57\u91CD\u548C\u4F4D\u7F6E\u3002",surfaces:"\u900F\u660E\u6B63\u6587\u3001\u7EC6\u5206\u9694\u7EBF\u3001\u4F4E\u9634\u5F71\u6216\u65E0\u9634\u5F71\uFF1B\u4FDD\u6301\u7ED3\u6784\u6027\u7559\u767D\uFF0C\u4E0D\u52A0\u5927\u9762\u79EF\u6E10\u53D8\u3002",controls:"\u8868\u5355\u50CF\u6587\u7AE0\u4E2D\u7684\u8BBE\u7F6E\u884C\uFF0C\u6807\u7B7E\u4E0E\u5F53\u524D\u503C\u5DE6\u53F3\u5BF9\u9F50\uFF1B\u6309\u94AE\u7D27\u51D1\uFF0C\u4EE3\u7801\u50CF\u6709\u8FB9\u6CE8\u7684\u6458\u5F55\u3002",avoid:"\u907F\u514D\u5927\u5F69\u8272\u5361\u7247\u3001\u6BCF\u4E2A\u6570\u5B57\u4E00\u4E2A\u76D2\u5B50\u3001\u7C97\u91CD\u8FB9\u6846\u548C\u88C5\u9970\u6027\u80CC\u666F\u3002",native:{title:27,weight:650,gap:24,radius:12,metric:32,feedback:210,gain:.25}},soft:{description:"\u7B14\u8BB0\u8272\u5757 \xB7 \u67D4\u5706\u5206\u7EC4 \xB7 \u8212\u7F13\u8282\u594F",grammar:"\u67D4\u548C\u5F69\u8272\u7B14\u8BB0",composition:"\u50CF\u6E05\u6670\u53CB\u597D\u7684\u7B14\u8BB0\uFF1A\u628A\u76F8\u5173\u5185\u5BB9\u653E\u5728\u67D4\u5706\u8272\u5757\u91CC\uFF0C\u5148\u63D0\u793A\u4E3B\u9898\uFF0C\u518D\u7ED9\u4E24\u4E09\u9879\u8981\u70B9\u3002\u7AE0\u8282\u6807\u9898\u53EF\u4EE5\u662F\u5C0F\u6807\u7B7E\uFF1B\u6BD4\u8F83\u9879\u5982\u5E76\u6392\u4FBF\u7B7E\uFF0C\u6D41\u7A0B\u50CF\u4E00\u4E32\u6709\u95F4\u8DDD\u7684\u7B14\u8BB0\u3002",typography:"\u5706\u6DA6\u6807\u9898\u548C\u6E29\u548C\u5B57\u91CD\uFF1B\u6B63\u6587\u6E05\u695A\uFF0C\u6570\u503C\u4E0E\u5355\u4F4D\u8D34\u8FD1\uFF0C\u6B21\u8981\u8BF4\u660E\u653E\u5728\u7EC4\u5185\u3002",surfaces:"\u4F4E\u9971\u548C\u5F69\u8272\u4FBF\u7B7E\u3001\u4E0D\u540C\u7AE0\u8282\u8F7B\u5FAE\u4EA4\u66FF\u8272\u5757\u3001\u4E0D\u5BF9\u79F0\u7684\u5927\u5706\u89D2\uFF1B\u4F7F\u7528\u5B9E\u8272\u5E95\u6216\u5C11\u91CF\u67D4\u548C\u6E10\u53D8\u3002",controls:"\u63A7\u4EF6\u5185\u5D4C\u5728\u67D4\u8272\u5206\u7EC4\uFF0C\u9009\u62E9\u5668\u50CF\u6807\u7B7E\uFF0C\u64CD\u4F5C\u6709\u67D4\u548C\u56DE\u5F39\uFF1B\u907F\u514D\u6BCF\u884C\u90FD\u53D8\u6210\u8FB9\u6846\u8868\u5355\u3002",avoid:"\u907F\u514D\u5DE5\u7A0B\u7F51\u683C\u3001\u91CD\u9ED1\u6D77\u62A5\u3001\u900F\u660E\u73BB\u7483\u3001\u6CDB\u767D\u4F4E\u5BF9\u6BD4\u5EA6\u6587\u5B57\u3002",native:{title:25,weight:700,gap:20,radius:28,metric:36,feedback:390,gain:.7}},technical:{description:"\u5DE5\u7A0B\u7F51\u683C \xB7 \u6570\u636E\u6761\u5E26 \xB7 \u7F16\u53F7\u8FDE\u63A5",grammar:"\u6280\u672F\u8BF4\u660E\u4E0E\u5DE5\u7A0B\u56FE",composition:"\u50CF\u5DE5\u7A0B\u8BF4\u660E\uFF1A\u6309\u8F93\u5165\u2192\u673A\u5236\u2192\u8F93\u51FA\u7EC4\u7EC7\uFF1B\u4F18\u5148\u5BF9\u9F50\u7684\u6570\u636E\u6761\u5E26\u3001\u7F16\u53F7\u6D41\u7A0B\u3001\u8868\u683C\u548C\u6709\u610F\u4E49\u7684\u8FDE\u63A5\u7EBF\u3002\u6307\u6807\u653E\u6210\u7D27\u51D1\u6D4B\u91CF\u5E26\u800C\u975E\u4E00\u6392\u88C5\u9970\u5361\uFF1B\u6BD4\u8F83\u56F4\u7ED5\u76F8\u540C\u7EF4\u5EA6\u5BF9\u9F50\u3002",typography:"\u4E2D\u6587\u6B63\u6587\u4FDD\u6301\u6B63\u5E38\u5B57\u53F7\uFF0C\u6570\u503C/\u5355\u4F4D/\u5E8F\u53F7\u7528\u7B49\u5BBD\u5B57\u4F53\u4E0E tabular-nums\uFF1B\u6807\u9898\u7B80\u77ED\u7CBE\u786E\uFF0C\u660E\u786E\u57FA\u51C6\u3001\u5355\u4F4D\u548C\u5047\u8BBE\u3002",surfaces:"\u7EC6\u7EBF\u7F51\u683C\u3001\u89C4\u5219\u7684\u5C0F\u5706\u89D2\u3001\u6E05\u6670\u8FB9\u754C\u548C\u8868\u5934\u3001\u65E0\u6D6E\u52A8\u6295\u5F71\u3002\u7F51\u683C\u4EC5\u5728\u56FE\u89E3\u80CC\u666F\u4F7F\u7528\uFF0C\u6587\u5B57\u533A\u57DF\u4FDD\u6301\u5E72\u51C0\u3002",controls:"\u6807\u7B7E\u548C\u8F93\u5165\u4E25\u683C\u5BF9\u9F50\uFF0C\u53C2\u6570\u533A\u50CF\u4EEA\u8868\u8BBE\u7F6E\u884C\uFF1B\u6309\u94AE\u548C\u5206\u6BB5\u9009\u9879\u91C7\u7528\u89C4\u5219\u77E9\u5F62\uFF0C\u4FDD\u7559\u952E\u76D8\u53CA\u5168\u5C40\u53CD\u9988\u3002",avoid:"\u907F\u514D\u80F6\u56CA\u5806\u53E0\u3001\u5DE8\u5927\u6D77\u62A5\u6570\u5B57\u3001\u5F69\u8272\u4FBF\u7B7E\u3001\u88C5\u9970\u7BAD\u5934\u3001\u9760\u5C0F\u5B57\u786C\u585E\u4FE1\u606F\u3002",native:{title:22,weight:750,gap:16,radius:10,metric:28,feedback:180,gain:.3}},expressive:{description:"\u6D77\u62A5\u5C42\u7EA7 \xB7 \u975E\u5BF9\u79F0\u91CD\u70B9 \xB7 \u9192\u76EE\u6570\u5B57",grammar:"\u6D3B\u529B\u5C55\u793A\u4E0E\u91CD\u70B9\u6D77\u62A5",composition:"\u5148\u9009\u4E00\u4E2A\u771F\u6B63\u7684\u89C6\u89C9\u4E2D\u5FC3\uFF1A\u5927\u6807\u9898\u6216\u5173\u952E\u6570\u5B57\uFF0C\u518D\u7528\u4E0D\u5BF9\u79F0\u5206\u680F\u5C55\u5F00\u89E3\u91CA\u3002\u4E3B\u8981\u7ED3\u8BBA\u5360\u66F4\u5927\u7A7A\u95F4\uFF0C\u6B21\u8981\u6BD4\u8F83\u9000\u540E\uFF1B\u6D41\u7A0B\u7528\u9192\u76EE\u7684\u5E8F\u53F7\u4E0E\u77ED\u53E5\u3002\u4E0D\u8981\u628A\u6BCF\u4E00\u9879\u90FD\u505A\u6210\u540C\u7B49\u5927\u5C0F\u5361\u7247\u3002",typography:"\u77ED\u800C\u6709\u529B\u7684\u91CD\u6807\u9898\u3001\u5927\u6570\u5B57\u3001\u7D27\u51D1\u6807\u9898\u884C\u8DDD\uFF0C\u6B63\u6587\u4ECD\u6613\u8BFB\u3002\u6700\u591A\u4E00\u4E2A\u4E3B\u8981\u5F3A\u8C03\u533A\uFF0C\u5176\u4F59\u7559\u767D\u548C\u7EC6\u7EBF\u8F85\u52A9\u3002",surfaces:"\u5B9E\u8272\u8272\u5757\u3001\u7C97\u7EC6\u660E\u786E\u7684\u8FB9\u7EBF\u3001\u5C40\u90E8\u9AD8\u5BF9\u6BD4\u5F3A\u8C03\uFF1B\u53EF\u7528\u6A59/\u73CA\u745A/\u6696\u9EC4\uFF0C\u4F46\u4E0D\u80FD\u6574\u9875\u4E89\u62A2\u6CE8\u610F\u529B\u3002",controls:"\u4E3B\u8981\u64CD\u4F5C\u9192\u76EE\u3001\u6B21\u8981\u64CD\u4F5C\u8F7B\u91CF\uFF1B\u8868\u5355\u548C\u6570\u636E\u4FDD\u6301\u5BF9\u9F50\uFF0C\u56DE\u5F39\u6BD4\u9605\u8BFB\u98CE\u683C\u660E\u663E\u4F46\u4E0D\u7A7A\u95F2\u5FAA\u73AF\u3002",avoid:"\u907F\u514D\u516D\u5F20\u7B49\u5927\u7684\u6307\u6807\u5361\u3001\u6EE1\u5C4F\u6E10\u53D8\u3001\u5168\u5C4F\u5927\u7559\u767D\u3001\u65E0\u610F\u4E49\u6570\u5B57\u88C5\u9970\u3002",native:{title:34,weight:850,gap:22,radius:20,metric:50,feedback:480,gain:1.1}},prismframe:{description:"\u5E94\u7528\u6A21\u5757 \xB7 \u5B9E\u8272\u63A7\u4EF6 \xB7 \u504F\u79FB\u5E95\u9762",grammar:"\u660E\u4EAE\u6241\u5E73\u7684\u8F7B\u91CF\u5E94\u7528",composition:"\u50CF\u53EF\u76F4\u63A5\u4F7F\u7528\u7684\u8F7B\u91CF\u5E94\u7528\uFF1A\u4EFB\u52A1\u6807\u9898\u3001\u8F93\u5165\u6A21\u5757\u3001\u7ED3\u679C\u6A21\u5757\u3001\u89E3\u91CA\u533A\u804C\u8D23\u6E05\u695A\u3002\u6A21\u5757\u4F7F\u7528\u7A33\u5B9A\u7F51\u683C\uFF0C\u64CD\u4F5C\u9760\u8FD1\u5BF9\u5E94\u7ED3\u679C\uFF1B\u6BD4\u8F83\u3001\u6D41\u7A0B\u548C\u6570\u636E\u770B\u677F\u5404\u81EA\u91C7\u7528\u5408\u9002\u7ED3\u6784\uFF0C\u4E0D\u56FA\u5B9A\u6210\u540C\u4E00\u5957\u5361\u7247\u3002",typography:"\u5706\u6DA6\u6E05\u6670\u7684\u7CFB\u7EDF\u5B57\u4F53\u3001\u660E\u786E\u6A21\u5757\u6807\u9898\u3001\u4E2D\u7B49\u5927\u6570\u5B57\uFF1B\u6570\u5B57\u7ED1\u5B9A\u540D\u79F0\u548C\u5355\u4F4D\uFF0C\u56FE\u5F62\u627F\u62C5\u5173\u7CFB\u8BF4\u660E\u3002",surfaces:"\u6D45\u5F69\u5E95\u3001\u767D\u8272\u5B9E\u5FC3\u6A21\u5757\u3001\u7EC6\u5F69\u8272\u8FB9\u7EBF\u548C\u6241\u5E73\u504F\u79FB\u5E95\u9762\uFF1B\u5C40\u90E8\u591A\u8272\u7528\u6765\u533A\u5206\u804C\u8D23\uFF0C\u907F\u514D\u6BCF\u5757\u540C\u8272\u540C\u5F62\u3002",controls:"\u6574\u9F50\u4E14\u6709\u9762\u79EF\u7684\u5B9E\u8272\u8868\u5355\u884C\u3001\u6E05\u6670\u72B6\u6001\u6807\u7B7E\uFF0C\u4E3B\u8981\u64CD\u4F5C\u6709\u8F7B\u5FAE\u504F\u79FB\u5E95\u9762\uFF1B\u4E0D\u662F\u78E8\u7802\u73BB\u7483\u3002",avoid:"\u907F\u514D\u6587\u6863\u5F0F\u6EE1\u5C4F\u7EC6\u7EBF\u3001\u6D77\u62A5\u5F0F\u8D85\u5927\u5B57\u3001\u900F\u660E\u5C42\u53E0\u3001\u89C6\u9891\u9875\u7801\u548C\u5B57\u5E55\u3001\u91CD\u590D\u6807\u9898\u3002",native:{title:26,weight:780,gap:20,radius:24,metric:36,feedback:320,gain:.65}},aurora:{description:"\u4EA7\u54C1\u5C42\u7EA7 \xB7 \u6696\u767D\u66F2\u9762 \xB7 \u5C40\u90E8\u6E10\u5F69",grammar:"\u67D4\u5149\u6E10\u5F69\u7684\u7CBE\u81F4\u4EA7\u54C1\u754C\u9762",composition:"\u50CF\u7CBE\u81F4\u7684\u4EA7\u54C1\u9762\u677F\uFF1A\u6696\u767D\u5F00\u653E\u80CC\u666F\u4E0A\u5B89\u6392\u5C11\u91CF\u5B9E\u5FC3\u8868\u9762\uFF0C\u6807\u9898\u7B80\u6D01\u3001\u6307\u6807\u7A81\u51FA\u3001\u63A7\u4EF6\u987A\u624B\u3002\u7528\u5BBD\u7A84\u548C\u758F\u5BC6\u533A\u5206\u4E3B\u8981\u7ED3\u679C\u4E0E\u6B21\u8981\u8BF4\u660E\uFF1B\u6309\u94AE\u3001\u8868\u5355\u3001\u8868\u683C\u3001\u4EE3\u7801\u4E0E\u6587\u5B57\u8981\u5C5E\u4E8E\u540C\u4E00\u5957\u8BED\u8A00\u3002",typography:"\u8FD1\u9ED1\u6807\u9898\u3001\u6E05\u6670\u7684\u5B57\u91CD\u5DEE\u3001\u5927\u800C\u5229\u843D\u7684\u6570\u5B57\u3001\u67D4\u548C\u6B21\u8981\u8BF4\u660E\uFF1B\u4E0D\u628A\u6587\u5B57\u90FD\u67D3\u6210\u7D2B\u8272\u3002",surfaces:"\u6696\u767D\u5B9E\u8272\u300124..30px \u5706\u6DA6\u8868\u9762\u3001\u67D4\u548C\u6295\u5F71\u3001\u5C40\u90E8\u7D2B\u84DD\u9752\u6E10\u5F69\u5F3A\u8C03\uFF1B\u4E0D\u628A\u6574\u9875\u94FA\u6210\u7D2B\u9762\u677F\u3002",controls:"\u5706\u6DA6\u5185\u5D4C\u8F93\u5165\u3001\u80F6\u56CA\u9009\u62E9\u5668\u3001\u6DF1\u8272\u4E3B\u64CD\u4F5C\u4E0E\u6E10\u5F69\u56FE\u6807\u5706\u70B9\uFF1B\u771F\u5B9E\u64CD\u4F5C\u89E6\u53D1\u6E10\u53D8\u6269\u6563\u548C\u5F39\u6027\u53CD\u9988\u3002",avoid:"\u7981\u6B62\u73BB\u7483/backdrop-filter\u3001\u6CDB\u767D\u4F4E\u5BF9\u6BD4\u5EA6\u3001\u4EC5\u52A0\u4E00\u4E2A\u6F14\u793A\u6309\u94AE\u5C31\u7B97\u98CE\u683C\u3001\u7A7A\u95F2\u6F02\u6D6E\u3002",native:{title:28,weight:780,gap:24,radius:28,metric:42,feedback:460,gain:1}}});var mm=[".dgui-card",".dgui-metric",".dgui-control",".dgui-chart",".dgui-table-wrap",".dgui-steps li",".dgui-step-dot",".dgui-copy",".dgui-header",".dgui-heading-icon",".dgui-badge",".dgui-tag",".dgui-details",".dgui-progress",".dgui-progress progress",".dgui-button",".dgui-secondary",".dgui-toggle",".dgui-control output",".dgui-control input:not([type=range]):not([type=checkbox])",".dgui-control select",".dgui-root textarea",".dgui-root pre",".dgui-plot",".dgui-menu-trigger",".dgui-menu-content",".dgui-menu-content button",".dgui-canvas-loading",".dgui-canvas-spinner",".dgui-canvas-placeholder",".dgui-canvas-issue",".dgui-canvas-stage iframe",".dgui-version-preview",".dgui-segmented",".dgui-segment-indicator",".dgui-segmented button",".dgui-action-orb",".dgui-elastic",".dgui-stepper",".dgui-stepper>button",".dgui-card>.dgui-section-title",".dgui-row:has(>.dgui-metric)",".motion-copy-block",".motion-copy-button","[data-motion-component=card]","[data-motion-component=stat]"],pm=mm.map(t=>t.replace(/^\.dgui-root /,"")).join(",");function f0(t){return t.replace(/border-radius\s*:\s*([^;}]+)/g,(e,r)=>e+";--du-component-radius:"+r.replaceAll("var(--du-radius-inner","var(--du-owned-radius-inner").replaceAll("var(--du-radius","var(--du-owned-radius"))}var tn=".dgui-root[data-preset]:not(.dgui-style-preview)",fm=`
|
|
262
262
|
${tn} :is(${pm}){border-radius:var(--du-component-radius,0px)!important;corner-shape:round}
|
|
263
263
|
${tn} .dgui-toggle::before{border-radius:var(--du-component-radius,50%)!important;corner-shape:round}
|
|
264
264
|
`,Mf=`
|
|
@@ -281,9 +281,9 @@ ${tn}:is([data-preset=reading],[data-preset=minimal]){--du-shell-radius:0px}
|
|
|
281
281
|
`);function ea({text:t,children:e,title:r,lang:n,code:a=!1,wrap:i=!1,disabled:s=!1,style:o,nodeId:l,copyLabel:m,copiedLabel:u}){let[p,b]=(0,lr.useState)("idle"),y=(0,lr.useRef)();(0,lr.useEffect)(()=>()=>clearTimeout(y.current),[]);let k=p==="done"?u??"\u5DF2\u590D\u5236":p==="error"?"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u5185\u5BB9":m??(a?"\u590D\u5236\u4EE3\u7801":"\u590D\u5236\u6587\u672C");async function T(){clearTimeout(y.current),b("copying");let C=await hm(t);b(C?"done":"error"),y.current=setTimeout(()=>b("idle"),2e3)}return St("section",{className:"motion-copy-block","data-copy-status":p,"data-code":a||void 0,"data-ui-node":l,style:o},St("style",null,gm),St("div",{className:"motion-copy-bar"},a&&St("span",{"aria-hidden":!0},"\u3008/\u3009"),St("span",{className:"motion-copy-title"},r??(a?n||"\u4EE3\u7801":"\u6587\u672C")),St("button",{className:"motion-copy-button",type:"button",title:k,"aria-label":k,"data-status":p,disabled:s||p==="copying",onClick:T},St(m0,{name:p==="done"?"check":p==="error"?"warning":"copy"})),St("span",{className:"motion-copy-sr",role:"status","aria-live":"polite"},p==="done"?"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F":p==="error"?k:"")),a?St("pre",{className:"motion-copy-code","data-wrap":i||void 0},St("code",{"data-language":n},t)):St("div",{className:"motion-copy-body"},e??t))}var bt=require("react/jsx-runtime"),h0={overflow:"auto",padding:12,borderRadius:8,background:"var(--dsw-alias-bg-layer-2)",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:12,lineHeight:1.5,whiteSpace:"pre-wrap"};function g0({code:t,lang:e,title:r,wrap:n,copyLabel:a,copiedLabel:i}){return(0,bt.jsx)(ea,{text:t,lang:e,title:r,wrap:n,code:!0,copyLabel:a,copiedLabel:i})}function b0({diffs:t}){return(0,bt.jsx)("div",{children:t.map((e,r)=>(0,bt.jsxs)("section",{children:[(0,bt.jsx)("strong",{children:e.path}),(0,bt.jsx)("pre",{style:h0,children:(e.oldText??"").split(`
|
|
282
282
|
`).map(n=>`- ${n}`).concat((e.newText??"").split(`
|
|
283
283
|
`).map(n=>`+ ${n}`)).join(`
|
|
284
|
-
`)})]},`${e.path}:${r}`))})}function y0({data:t,label:e,copyable:r,labels:n}){let[a,i]=(0,rn.useState)(!0),[s,o]=(0,rn.useState)(!1),l=JSON.stringify(t,null,2),m=async()=>{await nn(l)&&(o(!0),window.setTimeout(()=>o(!1),1200))};return(0,bt.jsxs)("section",{children:[(0,bt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,bt.jsxs)("button",{type:"button","aria-expanded":a,onClick:()=>i(u=>!u),children:[a?_("label.collapse"):_("label.expandNode")," ",e??"JSON"]}),r&&(0,bt.jsx)("button",{type:"button",onClick:()=>void m(),children:s?n?.copied??_("label.copied"):n?.copyJson??_("label.copy")})]}),a&&(0,bt.jsx)("pre",{style:h0,children:l})]})}async function nn(t){if(typeof navigator.clipboard?.writeText=="function")try{return await navigator.clipboard.writeText(t),!0}catch{return!1}let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e);try{return e.select(),document.execCommand("copy")}catch{return!1}finally{e.remove()}}function v0(t){}var x0=(0,rn.createContext)(void 0);var bm=(0,ta.createContext)(void 0),Mi=x0??bm;function k0(){return(0,ta.useContext)(Mi)}var S0="dsh.genui.interaction";function Ci(){return{order:[],blocks:{}}}function A0(){try{let t=localStorage.getItem(S0);if(t===null)return Ci();let e=JSON.parse(t);return!Array.isArray(e.order)||typeof e.blocks!="object"||e.blocks===null?Ci():{order:e.order.filter(r=>typeof r=="string"),blocks:e.blocks}}catch{return Ci()}}function ym(t){try{localStorage.setItem(S0,JSON.stringify(t))}catch{}}function T0(t){return t===""?null:A0().blocks[t]??null}function N0(t,e){if(t==="")return;let r=A0(),n=r.order.filter(i=>i!==t);n.unshift(t);let a={...r.blocks,[t]:e};for(;n.length>200;){let i=n.pop();i!==void 0&&delete a[i]}ym({order:n,blocks:a})}function na(){return{fences:0,panels:0,interactions:0,templates:0,charts:0,advanced:0}}var ra=t=>e=>e.fences>=t;function vm(t){return _(`ach.${t}.name`)}function xm(t){return _(`ach.${t}.desc`)}function yt(t,e,r,n=!1){return{id:t,rarity:e,check:r,...n?{hidden:!0}:{},get name(){return vm(t)},get description(){return xm(t)}}}var M0=[yt("first-fence","common",ra(1)),yt("fence-5","common",ra(5)),yt("fence-25","rare",ra(25)),yt("fence-50","legendary",ra(50),!0),yt("first-interaction","common",t=>t.interactions>=1),yt("interaction-10","rare",t=>t.interactions>=10),yt("first-panel","common",t=>t.panels>=1),yt("panel-5","rare",t=>t.panels>=5),yt("first-chart","common",t=>t.charts>=1),yt("chart-10","rare",t=>t.charts>=10),yt("first-advanced","rare",t=>t.advanced>=1),yt("template-1","common",t=>t.templates>=1)];function C0(t){let e=0,r=0,n=a=>{if(Array.isArray(a))for(let i of a){if(typeof i!="object"||i===null)continue;let s=i,o=s.type;if((o==="chart"||o==="plot"||o==="echart")&&(e+=1),(o==="scene3d"||o==="mermaid"||o==="diagram")&&(r+=1),Array.isArray(s.items)&&n(s.items),Array.isArray(s.tabs))for(let l of s.tabs)n(l.items)}};return n(t.items),{charts:e,advanced:r}}function z0(t,e){return M0.filter(r=>e[r.id]===void 0&&r.check(t))}var R0="dsh.genui.achievements",G0="dsh.genui.achievements.seen",wm=200,qt=Am(),km=new Set,Sm=[];function Am(){try{let t=localStorage.getItem(R0);if(t===null)return{state:na(),unlocked:{}};let e=JSON.parse(t);return{state:{...na(),...e.state??{}},unlocked:typeof e.unlocked=="object"&&e.unlocked!==null?e.unlocked:{}}}catch{return{state:na(),unlocked:{}}}}function Tm(){try{localStorage.setItem(R0,JSON.stringify(qt))}catch{}}function Nm(){try{let t=localStorage.getItem(G0);if(t===null)return[];let e=JSON.parse(t);return Array.isArray(e)?e.filter(r=>typeof r=="string"):[]}catch{return[]}}function Mm(t){try{localStorage.setItem(G0,JSON.stringify(t.slice(0,wm)))}catch{}}function Cm(){for(let t of km)t()}function $0(t){qt.state={...qt.state,...t};let e=z0(qt.state,qt.unlocked);for(let r of e)qt.unlocked[r.id]=Date.now();e.length>0&&Sm.push(...e),Tm(),Cm()}function zm(t){let e=JSON.stringify(t),r=3735928559,n=1103547991;for(let a=0;a<e.length;a++){let i=e.charCodeAt(a);r=Math.imul(r^i,2654435761),n=Math.imul(n^i,1597334677)}return`${(r>>>0).toString(36)}-${(n>>>0).toString(36)}`}function E0(t){let e=zm(t),r=Nm();if(r.includes(e))return;Mm([e,...r]);let n=C0(t);$0({fences:qt.state.fences+1,charts:qt.state.charts+(n.charts>0?1:0),advanced:qt.state.advanced+(n.advanced>0?1:0)})}function D0(){$0({interactions:qt.state.interactions+1})}var md=require("react");var At=require("react"),zi=(0,At.createContext)({path:"root"});function I0({id:t,answers:e,children:r}){let n=(0,At.useContext)(zi);return(0,At.createElement)(zi.Provider,{value:{path:n.path+"/"+t,answers:e??n.answers}},r)}function st(t,e,r=()=>!0,n=!0){let a=(0,At.useContext)(zi),i="__motion_widget_"+a.path+":"+t,[s,o]=(0,At.useState)(()=>{let u=n?a.answers?.fields[i]:void 0;if(u!==void 0)try{let p=JSON.parse(u);if(r(p))return p}catch{}return typeof e=="function"?e():e}),l=(0,At.useRef)(s);l.current=s;let m=(u,p)=>{let b=typeof u=="function"?u(l.current):u;if(!r(b))return;l.current=b,o(b);let y=JSON.stringify(b);n&&p&&y!==void 0&&y.length<=4096&&y!==a.answers?.fields[i]&&a.answers?.setField(i,y)};return[s,u=>m(u,!0),u=>m(u,!1)]}var ha=require("react");var A={maxDepth:8,maxNodes:200,maxString:2e3,maxCode:12e3,maxMermaid:8e3,maxGridCols:12,maxTabs:12,maxAccordionItems:24,maxListItems:50,maxOptions:50,maxTableRows:50,maxTableCols:12,maxChartPoints:60,maxPlotSeries:8,maxPlotParams:6,maxMeshes:5,maxQuizOptions:8,maxSteps:24,maxTimelineItems:24,maxBreadcrumbItems:12,maxKeyValuePairs:24,maxTreeDepth:6,maxDiagramNodes:9,maxDiagramEdges:12,maxDiagramZones:3,maxDiagramFocal:2,maxDiagramLabel:14,maxEChartOptionDepth:10,maxEChartArrayLen:500,maxEChartOptionNodes:2e3};var Tt=require("react");var Ze=require("react/jsx-runtime"),L0=["var(--dsw-static-deepseek-400)","var(--dsw-static-deepseek-450)","var(--dsw-static-blue-450)","var(--dsw-static-green-400)","var(--dsw-static-amber-400)","var(--dsw-static-red-400)","var(--dsw-static-deepseek-300)","var(--dsw-static-neutral-bluish-400)"];function B0(t){let e=0;for(let r=0;r<t.length;r++)e=e*31+t.charCodeAt(r)>>>0;return L0[e%L0.length]}function q0({className:t,disabled:e,onClick:r,children:n}){let a=Oe(),[i,s]=(0,Tt.useState)(!1),o=(0,Tt.useRef)(null);return(0,Tt.useEffect)(()=>()=>{o.current!==null&&clearTimeout(o.current)},[]),(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsxs)("button",{type:"button",className:t,disabled:e,onClick:r===void 0?void 0:()=>{r(),o.current!==null&&clearTimeout(o.current),s(!0),o.current=setTimeout(()=>s(!1),1400)},children:[n,i&&(0,Ze.jsx)("span",{className:g.btnSent,"aria-hidden":!0,children:a("block.triggered")})]}),(0,Ze.jsx)("span",{className:g.visuallyHidden,role:"status",children:i?a("block.triggeredPlain"):""})]})}var O0=(0,Tt.memo)(function({node:e}){let r=Oe(),[n,a]=(0,Tt.useState)(!1);return(0,Ze.jsxs)("figure",{className:g.media,children:[e.alt!==void 0&&(0,Ze.jsx)("figcaption",{className:g.mediaLabel,children:B(e.alt)}),n?(0,Ze.jsx)("div",{className:g.mediaError,role:"alert",children:r("block.audioError")}):(0,Ze.jsx)("audio",{className:g.mediaPlayer,src:e.src,"aria-label":e.alt??r("block.audio"),controls:!0,preload:"metadata",loop:e.loop===!0,onError:()=>a(!0)})]})}),F0=(0,Tt.memo)(function({node:e}){let r=Oe(),[n,a]=(0,Tt.useState)(!1);return(0,Ze.jsxs)("figure",{className:g.media,children:[e.alt!==void 0&&(0,Ze.jsx)("figcaption",{className:g.mediaLabel,children:B(e.alt)}),n?(0,Ze.jsx)("div",{className:g.mediaError,role:"alert",children:r("block.videoError")}):(0,Ze.jsx)("video",{className:`${g.mediaPlayer} ${g.videoPlayer}`,src:e.src,poster:e.poster,"aria-label":e.alt??r("block.video"),controls:!0,preload:"metadata",playsInline:!0,loop:e.loop===!0,muted:e.muted===!0,style:e.aspectRatio===void 0?void 0:{aspectRatio:e.aspectRatio.replace(":"," / ")},onError:()=>a(!0)})]})});var $e=require("react");function Gi(t){let e=t.columns,r=Array.isArray(e)&&e.length>0,n=r&&Array.isArray(e)&&typeof e[0]=="object"&&e[0]!==null?e.map(Dm):e,a=Rm(n),i=t.rows!==void 0?t.rows:t.data;if(Array.isArray(i)&&i.length>0&&typeof i[0]=="object"&&i[0]!==null&&!Array.isArray(i[0])){let l=Array.isArray(t.columns)&&t.columns.length>0&&typeof t.columns[0]=="object"&&t.columns[0]!==null?t.columns.map($m).filter(m=>m!==void 0):Object.keys(i[0]);i=i.map(m=>l.map(u=>Em(m[u])))}let s=null;if(!r&&Array.isArray(i)&&i.length>0&&Array.isArray(i[0])){let l=Ri(i),m=l.length===0?null:Gm(l);m!==null&&Ri(m.rows).length===m.rows.length&&(s=m,a=m.columns.map(u=>u.slice(0,128)))}if(a.length===0&&!Array.isArray(t.columns))return null;let o=Ri(s===null?i:s.rows);return Array.isArray(i)?{columns:a.slice(0,A.maxTableCols),rows:o}:null}function Kt(t){return Gi(t)?.rows??[]}function $i(t,e){return!Array.isArray(t)||!Array.isArray(e)||e[0]!=="group"?!1:String(t[0]??"").trim()!==""&&t.slice(1).every(r=>String(r??"").trim()==="")}function Nt(t,e){let r=Kt(t);return e>=0&&e<r.length&&!$i(r[e],t.types)}function Rm(t){if(!Array.isArray(t))return[];let e=[];for(let r of t){if(e.length>=A.maxTableCols)break;if(typeof r=="string")e.push(r.slice(0,128));else if(r!==null&&typeof r=="object"){let n=r,a=typeof n.label=="string"?n.label:typeof n.value=="string"?n.value:typeof n.title=="string"?n.title:JSON.stringify(r);e.push(a.slice(0,128))}}return e}function Ri(t){if(!Array.isArray(t))return[];let e=[];for(let r of t){if(e.length>=A.maxTableRows)break;if(!Array.isArray(r))continue;let n=[];for(let a of r){if(n.length>=A.maxTableCols)break;typeof a=="string"?n.push(a.slice(0,256)):typeof a=="number"&&Number.isFinite(a)&&n.push(a)}n.length>0&&e.push(n)}return e}function Gm(t){let e=t[0];if(e===void 0||e.length===0)return null;let r=t.slice(1);if(r.length===0){let n=e.map(a=>String(a).trim());return n.every(a=>a!=="")?{columns:n,rows:[]}:null}return r.every(n=>n.length===e.length)?{columns:e.map(n=>String(n).trim()),rows:r}:{columns:Array.from({length:e.length},(n,a)=>`\u5217${a+1}`),rows:t}}function $m(t){if(t===null||typeof t!="object"||Array.isArray(t))return;let e=t;for(let r of["key","dataIndex","title","label"])if(typeof e[r]=="string"&&e[r]!=="")return e[r]}function Em(t){return typeof t=="string"||typeof t=="number"&&Number.isFinite(t)?t:t==null?"":JSON.stringify(t)}function Dm(t){if(t===null||typeof t!="object"||Array.isArray(t))return String(t);let e=t;for(let r of["title","label","key","dataIndex"])if(typeof e[r]=="string"&&e[r]!=="")return e[r];return JSON.stringify(t)}var N=require("react/jsx-runtime"),aa=["var(--dsw-static-deepseek-400)","var(--dsw-static-green-400)","var(--dsw-static-amber-400)","var(--dsw-static-red-400)","var(--dsw-static-blue-450)","var(--dsw-static-deepseek-450)","var(--dsw-static-neutral-bluish-400)","var(--dsw-static-deepseek-300)"],ia=(t,e,r,n)=>r??(n!==void 0&&n.length>0?n[t%n.length]:e>1?aa[t%aa.length]:void 0);function Gr(t){if(typeof t=="number")return Number.isFinite(t)?t:NaN;if(typeof t!="string")return NaN;let e=t.trim();if(e==="")return NaN;e=e.replace(/^[¥$€£]/,""),e.endsWith("%")&&(e=e.slice(0,-1));let n=1;if(e.endsWith("\u4E07"))n=1e4,e=e.slice(0,-1);else if(e.endsWith("\u4EBF"))n=1e8,e=e.slice(0,-1);else if(/[kmb]$/i.test(e)){let i=e.slice(-1).toLowerCase();n=i==="k"?1e3:i==="m"?1e6:1e9,e=e.slice(0,-1)}e=e.replace(/[,,\s]/g,"");let a=Number(e);return Number.isFinite(a)?a*n:NaN}function Im(t,e){return Array.from({length:e},(r,n)=>{let a=!1;for(let i of t){let s=i[n];if(!(s==null||s==="")){if(!Number.isFinite(Gr(s)))return!1;a=!0}}return a})}function Lm(t){return typeof t=="string"&&/[\n\r]/.test(t)}function Bm(t){return typeof t!="string"?!1:/(^|\n)[ \t]/.test(t)||t.includes("```")}function Ei(t){if(Lm(t))return Bm(t)?g.tdCode:g.tdMultiline}function qm(t){if(typeof t!="string")return null;let e=t.trim();return!/^[+][\s]*[\d.]/.test(e)&&!/^[-−][\s]*[\d.]/.test(e)?null:e.startsWith("+")?"up":"down"}function Om({cell:t}){let e=String(t).split(/[\s,;]+/).map(Number).filter(Number.isFinite);if(e.length<2)return(0,N.jsx)(N.Fragment,{children:B(String(t),!1)});let r=88,n=22,a=2,i=Math.min(...e),o=Math.max(...e)-i||1,l=(r-a*2)/(e.length-1),m=e.map((y,k)=>[a+k*l,n-a-(y-i)/o*(n-a*2)]),u=m.map(([y,k])=>`${y.toFixed(1)},${k.toFixed(1)}`).join(" "),p=m[m.length-1],b=`M ${a},${n-a} L ${u.split(" ").join(" L ")} L ${p[0].toFixed(1)},${n-a} Z`;return(0,N.jsxs)("svg",{className:g.cellSpark,viewBox:`0 0 ${r} ${n}`,preserveAspectRatio:"none","aria-hidden":"true",children:[(0,N.jsx)("path",{d:b,fill:"var(--dsl-g-accent)",opacity:"0.14"}),(0,N.jsx)("polyline",{points:u,fill:"none",stroke:"var(--dsl-g-accent)",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),(0,N.jsx)("path",{d:`M ${p[0].toFixed(1)} ${p[1].toFixed(1)} L ${p[0].toFixed(1)} ${p[1].toFixed(1)}`,stroke:"var(--dsl-g-accent)",strokeWidth:4,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",fill:"none"})]})}function Fm({cell:t}){let e=Gr(t),r=Number.isFinite(e)?Math.max(0,Math.min(100,e)):0,n=11,a=2*Math.PI*n;return(0,N.jsxs)("span",{className:g.cellRing,children:[(0,N.jsxs)("svg",{width:28,height:28,viewBox:"0 0 28 28","aria-hidden":"true",children:[(0,N.jsx)("circle",{cx:14,cy:14,r:n,fill:"none",strokeWidth:4,className:g.ringTrack}),(0,N.jsx)("circle",{cx:14,cy:14,r:n,fill:"none",strokeWidth:4,strokeLinecap:"round",className:g.ringFill,strokeDasharray:`${r/100*a} ${a}`,transform:"rotate(-90 14 14)"})]}),(0,N.jsx)("span",{className:g.cellRingText,children:B(String(t),!1)})]})}function Pm(t,e){let r=s=>String(s??"").replace(/\|/g,"\\|").replace(/\n/g," "),n=`| ${t.map(r).join(" | ")} |`,a=`| ${t.map(()=>"---").join(" | ")} |`,i=e.map(s=>`| ${t.map((o,l)=>r(s[l])).join(" | ")} |`);return[n,a,...i].join(`
|
|
284
|
+
`)})]},`${e.path}:${r}`))})}function y0({data:t,label:e,copyable:r,labels:n}){let[a,i]=(0,rn.useState)(!0),[s,o]=(0,rn.useState)(!1),l=JSON.stringify(t,null,2),m=async()=>{await nn(l)&&(o(!0),window.setTimeout(()=>o(!1),1200))};return(0,bt.jsxs)("section",{children:[(0,bt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,bt.jsxs)("button",{type:"button","aria-expanded":a,onClick:()=>i(u=>!u),children:[a?_("label.collapse"):_("label.expandNode")," ",e??"JSON"]}),r&&(0,bt.jsx)("button",{type:"button",onClick:()=>void m(),children:s?n?.copied??_("label.copied"):n?.copyJson??_("label.copy")})]}),a&&(0,bt.jsx)("pre",{style:h0,children:l})]})}async function nn(t){if(typeof navigator.clipboard?.writeText=="function")try{return await navigator.clipboard.writeText(t),!0}catch{return!1}let e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e);try{return e.select(),document.execCommand("copy")}catch{return!1}finally{e.remove()}}function v0(t){}var x0=(0,rn.createContext)(void 0);var bm=(0,ta.createContext)(void 0),Mi=x0??bm;function k0(){return(0,ta.useContext)(Mi)}var S0="dsh.genui.interaction";function Ci(){return{order:[],blocks:{}}}function A0(){try{let t=localStorage.getItem(S0);if(t===null)return Ci();let e=JSON.parse(t);return!Array.isArray(e.order)||typeof e.blocks!="object"||e.blocks===null?Ci():{order:e.order.filter(r=>typeof r=="string"),blocks:e.blocks}}catch{return Ci()}}function ym(t){try{localStorage.setItem(S0,JSON.stringify(t))}catch{}}function T0(t){return t===""?null:A0().blocks[t]??null}function N0(t,e){if(t==="")return;let r=A0(),n=r.order.filter(i=>i!==t);n.unshift(t);let a={...r.blocks,[t]:e};for(;n.length>200;){let i=n.pop();i!==void 0&&delete a[i]}ym({order:n,blocks:a})}function na(){return{fences:0,panels:0,interactions:0,templates:0,charts:0,advanced:0}}var ra=t=>e=>e.fences>=t;function vm(t){return _(`ach.${t}.name`)}function xm(t){return _(`ach.${t}.desc`)}function yt(t,e,r,n=!1){return{id:t,rarity:e,check:r,...n?{hidden:!0}:{},get name(){return vm(t)},get description(){return xm(t)}}}var M0=[yt("first-fence","common",ra(1)),yt("fence-5","common",ra(5)),yt("fence-25","rare",ra(25)),yt("fence-50","legendary",ra(50),!0),yt("first-interaction","common",t=>t.interactions>=1),yt("interaction-10","rare",t=>t.interactions>=10),yt("first-panel","common",t=>t.panels>=1),yt("panel-5","rare",t=>t.panels>=5),yt("first-chart","common",t=>t.charts>=1),yt("chart-10","rare",t=>t.charts>=10),yt("first-advanced","rare",t=>t.advanced>=1),yt("template-1","common",t=>t.templates>=1)];function C0(t){let e=0,r=0,n=a=>{if(Array.isArray(a))for(let i of a){if(typeof i!="object"||i===null)continue;let s=i,o=s.type;if((o==="chart"||o==="plot"||o==="echart")&&(e+=1),(o==="scene3d"||o==="mermaid"||o==="diagram")&&(r+=1),Array.isArray(s.items)&&n(s.items),Array.isArray(s.tabs))for(let l of s.tabs)n(l.items)}};return n(t.items),{charts:e,advanced:r}}function z0(t,e){return M0.filter(r=>e[r.id]===void 0&&r.check(t))}var R0="dsh.genui.achievements",G0="dsh.genui.achievements.seen",wm=200,qt=Am(),km=new Set,Sm=[];function Am(){try{let t=localStorage.getItem(R0);if(t===null)return{state:na(),unlocked:{}};let e=JSON.parse(t);return{state:{...na(),...e.state??{}},unlocked:typeof e.unlocked=="object"&&e.unlocked!==null?e.unlocked:{}}}catch{return{state:na(),unlocked:{}}}}function Tm(){try{localStorage.setItem(R0,JSON.stringify(qt))}catch{}}function Nm(){try{let t=localStorage.getItem(G0);if(t===null)return[];let e=JSON.parse(t);return Array.isArray(e)?e.filter(r=>typeof r=="string"):[]}catch{return[]}}function Mm(t){try{localStorage.setItem(G0,JSON.stringify(t.slice(0,wm)))}catch{}}function Cm(){for(let t of km)t()}function $0(t){qt.state={...qt.state,...t};let e=z0(qt.state,qt.unlocked);for(let r of e)qt.unlocked[r.id]=Date.now();e.length>0&&Sm.push(...e),Tm(),Cm()}function zm(t){let e=JSON.stringify(t),r=3735928559,n=1103547991;for(let a=0;a<e.length;a++){let i=e.charCodeAt(a);r=Math.imul(r^i,2654435761),n=Math.imul(n^i,1597334677)}return`${(r>>>0).toString(36)}-${(n>>>0).toString(36)}`}function E0(t){let e=zm(t),r=Nm();if(r.includes(e))return;Mm([e,...r]);let n=C0(t);$0({fences:qt.state.fences+1,charts:qt.state.charts+(n.charts>0?1:0),advanced:qt.state.advanced+(n.advanced>0?1:0)})}function D0(){$0({interactions:qt.state.interactions+1})}var mc=require("react");var At=require("react"),zi=(0,At.createContext)({path:"root"});function I0({id:t,answers:e,children:r}){let n=(0,At.useContext)(zi);return(0,At.createElement)(zi.Provider,{value:{path:n.path+"/"+t,answers:e??n.answers}},r)}function st(t,e,r=()=>!0,n=!0){let a=(0,At.useContext)(zi),i="__motion_widget_"+a.path+":"+t,[s,o]=(0,At.useState)(()=>{let u=n?a.answers?.fields[i]:void 0;if(u!==void 0)try{let p=JSON.parse(u);if(r(p))return p}catch{}return typeof e=="function"?e():e}),l=(0,At.useRef)(s);l.current=s;let m=(u,p)=>{let b=typeof u=="function"?u(l.current):u;if(!r(b))return;l.current=b,o(b);let y=JSON.stringify(b);n&&p&&y!==void 0&&y.length<=4096&&y!==a.answers?.fields[i]&&a.answers?.setField(i,y)};return[s,u=>m(u,!0),u=>m(u,!1)]}var ha=require("react");var A={maxDepth:8,maxNodes:200,maxString:2e3,maxCode:12e3,maxMermaid:8e3,maxGridCols:12,maxTabs:12,maxAccordionItems:24,maxListItems:50,maxOptions:50,maxTableRows:50,maxTableCols:12,maxChartPoints:60,maxPlotSeries:8,maxPlotParams:6,maxMeshes:5,maxQuizOptions:8,maxSteps:24,maxTimelineItems:24,maxBreadcrumbItems:12,maxKeyValuePairs:24,maxTreeDepth:6,maxDiagramNodes:9,maxDiagramEdges:12,maxDiagramZones:3,maxDiagramFocal:2,maxDiagramLabel:14,maxEChartOptionDepth:10,maxEChartArrayLen:500,maxEChartOptionNodes:2e3};var Tt=require("react");var Ze=require("react/jsx-runtime"),L0=["var(--dsw-static-deepseek-400)","var(--dsw-static-deepseek-450)","var(--dsw-static-blue-450)","var(--dsw-static-green-400)","var(--dsw-static-amber-400)","var(--dsw-static-red-400)","var(--dsw-static-deepseek-300)","var(--dsw-static-neutral-bluish-400)"];function B0(t){let e=0;for(let r=0;r<t.length;r++)e=e*31+t.charCodeAt(r)>>>0;return L0[e%L0.length]}function q0({className:t,disabled:e,onClick:r,children:n}){let a=Oe(),[i,s]=(0,Tt.useState)(!1),o=(0,Tt.useRef)(null);return(0,Tt.useEffect)(()=>()=>{o.current!==null&&clearTimeout(o.current)},[]),(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsxs)("button",{type:"button",className:t,disabled:e,onClick:r===void 0?void 0:()=>{r(),o.current!==null&&clearTimeout(o.current),s(!0),o.current=setTimeout(()=>s(!1),1400)},children:[n,i&&(0,Ze.jsx)("span",{className:g.btnSent,"aria-hidden":!0,children:a("block.triggered")})]}),(0,Ze.jsx)("span",{className:g.visuallyHidden,role:"status",children:i?a("block.triggeredPlain"):""})]})}var O0=(0,Tt.memo)(function({node:e}){let r=Oe(),[n,a]=(0,Tt.useState)(!1);return(0,Ze.jsxs)("figure",{className:g.media,children:[e.alt!==void 0&&(0,Ze.jsx)("figcaption",{className:g.mediaLabel,children:B(e.alt)}),n?(0,Ze.jsx)("div",{className:g.mediaError,role:"alert",children:r("block.audioError")}):(0,Ze.jsx)("audio",{className:g.mediaPlayer,src:e.src,"aria-label":e.alt??r("block.audio"),controls:!0,preload:"metadata",loop:e.loop===!0,onError:()=>a(!0)})]})}),F0=(0,Tt.memo)(function({node:e}){let r=Oe(),[n,a]=(0,Tt.useState)(!1);return(0,Ze.jsxs)("figure",{className:g.media,children:[e.alt!==void 0&&(0,Ze.jsx)("figcaption",{className:g.mediaLabel,children:B(e.alt)}),n?(0,Ze.jsx)("div",{className:g.mediaError,role:"alert",children:r("block.videoError")}):(0,Ze.jsx)("video",{className:`${g.mediaPlayer} ${g.videoPlayer}`,src:e.src,poster:e.poster,"aria-label":e.alt??r("block.video"),controls:!0,preload:"metadata",playsInline:!0,loop:e.loop===!0,muted:e.muted===!0,style:e.aspectRatio===void 0?void 0:{aspectRatio:e.aspectRatio.replace(":"," / ")},onError:()=>a(!0)})]})});var $e=require("react");function Gi(t){let e=t.columns,r=Array.isArray(e)&&e.length>0,n=r&&Array.isArray(e)&&typeof e[0]=="object"&&e[0]!==null?e.map(Dm):e,a=Rm(n),i=t.rows!==void 0?t.rows:t.data;if(Array.isArray(i)&&i.length>0&&typeof i[0]=="object"&&i[0]!==null&&!Array.isArray(i[0])){let l=Array.isArray(t.columns)&&t.columns.length>0&&typeof t.columns[0]=="object"&&t.columns[0]!==null?t.columns.map($m).filter(m=>m!==void 0):Object.keys(i[0]);i=i.map(m=>l.map(u=>Em(m[u])))}let s=null;if(!r&&Array.isArray(i)&&i.length>0&&Array.isArray(i[0])){let l=Ri(i),m=l.length===0?null:Gm(l);m!==null&&Ri(m.rows).length===m.rows.length&&(s=m,a=m.columns.map(u=>u.slice(0,128)))}if(a.length===0&&!Array.isArray(t.columns))return null;let o=Ri(s===null?i:s.rows);return Array.isArray(i)?{columns:a.slice(0,A.maxTableCols),rows:o}:null}function Kt(t){return Gi(t)?.rows??[]}function $i(t,e){return!Array.isArray(t)||!Array.isArray(e)||e[0]!=="group"?!1:String(t[0]??"").trim()!==""&&t.slice(1).every(r=>String(r??"").trim()==="")}function Nt(t,e){let r=Kt(t);return e>=0&&e<r.length&&!$i(r[e],t.types)}function Rm(t){if(!Array.isArray(t))return[];let e=[];for(let r of t){if(e.length>=A.maxTableCols)break;if(typeof r=="string")e.push(r.slice(0,128));else if(r!==null&&typeof r=="object"){let n=r,a=typeof n.label=="string"?n.label:typeof n.value=="string"?n.value:typeof n.title=="string"?n.title:JSON.stringify(r);e.push(a.slice(0,128))}}return e}function Ri(t){if(!Array.isArray(t))return[];let e=[];for(let r of t){if(e.length>=A.maxTableRows)break;if(!Array.isArray(r))continue;let n=[];for(let a of r){if(n.length>=A.maxTableCols)break;typeof a=="string"?n.push(a.slice(0,256)):typeof a=="number"&&Number.isFinite(a)&&n.push(a)}n.length>0&&e.push(n)}return e}function Gm(t){let e=t[0];if(e===void 0||e.length===0)return null;let r=t.slice(1);if(r.length===0){let n=e.map(a=>String(a).trim());return n.every(a=>a!=="")?{columns:n,rows:[]}:null}return r.every(n=>n.length===e.length)?{columns:e.map(n=>String(n).trim()),rows:r}:{columns:Array.from({length:e.length},(n,a)=>`\u5217${a+1}`),rows:t}}function $m(t){if(t===null||typeof t!="object"||Array.isArray(t))return;let e=t;for(let r of["key","dataIndex","title","label"])if(typeof e[r]=="string"&&e[r]!=="")return e[r]}function Em(t){return typeof t=="string"||typeof t=="number"&&Number.isFinite(t)?t:t==null?"":JSON.stringify(t)}function Dm(t){if(t===null||typeof t!="object"||Array.isArray(t))return String(t);let e=t;for(let r of["title","label","key","dataIndex"])if(typeof e[r]=="string"&&e[r]!=="")return e[r];return JSON.stringify(t)}var N=require("react/jsx-runtime"),aa=["var(--dsw-static-deepseek-400)","var(--dsw-static-green-400)","var(--dsw-static-amber-400)","var(--dsw-static-red-400)","var(--dsw-static-blue-450)","var(--dsw-static-deepseek-450)","var(--dsw-static-neutral-bluish-400)","var(--dsw-static-deepseek-300)"],ia=(t,e,r,n)=>r??(n!==void 0&&n.length>0?n[t%n.length]:e>1?aa[t%aa.length]:void 0);function Gr(t){if(typeof t=="number")return Number.isFinite(t)?t:NaN;if(typeof t!="string")return NaN;let e=t.trim();if(e==="")return NaN;e=e.replace(/^[¥$€£]/,""),e.endsWith("%")&&(e=e.slice(0,-1));let n=1;if(e.endsWith("\u4E07"))n=1e4,e=e.slice(0,-1);else if(e.endsWith("\u4EBF"))n=1e8,e=e.slice(0,-1);else if(/[kmb]$/i.test(e)){let i=e.slice(-1).toLowerCase();n=i==="k"?1e3:i==="m"?1e6:1e9,e=e.slice(0,-1)}e=e.replace(/[,,\s]/g,"");let a=Number(e);return Number.isFinite(a)?a*n:NaN}function Im(t,e){return Array.from({length:e},(r,n)=>{let a=!1;for(let i of t){let s=i[n];if(!(s==null||s==="")){if(!Number.isFinite(Gr(s)))return!1;a=!0}}return a})}function Lm(t){return typeof t=="string"&&/[\n\r]/.test(t)}function Bm(t){return typeof t!="string"?!1:/(^|\n)[ \t]/.test(t)||t.includes("```")}function Ei(t){if(Lm(t))return Bm(t)?g.tdCode:g.tdMultiline}function qm(t){if(typeof t!="string")return null;let e=t.trim();return!/^[+][\s]*[\d.]/.test(e)&&!/^[-−][\s]*[\d.]/.test(e)?null:e.startsWith("+")?"up":"down"}function Om({cell:t}){let e=String(t).split(/[\s,;]+/).map(Number).filter(Number.isFinite);if(e.length<2)return(0,N.jsx)(N.Fragment,{children:B(String(t),!1)});let r=88,n=22,a=2,i=Math.min(...e),o=Math.max(...e)-i||1,l=(r-a*2)/(e.length-1),m=e.map((y,k)=>[a+k*l,n-a-(y-i)/o*(n-a*2)]),u=m.map(([y,k])=>`${y.toFixed(1)},${k.toFixed(1)}`).join(" "),p=m[m.length-1],b=`M ${a},${n-a} L ${u.split(" ").join(" L ")} L ${p[0].toFixed(1)},${n-a} Z`;return(0,N.jsxs)("svg",{className:g.cellSpark,viewBox:`0 0 ${r} ${n}`,preserveAspectRatio:"none","aria-hidden":"true",children:[(0,N.jsx)("path",{d:b,fill:"var(--dsl-g-accent)",opacity:"0.14"}),(0,N.jsx)("polyline",{points:u,fill:"none",stroke:"var(--dsl-g-accent)",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),(0,N.jsx)("path",{d:`M ${p[0].toFixed(1)} ${p[1].toFixed(1)} L ${p[0].toFixed(1)} ${p[1].toFixed(1)}`,stroke:"var(--dsl-g-accent)",strokeWidth:4,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",fill:"none"})]})}function Fm({cell:t}){let e=Gr(t),r=Number.isFinite(e)?Math.max(0,Math.min(100,e)):0,n=11,a=2*Math.PI*n;return(0,N.jsxs)("span",{className:g.cellRing,children:[(0,N.jsxs)("svg",{width:28,height:28,viewBox:"0 0 28 28","aria-hidden":"true",children:[(0,N.jsx)("circle",{cx:14,cy:14,r:n,fill:"none",strokeWidth:4,className:g.ringTrack}),(0,N.jsx)("circle",{cx:14,cy:14,r:n,fill:"none",strokeWidth:4,strokeLinecap:"round",className:g.ringFill,strokeDasharray:`${r/100*a} ${a}`,transform:"rotate(-90 14 14)"})]}),(0,N.jsx)("span",{className:g.cellRingText,children:B(String(t),!1)})]})}function Pm(t,e){let r=s=>String(s??"").replace(/\|/g,"\\|").replace(/\n/g," "),n=`| ${t.map(r).join(" | ")} |`,a=`| ${t.map(()=>"---").join(" | ")} |`,i=e.map(s=>`| ${t.map((o,l)=>r(s[l])).join(" | ")} |`);return[n,a,...i].join(`
|
|
285
285
|
`)}function Hm(t){let e=r=>{let n=String(r??"");return/[",\n]/.test(n)?`"${n.replace(/"/g,'""')}"`:n};return t.map(r=>r.map(e).join(",")).join(`
|
|
286
|
-
`)}function jm({columns:t,rows:e}){Oe();let[r,n]=(0,$e.useState)(null),a=i=>{let s=i==="md"?Pm(t,e):Hm(e);nn(s).then(o=>{o&&(n(i),window.setTimeout(()=>n(null),1200))})};return(0,N.jsxs)("div",{className:g.tableTools,children:[(0,N.jsx)("button",{type:"button",className:g.tableTool,onClick:()=>a("md"),children:r==="md"?_("label.copiedDone"):_("block.copyMarkdown")}),(0,N.jsx)("button",{type:"button",className:g.tableTool,onClick:()=>a("csv"),children:r==="csv"?_("label.copiedDone"):_("block.copyCsv")})]})}function Um({cell:t}){let e=Gr(t),r=Number.isFinite(e)?Math.max(0,Math.min(100,e)):0;return(0,N.jsxs)("span",{className:g.cellBar,children:[(0,N.jsx)("span",{className:g.cellBarFill,style:{width:`${r}%`}}),(0,N.jsx)("span",{className:g.cellBarText,children:B(String(t),!1)})]})}var P0=(0,$e.memo)(function({node:e,renderDetail:r,filterValue:n,sortValue:a}){Oe();let i=e.columns.slice(0,A.maxTableCols),s=Kt(e),o=e.types??[],[l,m]=st("table-sort",null,M=>M===null||!!M&&typeof M=="object"&&Number.isInteger(M.col)&&M.col>=0&&M.col<e.columns.length&&[1,-1].includes(M.dir)),[u,p]=(0,$e.useState)(()=>new Set),[b,y]=(0,$e.useState)(()=>new Set),k=(M,j,H,ee)=>{let ie=Gr(M[H]),Se=Gr(j[H]);if(Number.isFinite(ie)&&Number.isFinite(Se)&&ie!==Se)return(ie-Se)*ee;if(Number.isFinite(ie)!==Number.isFinite(Se))return Number.isFinite(ie)?-ee:ee;let Fe=String(M[H]??""),Me=String(j[H]??"");return(Fe<Me?-1:Fe>Me?1:0)*ee},T=M=>$i(M,o),C=n?.trim().toLowerCase(),R=(C===void 0||C===""?s.map((M,j)=>({row:M,index:j})):s.map((M,j)=>({row:M,index:j})).filter(({row:M})=>(e.filterColumn===void 0?M:[M[e.filterColumn]]).some(H=>String(H??"").toLowerCase().includes(C)))).map(M=>M.row),G=s.length-R.length,L=[];R.forEach((M,j)=>{if(T(M)){L.push({header:{row:M,index:j},children:[]});return}(L.length===0||L[L.length-1].header===null)&&L.length===0&&L.push({header:null,children:[]}),L[L.length-1].children.push({row:M,index:j})});let X=a===void 0?-1:i.indexOf(a),J=l!==null?l:X>=0?{col:X,dir:1}:null,ae=L.map(M=>({header:M.header,children:J===null?M.children:[...M.children].sort((j,H)=>k(j.row,H.row,J.col,J.dir))})),Y=Im(R,i.length),V=M=>{p(j=>{let H=new Set(j);return H.has(M)?H.delete(M):H.add(M),H})},Z=M=>{y(j=>{let H=new Set(j);return H.has(M)?H.delete(M):H.add(M),H})},Q=M=>{m(j=>j!==null&&j.col===M?j.dir===1?{col:M,dir:-1}:null:{col:M,dir:1})},te=i.map((M,j)=>{if(!Y[j])return null;let H=0;for(let ee of R){if(T(ee))continue;let ie=Gr(ee[j]);Number.isFinite(ie)&&(H+=ie)}return H}),fe=e.total===!0&&te.some(M=>M!==null),he=M=>Number.isInteger(M)?M.toLocaleString("en-US"):String(Math.round(M*100)/100),ye=(M,j,H)=>{let ee=o[j],ie=Ei(M),Se=ee==="delta"?String(M).trim().startsWith("-")?"down":"up":qm(M);return(0,N.jsx)("td",{className:[Y[j]||ee==="num"?g.tdNum:void 0,ie].filter(Fe=>Fe!==void 0).join(" ")||void 0,children:ee==="badge"?(0,N.jsx)("span",{className:g.cellBadge,children:B(String(M),"file")}):ee==="bar"?(0,N.jsx)(Um,{cell:M}):ee==="spark"?(0,N.jsx)(Om,{cell:M}):ee==="ring"?(0,N.jsx)(Fm,{cell:M}):ee==="index"?(0,N.jsx)("span",{className:g.cellIndex,children:H+1}):Se===null?B(String(M),"file"):(0,N.jsx)("span",{className:`${g.tdDelta} ${Se==="up"?g.tdDeltaUp:g.tdDeltaDown}`,children:B(String(M),"file")})},j)};return(0,N.jsxs)("div",{className:g.tableWrap,children:[e.export===!0&&(0,N.jsx)(jm,{columns:i,rows:s}),(0,N.jsxs)("table",{className:g.table,children:[(0,N.jsx)("thead",{children:(0,N.jsx)("tr",{children:i.map((M,j)=>(0,N.jsx)("th",{className:[Y[j]?g.thNum:void 0,Ei(M)].filter(H=>H!==void 0).join(" ")||void 0,"aria-sort":l!==null&&l.col===j?l.dir===1?"ascending":"descending":"none",children:(0,N.jsxs)("button",{type:"button",className:g.thSort,onClick:()=>Q(j),children:[B(M,!1),l!==null&&l.col===j&&(0,N.jsx)("span",{className:g.thSortMark,"aria-hidden":!0,children:l.dir===1?" \u25B2":" \u25BC"})]})},j))})}),(0,N.jsx)("tbody",{children:ae.map((M,j)=>{let H=M.header?.index??j,ee=u.has(H);return(0,N.jsxs)($e.Fragment,{children:[M.header!==null&&(0,N.jsx)("tr",{className:g.groupRow,children:(0,N.jsxs)("td",{colSpan:i.length,className:Ei(String(M.header.row[0])),children:[(0,N.jsx)("button",{type:"button",className:g.groupToggle,"aria-label":_(ee?"block.table.expandGroup":"block.table.collapseGroup",{label:String(M.header.row[0]).replace(/\[([^\]]+)\]\([^)]+\)/g,"$1")}),"aria-expanded":!ee,onClick:()=>V(H),children:(0,N.jsx)("span",{className:g.groupChevron,"aria-hidden":!0,children:ee?"\u25B8":"\u25BE"})}),(0,N.jsxs)("span",{className:g.groupLabel,onClick:ie=>{ie.target instanceof Element&&ie.target.closest("button")||V(H)},children:[B(String(M.header.row[0]),"file"),(0,N.jsx)("span",{className:g.groupCount,children:M.children.length})]})]})}),!ee&&M.children.map(ie=>{let Se=e.details?.[ie.index]??null,Fe=b.has(ie.index);return(0,N.jsxs)($e.Fragment,{children:[(0,N.jsx)("tr",{className:M.header===null?void 0:g.groupChild,children:ie.row.slice(0,i.length).map((Me,ct)=>ct===0&&Se!==null?(0,N.jsxs)("td",{className:g.detailCell,children:[(0,N.jsx)("button",{type:"button",className:g.detailToggle,"aria-label":_(Fe?"block.table.collapseDetails":"block.table.expandDetails",{label:String(Me).replace(/\[([^\]]+)\]\([^)]+\)/g,"$1")}),"aria-expanded":Fe,onClick:()=>Z(ie.index),children:(0,N.jsx)("span",{className:g.detailChevron,"data-open":Fe,"aria-hidden":!0,children:"\u25B8"})}),(0,N.jsx)("span",{className:g.detailContent,onClick:pr=>{pr.target instanceof Element&&pr.target.closest("button")||Z(ie.index)},children:B(String(Me),"file")})]},ct):ye(Me,ct,ie.index))}),Fe&&Se!==null&&(0,N.jsx)("tr",{className:g.detailRow,children:(0,N.jsx)("td",{colSpan:i.length,children:(0,N.jsx)("div",{className:g.detailBody,children:r===void 0?null:r(Se)})})})]},ie.index)})]},M.header===null?`s-${j}`:`g-${M.header.index}`)})}),G>0&&(0,N.jsx)("tfoot",{children:(0,N.jsx)("tr",{className:g.filterRow,children:(0,N.jsx)("td",{colSpan:i.length,children:_("block.filteredRows",{visible:R.length,total:s.length})})})}),fe&&(0,N.jsx)("tfoot",{children:(0,N.jsx)("tr",{children:i.map((M,j)=>(0,N.jsx)("td",{className:Y[j]?g.tdNum:void 0,children:j===0?_("block.total"):te[j]===null?"":he(te[j])},j))})})]})]})});function Di(){let[t,e]=(0,$e.useState)(null),r=(0,$e.useCallback)((a,i)=>{let s=a.currentTarget,o=s.closest("[data-genui-chart], [data-genui-line], [data-genui-donut]");if(o===null)return;let l=o.getBoundingClientRect(),m=s.getBoundingClientRect();e({x:m.left-l.left+m.width/2,y:m.top-l.top,rows:i})},[]),n=(0,$e.useCallback)(()=>e(null),[]);return{tip:t,show:r,hide:n}}function sa({tip:t}){return t===null?null:(0,N.jsx)("div",{className:g.chartTip,style:{left:`${t.x}px`,top:`${t.y}px`},role:"tooltip",children:t.rows.map(([e,r],n)=>(0,N.jsxs)("span",{className:g.chartTipRow,children:[(0,N.jsx)("span",{children:B(e)}),(0,N.jsx)("span",{className:g.chartTipValue,children:B(String(r))})]},`${e}-${n}`))})}function Vm(){let t=(0,$e.useRef)(null),[e,r]=(0,$e.useState)(560);return(0,$e.useLayoutEffect)(()=>{let n=t.current;if(n===null)return;let a=()=>{let s=n.clientWidth;s>0&&r(s)};if(a(),typeof ResizeObserver>"u")return;let i=new ResizeObserver(a);return i.observe(n),()=>i.disconnect()},[]),[t,e]}function H0(t,e,r=4){let n=Math.min(t,0),a=Math.max(e,0);if(n===a)return[0,1];let i=(a-n)/Math.max(r,1),s=Math.pow(10,Math.floor(Math.log10(Math.max(i,Number.MIN_VALUE)))),o=i/s,l=(o<=1?1:o<=2?2:o<=5?5:10)*s,m=Math.floor(n/l)*l,u=Math.ceil(a/l)*l,p=[];for(let b=m;b<=u+l/2;b+=l)p.push(Math.abs(b)<l/1e6?0:b);return p}function an(t){let e=Math.abs(t);return e>=1e9?`${(t/1e9).toFixed(e%1e9===0?0:1)}b`:e>=1e6?`${(t/1e6).toFixed(e%1e6===0?0:1)}m`:e>=1e3?`${(t/1e3).toFixed(e%1e3===0?0:1)}k`:Number.isInteger(t)?String(t):String(Math.round(t*100)/100)}function Wm(t){if(!Number.isFinite(t))return 0;let[e,r]=String(t).toLowerCase().split("e"),n=e.split(".")[1]?.length??0,a=r===void 0?0:Number(r);return Math.max(n-a,0)}function Ot(t,e){if(!Number.isFinite(t)||Math.abs(t)>=1e21||e>100)return String(t);let r=t.toFixed(e);return r.includes(".")?r.replace(/\.?0+$/,""):r}function Ym({ticks:t,lo:e,span:r}){return(0,N.jsx)("div",{className:g.chartYAxis,style:{height:160},children:t.map(n=>(0,N.jsx)("span",{className:g.chartYTick,style:{bottom:`${(n-e)/r*100}%`},children:an(n)},n))})}var j0=(0,$e.memo)(function({chart:e,filterValue:r}){let n=(0,$e.useMemo)(()=>Km(e,r),[e,r]),a=n.kind??"bars";return a==="donut"?(0,N.jsx)(_m,{chart:n}):a==="line"?(0,N.jsx)(Xm,{chart:n}):(0,N.jsx)(Jm,{chart:n})});function Km(t,e){let r=e?.trim().toLowerCase();if(r===void 0||r==="")return t;let n=s=>s.label.toLowerCase().includes(r),a=t.data.filter(n);if(t.series===void 0)return a.length===t.data.length?t:{...t,data:a};let i=t.series.map(s=>({...s,data:s.data.filter(n)}));return{...t,data:a,series:i}}var Jm=(0,$e.memo)(function({chart:e}){Oe();let{tip:r,show:n,hide:a}=Di(),i=e.series!==void 0?e.series.slice(0,A.maxPlotSeries):void 0,s=i!==void 0&&i.length>0,o=e.data.slice(0,A.maxChartPoints),l=s?i[0].data.map(Y=>Y.label):o.map(Y=>Y.label),m=s?i.map(Y=>Y.data.map(V=>Number(V.value)||0)):[o.map(Y=>Number(Y.value)||0)],u=m.map((Y,V)=>ia(V,m.length,s?i[V]?.color:void 0,e.palette)??"var(--dsw-alias-state-business-primary, #4f8ef7)"),p=m.flat(),b=l.length<=12,y=e.stacked===!0&&s,k=l.map((Y,V)=>m.reduce((Z,Q)=>Z+Math.max(0,Q[V]??0),0)),T=l.map((Y,V)=>Math.max(...m.map(Z=>Wm(Z[V]??0)),0)),C=Math.max(...y?k:p,0);if(e.horizontal===!0){let Y=Math.max(C,1),V=s?(0,N.jsx)("div",{className:g.chartLegend,children:i.map((Z,Q)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:u[Q]}}),B(Z.label)]},Q))}):null;return(0,N.jsxs)("div",{className:g.chart,"data-genui-chart":"bars",role:"img","aria-label":_("block.chart.barsAria",{count:l.length}),onMouseLeave:a,children:[(0,N.jsx)("div",{className:g.hbars,children:l.map((Z,Q)=>(0,N.jsxs)("div",{className:g.hbarRow,children:[(0,N.jsx)("span",{className:g.hbarLabel,title:Z,children:B(Z)}),(0,N.jsx)("div",{className:g.hbarTracks,children:y?(0,N.jsx)("div",{className:g.hbarTrack,title:`${Z}: ${Ot(k[Q]??0,T[Q]??0)}`,children:m.map((te,fe)=>{let he=Math.max(0,te[Q]??0),ye=k[Q]??0,M=ye===0?0:he/ye*Math.max(0,Math.min(100,ye/Y*100));return(0,N.jsx)("div",{className:g.hbarSeg,style:{width:`${M}%`,background:u[fe]},onMouseEnter:j=>n(j,[[i[fe].label,String(he)],[_("block.total"),Ot(ye,T[Q]??0)]]),onMouseMove:j=>n(j,[[i[fe].label,String(he)],[_("block.total"),Ot(ye,T[Q]??0)]])},fe)})}):m.map((te,fe)=>{let he=te[Q]??0,ye=Math.max(0,Math.min(100,Math.max(0,he)/Y*100));return(0,N.jsx)("div",{className:g.hbarTrack,children:(0,N.jsx)("div",{className:g.hbarFill,style:{width:`${ye}%`,background:u[fe]},onMouseEnter:M=>n(M,s?[[i[fe].label,String(he)],[_("block.total"),Ot(k[Q]??0,T[Q]??0)]]:[[Z,String(he)]]),onMouseMove:M=>n(M,s?[[i[fe].label,String(he)],[_("block.total"),Ot(k[Q]??0,T[Q]??0)]]:[[Z,String(he)]])})},fe)})}),b&&(0,N.jsx)("span",{className:g.hbarValue,children:s?Ot(k[Q]??0,T[Q]??0):String(o[Q]?.value??"")})]},Q))}),V,(0,N.jsx)(sa,{tip:r})]})}let D=H0(s?0:Math.min(...p,0),C,4),R=D[0],L=D[D.length-1]-R||1,X=Y=>(Y-R)/L*100,J=X(0),ae=_("block.chart.barsSummary",{count:l.length,max:an(Math.max(...p,0))});return(0,N.jsxs)("div",{className:g.chart,"data-genui-chart":"bars",role:"img","aria-label":ae,onMouseLeave:a,children:[(0,N.jsx)(sa,{tip:r}),(0,N.jsxs)("div",{className:g.chartBody,children:[(0,N.jsx)(Ym,{ticks:D,lo:R,span:L}),(0,N.jsxs)("div",{className:g.chartPlot,children:[D.map(Y=>(0,N.jsx)("span",{className:Y===0?g.baseline:g.gridline,style:{bottom:`${X(Y)}%`}},Y)),l.map((Y,V)=>(0,N.jsx)("div",{className:g.barCol,children:y?(0,N.jsxs)(N.Fragment,{children:[b&&(0,N.jsx)("span",{className:g.barValue,style:{bottom:`calc(${X(k[V]??0)}% + 4px)`},children:Ot(k[V]??0,T[V]??0)}),(0,N.jsx)("div",{className:g.stack,style:{height:`${Math.max(0,X(k[V]??0))}%`},children:i.map((Z,Q)=>{let te=Z.data[V],fe=te===void 0?0:Number(te.value)||0,he=Math.max(0,fe),ye=k[V]??0,M=ye===0?0:he/ye*X(ye),j=[[Z.label,String(fe)],[_("block.total"),Ot(ye,T[V]??0)]];return(0,N.jsx)("div",{className:g.stackSeg,style:{height:ye===0?"0%":`${he/ye*100}%`,background:u[Q]},onMouseEnter:H=>n(H,j),onMouseMove:H=>n(H,j),children:M>=11&&(0,N.jsx)("span",{className:g.stackValue,children:fe})},Q)})})]}):s?(0,N.jsx)("div",{className:g.groupedBars,children:i.map((Z,Q)=>{let te=Z.data[V],fe=te===void 0?0:Number(te.value)||0;return(0,N.jsxs)("div",{className:g.groupedBar,children:[b&&(0,N.jsx)("span",{className:g.groupValue,children:te===void 0?"":String(te.value)}),(0,N.jsx)("div",{className:g.groupedFill,style:{height:`${Math.max(0,X(Math.max(0,fe)))}%`,background:u[Q]},onMouseEnter:he=>n(he,[[Z.label,String(te?.value??"")],[_("block.total"),Ot(k[V]??0,T[V]??0)]]),onMouseMove:he=>n(he,[[Z.label,String(te?.value??"")],[_("block.total"),Ot(k[V]??0,T[V]??0)]])})]},Q)})}):(()=>{let Z=m[0][V]??0,Q=Math.max(X(Z),J),te=Math.min(X(Z),J);return(0,N.jsxs)(N.Fragment,{children:[b&&(0,N.jsx)("span",{className:g.barValue,style:{bottom:`calc(${Q}% + 4px)`},children:String(o[V]?.value??"")}),(0,N.jsx)("div",{className:g.barFill,style:{bottom:`${te}%`,height:`${Math.max(Q-te,.6)}%`,...Z<0?{borderRadius:"0 0 5px 5px"}:{},...o[V]?.color!==void 0?{background:o[V].color}:{}},onMouseEnter:fe=>n(fe,[[Y,String(o[V]?.value??"")]]),onMouseMove:fe=>n(fe,[[Y,String(o[V]?.value??"")]])})]})})()},V))]})]}),(0,N.jsx)("div",{className:g.chartLabels,children:l.map((Y,V)=>(0,N.jsx)("span",{className:g.barLabel,children:B(Y)},`${Y}-${V}`))}),s&&(0,N.jsx)("div",{className:g.chartLegend,children:i.map((Y,V)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:u[V]}}),B(Y.label)]},V))})]})}),Xm=(0,$e.memo)(function({chart:e}){Oe();let[r,n]=Vm(),{tip:a,show:i,hide:s}=Di(),o=`genui-line-${(0,$e.useId)().replace(/:/g,"")}`,l=e.series!==void 0&&e.series.length>0?e.series.slice(0,A.maxPlotSeries):void 0,m=e.data.slice(0,A.maxChartPoints),u=l!==void 0?l[0].data.map(H=>H.label):m.map(H=>H.label),p=l!==void 0?l.map(H=>H.data.map(ee=>Number(ee.value)||0)):[m.map(H=>Number(H.value)||0)],b=p.map((H,ee)=>ia(ee,p.length,l!==void 0?l[ee]?.color:void 0,e.palette)??"var(--dsl-g-accent)"),y=p.length>1,k=p.flat(),T=Math.max(...p.map(H=>H.length),0),C=Math.max(n,260),D=176,R=44,G=12,L=14,X=26,J=H0(Math.min(...k,0),Math.max(...k,0),4),ae=J[0],V=J[J.length-1]-ae||1,Z=C-R-G,Q=D-L-X,te=H=>R+(T<=1?Z/2:H/(T-1)*Z),fe=H=>L+(1-(H-ae)/V)*Q,he=p.map(H=>H.map((ee,ie)=>`${ie===0?"M":"L"} ${te(ie).toFixed(1)} ${fe(ee).toFixed(1)}`).join(" ")),ye=!y&&T>1?`${he[0]} L ${te(T-1).toFixed(1)} ${fe(ae).toFixed(1)} L ${te(0).toFixed(1)} ${fe(ae).toFixed(1)} Z`:null,M=Math.max(1,Math.ceil(T/Math.max(1,Math.floor(Z/64)))),j=_(y?"block.chart.lineSeries":"block.chart.linePoints",{count:y?p.length:T,min:an(Math.min(...k,0)),max:an(Math.max(...k,0))});return(0,N.jsxs)("div",{className:g.lineChart,"data-genui-chart":"line","data-genui-line":!0,ref:r,role:"img","aria-label":j,onMouseLeave:s,children:[(0,N.jsx)(sa,{tip:a}),(0,N.jsxs)("svg",{width:"100%",viewBox:`0 0 ${C} ${D}`,preserveAspectRatio:"none",children:[(0,N.jsx)("defs",{children:(0,N.jsxs)("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,N.jsx)("stop",{offset:"0%",stopColor:"var(--dsl-g-accent)",stopOpacity:"0.22"}),(0,N.jsx)("stop",{offset:"100%",stopColor:"var(--dsl-g-accent)",stopOpacity:"0.02"})]})}),J.map((H,ee)=>{let ie=fe(H);return(0,N.jsxs)("g",{children:[(0,N.jsx)("line",{x1:R,x2:C-G,y1:ie,y2:ie,className:ee===0?g.lineGridAxis:g.lineGrid}),(0,N.jsx)("text",{x:R-8,y:ie+4,textAnchor:"end",className:g.lineTick,children:an(H)})]},H)}),ye!==null&&(0,N.jsx)("path",{d:ye,fill:`url(#${o})`}),he.map((H,ee)=>(0,N.jsx)("path",{d:H,className:g.linePath,style:{stroke:b[ee]}},ee)),p.map((H,ee)=>H.map((ie,Se)=>{let Fe=y?[[l[ee].label,String(ie)],[_("block.chart.node"),u[Se]??""]]:[[u[Se]??"",String(ie)]];return(0,N.jsx)("circle",{cx:te(Se),cy:fe(ie),r:y?3:3.5,className:g.lineDot,style:{fill:b[ee]},onMouseEnter:Me=>i(Me,Fe),onMouseMove:Me=>i(Me,Fe)},`${ee}-${Se}`)})),u.map((H,ee)=>ee%M===0?(0,N.jsx)("text",{x:te(ee),y:D-8,textAnchor:"middle",className:g.lineLabel,children:H},`l-${ee}`):null)]}),y&&(0,N.jsx)("div",{className:g.chartLegend,children:l.map((H,ee)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:b[ee]}}),B(H.label)]},ee))})]})}),_m=(0,$e.memo)(function({chart:e}){Oe();let{tip:r,show:n,hide:a}=Di(),i=e.data.slice(0,A.maxChartPoints),s=i.map(T=>({...T,v:Math.max(0,Number(T.value)||0)})),o=s.reduce((T,C)=>T+C.v,0)||1,l=o>=1e3?`${Math.round(o/100)/10}k`:Number.isInteger(o)?String(o):o.toFixed(1),m=62,u=18,p=160,b=2*Math.PI*m,y=0,k=_("block.chart.donutSummary",{count:s.length,total:l});return(0,N.jsxs)("div",{className:g.donut,"data-genui-chart":"donut","data-genui-donut":!0,role:"img","aria-label":k,onMouseLeave:a,children:[(0,N.jsx)(sa,{tip:r}),(0,N.jsxs)("svg",{width:p,height:p,viewBox:`0 0 ${p} ${p}`,children:[(0,N.jsx)("circle",{cx:p/2,cy:p/2,r:m,fill:"none",strokeWidth:u,className:g.donutTrack}),s.map((T,C)=>{let D=T.v/o,R=D*b,G=(0,N.jsx)("circle",{cx:p/2,cy:p/2,r:m,fill:"none",strokeWidth:u,className:g.donutSeg,style:{stroke:ia(C,i.length,T.color,e.palette)??"var(--dsw-alias-state-business-primary, #4f8ef7)"},strokeDasharray:`${R} ${b-R}`,strokeDashoffset:-y,transform:`rotate(-90 ${p/2} ${p/2})`,onMouseEnter:L=>n(L,[[T.label,`${String(T.value)} \xB7 ${(D*100).toFixed(1)}%`]]),onMouseMove:L=>n(L,[[T.label,`${String(T.value)} \xB7 ${(D*100).toFixed(1)}%`]])},C);return y+=R,G}),(0,N.jsx)("text",{x:p/2,y:p/2-2,textAnchor:"middle",className:g.donutTotal,children:l}),(0,N.jsx)("text",{x:p/2,y:p/2+16,textAnchor:"middle",className:g.donutTotalLabel,children:_("block.total")})]}),(0,N.jsx)("div",{className:g.donutLegend,children:s.map((T,C)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:ia(C,i.length,T.color,e.palette)??"var(--dsw-alias-state-business-primary, #4f8ef7)"}}),(0,N.jsx)("span",{children:B(T.label)}),(0,N.jsxs)("span",{className:g.donutPct,children:[String(T.value)," \xB7 ",(T.v/o*100).toFixed(1),"%"]})]},C))})]})});var Ye=require("react");function U0(t,e){let r=(a,i,s)=>{s>A.maxDepth||a.forEach((o,l)=>n(o,`${i}[${l}]`,s))},n=(a,i,s)=>{if(!(s>A.maxDepth)&&(e(a,i),!(s>=A.maxDepth)))switch(a.type){case"row":case"col":case"grid":case"card":r(a.items,`${i}.items`,s+1);break;case"tabs":a.tabs.forEach((o,l)=>r(o.items,`${i}.tabs[${l}].items`,s+1));break;case"accordion":a.items.forEach((o,l)=>r(o.items,`${i}.items[${l}].items`,s+1));break;case"list":a.items.forEach((o,l)=>{o!==null&&typeof o=="object"&&"type"in o&&n(o,`${i}.items[${l}]`,s+1)});break;case"table":a.details?.slice(0,Kt(a).length).forEach((o,l)=>{o!==null&&Nt(a,l)&&r(o,`${i}.details[${l}]`,s+1)});break}};r(t.items,"items",0)}function oa(t){let e=new Map,r=new Map,n=[],a=[];U0(t,(i,s)=>{if(i.type==="submit"){i.groups!==void 0&&a.push({groups:i.groups,path:s});return}let o,l;switch(i.type){case"radio":if(i.group===void 0)return;o={kind:"radio",key:i.group,label:i.label??i.group,options:i.options.slice(0,A.maxOptions),...i.answer===void 0?{}:{answer:i.answer},...i.explanation===void 0?{}:{explanation:i.explanation}},l=`${s}.group`;break;case"checkbox":if(i.group===void 0)return;o={kind:"checkbox",key:i.group},l=`${s}.group`;break;case"input":case"textarea":case"select":case"slider":if(i.id===void 0)return;o={kind:"field",key:i.id,fieldType:i.type,secret:i.type==="input"&&i.inputType==="password"},l=`${s}.id`;break;default:return}if(o===void 0)return;let m=e.get(o.key);if(m!==void 0){(m.kind!=="checkbox"||o.kind!=="checkbox")&&n.push(`${l} conflicts with ${r.get(o.key)}: submission key '${o.key}' is already used`);return}e.set(o.key,o),r.set(o.key,l)});for(let{groups:i,path:s}of a){let o=new Set;i.forEach((l,m)=>{let u=`${s}.groups[${m}]`;o.has(l)&&n.push(`${u}: duplicate submission member '${l}'`),o.add(l);let p=e.get(l);p===void 0?n.push(`${u}: submit.groups references unknown submission member '${l}'`):p.kind==="field"&&p.secret&&n.push(`${u}: submit.groups cannot require secret field '${l}'`)})}return{registry:{members:e},diagnostics:n}}function W0(t){return oa(t).registry}function V0(t,e){switch(t.kind){case"radio":return e.answers[t.key]!==void 0;case"checkbox":return(e.multiAnswers[t.key]?.length??0)>0;case"field":{if(t.secret)return!1;let r=e.fields[t.key];return r!==void 0&&r.trim()!==""}}}function Y0({registry:t,groups:e,state:r}){let n=e?.some(u=>!t.members.has(u))??!1,a=e===void 0?[...t.members.values()].filter(u=>V0(u,r)):e.flatMap(u=>{let p=t.members.get(u);return p===void 0?[]:[p]}),i=a.filter(u=>V0(u,r)).length,s=e?.length??a.length,o=new Set(a.map(u=>u.key)),l=Object.keys(r.answers).some(u=>!o.has(u))||Object.keys(r.multiAnswers).some(u=>!o.has(u))||Object.entries(r.fields).some(([u,p])=>!u.startsWith("__motion_")&&p.trim()!==""&&!r.secretFields.has(u)&&!o.has(u)),m=!n&&a.length>0&&a.every(u=>u.kind==="radio")&&a.some(u=>u.kind==="radio"&&u.answer!==void 0);return{scope:a,answered:i,total:s,localGradeEligible:m,hasOutOfScopePayload:l}}var pe=require("react/jsx-runtime");function J0({node:t,onAction:e,answers:r}){let n=t.action,a=t.group,i=a!==void 0,s=t.options.slice(0,A.maxOptions),o=a!==void 0&&r?.answers[a]!==void 0?s.indexOf(r.answers[a]):-1,[l,m]=st("radio",o>=0?o:t.selected??null,b=>b===null||Number.isInteger(b)&&Number(b)>=0&&Number(b)<s.length,!i),u=(0,Ye.useId)(),p=i&&r?.locked===!0;return(0,Ye.useEffect)(()=>{a!==void 0&&t.selected!==void 0&&s[t.selected]!==void 0&&r?.answers[a]===void 0&&r?.setAnswer(a,s[t.selected])},[a,t.label,t.answer,t.explanation,t.options,t.selected]),(0,pe.jsxs)("div",{className:g.fieldGroup,role:"radiogroup","aria-label":t.label,children:[t.label!==void 0&&(0,pe.jsx)("span",{className:g.fieldLabel,children:B(t.label,!1)}),s.map((b,y)=>(0,pe.jsxs)("label",{className:g.radio,children:[(0,pe.jsx)("input",{type:"radio",name:`genui-radio-${u}`,checked:l===y,disabled:p,onChange:()=>{m(y),i?r?.setAnswer(a,b):n!==void 0&&e!==void 0&&e(n,{type:"radio",value:b})}}),(0,pe.jsx)("span",{children:B(b,!1)})]},y))]})}function K0(t){if(t.answer!==void 0)return typeof t.answer=="number"?t.options[t.answer]:t.answer}function X0({node:t,onAction:e,answers:r}){let n=Oe(),a=r?.answers??{},i=r?.multiAnswers??{},s=r?.fields??{},o=t.groups,l=Object.fromEntries(Object.entries(s).filter(([R,G])=>!R.startsWith("__motion_")&&G.trim()!==""&&!r?.secretFields.has(R))),m=r===void 0?{scope:[],answered:0,total:o?.length??0,localGradeEligible:!1,hasOutOfScopePayload:!1}:Y0({registry:r.registry,...o===void 0?{}:{groups:o},state:{answers:a,multiAnswers:i,fields:s,secretFields:r.secretFields}}),{scope:u,answered:p,total:b}=m,y=t.action!==void 0&&e!==void 0,k=m.localGradeEligible&&(!m.hasOutOfScopePayload||!y),T=r?.locked===!0,C={...a,...i},D=p>0&&p>=b&&(k||y);if(T){let R=u.filter(L=>L.kind==="radio"&&a[L.key]!==void 0&&L.answer!==void 0),G=R.filter(L=>a[L.key]===K0(L)).length;return(0,pe.jsxs)("div",{className:g.gradeWrap,"data-genui-grade":!0,children:[(0,pe.jsxs)("div",{className:g.gradeScore,children:[(0,pe.jsxs)("span",{className:g.gradeScoreValue,children:[G," / ",R.length]}),(0,pe.jsxs)("span",{className:g.gradeScoreLabel,children:[n("block.score"),R.length<u.length?n("block.scoreUngraded",{count:u.length-R.length}):""]})]}),(0,pe.jsx)("div",{className:g.gradeList,children:u.map(L=>{if(L.kind!=="radio")return null;let X=a[L.key];if(X===void 0)return null;let J=K0(L);if(J===void 0)return(0,pe.jsxs)("div",{className:g.gradeItem,children:[(0,pe.jsx)("span",{className:g.gradeQ,children:B(L.label)}),(0,pe.jsxs)("span",{className:g.gradeAns,children:[n("block.yourAnswer"),B(X)]})]},L.key);let ae=X===J;return(0,pe.jsxs)("div",{className:`${g.gradeItem} ${ae?g.gradeItemOk:g.gradeItemNo}`,children:[(0,pe.jsx)("span",{className:g.gradeQ,children:B(L.label)}),(0,pe.jsx)("span",{className:g.gradeTag,children:ae?"\u2713":"\u2717"}),(0,pe.jsxs)("span",{className:g.gradeAns,children:[n("block.yourAnswer"),B(X),!ae&&(0,pe.jsxs)("span",{className:g.gradeRight,children:[n("block.correctAnswer"),B(J??"")]})]}),L.explanation!==void 0&&(0,pe.jsx)("span",{className:g.gradeExp,children:B(L.explanation)})]},L.key)})}),(0,pe.jsx)("button",{type:"button",className:`${g.button} ${g.ghost} ${g.submit}`,onClick:()=>{r?.clear(),t.resetAction!==void 0&&e!==void 0&&e(t.resetAction,{type:"submit-reset",groups:o??Object.keys(a)})},children:n("block.quizRetry")})]})}return(0,pe.jsxs)("div",{className:g.submitRow,children:[(0,pe.jsx)("button",{type:"button",className:`${g.button} ${g.primary} ${g.submit}`,disabled:!D,onClick:D?()=>{k?r?.setLocked(!0):t.action!==void 0&&e!==void 0&&e(t.action,{type:"submit",answers:C,...Object.keys(l).length>0?{fields:l}:{},total:b,answered:p})}:void 0,children:B(t.label,!1)}),b>0&&(0,pe.jsx)("span",{className:g.submitHint,"aria-live":"polite",children:n("block.selectedCount",{answered:p,total:b})})]})}function _0({node:t,onAction:e}){let[r,n]=st("switch",t.checked===!0,i=>typeof i=="boolean"),a=t.action;return(0,pe.jsxs)("label",{className:g.switchRow,children:[(0,pe.jsx)("span",{className:g.switchLabel,children:B(t.label,!1)}),(0,pe.jsx)("button",{type:"button",role:"switch","aria-checked":r,className:`${g.switch} ${r?g.switchOn:""}`,onClick:()=>{let i=!r;n(i),a!==void 0&&e!==void 0&&e(a,{type:"switch",checked:i})},children:(0,pe.jsx)("span",{className:g.switchKnob})})]})}function Z0({node:t,onAction:e,answers:r}){let n=t.action,a=t.id,i=a!==void 0&&r?.fields[a]!==void 0?Number(r.fields[a]):NaN,s=Number.isFinite(i)?i:t.value??t.min??0,[o,l]=st("slider",s,p=>typeof p=="number"&&Number.isFinite(p)&&p>=(t.min??-1/0)&&p<=(t.max??1/0),a===void 0),m=(0,Ye.useRef)(!1);(0,Ye.useEffect)(()=>{m.current||(m.current=!0,a!==void 0&&r?.setField(a,String(s)))},[]);let u=p=>{n!==void 0&&e!==void 0&&e(n,{type:"slider",value:p,...a!==void 0?{id:a}:{}})};return(0,pe.jsxs)("label",{className:g.sliderRow,children:[t.label!==void 0&&(0,pe.jsx)("span",{className:g.fieldLabel,children:B(t.label,!1)}),(0,pe.jsx)("input",{type:"range",className:g.sliderInput,min:t.min,max:t.max,step:t.step??1,value:o,"aria-label":t.label,onChange:p=>{let b=Number(p.currentTarget.value);l(b),a!==void 0&&r?.setField(a,String(b)),u(b)}}),(0,pe.jsx)("span",{className:g.sliderValue,children:Math.round(o*100)/100})]})}function Q0(){let t=(0,Ye.useRef)(!1),e=(0,Ye.useRef)(null);return(0,Ye.useEffect)(()=>()=>{e.current!==null&&clearTimeout(e.current)},[]),{isComposing:()=>t.current,onCompositionStart:()=>{t.current=!0,e.current!==null&&(clearTimeout(e.current),e.current=null)},onCompositionEnd:()=>{e.current!==null&&clearTimeout(e.current),e.current=setTimeout(()=>{t.current=!1},10)}}}function el(t){let e=t.nativeEvent;return e.isComposing===!0||e.keyCode===229}function tl({node:t,onAction:e,answers:r}){let n=Oe(),a=t.action,i=t.id,s=t.options.slice(0,A.maxOptions),o=i!==void 0&&r?.fields[i]!==void 0?s.indexOf(r.fields[i]):-1,l=o>=0?s[o]:t.selected!==void 0&&s[t.selected]!==void 0?s[t.selected]:null,[m,u]=st("select",l,y=>y===null||typeof y=="string"&&s.includes(y),i===void 0),p=(0,Ye.useRef)(!1);(0,Ye.useEffect)(()=>{p.current||(p.current=!0,i!==void 0&&l!==null&&r?.setField(i,l))},[]);let b=y=>{a!==void 0&&e!==void 0&&e(a,{type:"select",value:y,...i!==void 0?{id:i}:{}})};return(0,pe.jsxs)("label",{className:g.field,children:[t.label!==void 0&&(0,pe.jsx)("span",{children:B(t.label,!1)}),(0,pe.jsxs)("select",{className:g.select,value:m??"",onChange:y=>{let k=y.currentTarget.value;u(k),i!==void 0&&r?.setField(i,k),b(k)},children:[m===null&&(0,pe.jsx)("option",{value:"",hidden:!0,disabled:!0,children:n("block.selectPlaceholder")}),s.map((y,k)=>(0,pe.jsx)("option",{value:y,children:y},k))]})]})}function rl({node:t,onAction:e,answers:r}){let n=t.action,a=t.id,i=t.inputType==="password",s=!i&&a!==void 0?r?.fields[a]:void 0,[o,l]=st("input",()=>{let y=i?"":s??t.value??"";return t.inputType==="color"?/^#[0-9a-f]{6}$/i.test(y)?y.toLowerCase():"#000000":y},y=>typeof y=="string"&&y.length<=4096,a===void 0&&!i),m=(0,Ye.useRef)(o),u=y=>{n!==void 0&&e!==void 0&&(m.current=o,e(n,{type:"input",value:o,...a!==void 0?{id:a}:{},...y?{submit:!0}:{}}))},p=Q0(),b=(0,Ye.useRef)(!1);return(0,Ye.useEffect)(()=>{b.current||(b.current=!0,!i&&a!==void 0&&o.trim()!==""&&r?.setField(a,o))},[]),(0,Ye.useEffect)(()=>{i&&a!==void 0&&r?.registerSecretField(a)},[i,a]),(0,pe.jsxs)("label",{className:g.field,children:[t.label!==void 0&&(0,pe.jsx)("span",{children:B(t.label,!1)}),(0,pe.jsx)("input",{className:g.input,type:t.inputType??"text",style:t.inputType==="color"?{width:64,height:40,padding:4,boxSizing:"border-box",alignSelf:"flex-start",cursor:"pointer"}:void 0,placeholder:t.placeholder,value:o,onChange:y=>{let k=y.currentTarget.value;l(k),a!==void 0&&r?.setField(a,k)},onBlur:()=>{o!==m.current&&u(!1)},onCompositionStart:p.onCompositionStart,onCompositionEnd:p.onCompositionEnd,onKeyDown:y=>{y.key==="Enter"&&(p.isComposing()||el(y)||(y.preventDefault(),u(!0)))}})]})}function nl({node:t,onAction:e,answers:r}){let n=t.action,a=t.id,i=a!==void 0?r?.fields[a]:void 0,[s,o]=st("textarea",()=>i??t.value??"",b=>typeof b=="string"&&b.length<=4096,a===void 0),l=(0,Ye.useRef)(s),m=b=>{n!==void 0&&e!==void 0&&(l.current=s,e(n,{type:"textarea",value:s,...a!==void 0?{id:a}:{},...b?{submit:!0}:{}}))},u=Q0(),p=(0,Ye.useRef)(!1);return(0,Ye.useEffect)(()=>{p.current||(p.current=!0,a!==void 0&&s.trim()!==""&&r?.setField(a,s))},[]),(0,pe.jsxs)("label",{className:g.field,children:[t.label!==void 0&&(0,pe.jsx)("span",{children:B(t.label,!1)}),(0,pe.jsx)("textarea",{className:g.textarea,placeholder:t.placeholder,rows:t.rows??4,value:s,onChange:b=>{let y=b.currentTarget.value;o(y),a!==void 0&&r?.setField(a,y)},onBlur:()=>{s!==l.current&&m(!1)},onCompositionStart:u.onCompositionStart,onCompositionEnd:u.onCompositionEnd,onKeyDown:b=>{!(b.metaKey||b.ctrlKey)||b.key!=="Enter"||u.isComposing()||el(b)||(b.preventDefault(),m(!0))}})]})}var la=require("react");var sn=require("react/jsx-runtime");function al({node:t,onAction:e,answers:r}){let n=t.group,a=n!==void 0,i=n!==void 0&&Object.prototype.hasOwnProperty.call(r?.multiAnswers??{},n),s=n===void 0?void 0:r?.multiAnswers[n],o=i?Array.isArray(s)&&s.includes(t.label):t.checked===!0,[l,m]=(0,la.useState)(t.checked===!0);return(0,la.useEffect)(()=>{n===void 0||t.checked!==!0||i||r?.setMultiAnswer(n,t.label,!0)},[n,t.checked,t.label,i]),(0,sn.jsxs)("label",{className:g.checkbox,children:[(0,sn.jsx)("input",{type:"checkbox",checked:a?o:l,onChange:u=>{let p=u.currentTarget.checked;m(p),a?r?.setMultiAnswer(n,t.label,p):t.action!==void 0&&e!==void 0&&e(t.action,{type:"checkbox",checked:p})}}),(0,sn.jsx)("span",{children:B(t.label,!1)})]})}var ke=require("react");var ft=require("react");var il={pi:Math.PI,e:Math.E,tau:Math.PI*2},Zm={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sqrt:Math.sqrt,cbrt:Math.cbrt,exp:Math.exp,log:Math.log10,ln:Math.log,abs:Math.abs,floor:Math.floor,ceil:Math.ceil,round:Math.round,min:Math.min,max:Math.max,pow:(t,e)=>Math.pow(t,e)},vt=class extends Error{constructor(r,n){super(`SafeMath parse error at ${n}: ${r}`);this.pos=n}},Ii=class{constructor(e,r){this.src=e;this.vars=r}i=0;parse(){let e=this.parseExpr();if(this.skipWs(),this.i<this.src.length)throw new vt("unexpected trailing input",this.i);return this.evalNode(e)}evalNode(e){return typeof e=="number"?()=>e:e}parseExpr(){let e=this.parseTerm();for(;;){this.skipWs();let r=this.peek();if(r==="+"||r==="-"){this.i++;let n=this.parseTerm(),a=r,i=e;e=a==="+"?s=>this.asNum(i,s)+this.asNum(n,s):s=>this.asNum(i,s)-this.asNum(n,s)}else return e}}parseTerm(){let e=this.parseUnary();for(;;){this.skipWs();let r=this.peek();if(r==="*"||r==="/"||r==="%"){this.i++;let n=this.parseUnary(),a=r,i=e;e=a==="*"?s=>this.asNum(i,s)*this.asNum(n,s):a==="/"?s=>this.asNum(i,s)/this.asNum(n,s):s=>this.asNum(i,s)%this.asNum(n,s)}else return e}}parseUnary(){this.skipWs();let e=this.char();if(e==="-"||e==="+"){this.i++;let r=this.parseUnary();return e==="-"?n=>-this.asNum(r,n):n=>this.asNum(r,n)}return this.parsePower()}parsePower(){let e=this.parseAtom();if(this.skipWs(),this.peek()==="^"){this.i++;let r=this.parsePower(),n=e;return a=>Math.pow(this.asNum(n,a),this.asNum(r,a))}return e}parseAtom(){this.skipWs();let e=this.char();if(e==="("){this.i++;let r=this.parseExpr();if(this.skipWs(),this.peek()!==")")throw new vt("expected )",this.i);return this.i++,r}if(e>="0"&&e<="9"||e===".")return this.parseNumber();if(this.isIdentStart(e))return this.parseIdent();throw new vt(`unexpected character '${e}'`,this.i)}parseNumber(){let e=this.i,r=!1;for(;this.i<this.src.length&&/[0-9]/.test(this.src[this.i]);)r=!0,this.i++;if(this.peek()===".")for(this.i++;this.i<this.src.length&&/[0-9]/.test(this.src[this.i]);)r=!0,this.i++;if(!r)throw new vt(`invalid number '${this.src.slice(e,this.i)}'`,e);if(this.peek()==="e"||this.peek()==="E"){this.i++,(this.peek()==="+"||this.peek()==="-")&&this.i++;let i=this.i;for(;this.i<this.src.length&&/[0-9]/.test(this.src[this.i]);)this.i++;if(this.i===i)throw new vt(`invalid number '${this.src.slice(e,this.i)}'`,e)}let n=this.src.slice(e,this.i),a=Number(n);if(Number.isNaN(a))throw new vt(`invalid number '${n}'`,e);return a}parseIdent(){let e=this.i;for(;this.i<this.src.length&&this.isIdentChar(this.src[this.i]);)this.i++;let r=this.src.slice(e,this.i);if(this.skipWs(),this.peek()==="("){let n=Zm[r];if(n===void 0)throw new vt(`unknown function '${r}'`,e);this.i++;let a=[];if(this.skipWs(),this.peek()===")")this.i++;else for(;;){a.push(this.parseExpr()),this.skipWs();let i=this.peek();if(i===","){this.i++;continue}if(i===")"){this.i++;break}throw new vt("expected , or ) in call",this.i)}return i=>n(...a.map(s=>this.asNum(s,i)))}if(Object.hasOwn(il,r))return il[r];if(r==="x")return n=>n;if(Object.hasOwn(this.vars,r)){let n=this.vars[r];return()=>n}if(/^[a-z]$/.test(r))return()=>1;throw new vt(`unknown identifier '${r}'`,e)}asNum(e,r){return typeof e=="number"?e:e(r)}skipWs(){for(;this.i<this.src.length&&/\s/.test(this.src[this.i]);)this.i++}peek(){return this.src[this.i]}char(){let e=this.peek();if(e===void 0)throw new vt("unexpected end of input",this.i);return e}isIdentStart(e){return e!==void 0&&/[a-zA-Z_]/.test(e)}isIdentChar(e){return/[a-zA-Z0-9_]/.test(e)}};function Qm(t,e={}){try{let r={...e.vars};return delete r.x,new Ii(t,r).parse()}catch{return null}}function Li(t,e,r,n=200,a={}){let i=Qm(t,{vars:a});if(i===null)return[];if(!Number.isFinite(e)||!Number.isFinite(r)||r<=e||n<2)return[];let s=[],o=(r-e)/(n-1);for(let l=0;l<n;l++){let m=e+o*l,u=i(m);Number.isFinite(u)&&s.push([m,u])}return s}var xe={block:"do",title:"go",gridLine:"po",axis:"co",tick:"fo",line:"bo",area:"vo",scatterDot:"xo",legend:"mo",legendItem:"uo",legendSwatch:"wo",empty:"ho",emptyRow:"yo",surface:"Nr",plotTools:"ko",plotHint:"zo",plotReset:"Or",sliders:"jo",sliderRow:"Yo",sliderName:"Fo",slider:"Mo",sliderValue:"So",animBar:"qo",playBtn:"Pr",animTrack:"Ao",animFill:"Bo",resetBtn:"Qr",slidersHead:"Co",slidersTitle:"Do"};var ge=require("react/jsx-runtime"),sl=["var(--dsw-static-deepseek-400)","var(--dsw-static-green-400)","var(--dsw-static-amber-400)","var(--dsw-static-red-400)","var(--dsw-static-blue-450)","var(--dsw-static-deepseek-450)","var(--dsw-static-neutral-bluish-400)","var(--dsw-static-deepseek-300)"],ol=(t,e,r)=>r??(e>1?sl[t%sl.length]:void 0),on=480,br=220,dr=34,Bi=10,da=14,$r=24,ll=240;function tp(t){let e=1/0,r=-1/0;for(let[,a]of t)a<e&&(e=a),a>r&&(r=a);if(!Number.isFinite(e)||!Number.isFinite(r))return[-1,1];e===r&&(e-=1,r+=1);let n=(r-e)*.08;return[e-n,r+n]}function dl(t,e,r=5){let n=e-t;if(!Number.isFinite(n)||n<=0)return[];let a=Math.pow(10,Math.floor(Math.log10(n/r))),i=n/r/a,s=i>=7.5?10:i>=3.5?5:i>=1.5?2:1,o=a*s,l=[];for(let m=Math.ceil(t/o)*o;m<=e+o*1e-9;m+=o)l.push(Math.round(m*1e9)/1e9);return l}function ca(t){return Math.abs(t)>=1e5||Math.abs(t)<.001&&t!==0?t.toExponential(1):String(Math.round(t*100)/100)}function cl({points:t,className:e,color:r}){let n=t.length>40?`${t.slice(0,16)}|${t.slice(-16)}`:t;return(0,ge.jsx)("polyline",{points:t,className:e,style:r!==void 0?{stroke:r}:void 0},n)}var ul=(0,ft.memo)(function({series:e,xMin:r=-5,xMax:n=5,yMin:a,yMax:i,title:s}){let[o,l]=st("plot-view",()=>{let U={};for(let[we,Ee]of e.entries())for(let Re of Ee.params??[])Re!=null&&(U[`${we}:${Re.name}`]=Re.value);let de=e.map((we,Ee)=>{let Re={};for(let Ge of we.params??[])Ge!=null&&(Re[Ge.name]=U[`${Ee}:${Ge.name}`]??Ge.value);return Li(we.expr,r,n,ll,Re)}),[se,ve]=tp(de.flatMap(we=>we));return{xMin:r,xMax:n,yMin:a??se,yMax:i??ve}}),m=(0,ft.useRef)(null),[u,p,b]=st("plot-params",{},U=>!!U&&typeof U=="object"&&!Array.isArray(U)&&Object.entries(U).every(([de,se])=>{let[ve,we]=de.split(":"),Ee=e[Number(ve)]?.params?.find(Re=>Re.name===we);return!!Ee&&typeof se=="number"&&Number.isFinite(se)&&se>=(Ee.min??-1/0)&&se<=(Ee.max??1/0)})),y=(()=>{for(let[U,de]of e.entries())for(let se of de.params??[])if(se!=null&&se.animateTo!==void 0)return{si:U,param:se};return null})(),[k,T]=(0,ft.useState)(!1),[C,D]=(0,ft.useState)(0),R=(0,ft.useRef)(null);(0,ft.useEffect)(()=>{if(!k||y===null)return;let U=`${y.si}:${y.param.name}`,de=u[U]??y.param.value,se=y.param.animateTo,ve=Math.max(0,y.param.durationMs??4e3),we=performance.now(),Ee=Re=>{let Ge=ve===0?1:Math.min(1,Math.max(0,(Re-we)/ve)),tt=1-Math.pow(1-Ge,3),kr=de+(se-de)*tt;b(Hr=>({...Hr,[U]:kr})),D(Ge),Ge<1?R.current=requestAnimationFrame(Ee):y.param.loop===!0?(de=y.param.value,we=Re,b(Hr=>({...Hr,[U]:de})),D(0),R.current=requestAnimationFrame(Ee)):(R.current=null,T(!1))};return R.current=requestAnimationFrame(Ee),()=>{R.current!==null&&cancelAnimationFrame(R.current),R.current=null}},[k,y?.si,y?.param.name,y?.param.value,y?.param.animateTo,y?.param.durationMs,y?.param.loop]);let G=o.xMin,L=o.xMax,X=o.yMin,J=o.yMax,ae=on-dr-Bi,Y=br-da-$r,V=U=>G+(U-dr)/ae*(L-G),Z=U=>dr+(U-G)/(L-G)*ae,Q=U=>da+(1-(U-X)/(J-X))*Y,te=e.map((U,de)=>{let se={};for(let we of U.params??[])we!=null&&(se[we.name]=u[`${de}:${we.name}`]??we.value);let ve=Li(U.expr,G,L,ll,se);return{series:U,points:ve.map(([we,Ee])=>`${Z(we).toFixed(2)},${Q(Ee).toFixed(2)}`).join(" ")}}),fe=dl(G,L),he=dl(X,J),ye=te.some(U=>U.points.length>1),M=Number.isFinite(G)&&Number.isFinite(L)&&L>G&&Number.isFinite(J)&&Number.isFinite(X)&&J>X,j=(U,de,se)=>{let ve=ol(de,te.length,U.color)??"var(--dsw-alias-state-business-primary, #4f8ef7)",we=U.kind??"line";if(we==="scatter"){let Ee=se===""?[]:se.split(" ").map(Re=>{let[Ge,tt]=Re.split(",");return[Number(Ge),Number(tt)]});return(0,ge.jsx)("g",{children:Ee.map(([Re,Ge],tt)=>(0,ge.jsx)("circle",{cx:Re,cy:Ge,r:2.6,className:xe.scatterDot,style:{fill:ve}},tt))},de)}if(we==="area"){if(se==="")return(0,ge.jsx)(cl,{points:"",className:xe.line,color:ve},de);let Ee=se.slice(0,se.indexOf(" ")).split(",")[0],Re=se.slice(se.lastIndexOf(" ")+1).split(",")[0],Ge=Q(X),tt=`${Ee},${Ge.toFixed(2)} ${se} ${Re},${Ge.toFixed(2)}`;return(0,ge.jsx)("polygon",{points:tt,className:xe.area,style:{fill:ve}},de)}return(0,ge.jsx)(cl,{points:se,className:xe.line,color:ve},de)},H=U=>{m.current={startX:U.clientX,startY:U.clientY,xMin:G,xMax:L},U.target.setPointerCapture?.(U.pointerId)},ee=U=>{let de=m.current;if(de===null||Math.abs(U.clientX-de.startX)<4)return;let se=de.xMax-de.xMin,ve=(de.startX-U.clientX)/ae*se;l(we=>({xMin:de.xMin+ve,xMax:de.xMax+ve,yMin:we.yMin,yMax:we.yMax}))},ie=()=>{m.current=null},Se=(0,ft.useRef)(null);(0,ft.useEffect)(()=>{let U=Se.current;if(U===null)return;let de=se=>{if(!se.metaKey&&!se.ctrlKey)return;se.preventDefault();let ve=L-G,we=se.deltaY>0?1.15:1/1.15,Ee=ve*we,Re=U.getBoundingClientRect(),Ge=V((se.clientX-Re.left)/Re.width*on),tt=Ge-(Ge-G)/ve*Ee;l(kr=>({xMin:tt,xMax:tt+Ee,yMin:kr.yMin,yMax:kr.yMax}))};return U.addEventListener("wheel",de,{passive:!1}),()=>U.removeEventListener("wheel",de)},[G,L,V]);let Fe=e.some(U=>(U.params?.length??0)>0),Me=(0,ft.useRef)({min:r,max:n}),ct=Math.abs(G-Me.current.min)>1e-6||Math.abs(L-Me.current.max)>1e-6,pr=()=>{l(U=>({...U,xMin:Me.current.min,xMax:Me.current.max}))};return(0,ge.jsxs)("div",{className:xe.block,"data-genui-plot":!0,children:[s!==void 0&&(0,ge.jsx)("div",{className:xe.title,children:B(s)}),ye&&M&&(0,ge.jsxs)("div",{className:xe.plotTools,children:[(0,ge.jsx)("span",{className:xe.plotHint,children:ct?`x \u2208 [${ca(G)}, ${ca(L)}]`:"\u2318/Ctrl + \u6EDA\u8F6E\u7F29\u653E \xB7 \u62D6\u62FD\u5E73\u79FB"}),ct&&(0,ge.jsx)("button",{type:"button",className:xe.plotReset,onClick:pr,children:"\u21BA \u56DE\u5230\u521D\u59CB\u533A\u95F4"})]}),ye&&M?(0,ge.jsxs)("svg",{width:"100%",viewBox:`0 0 ${on} ${br}`,role:"img","aria-label":s??"function plot",className:xe.surface,ref:Se,onPointerDown:H,onPointerMove:ee,onPointerUp:ie,onPointerLeave:ie,children:[he.map(U=>(0,ge.jsxs)("g",{children:[(0,ge.jsx)("line",{x1:dr,x2:on-Bi,y1:Q(U),y2:Q(U),className:xe.gridLine}),(0,ge.jsx)("text",{x:dr-6,y:Q(U)+4,className:xe.tick,textAnchor:"end",children:ca(U)})]},`y${U}`)),fe.map(U=>(0,ge.jsxs)("g",{children:[(0,ge.jsx)("line",{x1:Z(U),x2:Z(U),y1:da,y2:br-$r,className:xe.gridLine}),(0,ge.jsx)("text",{x:Z(U),y:br-$r+14,className:xe.tick,textAnchor:"middle",children:ca(U)})]},`x${U}`)),(0,ge.jsx)("line",{x1:dr,x2:on-Bi,y1:br-$r,y2:br-$r,className:xe.axis}),(0,ge.jsx)("line",{x1:dr,x2:dr,y1:da,y2:br-$r,className:xe.axis}),te.map(({series:U,points:de},se)=>j(U,se,de))]}):(0,ge.jsx)("div",{className:xe.empty,children:e.map((U,de)=>(0,ge.jsxs)("div",{className:xe.emptyRow,children:[U.expr," \u2014 \u65E0\u6CD5\u7ED8\u5236\uFF08\u8868\u8FBE\u5F0F\u65E0\u6548\u6216\u8303\u56F4\u975E\u6CD5\uFF09"]},de))}),Fe&&(0,ge.jsxs)("div",{className:xe.sliders,children:[(0,ge.jsxs)("div",{className:xe.slidersHead,children:[(0,ge.jsx)("span",{className:xe.slidersTitle,children:"\u53C2\u6570\u8C03\u8282"}),(0,ge.jsx)("button",{type:"button",className:xe.resetBtn,onClick:()=>{T(!1);let U={};for(let[de,se]of e.entries())for(let ve of se.params??[])ve!=null&&(U[`${de}:${ve.name}`]=ve.value);p(U),D(0)},children:"\u21BA \u91CD\u7F6E"})]}),e.map((U,de)=>(U.params??[]).map(se=>{if(se==null)return null;let ve=`${de}:${se.name}`,we=u[ve]??se.value;return(0,ge.jsxs)("label",{className:xe.sliderRow,children:[(0,ge.jsxs)("span",{className:xe.sliderName,children:[U.label??U.expr," \xB7 ",se.name]}),(0,ge.jsx)("input",{type:"range",className:xe.slider,min:se.min??0,max:se.max??10,step:se.step??.1,value:we,onChange:Ee=>{let Re=Number(Ee.currentTarget.value);p(Ge=>({...Ge,[ve]:Re}))}}),(0,ge.jsx)("span",{className:xe.sliderValue,children:Math.round(we*100)/100})]},ve)}))]}),y!==null&&(0,ge.jsxs)("div",{className:xe.animBar,children:[(0,ge.jsx)("button",{type:"button",className:xe.playBtn,onClick:()=>{k?T(!1):(p(U=>({...U,[`${y.si}:${y.param.name}`]:y.param.value})),D(0),T(!0))},children:k?"\u23F8 \u6682\u505C":"\u25B6 \u64AD\u653E\u52A8\u753B"}),k&&(0,ge.jsx)("div",{className:xe.animTrack,children:(0,ge.jsx)("div",{className:xe.animFill,style:{width:`${C*100}%`}})})]}),(e.length>1||Fe)&&(0,ge.jsx)("div",{className:xe.legend,children:e.map((U,de)=>(0,ge.jsxs)("span",{className:xe.legendItem,children:[(0,ge.jsx)("span",{className:xe.legendSwatch,style:{background:ol(de,e.length,U.color)??"var(--dsw-alias-state-business-primary, #4f8ef7)"}}),U.label??U.expr]},de))})]})});function ml(){return{copy:_("label.copy"),copied:_("label.copied"),codeLabel:_("label.code"),wrapLabel:_("label.wrap"),unwrapLabel:_("label.unwrap"),collapseAria:_("label.collapseDiff.aria"),expandAria(e){return _("label.expandDiff.aria",{hidden:e})},collapse:_("label.collapse"),expand(e){return _("label.expandDiff",{hidden:e})},files(e){return _("label.diffFiles",{count:e})}}}function pl(){return{copyLabel:_("label.copy"),copiedLabel:_("label.copied")}}function fl(){return{copyValue:_("label.copyValue"),copyJson:_("label.copyJson"),copyPath:_("label.copyPath"),copyPrettyJson:_("label.copyPrettyJson"),copyCompactJson:_("label.copyCompactJson"),copied:_("label.copiedDone"),copyFailed:_("label.copyFailed"),collapseNode:_("label.collapseNode"),expandNode:_("label.expandNode"),copyButtonTitle(t){return _("label.copyButtonTitle",{action:t})}}}var P=require("react/jsx-runtime"),lp={info:g.calloutInfo,success:g.calloutSuccess,warning:g.calloutWarning,error:g.calloutError},Nl=(0,ke.memo)(function({node:e}){let r=e.tone??"info",n=lp[r]??g.calloutInfo;return(0,P.jsxs)("div",{className:`${g.callout} ${n}`,"data-genui-callout":!0,children:[e.title!==void 0&&(0,P.jsx)("div",{className:g.calloutTitle,children:B(e.title)}),(0,P.jsx)("div",{className:g.calloutBody,children:B(e.content)})]})}),Ml=(0,ke.memo)(function({steps:e}){let r=e.steps.slice(0,A.maxSteps),n=e.current??r.length;return(0,P.jsx)("ol",{className:g.steps,children:r.map((a,i)=>{let s=i<n,o=i===n;return(0,P.jsxs)("li",{className:`${g.step} ${s?g.stepDone:""} ${o?g.stepActive:""}`,children:[(0,P.jsx)("span",{className:g.stepMarker,children:s?"\u2713":String(i+1)}),(0,P.jsxs)("span",{className:g.stepContent,children:[(0,P.jsx)("span",{className:g.stepTitle,children:B(a.title)}),a.desc!==void 0&&(0,P.jsx)("span",{className:g.stepDesc,children:B(a.desc)})]})]},i)})})}),Cl=(0,ke.memo)(function({node:e}){let r=e.pairs.slice(0,A.maxKeyValuePairs);return(0,P.jsx)("dl",{className:g.keyvalue,children:r.map((n,a)=>(0,P.jsxs)("div",{className:g.kvRow,children:[(0,P.jsx)("dt",{className:g.kvKey,children:B(n.key)}),(0,P.jsx)("dd",{className:g.kvValue,children:B(n.value)})]},a))})}),zl=(0,ke.memo)(function({plot:e}){let r=(0,ke.useMemo)(()=>e.series.slice(0,A.maxPlotSeries).map(n=>({expr:n.expr,label:n.label,color:n.color,kind:n.kind,params:n.params})),[e]);return(0,P.jsx)(ul,{series:r,xMin:e.xMin,xMax:e.xMax,yMin:e.yMin,yMax:e.yMax,title:e.title})}),Rl=(0,ke.memo)(function({node:e}){return Oe(),(0,P.jsx)(b0,{diffs:e.diffs,labels:ml()})}),Gl=(0,ke.memo)(function({node:e}){Oe();let r=e.value;return typeof r!="object"||r===null?(0,P.jsx)("div",{className:g.jsonScalar,children:String(r)}):(0,P.jsx)(y0,{data:r,label:"JSON",labels:fl(),copyable:!0})}),$l=(0,ke.memo)(function({node:e}){return Oe(),(0,P.jsx)(g0,{...pl(),code:e.code.slice(0,A.maxCode),lang:e.lang,title:e.title,wrap:e.wrap})});function El({tabs:t,onAction:e,depth:r=0,answers:n}){let[a,i]=st("tab",0,p=>Number.isInteger(p)&&Number(p)>=0),s=(0,ke.useId)(),o=t.tabs.slice(0,A.maxTabs),l=o.length===0?0:Math.min(a,o.length-1),m=o[l];(0,ke.useEffect)(()=>{l!==a&&i(l)},[a,l]);let u=p=>{if(o.length===0)return;let b=(p+o.length)%o.length;i(b),document.getElementById(`${s}-tab-${b}`)?.focus()};return(0,P.jsxs)("div",{className:g.tabs,children:[(0,P.jsx)("div",{className:g.tabBar,role:"tablist","aria-orientation":"horizontal",onKeyDown:p=>{p.key==="ArrowRight"?(p.preventDefault(),u(l+1)):p.key==="ArrowLeft"?(p.preventDefault(),u(l-1)):p.key==="Home"?(p.preventDefault(),u(0)):p.key==="End"&&(p.preventDefault(),u(o.length-1))},children:o.map((p,b)=>(0,P.jsx)("button",{id:`${s}-tab-${b}`,type:"button",role:"tab","aria-selected":b===l,"aria-controls":`${s}-panel-${b}`,tabIndex:b===l?0:-1,className:`${g.tab} ${b===l?g.tabActive:""}`,onClick:()=>i(b),children:B(p.label,!1)},b))}),m!==void 0&&(0,P.jsx)("div",{className:g.col,role:"tabpanel",id:`${s}-panel-${l}`,"aria-labelledby":`${s}-tab-${l}`,children:m.items.map((p,b)=>xt(p,b,e,r+1,n))})]})}function Dl({node:t,onAction:e,depth:r=0,answers:n}){let[a,i]=st("accordion",0,l=>l===null||Number.isInteger(l)&&Number(l)>=0),s=(0,ke.useId)(),o=t.items.slice(0,A.maxAccordionItems);return(0,P.jsx)("div",{className:g.accordion,children:o.map((l,m)=>(0,P.jsxs)("div",{className:g.accItem,children:[(0,P.jsxs)("button",{type:"button",className:g.accHead,id:`${s}-head-${m}`,"aria-expanded":a===m,"aria-controls":`${s}-body-${m}`,onClick:()=>i(a===m?null:m),children:[(0,P.jsx)("span",{className:g.accTitle,children:B(l.title,!1)}),(0,P.jsx)("span",{className:g.accChevron,"data-open":a===m,"aria-hidden":!0,children:"\u25B8"})]}),a===m&&(0,P.jsx)("div",{className:g.accBody,id:`${s}-body-${m}`,"aria-labelledby":`${s}-head-${m}`,children:l.items.map((u,p)=>xt(u,p,e,r+1,n))})]},m))})}async function dp(t){let e=typeof navigator.clipboard?.writeText=="function",r=await nn(t);if(r||!e)return r;let n=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(n===void 0)return!1;let a=document.createElement("textarea");a.value=t,a.setAttribute("readonly",""),a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select();try{return n("copy")}catch{return!1}finally{a.remove()}}var Il=(0,ke.memo)(function({node:e}){let r=Oe(),[n,a]=(0,ke.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("button",{type:"button",className:`${g.copyChip} ${n?g.copyChipDone:""}`,onClick:()=>{dp(e.text).then(i=>{i&&(a(!0),setTimeout(()=>a(!1),1500))})},children:n?r("label.copiedShort"):B(e.label??r("label.copy"),!1)}),(0,P.jsx)("span",{className:g.visuallyHidden,role:"status",children:n?r("label.copiedToClipboard"):""})]})}),Ll=(0,ke.memo)(function({node:e}){let r=Oe(),[n,a]=(0,ke.useState)({status:"loading"}),i=e.code.slice(0,A.maxMermaid);return(0,ke.useEffect)(()=>{let s=!0;return a({status:"loading"}),(async()=>{try{let l=await(await Promise.resolve().then(()=>(Sl(),kl))).renderMermaid(i);s&&a({status:"ready",html:l})}catch{s&&a({status:"error"})}})(),()=>{s=!1}},[i]),n.status==="error"?(0,P.jsxs)("div",{className:g.mermaidFallback,children:[(0,P.jsx)("pre",{children:i}),(0,P.jsx)("div",{className:g.mermaidErr,children:r("block.mermaidError")})]}):n.status==="loading"?(0,P.jsxs)("div",{className:g.mermaidFallback,children:[(0,P.jsx)("pre",{children:i}),(0,P.jsx)("div",{className:g.mermaidHint,children:r("block.mermaidLoading")})]}):(0,P.jsx)("div",{className:g.mermaid,dangerouslySetInnerHTML:{__html:n.html},"data-genui-mermaid":!0})}),Bl=(0,ke.memo)(function({node:e}){let r=Oe(),[n,a]=(0,ke.useState)("loading"),i=(0,ke.useRef)(null),s=e.meshes.length>A.maxMeshes?{...e,meshes:e.meshes.slice(0,A.maxMeshes)}:e;return(0,ke.useEffect)(()=>{let o=!0,l;return Promise.resolve().then(()=>(Tl(),Al)).then(async m=>{if(!(!o||i.current===null))try{l=await m.mountScene(i.current,s),o&&a("ready")}catch{o&&a("error")}}),()=>{o=!1,l?.()}},[s]),(0,P.jsxs)("div",{className:g.scene3dWrap,"data-genui-scene3d":!0,children:[e.title!==void 0&&(0,P.jsx)("div",{className:g.scene3dTitle,children:B(e.title)}),(0,P.jsx)("div",{ref:i,className:g.scene3dCanvas}),n==="loading"&&(0,P.jsx)("div",{className:g.scene3dHint,children:r("block.scene3dLoading")}),n==="error"&&(0,P.jsx)("div",{className:g.scene3dHint,children:r("block.scene3dError")})]})}),ql=(0,ke.memo)(function({node:e}){let r=e.items.slice(0,A.maxTimelineItems);return(0,P.jsx)("div",{className:g.timeline,children:r.map((n,a)=>(0,P.jsxs)("div",{className:g.tlItem,children:[(0,P.jsxs)("div",{className:g.tlRail,children:[(0,P.jsx)("span",{className:g.tlDot}),a<r.length-1&&(0,P.jsx)("span",{className:g.tlLine})]}),(0,P.jsxs)("div",{className:g.tlBody,children:[(0,P.jsxs)("div",{className:g.tlHead,children:[(0,P.jsx)("span",{className:g.tlTitle,children:B(n.title,!1)}),n.time!==void 0&&(0,P.jsx)("span",{className:g.tlTime,children:B(n.time)})]}),n.desc!==void 0&&(0,P.jsx)("div",{className:g.tlDesc,children:B(n.desc)})]})]},a))})});function cp(){return(0,P.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:(0,P.jsx)("path",{d:"M1.6 3.4h4.1l1.3 1.7h7.4v7.2a1 1 0 0 1-1 1H2.6a1 1 0 0 1-1-1z",fill:"currentColor",opacity:"0.85"})})}function up(){return(0,P.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[(0,P.jsx)("path",{d:"M3.8 1.6h4.9L13 5.9v8.5a1 1 0 0 1-1 1H4.8a1 1 0 0 1-1-1z",fill:"none",stroke:"currentColor",strokeWidth:"1.2"}),(0,P.jsx)("path",{d:"M8.7 1.7v4.3h4.2",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})]})}var Ol=(0,ke.memo)(function({node:e}){let[r,n]=(0,ke.useState)(new Set),a=s=>{n(o=>{let l=new Set(o);return l.has(s)?l.delete(s):l.add(s),l})},i=(s,o,l)=>{if(o>A.maxTreeDepth)return null;let m=s.type==="dir"||s.children!==void 0&&s.children.length>0,u=m&&r.has(l);return(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:g.ftRow,style:{paddingLeft:`${o*14+4}px`},children:[Array.from({length:o},(p,b)=>(0,P.jsx)("span",{className:g.ftGuide,style:{left:`${4+b*14+6}px`},"aria-hidden":!0},b)),(0,P.jsxs)("button",{type:"button",className:g.ftNameBtn,"aria-expanded":m?!u:void 0,onClick:m?()=>a(l):void 0,children:[(0,P.jsx)("span",{className:g.ftChevron,"data-open":m?String(!u):void 0,"aria-hidden":!0,children:m?"\u25B8":""}),(0,P.jsx)("span",{className:`${g.ftGlyph} ${m?g.ftGlyphDir:""}`,"aria-hidden":!0,children:m?(0,P.jsx)(cp,{}):(0,P.jsx)(up,{})}),(0,P.jsx)("span",{className:`${g.ftName} ${m?g.ftDir:""}`,children:s.name})]})]}),m&&!u&&(0,P.jsx)("div",{className:g.ftChildren,children:(s.children??[]).map((p,b)=>i(p,o+1,`${l}/${b}`))})]},l)};return(0,P.jsx)("div",{className:g.fileTree,children:e.items.slice(0,A.maxListItems).map((s,o)=>i(s,0,String(o)))})}),Fl=(0,ke.memo)(function({node:e,onAction:r,answers:n}){let a=Oe(),i="__motion_quiz_"+(e.id??JSON.stringify([e.question,e.options.map(C=>C.label)])),s=n?.fields[i],[o,l]=(0,ke.useState)(s===void 0||s===""?null:Number(s)),[m,u]=(0,ke.useState)(e.id);e.id!==m&&(u(e.id),l(null));let p=e.options.slice(0,A.maxQuizOptions),b=o!==null,y=o===null?void 0:p[o],k=y?.correct===!0,T=e.action;return(0,P.jsxs)("div",{className:g.quiz,"data-genui-quiz":!0,children:[(0,P.jsx)("div",{className:g.quizQuestion,children:B(e.question)}),(0,P.jsx)("div",{className:g.quizOptions,children:p.map((C,D)=>{let R=o===D,G=b?R?C.correct===!0?g.quizOptCorrect:g.quizOptWrong:C.correct===!0?g.quizOptReveal:g.quizOpt:g.quizOpt;return(0,P.jsxs)("button",{type:"button",className:G,disabled:b,onClick:()=>{l(D),n?.setField(i,String(D)),T!==void 0&&r!==void 0&&r(T,{type:"quiz",question:e.question,answer:C.label,correct:C.correct===!0})},children:[(0,P.jsx)("span",{className:g.quizMarker,children:b?C.correct===!0?"\u2713":R?"\u2717":"":R?"\u25CF":"\u25CB"}),B(C.label,!1)]},D)})}),b&&(0,P.jsxs)("div",{className:g.quizResult,"aria-live":"polite",children:[(0,P.jsxs)("div",{className:k?g.quizCorrectMsg:g.quizWrongMsg,children:[a(k?"block.quizCorrect":"block.quizWrong"),y?.feedback!==void 0&&(0,P.jsx)("div",{className:g.quizFeedback,children:B(y.feedback)})]}),e.explanation!==void 0&&(0,P.jsx)("div",{className:g.quizExplanation,children:B(e.explanation)}),(0,P.jsx)("button",{type:"button",className:g.quizRetry,onClick:()=>{l(null),n?.setField(i,"")},children:a("block.quizRetry")})]})]})}),Pl=(0,ke.memo)(function({node:e}){let r=e.items.slice(0,A.maxBreadcrumbItems);return(0,P.jsx)("nav",{className:g.breadcrumb,"aria-label":"breadcrumb",children:r.map((n,a)=>(0,P.jsxs)("span",{className:g.bcItem,children:[(0,P.jsx)("span",{className:`${g.bcText} ${a===r.length-1?g.bcCurrent:""}`,children:B(n)}),a<r.length-1&&(0,P.jsx)("span",{className:g.bcSep,children:"/"})]},a))})});var ln=require("react");var mp=["architecture","it-state","high-level","process","medallion","data-flow","dp-integration"],Mt=32,Ct=128,dt=64,Je=40;function pp(t){return mp.includes(t)}function fp(t,e){let r=t%e,n=Math.floor(t/e);return{x:Je+r*(Ct+Mt),y:Je+n*(dt+Mt),w:Ct,h:dt}}function hp(t){return t.map((e,r)=>({node:e,box:{x:Je,y:Je+r*(dt+Mt),w:Ct,h:dt}}))}function gp(t){return t.map((e,r)=>({node:e,box:{x:Je+r*(Ct+Mt),y:Je,w:Ct,h:dt}}))}function bp(t,e=3){return t.map((r,n)=>{let a=Math.floor(n/e),i=n%e;return{node:r,box:{x:Je+i*(Ct+Mt),y:Je+a*(dt+Mt),w:Ct,h:dt}}})}function yp(t,e){let r=new Map(t.map(u=>[u.id,u])),n=new Map,a=[];for(let u of t){let p=e(u.id);if(p===void 0||!r.has(p))a.push(u.id);else{let b=n.get(p)??[];b.push(u.id),n.set(p,b)}}let i=new Map,s=new Map,o=(u,p)=>{s.set(u,p);let b=n.get(u)??[];return b.length===0?1:b.reduce((y,k)=>y+o(k,p+1),0)},l=(u,p)=>{let b=s.get(u)??0,y=n.get(u)??[],k=Ct,T=p;if(y.length===0)return i.set(u,{x:p,y:Je+b*(dt+Mt*1.5),w:k,h:dt}),p+k;for(let G of y)T=l(G,T);let C=i.get(y[0]),D=i.get(y[y.length-1]),R=(C.x+D.x+D.w)/2-k/2;return i.set(u,{x:Math.max(p,R),y:Je+b*(dt+Mt*1.5),w:k,h:dt}),T},m=Je;for(let u of a)m=l(u,m)+Mt;return t.map(u=>({node:u,box:i.get(u.id)??{x:Je,y:Je,w:Ct,h:dt}}))}function Hl(t,e){let r=t.nodes,n=t.edges??[],a;pp(t.kind)?a=r.map((l,m)=>({node:l,box:{x:l.x??Je+m%3*(Ct+Mt),y:l.y??Je+Math.floor(m/3)*(dt+Mt),w:l.w??Ct,h:l.h??dt}})):t.kind==="tree"||t.kind==="org-chart"||t.kind==="nested"?a=yp(r,e??(()=>{})):t.kind==="layers"||t.kind==="pyramid"||t.kind==="gantt"?a=bp(r):t.kind==="flowchart"||t.kind==="process"||t.kind==="sequence"?a=hp(r):t.kind==="timeline"||t.kind==="line"||t.kind==="scatter"||t.kind==="bar"?a=gp(r):a=r.map((l,m)=>({node:l,box:fp(m,3)}));let i=0,s=0;for(let l of a)i=Math.max(i,l.box.x+l.box.w),s=Math.max(s,l.box.y+l.box.h);i=Math.max(320,Math.ceil((i+Je)/4)*4),s=Math.max(96,Math.ceil((s+Je)/4)*4);let o=n.map(l=>({edge:l,fromId:l.from,toId:l.to}));return{nodes:a,edges:o,width:i,height:s}}function jl(t){return{x:t.x+t.w/2,y:t.y+t.h/2}}function Ul(t,e,r){if(r==="left")return{x:t.x,y:t.y+t.h/2,port:"left"};if(r==="right")return{x:t.x+t.w,y:t.y+t.h/2,port:"right"};if(r==="top")return{x:t.x+t.w/2,y:t.y,port:"top"};if(r==="bottom")return{x:t.x+t.w/2,y:t.y+t.h,port:"bottom"};let n=jl(t),a=jl(e),i=a.x-n.x,s=a.y-n.y;return Math.abs(i)>=Math.abs(s)?i>=0?{x:t.x+t.w,y:t.y+t.h/2,port:"right"}:{x:t.x,y:t.y+t.h/2,port:"left"}:s>=0?{x:t.x+t.w/2,y:t.y+t.h,port:"bottom"}:{x:t.x+t.w/2,y:t.y,port:"top"}}function vp(t,e){if(t.x===e.x)return`M ${t.x} ${t.y} L ${e.x} ${e.y}`;if(t.y===e.y)return`M ${t.x} ${t.y} L ${e.x} ${e.y}`;let r=t.port==="left"||t.port==="right",n=e.port==="left"||e.port==="right";if(r&&n){let i=(t.x+e.x)/2,s=t.port==="right"?1:-1;return`M ${t.x} ${t.y} H ${i-s*8} Q ${i} ${t.y} ${i} ${t.y+8} V ${e.y-8} Q ${i} ${e.y} ${i+8} ${e.y} H ${e.x}`}if(!r&&!n){let i=(t.y+e.y)/2,s=t.port==="bottom"?1:-1;return`M ${t.x} ${t.y} V ${i-s*8} Q ${t.x} ${i} ${t.x+8} ${i} H ${e.x-8} Q ${e.x} ${i} ${e.x} ${i+8} V ${e.y}`}if(r){let i=t.port==="right"?1:-1;return`M ${t.x} ${t.y} H ${t.x+i*8*2} Q ${t.x+i*8*2} ${t.y} ${t.x+i*8*2} ${e.y} V ${e.y} H ${e.x}`}let a=t.port==="bottom"?1:-1;return`M ${t.x} ${t.y} V ${t.y+a*8*2} Q ${t.x} ${t.y+a*8*2} ${e.x} ${t.y+a*8*2} H ${e.x} V ${e.y}`}function Vl(t,e,r){let n=Ul(t,e,r?.fromPort),a=Ul(e,t,r?.toPort);return{d:vp(n,a),a:n,b:a}}function Wl(t,e){let r=(t.x+e.x)/2,n=(t.y+e.y)/2,a=Math.abs(t.x-e.x)<Math.abs(t.y-e.y);if(a){let i=e.x>=t.x?1:-1;return{cx:r+i*16,cy:n,maskY:n-6,vertical:a}}return{cx:r,cy:n,maskY:n-20,vertical:a}}var xp={paper:"#f5f5f5",paper2:"#ececec",ink:"#2d3142",muted:"#4f5d75",soft:"#7a8399",rule:"rgba(45,49,66,0.12)",accent:"#eb6c36",accentTint:"rgba(235,108,54,0.08)",link:"#2e5aa8"},wp={paper:"#2d3142",paper2:"#393e53",ink:"#f5f5f5",muted:"#bfc0c0",soft:"#8e98ac",rule:"rgba(245,245,245,0.12)",accent:"#f08a59",accentTint:"rgba(240,138,89,0.10)",link:"#6a95d8"};function kp(){let t="var(--dsw-alias-state-business-primary, #4f8ef7)";return{paper:"var(--dsw-alias-bg-layer-2, #ffffff)",paper2:"var(--dsw-alias-bg-layer-3, #f5f5f5)",ink:"var(--dsw-alias-label-primary, #2d3142)",muted:"var(--dsw-alias-label-secondary, #4f5d75)",soft:"var(--dsw-alias-label-tertiary, #7a8399)",rule:"var(--dsw-alias-border-l2, rgba(45,49,66,0.12))",accent:t,accentTint:`color-mix(in srgb, ${t} 10%, transparent)`,link:t}}function Yl(t,e){let r=t===void 0?kp():t==="dark"?wp:xp;return e===void 0?r:{paper:e.paper??r.paper,paper2:e["paper-2"]??r.paper2,ink:e.ink??r.ink,muted:e.muted??r.muted,soft:e.soft??r.soft,rule:e.rule??r.rule,accent:e.accent??r.accent,accentTint:e["accent-tint"]??r.accentTint,link:e.link??r.link}}function Fi(t,e){switch(t){case"focal":return{fill:e.accentTint,stroke:e.accent};case"store":return{fill:Qe(e.ink,.05),stroke:e.muted};case"external":return{fill:Qe(e.ink,.03),stroke:Qe(e.ink,.3)};case"input":return{fill:Qe(e.muted,.1),stroke:e.soft};case"optional":return{fill:Qe(e.ink,.02),stroke:Qe(e.ink,.2),dashed:!0};case"security":return{fill:Qe(e.accent,.05),stroke:Qe(e.accent,.5),dashed:!0};default:return{fill:e.paper,stroke:e.ink}}}function Kl(t,e){switch(t){case"accent":return e.accent;case"link":return e.link;default:return e.muted}}function Qe(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t} ${e*100}%, transparent)`;if(t.startsWith("#")){let r=t.slice(1),n=r.length===3?r.split("").map(o=>o+o).join(""):r,a=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${a},${i},${s},${e})`}return t.replace(/rgba?\(([^)]*)\)/,(r,n)=>{let a=n.split(",").map(i=>i.trim());return a.length===3?`rgba(${a.join(",")},${e})`:a.length===4?`rgba(${a[0]},${a[1]},${a[2]},${e})`:t})}var ne=require("react/jsx-runtime"),_l="'Geist', -apple-system, 'Segoe UI', sans-serif",dn="'Geist Mono', ui-monospace, 'SF Mono', monospace",Jl=64,Zl=150,Ql=22,Sp=[{label:"Focal",type:"focal"},{label:"Backend",type:"backend"},{label:"Store",type:"store"},{label:"External",type:"external"},{label:"Optional",type:"optional"},{label:"Security",type:"security"}];function Ap(t){let e=new Map;for(let r of t)e.has(r.to)||e.set(r.to,r.from);return r=>e.get(r)}function Tp(t,e,r,n,a,i){let s=Fi(n,i),o=t.x+t.w/2,l=t.y+(t.h-Jl)/2+28,m=t.y+(t.h-Jl)/2+44,u=Math.min(44,Math.max(24,(a??"").length*7+8));return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:6,fill:i.paper}),(0,ne.jsx)("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:6,fill:s.fill,stroke:s.stroke,strokeWidth:1,strokeDasharray:s.dashed===!0?"5,4":void 0}),a!==void 0&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("rect",{x:t.x+8,y:t.y+6,width:u,height:12,rx:2,fill:"transparent",stroke:Qe(s.stroke,.4),strokeWidth:.8}),(0,ne.jsx)("text",{x:t.x+8+u/2,y:t.y+15,fill:Qe(s.stroke,.8),fontSize:7,fontFamily:dn,textAnchor:"middle",letterSpacing:.8,children:a})]}),(0,ne.jsx)("text",{x:o,y:l,fill:i.ink,fontSize:12,fontWeight:600,fontFamily:_l,textAnchor:"middle",children:e}),r!==void 0&&(0,ne.jsx)("text",{x:o,y:m,fill:i.soft,fontSize:9,fontFamily:dn,textAnchor:"middle",children:r})]})}function Np(t,e,r,n){let a=Vl(t.from,t.to),i=Kl(t.kind,r),s=t.kind==="dashed",o=t.kind==="accent"?1.4:1.2,l=Wl(a.a,a.b);return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("path",{d:a.d,fill:"none",stroke:i,strokeWidth:o,strokeDasharray:s?"5,4":void 0,markerEnd:`url(#${n})`}),t.label!==void 0&&(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:l.cx-(t.label.length*5+8)/2,y:l.maskY,width:t.label.length*5+8,height:12,rx:2,fill:r.paper}),(0,ne.jsx)("text",{x:l.cx,y:l.maskY+9,fill:r.soft,fontSize:8,fontFamily:dn,textAnchor:"middle",letterSpacing:.5,children:t.label})]})]},e)}function Mp(t,e){return(0,ne.jsxs)("defs",{children:[(0,ne.jsx)("marker",{id:`${t}-arrow`,markerWidth:8,markerHeight:6,refX:7,refY:3,orient:"auto",children:(0,ne.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:e.muted})}),(0,ne.jsx)("marker",{id:`${t}-arrow-accent`,markerWidth:8,markerHeight:6,refX:7,refY:3,orient:"auto",children:(0,ne.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:e.accent})}),(0,ne.jsx)("marker",{id:`${t}-arrow-link`,markerWidth:8,markerHeight:6,refX:7,refY:3,orient:"auto",children:(0,ne.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:e.link})})]})}function Cp(t,e){return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("defs",{children:(0,ne.jsx)("pattern",{id:`${t}-dots`,width:22,height:22,patternUnits:"userSpaceOnUse",children:(0,ne.jsx)("circle",{cx:1,cy:1,r:.9,fill:Qe(e.ink,.1)})})}),(0,ne.jsx)("rect",{width:"100%",height:"100%",fill:e.paper}),(0,ne.jsx)("rect",{width:"100%",height:"100%",fill:`url(#${t}-dots)`,opacity:.55})]})}function zp(t,e){let r=t.label.length*7+12,n=t.x+t.w/2;return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:8,fill:Qe(e.ink,.02),stroke:Qe(e.ink,.1),strokeWidth:.8}),(0,ne.jsx)("rect",{x:n-r/2,y:t.y+4,width:r,height:12,rx:2,fill:e.paper}),(0,ne.jsx)("text",{x:n,y:t.y+13,fill:Qe(e.ink,.4),fontSize:7,fontFamily:dn,textAnchor:"middle",letterSpacing:1.2,children:t.label})]})}function Rp(t,e,r,n){return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("line",{x1:40,y1:0,x2:Math.max(120,r-40),y2:0,stroke:Qe(t.ink,.1),strokeWidth:.8}),(0,ne.jsx)("text",{x:40,y:16,fill:t.soft,fontSize:8,fontFamily:dn,letterSpacing:1.6,children:"LEGEND"}),e.map((a,i)=>{let s=Fi(a.type,t),o=40+i%n*Zl,l=32+Math.floor(i/n)*Ql;return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:o,y:l,width:14,height:10,rx:2,fill:s.fill,stroke:s.stroke,strokeWidth:1,strokeDasharray:s.dashed===!0?"3,2":void 0}),(0,ne.jsx)("text",{x:o+20,y:l+9,fill:t.soft,fontSize:8.5,fontFamily:_l,children:a.label})]},a.label)})]})}function Gp(t,e){return t==="accent"?`${e}-arrow-accent`:t==="link"?`${e}-arrow-link`:`${e}-arrow`}var Xl=0;function $p(){return Xl+=1,`genui-diagram-${Xl}`}function ed({node:t}){let e=(0,ln.useMemo)($p,[]),r=(0,ln.useMemo)(()=>Yl(t.variant,t.theme),[t.variant,t.theme]),n=(0,ln.useMemo)(()=>Hl(t,Ap(t.edges??[])),[t]),a=(0,ln.useMemo)(()=>new Map(n.nodes.map(G=>[G.node.id,G.box])),[n]),i=`${e}-title`,s=`${e}-caption`,o=`${e}-desc`,l=n.nodes.slice(0,A.maxDiagramNodes),m=n.edges.slice(0,A.maxDiagramEdges),u=(t.zones??[]).slice(0,A.maxDiagramZones),p=0,b=A.maxDiagramFocal,y=n.height,k=Sp.filter(G=>G.type!==void 0&&l.some(L=>(L.node.type??"backend")===G.type)),T=Math.max(1,Math.floor((n.width-40)/Zl)),D=24+Math.max(1,Math.ceil(k.length/T))*Ql,R=y+D+12;return(0,ne.jsxs)("figure",{className:"genui-diagram","data-genui-diagram":!0,children:[t.title!==void 0&&(0,ne.jsx)("figcaption",{id:s,style:{fontFamily:"Instrument Serif, 'Times New Roman', serif",fontSize:20,marginBottom:8,color:r.ink},children:B(t.title)}),(0,ne.jsxs)("svg",{role:"img","aria-labelledby":i,"aria-describedby":o,viewBox:`0 0 ${n.width} ${R}`,style:{maxWidth:"100%",height:"auto",background:r.paper},children:[(0,ne.jsx)("title",{id:i,children:t.title??t.kind}),(0,ne.jsx)("desc",{id:o,children:`${t.kind} diagram with ${l.length} nodes and ${m.length} connectors`}),Mp(e,r),Cp(e,r),(0,ne.jsx)("g",{children:u.map((G,L)=>(0,ne.jsx)("g",{children:zp({label:G.label,x:G.x??0,y:G.y??0,w:G.w??100,h:G.h??100},r)},`zone-${L}`))}),(0,ne.jsx)("g",{children:m.map((G,L)=>{let X=a.get(G.fromId),J=a.get(G.toId);return X===void 0||J===void 0?null:Np({from:X,to:J,label:G.edge.label,kind:G.edge.kind},L,r,Gp(G.edge.kind,e))})}),(0,ne.jsx)("g",{children:l.map(G=>{let L=G.node.type==="focal"&&p>=b?void 0:G.node.type;return G.node.type==="focal"&&(p+=1),(0,ne.jsx)("g",{children:Tp(G.box,G.node.label,G.node.sub,L,G.node.tag,r)},G.node.id)})}),(0,ne.jsx)("g",{transform:`translate(0, ${y+8})`,children:Rp(r,k,n.width,T)})]})]})}var td=require("react");var Ir=require("react/jsx-runtime");function rd({node:t}){let e=Oe(),[r,n]=(0,td.useState)(!1);return(0,Ir.jsxs)("figure",{className:g.media,children:[t.alt!==void 0&&(0,Ir.jsx)("figcaption",{className:g.mediaLabel,children:B(t.alt)}),r?(0,Ir.jsx)("div",{className:g.mediaError,role:"alert",children:e("block.imageError")}):(0,Ir.jsx)("img",{className:g.mediaPlayer,src:t.src,alt:t.alt??e("block.image"),loading:"lazy",decoding:"async",style:{maxHeight:"min(70vh, 720px)",objectFit:"contain"},onError:()=>n(!0)})]})}var ua=require("react");var Jt=require("react/jsx-runtime"),Pi="http://www.w3.org/2000/svg";function nd(t){let e=new DOMParser().parseFromString(t,"image/svg+xml"),r=e.documentElement;return e.doctype!==null||e.querySelector("parsererror")!==null||r.localName!=="svg"?null:r}function Ep(t){try{let e=nd(t);if(e===null)return null;if(e.namespaceURI!==Pi){if(e.namespaceURI!==null)return null;let r=t.replace(/<svg(?=[\s/>])/,`<svg xmlns="${Pi}"`),n=nd(r);return n===null||n.namespaceURI!==Pi?null:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`}return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`}catch{return null}}function ad({node:t}){let e=(0,ua.useMemo)(()=>Ep(t.code),[t.code]),[r,n]=(0,ua.useState)(null);return(0,Jt.jsxs)("div",{"data-genui-svg":!0,children:[t.title!==void 0&&(0,Jt.jsx)("div",{className:g.echartTitle,children:B(t.title)}),e===null||r===e?(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("div",{role:"status",children:_("block.svgError")}),(0,Jt.jsx)("pre",{style:{overflow:"auto",maxHeight:400},children:(0,Jt.jsx)("code",{children:t.code})})]}):(0,Jt.jsx)("img",{src:e,alt:t.title??_("block.svgLabel"),style:{display:"block",width:"100%",height:t.height??"auto",maxHeight:800,objectFit:"contain"},onError:()=>{n(e)}},e)]})}var _t=require("react");Dr();var id=new Set(["bar","line","area","pie","scatter","bigline"]);function ma(t){return t.option!==void 0?"echarts-full":id.has(t.preset??"bar")?"echarts-core":"echarts-full"}async function sd(t,e,r,n="core"){return(await Er(n==="full"?"echarts-full":"echarts-core")).createChart(t,e,r)}var Xt=require("react/jsx-runtime"),od=["#679efe","#4ed17e","#f5b83d","#f2707a","#8b7ff0","#3fc7d4","#b7c8fe","#9aa3b2"];function yr(t,e,r){let n=[r??null,typeof document>"u"?null:document.body,typeof document>"u"?null:document.documentElement];for(let a of n){if(a===null)continue;let i=getComputedStyle(a).getPropertyValue(t).trim();if(i!=="")return i}return e}function Dp(t){return{accent:yr("--dsw-alias-state-business-primary","#4f8ef7",t),labelPrimary:yr("--dsw-alias-label-primary","#e6e6e6",t),labelSecondary:yr("--dsw-alias-label-secondary","#a0a0a0",t),labelTertiary:yr("--dsw-alias-label-tertiary","#6b6b6b",t),border:yr("--dsw-alias-border-l1","rgba(255,255,255,0.12)",t),bgLayer1:yr("--dsw-alias-bg-layer-1","#1a1a1e",t)}}function ld(t,e){let r=Dp(e),n=t.palette!==void 0&&t.palette.length>0?[...t.palette]:aa.map((l,m)=>yr(l.replace("var(","").replace(")",""),od[m%od.length],e)),a=t.data??[],i=t.series,s=(l={})=>({renderMode:"richText",backgroundColor:r.bgLayer1,borderColor:r.border,textStyle:{color:r.labelPrimary},...l}),o={color:n,textStyle:{color:r.labelSecondary,fontFamily:"inherit"},backgroundColor:"transparent",grid:{left:48,right:16,top:24,bottom:32},tooltip:s({trigger:"item"})};switch(t.preset){case"wordCloud":return{...o,series:[{type:"wordCloud",sizeRange:[16,64],rotationRange:[0,0],gridSize:8,textStyle:{fontFamily:"sans-serif"},data:a.map((l,m)=>({name:l.label,value:l.value,textStyle:{color:n[m%n.length]}}))}]};case"pie":return{...o,tooltip:s({trigger:"item",formatter:"{b}: {c} ({d}%)"}),legend:{bottom:0,textStyle:{color:r.labelTertiary}},series:[{type:"pie",radius:["40%","70%"],avoidLabelOverlap:!0,itemStyle:{borderRadius:6,borderColor:r.bgLayer1,borderWidth:2},label:{color:r.labelSecondary},data:a.map(l=>({name:l.label,value:l.value}))}]};case"scatter":return{...o,tooltip:s({trigger:"item"}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:[{type:"scatter",symbolSize:10,data:a.map(l=>l.value)}]};case"area":return{...o,tooltip:s({trigger:"axis"}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map((l,m)=>({name:l.label,type:"line",smooth:!0,areaStyle:{opacity:.15},data:l.data.map(u=>u.value),...pa(l.color,m,i)})),legend:i!==void 0?{bottom:0,textStyle:{color:r.labelTertiary}}:void 0};case"line":return{...o,tooltip:s({trigger:"axis"}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map((l,m)=>({name:l.label,type:"line",smooth:!0,showSymbol:!0,symbolSize:6,data:l.data.map(u=>u.value),...pa(l.color,m,i)})),legend:i!==void 0?{bottom:0,textStyle:{color:r.labelTertiary}}:void 0};case"radar":{let l=i??[{label:"",data:a}],m=(l[0]?.data??[]).map(p=>({name:p.label,max:void 0})),u=Math.max(...l.flatMap(p=>p.data.map(b=>Number(b.value)||0)),1);return{...o,tooltip:s({trigger:"item"}),legend:{bottom:0,textStyle:{color:r.labelTertiary}},radar:{indicator:m.map(p=>({name:p.name,max:Math.ceil(u*1.1)})),splitLine:{lineStyle:{color:r.border}},splitArea:{show:!1},axisLine:{lineStyle:{color:r.border}},axisName:{color:r.labelTertiary}},series:[{type:"radar",symbolSize:5,areaStyle:{opacity:.12},data:l.map((p,b)=>({name:p.label,value:p.data.map(y=>Number(y.value)||0),...pa(p.color,b,i)}))}]}}case"gauge":return{...o,tooltip:s({trigger:"item"}),series:a.slice(0,4).map((l,m)=>({type:"gauge",startAngle:210,endAngle:-30,min:0,max:Math.max(Number(l.value)||0,100),center:a.length>1?[`${(m+.5)*(100/Math.min(a.length,4))}%`,"58%"]:["50%","58%"],radius:a.length>1?"62%":"82%",progress:{show:!0,width:12},axisLine:{lineStyle:{width:12,color:[[1,r.border]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},pointer:{show:!1},title:{offsetCenter:[0,"32%"],color:r.labelTertiary,fontSize:12},detail:{valueAnimation:!0,fontSize:26,offsetCenter:[0,"2%"],formatter:"{value}",color:r.labelPrimary},data:[{value:Number(l.value)||0,name:l.label}]}))};case"funnel":return{...o,tooltip:s({trigger:"item",formatter:"{b}: {c}"}),legend:{bottom:0,textStyle:{color:r.labelTertiary}},series:[{type:"funnel",left:"8%",width:"84%",top:16,bottom:40,gap:2,label:{position:"inside",color:"#fff",formatter:"{b} {c}"},itemStyle:{borderWidth:0},data:a.map(l=>({name:l.label,value:Number(l.value)||0}))}]};case"treemap":return{...o,tooltip:s({trigger:"item",formatter:"{b}: {c}"}),series:[{type:"treemap",roam:!1,nodeClick:!1,breadcrumb:{show:!1},upperLabel:{show:!1},label:{color:r.labelPrimary},itemStyle:{borderColor:r.bgLayer1,borderWidth:2,gapWidth:2},data:a.map(l=>({name:l.label,value:Number(l.value)||0}))}]};case"sankey":{let l=t.links??[],m=a.length>0?a.map(u=>u.label):[...new Set(l.flatMap(u=>[u.from,u.to]))];return{...o,tooltip:s({trigger:"item"}),series:[{type:"sankey",left:8,right:8,top:12,bottom:12,nodeGap:12,lineStyle:{color:"gradient",curveness:.5,opacity:.32},label:{color:r.labelSecondary},emphasis:{focus:"adjacency"},data:m.map(u=>({name:u})),links:l.map(u=>({source:u.from,target:u.to,value:u.value??1}))}]}}case"graph":{let l=t.links??[],m=a.length>0?a.map(p=>p.label):[...new Set(l.flatMap(p=>[p.from,p.to]))],u=new Map;for(let p of l)u.set(p.from,(u.get(p.from)??0)+1),u.set(p.to,(u.get(p.to)??0)+1);return{...o,tooltip:s({trigger:"item"}),series:[{type:"graph",layout:"force",roam:!0,label:{show:!0,color:r.labelSecondary,fontSize:11},force:{repulsion:200,edgeLength:80},lineStyle:{color:r.border,curveness:.1},emphasis:{focus:"adjacency"},data:m.map(p=>({name:p,symbolSize:16+(u.get(p)??0)*5})),links:l.map(p=>({source:p.from,target:p.to}))}]}}case"heatmap":{let l=i??[{label:"",data:a}],m=(l[0]?.data??[]).map(b=>b.label),u=l.flatMap((b,y)=>b.data.map((k,T)=>[T,y,Number(k.value)||0])),p=Math.max(...u.map(b=>b[2]),1);return{...o,tooltip:s({trigger:"item",position:"top"}),grid:{left:64,right:16,top:16,bottom:48},xAxis:{type:"category",data:m,splitArea:{show:!1},axisLabel:{color:r.labelTertiary},axisLine:{lineStyle:{color:r.border}}},yAxis:{type:"category",data:l.map(b=>b.label),splitArea:{show:!1},axisLabel:{color:r.labelTertiary},axisLine:{lineStyle:{color:r.border}}},visualMap:{min:0,max:p,calculable:!0,orient:"horizontal",left:"center",bottom:0,textStyle:{color:r.labelTertiary}},series:[{type:"heatmap",data:u,label:{show:u.length<=60,color:r.labelPrimary},itemStyle:{borderColor:r.bgLayer1,borderWidth:2}}]}}case"bigline":return{...o,tooltip:s({trigger:"axis"}),grid:{left:48,right:20,top:24,bottom:56},dataZoom:[{type:"inside",start:0,end:45},{type:"slider",height:16,bottom:8,borderColor:r.border,textStyle:{color:r.labelTertiary}}],xAxis:{type:"category",boundaryGap:!1,data:a.map(l=>l.label),axisLabel:{color:r.labelTertiary},axisLine:{lineStyle:{color:r.border}}},yAxis:{type:"value",axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map((l,m)=>({name:l.label,type:"line",smooth:!0,showSymbol:!1,areaStyle:{opacity:.12},data:l.data.map(u=>u.value),...pa(l.color,m,i)})),legend:i!==void 0?{bottom:26,textStyle:{color:r.labelTertiary}}:void 0};default:return{...o,tooltip:s({trigger:"axis",axisPointer:{type:"shadow"}}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map(l=>({name:l.label,type:"bar",barMaxWidth:40,itemStyle:{borderRadius:[4,4,2,2],...l.color!==void 0?{color:l.color}:{}},data:l.data.map(m=>m.value)})),legend:i!==void 0?{bottom:0,textStyle:{color:r.labelTertiary}}:void 0}}}function pa(t,e,r){return t!==void 0?{itemStyle:{color:t}}:{}}function dd({node:t}){let e=(0,_t.useRef)(null),[r,n]=(0,_t.useState)("loading"),a=(0,_t.useRef)(null);return(0,_t.useEffect)(()=>{let i=!0,s=e.current;if(s===null)return;let o=t.option??ld(t,s),l=ma(t)==="echarts-full"?"full":"core";return sd(s,o,{height:t.height??300},l).then(m=>{if(!i){m.dispose();return}a.current=m,n("ready")}).catch(()=>{i&&n("error")}),()=>{i=!1,a.current?.dispose(),a.current=null}},[]),(0,_t.useEffect)(()=>{if(r!=="ready")return;let i=e.current;if(i===null)return;let s=new ResizeObserver(()=>{a.current?.resize()});return s.observe(i),()=>{s.disconnect()}},[r]),(0,_t.useEffect)(()=>{if(r!=="ready"||a.current===null)return;let i=t.option??ld(t,e.current);a.current.setOption(i,!0)},[t,r]),r==="error"?(0,Xt.jsxs)("div",{className:g.echartFallback,"data-genui-echart":!0,children:[(0,Xt.jsx)("div",{className:g.echartErr,children:"ECharts \u6E32\u67D3\u5931\u8D25"}),t.title!==void 0&&(0,Xt.jsx)("div",{className:g.echartHint,children:B(t.title)})]}):(0,Xt.jsxs)("div",{className:g.echartWrap,"data-genui-echart":!0,children:[t.title!==void 0&&(0,Xt.jsx)("div",{className:g.echartTitle,children:B(t.title)}),(0,Xt.jsx)("div",{ref:e,className:g.echartCanvas,style:{height:`${t.height??300}px`},role:"img","aria-label":t.title??"ECharts chart"}),r==="loading"&&(0,Xt.jsx)("div",{className:g.echartHint,children:"\u52A0\u8F7D\u56FE\u8868\u2026"})]})}var E=require("react/jsx-runtime"),Ip=v0;function pd(t){return typeof t=="object"&&t!==null&&"type"in t}function Lp(t){let e=/^([+\-−]?[\d.,]+(?:[eE][+\-]?\d+)?)\s*(.*)$/.exec(t.trim());if(e===null||e[1]===void 0)return{num:t,unit:"",numeric:void 0,decimals:0};let r=e[1],n=r.replace(/[,,]/g,""),a=Number(n),i=Number.isFinite(a)&&!/[eE]/.test(n)?a:void 0,s=n.includes(".")?(n.split(".")[1]??"").length:0;return{num:r,unit:e[2]??"",numeric:i,decimals:Math.min(s,4)}}function cd({values:t}){let a=Math.min(...t),s=Math.max(...t)-a||1,o=t.length<=1?0:92/(t.length-1),l=t.map((b,y)=>[2+y*o,22-(b-a)/s*20]),m=l.map(([b,y])=>`${b.toFixed(1)},${y.toFixed(1)}`).join(" "),u=l[l.length-1],p=`M 2,22 L ${m.split(" ").join(" L ")} L ${u[0].toFixed(1)},22 Z`;return(0,E.jsxs)("svg",{className:g.statSpark,viewBox:"0 0 96 24",preserveAspectRatio:"none","aria-hidden":"true",children:[(0,E.jsx)("path",{d:p,fill:"var(--dsl-g-accent)",opacity:"0.14"}),(0,E.jsx)("polyline",{points:m,fill:"none",stroke:"var(--dsl-g-accent)",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),(0,E.jsx)("path",{d:`M ${u[0].toFixed(1)} ${u[1].toFixed(1)} L ${u[0].toFixed(1)} ${u[1].toFixed(1)}`,stroke:"var(--dsl-g-accent)",strokeWidth:5,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",fill:"none"})]})}function Bp(t,e,r){let[n,a]=(0,ha.useState)(r?0:t);return(0,ha.useEffect)(()=>{if(!r){a(t);return}if(typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){a(t);return}let s=0,o=performance.now(),l=720,m=u=>{let p=Math.min(1,(u-o)/l),b=1-Math.pow(1-p,3);a(t*b),p<1&&(s=requestAnimationFrame(m))};return s=requestAnimationFrame(m),()=>cancelAnimationFrame(s)},[t,r]),n.toFixed(e)}function ud({value:t,unitClass:e,animate:r=!1}){let n=Lp(t),a=n.numeric,i=Bp(a??0,n.decimals,r&&a!==void 0);return(0,E.jsxs)(E.Fragment,{children:[a===void 0?B(n.num):i,n.unit!==""&&(0,E.jsx)("span",{className:e??g.statUnit,children:B(n.unit)})]})}function qp(t){return typeof t=="string"?t:pd(t)?"":`${t.title} ${t.desc??""}`}function fa(t,e){if(e===void 0)return;let r=t?.fields[e];return r===void 0||r===""?void 0:r}function Op(t,e,r,n=0,a){if(n>A.maxDepth)return null;switch(t.type){case"text":{let i=t.size??"body";return t.copyable?(0,E.jsx)(ea,{text:t.content,title:t.title,children:(0,E.jsx)("div",{className:`${g.text} ${g[i]}`,children:B(t.content)})},e):(0,E.jsx)("div",{className:`${g.text} ${g[i]}`+(t.center?` ${g.center}`:""),children:B(t.content)},e)}case"row":return(0,E.jsxs)("div",{className:g.row+(t.wrap?` ${g.wrap}`:""),children:[t.items.map((i,s)=>xt(i,s,r,n+1,a)),t.spacer&&(0,E.jsx)("div",{className:g.spacer})]},e);case"col":return(0,E.jsx)("div",{className:g.col,style:t.gap!==void 0?{gap:`${t.gap}px`}:void 0,children:t.items.map((i,s)=>xt(i,s,r,n+1,a))},e);case"grid":return(0,E.jsx)("div",{className:g.grid,style:{gridTemplateColumns:`repeat(${Math.max(1,t.cols)}, minmax(0, 1fr))`},children:t.items.map((i,s)=>{let o=xt(i,s,r,n+1,a),l=typeof i=="object"&&i!==null&&typeof i.span=="number"?Math.max(1,Math.min(12,i.span)):1;return l>1?(0,E.jsx)("div",{className:g.gridSpan,style:{gridColumn:`span ${l}`},children:o},s):o})},e);case"card":{let i=t.tone===void 0?"":` ${g[`card${t.tone[0].toUpperCase()}${t.tone.slice(1)}`]??""}`,s=t.accent===void 0?void 0:{borderColor:`color-mix(in srgb, ${t.accent} 18%, var(--dsl-g-border))`,"--dsl-card-accent":t.accent};return(0,E.jsxs)("div",{"data-motion-component":"card",className:`${g.card}${i}`,style:s,children:[t.title!==void 0&&(0,E.jsx)("div",{className:g.cardTitle,children:B(t.title)}),t.items.map((o,l)=>xt(o,l,r,n+1,a))]},e)}case"button":{let i=t.tone??"",s=`${g.button} ${g[i]||""}`+(t.full?` ${g.full}`:"")+(t.small?` ${g.small}`:""),o=t.action,l=o!==void 0&&r!==void 0;return(0,E.jsxs)(q0,{className:s,disabled:!l,onClick:l?()=>r(o,{type:"button",label:t.label}):void 0,children:[t.icon!==void 0&&(0,E.jsxs)("span",{"aria-hidden":!0,children:[t.icon," "]}),B(t.label,!1)]},e)}case"input":return(0,E.jsx)(rl,{node:t,onAction:r,answers:a},e);case"select":return(0,E.jsx)(tl,{node:t,onAction:r,answers:a},e);case"checkbox":return(0,E.jsx)(al,{node:t,onAction:r,answers:a},e);case"link":{let i=Rr(t.href);return i.type==="external"?(0,E.jsx)("a",{className:g.link,href:i.href,target:"_blank",rel:"noopener noreferrer",children:B(t.label,!1)},e):i.type==="file"?(0,E.jsx)(Jn,{path:i.file.path,label:t.label,...i.file.line===void 0?{}:{line:i.file.line},children:B(t.label,!1)},e):(0,E.jsx)("span",{className:g.linkText,children:B(t.label,!1)},e)}case"image":return(0,E.jsx)(rd,{node:t},`${e}:${t.src}`);case"audio":return(0,E.jsx)(O0,{node:t},`${e}:${t.src}`);case"video":return(0,E.jsx)(F0,{node:t},`${e}:${t.src}`);case"badge":{let i=t.tone??"";return(0,E.jsxs)("span",{className:`${g.badge} ${g[i]||""}`,children:[t.icon!==void 0&&(0,E.jsxs)("span",{"aria-hidden":!0,children:[t.icon," "]}),(0,E.jsx)("span",{className:g.badgeLabel,children:B(t.label,!1)})]},e)}case"hero":{let i=t.tone??"accent",s=g[`hero${i[0].toUpperCase()}${i.slice(1)}`]??"",o=t.delta!==void 0&&t.delta.startsWith("-");return(0,E.jsxs)("div",{className:`${g.hero} ${s}`,children:[t.label!==void 0&&(0,E.jsx)("span",{className:g.heroLabel,children:B(t.label,!1)}),(0,E.jsxs)("div",{className:g.heroTop,children:[t.value!==void 0&&(0,E.jsx)("span",{className:g.heroValue,children:(0,E.jsx)(ud,{value:t.value,unitClass:g.heroUnit,animate:!0})}),t.delta!==void 0&&(0,E.jsx)("span",{className:`${g.statDelta} ${o?g.down:g.up}`,children:B(t.delta)}),t.spark!==void 0&&(0,E.jsx)("span",{className:g.heroSpark,children:(0,E.jsx)(cd,{values:t.spark})})]}),(0,E.jsx)("span",{className:g.heroTitle,children:B(t.title)}),t.subtitle!==void 0&&(0,E.jsx)("span",{className:g.heroSubtitle,children:B(t.subtitle)})]},e)}case"stat":{let i=t.delta!==void 0&&t.delta.startsWith("-");return(0,E.jsxs)("div",{"data-motion-component":"stat",className:`${g.stat}${t.size==="hero"?` ${g.statHero}`:""}`,children:[(0,E.jsx)("span",{className:g.statLabel,children:B(t.label,!1)}),(0,E.jsx)("span",{className:g.statValue,children:(0,E.jsx)(ud,{value:t.value,animate:t.size==="hero"})}),t.delta!==void 0&&(0,E.jsx)("span",{className:`${g.statDelta} ${i?g.down:g.up}`,children:B(t.delta)}),t.spark!==void 0&&(0,E.jsx)(cd,{values:t.spark})]},e)}case"progress":{let i=Math.max(0,Math.min(100,Number(t.value)||0));if(t.variant==="ring"){let o=2*Math.PI*34,l=92;return(0,E.jsxs)("div",{className:g.ring,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i,"aria-label":t.label??t.valueLabel??void 0,children:[(0,E.jsxs)("svg",{width:l,height:l,viewBox:`0 0 ${l} ${l}`,"aria-hidden":"true",children:[(0,E.jsx)("circle",{cx:l/2,cy:l/2,r:34,fill:"none",strokeWidth:9,className:g.ringTrack}),(0,E.jsx)("circle",{cx:l/2,cy:l/2,r:34,fill:"none",strokeWidth:9,strokeLinecap:"round",className:g.ringFill,strokeDasharray:`${i/100*o} ${o}`,transform:`rotate(-90 ${l/2} ${l/2})`}),(0,E.jsxs)("text",{x:l/2,y:l/2+5,textAnchor:"middle",className:g.ringValue,children:[i,"%"]})]}),(t.label!==void 0||t.valueLabel!==void 0)&&(0,E.jsxs)("div",{className:g.ringMeta,children:[t.label!==void 0&&(0,E.jsx)("span",{className:g.ringLabel,children:B(t.label,!1)}),t.valueLabel!==void 0&&(0,E.jsx)("span",{className:g.ringSub,children:B(t.valueLabel)})]})]},e)}return(0,E.jsxs)("div",{className:g.progress,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i,"aria-label":t.label??t.valueLabel??void 0,children:[(t.label!==void 0||t.valueLabel!==void 0)&&(0,E.jsxs)("div",{className:g.progressRow,children:[(0,E.jsx)("span",{children:B(t.label??"")}),t.valueLabel!==void 0&&(0,E.jsx)("span",{children:B(t.valueLabel)})]}),(0,E.jsxs)("div",{className:g.track,children:[(0,E.jsx)("div",{className:g.fill,style:{width:`${i}%`}}),t.target!==void 0&&(0,E.jsx)("span",{className:g.targetMark,style:{left:`${t.target}%`},title:_("block.target",{value:t.target})})]})]},e)}case"divider":return(0,E.jsx)("hr",{className:g.divider},e);case"list":{let i=fa(a,t.filter)?.toLowerCase(),s=t.items.slice(0,A.maxListItems),o=i===void 0?s:s.filter(l=>qp(l).toLowerCase().includes(i));return(0,E.jsxs)("div",{className:g.list,children:[o.map((l,m)=>(0,E.jsx)("div",{className:g.li,children:pd(l)?xt(l,m,r,n+1,a):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:g.liTitle,children:B(typeof l=="string"?l:l.title)}),typeof l!="string"&&l.desc!==void 0&&(0,E.jsx)("div",{className:g.liDesc,children:B(l.desc)})]})},m)),i!==void 0&&(0,E.jsx)("span",{className:g.filterHint,children:_("block.filterMatch",{shown:o.length,total:s.length})})]},e)}case"table":return(0,E.jsx)(P0,{node:t,filterValue:fa(a,t.filter),sortValue:fa(a,t.sortField),renderDetail:i=>i.map((s,o)=>xt(s,o,r,n+1,a))},e);case"chart":return(0,E.jsx)(j0,{chart:t,filterValue:fa(a,t.filter)},e);case"tabs":return(0,E.jsx)(El,{tabs:t,onAction:r,depth:n+1,answers:a},e);case"avatar":return(0,E.jsx)("div",{className:g.avatar,style:{background:t.color??B0(t.name)},children:t.name.slice(0,1).toUpperCase()},e);case"spacer":return(0,E.jsx)("div",{className:g.spacer},e);case"plot":return(0,E.jsx)(zl,{plot:t},e);case"callout":return(0,E.jsx)(Nl,{node:t},e);case"steps":return(0,E.jsx)(Ml,{steps:t},e);case"keyvalue":return(0,E.jsx)(Cl,{node:t},e);case"diff":return(0,E.jsx)(Rl,{node:t},e);case"json":return(0,E.jsx)(Gl,{node:t},e);case"code":return(0,E.jsx)($l,{node:t},e);case"radio":return(0,E.jsx)(J0,{node:t,onAction:r,answers:a},`${e}:r${a?.round??0}`);case"submit":return(0,E.jsx)(X0,{node:t,onAction:r,answers:a},e);case"switch":return(0,E.jsx)(_0,{node:t,onAction:r},e);case"slider":return(0,E.jsx)(Z0,{node:t,onAction:r,answers:a},e);case"textarea":return(0,E.jsx)(nl,{node:t,onAction:r,answers:a},e);case"accordion":return(0,E.jsx)(Dl,{node:t,onAction:r,depth:n+1,answers:a},e);case"copy":return(0,E.jsx)(Il,{node:t},e);case"mermaid":return(0,E.jsx)(Ll,{node:t},e);case"svg":return(0,E.jsx)(ad,{node:t},e);case"scene3d":return(0,E.jsx)(Bl,{node:t},e);case"timeline":return(0,E.jsx)(ql,{node:t},e);case"file-tree":return(0,E.jsx)(Ol,{node:t},e);case"breadcrumb":return(0,E.jsx)(Pl,{node:t},e);case"quiz":return(0,E.jsx)(Fl,{node:t,onAction:r,answers:a},e);case"diagram":return(0,E.jsx)(ed,{node:t},e);case"echart":return(0,E.jsx)(dd,{node:t},e);default:{let i=t,s=Ip?.(i.type);return s!==void 0?(0,E.jsx)(s,{node:i,onAction:r,renderChildren:(o,l)=>o.map((m,u)=>xt(m,Number(l)+u,r,n+1,a))},e):null}}}function xt(t,e,r,n=0,a){if(n>A.maxDepth)return null;let i=t.id??t.type+":"+e;return(0,md.createElement)(I0,{key:i,id:i,answers:a,children:Op(t,e,r,n,a)})}var vr=require("react/jsx-runtime"),Fp=300;function Pp(t){let e=(0,Ne.useRef)(new Map),r=(0,Ne.useRef)(t);r.current=t,(0,Ne.useEffect)(()=>()=>{for(let a of e.current.values())clearTimeout(a);e.current.clear()},[]);let n=(0,Ne.useCallback)((a,i)=>{if(i.type!=="slider"){r.current?.(a,i);return}let s=`${a}\0${typeof i.id=="string"?i.id:""}`,o=e.current.get(s);o!==void 0&&clearTimeout(o),e.current.set(s,setTimeout(()=>{e.current.delete(s),r.current?.(a,i)},Fp))},[]);return t===void 0?void 0:n}function Hp(t,e){return t===e?!0:JSON.stringify(t)===JSON.stringify(e)}function jp({spec:t,stateKey:e,animateEntrance:r=!0,initialState:n,onStateChange:a,onStateSnapshot:i}){let s=t.gap??16,o=Pp(k0()),l=(0,Ne.useRef)(a);l.current=a;let m=a!==void 0,[u]=(0,Ne.useState)(()=>n??(a!==void 0||e===void 0?null:T0(e))),[p,b]=(0,Ne.useState)(u?.answers??{}),[y,k]=(0,Ne.useState)(u?.multiAnswers??{}),[T,C]=(0,Ne.useState)(u?.fields??{}),D=(0,Ne.useMemo)(()=>W0(t),[t]),[R,G]=(0,Ne.useState)(u?.locked===!0),[L,X]=(0,Ne.useState)(0),[J,ae]=(0,Ne.useState)(new Set),Y=(0,Ne.useCallback)((M,j)=>{b(H=>H[M]===j?H:{...H,[M]:j})},[]),V=(0,Ne.useCallback)((M,j,H)=>{k(ee=>{let ie=ee[M]??[],Se=H?ie.includes(j)?ie:[...ie,j]:ie.filter(Me=>Me!==j);return Object.prototype.hasOwnProperty.call(ee,M)&&Se.length===ie.length&&Se.every((Me,ct)=>Me===ie[ct])?ee:{...ee,[M]:Se}})},[]),Z=(0,Ne.useCallback)((M,j)=>{C(H=>H[M]===j?H:{...H,[M]:j})},[]),Q=(0,Ne.useCallback)(M=>{ae(j=>j.has(M)?j:new Set(j).add(M))},[]),te=(0,Ne.useCallback)(()=>{b({}),k({}),G(!1),X(M=>M+1)},[]),fe=(0,Ne.useMemo)(()=>({answers:p,multiAnswers:y,fields:T,secretFields:J,registry:D,locked:R,round:L,setAnswer:Y,setMultiAnswer:V,setField:Z,registerSecretField:Q,clear:te,setLocked:G}),[p,y,T,J,D,R,L,Y,V,Z,Q,te]),he=(0,Ne.useMemo)(()=>{let M=Object.fromEntries(Object.entries(T).filter(([j])=>!J.has(j)));return{answers:p,...Object.keys(y).length>0?{multiAnswers:y}:{},locked:R,...Object.keys(M).length>0?{fields:M}:{}}},[p,y,R,T,J]);(0,Ne.useEffect)(()=>{i?.(he)},[he,i]);let ye=(0,Ne.useMemo)(()=>{if(o!==void 0)return(M,j)=>{D0(),o(M,j)}},[o]);return(0,Ne.useEffect)(()=>{if(m){l.current?.(he);return}if(e===void 0)return;let M=setTimeout(()=>N0(e,he),300);return()=>clearTimeout(M)},[e,he,m]),(0,Ne.useEffect)(()=>{E0(t)},[t]),(0,vr.jsxs)("div",{className:g.block,"data-genui":!0,children:[t.title!==void 0&&(0,vr.jsx)("div",{className:g.banner,children:B(t.title)}),(0,vr.jsx)("div",{className:g.col,style:{gap:`${s}px`},children:t.items.map((M,j)=>(0,vr.jsx)("div",{className:g.reveal,style:{animationDelay:`${Math.min(j*90,720)}ms`,...!r||u!==null?{animation:"none"}:{}},onAnimationEnd:H=>{H.target===H.currentTarget&&(H.currentTarget.style.animation="none")},children:xt(M,j,ye,0,fe)},j))})]})}var fd=(0,Ne.memo)(function(e){let[r,n]=(0,Ne.useState)({stateKey:e.stateKey,generation:0});return r.stateKey!==e.stateKey&&n({stateKey:e.stateKey,generation:r.generation+(r.stateKey===void 0?0:1)}),(0,vr.jsx)(jp,{...e},r.generation)},(t,e)=>t.stateKey===e.stateKey&&t.animateEntrance===e.animateEntrance&&t.onStateChange===e.onStateChange&&t.onStateSnapshot===e.onStateSnapshot&&Hp(t.spec,e.spec));var hd=require("react");var cn=require("react/jsx-runtime"),Up={display:"flex",flexDirection:"column",gap:"4px",padding:"8px 12px",margin:"4px 0",borderRadius:"8px",border:"1px solid rgba(127,127,127,0.35)",background:"rgba(127,127,127,0.08)",color:"inherit",fontSize:"12px",lineHeight:1.5,fontFamily:"inherit"},ga=class extends hd.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,r){console.error("[dsh-genui] render failed:",e,r.componentStack??"")}render(){let{error:e}=this.state;return e===null?this.props.children:(0,cn.jsxs)("div",{style:Up,role:"alert","data-genui-error":!0,children:[(0,cn.jsx)("span",{style:{fontWeight:600},children:_("err.boundary.body",{label:this.props.label??_("err.boundary.generic")})}),(0,cn.jsx)("span",{style:{opacity:.75,overflowWrap:"anywhere"},children:e.message})]})}};var Hi=["h1","h2","h3","body","muted","caption"],ji=["primary","danger","success","ghost"],Ui=["success","warn","danger","accent"],Vi=["text","email","password","color"],Wi=["info","success","warning","error"],ba=["bars","line","donut"],Yi=["line","area","scatter"],Ki=["16:9","4:3","1:1","9:16"],Ji=["box","sphere","cone","cylinder","torus"],Xi=["file","dir"],_i=["architecture","it-state","flowchart","sequence","state","er","timeline","swimlane","quadrant","radar","loop","nested","tree","org-chart","layers","venn","pyramid","bar","line","gantt","scatter","high-level","process","medallion","data-flow","dp-integration","dp-security-matrix"],Zi=["focal","backend","store","external","input","optional","security"],Qi=["light","dark","editorial"],es=["solid","dashed","accent","link"],ts=["auto","orthogonal","straight"],rs=["bar","line","area","pie","scatter","radar","gauge","funnel","treemap","sankey","graph","heatmap","bigline","wordCloud"],Vp=["hero"],ns=["bar","ring"],as=["info","success","warning","danger"],is=["accent","success","warning","danger"],gd=["text","num","delta","bar","badge","spark","ring","index","group"],le=(t,e,r={},n={})=>{let a=Object.fromEntries(Object.entries(e).filter(([l])=>l!=="type"&&!t.includes(l))),i=n.oneOfRequired??[],s=n.conditionalRequired??[],o=[...i.map(l=>({kind:"one-of-required",fields:l})),...s];return{required:t,fields:e,optional:a,aliases:r,valueAliases:n.valueAliases??{},oneOfRequired:i,conditionalRequired:s,rules:o,enums:n.enums??{},nested:n.nested??{},...n.validator===void 0?{}:{validator:n.validator}}},et=(t,e,r={},n={},a={})=>({required:t,fields:e,enums:n,nested:r,aliases:a}),ce={type:"string",span:"number",id:"string"},bd=et(["label","value"],{label:"string",value:"number",color:"string"}),Wp=et(["label","data"],{label:"string",color:"string",data:"array"},{data:bd}),Yp=et(["title"],{title:"string",desc:"string"}),Kp=et(["key","value"],{key:"string",value:"string"},{},{},{label:"key"}),Jp=et(["title"],{title:"string",desc:"string",time:"string"}),Xp=et(["path","newText"],{path:"string",oldText:"string-or-null",newText:"string"}),_p=et(["name","value"],{name:"string",value:"number",min:"number",max:"number",step:"number",animateTo:"number",durationMs:"number",loop:"boolean"}),Zp=et(["expr"],{expr:"string",label:"string",color:"string",kind:"string",params:"array"},{params:_p},{kind:Yi}),Qp=et(["shape"],{shape:"string",color:"string",position:"array",rotation:"array",scale:"unknown",size:"unknown"},{},{shape:Ji});function yd(t){return et(["name"],{name:"string",type:"string",children:"array"},t>0?{children:yd(t-1)}:{},{type:Xi},{label:"name"})}var e1=yd(6),t1=et(["label","items"],{label:"string",items:"nodes",content:"nodes"}),r1=et(["title","items"],{title:"string",items:"nodes"}),n1=et(["id","label"],{id:"string",label:"string",sub:"string",type:"string",x:"number",y:"number",w:"number",h:"number",tag:"string"},{},{type:Zi}),a1=et(["from","to"],{from:"string",to:"string",label:"string",kind:"string",route:"string"},{},{kind:es,route:ts}),i1=et(["label"],{label:"string",x:"number",y:"number",w:"number",h:"number"}),s1=et([],{paper:"string","paper-2":"string",ink:"string",muted:"string",soft:"string",rule:"string",accent:"string","accent-tint":"string",link:"string"}),un=le(["items"],{title:"string",gap:"number",panel:"boolean",append:"boolean",items:"nodes"});var Ft={accordion:le(["items"],{...ce,items:"array"},{},{nested:{items:r1}}),audio:le(["src"],{...ce,src:"string",alt:"string",loop:"boolean"},{url:"src",link:"src"}),avatar:le(["name"],{...ce,name:"string",color:"string"}),badge:le(["label"],{...ce,label:"string",tone:"string",icon:"string"},{text:"label",value:"label"},{enums:{tone:Ui}}),breadcrumb:le(["items"],{...ce,items:"array"}),button:le(["label"],{...ce,label:"string",tone:"string",full:"boolean",small:"boolean",icon:"string",action:"string"},{},{enums:{tone:ji}}),callout:le(["content"],{...ce,title:"string",content:"string",tone:"string"},{kind:"tone",text:"content",body:"content",desc:"content"},{enums:{tone:Wi},valueAliases:{tone:{danger:"error",warn:"warning"}}}),card:le(["items"],{...ce,title:"string",items:"nodes",tone:"string",accent:"string"},{label:"title",content:"items"},{enums:{tone:as}}),chart:le([],{...ce,kind:"string",data:"array",series:"array",horizontal:"boolean",stacked:"boolean",filter:"string",palette:"array"},{},{oneOfRequired:[["data","series"]],conditionalRequired:[{kind:"required-if",when:{field:"kind",equals:"donut"},required:["data"]}],nested:{data:bd,series:Wp},enums:{kind:ba},validator:{name:"chart-renderability"}}),checkbox:le(["label"],{...ce,label:"string",checked:"boolean",action:"string",group:"string"}),code:le(["code"],{...ce,lang:"string",code:"string",title:"string",wrap:"boolean"},{content:"code",text:"code"}),col:le(["items"],{...ce,items:"nodes",gap:"number"}),copy:le(["text"],{...ce,label:"string",text:"string"},{content:"text",code:"text",value:"text"}),diagram:le(["kind","nodes"],{...ce,kind:"string",variant:"string",title:"string",nodes:"array",edges:"array",zones:"array",theme:"object"},{},{nested:{nodes:n1,edges:a1,zones:i1,theme:s1},enums:{kind:_i,variant:Qi}}),diff:le(["diffs"],{...ce,diffs:"array"},{items:"diffs",files:"diffs"},{nested:{diffs:Xp}}),divider:le([],ce),echart:le([],{...ce,title:"string",height:"number",preset:"string",data:"array",series:"array",links:"array",palette:"array",option:"object"},{},{oneOfRequired:[["option","data","series","links"]],enums:{preset:rs}}),"file-tree":le(["items"],{...ce,items:"array"},{nodes:"items"},{nested:{items:e1}}),grid:le(["items"],{...ce,cols:"number",items:"nodes"}),image:le(["src"],{...ce,src:"string",alt:"string"},{url:"src",link:"src"}),input:le([],{...ce,label:"string",placeholder:"string",value:"string",inputType:"string",action:"string",id:"string"},{},{enums:{inputType:Vi}}),json:le(["value"],{...ce,value:"unknown"}),keyvalue:le(["pairs"],{...ce,pairs:"array"},{items:"pairs",rows:"pairs",entries:"pairs"},{nested:{pairs:Kp}}),link:le(["label"],{...ce,label:"string",href:"string"}),list:le(["items"],{...ce,items:"array",filter:"string"}),mermaid:le(["code"],{...ce,code:"string"}),svg:le(["code"],{...ce,code:"string",title:"string",height:"number"}),plot:le(["series"],{...ce,series:"array",xMin:"number",xMax:"number",yMin:"number",yMax:"number",title:"string"},{},{nested:{series:Zp}}),progress:le(["value"],{...ce,value:"number",label:"string",valueLabel:"string",variant:"string",target:"number"},{},{enums:{variant:ns}}),quiz:le(["question","options"],{...ce,question:"string",options:"array",explanation:"string",id:"string",action:"string"},{title:"question",text:"question",choices:"options",items:"options"}),radio:le(["options"],{...ce,label:"string",options:"array",selected:"number",action:"string",group:"string",answer:"unknown",explanation:"string"},{items:"options"}),row:le(["items"],{...ce,items:"nodes",wrap:"boolean",spacer:"boolean"}),scene3d:le(["meshes"],{...ce,title:"string",meshes:"array",ambient:"number",background:"string"},{},{nested:{meshes:Qp}}),select:le(["options"],{...ce,label:"string",options:"array",action:"string",selected:"number",id:"string"},{items:"options"}),slider:le([],{...ce,label:"string",min:"number",max:"number",step:"number",value:"number",action:"string",id:"string"}),spacer:le([],ce),hero:le(["title"],{...ce,title:"string",subtitle:"string",value:"string",label:"string",delta:"string",spark:"array",tone:"string"},{},{enums:{tone:is}}),stat:le(["label","value"],{...ce,label:"string",value:"string",delta:"string",spark:"array",size:"string"},{},{enums:{size:Vp}}),steps:le(["steps"],{...ce,steps:"array",current:"number"},{items:"steps"},{nested:{steps:Yp}}),submit:le(["label"],{...ce,label:"string",action:"string",resetAction:"string",groups:"array"}),switch:le(["label"],{...ce,label:"string",checked:"boolean",action:"string"}),table:le(["columns","rows"],{...ce,columns:"array",rows:"array",types:"array",total:"boolean",details:"array",filter:"string",filterColumn:"number",sortField:"string",export:"boolean"},{headers:"columns",data:"rows",items:"rows"}),tabs:le(["tabs"],{...ce,tabs:"array"},{},{nested:{tabs:t1}}),text:le(["content"],{...ce,content:"string",size:"string",center:"boolean",copyable:"boolean",title:"string"},{text:"content"},{enums:{size:Hi}}),textarea:le([],{...ce,label:"string",placeholder:"string",rows:"number",value:"string",action:"string",id:"string"}),timeline:le(["items"],{...ce,items:"array"},{},{nested:{items:Jp}}),video:le(["src"],{...ce,src:"string",alt:"string",poster:"string",loop:"boolean",muted:"boolean",aspectRatio:"string"},{url:"src",link:"src"},{enums:{aspectRatio:Ki}})},xr=new Set(Object.keys(Ft));function cr(t){if(typeof t!="object"||t===null)return!1;let e=t;return typeof e.type!="string"||e.type===""?!1:Array.isArray(e.items)?xr.has(e.type):!0}function ss(t){if(typeof t!="object"||t===null)return null;let e=t;if(typeof e.type!="string"||e.type==="")return null;let r=xr.has(e.type)?Ft[e.type]:void 0,n=typeof e.title=="string"&&r!==void 0&&!("title"in r.fields)?e.title:void 0,a={...t};return n!==void 0&&delete a.title,{items:[a],...n!==void 0?{title:n}:{},...e.panel===!0?{panel:!0}:{},...e.append===!0?{append:!0}:{}}}function Zt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:void 0}function os(t){let e=Zt(t);return e!==void 0&&typeof e.type=="string"}var o1=["label","value","delta","spark","size"],l1={label:"title",name:"title",description:"desc",content:"desc",text:"desc",body:"desc",detail:"desc"};function d1(t,e,r){if(t.length===0)return null;let n=[];for(let a=0;a<t.length;a++){let i=t[a],s=Zt(i);if(s===void 0)return null;if(os(i)){n.push(r(i,`${e}.items[${a}]`));continue}if(typeof s.label!="string"&&typeof s.value!="string")return null;let o={type:"stat"};for(let l of o1)s[l]!==void 0&&(o[l]=s[l]);n.push(o)}return n}function c1(t,e,r,n){let a=Ft[r];if(a===void 0)return t;let i={...t};for(let[s,o]of Object.entries(a.aliases)){if(!(s in i))continue;let l=`${e}.${s}`,m=o in i;m||(i[o]=i[s]),delete i[s],n.push({kind:"alias",path:l,message:m?`${l} is ignored because canonical field '${o}' is present`:`${l} normalized/adopted as '${o}'`,type:r,field:s,canonical:o})}for(let[s,o]of Object.entries(a.valueAliases)){let l=i[s];if(typeof l!="string")continue;let m=o[l];m===void 0||m===l||(i[s]=m,n.push({kind:"alias",path:`${e}.${s}`,message:`${e}.${s} '${l}' normalized to '${m}'`,type:r,field:s,canonical:m}))}return i}function ls(t,e,r,n,a){if(Array.isArray(t))return t.map((o,l)=>ls(o,e,`${r}[${l}]`,n,a));let i=Zt(t);if(i===void 0)return t;let s={...i};for(let[o,l]of Object.entries(e.aliases))!(o in s)||l in s||(s[l]=s[o],delete s[o],a.push({kind:"alias",path:`${r}.${o}`,message:`${r}.${o} normalized/adopted as '${l}'`,type:n,field:o,canonical:l}));for(let[o,l]of Object.entries(e.nested))s[o]!==void 0&&(s[o]=ls(s[o],l,`${r}.${o}`,n,a));return s}function ds(t){if(Array.isArray(t))return t.map(ds);let e=Zt(t);if(e===void 0)return t;let r={...e};return r.type===void 0&&Array.isArray(r.children)&&(r.type="dir"),r.children!==void 0&&(r.children=ds(r.children)),r}function cs(t,e,r){if(!os(t))return t;let n=t.type,a=Ft[n];if(a===void 0)return t;let i=c1(t,e,n,r);for(let[l,m]of Object.entries(a.nested))i[l]!==void 0&&(i[l]=ls(i[l],m,`${e}.${l}`,n,r));let s=(l,m)=>cs(l,m,r),o=(l,m)=>Array.isArray(l)?l.map((u,p)=>s(u,`${m}[${p}]`)):l;if(n==="file-tree"&&i.items!==void 0&&(i.items=ds(i.items)),n==="stat"&&Array.isArray(i.items)&&i.label===void 0&&i.value===void 0){let l=d1(i.items,e,s);if(l!==null)return r.push({kind:"alias",path:`${e}.items`,message:`${e}.items normalized into a row of 'stat' nodes`,type:n,field:"items",canonical:"row"}),{type:"row",items:l,...i.span!==void 0?{span:i.span}:{}}}if(n==="row"||n==="col"||n==="grid"||n==="card"||n==="file-tree"||n==="timeline"||n==="breadcrumb")n!=="file-tree"&&n!=="timeline"&&n!=="breadcrumb"&&(i.items=o(i.items,`${e}.items`));else if(n==="list"&&Array.isArray(i.items))i.items=i.items.map((l,m)=>{if(os(l))return s(l,`${e}.items[${m}]`);if(Array.isArray(l)&&l.length===1&&typeof l[0]=="string")return l[0];let u=Zt(l);if(u===void 0)return l;let p={...u},b=`${e}.items[${m}]`;for(let[y,k]of Object.entries(l1)){if(!(y in p))continue;let T=k in p;T||(p[k]=p[y]),delete p[y],r.push({kind:"alias",path:`${b}.${y}`,type:n,field:y,canonical:k,message:T?`${b}.${y} is ignored because canonical field '${k}' is present`:`${b}.${y} normalized/adopted as '${k}'`})}return!("title"in p)&&typeof p.desc=="string"&&(p.title=p.desc,delete p.desc,r.push({kind:"alias",path:`${b}.desc`,type:n,field:"desc",canonical:"title",message:`${b}.desc normalized/adopted as 'title'`})),p});else if(n==="keyvalue"&&Array.isArray(i.pairs))i.pairs.length>0&&i.pairs.every(l=>Array.isArray(l))&&(i.pairs=i.pairs.map(l=>{let m=l;return{key:m[0],value:m.length>1?m[1]:""}}));else if(n==="tabs"&&Array.isArray(i.tabs))i.tabs=i.tabs.map((l,m)=>{let u=Zt(l);if(u===void 0)return l;let p={...u};if("content"in p){let b=`${e}.tabs[${m}].content`,y="items"in p;y||(p.items=p.content),delete p.content,r.push({kind:"alias",path:b,message:y?`${b} is ignored because canonical field 'items' is present`:`${b} normalized/adopted as 'items'`,type:n,field:"content",canonical:"items"})}return p.items=Array.isArray(p.items)?p.items.map((b,y)=>s(b,`${e}.tabs[${m}].items[${y}]`)):p.items===void 0?[]:[s(p.items,`${e}.tabs[${m}].items[0]`)],p});else if(n==="accordion"&&Array.isArray(i.items))i.items=i.items.map((l,m)=>{let u=Zt(l);return u===void 0?l:{...u,items:Array.isArray(u.items)?u.items.map((p,b)=>s(p,`${e}.items[${m}].items[${b}]`)):u.items}});else if(n==="table"&&Array.isArray(i.details)){let l={columns:i.columns,rows:i.rows,types:i.types};i.details=i.details.map((m,u)=>!Array.isArray(m)||!Nt(l,u)?m:m.map((p,b)=>s(p,`${e}.details[${u}][${b}]`)))}return i}function vd(t){let e=[];if(typeof t=="string")try{let a=JSON.parse(t);(Zt(a)!==void 0||Array.isArray(a))&&(t=a,e.push({kind:"alias",path:"spec",message:"double-encoded JSON string unwrapped into a spec value"}))}catch{}Array.isArray(t)&&t.length>0&&(t={items:t},e.push({kind:"alias",path:"items",message:"root array normalized into an items envelope"}));let r=Zt(t);if(r===void 0)return{value:t,warnings:e};let n={...r};return cr(n)?{value:cs(n,"spec",e),warnings:e}:(Array.isArray(n.items)&&(n.items=n.items.map((a,i)=>cs(a,`items[${i}]`,e))),{value:n,warnings:e})}function Lr(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:void 0}function xd(t){let e=Lr(t);return e!==void 0&&typeof e.type=="string"}function us(t,e,r){if(!xd(t))return;let n=t.type,a=Ft[n];if(a===void 0)return;r(t,e,a);let i=(s,o)=>us(s,o,r);if((n==="row"||n==="col"||n==="grid"||n==="card")&&Array.isArray(t.items))t.items.forEach((s,o)=>i(s,`${e}.items[${o}]`));else if(n==="list"&&Array.isArray(t.items))t.items.forEach((s,o)=>i(s,`${e}.items[${o}]`));else if(n==="tabs"&&Array.isArray(t.tabs))t.tabs.forEach((s,o)=>{let l=Lr(s);l!==void 0&&(Array.isArray(l.items)?l.items.forEach((m,u)=>i(m,`${e}.tabs[${o}].items[${u}]`)):i(l.items,`${e}.tabs[${o}].items`))});else if(n==="accordion"&&Array.isArray(t.items))t.items.forEach((s,o)=>{let l=Lr(s);l?.items!==void 0&&Array.isArray(l.items)&&l.items.forEach((m,u)=>i(m,`${e}.items[${o}].items[${u}]`))});else if(n==="table"&&Array.isArray(t.details)){let s={columns:t.columns,rows:t.rows,types:t.types};t.details.forEach((o,l)=>{Array.isArray(o)&&Nt(s,l)&&o.forEach((m,u)=>i(m,`${e}.details[${l}][${u}]`))})}}function ya(t,e,r,n){t.push({kind:"unknown-field",path:`${e}.${r}`,message:`${e}.${r}: unknown field for '${n}'`,type:n,field:r})}function va(t,e,r,n,a){let i=Lr(t);if(i!==void 0){for(let s of Object.keys(i))s in r.fields||ya(a,e,s,n);for(let[s,o]of Object.entries(r.nested)){let l=i[s];Array.isArray(l)?l.forEach((m,u)=>va(m,`${e}.${s}[${u}]`,o,n,a)):l!==void 0&&va(l,`${e}.${s}`,o,n,a)}}}function u1(t,e,r,n){for(let[a,i]of Object.entries(r.nested)){let s=t[a];Array.isArray(s)?s.forEach((o,l)=>va(o,`${e}.${a}[${l}]`,i,t.type,n)):s!==void 0&&va(s,`${e}.${a}`,i,t.type,n)}}function wd(t){let e=[],r=Lr(t);if(r===void 0)return e;let n=(a,i,s)=>{for(let o of Object.keys(a))o==="type"||o in s.fields||ya(e,i,o,a.type);u1(a,i,s,e),a.type==="list"&&Array.isArray(a.items)&&a.items.forEach((o,l)=>{if(xd(o))return;let m=Lr(o);if(m!==void 0)for(let u of Object.keys(m)){if(u==="title"||u==="desc")continue;let p=`${i}.items[${l}]`;e.push({kind:"unknown-field",path:`${p}.${u}`,message:`${p}.${u}: list items render 'title' and 'desc' only \u2014 '${u}' is dropped`,type:"list",field:u})}})};if(Array.isArray(r.items)&&!cr(r)){for(let a of Object.keys(r))a in un.fields||ya(e,"spec",a,"spec");r.items.forEach((a,i)=>us(a,`items[${i}]`,n))}else if(typeof r.type=="string")us(r,"spec",n);else for(let a of Object.keys(r))a in un.fields||ya(e,"spec",a,"spec");return e}function mn(t,e){switch(e){case"string":return typeof t=="string";case"string-or-null":return t===null||typeof t=="string";case"number":return typeof t=="number"&&Number.isFinite(t);case"boolean":return typeof t=="boolean";case"nodes":return Array.isArray(t);case"array":return Array.isArray(t);case"object":return ue(t)!==void 0;case"unknown":return!0}}function Br(t){switch(t){case"string-or-null":return"a string or null";case"number":return"a finite number";case"boolean":return"a boolean";case"nodes":case"array":return"an array";case"object":return"an object";case"unknown":return"a value";default:return"a string"}}function wr(t,e,r){return t.some(n=>n.startsWith(`${e}.${r} `)||n.includes(`'${r}'`)||n.includes(`requires ${r}`))}function Td(t,e,r,n,a=[]){for(let[i,s]of Object.entries(r.fields))a.includes(i)||t[i]===void 0||!mn(t[i],s)&&!wr(n,e,i)&&n.push(`${e}.${i} must be ${Br(s)}`);for(let[i,s]of Object.entries(r.enums))a.includes(i)||t[i]===void 0||!mn(t[i],"string")||!s.includes(t[i])&&!wr(n,e,i)&&n.push(`${e}.${i} must be one of ${s.join(", ")}`)}function ka(t,e,r,n){let a=ue(t);if(a===void 0){n.push(`${e} must be an object`);return}for(let i of r.required){let s=r.fields[i];a[i]===void 0?wr(n,e,i)||n.push(`${e}: requires ${i}${s===void 0?"":` (${Br(s)})`}`):s!==void 0&&!mn(a[i],s)&&(wr(n,e,i)||n.push(`${e}.${i} must be ${Br(s)}`))}for(let[i,s]of Object.entries(r.fields))a[i]!==void 0&&!mn(a[i],s)&&(wr(n,e,i)||n.push(`${e}.${i} must be ${Br(s)}`));for(let[i,s]of Object.entries(r.enums))a[i]!==void 0&&typeof a[i]=="string"&&!s.includes(a[i])&&(wr(n,e,i)||n.push(`${e}.${i} must be one of ${s.join(", ")}`));for(let[i,s]of Object.entries(r.nested)){let o=a[i];o!==void 0&&(Array.isArray(o)?o.forEach((l,m)=>ka(l,`${e}.${i}[${m}]`,s,n)):ka(o,`${e}.${i}`,s,n))}}function m1(t,e,r,n){for(let[a,i]of Object.entries(r.nested)){let s=t[a];s!==void 0&&(Array.isArray(s)?s.forEach((o,l)=>ka(o,`${e}.${a}[${l}]`,i,n)):ka(s,`${e}.${a}`,i,n))}}function Nd(t){let e=t.rows!==void 0?t.rows:t.data;return!Array.isArray(e)||e.length===0?!1:Array.isArray(e[0])}function p1(t,e,r,n){let a=String(t.type),i=o=>wr(n,e,o),s=a==="table"&&Nd(t)?"columns":null;for(let o of r.required){let l=r.fields[o];if(l===void 0||t[o]===void 0){o!==s&&!i(o)&&n.push(`${e}: type '${a}' requires ${o}${l===void 0?"":` (${Br(l)})`}`);continue}!mn(t[o],l)&&!i(o)&&n.push(`${e}.${o} must be ${Br(l)}`)}Td(t,e,r,n,["type"]);for(let o of r.oneOfRequired)!o.some(l=>t[l]!==void 0)&&!n.some(l=>l.includes(`requires ${o.join(" or ")}`))&&n.push(`${e}: type '${a}' requires one of ${o.join(" or ")}`);for(let o of r.conditionalRequired)if(t[o.when.field]===o.when.equals)for(let l of o.required)t[l]===void 0&&!i(l)&&n.push(`${e}: type '${a}' requires ${l}${o.message===void 0?"":` (${o.message})`}`);m1(t,e,r,n)}function ur(t,e,r){if(!Array.isArray(t))return[];let n=[];for(let a of t){if(e.remaining<=0)break;e.remaining-=1;let i=Md(a,e,r);i!==null&&n.push(i)}return n}function kd(t){if(!Array.isArray(t))return;let e=[];for(let r of t.slice(0,12)){let n=Lt(r);n!==void 0&&e.push(n)}return e.length>0?e:void 0}function Sd(t){if(!Array.isArray(t))return;let e=[];for(let r of t.slice(0,60)){let n=typeof r=="number"?r:Number(r);if(!Number.isFinite(n))return;e.push(n)}return e.length>=2?e:void 0}function Md(t,e,r){let n=f1(t,e,r);if(n===null)return null;let a=Bt(ue(t)?.span,2,12),i=z(ue(t)?.id,64);return{...n,...S("span",a),...S("id",i)}}function f1(t,e,r){if(r>A.maxDepth)return null;let n=ue(t);if(n===void 0)return null;let a=n.type;if(typeof a!="string")return null;switch(a){case"text":{let i=z(n.content,A.maxString)??z(n.text,A.maxString);return i===void 0?null:{type:"text",content:i,...S("copyable",n.copyable===!0?!0:void 0),...S("title",z(n.title,A.maxString)),...S("size",Ue(n.size,Hi)),...S("center",n.center===!0?!0:void 0)}}case"row":return{type:"row",items:ur(n.items,e,r+1),...S("wrap",n.wrap===!0?!0:void 0),...S("spacer",n.spacer===!0?!0:void 0)};case"col":return{type:"col",items:ur(n.items,e,r+1),...S("gap",Te(n.gap,0,96))};case"grid":return{type:"grid",cols:Bt(n.cols,1,A.maxGridCols)??1,items:ur(n.items,e,r+1)};case"card":return{type:"card",items:ur(n.items,e,r+1),...S("title",z(n.title,A.maxString)),...S("tone",Ue(n.tone,as)),...S("accent",Lt(n.accent))};case"button":{let i=z(n.label,A.maxString);return i===void 0?null:{type:"button",label:i,...S("tone",Ue(n.tone,ji)),...S("full",n.full===!0?!0:void 0),...S("small",n.small===!0?!0:void 0),...S("icon",z(n.icon,64)),...S("action",z(n.action,200))}}case"input":return{type:"input",...S("label",z(n.label,A.maxString)),...S("placeholder",z(n.placeholder,A.maxString)),...S("value",z(n.value,A.maxString)),...S("inputType",Ue(n.inputType,Vi)),...S("action",z(n.action,200)),...S("id",z(n.id,200))};case"select":{let i=xa(n.options,A.maxOptions,A.maxString);return i===void 0?null:{type:"select",options:i,...S("label",z(n.label,A.maxString)),...S("action",z(n.action,200)),...S("selected",Bt(n.selected,0,i.length-1)),...S("id",z(n.id,200))}}case"checkbox":{let i=z(n.label,A.maxString);return i===void 0?null:{type:"checkbox",label:i,...S("checked",n.checked===!0?!0:void 0),...S("action",z(n.action,200)),...S("group",z(n.group,200))}}case"link":{let i=z(n.label,A.maxString);if(i===void 0)return null;let s=Rr(n.href),o=s.type==="external"?s.href:s.type==="file"?String(n.href).trim():void 0;return{type:"link",label:i,...S("href",o)}}case"image":{let i=or(n.src);return i===void 0?null:{type:"image",src:i,...S("alt",z(n.alt,A.maxString))}}case"audio":{let i=or(n.src);return i===void 0?null:{type:"audio",src:i,...S("alt",z(n.alt,A.maxString)),...S("loop",n.loop===!0?!0:void 0)}}case"video":{let i=or(n.src);return i===void 0?null:{type:"video",src:i,...S("alt",z(n.alt,A.maxString)),...S("poster",or(n.poster)),...S("loop",n.loop===!0?!0:void 0),...S("muted",n.muted===!0?!0:void 0),...S("aspectRatio",Ue(n.aspectRatio,Ki))}}case"badge":{let i=z(n.label,A.maxString)??z(n.text,A.maxString)??z(n.value,A.maxString);return i===void 0?null:{type:"badge",label:i,...S("tone",Ue(n.tone,Ui)),...S("icon",z(n.icon,64))}}case"hero":{let i=z(n.title,A.maxString);return i===void 0?null:{type:"hero",title:i,...S("subtitle",z(n.subtitle,A.maxString)),...S("value",z(n.value,128)),...S("label",z(n.label,A.maxString)),...S("delta",z(n.delta,64)),...S("spark",Sd(n.spark)),...S("tone",Ue(n.tone,is))}}case"stat":{let i=z(n.label,A.maxString),s=z(n.value,128);return i===void 0||s===void 0?null:{type:"stat",label:i,value:s,...S("delta",z(n.delta,64)),...S("spark",Sd(n.spark)),...S("size",n.size==="hero"?"hero":void 0)}}case"progress":{let i=Te(n.value,0,100);return i===void 0?null:{type:"progress",value:i,...S("label",z(n.label,A.maxString)),...S("valueLabel",z(n.valueLabel,64)),...S("variant",Ue(n.variant,ns)),...S("target",Te(n.target,0,100))}}case"divider":return{type:"divider"};case"spacer":return{type:"spacer"};case"avatar":{let i=z(n.name,64);return i===void 0?null:{type:"avatar",name:i,...S("color",Lt(n.color))}}case"list":{let i=h1(n.items,A.maxListItems,e,r+1);return i===void 0?null:{type:"list",items:i,...S("filter",z(n.filter,64))}}case"table":{let i=Gi(n);if(i===null)return null;let{columns:s,rows:o}=i,l=Array.isArray(n.types)?n.types:void 0,m=l===void 0?void 0:s.map((b,y)=>{let k=l[y];return typeof k=="string"&&gd.includes(k)?k:"text"}),u=Array.isArray(n.details)?n.details:void 0,p=u===void 0?void 0:o.map((b,y)=>{if(!Nt({columns:s,rows:o,types:m},y))return null;let k=ur(u[y],e,r+1);return k.length===0?null:k});return{type:"table",columns:s,rows:o,...S("types",m),...S("total",n.total===!0?!0:void 0),...S("export",n.export===!0?!0:void 0),...S("filter",z(n.filter,64)),...S("filterColumn",Bt(n.filterColumn,0,A.maxTableCols-1)),...S("sortField",z(n.sortField,64)),...S("details",p!==void 0&&p.some(b=>b!==null)?p:void 0)}}case"chart":{let i=ms(n.data,A.maxChartPoints),s=Array.isArray(n.series)?Ad(n.series,A.maxPlotSeries,A.maxChartPoints):void 0;return i===void 0&&s===void 0?null:{type:"chart",data:i??[],...S("kind",Ue(n.kind,ba)),...S("series",s),...S("horizontal",n.horizontal===!0?!0:void 0),...S("stacked",n.stacked===!0?!0:void 0),...S("filter",z(n.filter,64)),...S("palette",kd(n.palette))}}case"tabs":{let i=g1(n.tabs,e,r);return i===void 0?null:{type:"tabs",tabs:i}}case"plot":{let i=b1(n.series,A.maxPlotSeries);return i===void 0?null:{type:"plot",series:i,...S("xMin",Te(n.xMin,-1e6,1e6)),...S("xMax",Te(n.xMax,-1e6,1e6)),...S("yMin",Te(n.yMin,-1e9,1e9)),...S("yMax",Te(n.yMax,-1e9,1e9)),...S("title",z(n.title,A.maxString))}}case"callout":{let i=z(n.content,A.maxString);return i===void 0?null:{type:"callout",content:i,...S("tone",Ue(n.tone,Wi)),...S("title",z(n.title,A.maxString))}}case"steps":{let i=y1(n.steps);return i===void 0?null:{type:"steps",steps:i,...S("current",Bt(n.current,0,i.length))}}case"keyvalue":{let i=v1(n.pairs,A.maxKeyValuePairs);return i===void 0?null:{type:"keyvalue",pairs:i}}case"diff":{let i=x1(n.diffs);return i===void 0?null:{type:"diff",diffs:i}}case"json":return"value"in n?{type:"json",value:n.value}:null;case"code":{let i=z(n.code,A.maxCode);return i===void 0?null:{type:"code",code:i,...S("lang",z(n.lang,64)),...S("title",z(n.title,A.maxString)),...S("wrap",n.wrap===!0?!0:void 0)}}case"radio":{let i=xa(n.options,A.maxOptions,A.maxString);return i===void 0?null:{type:"radio",options:i,...S("label",z(n.label,A.maxString)),...S("selected",Bt(n.selected,0,i.length-1)),...S("action",z(n.action,200)),...S("group",z(n.group,200)),...S("answer",typeof n.answer=="number"&&Number.isFinite(n.answer)&&n.answer>=0&&n.answer<i.length?Math.trunc(n.answer):typeof n.answer=="string"?n.answer.slice(0,512):void 0),...S("explanation",z(n.explanation,A.maxString))}}case"submit":{let i=z(n.label,A.maxString),s=z(n.action,200);return i===void 0?null:{type:"submit",label:i,...S("action",s),...S("resetAction",z(n.resetAction,200)),...S("groups",xa(n.groups,A.maxOptions,200))}}case"switch":{let i=z(n.label,A.maxString);return i===void 0?null:{type:"switch",label:i,...S("checked",n.checked===!0?!0:void 0),...S("action",z(n.action,200))}}case"slider":{let i=Te(n.min,-1e9,1e9)??0,s=Te(n.max,-1e9,1e9)??100,o=Math.min(i,s),l=Math.max(i,s),m=Te(n.step,1e-9,Math.max(l-o,1e-9)),u=Te(n.value,o,l)??o;return{type:"slider",min:o,max:l,...S("step",m),value:u,...S("label",z(n.label,A.maxString)),...S("action",z(n.action,200)),...S("id",z(n.id,200))}}case"textarea":return{type:"textarea",...S("label",z(n.label,A.maxString)),...S("placeholder",z(n.placeholder,A.maxString)),...S("rows",Bt(n.rows,1,30)),...S("value",z(n.value,A.maxString)),...S("action",z(n.action,200)),...S("id",z(n.id,200))};case"accordion":{let i=w1(n.items,e,r);return i===void 0?null:{type:"accordion",items:i}}case"copy":{let i=z(n.text,A.maxCode);return i===void 0?null:{type:"copy",text:i,...S("label",z(n.label,128))}}case"svg":{let i=z(n.code,A.maxCode);return i===void 0?null:{type:"svg",code:i,...S("title",z(n.title,A.maxString)),...S("height",Bt(n.height,100,800))}}case"mermaid":{let i=z(n.code,A.maxMermaid);return i===void 0?null:{type:"mermaid",code:i}}case"scene3d":{let i=k1(n.meshes);return i===void 0?null:{type:"scene3d",meshes:i,...S("title",z(n.title,A.maxString)),...S("ambient",Te(n.ambient,0,2)),...S("background",Lt(n.background))}}case"diagram":return M1(n);case"timeline":{let i=C1(n.items,A.maxTimelineItems);return i===void 0?null:{type:"timeline",items:i}}case"file-tree":{let i=z1(n.items,A.maxListItems);return i===void 0?null:{type:"file-tree",items:i}}case"breadcrumb":{let i=xa(n.items,A.maxBreadcrumbItems,A.maxString);return i===void 0?null:{type:"breadcrumb",items:i}}case"quiz":{let i=z(n.question,A.maxString),s=R1(n.options,n.answer);return i===void 0||s===void 0?null:{type:"quiz",question:i,options:s,...S("explanation",z(n.explanation,A.maxString)),...S("id",z(n.id,200)),...S("action",z(n.action,200))}}case"echart":{let i=n.data!==void 0?ms(n.data,A.maxChartPoints):void 0,s=n.series!==void 0&&Array.isArray(n.series)?Ad(n.series,A.maxPlotSeries,A.maxChartPoints):void 0,o=Array.isArray(n.links)?n.links.slice(0,A.maxChartPoints).flatMap(u=>{let p=ue(u),b=p===void 0?void 0:z(p.from,64),y=p===void 0?void 0:z(p.to,64);return b===void 0||y===void 0?[]:[{from:b,to:y,...S("value",Te(p.value,0,1e9))}]}):void 0,l=n.option!==void 0?ps(n.option,0,{count:A.maxEChartOptionNodes}):void 0,m=l===void 0||typeof l!="object"||l===null||Array.isArray(l)?void 0:l;return m===void 0&&i===void 0&&s===void 0&&(o===void 0||o.length===0)?null:{type:"echart",...S("title",z(n.title,A.maxString)),...S("height",Bt(n.height,100,800)),...S("preset",Ue(n.preset,rs)),...S("data",i),...S("series",s),...S("links",o!==void 0&&o.length>0?o:void 0),...S("palette",kd(n.palette)),...S("option",m)}}default:return t}}function xa(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=e)break;if(typeof a=="string")n.push(a.slice(0,r));else if(a!==null&&typeof a=="object"){let i=a,s=typeof i.label=="string"?i.label:typeof i.value=="string"?i.value:typeof i.title=="string"?i.title:JSON.stringify(a);n.push(s.slice(0,r))}}return n}function h1(t,e,r,n){if(!Array.isArray(t))return;let a=[];for(let i of t){if(a.length>=e)break;if(typeof i=="string"){a.push(i.slice(0,A.maxString));continue}let s=ue(i);if(s!==void 0&&typeof s.type=="string"){if(r.remaining<=0)break;r.remaining-=1;let l=Md(s,r,n);l!==null&&a.push(l);continue}let o=s===void 0?void 0:z(s.title,A.maxString);o!==void 0&&a.push({title:o,...S("desc",z(s?.desc,A.maxString))})}return a}function ms(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.label,128),s=a===void 0?void 0:Te(a.value,-1e12,1e12);i===void 0||s===void 0||r.push({label:i,value:s,...S("color",a===void 0?void 0:Lt(a.color))})}return r}function Ad(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=e)break;let i=ue(a),s=i===void 0?void 0:z(i.label,128),o=i===void 0?void 0:ms(i.data,r);s===void 0||o===void 0||n.push({label:s,data:o,...S("color",i===void 0?void 0:Lt(i.color))})}return n}function g1(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=A.maxTabs)break;let i=ue(a),s=i===void 0?void 0:z(i.label,128);if(s===void 0||i===void 0)continue;let o=i.items!==void 0?i.items:i.content!==void 0?Array.isArray(i.content)?i.content:[i.content]:void 0;n.push({label:s,items:ur(o,e,r+1)})}return n}function b1(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.expr,512);if(i===void 0||a===void 0)continue;let s=[];if(Array.isArray(a.params))for(let o of a.params){if(s.length>=A.maxPlotParams)break;let l=ue(o),m=l===void 0?void 0:z(l.name,64),u=l===void 0?void 0:Te(l.value,-1e9,1e9);m===void 0||u===void 0||s.push({name:m,value:u,...S("min",l===void 0?void 0:Te(l.min,-1e9,1e9)),...S("max",l===void 0?void 0:Te(l.max,-1e9,1e9)),...S("step",l===void 0?void 0:Te(l.step,1e-9,1e9)),...S("animateTo",l===void 0?void 0:Te(l.animateTo,-1e9,1e9)),...S("durationMs",l===void 0?void 0:Te(l.durationMs,1,12e4)),...S("loop",l===void 0?void 0:l.loop===!0?!0:void 0)})}r.push({expr:i,...S("label",z(a.label,128)),...S("color",Lt(a.color)),...S("kind",Ue(a.kind,Yi)),...S("params",s.length>0?s:void 0)})}return r}function y1(t){if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxSteps)break;let n=ue(r),a=n===void 0?void 0:z(n.title,256);a!==void 0&&e.push({title:a,...S("desc",n===void 0?void 0:z(n.desc,A.maxString))})}return e}function v1(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.key,256),s=a===void 0?void 0:z(a.value,A.maxString);i===void 0||s===void 0||r.push({key:i,value:s})}return r}function x1(t){if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=24)break;let n=ue(r),a=n===void 0?void 0:z(n.path,1024),i=n===void 0?void 0:z(n.newText,2e4);if(a===void 0||i===void 0)continue;let s=n===void 0?void 0:n.oldText;e.push({path:a,newText:i,oldText:s===null||typeof s!="string"?null:s.slice(0,2e4)})}return e}function w1(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=A.maxAccordionItems)break;let i=ue(a),s=i===void 0?void 0:z(i.title,256);s===void 0||i===void 0||n.push({title:s,items:ur(i.items,e,r+1)})}return n}function k1(t){if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxMeshes)break;let n=ue(r),a=n===void 0?void 0:Ue(n.shape,Ji);if(a===void 0)continue;let i=n===void 0?void 0:Te(n.scale,-1e6,1e6)??wa(n.scale),s=n===void 0?void 0:Te(n.size,-1e6,1e6)??wa(n.size);e.push({shape:a,...S("color",n===void 0?void 0:Lt(n.color)),...S("position",n===void 0?void 0:wa(n.position)),...S("rotation",n===void 0?void 0:wa(n.rotation)),...S("scale",i),...S("size",s)})}return e}function wa(t){if(!Array.isArray(t)||t.length!==3)return;let[e,r,n]=t;if(!(typeof e!="number"||!Number.isFinite(e)||typeof r!="number"||!Number.isFinite(r)||typeof n!="number"||!Number.isFinite(n)))return[Math.min(1e6,Math.max(-1e6,e)),Math.min(1e6,Math.max(-1e6,r)),Math.min(1e6,Math.max(-1e6,n))]}function mr(t,e,r){return Math.min(r,Math.max(e,Math.round(t/4)*4))}function S1(t){if(!Array.isArray(t))return;let e=[],r=new Set;for(let n of t){if(e.length>=A.maxDiagramNodes)break;let a=ue(n);if(a===void 0)continue;let i=z(a.id,128),s=z(a.label,A.maxString);if(i===void 0||s===void 0||r.has(i))continue;r.add(i);let o=Ue(a.type,Zi),l=a.x===void 0?void 0:mr(Te(a.x,-1e6,1e6)??0,0,1e6),m=a.y===void 0?void 0:mr(Te(a.y,-1e6,1e6)??0,0,1e6),u=a.w===void 0?void 0:mr(Te(a.w,-1e6,1e6)??96,40,2e3),p=a.h===void 0?void 0:mr(Te(a.h,-1e6,1e6)??48,24,1200);e.push({id:i,label:s,...S("sub",z(a.sub,256)),...S("type",o),...S("x",l),...S("y",m),...S("w",u),...S("h",p),...S("tag",z(a.tag,32))})}return e}function A1(t){if(t===void 0)return[];if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxDiagramEdges)break;let n=ue(r);if(n===void 0)continue;let a=z(n.from,128),i=z(n.to,128);a===void 0||i===void 0||e.push({from:a,to:i,...S("label",z(n.label,A.maxDiagramLabel)),...S("kind",Ue(n.kind,es)),...S("route",Ue(n.route,ts))})}return e}function T1(t){let e=ue(t);if(e===void 0)return;let r={};for(let n of["paper","paper-2","ink","muted","soft","rule","accent","accent-tint","link"]){let a=Lt(e[n]);a!==void 0&&(r[n]=a)}return Object.keys(r).length===0?void 0:r}function N1(t){if(t===void 0)return[];if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxDiagramZones)break;let n=ue(r);if(n===void 0)continue;let a=z(n.label,64);a!==void 0&&e.push({label:a,...S("x",n.x===void 0?void 0:mr(Te(n.x,-1e6,1e6)??0,0,1e6)),...S("y",n.y===void 0?void 0:mr(Te(n.y,-1e6,1e6)??0,0,1e6)),...S("w",n.w===void 0?void 0:mr(Te(n.w,-1e6,1e6)??100,40,2e3)),...S("h",n.h===void 0?void 0:mr(Te(n.h,-1e6,1e6)??100,40,1200))})}return e}function M1(t){let e=ue(t);if(e===void 0)return null;let r=Ue(e.kind,_i);if(r===void 0)return null;let n=S1(e.nodes);if(n===void 0)return null;let a=A1(e.edges);if(a===void 0)return null;let i=N1(e.zones);return i===void 0?null:{type:"diagram",kind:r,nodes:n,edges:a,...S("zones",i.length>0?i:void 0),...S("variant",Ue(e.variant,Qi)),...S("title",z(e.title,256)),...S("theme",T1(e.theme))}}function C1(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.title,256);i!==void 0&&r.push({title:i,...S("desc",a===void 0?void 0:z(a.desc,A.maxString)),...S("time",a===void 0?void 0:z(a.time,128))})}return r}function z1(t,e){return Cd(t,e,A.maxTreeDepth)}function Cd(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=e)break;let i=ue(a),s=i===void 0?void 0:z(i.name,256);if(s===void 0)continue;let o=i!==void 0&&r>0&&Array.isArray(i.children)?Cd(i.children,e,r-1):void 0;n.push({name:s,...S("type",i===void 0?void 0:Ue(i.type,Xi)),...S("children",o)})}return n}function R1(t,e){if(!Array.isArray(t))return;let r=[];for(let a of t){if(r.length>=A.maxQuizOptions)break;let i=ue(a),s=typeof a=="string"?z(a,512):i===void 0?void 0:z(i.label,512);s!==void 0&&r.push({label:s,...S("correct",i===void 0?void 0:i.correct===!0?!0:void 0),...S("feedback",i===void 0?void 0:z(i.feedback,A.maxString))})}if(r.length===0)return;if(r.some(a=>a.correct===!0))return r;let n=typeof e=="number"&&Number.isFinite(e)?Math.trunc(e):typeof e=="string"?r.findIndex(a=>a.label===e.slice(0,512)):-1;return n<0||n>=r.length?r:r.map((a,i)=>i===n?{...a,correct:!0}:a)}var G1=/<(?:script|img|svg|iframe|video|audio|object|embed|source)\b|on[a-z]+\s*=|javascript:/i;function ps(t,e,r){if(r.count<=0||(r.count-=1,e>A.maxEChartOptionDepth))return;if(typeof t=="string"){let i=t.slice(0,A.maxString);return i.toLowerCase().includes("url(")||G1.test(i)?void 0:i}if(typeof t=="number"&&Number.isFinite(t)||typeof t=="boolean")return t;if(t===null)return null;if(Array.isArray(t)){let i=Math.min(t.length,A.maxEChartArrayLen),s=[];for(let o=0;o<i;o++){let l=ps(t[o],e+1,r);l!==void 0&&s.push(l)}return s.length>0||t.length===0?s:void 0}let n=ue(t);if(n===void 0)return;let a={};for(let[i,s]of Object.entries(n)){let o=ps(s,e+1,r);o!==void 0&&(i==="tooltip"&&typeof o=="object"&&o!==null&&!Array.isArray(o)&&(o.renderMode="richText"),a[i]=o)}return Object.keys(a).length>0||Object.keys(n).length===0?a:void 0}function zd(t){let e=ue(t);if(e===void 0)return null;if(cr(t)){let n=ss(t);return n===null?null:zd(n)}if(!Array.isArray(e.items))return null;let r={remaining:A.maxNodes};return{...S("title",z(e.title,A.maxString)),...S("gap",Te(e.gap,0,96)),...S("panel",e.panel===!0?!0:void 0),...S("append",e.append===!0?!0:void 0),items:ur(e.items,r,0)}}function $1(t,e=Number.POSITIVE_INFINITY){let r=0,n=i=>{if(Array.isArray(i))for(let s of i){if(r>=e)return;r+=1;let o=ue(s);if(o!==void 0){if(o.type==="tabs"&&Array.isArray(o.tabs))for(let l of o.tabs){if(r>=e)return;let m=ue(l);m!==void 0&&n(m.items)}else if(o.type==="accordion"&&Array.isArray(o.items))for(let l of o.items){if(r>=e)return;let m=ue(l);m!==void 0&&n(m.items)}else if((o.type==="row"||o.type==="col"||o.type==="grid"||o.type==="card")&&Array.isArray(o.items))n(o.items);else if(o.type!=="file-tree"){if(o.type==="list"&&Array.isArray(o.items))for(let l of o.items){if(r>=e)return;let m=ue(l);m!==void 0&&typeof m.type=="string"&&n([m])}else if(o.type==="table"&&Array.isArray(o.details)){let l=Kt(o).length;for(let m=0;m<Math.min(o.details.length,l);m++){if(r>=e)return;let u=o.details[m];Array.isArray(u)&&Nt(o,m)&&n(u)}}}}}},a=ue(t);return n(a===void 0?[]:a.items),r}var E1=xr;function D1(t,e,r){let n=0,a=m=>{let u=ue(m);return u!==void 0&&typeof u.type=="string"&&E1.has(u.type)};function i(m,u){if(Array.isArray(m)){for(let p=0;p<m.length;p++)if(s(m[p],`${u}[${p}]`),n>=e)return}}function s(m,u){if(n>=e||!a(m))return;let p=ue(m);if(p!==void 0){if(n+=1,r(p,u),p.type==="tabs"&&Array.isArray(p.tabs))for(let b=0;b<p.tabs.length;b++)o(p.tabs[b],`${u}.tabs[${b}]`);else if(p.type==="accordion"&&Array.isArray(p.items))for(let b=0;b<p.items.length;b++)o(p.items[b],`${u}.items[${b}]`);else if((p.type==="row"||p.type==="col"||p.type==="grid"||p.type==="card")&&Array.isArray(p.items))i(p.items,`${u}.items`);else if(p.type==="list"&&Array.isArray(p.items))for(let b=0;b<p.items.length;b++)s(p.items[b],`${u}.items[${b}]`);else if(p.type==="table"&&Array.isArray(p.details)){let b=Kt(p).length;for(let y=0;y<Math.min(p.details.length,b);y++)Array.isArray(p.details[y])&&Nt(p,y)&&i(p.details[y],`${u}.details[${y}]`)}}}function o(m,u){let p=ue(m);if(p===void 0)return;let b=p.items!==void 0?p.items:p.content;Array.isArray(b)?i(b,`${u}.items`):s(b,`${u}.items`)}let l=ue(t);return l===void 0||(cr(l)&&a(t)?s(t,"spec"):i(l.items,"items")),n}function Rd(t,e=Number.POSITIVE_INFINITY){return D1(t,e,()=>{})}function I1(t,e=Number.POSITIVE_INFINITY){return Rd(t,e)}function Gd(t){let e=[],r=ue(t);if(r===void 0)return{ok:!1,errors:["spec root must be an object"]};if(cr(t)){let o=ss(t);return o!==null?Gd(o):{ok:!1,errors:["spec.items must be an array"]}}if(!Array.isArray(r.items))return{ok:!1,errors:["spec.items must be an array"]};Td(r,"spec",un,e,["items"]);let n=0,a=!1,i=(o,l,m)=>{if(!a){if(!Array.isArray(o)){e.push(`${m} must be an array`);return}for(let u=0;u<o.length;u++){if(a||n>=A.maxNodes){a||(e.push(`spec exceeds ${A.maxNodes} nodes; tail elided`),a=!0);return}n+=1;let p=`${m}[${u}]`;Dd(o[u],l,p,e,i)}}};i(r.items,0,"items"),e.length===0&&e.push(...oa(r).diagnostics);let s=[...new Set(e)];return{ok:s.length===0,errors:s}}function qr(t){let e=vd(t),r=zd(e.value),n=Gd(e.value),a=Rd(e.value,A.maxNodes+1),i=r===null?0:I1(r),s=r===null?0:$1(r),o=n.errors.filter(l=>!l.includes(": unknown type "));return r!==null&&o.length===0&&o.push(...oa(r).diagnostics),a>i&&o.push(`repair dropped ${a-i} declared native node(s): declared ${a}, rendered ${i}`),{value:e.value,normalized:e.value,repaired:r,spec:r,errors:[...new Set(o)],warnings:[...e.warnings,...wd(e.value)],declaredCount:a,renderedCount:s,declaredNativeCount:a,renderedNativeCount:i,renderedTotalCount:s}}function L1(t){return t.errors.length>0&&t.errors.every(e=>e.startsWith("spec exceeds ")||e.startsWith("repair dropped "))&&t.renderedNativeCount===A.maxNodes&&t.declaredNativeCount===A.maxNodes+1}function $d(t){return t.spec!==null&&(t.errors.length===0||L1(t))}function Ed(t,e,r){if(Array.isArray(t))for(let n=0;n<t.length;n++){let a=ue(t[n]),i=`${e}[${n}]`;if(a===void 0){r.push(`${i} must be an object`);continue}typeof a.label!="string"&&r.push(`${i}.label must be a string`),(typeof a.value!="number"||!Number.isFinite(a.value))&&r.push(`${i}.value must be a finite number`),a.color!==void 0&&typeof a.color!="string"&&r.push(`${i}.color must be a string`)}}function B1(t,e,r){if(Array.isArray(t))for(let n=0;n<t.length;n++){let a=ue(t[n]),i=`${e}[${n}]`;if(a===void 0){r.push(`${i} must be an object`);continue}typeof a.label!="string"&&r.push(`${i}.label must be a string`),a.color!==void 0&&typeof a.color!="string"&&r.push(`${i}.color must be a string`),Array.isArray(a.data)||r.push(`${i}.data must be an array`),Ed(a.data,`${i}.data`,r)}}function q1(t,e,r){!Array.isArray(t.data)&&!Array.isArray(t.series)&&r.push(`${e}: type 'chart' requires data or series (array)`),t.variant!==void 0&&r.push(`${e}.variant is unsupported; use kind`),t.data!==void 0&&!Array.isArray(t.data)&&r.push(`${e}.data must be an array`),t.series!==void 0&&!Array.isArray(t.series)&&r.push(`${e}.series must be an array`),t.kind!==void 0&&(typeof t.kind!="string"||!ba.includes(t.kind))&&r.push(`${e}.kind must be bars, line, or donut`);let n=t.kind===void 0?"bars":t.kind,a=Array.isArray(t.series)?t.series:void 0;if(Array.isArray(t.data)&&t.data.length===0&&(a===void 0||a.length===0)&&r.push(`${e}.data must not be empty`),a!==void 0){a.length===0&&r.push(`${e}.series must not be empty`),n==="donut"&&r.push(`${e}.series is only supported for bars and line`);for(let i=0;i<a.length;i++){let s=ue(a[i]);s!==void 0&&Array.isArray(s.data)&&s.data.length===0&&r.push(`${e}.series[${i}].data must not be empty`)}}n==="donut"&&t.data===void 0&&r.push(`${e}.data is required for donut`),n==="line"&&t.data===void 0&&(a===void 0||a.length===0)&&r.push(`${e}.data is required for line (or provide series)`),Ed(t.data,`${e}.data`,r),B1(t.series,`${e}.series`,r)}function O1(t,e,r){if(Array.isArray(t))for(let n=0;n<t.length;n++){let a=t[n];if(ue(a)===void 0){if(!Array.isArray(a)){r.push(`${e}[${n}] must be an array or object`);continue}for(let i=0;i<a.length;i++){let s=a[i];typeof s!="string"&&(typeof s!="number"||!Number.isFinite(s))&&r.push(`${e}[${n}][${i}] must be a string or finite number`)}}}}function Dd(t,e,r,n,a){if(e>A.maxDepth){n.push(`${r}: exceeds max depth ${A.maxDepth}`);return}let i=ue(t);if(i===void 0){n.push(`${r}: must be an object`);return}let s=i.type;if(typeof s!="string"){n.push(`${r}: missing string 'type'`);return}let o=u=>{i[u]!==void 0&&typeof i[u]!="string"&&n.push(`${r}: '${u}' must be a string`)},l=u=>{i[u]!==void 0&&(typeof i[u]!="number"||!Number.isFinite(i[u]))&&n.push(`${r}: '${u}' must be a finite number`)};switch(s){case"text":typeof i.content!="string"&&typeof i.text!="string"&&n.push(`${r}: type 'text' requires content or text (string)`),o("content"),o("text");break;case"row":case"col":case"card":case"grid":Array.isArray(i.items)||n.push(`${r}: type '${s}' requires items (array)`),a(i.items,e+1,`${r}.items`),s==="grid"&&l("cols");break;case"button":case"checkbox":case"link":case"switch":typeof i.label!="string"&&n.push(`${r}: type '${s}' requires label (string)`),o("label");break;case"image":case"audio":case"video":typeof i.src!="string"&&n.push(`${r}: type '${s}' requires src (string)`),o("src"),o("alt"),s==="video"&&o("poster");break;case"slider":o("label"),l("min"),l("max"),l("step"),l("value");break;case"input":case"textarea":o("label"),o("placeholder"),o("value");break;case"select":case"radio":Array.isArray(i.options)||n.push(`${r}: type '${s}' requires options (array)`);break;case"submit":typeof i.label!="string"&&n.push(`${r}: type 'submit' requires label (string)`);break;case"badge":typeof i.label!="string"&&typeof i.text!="string"&&typeof i.value!="string"&&n.push(`${r}: type 'badge' requires label, text, or value (string)`),o("label"),o("text"),o("value");break;case"hero":typeof i.title!="string"&&n.push(`${r}: type 'hero' requires title (string)`),o("subtitle");break;case"stat":typeof i.label!="string"&&n.push(`${r}: type 'stat' requires label (string)`),typeof i.value!="string"&&n.push(`${r}: type 'stat' requires value (string)`),o("delta");break;case"progress":(typeof i.value!="number"||!Number.isFinite(i.value)||i.value<0||i.value>100)&&n.push(`${r}: type 'progress' requires value (number 0..100)`),l("value");break;case"avatar":typeof i.name!="string"&&n.push(`${r}: type 'avatar' requires name (string)`);break;case"list":if(Array.isArray(i.items)||n.push(`${r}: type 'list' requires items (array)`),Array.isArray(i.items))for(let u=0;u<i.items.length;u++){let p=ue(i.items[u]);p!==void 0&&typeof p.type=="string"&&Dd(p,e+1,`${r}.items[${u}]`,n,a)}break;case"table":if(!Array.isArray(i.columns)&&!Nd(i)&&n.push(`${r}: type 'table' requires columns (array)`),Array.isArray(i.rows)||n.push(`${r}: type 'table' requires rows (array)`),i.types!==void 0&&!Array.isArray(i.types)&&n.push(`${r}.types must be an array of column cell types`),i.details!==void 0&&!Array.isArray(i.details)&&n.push(`${r}.details must be an array aligned with rows`),Array.isArray(i.details)){let u={columns:i.columns,rows:i.rows,types:i.types},p=Kt(u).length;i.details.length>p&&n.push(`${r}.details must not contain more entries than rows`);for(let b=0;b<Math.min(i.details.length,p);b++){let y=i.details[b];if(!(y===null||!Nt(u,b))){if(!Array.isArray(y)){n.push(`${r}.details[${b}] must be an array or null`);continue}a(y,e+1,`${r}.details[${b}]`)}}}O1(i.rows,`${r}.rows`,n);break;case"chart":q1(i,r,n);break;case"tabs":{if(Array.isArray(i.tabs)||n.push(`${r}: type 'tabs' requires tabs (array)`),Array.isArray(i.tabs))for(let u=0;u<i.tabs.length;u++){let p=ue(i.tabs[u]);if(p===void 0){n.push(`${r}.tabs[${u}] must be an object`);continue}typeof p.label!="string"&&n.push(`${r}.tabs[${u}].label must be a string`),a(p.items,e+1,`${r}.tabs[${u}].items`)}break}case"plot":Array.isArray(i.series)||n.push(`${r}: type 'plot' requires series (array)`);break;case"callout":typeof i.content!="string"&&n.push(`${r}: type 'callout' requires content (string)`);break;case"steps":Array.isArray(i.steps)||n.push(`${r}: type 'steps' requires steps (array)`);break;case"keyvalue":Array.isArray(i.pairs)||n.push(`${r}: type 'keyvalue' requires pairs (array)`);break;case"diff":Array.isArray(i.diffs)||n.push(`${r}: type 'diff' requires diffs (array)`);break;case"json":"value"in i||n.push(`${r}: type 'json' requires value`);break;case"code":typeof i.code!="string"&&n.push(`${r}: type 'code' requires code (string)`);break;case"accordion":if(Array.isArray(i.items)||n.push(`${r}: type 'accordion' requires items (array)`),Array.isArray(i.items))for(let u=0;u<i.items.length;u++){let p=ue(i.items[u]);if(p===void 0){n.push(`${r}.items[${u}] must be an object`);continue}typeof p.title!="string"&&n.push(`${r}.items[${u}].title must be a string`),a(p.items,e+1,`${r}.items[${u}].items`)}break;case"copy":typeof i.text!="string"&&n.push(`${r}: type 'copy' requires text (string)`);break;case"svg":typeof i.code!="string"&&n.push(`${r}: type 'svg' requires code (string)`),l("height");break;case"mermaid":typeof i.code!="string"&&n.push(`${r}: type 'mermaid' requires code (string)`);break;case"scene3d":Array.isArray(i.meshes)||n.push(`${r}: type 'scene3d' requires meshes (array)`);break;case"timeline":Array.isArray(i.items)||n.push(`${r}: type 'timeline' requires items (array)`);break;case"file-tree":Array.isArray(i.items)||n.push(`${r}: type 'file-tree' requires items (array)`);break;case"breadcrumb":Array.isArray(i.items)||n.push(`${r}: type 'breadcrumb' requires items (array)`);break;case"quiz":typeof i.question!="string"&&n.push(`${r}: type 'quiz' requires question (string)`),Array.isArray(i.options)||n.push(`${r}: type 'quiz' requires options (array)`);break;case"diagram":typeof i.kind!="string"&&n.push(`${r}: type 'diagram' requires kind (string)`),Array.isArray(i.nodes)||n.push(`${r}: type 'diagram' requires nodes (array)`),i.edges!==void 0&&!Array.isArray(i.edges)&&n.push(`${r}: type 'diagram' requires edges (array) when present`);break;case"echart":i.option===void 0&&i.data===void 0&&i.series===void 0&&(!Array.isArray(i.links)||i.links.length===0)&&n.push(`${r}: type 'echart' requires option, data, series, or links`),l("height");break;default:n.push(`${r}: unknown type '${s}' (custom renderer?)`)}let m=Ft[s];m!==void 0&&p1(i,r,m,n)}Dr();var Sa="dsh-genui";var Ke=class extends Error{constructor(r,n){super(n);this.code=r;this.name="GenuiExportError"}};function F1(t,e){if(t===void 0)return;let r=Object.fromEntries(Object.entries(t.fields??{}).filter(([n])=>!e.has(n)));return{...t.answers===void 0?{}:{answers:{...t.answers}},...t.multiAnswers===void 0?{}:{multiAnswers:Object.fromEntries(Object.entries(t.multiAnswers).map(([n,a])=>[n,[...a]]))},...t.locked===void 0?{}:{locked:t.locked},...Object.keys(r).length===0?{}:{fields:r}}}function pn(t,e){return t.map(r=>{let n=JSON.parse(JSON.stringify(r));return n.type==="input"&&n.inputType==="password"&&(typeof n.id=="string"&&e.add(n.id),delete n.value),Array.isArray(n.items)&&(n.type==="list"?n.items=n.items.map(a=>typeof a=="object"&&a!==null&&"type"in a?pn([a],e)[0]:a):n.items=pn(n.items,e)),Array.isArray(n.tabs)&&(n.tabs=n.tabs.map(a=>({...a,items:pn(a.items,e)}))),n.type==="table"&&Array.isArray(n.details)&&(n.details=n.details.map(a=>a===null?null:pn(a,e))),n})}function fn(t,e,r={}){let n=qr(t);if(n.spec===null)throw new Ke("artifact-invalid","invalid GenUI spec");let{panel:a,append:i,...s}=n.spec,o=new Set,l={...s,items:pn(s.items,o)},m=r.theme??(typeof document<"u"&&document.body.hasAttribute("data-ds-dark-theme")?"dark":"light"),u=F1(e,o);return{format:Sa,version:1,spec:l,...u===void 0?{}:{state:u},presentation:{locale:r.locale??l0(),theme:m}}}Dr();function Or(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function P1(t){return!Or(t)||t.answers!==void 0&&(!Or(t.answers)||!Object.values(t.answers).every(e=>typeof e=="string"))||t.multiAnswers!==void 0&&(!Or(t.multiAnswers)||!Object.values(t.multiAnswers).every(e=>Array.isArray(e)&&e.every(r=>typeof r=="string")))||t.locked!==void 0&&typeof t.locked!="boolean"?!1:t.fields===void 0||Or(t.fields)&&Object.values(t.fields).every(e=>typeof e=="string")}function hn(t){if(!Or(t)||t.format!==Sa||t.version!==1||!Or(t.presentation)||t.presentation.locale!=="en"&&t.presentation.locale!=="zh"||t.presentation.theme!=="light"&&t.presentation.theme!=="dark"||t.state!==void 0&&!P1(t.state))return null;let e=qr(t.spec);return e.spec===null||e.errors.length>0?null:fn(e.spec,t.state,{locale:t.presentation.locale,theme:t.presentation.theme})}var H1=["mermaid","three","echarts-core","echarts-full"];function Fr(t,e,r){for(let n of t){if(typeof n!="object"||n===null||!("type"in n)||typeof n.type!="string")continue;let a=n;if(xr.has(a.type)||e.customTypes.push(a.type),a.type==="mermaid"&&r.add("mermaid"),a.type==="scene3d"&&r.add("three"),a.type==="echart"&&r.add(ma(a)),(typeof a.action=="string"||a.type==="submit"&&(typeof a.action=="string"||typeof a.resetAction=="string"))&&(e.hasModelActions=!0),a.type==="image"||a.type==="audio"||a.type==="video"){let i=or(a.src);if(i!==void 0&&e.externalMedia.push(i),a.type==="video"){let s=or(a.poster);s!==void 0&&e.externalMedia.push(s)}}if(Array.isArray(a.items))if(a.type==="list")Fr(a.items.filter(i=>typeof i=="object"&&i!==null&&"type"in i),e,r);else if(a.type==="accordion")for(let i of a.items)typeof i=="object"&&i!==null&&"items"in i&&Array.isArray(i.items)&&Fr(i.items,e,r);else Fr(a.items,e,r);if(Array.isArray(a.tabs))for(let i of a.tabs)typeof i=="object"&&i!==null&&"items"in i&&Array.isArray(i.items)&&Fr(i.items,e,r);if(a.type==="table"&&Array.isArray(a.details))for(let i of a.details)Array.isArray(i)&&Fr(i,e,r)}}function Pr(t){let e={requiredAssets:[],customTypes:[],externalMedia:[],hasModelActions:!1},r=new Set;return Fr(t.items,e,r),e.requiredAssets=H1.filter(n=>r.has(n)),e.customTypes=[...new Set(e.customTypes)],e.externalMedia=[...new Set(e.externalMedia)],e}var Id=`
|
|
286
|
+
`)}function jm({columns:t,rows:e}){Oe();let[r,n]=(0,$e.useState)(null),a=i=>{let s=i==="md"?Pm(t,e):Hm(e);nn(s).then(o=>{o&&(n(i),window.setTimeout(()=>n(null),1200))})};return(0,N.jsxs)("div",{className:g.tableTools,children:[(0,N.jsx)("button",{type:"button",className:g.tableTool,onClick:()=>a("md"),children:r==="md"?_("label.copiedDone"):_("block.copyMarkdown")}),(0,N.jsx)("button",{type:"button",className:g.tableTool,onClick:()=>a("csv"),children:r==="csv"?_("label.copiedDone"):_("block.copyCsv")})]})}function Um({cell:t}){let e=Gr(t),r=Number.isFinite(e)?Math.max(0,Math.min(100,e)):0;return(0,N.jsxs)("span",{className:g.cellBar,children:[(0,N.jsx)("span",{className:g.cellBarFill,style:{width:`${r}%`}}),(0,N.jsx)("span",{className:g.cellBarText,children:B(String(t),!1)})]})}var P0=(0,$e.memo)(function({node:e,renderDetail:r,filterValue:n,sortValue:a}){Oe();let i=e.columns.slice(0,A.maxTableCols),s=Kt(e),o=e.types??[],[l,m]=st("table-sort",null,M=>M===null||!!M&&typeof M=="object"&&Number.isInteger(M.col)&&M.col>=0&&M.col<e.columns.length&&[1,-1].includes(M.dir)),[u,p]=(0,$e.useState)(()=>new Set),[b,y]=(0,$e.useState)(()=>new Set),k=(M,j,H,ee)=>{let ie=Gr(M[H]),Se=Gr(j[H]);if(Number.isFinite(ie)&&Number.isFinite(Se)&&ie!==Se)return(ie-Se)*ee;if(Number.isFinite(ie)!==Number.isFinite(Se))return Number.isFinite(ie)?-ee:ee;let Fe=String(M[H]??""),Me=String(j[H]??"");return(Fe<Me?-1:Fe>Me?1:0)*ee},T=M=>$i(M,o),C=n?.trim().toLowerCase(),R=(C===void 0||C===""?s.map((M,j)=>({row:M,index:j})):s.map((M,j)=>({row:M,index:j})).filter(({row:M})=>(e.filterColumn===void 0?M:[M[e.filterColumn]]).some(H=>String(H??"").toLowerCase().includes(C)))).map(M=>M.row),G=s.length-R.length,L=[];R.forEach((M,j)=>{if(T(M)){L.push({header:{row:M,index:j},children:[]});return}(L.length===0||L[L.length-1].header===null)&&L.length===0&&L.push({header:null,children:[]}),L[L.length-1].children.push({row:M,index:j})});let X=a===void 0?-1:i.indexOf(a),J=l!==null?l:X>=0?{col:X,dir:1}:null,ae=L.map(M=>({header:M.header,children:J===null?M.children:[...M.children].sort((j,H)=>k(j.row,H.row,J.col,J.dir))})),Y=Im(R,i.length),V=M=>{p(j=>{let H=new Set(j);return H.has(M)?H.delete(M):H.add(M),H})},Z=M=>{y(j=>{let H=new Set(j);return H.has(M)?H.delete(M):H.add(M),H})},Q=M=>{m(j=>j!==null&&j.col===M?j.dir===1?{col:M,dir:-1}:null:{col:M,dir:1})},te=i.map((M,j)=>{if(!Y[j])return null;let H=0;for(let ee of R){if(T(ee))continue;let ie=Gr(ee[j]);Number.isFinite(ie)&&(H+=ie)}return H}),fe=e.total===!0&&te.some(M=>M!==null),he=M=>Number.isInteger(M)?M.toLocaleString("en-US"):String(Math.round(M*100)/100),ye=(M,j,H)=>{let ee=o[j],ie=Ei(M),Se=ee==="delta"?String(M).trim().startsWith("-")?"down":"up":qm(M);return(0,N.jsx)("td",{className:[Y[j]||ee==="num"?g.tdNum:void 0,ie].filter(Fe=>Fe!==void 0).join(" ")||void 0,children:ee==="badge"?(0,N.jsx)("span",{className:g.cellBadge,children:B(String(M),"file")}):ee==="bar"?(0,N.jsx)(Um,{cell:M}):ee==="spark"?(0,N.jsx)(Om,{cell:M}):ee==="ring"?(0,N.jsx)(Fm,{cell:M}):ee==="index"?(0,N.jsx)("span",{className:g.cellIndex,children:H+1}):Se===null?B(String(M),"file"):(0,N.jsx)("span",{className:`${g.tdDelta} ${Se==="up"?g.tdDeltaUp:g.tdDeltaDown}`,children:B(String(M),"file")})},j)};return(0,N.jsxs)("div",{className:g.tableWrap,children:[e.export===!0&&(0,N.jsx)(jm,{columns:i,rows:s}),(0,N.jsxs)("table",{className:g.table,children:[(0,N.jsx)("thead",{children:(0,N.jsx)("tr",{children:i.map((M,j)=>(0,N.jsx)("th",{className:[Y[j]?g.thNum:void 0,Ei(M)].filter(H=>H!==void 0).join(" ")||void 0,"aria-sort":l!==null&&l.col===j?l.dir===1?"ascending":"descending":"none",children:(0,N.jsxs)("button",{type:"button",className:g.thSort,onClick:()=>Q(j),children:[B(M,!1),l!==null&&l.col===j&&(0,N.jsx)("span",{className:g.thSortMark,"aria-hidden":!0,children:l.dir===1?" \u25B2":" \u25BC"})]})},j))})}),(0,N.jsx)("tbody",{children:ae.map((M,j)=>{let H=M.header?.index??j,ee=u.has(H);return(0,N.jsxs)($e.Fragment,{children:[M.header!==null&&(0,N.jsx)("tr",{className:g.groupRow,children:(0,N.jsxs)("td",{colSpan:i.length,className:Ei(String(M.header.row[0])),children:[(0,N.jsx)("button",{type:"button",className:g.groupToggle,"aria-label":_(ee?"block.table.expandGroup":"block.table.collapseGroup",{label:String(M.header.row[0]).replace(/\[([^\]]+)\]\([^)]+\)/g,"$1")}),"aria-expanded":!ee,onClick:()=>V(H),children:(0,N.jsx)("span",{className:g.groupChevron,"aria-hidden":!0,children:ee?"\u25B8":"\u25BE"})}),(0,N.jsxs)("span",{className:g.groupLabel,onClick:ie=>{ie.target instanceof Element&&ie.target.closest("button")||V(H)},children:[B(String(M.header.row[0]),"file"),(0,N.jsx)("span",{className:g.groupCount,children:M.children.length})]})]})}),!ee&&M.children.map(ie=>{let Se=e.details?.[ie.index]??null,Fe=b.has(ie.index);return(0,N.jsxs)($e.Fragment,{children:[(0,N.jsx)("tr",{className:M.header===null?void 0:g.groupChild,children:ie.row.slice(0,i.length).map((Me,dt)=>dt===0&&Se!==null?(0,N.jsxs)("td",{className:g.detailCell,children:[(0,N.jsx)("button",{type:"button",className:g.detailToggle,"aria-label":_(Fe?"block.table.collapseDetails":"block.table.expandDetails",{label:String(Me).replace(/\[([^\]]+)\]\([^)]+\)/g,"$1")}),"aria-expanded":Fe,onClick:()=>Z(ie.index),children:(0,N.jsx)("span",{className:g.detailChevron,"data-open":Fe,"aria-hidden":!0,children:"\u25B8"})}),(0,N.jsx)("span",{className:g.detailContent,onClick:pr=>{pr.target instanceof Element&&pr.target.closest("button")||Z(ie.index)},children:B(String(Me),"file")})]},dt):ye(Me,dt,ie.index))}),Fe&&Se!==null&&(0,N.jsx)("tr",{className:g.detailRow,children:(0,N.jsx)("td",{colSpan:i.length,children:(0,N.jsx)("div",{className:g.detailBody,children:r===void 0?null:r(Se)})})})]},ie.index)})]},M.header===null?`s-${j}`:`g-${M.header.index}`)})}),G>0&&(0,N.jsx)("tfoot",{children:(0,N.jsx)("tr",{className:g.filterRow,children:(0,N.jsx)("td",{colSpan:i.length,children:_("block.filteredRows",{visible:R.length,total:s.length})})})}),fe&&(0,N.jsx)("tfoot",{children:(0,N.jsx)("tr",{children:i.map((M,j)=>(0,N.jsx)("td",{className:Y[j]?g.tdNum:void 0,children:j===0?_("block.total"):te[j]===null?"":he(te[j])},j))})})]})]})});function Di(){let[t,e]=(0,$e.useState)(null),r=(0,$e.useCallback)((a,i)=>{let s=a.currentTarget,o=s.closest("[data-genui-chart], [data-genui-line], [data-genui-donut]");if(o===null)return;let l=o.getBoundingClientRect(),m=s.getBoundingClientRect();e({x:m.left-l.left+m.width/2,y:m.top-l.top,rows:i})},[]),n=(0,$e.useCallback)(()=>e(null),[]);return{tip:t,show:r,hide:n}}function sa({tip:t}){return t===null?null:(0,N.jsx)("div",{className:g.chartTip,style:{left:`${t.x}px`,top:`${t.y}px`},role:"tooltip",children:t.rows.map(([e,r],n)=>(0,N.jsxs)("span",{className:g.chartTipRow,children:[(0,N.jsx)("span",{children:B(e)}),(0,N.jsx)("span",{className:g.chartTipValue,children:B(String(r))})]},`${e}-${n}`))})}function Vm(){let t=(0,$e.useRef)(null),[e,r]=(0,$e.useState)(560);return(0,$e.useLayoutEffect)(()=>{let n=t.current;if(n===null)return;let a=()=>{let s=n.clientWidth;s>0&&r(s)};if(a(),typeof ResizeObserver>"u")return;let i=new ResizeObserver(a);return i.observe(n),()=>i.disconnect()},[]),[t,e]}function H0(t,e,r=4){let n=Math.min(t,0),a=Math.max(e,0);if(n===a)return[0,1];let i=(a-n)/Math.max(r,1),s=Math.pow(10,Math.floor(Math.log10(Math.max(i,Number.MIN_VALUE)))),o=i/s,l=(o<=1?1:o<=2?2:o<=5?5:10)*s,m=Math.floor(n/l)*l,u=Math.ceil(a/l)*l,p=[];for(let b=m;b<=u+l/2;b+=l)p.push(Math.abs(b)<l/1e6?0:b);return p}function an(t){let e=Math.abs(t);return e>=1e9?`${(t/1e9).toFixed(e%1e9===0?0:1)}b`:e>=1e6?`${(t/1e6).toFixed(e%1e6===0?0:1)}m`:e>=1e3?`${(t/1e3).toFixed(e%1e3===0?0:1)}k`:Number.isInteger(t)?String(t):String(Math.round(t*100)/100)}function Wm(t){if(!Number.isFinite(t))return 0;let[e,r]=String(t).toLowerCase().split("e"),n=e.split(".")[1]?.length??0,a=r===void 0?0:Number(r);return Math.max(n-a,0)}function Ot(t,e){if(!Number.isFinite(t)||Math.abs(t)>=1e21||e>100)return String(t);let r=t.toFixed(e);return r.includes(".")?r.replace(/\.?0+$/,""):r}function Ym({ticks:t,lo:e,span:r}){return(0,N.jsx)("div",{className:g.chartYAxis,style:{height:160},children:t.map(n=>(0,N.jsx)("span",{className:g.chartYTick,style:{bottom:`${(n-e)/r*100}%`},children:an(n)},n))})}var j0=(0,$e.memo)(function({chart:e,filterValue:r}){let n=(0,$e.useMemo)(()=>Km(e,r),[e,r]),a=n.kind??"bars";return a==="donut"?(0,N.jsx)(_m,{chart:n}):a==="line"?(0,N.jsx)(Xm,{chart:n}):(0,N.jsx)(Jm,{chart:n})});function Km(t,e){let r=e?.trim().toLowerCase();if(r===void 0||r==="")return t;let n=s=>s.label.toLowerCase().includes(r),a=t.data.filter(n);if(t.series===void 0)return a.length===t.data.length?t:{...t,data:a};let i=t.series.map(s=>({...s,data:s.data.filter(n)}));return{...t,data:a,series:i}}var Jm=(0,$e.memo)(function({chart:e}){Oe();let{tip:r,show:n,hide:a}=Di(),i=e.series!==void 0?e.series.slice(0,A.maxPlotSeries):void 0,s=i!==void 0&&i.length>0,o=e.data.slice(0,A.maxChartPoints),l=s?i[0].data.map(Y=>Y.label):o.map(Y=>Y.label),m=s?i.map(Y=>Y.data.map(V=>Number(V.value)||0)):[o.map(Y=>Number(Y.value)||0)],u=m.map((Y,V)=>ia(V,m.length,s?i[V]?.color:void 0,e.palette)??"var(--dsw-alias-state-business-primary, #4f8ef7)"),p=m.flat(),b=l.length<=12,y=e.stacked===!0&&s,k=l.map((Y,V)=>m.reduce((Z,Q)=>Z+Math.max(0,Q[V]??0),0)),T=l.map((Y,V)=>Math.max(...m.map(Z=>Wm(Z[V]??0)),0)),C=Math.max(...y?k:p,0);if(e.horizontal===!0){let Y=Math.max(C,1),V=s?(0,N.jsx)("div",{className:g.chartLegend,children:i.map((Z,Q)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:u[Q]}}),B(Z.label)]},Q))}):null;return(0,N.jsxs)("div",{className:g.chart,"data-genui-chart":"bars",role:"img","aria-label":_("block.chart.barsAria",{count:l.length}),onMouseLeave:a,children:[(0,N.jsx)("div",{className:g.hbars,children:l.map((Z,Q)=>(0,N.jsxs)("div",{className:g.hbarRow,children:[(0,N.jsx)("span",{className:g.hbarLabel,title:Z,children:B(Z)}),(0,N.jsx)("div",{className:g.hbarTracks,children:y?(0,N.jsx)("div",{className:g.hbarTrack,title:`${Z}: ${Ot(k[Q]??0,T[Q]??0)}`,children:m.map((te,fe)=>{let he=Math.max(0,te[Q]??0),ye=k[Q]??0,M=ye===0?0:he/ye*Math.max(0,Math.min(100,ye/Y*100));return(0,N.jsx)("div",{className:g.hbarSeg,style:{width:`${M}%`,background:u[fe]},onMouseEnter:j=>n(j,[[i[fe].label,String(he)],[_("block.total"),Ot(ye,T[Q]??0)]]),onMouseMove:j=>n(j,[[i[fe].label,String(he)],[_("block.total"),Ot(ye,T[Q]??0)]])},fe)})}):m.map((te,fe)=>{let he=te[Q]??0,ye=Math.max(0,Math.min(100,Math.max(0,he)/Y*100));return(0,N.jsx)("div",{className:g.hbarTrack,children:(0,N.jsx)("div",{className:g.hbarFill,style:{width:`${ye}%`,background:u[fe]},onMouseEnter:M=>n(M,s?[[i[fe].label,String(he)],[_("block.total"),Ot(k[Q]??0,T[Q]??0)]]:[[Z,String(he)]]),onMouseMove:M=>n(M,s?[[i[fe].label,String(he)],[_("block.total"),Ot(k[Q]??0,T[Q]??0)]]:[[Z,String(he)]])})},fe)})}),b&&(0,N.jsx)("span",{className:g.hbarValue,children:s?Ot(k[Q]??0,T[Q]??0):String(o[Q]?.value??"")})]},Q))}),V,(0,N.jsx)(sa,{tip:r})]})}let D=H0(s?0:Math.min(...p,0),C,4),R=D[0],L=D[D.length-1]-R||1,X=Y=>(Y-R)/L*100,J=X(0),ae=_("block.chart.barsSummary",{count:l.length,max:an(Math.max(...p,0))});return(0,N.jsxs)("div",{className:g.chart,"data-genui-chart":"bars",role:"img","aria-label":ae,onMouseLeave:a,children:[(0,N.jsx)(sa,{tip:r}),(0,N.jsxs)("div",{className:g.chartBody,children:[(0,N.jsx)(Ym,{ticks:D,lo:R,span:L}),(0,N.jsxs)("div",{className:g.chartPlot,children:[D.map(Y=>(0,N.jsx)("span",{className:Y===0?g.baseline:g.gridline,style:{bottom:`${X(Y)}%`}},Y)),l.map((Y,V)=>(0,N.jsx)("div",{className:g.barCol,children:y?(0,N.jsxs)(N.Fragment,{children:[b&&(0,N.jsx)("span",{className:g.barValue,style:{bottom:`calc(${X(k[V]??0)}% + 4px)`},children:Ot(k[V]??0,T[V]??0)}),(0,N.jsx)("div",{className:g.stack,style:{height:`${Math.max(0,X(k[V]??0))}%`},children:i.map((Z,Q)=>{let te=Z.data[V],fe=te===void 0?0:Number(te.value)||0,he=Math.max(0,fe),ye=k[V]??0,M=ye===0?0:he/ye*X(ye),j=[[Z.label,String(fe)],[_("block.total"),Ot(ye,T[V]??0)]];return(0,N.jsx)("div",{className:g.stackSeg,style:{height:ye===0?"0%":`${he/ye*100}%`,background:u[Q]},onMouseEnter:H=>n(H,j),onMouseMove:H=>n(H,j),children:M>=11&&(0,N.jsx)("span",{className:g.stackValue,children:fe})},Q)})})]}):s?(0,N.jsx)("div",{className:g.groupedBars,children:i.map((Z,Q)=>{let te=Z.data[V],fe=te===void 0?0:Number(te.value)||0;return(0,N.jsxs)("div",{className:g.groupedBar,children:[b&&(0,N.jsx)("span",{className:g.groupValue,children:te===void 0?"":String(te.value)}),(0,N.jsx)("div",{className:g.groupedFill,style:{height:`${Math.max(0,X(Math.max(0,fe)))}%`,background:u[Q]},onMouseEnter:he=>n(he,[[Z.label,String(te?.value??"")],[_("block.total"),Ot(k[V]??0,T[V]??0)]]),onMouseMove:he=>n(he,[[Z.label,String(te?.value??"")],[_("block.total"),Ot(k[V]??0,T[V]??0)]])})]},Q)})}):(()=>{let Z=m[0][V]??0,Q=Math.max(X(Z),J),te=Math.min(X(Z),J);return(0,N.jsxs)(N.Fragment,{children:[b&&(0,N.jsx)("span",{className:g.barValue,style:{bottom:`calc(${Q}% + 4px)`},children:String(o[V]?.value??"")}),(0,N.jsx)("div",{className:g.barFill,style:{bottom:`${te}%`,height:`${Math.max(Q-te,.6)}%`,...Z<0?{borderRadius:"0 0 5px 5px"}:{},...o[V]?.color!==void 0?{background:o[V].color}:{}},onMouseEnter:fe=>n(fe,[[Y,String(o[V]?.value??"")]]),onMouseMove:fe=>n(fe,[[Y,String(o[V]?.value??"")]])})]})})()},V))]})]}),(0,N.jsx)("div",{className:g.chartLabels,children:l.map((Y,V)=>(0,N.jsx)("span",{className:g.barLabel,children:B(Y)},`${Y}-${V}`))}),s&&(0,N.jsx)("div",{className:g.chartLegend,children:i.map((Y,V)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:u[V]}}),B(Y.label)]},V))})]})}),Xm=(0,$e.memo)(function({chart:e}){Oe();let[r,n]=Vm(),{tip:a,show:i,hide:s}=Di(),o=`genui-line-${(0,$e.useId)().replace(/:/g,"")}`,l=e.series!==void 0&&e.series.length>0?e.series.slice(0,A.maxPlotSeries):void 0,m=e.data.slice(0,A.maxChartPoints),u=l!==void 0?l[0].data.map(H=>H.label):m.map(H=>H.label),p=l!==void 0?l.map(H=>H.data.map(ee=>Number(ee.value)||0)):[m.map(H=>Number(H.value)||0)],b=p.map((H,ee)=>ia(ee,p.length,l!==void 0?l[ee]?.color:void 0,e.palette)??"var(--dsl-g-accent)"),y=p.length>1,k=p.flat(),T=Math.max(...p.map(H=>H.length),0),C=Math.max(n,260),D=176,R=44,G=12,L=14,X=26,J=H0(Math.min(...k,0),Math.max(...k,0),4),ae=J[0],V=J[J.length-1]-ae||1,Z=C-R-G,Q=D-L-X,te=H=>R+(T<=1?Z/2:H/(T-1)*Z),fe=H=>L+(1-(H-ae)/V)*Q,he=p.map(H=>H.map((ee,ie)=>`${ie===0?"M":"L"} ${te(ie).toFixed(1)} ${fe(ee).toFixed(1)}`).join(" ")),ye=!y&&T>1?`${he[0]} L ${te(T-1).toFixed(1)} ${fe(ae).toFixed(1)} L ${te(0).toFixed(1)} ${fe(ae).toFixed(1)} Z`:null,M=Math.max(1,Math.ceil(T/Math.max(1,Math.floor(Z/64)))),j=_(y?"block.chart.lineSeries":"block.chart.linePoints",{count:y?p.length:T,min:an(Math.min(...k,0)),max:an(Math.max(...k,0))});return(0,N.jsxs)("div",{className:g.lineChart,"data-genui-chart":"line","data-genui-line":!0,ref:r,role:"img","aria-label":j,onMouseLeave:s,children:[(0,N.jsx)(sa,{tip:a}),(0,N.jsxs)("svg",{width:"100%",viewBox:`0 0 ${C} ${D}`,preserveAspectRatio:"none",children:[(0,N.jsx)("defs",{children:(0,N.jsxs)("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,N.jsx)("stop",{offset:"0%",stopColor:"var(--dsl-g-accent)",stopOpacity:"0.22"}),(0,N.jsx)("stop",{offset:"100%",stopColor:"var(--dsl-g-accent)",stopOpacity:"0.02"})]})}),J.map((H,ee)=>{let ie=fe(H);return(0,N.jsxs)("g",{children:[(0,N.jsx)("line",{x1:R,x2:C-G,y1:ie,y2:ie,className:ee===0?g.lineGridAxis:g.lineGrid}),(0,N.jsx)("text",{x:R-8,y:ie+4,textAnchor:"end",className:g.lineTick,children:an(H)})]},H)}),ye!==null&&(0,N.jsx)("path",{d:ye,fill:`url(#${o})`}),he.map((H,ee)=>(0,N.jsx)("path",{d:H,className:g.linePath,style:{stroke:b[ee]}},ee)),p.map((H,ee)=>H.map((ie,Se)=>{let Fe=y?[[l[ee].label,String(ie)],[_("block.chart.node"),u[Se]??""]]:[[u[Se]??"",String(ie)]];return(0,N.jsx)("circle",{cx:te(Se),cy:fe(ie),r:y?3:3.5,className:g.lineDot,style:{fill:b[ee]},onMouseEnter:Me=>i(Me,Fe),onMouseMove:Me=>i(Me,Fe)},`${ee}-${Se}`)})),u.map((H,ee)=>ee%M===0?(0,N.jsx)("text",{x:te(ee),y:D-8,textAnchor:"middle",className:g.lineLabel,children:H},`l-${ee}`):null)]}),y&&(0,N.jsx)("div",{className:g.chartLegend,children:l.map((H,ee)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:b[ee]}}),B(H.label)]},ee))})]})}),_m=(0,$e.memo)(function({chart:e}){Oe();let{tip:r,show:n,hide:a}=Di(),i=e.data.slice(0,A.maxChartPoints),s=i.map(T=>({...T,v:Math.max(0,Number(T.value)||0)})),o=s.reduce((T,C)=>T+C.v,0)||1,l=o>=1e3?`${Math.round(o/100)/10}k`:Number.isInteger(o)?String(o):o.toFixed(1),m=62,u=18,p=160,b=2*Math.PI*m,y=0,k=_("block.chart.donutSummary",{count:s.length,total:l});return(0,N.jsxs)("div",{className:g.donut,"data-genui-chart":"donut","data-genui-donut":!0,role:"img","aria-label":k,onMouseLeave:a,children:[(0,N.jsx)(sa,{tip:r}),(0,N.jsxs)("svg",{width:p,height:p,viewBox:`0 0 ${p} ${p}`,children:[(0,N.jsx)("circle",{cx:p/2,cy:p/2,r:m,fill:"none",strokeWidth:u,className:g.donutTrack}),s.map((T,C)=>{let D=T.v/o,R=D*b,G=(0,N.jsx)("circle",{cx:p/2,cy:p/2,r:m,fill:"none",strokeWidth:u,className:g.donutSeg,style:{stroke:ia(C,i.length,T.color,e.palette)??"var(--dsw-alias-state-business-primary, #4f8ef7)"},strokeDasharray:`${R} ${b-R}`,strokeDashoffset:-y,transform:`rotate(-90 ${p/2} ${p/2})`,onMouseEnter:L=>n(L,[[T.label,`${String(T.value)} \xB7 ${(D*100).toFixed(1)}%`]]),onMouseMove:L=>n(L,[[T.label,`${String(T.value)} \xB7 ${(D*100).toFixed(1)}%`]])},C);return y+=R,G}),(0,N.jsx)("text",{x:p/2,y:p/2-2,textAnchor:"middle",className:g.donutTotal,children:l}),(0,N.jsx)("text",{x:p/2,y:p/2+16,textAnchor:"middle",className:g.donutTotalLabel,children:_("block.total")})]}),(0,N.jsx)("div",{className:g.donutLegend,children:s.map((T,C)=>(0,N.jsxs)("span",{className:g.legendItem,children:[(0,N.jsx)("span",{className:g.legendSwatch,style:{background:ia(C,i.length,T.color,e.palette)??"var(--dsw-alias-state-business-primary, #4f8ef7)"}}),(0,N.jsx)("span",{children:B(T.label)}),(0,N.jsxs)("span",{className:g.donutPct,children:[String(T.value)," \xB7 ",(T.v/o*100).toFixed(1),"%"]})]},C))})]})});var Ye=require("react");function U0(t,e){let r=(a,i,s)=>{s>A.maxDepth||a.forEach((o,l)=>n(o,`${i}[${l}]`,s))},n=(a,i,s)=>{if(!(s>A.maxDepth)&&(e(a,i),!(s>=A.maxDepth)))switch(a.type){case"row":case"col":case"grid":case"card":r(a.items,`${i}.items`,s+1);break;case"tabs":a.tabs.forEach((o,l)=>r(o.items,`${i}.tabs[${l}].items`,s+1));break;case"accordion":a.items.forEach((o,l)=>r(o.items,`${i}.items[${l}].items`,s+1));break;case"list":a.items.forEach((o,l)=>{o!==null&&typeof o=="object"&&"type"in o&&n(o,`${i}.items[${l}]`,s+1)});break;case"table":a.details?.slice(0,Kt(a).length).forEach((o,l)=>{o!==null&&Nt(a,l)&&r(o,`${i}.details[${l}]`,s+1)});break}};r(t.items,"items",0)}function oa(t){let e=new Map,r=new Map,n=[],a=[];U0(t,(i,s)=>{if(i.type==="submit"){i.groups!==void 0&&a.push({groups:i.groups,path:s});return}let o,l;switch(i.type){case"radio":if(i.group===void 0)return;o={kind:"radio",key:i.group,label:i.label??i.group,options:i.options.slice(0,A.maxOptions),...i.answer===void 0?{}:{answer:i.answer},...i.explanation===void 0?{}:{explanation:i.explanation}},l=`${s}.group`;break;case"checkbox":if(i.group===void 0)return;o={kind:"checkbox",key:i.group},l=`${s}.group`;break;case"input":case"textarea":case"select":case"slider":if(i.id===void 0)return;o={kind:"field",key:i.id,fieldType:i.type,secret:i.type==="input"&&i.inputType==="password"},l=`${s}.id`;break;default:return}if(o===void 0)return;let m=e.get(o.key);if(m!==void 0){(m.kind!=="checkbox"||o.kind!=="checkbox")&&n.push(`${l} conflicts with ${r.get(o.key)}: submission key '${o.key}' is already used`);return}e.set(o.key,o),r.set(o.key,l)});for(let{groups:i,path:s}of a){let o=new Set;i.forEach((l,m)=>{let u=`${s}.groups[${m}]`;o.has(l)&&n.push(`${u}: duplicate submission member '${l}'`),o.add(l);let p=e.get(l);p===void 0?n.push(`${u}: submit.groups references unknown submission member '${l}'`):p.kind==="field"&&p.secret&&n.push(`${u}: submit.groups cannot require secret field '${l}'`)})}return{registry:{members:e},diagnostics:n}}function W0(t){return oa(t).registry}function V0(t,e){switch(t.kind){case"radio":return e.answers[t.key]!==void 0;case"checkbox":return(e.multiAnswers[t.key]?.length??0)>0;case"field":{if(t.secret)return!1;let r=e.fields[t.key];return r!==void 0&&r.trim()!==""}}}function Y0({registry:t,groups:e,state:r}){let n=e?.some(u=>!t.members.has(u))??!1,a=e===void 0?[...t.members.values()].filter(u=>V0(u,r)):e.flatMap(u=>{let p=t.members.get(u);return p===void 0?[]:[p]}),i=a.filter(u=>V0(u,r)).length,s=e?.length??a.length,o=new Set(a.map(u=>u.key)),l=Object.keys(r.answers).some(u=>!o.has(u))||Object.keys(r.multiAnswers).some(u=>!o.has(u))||Object.entries(r.fields).some(([u,p])=>!u.startsWith("__motion_")&&p.trim()!==""&&!r.secretFields.has(u)&&!o.has(u)),m=!n&&a.length>0&&a.every(u=>u.kind==="radio")&&a.some(u=>u.kind==="radio"&&u.answer!==void 0);return{scope:a,answered:i,total:s,localGradeEligible:m,hasOutOfScopePayload:l}}var pe=require("react/jsx-runtime");function J0({node:t,onAction:e,answers:r}){let n=t.action,a=t.group,i=a!==void 0,s=t.options.slice(0,A.maxOptions),o=a!==void 0&&r?.answers[a]!==void 0?s.indexOf(r.answers[a]):-1,[l,m]=st("radio",o>=0?o:t.selected??null,b=>b===null||Number.isInteger(b)&&Number(b)>=0&&Number(b)<s.length,!i),u=(0,Ye.useId)(),p=i&&r?.locked===!0;return(0,Ye.useEffect)(()=>{a!==void 0&&t.selected!==void 0&&s[t.selected]!==void 0&&r?.answers[a]===void 0&&r?.setAnswer(a,s[t.selected])},[a,t.label,t.answer,t.explanation,t.options,t.selected]),(0,pe.jsxs)("div",{className:g.fieldGroup,role:"radiogroup","aria-label":t.label,children:[t.label!==void 0&&(0,pe.jsx)("span",{className:g.fieldLabel,children:B(t.label,!1)}),s.map((b,y)=>(0,pe.jsxs)("label",{className:g.radio,children:[(0,pe.jsx)("input",{type:"radio",name:`genui-radio-${u}`,checked:l===y,disabled:p,onChange:()=>{m(y),i?r?.setAnswer(a,b):n!==void 0&&e!==void 0&&e(n,{type:"radio",value:b})}}),(0,pe.jsx)("span",{children:B(b,!1)})]},y))]})}function K0(t){if(t.answer!==void 0)return typeof t.answer=="number"?t.options[t.answer]:t.answer}function X0({node:t,onAction:e,answers:r}){let n=Oe(),a=r?.answers??{},i=r?.multiAnswers??{},s=r?.fields??{},o=t.groups,l=Object.fromEntries(Object.entries(s).filter(([R,G])=>!R.startsWith("__motion_")&&G.trim()!==""&&!r?.secretFields.has(R))),m=r===void 0?{scope:[],answered:0,total:o?.length??0,localGradeEligible:!1,hasOutOfScopePayload:!1}:Y0({registry:r.registry,...o===void 0?{}:{groups:o},state:{answers:a,multiAnswers:i,fields:s,secretFields:r.secretFields}}),{scope:u,answered:p,total:b}=m,y=t.action!==void 0&&e!==void 0,k=m.localGradeEligible&&(!m.hasOutOfScopePayload||!y),T=r?.locked===!0,C={...a,...i},D=p>0&&p>=b&&(k||y);if(T){let R=u.filter(L=>L.kind==="radio"&&a[L.key]!==void 0&&L.answer!==void 0),G=R.filter(L=>a[L.key]===K0(L)).length;return(0,pe.jsxs)("div",{className:g.gradeWrap,"data-genui-grade":!0,children:[(0,pe.jsxs)("div",{className:g.gradeScore,children:[(0,pe.jsxs)("span",{className:g.gradeScoreValue,children:[G," / ",R.length]}),(0,pe.jsxs)("span",{className:g.gradeScoreLabel,children:[n("block.score"),R.length<u.length?n("block.scoreUngraded",{count:u.length-R.length}):""]})]}),(0,pe.jsx)("div",{className:g.gradeList,children:u.map(L=>{if(L.kind!=="radio")return null;let X=a[L.key];if(X===void 0)return null;let J=K0(L);if(J===void 0)return(0,pe.jsxs)("div",{className:g.gradeItem,children:[(0,pe.jsx)("span",{className:g.gradeQ,children:B(L.label)}),(0,pe.jsxs)("span",{className:g.gradeAns,children:[n("block.yourAnswer"),B(X)]})]},L.key);let ae=X===J;return(0,pe.jsxs)("div",{className:`${g.gradeItem} ${ae?g.gradeItemOk:g.gradeItemNo}`,children:[(0,pe.jsx)("span",{className:g.gradeQ,children:B(L.label)}),(0,pe.jsx)("span",{className:g.gradeTag,children:ae?"\u2713":"\u2717"}),(0,pe.jsxs)("span",{className:g.gradeAns,children:[n("block.yourAnswer"),B(X),!ae&&(0,pe.jsxs)("span",{className:g.gradeRight,children:[n("block.correctAnswer"),B(J??"")]})]}),L.explanation!==void 0&&(0,pe.jsx)("span",{className:g.gradeExp,children:B(L.explanation)})]},L.key)})}),(0,pe.jsx)("button",{type:"button",className:`${g.button} ${g.ghost} ${g.submit}`,onClick:()=>{r?.clear(),t.resetAction!==void 0&&e!==void 0&&e(t.resetAction,{type:"submit-reset",groups:o??Object.keys(a)})},children:n("block.quizRetry")})]})}return(0,pe.jsxs)("div",{className:g.submitRow,children:[(0,pe.jsx)("button",{type:"button",className:`${g.button} ${g.primary} ${g.submit}`,disabled:!D,onClick:D?()=>{k?r?.setLocked(!0):t.action!==void 0&&e!==void 0&&e(t.action,{type:"submit",answers:C,...Object.keys(l).length>0?{fields:l}:{},total:b,answered:p})}:void 0,children:B(t.label,!1)}),b>0&&(0,pe.jsx)("span",{className:g.submitHint,"aria-live":"polite",children:n("block.selectedCount",{answered:p,total:b})})]})}function _0({node:t,onAction:e}){let[r,n]=st("switch",t.checked===!0,i=>typeof i=="boolean"),a=t.action;return(0,pe.jsxs)("label",{className:g.switchRow,children:[(0,pe.jsx)("span",{className:g.switchLabel,children:B(t.label,!1)}),(0,pe.jsx)("button",{type:"button",role:"switch","aria-checked":r,className:`${g.switch} ${r?g.switchOn:""}`,onClick:()=>{let i=!r;n(i),a!==void 0&&e!==void 0&&e(a,{type:"switch",checked:i})},children:(0,pe.jsx)("span",{className:g.switchKnob})})]})}function Z0({node:t,onAction:e,answers:r}){let n=t.action,a=t.id,i=a!==void 0&&r?.fields[a]!==void 0?Number(r.fields[a]):NaN,s=Number.isFinite(i)?i:t.value??t.min??0,[o,l]=st("slider",s,p=>typeof p=="number"&&Number.isFinite(p)&&p>=(t.min??-1/0)&&p<=(t.max??1/0),a===void 0),m=(0,Ye.useRef)(!1);(0,Ye.useEffect)(()=>{m.current||(m.current=!0,a!==void 0&&r?.setField(a,String(s)))},[]);let u=p=>{n!==void 0&&e!==void 0&&e(n,{type:"slider",value:p,...a!==void 0?{id:a}:{}})};return(0,pe.jsxs)("label",{className:g.sliderRow,children:[t.label!==void 0&&(0,pe.jsx)("span",{className:g.fieldLabel,children:B(t.label,!1)}),(0,pe.jsx)("input",{type:"range",className:g.sliderInput,min:t.min,max:t.max,step:t.step??1,value:o,"aria-label":t.label,onChange:p=>{let b=Number(p.currentTarget.value);l(b),a!==void 0&&r?.setField(a,String(b)),u(b)}}),(0,pe.jsx)("span",{className:g.sliderValue,children:Math.round(o*100)/100})]})}function Q0(){let t=(0,Ye.useRef)(!1),e=(0,Ye.useRef)(null);return(0,Ye.useEffect)(()=>()=>{e.current!==null&&clearTimeout(e.current)},[]),{isComposing:()=>t.current,onCompositionStart:()=>{t.current=!0,e.current!==null&&(clearTimeout(e.current),e.current=null)},onCompositionEnd:()=>{e.current!==null&&clearTimeout(e.current),e.current=setTimeout(()=>{t.current=!1},10)}}}function el(t){let e=t.nativeEvent;return e.isComposing===!0||e.keyCode===229}function tl({node:t,onAction:e,answers:r}){let n=Oe(),a=t.action,i=t.id,s=t.options.slice(0,A.maxOptions),o=i!==void 0&&r?.fields[i]!==void 0?s.indexOf(r.fields[i]):-1,l=o>=0?s[o]:t.selected!==void 0&&s[t.selected]!==void 0?s[t.selected]:null,[m,u]=st("select",l,y=>y===null||typeof y=="string"&&s.includes(y),i===void 0),p=(0,Ye.useRef)(!1);(0,Ye.useEffect)(()=>{p.current||(p.current=!0,i!==void 0&&l!==null&&r?.setField(i,l))},[]);let b=y=>{a!==void 0&&e!==void 0&&e(a,{type:"select",value:y,...i!==void 0?{id:i}:{}})};return(0,pe.jsxs)("label",{className:g.field,children:[t.label!==void 0&&(0,pe.jsx)("span",{children:B(t.label,!1)}),(0,pe.jsxs)("select",{className:g.select,value:m??"",onChange:y=>{let k=y.currentTarget.value;u(k),i!==void 0&&r?.setField(i,k),b(k)},children:[m===null&&(0,pe.jsx)("option",{value:"",hidden:!0,disabled:!0,children:n("block.selectPlaceholder")}),s.map((y,k)=>(0,pe.jsx)("option",{value:y,children:y},k))]})]})}function rl({node:t,onAction:e,answers:r}){let n=t.action,a=t.id,i=t.inputType==="password",s=!i&&a!==void 0?r?.fields[a]:void 0,[o,l]=st("input",()=>{let y=i?"":s??t.value??"";return t.inputType==="color"?/^#[0-9a-f]{6}$/i.test(y)?y.toLowerCase():"#000000":y},y=>typeof y=="string"&&y.length<=4096,a===void 0&&!i),m=(0,Ye.useRef)(o),u=y=>{n!==void 0&&e!==void 0&&(m.current=o,e(n,{type:"input",value:o,...a!==void 0?{id:a}:{},...y?{submit:!0}:{}}))},p=Q0(),b=(0,Ye.useRef)(!1);return(0,Ye.useEffect)(()=>{b.current||(b.current=!0,!i&&a!==void 0&&o.trim()!==""&&r?.setField(a,o))},[]),(0,Ye.useEffect)(()=>{i&&a!==void 0&&r?.registerSecretField(a)},[i,a]),(0,pe.jsxs)("label",{className:g.field,children:[t.label!==void 0&&(0,pe.jsx)("span",{children:B(t.label,!1)}),(0,pe.jsx)("input",{className:g.input,type:t.inputType??"text",style:t.inputType==="color"?{width:64,height:40,padding:4,boxSizing:"border-box",alignSelf:"flex-start",cursor:"pointer"}:void 0,placeholder:t.placeholder,value:o,onChange:y=>{let k=y.currentTarget.value;l(k),a!==void 0&&r?.setField(a,k)},onBlur:()=>{o!==m.current&&u(!1)},onCompositionStart:p.onCompositionStart,onCompositionEnd:p.onCompositionEnd,onKeyDown:y=>{y.key==="Enter"&&(p.isComposing()||el(y)||(y.preventDefault(),u(!0)))}})]})}function nl({node:t,onAction:e,answers:r}){let n=t.action,a=t.id,i=a!==void 0?r?.fields[a]:void 0,[s,o]=st("textarea",()=>i??t.value??"",b=>typeof b=="string"&&b.length<=4096,a===void 0),l=(0,Ye.useRef)(s),m=b=>{n!==void 0&&e!==void 0&&(l.current=s,e(n,{type:"textarea",value:s,...a!==void 0?{id:a}:{},...b?{submit:!0}:{}}))},u=Q0(),p=(0,Ye.useRef)(!1);return(0,Ye.useEffect)(()=>{p.current||(p.current=!0,a!==void 0&&s.trim()!==""&&r?.setField(a,s))},[]),(0,pe.jsxs)("label",{className:g.field,children:[t.label!==void 0&&(0,pe.jsx)("span",{children:B(t.label,!1)}),(0,pe.jsx)("textarea",{className:g.textarea,placeholder:t.placeholder,rows:t.rows??4,value:s,onChange:b=>{let y=b.currentTarget.value;o(y),a!==void 0&&r?.setField(a,y)},onBlur:()=>{s!==l.current&&m(!1)},onCompositionStart:u.onCompositionStart,onCompositionEnd:u.onCompositionEnd,onKeyDown:b=>{!(b.metaKey||b.ctrlKey)||b.key!=="Enter"||u.isComposing()||el(b)||(b.preventDefault(),m(!0))}})]})}var la=require("react");var sn=require("react/jsx-runtime");function al({node:t,onAction:e,answers:r}){let n=t.group,a=n!==void 0,i=n!==void 0&&Object.prototype.hasOwnProperty.call(r?.multiAnswers??{},n),s=n===void 0?void 0:r?.multiAnswers[n],o=i?Array.isArray(s)&&s.includes(t.label):t.checked===!0,[l,m]=(0,la.useState)(t.checked===!0);return(0,la.useEffect)(()=>{n===void 0||t.checked!==!0||i||r?.setMultiAnswer(n,t.label,!0)},[n,t.checked,t.label,i]),(0,sn.jsxs)("label",{className:g.checkbox,children:[(0,sn.jsx)("input",{type:"checkbox",checked:a?o:l,onChange:u=>{let p=u.currentTarget.checked;m(p),a?r?.setMultiAnswer(n,t.label,p):t.action!==void 0&&e!==void 0&&e(t.action,{type:"checkbox",checked:p})}}),(0,sn.jsx)("span",{children:B(t.label,!1)})]})}var ke=require("react");var ft=require("react");var il={pi:Math.PI,e:Math.E,tau:Math.PI*2},Zm={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sqrt:Math.sqrt,cbrt:Math.cbrt,exp:Math.exp,log:Math.log10,ln:Math.log,abs:Math.abs,floor:Math.floor,ceil:Math.ceil,round:Math.round,min:Math.min,max:Math.max,pow:(t,e)=>Math.pow(t,e)},vt=class extends Error{constructor(r,n){super(`SafeMath parse error at ${n}: ${r}`);this.pos=n}},Ii=class{constructor(e,r){this.src=e;this.vars=r}i=0;parse(){let e=this.parseExpr();if(this.skipWs(),this.i<this.src.length)throw new vt("unexpected trailing input",this.i);return this.evalNode(e)}evalNode(e){return typeof e=="number"?()=>e:e}parseExpr(){let e=this.parseTerm();for(;;){this.skipWs();let r=this.peek();if(r==="+"||r==="-"){this.i++;let n=this.parseTerm(),a=r,i=e;e=a==="+"?s=>this.asNum(i,s)+this.asNum(n,s):s=>this.asNum(i,s)-this.asNum(n,s)}else return e}}parseTerm(){let e=this.parseUnary();for(;;){this.skipWs();let r=this.peek();if(r==="*"||r==="/"||r==="%"){this.i++;let n=this.parseUnary(),a=r,i=e;e=a==="*"?s=>this.asNum(i,s)*this.asNum(n,s):a==="/"?s=>this.asNum(i,s)/this.asNum(n,s):s=>this.asNum(i,s)%this.asNum(n,s)}else return e}}parseUnary(){this.skipWs();let e=this.char();if(e==="-"||e==="+"){this.i++;let r=this.parseUnary();return e==="-"?n=>-this.asNum(r,n):n=>this.asNum(r,n)}return this.parsePower()}parsePower(){let e=this.parseAtom();if(this.skipWs(),this.peek()==="^"){this.i++;let r=this.parsePower(),n=e;return a=>Math.pow(this.asNum(n,a),this.asNum(r,a))}return e}parseAtom(){this.skipWs();let e=this.char();if(e==="("){this.i++;let r=this.parseExpr();if(this.skipWs(),this.peek()!==")")throw new vt("expected )",this.i);return this.i++,r}if(e>="0"&&e<="9"||e===".")return this.parseNumber();if(this.isIdentStart(e))return this.parseIdent();throw new vt(`unexpected character '${e}'`,this.i)}parseNumber(){let e=this.i,r=!1;for(;this.i<this.src.length&&/[0-9]/.test(this.src[this.i]);)r=!0,this.i++;if(this.peek()===".")for(this.i++;this.i<this.src.length&&/[0-9]/.test(this.src[this.i]);)r=!0,this.i++;if(!r)throw new vt(`invalid number '${this.src.slice(e,this.i)}'`,e);if(this.peek()==="e"||this.peek()==="E"){this.i++,(this.peek()==="+"||this.peek()==="-")&&this.i++;let i=this.i;for(;this.i<this.src.length&&/[0-9]/.test(this.src[this.i]);)this.i++;if(this.i===i)throw new vt(`invalid number '${this.src.slice(e,this.i)}'`,e)}let n=this.src.slice(e,this.i),a=Number(n);if(Number.isNaN(a))throw new vt(`invalid number '${n}'`,e);return a}parseIdent(){let e=this.i;for(;this.i<this.src.length&&this.isIdentChar(this.src[this.i]);)this.i++;let r=this.src.slice(e,this.i);if(this.skipWs(),this.peek()==="("){let n=Zm[r];if(n===void 0)throw new vt(`unknown function '${r}'`,e);this.i++;let a=[];if(this.skipWs(),this.peek()===")")this.i++;else for(;;){a.push(this.parseExpr()),this.skipWs();let i=this.peek();if(i===","){this.i++;continue}if(i===")"){this.i++;break}throw new vt("expected , or ) in call",this.i)}return i=>n(...a.map(s=>this.asNum(s,i)))}if(Object.hasOwn(il,r))return il[r];if(r==="x")return n=>n;if(Object.hasOwn(this.vars,r)){let n=this.vars[r];return()=>n}if(/^[a-z]$/.test(r))return()=>1;throw new vt(`unknown identifier '${r}'`,e)}asNum(e,r){return typeof e=="number"?e:e(r)}skipWs(){for(;this.i<this.src.length&&/\s/.test(this.src[this.i]);)this.i++}peek(){return this.src[this.i]}char(){let e=this.peek();if(e===void 0)throw new vt("unexpected end of input",this.i);return e}isIdentStart(e){return e!==void 0&&/[a-zA-Z_]/.test(e)}isIdentChar(e){return/[a-zA-Z0-9_]/.test(e)}};function Qm(t,e={}){try{let r={...e.vars};return delete r.x,new Ii(t,r).parse()}catch{return null}}function Li(t,e,r,n=200,a={}){let i=Qm(t,{vars:a});if(i===null)return[];if(!Number.isFinite(e)||!Number.isFinite(r)||r<=e||n<2)return[];let s=[],o=(r-e)/(n-1);for(let l=0;l<n;l++){let m=e+o*l,u=i(m);Number.isFinite(u)&&s.push([m,u])}return s}var xe={block:"do",title:"go",gridLine:"po",axis:"co",tick:"fo",line:"bo",area:"vo",scatterDot:"xo",legend:"mo",legendItem:"uo",legendSwatch:"wo",empty:"ho",emptyRow:"yo",surface:"Nr",plotTools:"ko",plotHint:"zo",plotReset:"Or",sliders:"jo",sliderRow:"Yo",sliderName:"Fo",slider:"Mo",sliderValue:"So",animBar:"qo",playBtn:"Pr",animTrack:"Ao",animFill:"Bo",resetBtn:"Qr",slidersHead:"Co",slidersTitle:"Do"};var ge=require("react/jsx-runtime"),sl=["var(--dsw-static-deepseek-400)","var(--dsw-static-green-400)","var(--dsw-static-amber-400)","var(--dsw-static-red-400)","var(--dsw-static-blue-450)","var(--dsw-static-deepseek-450)","var(--dsw-static-neutral-bluish-400)","var(--dsw-static-deepseek-300)"],ol=(t,e,r)=>r??(e>1?sl[t%sl.length]:void 0),on=480,br=220,cr=34,Bi=10,ca=14,$r=24,ll=240;function tp(t){let e=1/0,r=-1/0;for(let[,a]of t)a<e&&(e=a),a>r&&(r=a);if(!Number.isFinite(e)||!Number.isFinite(r))return[-1,1];e===r&&(e-=1,r+=1);let n=(r-e)*.08;return[e-n,r+n]}function cl(t,e,r=5){let n=e-t;if(!Number.isFinite(n)||n<=0)return[];let a=Math.pow(10,Math.floor(Math.log10(n/r))),i=n/r/a,s=i>=7.5?10:i>=3.5?5:i>=1.5?2:1,o=a*s,l=[];for(let m=Math.ceil(t/o)*o;m<=e+o*1e-9;m+=o)l.push(Math.round(m*1e9)/1e9);return l}function da(t){return Math.abs(t)>=1e5||Math.abs(t)<.001&&t!==0?t.toExponential(1):String(Math.round(t*100)/100)}function dl({points:t,className:e,color:r}){let n=t.length>40?`${t.slice(0,16)}|${t.slice(-16)}`:t;return(0,ge.jsx)("polyline",{points:t,className:e,style:r!==void 0?{stroke:r}:void 0},n)}var ul=(0,ft.memo)(function({series:e,xMin:r=-5,xMax:n=5,yMin:a,yMax:i,title:s}){let[o,l]=st("plot-view",()=>{let U={};for(let[we,Ee]of e.entries())for(let Re of Ee.params??[])Re!=null&&(U[`${we}:${Re.name}`]=Re.value);let ce=e.map((we,Ee)=>{let Re={};for(let Ge of we.params??[])Ge!=null&&(Re[Ge.name]=U[`${Ee}:${Ge.name}`]??Ge.value);return Li(we.expr,r,n,ll,Re)}),[se,ve]=tp(ce.flatMap(we=>we));return{xMin:r,xMax:n,yMin:a??se,yMax:i??ve}}),m=(0,ft.useRef)(null),[u,p,b]=st("plot-params",{},U=>!!U&&typeof U=="object"&&!Array.isArray(U)&&Object.entries(U).every(([ce,se])=>{let[ve,we]=ce.split(":"),Ee=e[Number(ve)]?.params?.find(Re=>Re.name===we);return!!Ee&&typeof se=="number"&&Number.isFinite(se)&&se>=(Ee.min??-1/0)&&se<=(Ee.max??1/0)})),y=(()=>{for(let[U,ce]of e.entries())for(let se of ce.params??[])if(se!=null&&se.animateTo!==void 0)return{si:U,param:se};return null})(),[k,T]=(0,ft.useState)(!1),[C,D]=(0,ft.useState)(0),R=(0,ft.useRef)(null);(0,ft.useEffect)(()=>{if(!k||y===null)return;let U=`${y.si}:${y.param.name}`,ce=u[U]??y.param.value,se=y.param.animateTo,ve=Math.max(0,y.param.durationMs??4e3),we=performance.now(),Ee=Re=>{let Ge=ve===0?1:Math.min(1,Math.max(0,(Re-we)/ve)),tt=1-Math.pow(1-Ge,3),kr=ce+(se-ce)*tt;b(Hr=>({...Hr,[U]:kr})),D(Ge),Ge<1?R.current=requestAnimationFrame(Ee):y.param.loop===!0?(ce=y.param.value,we=Re,b(Hr=>({...Hr,[U]:ce})),D(0),R.current=requestAnimationFrame(Ee)):(R.current=null,T(!1))};return R.current=requestAnimationFrame(Ee),()=>{R.current!==null&&cancelAnimationFrame(R.current),R.current=null}},[k,y?.si,y?.param.name,y?.param.value,y?.param.animateTo,y?.param.durationMs,y?.param.loop]);let G=o.xMin,L=o.xMax,X=o.yMin,J=o.yMax,ae=on-cr-Bi,Y=br-ca-$r,V=U=>G+(U-cr)/ae*(L-G),Z=U=>cr+(U-G)/(L-G)*ae,Q=U=>ca+(1-(U-X)/(J-X))*Y,te=e.map((U,ce)=>{let se={};for(let we of U.params??[])we!=null&&(se[we.name]=u[`${ce}:${we.name}`]??we.value);let ve=Li(U.expr,G,L,ll,se);return{series:U,points:ve.map(([we,Ee])=>`${Z(we).toFixed(2)},${Q(Ee).toFixed(2)}`).join(" ")}}),fe=cl(G,L),he=cl(X,J),ye=te.some(U=>U.points.length>1),M=Number.isFinite(G)&&Number.isFinite(L)&&L>G&&Number.isFinite(J)&&Number.isFinite(X)&&J>X,j=(U,ce,se)=>{let ve=ol(ce,te.length,U.color)??"var(--dsw-alias-state-business-primary, #4f8ef7)",we=U.kind??"line";if(we==="scatter"){let Ee=se===""?[]:se.split(" ").map(Re=>{let[Ge,tt]=Re.split(",");return[Number(Ge),Number(tt)]});return(0,ge.jsx)("g",{children:Ee.map(([Re,Ge],tt)=>(0,ge.jsx)("circle",{cx:Re,cy:Ge,r:2.6,className:xe.scatterDot,style:{fill:ve}},tt))},ce)}if(we==="area"){if(se==="")return(0,ge.jsx)(dl,{points:"",className:xe.line,color:ve},ce);let Ee=se.slice(0,se.indexOf(" ")).split(",")[0],Re=se.slice(se.lastIndexOf(" ")+1).split(",")[0],Ge=Q(X),tt=`${Ee},${Ge.toFixed(2)} ${se} ${Re},${Ge.toFixed(2)}`;return(0,ge.jsx)("polygon",{points:tt,className:xe.area,style:{fill:ve}},ce)}return(0,ge.jsx)(dl,{points:se,className:xe.line,color:ve},ce)},H=U=>{m.current={startX:U.clientX,startY:U.clientY,xMin:G,xMax:L},U.target.setPointerCapture?.(U.pointerId)},ee=U=>{let ce=m.current;if(ce===null||Math.abs(U.clientX-ce.startX)<4)return;let se=ce.xMax-ce.xMin,ve=(ce.startX-U.clientX)/ae*se;l(we=>({xMin:ce.xMin+ve,xMax:ce.xMax+ve,yMin:we.yMin,yMax:we.yMax}))},ie=()=>{m.current=null},Se=(0,ft.useRef)(null);(0,ft.useEffect)(()=>{let U=Se.current;if(U===null)return;let ce=se=>{if(!se.metaKey&&!se.ctrlKey)return;se.preventDefault();let ve=L-G,we=se.deltaY>0?1.15:1/1.15,Ee=ve*we,Re=U.getBoundingClientRect(),Ge=V((se.clientX-Re.left)/Re.width*on),tt=Ge-(Ge-G)/ve*Ee;l(kr=>({xMin:tt,xMax:tt+Ee,yMin:kr.yMin,yMax:kr.yMax}))};return U.addEventListener("wheel",ce,{passive:!1}),()=>U.removeEventListener("wheel",ce)},[G,L,V]);let Fe=e.some(U=>(U.params?.length??0)>0),Me=(0,ft.useRef)({min:r,max:n}),dt=Math.abs(G-Me.current.min)>1e-6||Math.abs(L-Me.current.max)>1e-6,pr=()=>{l(U=>({...U,xMin:Me.current.min,xMax:Me.current.max}))};return(0,ge.jsxs)("div",{className:xe.block,"data-genui-plot":!0,children:[s!==void 0&&(0,ge.jsx)("div",{className:xe.title,children:B(s)}),ye&&M&&(0,ge.jsxs)("div",{className:xe.plotTools,children:[(0,ge.jsx)("span",{className:xe.plotHint,children:dt?`x \u2208 [${da(G)}, ${da(L)}]`:"\u2318/Ctrl + \u6EDA\u8F6E\u7F29\u653E \xB7 \u62D6\u62FD\u5E73\u79FB"}),dt&&(0,ge.jsx)("button",{type:"button",className:xe.plotReset,onClick:pr,children:"\u21BA \u56DE\u5230\u521D\u59CB\u533A\u95F4"})]}),ye&&M?(0,ge.jsxs)("svg",{width:"100%",viewBox:`0 0 ${on} ${br}`,role:"img","aria-label":s??"function plot",className:xe.surface,ref:Se,onPointerDown:H,onPointerMove:ee,onPointerUp:ie,onPointerLeave:ie,children:[he.map(U=>(0,ge.jsxs)("g",{children:[(0,ge.jsx)("line",{x1:cr,x2:on-Bi,y1:Q(U),y2:Q(U),className:xe.gridLine}),(0,ge.jsx)("text",{x:cr-6,y:Q(U)+4,className:xe.tick,textAnchor:"end",children:da(U)})]},`y${U}`)),fe.map(U=>(0,ge.jsxs)("g",{children:[(0,ge.jsx)("line",{x1:Z(U),x2:Z(U),y1:ca,y2:br-$r,className:xe.gridLine}),(0,ge.jsx)("text",{x:Z(U),y:br-$r+14,className:xe.tick,textAnchor:"middle",children:da(U)})]},`x${U}`)),(0,ge.jsx)("line",{x1:cr,x2:on-Bi,y1:br-$r,y2:br-$r,className:xe.axis}),(0,ge.jsx)("line",{x1:cr,x2:cr,y1:ca,y2:br-$r,className:xe.axis}),te.map(({series:U,points:ce},se)=>j(U,se,ce))]}):(0,ge.jsx)("div",{className:xe.empty,children:e.map((U,ce)=>(0,ge.jsxs)("div",{className:xe.emptyRow,children:[U.expr," \u2014 \u65E0\u6CD5\u7ED8\u5236\uFF08\u8868\u8FBE\u5F0F\u65E0\u6548\u6216\u8303\u56F4\u975E\u6CD5\uFF09"]},ce))}),Fe&&(0,ge.jsxs)("div",{className:xe.sliders,children:[(0,ge.jsxs)("div",{className:xe.slidersHead,children:[(0,ge.jsx)("span",{className:xe.slidersTitle,children:"\u53C2\u6570\u8C03\u8282"}),(0,ge.jsx)("button",{type:"button",className:xe.resetBtn,onClick:()=>{T(!1);let U={};for(let[ce,se]of e.entries())for(let ve of se.params??[])ve!=null&&(U[`${ce}:${ve.name}`]=ve.value);p(U),D(0)},children:"\u21BA \u91CD\u7F6E"})]}),e.map((U,ce)=>(U.params??[]).map(se=>{if(se==null)return null;let ve=`${ce}:${se.name}`,we=u[ve]??se.value;return(0,ge.jsxs)("label",{className:xe.sliderRow,children:[(0,ge.jsxs)("span",{className:xe.sliderName,children:[U.label??U.expr," \xB7 ",se.name]}),(0,ge.jsx)("input",{type:"range",className:xe.slider,min:se.min??0,max:se.max??10,step:se.step??.1,value:we,onChange:Ee=>{let Re=Number(Ee.currentTarget.value);p(Ge=>({...Ge,[ve]:Re}))}}),(0,ge.jsx)("span",{className:xe.sliderValue,children:Math.round(we*100)/100})]},ve)}))]}),y!==null&&(0,ge.jsxs)("div",{className:xe.animBar,children:[(0,ge.jsx)("button",{type:"button",className:xe.playBtn,onClick:()=>{k?T(!1):(p(U=>({...U,[`${y.si}:${y.param.name}`]:y.param.value})),D(0),T(!0))},children:k?"\u23F8 \u6682\u505C":"\u25B6 \u64AD\u653E\u52A8\u753B"}),k&&(0,ge.jsx)("div",{className:xe.animTrack,children:(0,ge.jsx)("div",{className:xe.animFill,style:{width:`${C*100}%`}})})]}),(e.length>1||Fe)&&(0,ge.jsx)("div",{className:xe.legend,children:e.map((U,ce)=>(0,ge.jsxs)("span",{className:xe.legendItem,children:[(0,ge.jsx)("span",{className:xe.legendSwatch,style:{background:ol(ce,e.length,U.color)??"var(--dsw-alias-state-business-primary, #4f8ef7)"}}),U.label??U.expr]},ce))})]})});function ml(){return{copy:_("label.copy"),copied:_("label.copied"),codeLabel:_("label.code"),wrapLabel:_("label.wrap"),unwrapLabel:_("label.unwrap"),collapseAria:_("label.collapseDiff.aria"),expandAria(e){return _("label.expandDiff.aria",{hidden:e})},collapse:_("label.collapse"),expand(e){return _("label.expandDiff",{hidden:e})},files(e){return _("label.diffFiles",{count:e})}}}function pl(){return{copyLabel:_("label.copy"),copiedLabel:_("label.copied")}}function fl(){return{copyValue:_("label.copyValue"),copyJson:_("label.copyJson"),copyPath:_("label.copyPath"),copyPrettyJson:_("label.copyPrettyJson"),copyCompactJson:_("label.copyCompactJson"),copied:_("label.copiedDone"),copyFailed:_("label.copyFailed"),collapseNode:_("label.collapseNode"),expandNode:_("label.expandNode"),copyButtonTitle(t){return _("label.copyButtonTitle",{action:t})}}}var P=require("react/jsx-runtime"),lp={info:g.calloutInfo,success:g.calloutSuccess,warning:g.calloutWarning,error:g.calloutError},Nl=(0,ke.memo)(function({node:e}){let r=e.tone??"info",n=lp[r]??g.calloutInfo;return(0,P.jsxs)("div",{className:`${g.callout} ${n}`,"data-genui-callout":!0,children:[e.title!==void 0&&(0,P.jsx)("div",{className:g.calloutTitle,children:B(e.title)}),(0,P.jsx)("div",{className:g.calloutBody,children:B(e.content)})]})}),Ml=(0,ke.memo)(function({steps:e}){let r=e.steps.slice(0,A.maxSteps),n=e.current??r.length;return(0,P.jsx)("ol",{className:g.steps,children:r.map((a,i)=>{let s=i<n,o=i===n;return(0,P.jsxs)("li",{className:`${g.step} ${s?g.stepDone:""} ${o?g.stepActive:""}`,children:[(0,P.jsx)("span",{className:g.stepMarker,children:s?"\u2713":String(i+1)}),(0,P.jsxs)("span",{className:g.stepContent,children:[(0,P.jsx)("span",{className:g.stepTitle,children:B(a.title)}),a.desc!==void 0&&(0,P.jsx)("span",{className:g.stepDesc,children:B(a.desc)})]})]},i)})})}),Cl=(0,ke.memo)(function({node:e}){let r=e.pairs.slice(0,A.maxKeyValuePairs);return(0,P.jsx)("dl",{className:g.keyvalue,children:r.map((n,a)=>(0,P.jsxs)("div",{className:g.kvRow,children:[(0,P.jsx)("dt",{className:g.kvKey,children:B(n.key)}),(0,P.jsx)("dd",{className:g.kvValue,children:B(n.value)})]},a))})}),zl=(0,ke.memo)(function({plot:e}){let r=(0,ke.useMemo)(()=>e.series.slice(0,A.maxPlotSeries).map(n=>({expr:n.expr,label:n.label,color:n.color,kind:n.kind,params:n.params})),[e]);return(0,P.jsx)(ul,{series:r,xMin:e.xMin,xMax:e.xMax,yMin:e.yMin,yMax:e.yMax,title:e.title})}),Rl=(0,ke.memo)(function({node:e}){return Oe(),(0,P.jsx)(b0,{diffs:e.diffs,labels:ml()})}),Gl=(0,ke.memo)(function({node:e}){Oe();let r=e.value;return typeof r!="object"||r===null?(0,P.jsx)("div",{className:g.jsonScalar,children:String(r)}):(0,P.jsx)(y0,{data:r,label:"JSON",labels:fl(),copyable:!0})}),$l=(0,ke.memo)(function({node:e}){return Oe(),(0,P.jsx)(g0,{...pl(),code:e.code.slice(0,A.maxCode),lang:e.lang,title:e.title,wrap:e.wrap})});function El({tabs:t,onAction:e,depth:r=0,answers:n}){let[a,i]=st("tab",0,p=>Number.isInteger(p)&&Number(p)>=0),s=(0,ke.useId)(),o=t.tabs.slice(0,A.maxTabs),l=o.length===0?0:Math.min(a,o.length-1),m=o[l];(0,ke.useEffect)(()=>{l!==a&&i(l)},[a,l]);let u=p=>{if(o.length===0)return;let b=(p+o.length)%o.length;i(b),document.getElementById(`${s}-tab-${b}`)?.focus()};return(0,P.jsxs)("div",{className:g.tabs,children:[(0,P.jsx)("div",{className:g.tabBar,role:"tablist","aria-orientation":"horizontal",onKeyDown:p=>{p.key==="ArrowRight"?(p.preventDefault(),u(l+1)):p.key==="ArrowLeft"?(p.preventDefault(),u(l-1)):p.key==="Home"?(p.preventDefault(),u(0)):p.key==="End"&&(p.preventDefault(),u(o.length-1))},children:o.map((p,b)=>(0,P.jsx)("button",{id:`${s}-tab-${b}`,type:"button",role:"tab","aria-selected":b===l,"aria-controls":`${s}-panel-${b}`,tabIndex:b===l?0:-1,className:`${g.tab} ${b===l?g.tabActive:""}`,onClick:()=>i(b),children:B(p.label,!1)},b))}),m!==void 0&&(0,P.jsx)("div",{className:g.col,role:"tabpanel",id:`${s}-panel-${l}`,"aria-labelledby":`${s}-tab-${l}`,children:m.items.map((p,b)=>xt(p,b,e,r+1,n))})]})}function Dl({node:t,onAction:e,depth:r=0,answers:n}){let[a,i]=st("accordion",0,l=>l===null||Number.isInteger(l)&&Number(l)>=0),s=(0,ke.useId)(),o=t.items.slice(0,A.maxAccordionItems);return(0,P.jsx)("div",{className:g.accordion,children:o.map((l,m)=>(0,P.jsxs)("div",{className:g.accItem,children:[(0,P.jsxs)("button",{type:"button",className:g.accHead,id:`${s}-head-${m}`,"aria-expanded":a===m,"aria-controls":`${s}-body-${m}`,onClick:()=>i(a===m?null:m),children:[(0,P.jsx)("span",{className:g.accTitle,children:B(l.title,!1)}),(0,P.jsx)("span",{className:g.accChevron,"data-open":a===m,"aria-hidden":!0,children:"\u25B8"})]}),a===m&&(0,P.jsx)("div",{className:g.accBody,id:`${s}-body-${m}`,"aria-labelledby":`${s}-head-${m}`,children:l.items.map((u,p)=>xt(u,p,e,r+1,n))})]},m))})}async function cp(t){let e=typeof navigator.clipboard?.writeText=="function",r=await nn(t);if(r||!e)return r;let n=typeof document.execCommand=="function"?document.execCommand.bind(document):void 0;if(n===void 0)return!1;let a=document.createElement("textarea");a.value=t,a.setAttribute("readonly",""),a.style.position="fixed",a.style.left="-9999px",document.body.appendChild(a),a.select();try{return n("copy")}catch{return!1}finally{a.remove()}}var Il=(0,ke.memo)(function({node:e}){let r=Oe(),[n,a]=(0,ke.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("button",{type:"button",className:`${g.copyChip} ${n?g.copyChipDone:""}`,onClick:()=>{cp(e.text).then(i=>{i&&(a(!0),setTimeout(()=>a(!1),1500))})},children:n?r("label.copiedShort"):B(e.label??r("label.copy"),!1)}),(0,P.jsx)("span",{className:g.visuallyHidden,role:"status",children:n?r("label.copiedToClipboard"):""})]})}),Ll=(0,ke.memo)(function({node:e}){let r=Oe(),[n,a]=(0,ke.useState)({status:"loading"}),i=e.code.slice(0,A.maxMermaid);return(0,ke.useEffect)(()=>{let s=!0;return a({status:"loading"}),(async()=>{try{let l=await(await Promise.resolve().then(()=>(Sl(),kl))).renderMermaid(i);s&&a({status:"ready",html:l})}catch{s&&a({status:"error"})}})(),()=>{s=!1}},[i]),n.status==="error"?(0,P.jsxs)("div",{className:g.mermaidFallback,children:[(0,P.jsx)("pre",{children:i}),(0,P.jsx)("div",{className:g.mermaidErr,children:r("block.mermaidError")})]}):n.status==="loading"?(0,P.jsxs)("div",{className:g.mermaidFallback,children:[(0,P.jsx)("pre",{children:i}),(0,P.jsx)("div",{className:g.mermaidHint,children:r("block.mermaidLoading")})]}):(0,P.jsx)("div",{className:g.mermaid,dangerouslySetInnerHTML:{__html:n.html},"data-genui-mermaid":!0})}),Bl=(0,ke.memo)(function({node:e}){let r=Oe(),[n,a]=(0,ke.useState)("loading"),i=(0,ke.useRef)(null),s=e.meshes.length>A.maxMeshes?{...e,meshes:e.meshes.slice(0,A.maxMeshes)}:e;return(0,ke.useEffect)(()=>{let o=!0,l;return Promise.resolve().then(()=>(Tl(),Al)).then(async m=>{if(!(!o||i.current===null))try{l=await m.mountScene(i.current,s),o&&a("ready")}catch{o&&a("error")}}),()=>{o=!1,l?.()}},[s]),(0,P.jsxs)("div",{className:g.scene3dWrap,"data-genui-scene3d":!0,children:[e.title!==void 0&&(0,P.jsx)("div",{className:g.scene3dTitle,children:B(e.title)}),(0,P.jsx)("div",{ref:i,className:g.scene3dCanvas}),n==="loading"&&(0,P.jsx)("div",{className:g.scene3dHint,children:r("block.scene3dLoading")}),n==="error"&&(0,P.jsx)("div",{className:g.scene3dHint,children:r("block.scene3dError")})]})}),ql=(0,ke.memo)(function({node:e}){let r=e.items.slice(0,A.maxTimelineItems);return(0,P.jsx)("div",{className:g.timeline,children:r.map((n,a)=>(0,P.jsxs)("div",{className:g.tlItem,children:[(0,P.jsxs)("div",{className:g.tlRail,children:[(0,P.jsx)("span",{className:g.tlDot}),a<r.length-1&&(0,P.jsx)("span",{className:g.tlLine})]}),(0,P.jsxs)("div",{className:g.tlBody,children:[(0,P.jsxs)("div",{className:g.tlHead,children:[(0,P.jsx)("span",{className:g.tlTitle,children:B(n.title,!1)}),n.time!==void 0&&(0,P.jsx)("span",{className:g.tlTime,children:B(n.time)})]}),n.desc!==void 0&&(0,P.jsx)("div",{className:g.tlDesc,children:B(n.desc)})]})]},a))})});function dp(){return(0,P.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:(0,P.jsx)("path",{d:"M1.6 3.4h4.1l1.3 1.7h7.4v7.2a1 1 0 0 1-1 1H2.6a1 1 0 0 1-1-1z",fill:"currentColor",opacity:"0.85"})})}function up(){return(0,P.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[(0,P.jsx)("path",{d:"M3.8 1.6h4.9L13 5.9v8.5a1 1 0 0 1-1 1H4.8a1 1 0 0 1-1-1z",fill:"none",stroke:"currentColor",strokeWidth:"1.2"}),(0,P.jsx)("path",{d:"M8.7 1.7v4.3h4.2",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})]})}var Ol=(0,ke.memo)(function({node:e}){let[r,n]=(0,ke.useState)(new Set),a=s=>{n(o=>{let l=new Set(o);return l.has(s)?l.delete(s):l.add(s),l})},i=(s,o,l)=>{if(o>A.maxTreeDepth)return null;let m=s.type==="dir"||s.children!==void 0&&s.children.length>0,u=m&&r.has(l);return(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:g.ftRow,style:{paddingLeft:`${o*14+4}px`},children:[Array.from({length:o},(p,b)=>(0,P.jsx)("span",{className:g.ftGuide,style:{left:`${4+b*14+6}px`},"aria-hidden":!0},b)),(0,P.jsxs)("button",{type:"button",className:g.ftNameBtn,"aria-expanded":m?!u:void 0,onClick:m?()=>a(l):void 0,children:[(0,P.jsx)("span",{className:g.ftChevron,"data-open":m?String(!u):void 0,"aria-hidden":!0,children:m?"\u25B8":""}),(0,P.jsx)("span",{className:`${g.ftGlyph} ${m?g.ftGlyphDir:""}`,"aria-hidden":!0,children:m?(0,P.jsx)(dp,{}):(0,P.jsx)(up,{})}),(0,P.jsx)("span",{className:`${g.ftName} ${m?g.ftDir:""}`,children:s.name})]})]}),m&&!u&&(0,P.jsx)("div",{className:g.ftChildren,children:(s.children??[]).map((p,b)=>i(p,o+1,`${l}/${b}`))})]},l)};return(0,P.jsx)("div",{className:g.fileTree,children:e.items.slice(0,A.maxListItems).map((s,o)=>i(s,0,String(o)))})}),Fl=(0,ke.memo)(function({node:e,onAction:r,answers:n}){let a=Oe(),i="__motion_quiz_"+(e.id??JSON.stringify([e.question,e.options.map(C=>C.label)])),s=n?.fields[i],[o,l]=(0,ke.useState)(s===void 0||s===""?null:Number(s)),[m,u]=(0,ke.useState)(e.id);e.id!==m&&(u(e.id),l(null));let p=e.options.slice(0,A.maxQuizOptions),b=o!==null,y=o===null?void 0:p[o],k=y?.correct===!0,T=e.action;return(0,P.jsxs)("div",{className:g.quiz,"data-genui-quiz":!0,children:[(0,P.jsx)("div",{className:g.quizQuestion,children:B(e.question)}),(0,P.jsx)("div",{className:g.quizOptions,children:p.map((C,D)=>{let R=o===D,G=b?R?C.correct===!0?g.quizOptCorrect:g.quizOptWrong:C.correct===!0?g.quizOptReveal:g.quizOpt:g.quizOpt;return(0,P.jsxs)("button",{type:"button",className:G,disabled:b,onClick:()=>{l(D),n?.setField(i,String(D)),T!==void 0&&r!==void 0&&r(T,{type:"quiz",question:e.question,answer:C.label,correct:C.correct===!0})},children:[(0,P.jsx)("span",{className:g.quizMarker,children:b?C.correct===!0?"\u2713":R?"\u2717":"":R?"\u25CF":"\u25CB"}),B(C.label,!1)]},D)})}),b&&(0,P.jsxs)("div",{className:g.quizResult,"aria-live":"polite",children:[(0,P.jsxs)("div",{className:k?g.quizCorrectMsg:g.quizWrongMsg,children:[a(k?"block.quizCorrect":"block.quizWrong"),y?.feedback!==void 0&&(0,P.jsx)("div",{className:g.quizFeedback,children:B(y.feedback)})]}),e.explanation!==void 0&&(0,P.jsx)("div",{className:g.quizExplanation,children:B(e.explanation)}),(0,P.jsx)("button",{type:"button",className:g.quizRetry,onClick:()=>{l(null),n?.setField(i,"")},children:a("block.quizRetry")})]})]})}),Pl=(0,ke.memo)(function({node:e}){let r=e.items.slice(0,A.maxBreadcrumbItems);return(0,P.jsx)("nav",{className:g.breadcrumb,"aria-label":"breadcrumb",children:r.map((n,a)=>(0,P.jsxs)("span",{className:g.bcItem,children:[(0,P.jsx)("span",{className:`${g.bcText} ${a===r.length-1?g.bcCurrent:""}`,children:B(n)}),a<r.length-1&&(0,P.jsx)("span",{className:g.bcSep,children:"/"})]},a))})});var ln=require("react");var mp=["architecture","it-state","high-level","process","medallion","data-flow","dp-integration"],Mt=32,Ct=128,ct=64,Je=40;function pp(t){return mp.includes(t)}function fp(t,e){let r=t%e,n=Math.floor(t/e);return{x:Je+r*(Ct+Mt),y:Je+n*(ct+Mt),w:Ct,h:ct}}function hp(t){return t.map((e,r)=>({node:e,box:{x:Je,y:Je+r*(ct+Mt),w:Ct,h:ct}}))}function gp(t){return t.map((e,r)=>({node:e,box:{x:Je+r*(Ct+Mt),y:Je,w:Ct,h:ct}}))}function bp(t,e=3){return t.map((r,n)=>{let a=Math.floor(n/e),i=n%e;return{node:r,box:{x:Je+i*(Ct+Mt),y:Je+a*(ct+Mt),w:Ct,h:ct}}})}function yp(t,e){let r=new Map(t.map(u=>[u.id,u])),n=new Map,a=[];for(let u of t){let p=e(u.id);if(p===void 0||!r.has(p))a.push(u.id);else{let b=n.get(p)??[];b.push(u.id),n.set(p,b)}}let i=new Map,s=new Map,o=(u,p)=>{s.set(u,p);let b=n.get(u)??[];return b.length===0?1:b.reduce((y,k)=>y+o(k,p+1),0)},l=(u,p)=>{let b=s.get(u)??0,y=n.get(u)??[],k=Ct,T=p;if(y.length===0)return i.set(u,{x:p,y:Je+b*(ct+Mt*1.5),w:k,h:ct}),p+k;for(let G of y)T=l(G,T);let C=i.get(y[0]),D=i.get(y[y.length-1]),R=(C.x+D.x+D.w)/2-k/2;return i.set(u,{x:Math.max(p,R),y:Je+b*(ct+Mt*1.5),w:k,h:ct}),T},m=Je;for(let u of a)m=l(u,m)+Mt;return t.map(u=>({node:u,box:i.get(u.id)??{x:Je,y:Je,w:Ct,h:ct}}))}function Hl(t,e){let r=t.nodes,n=t.edges??[],a;pp(t.kind)?a=r.map((l,m)=>({node:l,box:{x:l.x??Je+m%3*(Ct+Mt),y:l.y??Je+Math.floor(m/3)*(ct+Mt),w:l.w??Ct,h:l.h??ct}})):t.kind==="tree"||t.kind==="org-chart"||t.kind==="nested"?a=yp(r,e??(()=>{})):t.kind==="layers"||t.kind==="pyramid"||t.kind==="gantt"?a=bp(r):t.kind==="flowchart"||t.kind==="process"||t.kind==="sequence"?a=hp(r):t.kind==="timeline"||t.kind==="line"||t.kind==="scatter"||t.kind==="bar"?a=gp(r):a=r.map((l,m)=>({node:l,box:fp(m,3)}));let i=0,s=0;for(let l of a)i=Math.max(i,l.box.x+l.box.w),s=Math.max(s,l.box.y+l.box.h);i=Math.max(320,Math.ceil((i+Je)/4)*4),s=Math.max(96,Math.ceil((s+Je)/4)*4);let o=n.map(l=>({edge:l,fromId:l.from,toId:l.to}));return{nodes:a,edges:o,width:i,height:s}}function jl(t){return{x:t.x+t.w/2,y:t.y+t.h/2}}function Ul(t,e,r){if(r==="left")return{x:t.x,y:t.y+t.h/2,port:"left"};if(r==="right")return{x:t.x+t.w,y:t.y+t.h/2,port:"right"};if(r==="top")return{x:t.x+t.w/2,y:t.y,port:"top"};if(r==="bottom")return{x:t.x+t.w/2,y:t.y+t.h,port:"bottom"};let n=jl(t),a=jl(e),i=a.x-n.x,s=a.y-n.y;return Math.abs(i)>=Math.abs(s)?i>=0?{x:t.x+t.w,y:t.y+t.h/2,port:"right"}:{x:t.x,y:t.y+t.h/2,port:"left"}:s>=0?{x:t.x+t.w/2,y:t.y+t.h,port:"bottom"}:{x:t.x+t.w/2,y:t.y,port:"top"}}function vp(t,e){if(t.x===e.x)return`M ${t.x} ${t.y} L ${e.x} ${e.y}`;if(t.y===e.y)return`M ${t.x} ${t.y} L ${e.x} ${e.y}`;let r=t.port==="left"||t.port==="right",n=e.port==="left"||e.port==="right";if(r&&n){let i=(t.x+e.x)/2,s=t.port==="right"?1:-1;return`M ${t.x} ${t.y} H ${i-s*8} Q ${i} ${t.y} ${i} ${t.y+8} V ${e.y-8} Q ${i} ${e.y} ${i+8} ${e.y} H ${e.x}`}if(!r&&!n){let i=(t.y+e.y)/2,s=t.port==="bottom"?1:-1;return`M ${t.x} ${t.y} V ${i-s*8} Q ${t.x} ${i} ${t.x+8} ${i} H ${e.x-8} Q ${e.x} ${i} ${e.x} ${i+8} V ${e.y}`}if(r){let i=t.port==="right"?1:-1;return`M ${t.x} ${t.y} H ${t.x+i*8*2} Q ${t.x+i*8*2} ${t.y} ${t.x+i*8*2} ${e.y} V ${e.y} H ${e.x}`}let a=t.port==="bottom"?1:-1;return`M ${t.x} ${t.y} V ${t.y+a*8*2} Q ${t.x} ${t.y+a*8*2} ${e.x} ${t.y+a*8*2} H ${e.x} V ${e.y}`}function Vl(t,e,r){let n=Ul(t,e,r?.fromPort),a=Ul(e,t,r?.toPort);return{d:vp(n,a),a:n,b:a}}function Wl(t,e){let r=(t.x+e.x)/2,n=(t.y+e.y)/2,a=Math.abs(t.x-e.x)<Math.abs(t.y-e.y);if(a){let i=e.x>=t.x?1:-1;return{cx:r+i*16,cy:n,maskY:n-6,vertical:a}}return{cx:r,cy:n,maskY:n-20,vertical:a}}var xp={paper:"#f5f5f5",paper2:"#ececec",ink:"#2d3142",muted:"#4f5d75",soft:"#7a8399",rule:"rgba(45,49,66,0.12)",accent:"#eb6c36",accentTint:"rgba(235,108,54,0.08)",link:"#2e5aa8"},wp={paper:"#2d3142",paper2:"#393e53",ink:"#f5f5f5",muted:"#bfc0c0",soft:"#8e98ac",rule:"rgba(245,245,245,0.12)",accent:"#f08a59",accentTint:"rgba(240,138,89,0.10)",link:"#6a95d8"};function kp(){let t="var(--dsw-alias-state-business-primary, #4f8ef7)";return{paper:"var(--dsw-alias-bg-layer-2, #ffffff)",paper2:"var(--dsw-alias-bg-layer-3, #f5f5f5)",ink:"var(--dsw-alias-label-primary, #2d3142)",muted:"var(--dsw-alias-label-secondary, #4f5d75)",soft:"var(--dsw-alias-label-tertiary, #7a8399)",rule:"var(--dsw-alias-border-l2, rgba(45,49,66,0.12))",accent:t,accentTint:`color-mix(in srgb, ${t} 10%, transparent)`,link:t}}function Yl(t,e){let r=t===void 0?kp():t==="dark"?wp:xp;return e===void 0?r:{paper:e.paper??r.paper,paper2:e["paper-2"]??r.paper2,ink:e.ink??r.ink,muted:e.muted??r.muted,soft:e.soft??r.soft,rule:e.rule??r.rule,accent:e.accent??r.accent,accentTint:e["accent-tint"]??r.accentTint,link:e.link??r.link}}function Fi(t,e){switch(t){case"focal":return{fill:e.accentTint,stroke:e.accent};case"store":return{fill:Qe(e.ink,.05),stroke:e.muted};case"external":return{fill:Qe(e.ink,.03),stroke:Qe(e.ink,.3)};case"input":return{fill:Qe(e.muted,.1),stroke:e.soft};case"optional":return{fill:Qe(e.ink,.02),stroke:Qe(e.ink,.2),dashed:!0};case"security":return{fill:Qe(e.accent,.05),stroke:Qe(e.accent,.5),dashed:!0};default:return{fill:e.paper,stroke:e.ink}}}function Kl(t,e){switch(t){case"accent":return e.accent;case"link":return e.link;default:return e.muted}}function Qe(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t} ${e*100}%, transparent)`;if(t.startsWith("#")){let r=t.slice(1),n=r.length===3?r.split("").map(o=>o+o).join(""):r,a=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${a},${i},${s},${e})`}return t.replace(/rgba?\(([^)]*)\)/,(r,n)=>{let a=n.split(",").map(i=>i.trim());return a.length===3?`rgba(${a.join(",")},${e})`:a.length===4?`rgba(${a[0]},${a[1]},${a[2]},${e})`:t})}var ne=require("react/jsx-runtime"),_l="'Geist', -apple-system, 'Segoe UI', sans-serif",cn="'Geist Mono', ui-monospace, 'SF Mono', monospace",Jl=64,Zl=150,Ql=22,Sp=[{label:"Focal",type:"focal"},{label:"Backend",type:"backend"},{label:"Store",type:"store"},{label:"External",type:"external"},{label:"Optional",type:"optional"},{label:"Security",type:"security"}];function Ap(t){let e=new Map;for(let r of t)e.has(r.to)||e.set(r.to,r.from);return r=>e.get(r)}function Tp(t,e,r,n,a,i){let s=Fi(n,i),o=t.x+t.w/2,l=t.y+(t.h-Jl)/2+28,m=t.y+(t.h-Jl)/2+44,u=Math.min(44,Math.max(24,(a??"").length*7+8));return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:6,fill:i.paper}),(0,ne.jsx)("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:6,fill:s.fill,stroke:s.stroke,strokeWidth:1,strokeDasharray:s.dashed===!0?"5,4":void 0}),a!==void 0&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("rect",{x:t.x+8,y:t.y+6,width:u,height:12,rx:2,fill:"transparent",stroke:Qe(s.stroke,.4),strokeWidth:.8}),(0,ne.jsx)("text",{x:t.x+8+u/2,y:t.y+15,fill:Qe(s.stroke,.8),fontSize:7,fontFamily:cn,textAnchor:"middle",letterSpacing:.8,children:a})]}),(0,ne.jsx)("text",{x:o,y:l,fill:i.ink,fontSize:12,fontWeight:600,fontFamily:_l,textAnchor:"middle",children:e}),r!==void 0&&(0,ne.jsx)("text",{x:o,y:m,fill:i.soft,fontSize:9,fontFamily:cn,textAnchor:"middle",children:r})]})}function Np(t,e,r,n){let a=Vl(t.from,t.to),i=Kl(t.kind,r),s=t.kind==="dashed",o=t.kind==="accent"?1.4:1.2,l=Wl(a.a,a.b);return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("path",{d:a.d,fill:"none",stroke:i,strokeWidth:o,strokeDasharray:s?"5,4":void 0,markerEnd:`url(#${n})`}),t.label!==void 0&&(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:l.cx-(t.label.length*5+8)/2,y:l.maskY,width:t.label.length*5+8,height:12,rx:2,fill:r.paper}),(0,ne.jsx)("text",{x:l.cx,y:l.maskY+9,fill:r.soft,fontSize:8,fontFamily:cn,textAnchor:"middle",letterSpacing:.5,children:t.label})]})]},e)}function Mp(t,e){return(0,ne.jsxs)("defs",{children:[(0,ne.jsx)("marker",{id:`${t}-arrow`,markerWidth:8,markerHeight:6,refX:7,refY:3,orient:"auto",children:(0,ne.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:e.muted})}),(0,ne.jsx)("marker",{id:`${t}-arrow-accent`,markerWidth:8,markerHeight:6,refX:7,refY:3,orient:"auto",children:(0,ne.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:e.accent})}),(0,ne.jsx)("marker",{id:`${t}-arrow-link`,markerWidth:8,markerHeight:6,refX:7,refY:3,orient:"auto",children:(0,ne.jsx)("polygon",{points:"0 0, 8 3, 0 6",fill:e.link})})]})}function Cp(t,e){return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("defs",{children:(0,ne.jsx)("pattern",{id:`${t}-dots`,width:22,height:22,patternUnits:"userSpaceOnUse",children:(0,ne.jsx)("circle",{cx:1,cy:1,r:.9,fill:Qe(e.ink,.1)})})}),(0,ne.jsx)("rect",{width:"100%",height:"100%",fill:e.paper}),(0,ne.jsx)("rect",{width:"100%",height:"100%",fill:`url(#${t}-dots)`,opacity:.55})]})}function zp(t,e){let r=t.label.length*7+12,n=t.x+t.w/2;return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:t.x,y:t.y,width:t.w,height:t.h,rx:8,fill:Qe(e.ink,.02),stroke:Qe(e.ink,.1),strokeWidth:.8}),(0,ne.jsx)("rect",{x:n-r/2,y:t.y+4,width:r,height:12,rx:2,fill:e.paper}),(0,ne.jsx)("text",{x:n,y:t.y+13,fill:Qe(e.ink,.4),fontSize:7,fontFamily:cn,textAnchor:"middle",letterSpacing:1.2,children:t.label})]})}function Rp(t,e,r,n){return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("line",{x1:40,y1:0,x2:Math.max(120,r-40),y2:0,stroke:Qe(t.ink,.1),strokeWidth:.8}),(0,ne.jsx)("text",{x:40,y:16,fill:t.soft,fontSize:8,fontFamily:cn,letterSpacing:1.6,children:"LEGEND"}),e.map((a,i)=>{let s=Fi(a.type,t),o=40+i%n*Zl,l=32+Math.floor(i/n)*Ql;return(0,ne.jsxs)("g",{children:[(0,ne.jsx)("rect",{x:o,y:l,width:14,height:10,rx:2,fill:s.fill,stroke:s.stroke,strokeWidth:1,strokeDasharray:s.dashed===!0?"3,2":void 0}),(0,ne.jsx)("text",{x:o+20,y:l+9,fill:t.soft,fontSize:8.5,fontFamily:_l,children:a.label})]},a.label)})]})}function Gp(t,e){return t==="accent"?`${e}-arrow-accent`:t==="link"?`${e}-arrow-link`:`${e}-arrow`}var Xl=0;function $p(){return Xl+=1,`genui-diagram-${Xl}`}function ec({node:t}){let e=(0,ln.useMemo)($p,[]),r=(0,ln.useMemo)(()=>Yl(t.variant,t.theme),[t.variant,t.theme]),n=(0,ln.useMemo)(()=>Hl(t,Ap(t.edges??[])),[t]),a=(0,ln.useMemo)(()=>new Map(n.nodes.map(G=>[G.node.id,G.box])),[n]),i=`${e}-title`,s=`${e}-caption`,o=`${e}-desc`,l=n.nodes.slice(0,A.maxDiagramNodes),m=n.edges.slice(0,A.maxDiagramEdges),u=(t.zones??[]).slice(0,A.maxDiagramZones),p=0,b=A.maxDiagramFocal,y=n.height,k=Sp.filter(G=>G.type!==void 0&&l.some(L=>(L.node.type??"backend")===G.type)),T=Math.max(1,Math.floor((n.width-40)/Zl)),D=24+Math.max(1,Math.ceil(k.length/T))*Ql,R=y+D+12;return(0,ne.jsxs)("figure",{className:"genui-diagram","data-genui-diagram":!0,children:[t.title!==void 0&&(0,ne.jsx)("figcaption",{id:s,style:{fontFamily:"Instrument Serif, 'Times New Roman', serif",fontSize:20,marginBottom:8,color:r.ink},children:B(t.title)}),(0,ne.jsxs)("svg",{role:"img","aria-labelledby":i,"aria-describedby":o,viewBox:`0 0 ${n.width} ${R}`,style:{maxWidth:"100%",height:"auto",background:r.paper},children:[(0,ne.jsx)("title",{id:i,children:t.title??t.kind}),(0,ne.jsx)("desc",{id:o,children:`${t.kind} diagram with ${l.length} nodes and ${m.length} connectors`}),Mp(e,r),Cp(e,r),(0,ne.jsx)("g",{children:u.map((G,L)=>(0,ne.jsx)("g",{children:zp({label:G.label,x:G.x??0,y:G.y??0,w:G.w??100,h:G.h??100},r)},`zone-${L}`))}),(0,ne.jsx)("g",{children:m.map((G,L)=>{let X=a.get(G.fromId),J=a.get(G.toId);return X===void 0||J===void 0?null:Np({from:X,to:J,label:G.edge.label,kind:G.edge.kind},L,r,Gp(G.edge.kind,e))})}),(0,ne.jsx)("g",{children:l.map(G=>{let L=G.node.type==="focal"&&p>=b?void 0:G.node.type;return G.node.type==="focal"&&(p+=1),(0,ne.jsx)("g",{children:Tp(G.box,G.node.label,G.node.sub,L,G.node.tag,r)},G.node.id)})}),(0,ne.jsx)("g",{transform:`translate(0, ${y+8})`,children:Rp(r,k,n.width,T)})]})]})}var tc=require("react");var Ir=require("react/jsx-runtime");function rc({node:t}){let e=Oe(),[r,n]=(0,tc.useState)(!1);return(0,Ir.jsxs)("figure",{className:g.media,children:[t.alt!==void 0&&(0,Ir.jsx)("figcaption",{className:g.mediaLabel,children:B(t.alt)}),r?(0,Ir.jsx)("div",{className:g.mediaError,role:"alert",children:e("block.imageError")}):(0,Ir.jsx)("img",{className:g.mediaPlayer,src:t.src,alt:t.alt??e("block.image"),loading:"lazy",decoding:"async",style:{maxHeight:"min(70vh, 720px)",objectFit:"contain"},onError:()=>n(!0)})]})}var ua=require("react");var Jt=require("react/jsx-runtime"),Pi="http://www.w3.org/2000/svg";function nc(t){let e=new DOMParser().parseFromString(t,"image/svg+xml"),r=e.documentElement;return e.doctype!==null||e.querySelector("parsererror")!==null||r.localName!=="svg"?null:r}function Ep(t){try{let e=nc(t);if(e===null)return null;if(e.namespaceURI!==Pi){if(e.namespaceURI!==null)return null;let r=t.replace(/<svg(?=[\s/>])/,`<svg xmlns="${Pi}"`),n=nc(r);return n===null||n.namespaceURI!==Pi?null:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`}return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`}catch{return null}}function ac({node:t}){let e=(0,ua.useMemo)(()=>Ep(t.code),[t.code]),[r,n]=(0,ua.useState)(null);return(0,Jt.jsxs)("div",{"data-genui-svg":!0,children:[t.title!==void 0&&(0,Jt.jsx)("div",{className:g.echartTitle,children:B(t.title)}),e===null||r===e?(0,Jt.jsxs)("div",{children:[(0,Jt.jsx)("div",{role:"status",children:_("block.svgError")}),(0,Jt.jsx)("pre",{style:{overflow:"auto",maxHeight:400},children:(0,Jt.jsx)("code",{children:t.code})})]}):(0,Jt.jsx)("img",{src:e,alt:t.title??_("block.svgLabel"),style:{display:"block",width:"100%",height:t.height??"auto",maxHeight:800,objectFit:"contain"},onError:()=>{n(e)}},e)]})}var _t=require("react");Dr();var ic=new Set(["bar","line","area","pie","scatter","bigline"]);function ma(t){return t.option!==void 0?"echarts-full":ic.has(t.preset??"bar")?"echarts-core":"echarts-full"}async function sc(t,e,r,n="core"){return(await Er(n==="full"?"echarts-full":"echarts-core")).createChart(t,e,r)}var Xt=require("react/jsx-runtime"),oc=["#679efe","#4ed17e","#f5b83d","#f2707a","#8b7ff0","#3fc7d4","#b7c8fe","#9aa3b2"];function yr(t,e,r){let n=[r??null,typeof document>"u"?null:document.body,typeof document>"u"?null:document.documentElement];for(let a of n){if(a===null)continue;let i=getComputedStyle(a).getPropertyValue(t).trim();if(i!=="")return i}return e}function Dp(t){return{accent:yr("--dsw-alias-state-business-primary","#4f8ef7",t),labelPrimary:yr("--dsw-alias-label-primary","#e6e6e6",t),labelSecondary:yr("--dsw-alias-label-secondary","#a0a0a0",t),labelTertiary:yr("--dsw-alias-label-tertiary","#6b6b6b",t),border:yr("--dsw-alias-border-l1","rgba(255,255,255,0.12)",t),bgLayer1:yr("--dsw-alias-bg-layer-1","#1a1a1e",t)}}function lc(t,e){let r=Dp(e),n=t.palette!==void 0&&t.palette.length>0?[...t.palette]:aa.map((l,m)=>yr(l.replace("var(","").replace(")",""),oc[m%oc.length],e)),a=t.data??[],i=t.series,s=(l={})=>({renderMode:"richText",backgroundColor:r.bgLayer1,borderColor:r.border,textStyle:{color:r.labelPrimary},...l}),o={color:n,textStyle:{color:r.labelSecondary,fontFamily:"inherit"},backgroundColor:"transparent",grid:{left:48,right:16,top:24,bottom:32},tooltip:s({trigger:"item"})};switch(t.preset){case"wordCloud":return{...o,series:[{type:"wordCloud",sizeRange:[16,64],rotationRange:[0,0],gridSize:8,textStyle:{fontFamily:"sans-serif"},data:a.map((l,m)=>({name:l.label,value:l.value,textStyle:{color:n[m%n.length]}}))}]};case"pie":return{...o,tooltip:s({trigger:"item",formatter:"{b}: {c} ({d}%)"}),legend:{bottom:0,textStyle:{color:r.labelTertiary}},series:[{type:"pie",radius:["40%","70%"],avoidLabelOverlap:!0,itemStyle:{borderRadius:6,borderColor:r.bgLayer1,borderWidth:2},label:{color:r.labelSecondary},data:a.map(l=>({name:l.label,value:l.value}))}]};case"scatter":return{...o,tooltip:s({trigger:"item"}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:[{type:"scatter",symbolSize:10,data:a.map(l=>l.value)}]};case"area":return{...o,tooltip:s({trigger:"axis"}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map((l,m)=>({name:l.label,type:"line",smooth:!0,areaStyle:{opacity:.15},data:l.data.map(u=>u.value),...pa(l.color,m,i)})),legend:i!==void 0?{bottom:0,textStyle:{color:r.labelTertiary}}:void 0};case"line":return{...o,tooltip:s({trigger:"axis"}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map((l,m)=>({name:l.label,type:"line",smooth:!0,showSymbol:!0,symbolSize:6,data:l.data.map(u=>u.value),...pa(l.color,m,i)})),legend:i!==void 0?{bottom:0,textStyle:{color:r.labelTertiary}}:void 0};case"radar":{let l=i??[{label:"",data:a}],m=(l[0]?.data??[]).map(p=>({name:p.label,max:void 0})),u=Math.max(...l.flatMap(p=>p.data.map(b=>Number(b.value)||0)),1);return{...o,tooltip:s({trigger:"item"}),legend:{bottom:0,textStyle:{color:r.labelTertiary}},radar:{indicator:m.map(p=>({name:p.name,max:Math.ceil(u*1.1)})),splitLine:{lineStyle:{color:r.border}},splitArea:{show:!1},axisLine:{lineStyle:{color:r.border}},axisName:{color:r.labelTertiary}},series:[{type:"radar",symbolSize:5,areaStyle:{opacity:.12},data:l.map((p,b)=>({name:p.label,value:p.data.map(y=>Number(y.value)||0),...pa(p.color,b,i)}))}]}}case"gauge":return{...o,tooltip:s({trigger:"item"}),series:a.slice(0,4).map((l,m)=>({type:"gauge",startAngle:210,endAngle:-30,min:0,max:Math.max(Number(l.value)||0,100),center:a.length>1?[`${(m+.5)*(100/Math.min(a.length,4))}%`,"58%"]:["50%","58%"],radius:a.length>1?"62%":"82%",progress:{show:!0,width:12},axisLine:{lineStyle:{width:12,color:[[1,r.border]]}},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1},pointer:{show:!1},title:{offsetCenter:[0,"32%"],color:r.labelTertiary,fontSize:12},detail:{valueAnimation:!0,fontSize:26,offsetCenter:[0,"2%"],formatter:"{value}",color:r.labelPrimary},data:[{value:Number(l.value)||0,name:l.label}]}))};case"funnel":return{...o,tooltip:s({trigger:"item",formatter:"{b}: {c}"}),legend:{bottom:0,textStyle:{color:r.labelTertiary}},series:[{type:"funnel",left:"8%",width:"84%",top:16,bottom:40,gap:2,label:{position:"inside",color:"#fff",formatter:"{b} {c}"},itemStyle:{borderWidth:0},data:a.map(l=>({name:l.label,value:Number(l.value)||0}))}]};case"treemap":return{...o,tooltip:s({trigger:"item",formatter:"{b}: {c}"}),series:[{type:"treemap",roam:!1,nodeClick:!1,breadcrumb:{show:!1},upperLabel:{show:!1},label:{color:r.labelPrimary},itemStyle:{borderColor:r.bgLayer1,borderWidth:2,gapWidth:2},data:a.map(l=>({name:l.label,value:Number(l.value)||0}))}]};case"sankey":{let l=t.links??[],m=a.length>0?a.map(u=>u.label):[...new Set(l.flatMap(u=>[u.from,u.to]))];return{...o,tooltip:s({trigger:"item"}),series:[{type:"sankey",left:8,right:8,top:12,bottom:12,nodeGap:12,lineStyle:{color:"gradient",curveness:.5,opacity:.32},label:{color:r.labelSecondary},emphasis:{focus:"adjacency"},data:m.map(u=>({name:u})),links:l.map(u=>({source:u.from,target:u.to,value:u.value??1}))}]}}case"graph":{let l=t.links??[],m=a.length>0?a.map(p=>p.label):[...new Set(l.flatMap(p=>[p.from,p.to]))],u=new Map;for(let p of l)u.set(p.from,(u.get(p.from)??0)+1),u.set(p.to,(u.get(p.to)??0)+1);return{...o,tooltip:s({trigger:"item"}),series:[{type:"graph",layout:"force",roam:!0,label:{show:!0,color:r.labelSecondary,fontSize:11},force:{repulsion:200,edgeLength:80},lineStyle:{color:r.border,curveness:.1},emphasis:{focus:"adjacency"},data:m.map(p=>({name:p,symbolSize:16+(u.get(p)??0)*5})),links:l.map(p=>({source:p.from,target:p.to}))}]}}case"heatmap":{let l=i??[{label:"",data:a}],m=(l[0]?.data??[]).map(b=>b.label),u=l.flatMap((b,y)=>b.data.map((k,T)=>[T,y,Number(k.value)||0])),p=Math.max(...u.map(b=>b[2]),1);return{...o,tooltip:s({trigger:"item",position:"top"}),grid:{left:64,right:16,top:16,bottom:48},xAxis:{type:"category",data:m,splitArea:{show:!1},axisLabel:{color:r.labelTertiary},axisLine:{lineStyle:{color:r.border}}},yAxis:{type:"category",data:l.map(b=>b.label),splitArea:{show:!1},axisLabel:{color:r.labelTertiary},axisLine:{lineStyle:{color:r.border}}},visualMap:{min:0,max:p,calculable:!0,orient:"horizontal",left:"center",bottom:0,textStyle:{color:r.labelTertiary}},series:[{type:"heatmap",data:u,label:{show:u.length<=60,color:r.labelPrimary},itemStyle:{borderColor:r.bgLayer1,borderWidth:2}}]}}case"bigline":return{...o,tooltip:s({trigger:"axis"}),grid:{left:48,right:20,top:24,bottom:56},dataZoom:[{type:"inside",start:0,end:45},{type:"slider",height:16,bottom:8,borderColor:r.border,textStyle:{color:r.labelTertiary}}],xAxis:{type:"category",boundaryGap:!1,data:a.map(l=>l.label),axisLabel:{color:r.labelTertiary},axisLine:{lineStyle:{color:r.border}}},yAxis:{type:"value",axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map((l,m)=>({name:l.label,type:"line",smooth:!0,showSymbol:!1,areaStyle:{opacity:.12},data:l.data.map(u=>u.value),...pa(l.color,m,i)})),legend:i!==void 0?{bottom:26,textStyle:{color:r.labelTertiary}}:void 0};default:return{...o,tooltip:s({trigger:"axis",axisPointer:{type:"shadow"}}),xAxis:{type:"category",data:a.map(l=>l.label),axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary}},yAxis:{type:"value",axisLine:{lineStyle:{color:r.border}},axisLabel:{color:r.labelTertiary},splitLine:{lineStyle:{color:r.border,opacity:.5}}},series:(i??[{label:"",data:a}]).map(l=>({name:l.label,type:"bar",barMaxWidth:40,itemStyle:{borderRadius:[4,4,2,2],...l.color!==void 0?{color:l.color}:{}},data:l.data.map(m=>m.value)})),legend:i!==void 0?{bottom:0,textStyle:{color:r.labelTertiary}}:void 0}}}function pa(t,e,r){return t!==void 0?{itemStyle:{color:t}}:{}}function cc({node:t}){let e=(0,_t.useRef)(null),[r,n]=(0,_t.useState)("loading"),a=(0,_t.useRef)(null);return(0,_t.useEffect)(()=>{let i=!0,s=e.current;if(s===null)return;let o=t.option??lc(t,s),l=ma(t)==="echarts-full"?"full":"core";return sc(s,o,{height:t.height??300},l).then(m=>{if(!i){m.dispose();return}a.current=m,n("ready")}).catch(()=>{i&&n("error")}),()=>{i=!1,a.current?.dispose(),a.current=null}},[]),(0,_t.useEffect)(()=>{if(r!=="ready")return;let i=e.current;if(i===null)return;let s=new ResizeObserver(()=>{a.current?.resize()});return s.observe(i),()=>{s.disconnect()}},[r]),(0,_t.useEffect)(()=>{if(r!=="ready"||a.current===null)return;let i=t.option??lc(t,e.current);a.current.setOption(i,!0)},[t,r]),r==="error"?(0,Xt.jsxs)("div",{className:g.echartFallback,"data-genui-echart":!0,children:[(0,Xt.jsx)("div",{className:g.echartErr,children:"ECharts \u6E32\u67D3\u5931\u8D25"}),t.title!==void 0&&(0,Xt.jsx)("div",{className:g.echartHint,children:B(t.title)})]}):(0,Xt.jsxs)("div",{className:g.echartWrap,"data-genui-echart":!0,children:[t.title!==void 0&&(0,Xt.jsx)("div",{className:g.echartTitle,children:B(t.title)}),(0,Xt.jsx)("div",{ref:e,className:g.echartCanvas,style:{height:`${t.height??300}px`},role:"img","aria-label":t.title??"ECharts chart"}),r==="loading"&&(0,Xt.jsx)("div",{className:g.echartHint,children:"\u52A0\u8F7D\u56FE\u8868\u2026"})]})}var E=require("react/jsx-runtime"),Ip=v0;function pc(t){return typeof t=="object"&&t!==null&&"type"in t}function Lp(t){let e=/^([+\-−]?[\d.,]+(?:[eE][+\-]?\d+)?)\s*(.*)$/.exec(t.trim());if(e===null||e[1]===void 0)return{num:t,unit:"",numeric:void 0,decimals:0};let r=e[1],n=r.replace(/[,,]/g,""),a=Number(n),i=Number.isFinite(a)&&!/[eE]/.test(n)?a:void 0,s=n.includes(".")?(n.split(".")[1]??"").length:0;return{num:r,unit:e[2]??"",numeric:i,decimals:Math.min(s,4)}}function dc({values:t}){let a=Math.min(...t),s=Math.max(...t)-a||1,o=t.length<=1?0:92/(t.length-1),l=t.map((b,y)=>[2+y*o,22-(b-a)/s*20]),m=l.map(([b,y])=>`${b.toFixed(1)},${y.toFixed(1)}`).join(" "),u=l[l.length-1],p=`M 2,22 L ${m.split(" ").join(" L ")} L ${u[0].toFixed(1)},22 Z`;return(0,E.jsxs)("svg",{className:g.statSpark,viewBox:"0 0 96 24",preserveAspectRatio:"none","aria-hidden":"true",children:[(0,E.jsx)("path",{d:p,fill:"var(--dsl-g-accent)",opacity:"0.14"}),(0,E.jsx)("polyline",{points:m,fill:"none",stroke:"var(--dsl-g-accent)",strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}),(0,E.jsx)("path",{d:`M ${u[0].toFixed(1)} ${u[1].toFixed(1)} L ${u[0].toFixed(1)} ${u[1].toFixed(1)}`,stroke:"var(--dsl-g-accent)",strokeWidth:5,strokeLinecap:"round",vectorEffect:"non-scaling-stroke",fill:"none"})]})}function Bp(t,e,r){let[n,a]=(0,ha.useState)(r?0:t);return(0,ha.useEffect)(()=>{if(!r){a(t);return}if(typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){a(t);return}let s=0,o=performance.now(),l=720,m=u=>{let p=Math.min(1,(u-o)/l),b=1-Math.pow(1-p,3);a(t*b),p<1&&(s=requestAnimationFrame(m))};return s=requestAnimationFrame(m),()=>cancelAnimationFrame(s)},[t,r]),n.toFixed(e)}function uc({value:t,unitClass:e,animate:r=!1}){let n=Lp(t),a=n.numeric,i=Bp(a??0,n.decimals,r&&a!==void 0);return(0,E.jsxs)(E.Fragment,{children:[a===void 0?B(n.num):i,n.unit!==""&&(0,E.jsx)("span",{className:e??g.statUnit,children:B(n.unit)})]})}function qp(t){return typeof t=="string"?t:pc(t)?"":`${t.title} ${t.desc??""}`}function fa(t,e){if(e===void 0)return;let r=t?.fields[e];return r===void 0||r===""?void 0:r}function Op(t,e,r,n=0,a){if(n>A.maxDepth)return null;switch(t.type){case"text":{let i=t.size??"body";return t.copyable?(0,E.jsx)(ea,{text:t.content,title:t.title,children:(0,E.jsx)("div",{className:`${g.text} ${g[i]}`,children:B(t.content)})},e):(0,E.jsx)("div",{className:`${g.text} ${g[i]}`+(t.center?` ${g.center}`:""),children:B(t.content)},e)}case"row":return(0,E.jsxs)("div",{className:g.row+(t.wrap?` ${g.wrap}`:""),children:[t.items.map((i,s)=>xt(i,s,r,n+1,a)),t.spacer&&(0,E.jsx)("div",{className:g.spacer})]},e);case"col":return(0,E.jsx)("div",{className:g.col,style:t.gap!==void 0?{gap:`${t.gap}px`}:void 0,children:t.items.map((i,s)=>xt(i,s,r,n+1,a))},e);case"grid":return(0,E.jsx)("div",{className:g.grid,style:{gridTemplateColumns:`repeat(${Math.max(1,t.cols)}, minmax(0, 1fr))`},children:t.items.map((i,s)=>{let o=xt(i,s,r,n+1,a),l=typeof i=="object"&&i!==null&&typeof i.span=="number"?Math.max(1,Math.min(12,i.span)):1;return l>1?(0,E.jsx)("div",{className:g.gridSpan,style:{gridColumn:`span ${l}`},children:o},s):o})},e);case"card":{let i=t.tone===void 0?"":` ${g[`card${t.tone[0].toUpperCase()}${t.tone.slice(1)}`]??""}`,s=t.accent===void 0?void 0:{borderColor:`color-mix(in srgb, ${t.accent} 18%, var(--dsl-g-border))`,"--dsl-card-accent":t.accent};return(0,E.jsxs)("div",{"data-motion-component":"card",className:`${g.card}${i}`,style:s,children:[t.title!==void 0&&(0,E.jsx)("div",{className:g.cardTitle,children:B(t.title)}),t.items.map((o,l)=>xt(o,l,r,n+1,a))]},e)}case"button":{let i=t.tone??"",s=`${g.button} ${g[i]||""}`+(t.full?` ${g.full}`:"")+(t.small?` ${g.small}`:""),o=t.action,l=o!==void 0&&r!==void 0;return(0,E.jsxs)(q0,{className:s,disabled:!l,onClick:l?()=>r(o,{type:"button",label:t.label}):void 0,children:[t.icon!==void 0&&(0,E.jsxs)("span",{"aria-hidden":!0,children:[t.icon," "]}),B(t.label,!1)]},e)}case"input":return(0,E.jsx)(rl,{node:t,onAction:r,answers:a},e);case"select":return(0,E.jsx)(tl,{node:t,onAction:r,answers:a},e);case"checkbox":return(0,E.jsx)(al,{node:t,onAction:r,answers:a},e);case"link":{let i=Rr(t.href);return i.type==="external"?(0,E.jsx)("a",{className:g.link,href:i.href,target:"_blank",rel:"noopener noreferrer",children:B(t.label,!1)},e):i.type==="file"?(0,E.jsx)(Jn,{path:i.file.path,label:t.label,...i.file.line===void 0?{}:{line:i.file.line},children:B(t.label,!1)},e):(0,E.jsx)("span",{className:g.linkText,children:B(t.label,!1)},e)}case"image":return(0,E.jsx)(rc,{node:t},`${e}:${t.src}`);case"audio":return(0,E.jsx)(O0,{node:t},`${e}:${t.src}`);case"video":return(0,E.jsx)(F0,{node:t},`${e}:${t.src}`);case"badge":{let i=t.tone??"";return(0,E.jsxs)("span",{className:`${g.badge} ${g[i]||""}`,children:[t.icon!==void 0&&(0,E.jsxs)("span",{"aria-hidden":!0,children:[t.icon," "]}),(0,E.jsx)("span",{className:g.badgeLabel,children:B(t.label,!1)})]},e)}case"hero":{let i=t.tone??"accent",s=g[`hero${i[0].toUpperCase()}${i.slice(1)}`]??"",o=t.delta!==void 0&&t.delta.startsWith("-");return(0,E.jsxs)("div",{className:`${g.hero} ${s}`,children:[t.label!==void 0&&(0,E.jsx)("span",{className:g.heroLabel,children:B(t.label,!1)}),(0,E.jsxs)("div",{className:g.heroTop,children:[t.value!==void 0&&(0,E.jsx)("span",{className:g.heroValue,children:(0,E.jsx)(uc,{value:t.value,unitClass:g.heroUnit,animate:!0})}),t.delta!==void 0&&(0,E.jsx)("span",{className:`${g.statDelta} ${o?g.down:g.up}`,children:B(t.delta)}),t.spark!==void 0&&(0,E.jsx)("span",{className:g.heroSpark,children:(0,E.jsx)(dc,{values:t.spark})})]}),(0,E.jsx)("span",{className:g.heroTitle,children:B(t.title)}),t.subtitle!==void 0&&(0,E.jsx)("span",{className:g.heroSubtitle,children:B(t.subtitle)})]},e)}case"stat":{let i=t.delta!==void 0&&t.delta.startsWith("-");return(0,E.jsxs)("div",{"data-motion-component":"stat",className:`${g.stat}${t.size==="hero"?` ${g.statHero}`:""}`,children:[(0,E.jsx)("span",{className:g.statLabel,children:B(t.label,!1)}),(0,E.jsx)("span",{className:g.statValue,children:(0,E.jsx)(uc,{value:t.value,animate:t.size==="hero"})}),t.delta!==void 0&&(0,E.jsx)("span",{className:`${g.statDelta} ${i?g.down:g.up}`,children:B(t.delta)}),t.spark!==void 0&&(0,E.jsx)(dc,{values:t.spark})]},e)}case"progress":{let i=Math.max(0,Math.min(100,Number(t.value)||0));if(t.variant==="ring"){let o=2*Math.PI*34,l=92;return(0,E.jsxs)("div",{className:g.ring,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i,"aria-label":t.label??t.valueLabel??void 0,children:[(0,E.jsxs)("svg",{width:l,height:l,viewBox:`0 0 ${l} ${l}`,"aria-hidden":"true",children:[(0,E.jsx)("circle",{cx:l/2,cy:l/2,r:34,fill:"none",strokeWidth:9,className:g.ringTrack}),(0,E.jsx)("circle",{cx:l/2,cy:l/2,r:34,fill:"none",strokeWidth:9,strokeLinecap:"round",className:g.ringFill,strokeDasharray:`${i/100*o} ${o}`,transform:`rotate(-90 ${l/2} ${l/2})`}),(0,E.jsxs)("text",{x:l/2,y:l/2+5,textAnchor:"middle",className:g.ringValue,children:[i,"%"]})]}),(t.label!==void 0||t.valueLabel!==void 0)&&(0,E.jsxs)("div",{className:g.ringMeta,children:[t.label!==void 0&&(0,E.jsx)("span",{className:g.ringLabel,children:B(t.label,!1)}),t.valueLabel!==void 0&&(0,E.jsx)("span",{className:g.ringSub,children:B(t.valueLabel)})]})]},e)}return(0,E.jsxs)("div",{className:g.progress,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i,"aria-label":t.label??t.valueLabel??void 0,children:[(t.label!==void 0||t.valueLabel!==void 0)&&(0,E.jsxs)("div",{className:g.progressRow,children:[(0,E.jsx)("span",{children:B(t.label??"")}),t.valueLabel!==void 0&&(0,E.jsx)("span",{children:B(t.valueLabel)})]}),(0,E.jsxs)("div",{className:g.track,children:[(0,E.jsx)("div",{className:g.fill,style:{width:`${i}%`}}),t.target!==void 0&&(0,E.jsx)("span",{className:g.targetMark,style:{left:`${t.target}%`},title:_("block.target",{value:t.target})})]})]},e)}case"divider":return(0,E.jsx)("hr",{className:g.divider},e);case"list":{let i=fa(a,t.filter)?.toLowerCase(),s=t.items.slice(0,A.maxListItems),o=i===void 0?s:s.filter(l=>qp(l).toLowerCase().includes(i));return(0,E.jsxs)("div",{className:g.list,children:[o.map((l,m)=>(0,E.jsx)("div",{className:g.li,children:pc(l)?xt(l,m,r,n+1,a):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:g.liTitle,children:B(typeof l=="string"?l:l.title)}),typeof l!="string"&&l.desc!==void 0&&(0,E.jsx)("div",{className:g.liDesc,children:B(l.desc)})]})},m)),i!==void 0&&(0,E.jsx)("span",{className:g.filterHint,children:_("block.filterMatch",{shown:o.length,total:s.length})})]},e)}case"table":return(0,E.jsx)(P0,{node:t,filterValue:fa(a,t.filter),sortValue:fa(a,t.sortField),renderDetail:i=>i.map((s,o)=>xt(s,o,r,n+1,a))},e);case"chart":return(0,E.jsx)(j0,{chart:t,filterValue:fa(a,t.filter)},e);case"tabs":return(0,E.jsx)(El,{tabs:t,onAction:r,depth:n+1,answers:a},e);case"avatar":return(0,E.jsx)("div",{className:g.avatar,style:{background:t.color??B0(t.name)},children:t.name.slice(0,1).toUpperCase()},e);case"spacer":return(0,E.jsx)("div",{className:g.spacer},e);case"plot":return(0,E.jsx)(zl,{plot:t},e);case"callout":return(0,E.jsx)(Nl,{node:t},e);case"steps":return(0,E.jsx)(Ml,{steps:t},e);case"keyvalue":return(0,E.jsx)(Cl,{node:t},e);case"diff":return(0,E.jsx)(Rl,{node:t},e);case"json":return(0,E.jsx)(Gl,{node:t},e);case"code":return(0,E.jsx)($l,{node:t},e);case"radio":return(0,E.jsx)(J0,{node:t,onAction:r,answers:a},`${e}:r${a?.round??0}`);case"submit":return(0,E.jsx)(X0,{node:t,onAction:r,answers:a},e);case"switch":return(0,E.jsx)(_0,{node:t,onAction:r},e);case"slider":return(0,E.jsx)(Z0,{node:t,onAction:r,answers:a},e);case"textarea":return(0,E.jsx)(nl,{node:t,onAction:r,answers:a},e);case"accordion":return(0,E.jsx)(Dl,{node:t,onAction:r,depth:n+1,answers:a},e);case"copy":return(0,E.jsx)(Il,{node:t},e);case"mermaid":return(0,E.jsx)(Ll,{node:t},e);case"svg":return(0,E.jsx)(ac,{node:t},e);case"scene3d":return(0,E.jsx)(Bl,{node:t},e);case"timeline":return(0,E.jsx)(ql,{node:t},e);case"file-tree":return(0,E.jsx)(Ol,{node:t},e);case"breadcrumb":return(0,E.jsx)(Pl,{node:t},e);case"quiz":return(0,E.jsx)(Fl,{node:t,onAction:r,answers:a},e);case"diagram":return(0,E.jsx)(ec,{node:t},e);case"echart":return(0,E.jsx)(cc,{node:t},e);default:{let i=t,s=Ip?.(i.type);return s!==void 0?(0,E.jsx)(s,{node:i,onAction:r,renderChildren:(o,l)=>o.map((m,u)=>xt(m,Number(l)+u,r,n+1,a))},e):null}}}function xt(t,e,r,n=0,a){if(n>A.maxDepth)return null;let i=t.id??t.type+":"+e;return(0,mc.createElement)(I0,{key:i,id:i,answers:a,children:Op(t,e,r,n,a)})}var vr=require("react/jsx-runtime"),Fp=300;function Pp(t){let e=(0,Ne.useRef)(new Map),r=(0,Ne.useRef)(t);r.current=t,(0,Ne.useEffect)(()=>()=>{for(let a of e.current.values())clearTimeout(a);e.current.clear()},[]);let n=(0,Ne.useCallback)((a,i)=>{if(i.type!=="slider"){r.current?.(a,i);return}let s=`${a}\0${typeof i.id=="string"?i.id:""}`,o=e.current.get(s);o!==void 0&&clearTimeout(o),e.current.set(s,setTimeout(()=>{e.current.delete(s),r.current?.(a,i)},Fp))},[]);return t===void 0?void 0:n}function Hp(t,e){return t===e?!0:JSON.stringify(t)===JSON.stringify(e)}function jp({spec:t,stateKey:e,animateEntrance:r=!0,initialState:n,onStateChange:a,onStateSnapshot:i}){let s=t.gap??16,o=Pp(k0()),l=(0,Ne.useRef)(a);l.current=a;let m=a!==void 0,[u]=(0,Ne.useState)(()=>n??(a!==void 0||e===void 0?null:T0(e))),[p,b]=(0,Ne.useState)(u?.answers??{}),[y,k]=(0,Ne.useState)(u?.multiAnswers??{}),[T,C]=(0,Ne.useState)(u?.fields??{}),D=(0,Ne.useMemo)(()=>W0(t),[t]),[R,G]=(0,Ne.useState)(u?.locked===!0),[L,X]=(0,Ne.useState)(0),[J,ae]=(0,Ne.useState)(new Set),Y=(0,Ne.useCallback)((M,j)=>{b(H=>H[M]===j?H:{...H,[M]:j})},[]),V=(0,Ne.useCallback)((M,j,H)=>{k(ee=>{let ie=ee[M]??[],Se=H?ie.includes(j)?ie:[...ie,j]:ie.filter(Me=>Me!==j);return Object.prototype.hasOwnProperty.call(ee,M)&&Se.length===ie.length&&Se.every((Me,dt)=>Me===ie[dt])?ee:{...ee,[M]:Se}})},[]),Z=(0,Ne.useCallback)((M,j)=>{C(H=>H[M]===j?H:{...H,[M]:j})},[]),Q=(0,Ne.useCallback)(M=>{ae(j=>j.has(M)?j:new Set(j).add(M))},[]),te=(0,Ne.useCallback)(()=>{b({}),k({}),G(!1),X(M=>M+1)},[]),fe=(0,Ne.useMemo)(()=>({answers:p,multiAnswers:y,fields:T,secretFields:J,registry:D,locked:R,round:L,setAnswer:Y,setMultiAnswer:V,setField:Z,registerSecretField:Q,clear:te,setLocked:G}),[p,y,T,J,D,R,L,Y,V,Z,Q,te]),he=(0,Ne.useMemo)(()=>{let M=Object.fromEntries(Object.entries(T).filter(([j])=>!J.has(j)));return{answers:p,...Object.keys(y).length>0?{multiAnswers:y}:{},locked:R,...Object.keys(M).length>0?{fields:M}:{}}},[p,y,R,T,J]);(0,Ne.useEffect)(()=>{i?.(he)},[he,i]);let ye=(0,Ne.useMemo)(()=>{if(o!==void 0)return(M,j)=>{D0(),o(M,j)}},[o]);return(0,Ne.useEffect)(()=>{if(m){l.current?.(he);return}if(e===void 0)return;let M=setTimeout(()=>N0(e,he),300);return()=>clearTimeout(M)},[e,he,m]),(0,Ne.useEffect)(()=>{E0(t)},[t]),(0,vr.jsxs)("div",{className:g.block,"data-genui":!0,children:[t.title!==void 0&&(0,vr.jsx)("div",{className:g.banner,children:B(t.title)}),(0,vr.jsx)("div",{className:g.col,style:{gap:`${s}px`},children:t.items.map((M,j)=>(0,vr.jsx)("div",{className:g.reveal,style:{animationDelay:`${Math.min(j*90,720)}ms`,...!r||u!==null?{animation:"none"}:{}},onAnimationEnd:H=>{H.target===H.currentTarget&&(H.currentTarget.style.animation="none")},children:xt(M,j,ye,0,fe)},j))})]})}var fc=(0,Ne.memo)(function(e){let[r,n]=(0,Ne.useState)({stateKey:e.stateKey,generation:0});return r.stateKey!==e.stateKey&&n({stateKey:e.stateKey,generation:r.generation+(r.stateKey===void 0?0:1)}),(0,vr.jsx)(jp,{...e},r.generation)},(t,e)=>t.stateKey===e.stateKey&&t.animateEntrance===e.animateEntrance&&t.onStateChange===e.onStateChange&&t.onStateSnapshot===e.onStateSnapshot&&Hp(t.spec,e.spec));var hc=require("react");var dn=require("react/jsx-runtime"),Up={display:"flex",flexDirection:"column",gap:"4px",padding:"8px 12px",margin:"4px 0",borderRadius:"8px",border:"1px solid rgba(127,127,127,0.35)",background:"rgba(127,127,127,0.08)",color:"inherit",fontSize:"12px",lineHeight:1.5,fontFamily:"inherit"},ga=class extends hc.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,r){console.error("[dsh-genui] render failed:",e,r.componentStack??"")}render(){let{error:e}=this.state;return e===null?this.props.children:(0,dn.jsxs)("div",{style:Up,role:"alert","data-genui-error":!0,children:[(0,dn.jsx)("span",{style:{fontWeight:600},children:_("err.boundary.body",{label:this.props.label??_("err.boundary.generic")})}),(0,dn.jsx)("span",{style:{opacity:.75,overflowWrap:"anywhere"},children:e.message})]})}};var Hi=["h1","h2","h3","body","muted","caption"],ji=["primary","danger","success","ghost"],Ui=["success","warn","danger","accent"],Vi=["text","email","password","color"],Wi=["info","success","warning","error"],ba=["bars","line","donut"],Yi=["line","area","scatter"],Ki=["16:9","4:3","1:1","9:16"],Ji=["box","sphere","cone","cylinder","torus"],Xi=["file","dir"],_i=["architecture","it-state","flowchart","sequence","state","er","timeline","swimlane","quadrant","radar","loop","nested","tree","org-chart","layers","venn","pyramid","bar","line","gantt","scatter","high-level","process","medallion","data-flow","dp-integration","dp-security-matrix"],Zi=["focal","backend","store","external","input","optional","security"],Qi=["light","dark","editorial"],es=["solid","dashed","accent","link"],ts=["auto","orthogonal","straight"],rs=["bar","line","area","pie","scatter","radar","gauge","funnel","treemap","sankey","graph","heatmap","bigline","wordCloud"],Vp=["hero"],ns=["bar","ring"],as=["info","success","warning","danger"],is=["accent","success","warning","danger"],gc=["text","num","delta","bar","badge","spark","ring","index","group"],le=(t,e,r={},n={})=>{let a=Object.fromEntries(Object.entries(e).filter(([l])=>l!=="type"&&!t.includes(l))),i=n.oneOfRequired??[],s=n.conditionalRequired??[],o=[...i.map(l=>({kind:"one-of-required",fields:l})),...s];return{required:t,fields:e,optional:a,aliases:r,valueAliases:n.valueAliases??{},oneOfRequired:i,conditionalRequired:s,rules:o,enums:n.enums??{},nested:n.nested??{},...n.validator===void 0?{}:{validator:n.validator}}},et=(t,e,r={},n={},a={})=>({required:t,fields:e,enums:n,nested:r,aliases:a}),de={type:"string",span:"number",id:"string"},bc=et(["label","value"],{label:"string",value:"number",color:"string"}),Wp=et(["label","data"],{label:"string",color:"string",data:"array"},{data:bc}),Yp=et(["title"],{title:"string",desc:"string"}),Kp=et(["key","value"],{key:"string",value:"string"},{},{},{label:"key"}),Jp=et(["title"],{title:"string",desc:"string",time:"string"}),Xp=et(["path","newText"],{path:"string",oldText:"string-or-null",newText:"string"}),_p=et(["name","value"],{name:"string",value:"number",min:"number",max:"number",step:"number",animateTo:"number",durationMs:"number",loop:"boolean"}),Zp=et(["expr"],{expr:"string",label:"string",color:"string",kind:"string",params:"array"},{params:_p},{kind:Yi}),Qp=et(["shape"],{shape:"string",color:"string",position:"array",rotation:"array",scale:"unknown",size:"unknown"},{},{shape:Ji});function yc(t){return et(["name"],{name:"string",type:"string",children:"array"},t>0?{children:yc(t-1)}:{},{type:Xi},{label:"name"})}var e1=yc(6),t1=et(["label","items"],{label:"string",items:"nodes",content:"nodes"}),r1=et(["title","items"],{title:"string",items:"nodes"}),n1=et(["id","label"],{id:"string",label:"string",sub:"string",type:"string",x:"number",y:"number",w:"number",h:"number",tag:"string"},{},{type:Zi}),a1=et(["from","to"],{from:"string",to:"string",label:"string",kind:"string",route:"string"},{},{kind:es,route:ts}),i1=et(["label"],{label:"string",x:"number",y:"number",w:"number",h:"number"}),s1=et([],{paper:"string","paper-2":"string",ink:"string",muted:"string",soft:"string",rule:"string",accent:"string","accent-tint":"string",link:"string"}),un=le(["items"],{title:"string",gap:"number",panel:"boolean",append:"boolean",items:"nodes"});var Ft={accordion:le(["items"],{...de,items:"array"},{},{nested:{items:r1}}),audio:le(["src"],{...de,src:"string",alt:"string",loop:"boolean"},{url:"src",link:"src"}),avatar:le(["name"],{...de,name:"string",color:"string"}),badge:le(["label"],{...de,label:"string",tone:"string",icon:"string"},{text:"label",value:"label"},{enums:{tone:Ui}}),breadcrumb:le(["items"],{...de,items:"array"}),button:le(["label"],{...de,label:"string",tone:"string",full:"boolean",small:"boolean",icon:"string",action:"string"},{},{enums:{tone:ji}}),callout:le(["content"],{...de,title:"string",content:"string",tone:"string"},{kind:"tone",text:"content",body:"content",desc:"content"},{enums:{tone:Wi},valueAliases:{tone:{danger:"error",warn:"warning"}}}),card:le(["items"],{...de,title:"string",items:"nodes",tone:"string",accent:"string"},{label:"title",content:"items"},{enums:{tone:as}}),chart:le([],{...de,kind:"string",data:"array",series:"array",horizontal:"boolean",stacked:"boolean",filter:"string",palette:"array"},{},{oneOfRequired:[["data","series"]],conditionalRequired:[{kind:"required-if",when:{field:"kind",equals:"donut"},required:["data"]}],nested:{data:bc,series:Wp},enums:{kind:ba},validator:{name:"chart-renderability"}}),checkbox:le(["label"],{...de,label:"string",checked:"boolean",action:"string",group:"string"}),code:le(["code"],{...de,lang:"string",code:"string",title:"string",wrap:"boolean"},{content:"code",text:"code"}),col:le(["items"],{...de,items:"nodes",gap:"number"}),copy:le(["text"],{...de,label:"string",text:"string"},{content:"text",code:"text",value:"text"}),diagram:le(["kind","nodes"],{...de,kind:"string",variant:"string",title:"string",nodes:"array",edges:"array",zones:"array",theme:"object"},{},{nested:{nodes:n1,edges:a1,zones:i1,theme:s1},enums:{kind:_i,variant:Qi}}),diff:le(["diffs"],{...de,diffs:"array"},{items:"diffs",files:"diffs"},{nested:{diffs:Xp}}),divider:le([],de),echart:le([],{...de,title:"string",height:"number",preset:"string",data:"array",series:"array",links:"array",palette:"array",option:"object"},{},{oneOfRequired:[["option","data","series","links"]],enums:{preset:rs}}),"file-tree":le(["items"],{...de,items:"array"},{nodes:"items"},{nested:{items:e1}}),grid:le(["items"],{...de,cols:"number",items:"nodes"}),image:le(["src"],{...de,src:"string",alt:"string"},{url:"src",link:"src"}),input:le([],{...de,label:"string",placeholder:"string",value:"string",inputType:"string",action:"string",id:"string"},{},{enums:{inputType:Vi}}),json:le(["value"],{...de,value:"unknown"}),keyvalue:le(["pairs"],{...de,pairs:"array"},{items:"pairs",rows:"pairs",entries:"pairs"},{nested:{pairs:Kp}}),link:le(["label"],{...de,label:"string",href:"string"}),list:le(["items"],{...de,items:"array",filter:"string"}),mermaid:le(["code"],{...de,code:"string"}),svg:le(["code"],{...de,code:"string",title:"string",height:"number"}),plot:le(["series"],{...de,series:"array",xMin:"number",xMax:"number",yMin:"number",yMax:"number",title:"string"},{},{nested:{series:Zp}}),progress:le(["value"],{...de,value:"number",label:"string",valueLabel:"string",variant:"string",target:"number"},{},{enums:{variant:ns}}),quiz:le(["question","options"],{...de,question:"string",options:"array",explanation:"string",id:"string",action:"string"},{title:"question",text:"question",choices:"options",items:"options"}),radio:le(["options"],{...de,label:"string",options:"array",selected:"number",action:"string",group:"string",answer:"unknown",explanation:"string"},{items:"options"}),row:le(["items"],{...de,items:"nodes",wrap:"boolean",spacer:"boolean"}),scene3d:le(["meshes"],{...de,title:"string",meshes:"array",ambient:"number",background:"string"},{},{nested:{meshes:Qp}}),select:le(["options"],{...de,label:"string",options:"array",action:"string",selected:"number",id:"string"},{items:"options"}),slider:le([],{...de,label:"string",min:"number",max:"number",step:"number",value:"number",action:"string",id:"string"}),spacer:le([],de),hero:le(["title"],{...de,title:"string",subtitle:"string",value:"string",label:"string",delta:"string",spark:"array",tone:"string"},{},{enums:{tone:is}}),stat:le(["label","value"],{...de,label:"string",value:"string",delta:"string",spark:"array",size:"string"},{},{enums:{size:Vp}}),steps:le(["steps"],{...de,steps:"array",current:"number"},{items:"steps"},{nested:{steps:Yp}}),submit:le(["label"],{...de,label:"string",action:"string",resetAction:"string",groups:"array"}),switch:le(["label"],{...de,label:"string",checked:"boolean",action:"string"}),table:le(["columns","rows"],{...de,columns:"array",rows:"array",types:"array",total:"boolean",details:"array",filter:"string",filterColumn:"number",sortField:"string",export:"boolean"},{headers:"columns",data:"rows",items:"rows"}),tabs:le(["tabs"],{...de,tabs:"array"},{},{nested:{tabs:t1}}),text:le(["content"],{...de,content:"string",size:"string",center:"boolean",copyable:"boolean",title:"string"},{text:"content"},{enums:{size:Hi}}),textarea:le([],{...de,label:"string",placeholder:"string",rows:"number",value:"string",action:"string",id:"string"}),timeline:le(["items"],{...de,items:"array"},{},{nested:{items:Jp}}),video:le(["src"],{...de,src:"string",alt:"string",poster:"string",loop:"boolean",muted:"boolean",aspectRatio:"string"},{url:"src",link:"src"},{enums:{aspectRatio:Ki}})},xr=new Set(Object.keys(Ft));function dr(t){if(typeof t!="object"||t===null)return!1;let e=t;return typeof e.type!="string"||e.type===""?!1:Array.isArray(e.items)?xr.has(e.type):!0}function ss(t){if(typeof t!="object"||t===null)return null;let e=t;if(typeof e.type!="string"||e.type==="")return null;let r=xr.has(e.type)?Ft[e.type]:void 0,n=typeof e.title=="string"&&r!==void 0&&!("title"in r.fields)?e.title:void 0,a={...t};return n!==void 0&&delete a.title,{items:[a],...n!==void 0?{title:n}:{},...e.panel===!0?{panel:!0}:{},...e.append===!0?{append:!0}:{}}}function Zt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:void 0}function os(t){let e=Zt(t);return e!==void 0&&typeof e.type=="string"}var o1=["label","value","delta","spark","size"],l1={label:"title",name:"title",description:"desc",content:"desc",text:"desc",body:"desc",detail:"desc"};function c1(t,e,r){if(t.length===0)return null;let n=[];for(let a=0;a<t.length;a++){let i=t[a],s=Zt(i);if(s===void 0)return null;if(os(i)){n.push(r(i,`${e}.items[${a}]`));continue}if(typeof s.label!="string"&&typeof s.value!="string")return null;let o={type:"stat"};for(let l of o1)s[l]!==void 0&&(o[l]=s[l]);n.push(o)}return n}function d1(t,e,r,n){let a=Ft[r];if(a===void 0)return t;let i={...t};for(let[s,o]of Object.entries(a.aliases)){if(!(s in i))continue;let l=`${e}.${s}`,m=o in i;m||(i[o]=i[s]),delete i[s],n.push({kind:"alias",path:l,message:m?`${l} is ignored because canonical field '${o}' is present`:`${l} normalized/adopted as '${o}'`,type:r,field:s,canonical:o})}for(let[s,o]of Object.entries(a.valueAliases)){let l=i[s];if(typeof l!="string")continue;let m=o[l];m===void 0||m===l||(i[s]=m,n.push({kind:"alias",path:`${e}.${s}`,message:`${e}.${s} '${l}' normalized to '${m}'`,type:r,field:s,canonical:m}))}return i}function ls(t,e,r,n,a){if(Array.isArray(t))return t.map((o,l)=>ls(o,e,`${r}[${l}]`,n,a));let i=Zt(t);if(i===void 0)return t;let s={...i};for(let[o,l]of Object.entries(e.aliases))!(o in s)||l in s||(s[l]=s[o],delete s[o],a.push({kind:"alias",path:`${r}.${o}`,message:`${r}.${o} normalized/adopted as '${l}'`,type:n,field:o,canonical:l}));for(let[o,l]of Object.entries(e.nested))s[o]!==void 0&&(s[o]=ls(s[o],l,`${r}.${o}`,n,a));return s}function cs(t){if(Array.isArray(t))return t.map(cs);let e=Zt(t);if(e===void 0)return t;let r={...e};return r.type===void 0&&Array.isArray(r.children)&&(r.type="dir"),r.children!==void 0&&(r.children=cs(r.children)),r}function ds(t,e,r){if(!os(t))return t;let n=t.type,a=Ft[n];if(a===void 0)return t;let i=d1(t,e,n,r);for(let[l,m]of Object.entries(a.nested))i[l]!==void 0&&(i[l]=ls(i[l],m,`${e}.${l}`,n,r));let s=(l,m)=>ds(l,m,r),o=(l,m)=>Array.isArray(l)?l.map((u,p)=>s(u,`${m}[${p}]`)):l;if(n==="file-tree"&&i.items!==void 0&&(i.items=cs(i.items)),n==="stat"&&Array.isArray(i.items)&&i.label===void 0&&i.value===void 0){let l=c1(i.items,e,s);if(l!==null)return r.push({kind:"alias",path:`${e}.items`,message:`${e}.items normalized into a row of 'stat' nodes`,type:n,field:"items",canonical:"row"}),{type:"row",items:l,...i.span!==void 0?{span:i.span}:{}}}if(n==="row"||n==="col"||n==="grid"||n==="card"||n==="file-tree"||n==="timeline"||n==="breadcrumb")n!=="file-tree"&&n!=="timeline"&&n!=="breadcrumb"&&(i.items=o(i.items,`${e}.items`));else if(n==="list"&&Array.isArray(i.items))i.items=i.items.map((l,m)=>{if(os(l))return s(l,`${e}.items[${m}]`);if(Array.isArray(l)&&l.length===1&&typeof l[0]=="string")return l[0];let u=Zt(l);if(u===void 0)return l;let p={...u},b=`${e}.items[${m}]`;for(let[y,k]of Object.entries(l1)){if(!(y in p))continue;let T=k in p;T||(p[k]=p[y]),delete p[y],r.push({kind:"alias",path:`${b}.${y}`,type:n,field:y,canonical:k,message:T?`${b}.${y} is ignored because canonical field '${k}' is present`:`${b}.${y} normalized/adopted as '${k}'`})}return!("title"in p)&&typeof p.desc=="string"&&(p.title=p.desc,delete p.desc,r.push({kind:"alias",path:`${b}.desc`,type:n,field:"desc",canonical:"title",message:`${b}.desc normalized/adopted as 'title'`})),p});else if(n==="keyvalue"&&Array.isArray(i.pairs))i.pairs.length>0&&i.pairs.every(l=>Array.isArray(l))&&(i.pairs=i.pairs.map(l=>{let m=l;return{key:m[0],value:m.length>1?m[1]:""}}));else if(n==="tabs"&&Array.isArray(i.tabs))i.tabs=i.tabs.map((l,m)=>{let u=Zt(l);if(u===void 0)return l;let p={...u};if("content"in p){let b=`${e}.tabs[${m}].content`,y="items"in p;y||(p.items=p.content),delete p.content,r.push({kind:"alias",path:b,message:y?`${b} is ignored because canonical field 'items' is present`:`${b} normalized/adopted as 'items'`,type:n,field:"content",canonical:"items"})}return p.items=Array.isArray(p.items)?p.items.map((b,y)=>s(b,`${e}.tabs[${m}].items[${y}]`)):p.items===void 0?[]:[s(p.items,`${e}.tabs[${m}].items[0]`)],p});else if(n==="accordion"&&Array.isArray(i.items))i.items=i.items.map((l,m)=>{let u=Zt(l);return u===void 0?l:{...u,items:Array.isArray(u.items)?u.items.map((p,b)=>s(p,`${e}.items[${m}].items[${b}]`)):u.items}});else if(n==="table"&&Array.isArray(i.details)){let l={columns:i.columns,rows:i.rows,types:i.types};i.details=i.details.map((m,u)=>!Array.isArray(m)||!Nt(l,u)?m:m.map((p,b)=>s(p,`${e}.details[${u}][${b}]`)))}return i}function vc(t){let e=[];if(typeof t=="string")try{let a=JSON.parse(t);(Zt(a)!==void 0||Array.isArray(a))&&(t=a,e.push({kind:"alias",path:"spec",message:"double-encoded JSON string unwrapped into a spec value"}))}catch{}Array.isArray(t)&&t.length>0&&(t={items:t},e.push({kind:"alias",path:"items",message:"root array normalized into an items envelope"}));let r=Zt(t);if(r===void 0)return{value:t,warnings:e};let n={...r};return dr(n)?{value:ds(n,"spec",e),warnings:e}:(Array.isArray(n.items)&&(n.items=n.items.map((a,i)=>ds(a,`items[${i}]`,e))),{value:n,warnings:e})}function Lr(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:void 0}function xc(t){let e=Lr(t);return e!==void 0&&typeof e.type=="string"}function us(t,e,r){if(!xc(t))return;let n=t.type,a=Ft[n];if(a===void 0)return;r(t,e,a);let i=(s,o)=>us(s,o,r);if((n==="row"||n==="col"||n==="grid"||n==="card")&&Array.isArray(t.items))t.items.forEach((s,o)=>i(s,`${e}.items[${o}]`));else if(n==="list"&&Array.isArray(t.items))t.items.forEach((s,o)=>i(s,`${e}.items[${o}]`));else if(n==="tabs"&&Array.isArray(t.tabs))t.tabs.forEach((s,o)=>{let l=Lr(s);l!==void 0&&(Array.isArray(l.items)?l.items.forEach((m,u)=>i(m,`${e}.tabs[${o}].items[${u}]`)):i(l.items,`${e}.tabs[${o}].items`))});else if(n==="accordion"&&Array.isArray(t.items))t.items.forEach((s,o)=>{let l=Lr(s);l?.items!==void 0&&Array.isArray(l.items)&&l.items.forEach((m,u)=>i(m,`${e}.items[${o}].items[${u}]`))});else if(n==="table"&&Array.isArray(t.details)){let s={columns:t.columns,rows:t.rows,types:t.types};t.details.forEach((o,l)=>{Array.isArray(o)&&Nt(s,l)&&o.forEach((m,u)=>i(m,`${e}.details[${l}][${u}]`))})}}function ya(t,e,r,n){t.push({kind:"unknown-field",path:`${e}.${r}`,message:`${e}.${r}: unknown field for '${n}'`,type:n,field:r})}function va(t,e,r,n,a){let i=Lr(t);if(i!==void 0){for(let s of Object.keys(i))s in r.fields||ya(a,e,s,n);for(let[s,o]of Object.entries(r.nested)){let l=i[s];Array.isArray(l)?l.forEach((m,u)=>va(m,`${e}.${s}[${u}]`,o,n,a)):l!==void 0&&va(l,`${e}.${s}`,o,n,a)}}}function u1(t,e,r,n){for(let[a,i]of Object.entries(r.nested)){let s=t[a];Array.isArray(s)?s.forEach((o,l)=>va(o,`${e}.${a}[${l}]`,i,t.type,n)):s!==void 0&&va(s,`${e}.${a}`,i,t.type,n)}}function wc(t){let e=[],r=Lr(t);if(r===void 0)return e;let n=(a,i,s)=>{for(let o of Object.keys(a))o==="type"||o in s.fields||ya(e,i,o,a.type);u1(a,i,s,e),a.type==="list"&&Array.isArray(a.items)&&a.items.forEach((o,l)=>{if(xc(o))return;let m=Lr(o);if(m!==void 0)for(let u of Object.keys(m)){if(u==="title"||u==="desc")continue;let p=`${i}.items[${l}]`;e.push({kind:"unknown-field",path:`${p}.${u}`,message:`${p}.${u}: list items render 'title' and 'desc' only \u2014 '${u}' is dropped`,type:"list",field:u})}})};if(Array.isArray(r.items)&&!dr(r)){for(let a of Object.keys(r))a in un.fields||ya(e,"spec",a,"spec");r.items.forEach((a,i)=>us(a,`items[${i}]`,n))}else if(typeof r.type=="string")us(r,"spec",n);else for(let a of Object.keys(r))a in un.fields||ya(e,"spec",a,"spec");return e}function mn(t,e){switch(e){case"string":return typeof t=="string";case"string-or-null":return t===null||typeof t=="string";case"number":return typeof t=="number"&&Number.isFinite(t);case"boolean":return typeof t=="boolean";case"nodes":return Array.isArray(t);case"array":return Array.isArray(t);case"object":return ue(t)!==void 0;case"unknown":return!0}}function Br(t){switch(t){case"string-or-null":return"a string or null";case"number":return"a finite number";case"boolean":return"a boolean";case"nodes":case"array":return"an array";case"object":return"an object";case"unknown":return"a value";default:return"a string"}}function wr(t,e,r){return t.some(n=>n.startsWith(`${e}.${r} `)||n.includes(`'${r}'`)||n.includes(`requires ${r}`))}function Tc(t,e,r,n,a=[]){for(let[i,s]of Object.entries(r.fields))a.includes(i)||t[i]===void 0||!mn(t[i],s)&&!wr(n,e,i)&&n.push(`${e}.${i} must be ${Br(s)}`);for(let[i,s]of Object.entries(r.enums))a.includes(i)||t[i]===void 0||!mn(t[i],"string")||!s.includes(t[i])&&!wr(n,e,i)&&n.push(`${e}.${i} must be one of ${s.join(", ")}`)}function ka(t,e,r,n){let a=ue(t);if(a===void 0){n.push(`${e} must be an object`);return}for(let i of r.required){let s=r.fields[i];a[i]===void 0?wr(n,e,i)||n.push(`${e}: requires ${i}${s===void 0?"":` (${Br(s)})`}`):s!==void 0&&!mn(a[i],s)&&(wr(n,e,i)||n.push(`${e}.${i} must be ${Br(s)}`))}for(let[i,s]of Object.entries(r.fields))a[i]!==void 0&&!mn(a[i],s)&&(wr(n,e,i)||n.push(`${e}.${i} must be ${Br(s)}`));for(let[i,s]of Object.entries(r.enums))a[i]!==void 0&&typeof a[i]=="string"&&!s.includes(a[i])&&(wr(n,e,i)||n.push(`${e}.${i} must be one of ${s.join(", ")}`));for(let[i,s]of Object.entries(r.nested)){let o=a[i];o!==void 0&&(Array.isArray(o)?o.forEach((l,m)=>ka(l,`${e}.${i}[${m}]`,s,n)):ka(o,`${e}.${i}`,s,n))}}function m1(t,e,r,n){for(let[a,i]of Object.entries(r.nested)){let s=t[a];s!==void 0&&(Array.isArray(s)?s.forEach((o,l)=>ka(o,`${e}.${a}[${l}]`,i,n)):ka(s,`${e}.${a}`,i,n))}}function Nc(t){let e=t.rows!==void 0?t.rows:t.data;return!Array.isArray(e)||e.length===0?!1:Array.isArray(e[0])}function p1(t,e,r,n){let a=String(t.type),i=o=>wr(n,e,o),s=a==="table"&&Nc(t)?"columns":null;for(let o of r.required){let l=r.fields[o];if(l===void 0||t[o]===void 0){o!==s&&!i(o)&&n.push(`${e}: type '${a}' requires ${o}${l===void 0?"":` (${Br(l)})`}`);continue}!mn(t[o],l)&&!i(o)&&n.push(`${e}.${o} must be ${Br(l)}`)}Tc(t,e,r,n,["type"]);for(let o of r.oneOfRequired)!o.some(l=>t[l]!==void 0)&&!n.some(l=>l.includes(`requires ${o.join(" or ")}`))&&n.push(`${e}: type '${a}' requires one of ${o.join(" or ")}`);for(let o of r.conditionalRequired)if(t[o.when.field]===o.when.equals)for(let l of o.required)t[l]===void 0&&!i(l)&&n.push(`${e}: type '${a}' requires ${l}${o.message===void 0?"":` (${o.message})`}`);m1(t,e,r,n)}function ur(t,e,r){if(!Array.isArray(t))return[];let n=[];for(let a of t){if(e.remaining<=0)break;e.remaining-=1;let i=Mc(a,e,r);i!==null&&n.push(i)}return n}function kc(t){if(!Array.isArray(t))return;let e=[];for(let r of t.slice(0,12)){let n=Lt(r);n!==void 0&&e.push(n)}return e.length>0?e:void 0}function Sc(t){if(!Array.isArray(t))return;let e=[];for(let r of t.slice(0,60)){let n=typeof r=="number"?r:Number(r);if(!Number.isFinite(n))return;e.push(n)}return e.length>=2?e:void 0}function Mc(t,e,r){let n=f1(t,e,r);if(n===null)return null;let a=Bt(ue(t)?.span,2,12),i=z(ue(t)?.id,64);return{...n,...S("span",a),...S("id",i)}}function f1(t,e,r){if(r>A.maxDepth)return null;let n=ue(t);if(n===void 0)return null;let a=n.type;if(typeof a!="string")return null;switch(a){case"text":{let i=z(n.content,A.maxString)??z(n.text,A.maxString);return i===void 0?null:{type:"text",content:i,...S("copyable",n.copyable===!0?!0:void 0),...S("title",z(n.title,A.maxString)),...S("size",Ue(n.size,Hi)),...S("center",n.center===!0?!0:void 0)}}case"row":return{type:"row",items:ur(n.items,e,r+1),...S("wrap",n.wrap===!0?!0:void 0),...S("spacer",n.spacer===!0?!0:void 0)};case"col":return{type:"col",items:ur(n.items,e,r+1),...S("gap",Te(n.gap,0,96))};case"grid":return{type:"grid",cols:Bt(n.cols,1,A.maxGridCols)??1,items:ur(n.items,e,r+1)};case"card":return{type:"card",items:ur(n.items,e,r+1),...S("title",z(n.title,A.maxString)),...S("tone",Ue(n.tone,as)),...S("accent",Lt(n.accent))};case"button":{let i=z(n.label,A.maxString);return i===void 0?null:{type:"button",label:i,...S("tone",Ue(n.tone,ji)),...S("full",n.full===!0?!0:void 0),...S("small",n.small===!0?!0:void 0),...S("icon",z(n.icon,64)),...S("action",z(n.action,200))}}case"input":return{type:"input",...S("label",z(n.label,A.maxString)),...S("placeholder",z(n.placeholder,A.maxString)),...S("value",z(n.value,A.maxString)),...S("inputType",Ue(n.inputType,Vi)),...S("action",z(n.action,200)),...S("id",z(n.id,200))};case"select":{let i=xa(n.options,A.maxOptions,A.maxString);return i===void 0?null:{type:"select",options:i,...S("label",z(n.label,A.maxString)),...S("action",z(n.action,200)),...S("selected",Bt(n.selected,0,i.length-1)),...S("id",z(n.id,200))}}case"checkbox":{let i=z(n.label,A.maxString);return i===void 0?null:{type:"checkbox",label:i,...S("checked",n.checked===!0?!0:void 0),...S("action",z(n.action,200)),...S("group",z(n.group,200))}}case"link":{let i=z(n.label,A.maxString);if(i===void 0)return null;let s=Rr(n.href),o=s.type==="external"?s.href:s.type==="file"?String(n.href).trim():void 0;return{type:"link",label:i,...S("href",o)}}case"image":{let i=or(n.src);return i===void 0?null:{type:"image",src:i,...S("alt",z(n.alt,A.maxString))}}case"audio":{let i=or(n.src);return i===void 0?null:{type:"audio",src:i,...S("alt",z(n.alt,A.maxString)),...S("loop",n.loop===!0?!0:void 0)}}case"video":{let i=or(n.src);return i===void 0?null:{type:"video",src:i,...S("alt",z(n.alt,A.maxString)),...S("poster",or(n.poster)),...S("loop",n.loop===!0?!0:void 0),...S("muted",n.muted===!0?!0:void 0),...S("aspectRatio",Ue(n.aspectRatio,Ki))}}case"badge":{let i=z(n.label,A.maxString)??z(n.text,A.maxString)??z(n.value,A.maxString);return i===void 0?null:{type:"badge",label:i,...S("tone",Ue(n.tone,Ui)),...S("icon",z(n.icon,64))}}case"hero":{let i=z(n.title,A.maxString);return i===void 0?null:{type:"hero",title:i,...S("subtitle",z(n.subtitle,A.maxString)),...S("value",z(n.value,128)),...S("label",z(n.label,A.maxString)),...S("delta",z(n.delta,64)),...S("spark",Sc(n.spark)),...S("tone",Ue(n.tone,is))}}case"stat":{let i=z(n.label,A.maxString),s=z(n.value,128);return i===void 0||s===void 0?null:{type:"stat",label:i,value:s,...S("delta",z(n.delta,64)),...S("spark",Sc(n.spark)),...S("size",n.size==="hero"?"hero":void 0)}}case"progress":{let i=Te(n.value,0,100);return i===void 0?null:{type:"progress",value:i,...S("label",z(n.label,A.maxString)),...S("valueLabel",z(n.valueLabel,64)),...S("variant",Ue(n.variant,ns)),...S("target",Te(n.target,0,100))}}case"divider":return{type:"divider"};case"spacer":return{type:"spacer"};case"avatar":{let i=z(n.name,64);return i===void 0?null:{type:"avatar",name:i,...S("color",Lt(n.color))}}case"list":{let i=h1(n.items,A.maxListItems,e,r+1);return i===void 0?null:{type:"list",items:i,...S("filter",z(n.filter,64))}}case"table":{let i=Gi(n);if(i===null)return null;let{columns:s,rows:o}=i,l=Array.isArray(n.types)?n.types:void 0,m=l===void 0?void 0:s.map((b,y)=>{let k=l[y];return typeof k=="string"&&gc.includes(k)?k:"text"}),u=Array.isArray(n.details)?n.details:void 0,p=u===void 0?void 0:o.map((b,y)=>{if(!Nt({columns:s,rows:o,types:m},y))return null;let k=ur(u[y],e,r+1);return k.length===0?null:k});return{type:"table",columns:s,rows:o,...S("types",m),...S("total",n.total===!0?!0:void 0),...S("export",n.export===!0?!0:void 0),...S("filter",z(n.filter,64)),...S("filterColumn",Bt(n.filterColumn,0,A.maxTableCols-1)),...S("sortField",z(n.sortField,64)),...S("details",p!==void 0&&p.some(b=>b!==null)?p:void 0)}}case"chart":{let i=ms(n.data,A.maxChartPoints),s=Array.isArray(n.series)?Ac(n.series,A.maxPlotSeries,A.maxChartPoints):void 0;return i===void 0&&s===void 0?null:{type:"chart",data:i??[],...S("kind",Ue(n.kind,ba)),...S("series",s),...S("horizontal",n.horizontal===!0?!0:void 0),...S("stacked",n.stacked===!0?!0:void 0),...S("filter",z(n.filter,64)),...S("palette",kc(n.palette))}}case"tabs":{let i=g1(n.tabs,e,r);return i===void 0?null:{type:"tabs",tabs:i}}case"plot":{let i=b1(n.series,A.maxPlotSeries);return i===void 0?null:{type:"plot",series:i,...S("xMin",Te(n.xMin,-1e6,1e6)),...S("xMax",Te(n.xMax,-1e6,1e6)),...S("yMin",Te(n.yMin,-1e9,1e9)),...S("yMax",Te(n.yMax,-1e9,1e9)),...S("title",z(n.title,A.maxString))}}case"callout":{let i=z(n.content,A.maxString);return i===void 0?null:{type:"callout",content:i,...S("tone",Ue(n.tone,Wi)),...S("title",z(n.title,A.maxString))}}case"steps":{let i=y1(n.steps);return i===void 0?null:{type:"steps",steps:i,...S("current",Bt(n.current,0,i.length))}}case"keyvalue":{let i=v1(n.pairs,A.maxKeyValuePairs);return i===void 0?null:{type:"keyvalue",pairs:i}}case"diff":{let i=x1(n.diffs);return i===void 0?null:{type:"diff",diffs:i}}case"json":return"value"in n?{type:"json",value:n.value}:null;case"code":{let i=z(n.code,A.maxCode);return i===void 0?null:{type:"code",code:i,...S("lang",z(n.lang,64)),...S("title",z(n.title,A.maxString)),...S("wrap",n.wrap===!0?!0:void 0)}}case"radio":{let i=xa(n.options,A.maxOptions,A.maxString);return i===void 0?null:{type:"radio",options:i,...S("label",z(n.label,A.maxString)),...S("selected",Bt(n.selected,0,i.length-1)),...S("action",z(n.action,200)),...S("group",z(n.group,200)),...S("answer",typeof n.answer=="number"&&Number.isFinite(n.answer)&&n.answer>=0&&n.answer<i.length?Math.trunc(n.answer):typeof n.answer=="string"?n.answer.slice(0,512):void 0),...S("explanation",z(n.explanation,A.maxString))}}case"submit":{let i=z(n.label,A.maxString),s=z(n.action,200);return i===void 0?null:{type:"submit",label:i,...S("action",s),...S("resetAction",z(n.resetAction,200)),...S("groups",xa(n.groups,A.maxOptions,200))}}case"switch":{let i=z(n.label,A.maxString);return i===void 0?null:{type:"switch",label:i,...S("checked",n.checked===!0?!0:void 0),...S("action",z(n.action,200))}}case"slider":{let i=Te(n.min,-1e9,1e9)??0,s=Te(n.max,-1e9,1e9)??100,o=Math.min(i,s),l=Math.max(i,s),m=Te(n.step,1e-9,Math.max(l-o,1e-9)),u=Te(n.value,o,l)??o;return{type:"slider",min:o,max:l,...S("step",m),value:u,...S("label",z(n.label,A.maxString)),...S("action",z(n.action,200)),...S("id",z(n.id,200))}}case"textarea":return{type:"textarea",...S("label",z(n.label,A.maxString)),...S("placeholder",z(n.placeholder,A.maxString)),...S("rows",Bt(n.rows,1,30)),...S("value",z(n.value,A.maxString)),...S("action",z(n.action,200)),...S("id",z(n.id,200))};case"accordion":{let i=w1(n.items,e,r);return i===void 0?null:{type:"accordion",items:i}}case"copy":{let i=z(n.text,A.maxCode);return i===void 0?null:{type:"copy",text:i,...S("label",z(n.label,128))}}case"svg":{let i=z(n.code,A.maxCode);return i===void 0?null:{type:"svg",code:i,...S("title",z(n.title,A.maxString)),...S("height",Bt(n.height,100,800))}}case"mermaid":{let i=z(n.code,A.maxMermaid);return i===void 0?null:{type:"mermaid",code:i}}case"scene3d":{let i=k1(n.meshes);return i===void 0?null:{type:"scene3d",meshes:i,...S("title",z(n.title,A.maxString)),...S("ambient",Te(n.ambient,0,2)),...S("background",Lt(n.background))}}case"diagram":return M1(n);case"timeline":{let i=C1(n.items,A.maxTimelineItems);return i===void 0?null:{type:"timeline",items:i}}case"file-tree":{let i=z1(n.items,A.maxListItems);return i===void 0?null:{type:"file-tree",items:i}}case"breadcrumb":{let i=xa(n.items,A.maxBreadcrumbItems,A.maxString);return i===void 0?null:{type:"breadcrumb",items:i}}case"quiz":{let i=z(n.question,A.maxString),s=R1(n.options,n.answer);return i===void 0||s===void 0?null:{type:"quiz",question:i,options:s,...S("explanation",z(n.explanation,A.maxString)),...S("id",z(n.id,200)),...S("action",z(n.action,200))}}case"echart":{let i=n.data!==void 0?ms(n.data,A.maxChartPoints):void 0,s=n.series!==void 0&&Array.isArray(n.series)?Ac(n.series,A.maxPlotSeries,A.maxChartPoints):void 0,o=Array.isArray(n.links)?n.links.slice(0,A.maxChartPoints).flatMap(u=>{let p=ue(u),b=p===void 0?void 0:z(p.from,64),y=p===void 0?void 0:z(p.to,64);return b===void 0||y===void 0?[]:[{from:b,to:y,...S("value",Te(p.value,0,1e9))}]}):void 0,l=n.option!==void 0?ps(n.option,0,{count:A.maxEChartOptionNodes}):void 0,m=l===void 0||typeof l!="object"||l===null||Array.isArray(l)?void 0:l;return m===void 0&&i===void 0&&s===void 0&&(o===void 0||o.length===0)?null:{type:"echart",...S("title",z(n.title,A.maxString)),...S("height",Bt(n.height,100,800)),...S("preset",Ue(n.preset,rs)),...S("data",i),...S("series",s),...S("links",o!==void 0&&o.length>0?o:void 0),...S("palette",kc(n.palette)),...S("option",m)}}default:return t}}function xa(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=e)break;if(typeof a=="string")n.push(a.slice(0,r));else if(a!==null&&typeof a=="object"){let i=a,s=typeof i.label=="string"?i.label:typeof i.value=="string"?i.value:typeof i.title=="string"?i.title:JSON.stringify(a);n.push(s.slice(0,r))}}return n}function h1(t,e,r,n){if(!Array.isArray(t))return;let a=[];for(let i of t){if(a.length>=e)break;if(typeof i=="string"){a.push(i.slice(0,A.maxString));continue}let s=ue(i);if(s!==void 0&&typeof s.type=="string"){if(r.remaining<=0)break;r.remaining-=1;let l=Mc(s,r,n);l!==null&&a.push(l);continue}let o=s===void 0?void 0:z(s.title,A.maxString);o!==void 0&&a.push({title:o,...S("desc",z(s?.desc,A.maxString))})}return a}function ms(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.label,128),s=a===void 0?void 0:Te(a.value,-1e12,1e12);i===void 0||s===void 0||r.push({label:i,value:s,...S("color",a===void 0?void 0:Lt(a.color))})}return r}function Ac(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=e)break;let i=ue(a),s=i===void 0?void 0:z(i.label,128),o=i===void 0?void 0:ms(i.data,r);s===void 0||o===void 0||n.push({label:s,data:o,...S("color",i===void 0?void 0:Lt(i.color))})}return n}function g1(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=A.maxTabs)break;let i=ue(a),s=i===void 0?void 0:z(i.label,128);if(s===void 0||i===void 0)continue;let o=i.items!==void 0?i.items:i.content!==void 0?Array.isArray(i.content)?i.content:[i.content]:void 0;n.push({label:s,items:ur(o,e,r+1)})}return n}function b1(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.expr,512);if(i===void 0||a===void 0)continue;let s=[];if(Array.isArray(a.params))for(let o of a.params){if(s.length>=A.maxPlotParams)break;let l=ue(o),m=l===void 0?void 0:z(l.name,64),u=l===void 0?void 0:Te(l.value,-1e9,1e9);m===void 0||u===void 0||s.push({name:m,value:u,...S("min",l===void 0?void 0:Te(l.min,-1e9,1e9)),...S("max",l===void 0?void 0:Te(l.max,-1e9,1e9)),...S("step",l===void 0?void 0:Te(l.step,1e-9,1e9)),...S("animateTo",l===void 0?void 0:Te(l.animateTo,-1e9,1e9)),...S("durationMs",l===void 0?void 0:Te(l.durationMs,1,12e4)),...S("loop",l===void 0?void 0:l.loop===!0?!0:void 0)})}r.push({expr:i,...S("label",z(a.label,128)),...S("color",Lt(a.color)),...S("kind",Ue(a.kind,Yi)),...S("params",s.length>0?s:void 0)})}return r}function y1(t){if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxSteps)break;let n=ue(r),a=n===void 0?void 0:z(n.title,256);a!==void 0&&e.push({title:a,...S("desc",n===void 0?void 0:z(n.desc,A.maxString))})}return e}function v1(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.key,256),s=a===void 0?void 0:z(a.value,A.maxString);i===void 0||s===void 0||r.push({key:i,value:s})}return r}function x1(t){if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=24)break;let n=ue(r),a=n===void 0?void 0:z(n.path,1024),i=n===void 0?void 0:z(n.newText,2e4);if(a===void 0||i===void 0)continue;let s=n===void 0?void 0:n.oldText;e.push({path:a,newText:i,oldText:s===null||typeof s!="string"?null:s.slice(0,2e4)})}return e}function w1(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=A.maxAccordionItems)break;let i=ue(a),s=i===void 0?void 0:z(i.title,256);s===void 0||i===void 0||n.push({title:s,items:ur(i.items,e,r+1)})}return n}function k1(t){if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxMeshes)break;let n=ue(r),a=n===void 0?void 0:Ue(n.shape,Ji);if(a===void 0)continue;let i=n===void 0?void 0:Te(n.scale,-1e6,1e6)??wa(n.scale),s=n===void 0?void 0:Te(n.size,-1e6,1e6)??wa(n.size);e.push({shape:a,...S("color",n===void 0?void 0:Lt(n.color)),...S("position",n===void 0?void 0:wa(n.position)),...S("rotation",n===void 0?void 0:wa(n.rotation)),...S("scale",i),...S("size",s)})}return e}function wa(t){if(!Array.isArray(t)||t.length!==3)return;let[e,r,n]=t;if(!(typeof e!="number"||!Number.isFinite(e)||typeof r!="number"||!Number.isFinite(r)||typeof n!="number"||!Number.isFinite(n)))return[Math.min(1e6,Math.max(-1e6,e)),Math.min(1e6,Math.max(-1e6,r)),Math.min(1e6,Math.max(-1e6,n))]}function mr(t,e,r){return Math.min(r,Math.max(e,Math.round(t/4)*4))}function S1(t){if(!Array.isArray(t))return;let e=[],r=new Set;for(let n of t){if(e.length>=A.maxDiagramNodes)break;let a=ue(n);if(a===void 0)continue;let i=z(a.id,128),s=z(a.label,A.maxString);if(i===void 0||s===void 0||r.has(i))continue;r.add(i);let o=Ue(a.type,Zi),l=a.x===void 0?void 0:mr(Te(a.x,-1e6,1e6)??0,0,1e6),m=a.y===void 0?void 0:mr(Te(a.y,-1e6,1e6)??0,0,1e6),u=a.w===void 0?void 0:mr(Te(a.w,-1e6,1e6)??96,40,2e3),p=a.h===void 0?void 0:mr(Te(a.h,-1e6,1e6)??48,24,1200);e.push({id:i,label:s,...S("sub",z(a.sub,256)),...S("type",o),...S("x",l),...S("y",m),...S("w",u),...S("h",p),...S("tag",z(a.tag,32))})}return e}function A1(t){if(t===void 0)return[];if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxDiagramEdges)break;let n=ue(r);if(n===void 0)continue;let a=z(n.from,128),i=z(n.to,128);a===void 0||i===void 0||e.push({from:a,to:i,...S("label",z(n.label,A.maxDiagramLabel)),...S("kind",Ue(n.kind,es)),...S("route",Ue(n.route,ts))})}return e}function T1(t){let e=ue(t);if(e===void 0)return;let r={};for(let n of["paper","paper-2","ink","muted","soft","rule","accent","accent-tint","link"]){let a=Lt(e[n]);a!==void 0&&(r[n]=a)}return Object.keys(r).length===0?void 0:r}function N1(t){if(t===void 0)return[];if(!Array.isArray(t))return;let e=[];for(let r of t){if(e.length>=A.maxDiagramZones)break;let n=ue(r);if(n===void 0)continue;let a=z(n.label,64);a!==void 0&&e.push({label:a,...S("x",n.x===void 0?void 0:mr(Te(n.x,-1e6,1e6)??0,0,1e6)),...S("y",n.y===void 0?void 0:mr(Te(n.y,-1e6,1e6)??0,0,1e6)),...S("w",n.w===void 0?void 0:mr(Te(n.w,-1e6,1e6)??100,40,2e3)),...S("h",n.h===void 0?void 0:mr(Te(n.h,-1e6,1e6)??100,40,1200))})}return e}function M1(t){let e=ue(t);if(e===void 0)return null;let r=Ue(e.kind,_i);if(r===void 0)return null;let n=S1(e.nodes);if(n===void 0)return null;let a=A1(e.edges);if(a===void 0)return null;let i=N1(e.zones);return i===void 0?null:{type:"diagram",kind:r,nodes:n,edges:a,...S("zones",i.length>0?i:void 0),...S("variant",Ue(e.variant,Qi)),...S("title",z(e.title,256)),...S("theme",T1(e.theme))}}function C1(t,e){if(!Array.isArray(t))return;let r=[];for(let n of t){if(r.length>=e)break;let a=ue(n),i=a===void 0?void 0:z(a.title,256);i!==void 0&&r.push({title:i,...S("desc",a===void 0?void 0:z(a.desc,A.maxString)),...S("time",a===void 0?void 0:z(a.time,128))})}return r}function z1(t,e){return Cc(t,e,A.maxTreeDepth)}function Cc(t,e,r){if(!Array.isArray(t))return;let n=[];for(let a of t){if(n.length>=e)break;let i=ue(a),s=i===void 0?void 0:z(i.name,256);if(s===void 0)continue;let o=i!==void 0&&r>0&&Array.isArray(i.children)?Cc(i.children,e,r-1):void 0;n.push({name:s,...S("type",i===void 0?void 0:Ue(i.type,Xi)),...S("children",o)})}return n}function R1(t,e){if(!Array.isArray(t))return;let r=[];for(let a of t){if(r.length>=A.maxQuizOptions)break;let i=ue(a),s=typeof a=="string"?z(a,512):i===void 0?void 0:z(i.label,512);s!==void 0&&r.push({label:s,...S("correct",i===void 0?void 0:i.correct===!0?!0:void 0),...S("feedback",i===void 0?void 0:z(i.feedback,A.maxString))})}if(r.length===0)return;if(r.some(a=>a.correct===!0))return r;let n=typeof e=="number"&&Number.isFinite(e)?Math.trunc(e):typeof e=="string"?r.findIndex(a=>a.label===e.slice(0,512)):-1;return n<0||n>=r.length?r:r.map((a,i)=>i===n?{...a,correct:!0}:a)}var G1=/<(?:script|img|svg|iframe|video|audio|object|embed|source)\b|on[a-z]+\s*=|javascript:/i;function ps(t,e,r){if(r.count<=0||(r.count-=1,e>A.maxEChartOptionDepth))return;if(typeof t=="string"){let i=t.slice(0,A.maxString);return i.toLowerCase().includes("url(")||G1.test(i)?void 0:i}if(typeof t=="number"&&Number.isFinite(t)||typeof t=="boolean")return t;if(t===null)return null;if(Array.isArray(t)){let i=Math.min(t.length,A.maxEChartArrayLen),s=[];for(let o=0;o<i;o++){let l=ps(t[o],e+1,r);l!==void 0&&s.push(l)}return s.length>0||t.length===0?s:void 0}let n=ue(t);if(n===void 0)return;let a={};for(let[i,s]of Object.entries(n)){let o=ps(s,e+1,r);o!==void 0&&(i==="tooltip"&&typeof o=="object"&&o!==null&&!Array.isArray(o)&&(o.renderMode="richText"),a[i]=o)}return Object.keys(a).length>0||Object.keys(n).length===0?a:void 0}function zc(t){let e=ue(t);if(e===void 0)return null;if(dr(t)){let n=ss(t);return n===null?null:zc(n)}if(!Array.isArray(e.items))return null;let r={remaining:A.maxNodes};return{...S("title",z(e.title,A.maxString)),...S("gap",Te(e.gap,0,96)),...S("panel",e.panel===!0?!0:void 0),...S("append",e.append===!0?!0:void 0),items:ur(e.items,r,0)}}function $1(t,e=Number.POSITIVE_INFINITY){let r=0,n=i=>{if(Array.isArray(i))for(let s of i){if(r>=e)return;r+=1;let o=ue(s);if(o!==void 0){if(o.type==="tabs"&&Array.isArray(o.tabs))for(let l of o.tabs){if(r>=e)return;let m=ue(l);m!==void 0&&n(m.items)}else if(o.type==="accordion"&&Array.isArray(o.items))for(let l of o.items){if(r>=e)return;let m=ue(l);m!==void 0&&n(m.items)}else if((o.type==="row"||o.type==="col"||o.type==="grid"||o.type==="card")&&Array.isArray(o.items))n(o.items);else if(o.type!=="file-tree"){if(o.type==="list"&&Array.isArray(o.items))for(let l of o.items){if(r>=e)return;let m=ue(l);m!==void 0&&typeof m.type=="string"&&n([m])}else if(o.type==="table"&&Array.isArray(o.details)){let l=Kt(o).length;for(let m=0;m<Math.min(o.details.length,l);m++){if(r>=e)return;let u=o.details[m];Array.isArray(u)&&Nt(o,m)&&n(u)}}}}}},a=ue(t);return n(a===void 0?[]:a.items),r}var E1=xr;function D1(t,e,r){let n=0,a=m=>{let u=ue(m);return u!==void 0&&typeof u.type=="string"&&E1.has(u.type)};function i(m,u){if(Array.isArray(m)){for(let p=0;p<m.length;p++)if(s(m[p],`${u}[${p}]`),n>=e)return}}function s(m,u){if(n>=e||!a(m))return;let p=ue(m);if(p!==void 0){if(n+=1,r(p,u),p.type==="tabs"&&Array.isArray(p.tabs))for(let b=0;b<p.tabs.length;b++)o(p.tabs[b],`${u}.tabs[${b}]`);else if(p.type==="accordion"&&Array.isArray(p.items))for(let b=0;b<p.items.length;b++)o(p.items[b],`${u}.items[${b}]`);else if((p.type==="row"||p.type==="col"||p.type==="grid"||p.type==="card")&&Array.isArray(p.items))i(p.items,`${u}.items`);else if(p.type==="list"&&Array.isArray(p.items))for(let b=0;b<p.items.length;b++)s(p.items[b],`${u}.items[${b}]`);else if(p.type==="table"&&Array.isArray(p.details)){let b=Kt(p).length;for(let y=0;y<Math.min(p.details.length,b);y++)Array.isArray(p.details[y])&&Nt(p,y)&&i(p.details[y],`${u}.details[${y}]`)}}}function o(m,u){let p=ue(m);if(p===void 0)return;let b=p.items!==void 0?p.items:p.content;Array.isArray(b)?i(b,`${u}.items`):s(b,`${u}.items`)}let l=ue(t);return l===void 0||(dr(l)&&a(t)?s(t,"spec"):i(l.items,"items")),n}function Rc(t,e=Number.POSITIVE_INFINITY){return D1(t,e,()=>{})}function I1(t,e=Number.POSITIVE_INFINITY){return Rc(t,e)}function Gc(t){let e=[],r=ue(t);if(r===void 0)return{ok:!1,errors:["spec root must be an object"]};if(dr(t)){let o=ss(t);return o!==null?Gc(o):{ok:!1,errors:["spec.items must be an array"]}}if(!Array.isArray(r.items))return{ok:!1,errors:["spec.items must be an array"]};Tc(r,"spec",un,e,["items"]);let n=0,a=!1,i=(o,l,m)=>{if(!a){if(!Array.isArray(o)){e.push(`${m} must be an array`);return}for(let u=0;u<o.length;u++){if(a||n>=A.maxNodes){a||(e.push(`spec exceeds ${A.maxNodes} nodes; tail elided`),a=!0);return}n+=1;let p=`${m}[${u}]`;Dc(o[u],l,p,e,i)}}};i(r.items,0,"items"),e.length===0&&e.push(...oa(r).diagnostics);let s=[...new Set(e)];return{ok:s.length===0,errors:s}}function qr(t){let e=vc(t),r=zc(e.value),n=Gc(e.value),a=Rc(e.value,A.maxNodes+1),i=r===null?0:I1(r),s=r===null?0:$1(r),o=n.errors.filter(l=>!l.includes(": unknown type "));return r!==null&&o.length===0&&o.push(...oa(r).diagnostics),a>i&&o.push(`repair dropped ${a-i} declared native node(s): declared ${a}, rendered ${i}`),{value:e.value,normalized:e.value,repaired:r,spec:r,errors:[...new Set(o)],warnings:[...e.warnings,...wc(e.value)],declaredCount:a,renderedCount:s,declaredNativeCount:a,renderedNativeCount:i,renderedTotalCount:s}}function L1(t){return t.errors.length>0&&t.errors.every(e=>e.startsWith("spec exceeds ")||e.startsWith("repair dropped "))&&t.renderedNativeCount===A.maxNodes&&t.declaredNativeCount===A.maxNodes+1}function $c(t){return t.spec!==null&&(t.errors.length===0||L1(t))}function Ec(t,e,r){if(Array.isArray(t))for(let n=0;n<t.length;n++){let a=ue(t[n]),i=`${e}[${n}]`;if(a===void 0){r.push(`${i} must be an object`);continue}typeof a.label!="string"&&r.push(`${i}.label must be a string`),(typeof a.value!="number"||!Number.isFinite(a.value))&&r.push(`${i}.value must be a finite number`),a.color!==void 0&&typeof a.color!="string"&&r.push(`${i}.color must be a string`)}}function B1(t,e,r){if(Array.isArray(t))for(let n=0;n<t.length;n++){let a=ue(t[n]),i=`${e}[${n}]`;if(a===void 0){r.push(`${i} must be an object`);continue}typeof a.label!="string"&&r.push(`${i}.label must be a string`),a.color!==void 0&&typeof a.color!="string"&&r.push(`${i}.color must be a string`),Array.isArray(a.data)||r.push(`${i}.data must be an array`),Ec(a.data,`${i}.data`,r)}}function q1(t,e,r){!Array.isArray(t.data)&&!Array.isArray(t.series)&&r.push(`${e}: type 'chart' requires data or series (array)`),t.variant!==void 0&&r.push(`${e}.variant is unsupported; use kind`),t.data!==void 0&&!Array.isArray(t.data)&&r.push(`${e}.data must be an array`),t.series!==void 0&&!Array.isArray(t.series)&&r.push(`${e}.series must be an array`),t.kind!==void 0&&(typeof t.kind!="string"||!ba.includes(t.kind))&&r.push(`${e}.kind must be bars, line, or donut`);let n=t.kind===void 0?"bars":t.kind,a=Array.isArray(t.series)?t.series:void 0;if(Array.isArray(t.data)&&t.data.length===0&&(a===void 0||a.length===0)&&r.push(`${e}.data must not be empty`),a!==void 0){a.length===0&&r.push(`${e}.series must not be empty`),n==="donut"&&r.push(`${e}.series is only supported for bars and line`);for(let i=0;i<a.length;i++){let s=ue(a[i]);s!==void 0&&Array.isArray(s.data)&&s.data.length===0&&r.push(`${e}.series[${i}].data must not be empty`)}}n==="donut"&&t.data===void 0&&r.push(`${e}.data is required for donut`),n==="line"&&t.data===void 0&&(a===void 0||a.length===0)&&r.push(`${e}.data is required for line (or provide series)`),Ec(t.data,`${e}.data`,r),B1(t.series,`${e}.series`,r)}function O1(t,e,r){if(Array.isArray(t))for(let n=0;n<t.length;n++){let a=t[n];if(ue(a)===void 0){if(!Array.isArray(a)){r.push(`${e}[${n}] must be an array or object`);continue}for(let i=0;i<a.length;i++){let s=a[i];typeof s!="string"&&(typeof s!="number"||!Number.isFinite(s))&&r.push(`${e}[${n}][${i}] must be a string or finite number`)}}}}function Dc(t,e,r,n,a){if(e>A.maxDepth){n.push(`${r}: exceeds max depth ${A.maxDepth}`);return}let i=ue(t);if(i===void 0){n.push(`${r}: must be an object`);return}let s=i.type;if(typeof s!="string"){n.push(`${r}: missing string 'type'`);return}let o=u=>{i[u]!==void 0&&typeof i[u]!="string"&&n.push(`${r}: '${u}' must be a string`)},l=u=>{i[u]!==void 0&&(typeof i[u]!="number"||!Number.isFinite(i[u]))&&n.push(`${r}: '${u}' must be a finite number`)};switch(s){case"text":typeof i.content!="string"&&typeof i.text!="string"&&n.push(`${r}: type 'text' requires content or text (string)`),o("content"),o("text");break;case"row":case"col":case"card":case"grid":Array.isArray(i.items)||n.push(`${r}: type '${s}' requires items (array)`),a(i.items,e+1,`${r}.items`),s==="grid"&&l("cols");break;case"button":case"checkbox":case"link":case"switch":typeof i.label!="string"&&n.push(`${r}: type '${s}' requires label (string)`),o("label");break;case"image":case"audio":case"video":typeof i.src!="string"&&n.push(`${r}: type '${s}' requires src (string)`),o("src"),o("alt"),s==="video"&&o("poster");break;case"slider":o("label"),l("min"),l("max"),l("step"),l("value");break;case"input":case"textarea":o("label"),o("placeholder"),o("value");break;case"select":case"radio":Array.isArray(i.options)||n.push(`${r}: type '${s}' requires options (array)`);break;case"submit":typeof i.label!="string"&&n.push(`${r}: type 'submit' requires label (string)`);break;case"badge":typeof i.label!="string"&&typeof i.text!="string"&&typeof i.value!="string"&&n.push(`${r}: type 'badge' requires label, text, or value (string)`),o("label"),o("text"),o("value");break;case"hero":typeof i.title!="string"&&n.push(`${r}: type 'hero' requires title (string)`),o("subtitle");break;case"stat":typeof i.label!="string"&&n.push(`${r}: type 'stat' requires label (string)`),typeof i.value!="string"&&n.push(`${r}: type 'stat' requires value (string)`),o("delta");break;case"progress":(typeof i.value!="number"||!Number.isFinite(i.value)||i.value<0||i.value>100)&&n.push(`${r}: type 'progress' requires value (number 0..100)`),l("value");break;case"avatar":typeof i.name!="string"&&n.push(`${r}: type 'avatar' requires name (string)`);break;case"list":if(Array.isArray(i.items)||n.push(`${r}: type 'list' requires items (array)`),Array.isArray(i.items))for(let u=0;u<i.items.length;u++){let p=ue(i.items[u]);p!==void 0&&typeof p.type=="string"&&Dc(p,e+1,`${r}.items[${u}]`,n,a)}break;case"table":if(!Array.isArray(i.columns)&&!Nc(i)&&n.push(`${r}: type 'table' requires columns (array)`),Array.isArray(i.rows)||n.push(`${r}: type 'table' requires rows (array)`),i.types!==void 0&&!Array.isArray(i.types)&&n.push(`${r}.types must be an array of column cell types`),i.details!==void 0&&!Array.isArray(i.details)&&n.push(`${r}.details must be an array aligned with rows`),Array.isArray(i.details)){let u={columns:i.columns,rows:i.rows,types:i.types},p=Kt(u).length;i.details.length>p&&n.push(`${r}.details must not contain more entries than rows`);for(let b=0;b<Math.min(i.details.length,p);b++){let y=i.details[b];if(!(y===null||!Nt(u,b))){if(!Array.isArray(y)){n.push(`${r}.details[${b}] must be an array or null`);continue}a(y,e+1,`${r}.details[${b}]`)}}}O1(i.rows,`${r}.rows`,n);break;case"chart":q1(i,r,n);break;case"tabs":{if(Array.isArray(i.tabs)||n.push(`${r}: type 'tabs' requires tabs (array)`),Array.isArray(i.tabs))for(let u=0;u<i.tabs.length;u++){let p=ue(i.tabs[u]);if(p===void 0){n.push(`${r}.tabs[${u}] must be an object`);continue}typeof p.label!="string"&&n.push(`${r}.tabs[${u}].label must be a string`),a(p.items,e+1,`${r}.tabs[${u}].items`)}break}case"plot":Array.isArray(i.series)||n.push(`${r}: type 'plot' requires series (array)`);break;case"callout":typeof i.content!="string"&&n.push(`${r}: type 'callout' requires content (string)`);break;case"steps":Array.isArray(i.steps)||n.push(`${r}: type 'steps' requires steps (array)`);break;case"keyvalue":Array.isArray(i.pairs)||n.push(`${r}: type 'keyvalue' requires pairs (array)`);break;case"diff":Array.isArray(i.diffs)||n.push(`${r}: type 'diff' requires diffs (array)`);break;case"json":"value"in i||n.push(`${r}: type 'json' requires value`);break;case"code":typeof i.code!="string"&&n.push(`${r}: type 'code' requires code (string)`);break;case"accordion":if(Array.isArray(i.items)||n.push(`${r}: type 'accordion' requires items (array)`),Array.isArray(i.items))for(let u=0;u<i.items.length;u++){let p=ue(i.items[u]);if(p===void 0){n.push(`${r}.items[${u}] must be an object`);continue}typeof p.title!="string"&&n.push(`${r}.items[${u}].title must be a string`),a(p.items,e+1,`${r}.items[${u}].items`)}break;case"copy":typeof i.text!="string"&&n.push(`${r}: type 'copy' requires text (string)`);break;case"svg":typeof i.code!="string"&&n.push(`${r}: type 'svg' requires code (string)`),l("height");break;case"mermaid":typeof i.code!="string"&&n.push(`${r}: type 'mermaid' requires code (string)`);break;case"scene3d":Array.isArray(i.meshes)||n.push(`${r}: type 'scene3d' requires meshes (array)`);break;case"timeline":Array.isArray(i.items)||n.push(`${r}: type 'timeline' requires items (array)`);break;case"file-tree":Array.isArray(i.items)||n.push(`${r}: type 'file-tree' requires items (array)`);break;case"breadcrumb":Array.isArray(i.items)||n.push(`${r}: type 'breadcrumb' requires items (array)`);break;case"quiz":typeof i.question!="string"&&n.push(`${r}: type 'quiz' requires question (string)`),Array.isArray(i.options)||n.push(`${r}: type 'quiz' requires options (array)`);break;case"diagram":typeof i.kind!="string"&&n.push(`${r}: type 'diagram' requires kind (string)`),Array.isArray(i.nodes)||n.push(`${r}: type 'diagram' requires nodes (array)`),i.edges!==void 0&&!Array.isArray(i.edges)&&n.push(`${r}: type 'diagram' requires edges (array) when present`);break;case"echart":i.option===void 0&&i.data===void 0&&i.series===void 0&&(!Array.isArray(i.links)||i.links.length===0)&&n.push(`${r}: type 'echart' requires option, data, series, or links`),l("height");break;default:n.push(`${r}: unknown type '${s}' (custom renderer?)`)}let m=Ft[s];m!==void 0&&p1(i,r,m,n)}Dr();var Sa="dsh-genui";var Ke=class extends Error{constructor(r,n){super(n);this.code=r;this.name="GenuiExportError"}};function F1(t,e){if(t===void 0)return;let r=Object.fromEntries(Object.entries(t.fields??{}).filter(([n])=>!e.has(n)));return{...t.answers===void 0?{}:{answers:{...t.answers}},...t.multiAnswers===void 0?{}:{multiAnswers:Object.fromEntries(Object.entries(t.multiAnswers).map(([n,a])=>[n,[...a]]))},...t.locked===void 0?{}:{locked:t.locked},...Object.keys(r).length===0?{}:{fields:r}}}function pn(t,e){return t.map(r=>{let n=JSON.parse(JSON.stringify(r));return n.type==="input"&&n.inputType==="password"&&(typeof n.id=="string"&&e.add(n.id),delete n.value),Array.isArray(n.items)&&(n.type==="list"?n.items=n.items.map(a=>typeof a=="object"&&a!==null&&"type"in a?pn([a],e)[0]:a):n.items=pn(n.items,e)),Array.isArray(n.tabs)&&(n.tabs=n.tabs.map(a=>({...a,items:pn(a.items,e)}))),n.type==="table"&&Array.isArray(n.details)&&(n.details=n.details.map(a=>a===null?null:pn(a,e))),n})}function fn(t,e,r={}){let n=qr(t);if(n.spec===null)throw new Ke("artifact-invalid","invalid GenUI spec");let{panel:a,append:i,...s}=n.spec,o=new Set,l={...s,items:pn(s.items,o)},m=r.theme??(typeof document<"u"&&document.body.hasAttribute("data-ds-dark-theme")?"dark":"light"),u=F1(e,o);return{format:Sa,version:1,spec:l,...u===void 0?{}:{state:u},presentation:{locale:r.locale??l0(),theme:m}}}Dr();function Or(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function P1(t){return!Or(t)||t.answers!==void 0&&(!Or(t.answers)||!Object.values(t.answers).every(e=>typeof e=="string"))||t.multiAnswers!==void 0&&(!Or(t.multiAnswers)||!Object.values(t.multiAnswers).every(e=>Array.isArray(e)&&e.every(r=>typeof r=="string")))||t.locked!==void 0&&typeof t.locked!="boolean"?!1:t.fields===void 0||Or(t.fields)&&Object.values(t.fields).every(e=>typeof e=="string")}function hn(t){if(!Or(t)||t.format!==Sa||t.version!==1||!Or(t.presentation)||t.presentation.locale!=="en"&&t.presentation.locale!=="zh"||t.presentation.theme!=="light"&&t.presentation.theme!=="dark"||t.state!==void 0&&!P1(t.state))return null;let e=qr(t.spec);return e.spec===null||e.errors.length>0?null:fn(e.spec,t.state,{locale:t.presentation.locale,theme:t.presentation.theme})}var H1=["mermaid","three","echarts-core","echarts-full"];function Fr(t,e,r){for(let n of t){if(typeof n!="object"||n===null||!("type"in n)||typeof n.type!="string")continue;let a=n;if(xr.has(a.type)||e.customTypes.push(a.type),a.type==="mermaid"&&r.add("mermaid"),a.type==="scene3d"&&r.add("three"),a.type==="echart"&&r.add(ma(a)),(typeof a.action=="string"||a.type==="submit"&&(typeof a.action=="string"||typeof a.resetAction=="string"))&&(e.hasModelActions=!0),a.type==="image"||a.type==="audio"||a.type==="video"){let i=or(a.src);if(i!==void 0&&e.externalMedia.push(i),a.type==="video"){let s=or(a.poster);s!==void 0&&e.externalMedia.push(s)}}if(Array.isArray(a.items))if(a.type==="list")Fr(a.items.filter(i=>typeof i=="object"&&i!==null&&"type"in i),e,r);else if(a.type==="accordion")for(let i of a.items)typeof i=="object"&&i!==null&&"items"in i&&Array.isArray(i.items)&&Fr(i.items,e,r);else Fr(a.items,e,r);if(Array.isArray(a.tabs))for(let i of a.tabs)typeof i=="object"&&i!==null&&"items"in i&&Array.isArray(i.items)&&Fr(i.items,e,r);if(a.type==="table"&&Array.isArray(a.details))for(let i of a.details)Array.isArray(i)&&Fr(i,e,r)}}function Pr(t){let e={requiredAssets:[],customTypes:[],externalMedia:[],hasModelActions:!1},r=new Set;return Fr(t.items,e,r),e.requiredAssets=H1.filter(n=>r.has(n)),e.customTypes=[...new Set(e.customTypes)],e.externalMedia=[...new Set(e.externalMedia)],e}var Ic=`
|
|
287
287
|
:root {
|
|
288
288
|
color-scheme: light;
|
|
289
289
|
--dsw-static-neutral-bluish-00: rgb(255, 255, 255);
|
|
@@ -375,7 +375,7 @@ body[data-ds-dark-theme] {
|
|
|
375
375
|
html { min-height: 100%; }
|
|
376
376
|
body { margin: 0; min-height: 100vh; background: var(--dsw-alias-bg-base); color: var(--dsw-alias-label-primary); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
|
377
377
|
#genui-root { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
|
|
378
|
-
`;var hs=new Map;function
|
|
378
|
+
`;var hs=new Map;function Bc(t){let e="";for(let n=0;n<t.length;n+=32768)e+=String.fromCharCode(...t.subarray(n,Math.min(n+32768,t.length)));return btoa(e)}function j1(t){return t.replace(/[&<>"']/g,e=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[e])}function U1(t,e){let r=hs.get(t);if(r!==void 0)return r;let n=fetch(Oi(t)).then(async a=>{if(!a.ok)throw new Ke(e==="runtime"?"runtime-fetch-failed":"asset-fetch-failed",`${t}: HTTP ${a.status}`);return new Uint8Array(await a.arrayBuffer())}).catch(a=>{throw hs.delete(t),a instanceof Ke?a:new Ke(e==="runtime"?"runtime-fetch-failed":"asset-fetch-failed",`${t}: ${a instanceof Error?a.message:"fetch failed"}`)});return hs.set(t,n),n}function Lc(t,e){return`<script type="application/octet-stream" data-genui-bundle="${t}">${Bc(e)}<\/script>`}function V1(t,e){let r=structuredClone(t);function n(a){if(Array.isArray(a)){for(let s of a)n(s);return}if(typeof a!="object"||a===null)return;let i=a;if(i.type==="image"||i.type==="audio"||i.type==="video")for(let s of i.type==="video"?["src","poster"]:["src"]){let o=i[s];if(typeof o!="string"||/^https?:\/\//i.test(o))continue;let l=new URL(o,e);if(l.protocol!=="http:"&&l.protocol!=="https:")throw new Ke("artifact-invalid",`media URL cannot be exported: ${o}`);i[s]=l.href}for(let s of Object.values(i))n(s)}return n(r.items),r}function W1(){return`
|
|
379
379
|
async function loadBundle(element) {
|
|
380
380
|
const binary = atob(element.textContent.trim());
|
|
381
381
|
const bytes = new Uint8Array(binary.length);
|
|
@@ -404,7 +404,7 @@ start().catch(error => {
|
|
|
404
404
|
root.textContent = error instanceof Error ? error.message : 'GenUI could not start';
|
|
405
405
|
root.setAttribute('role', 'alert');
|
|
406
406
|
});
|
|
407
|
-
`}function Y1(t,e,r=document.baseURI){let n={...t,spec:V1(t.spec,r)},a=
|
|
407
|
+
`}function Y1(t,e,r=document.baseURI){let n={...t,spec:V1(t.spec,r)},a=Bc(new TextEncoder().encode(JSON.stringify(n))),i=K1(t).map(l=>{let m=e.get(`${l}.js`);if(m===void 0)throw new Ke("asset-fetch-failed",`${l}.js: bundle unavailable`);return Lc(l,m)}).join(`
|
|
408
408
|
`),s=e.get("standalone-runtime.js");if(s===void 0)throw new Ke("runtime-fetch-failed","standalone-runtime.js: bundle unavailable");return`<!doctype html>
|
|
409
409
|
<html lang="${t.presentation.locale==="zh"?"zh-CN":"en"}">
|
|
410
410
|
<head>
|
|
@@ -412,15 +412,15 @@ start().catch(error => {
|
|
|
412
412
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
413
413
|
<title>${j1(t.spec.title??"GenUI")}</title>
|
|
414
414
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline' blob:; style-src 'unsafe-inline'; font-src data:; img-src 'self' data: blob: https: http:; media-src 'self' data: blob: https: http:; connect-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'">
|
|
415
|
-
<style>${
|
|
415
|
+
<style>${Ic}</style>
|
|
416
416
|
</head>
|
|
417
417
|
<body${t.presentation.theme==="dark"?" data-ds-dark-theme":""}>
|
|
418
418
|
<main id="genui-root"></main>
|
|
419
419
|
<script type="application/octet-stream" id="genui-artifact">${a}<\/script>
|
|
420
420
|
${i}
|
|
421
|
-
${
|
|
421
|
+
${Lc("runtime",s)}
|
|
422
422
|
<script>${W1()}<\/script>
|
|
423
423
|
</body>
|
|
424
|
-
</html>`}function K1(t){return Pr(t.spec).requiredAssets}async function gn(t){let e=hn(t);if(e===null)throw new Ke("artifact-invalid","invalid GenUI artifact");let r=Pr(e.spec);if(r.customTypes.length>0)throw new Ke("unsupported-custom-component",`custom components: ${r.customTypes.join(", ")}`);let n=[...r.requiredAssets.map(i=>`${i}.js`),"standalone-runtime.js"],a=await Promise.all(n.map(async i=>[i,await U1(i,i==="standalone-runtime.js"?"runtime":i.slice(0,-3))]));return Y1(e,new Map(a))}function bn(t){return JSON.stringify(t,null,2)}function
|
|
424
|
+
</html>`}function K1(t){return Pr(t.spec).requiredAssets}async function gn(t){let e=hn(t);if(e===null)throw new Ke("artifact-invalid","invalid GenUI artifact");let r=Pr(e.spec);if(r.customTypes.length>0)throw new Ke("unsupported-custom-component",`custom components: ${r.customTypes.join(", ")}`);let n=[...r.requiredAssets.map(i=>`${i}.js`),"standalone-runtime.js"],a=await Promise.all(n.map(async i=>[i,await U1(i,i==="standalone-runtime.js"?"runtime":i.slice(0,-3))]));return Y1(e,new Map(a))}function bn(t){return JSON.stringify(t,null,2)}function qc(t,e){return`${(t??"").replace(/[\\/:*?"<>|\u0000-\u001f\u007f]/g,"").trim().replace(/\s+/g," ").slice(0,120).replace(/[. ]+$/g,"")||"genui"}${e}`}function Oc(t,e){let r=URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e,n.style.display="none",document.body.appendChild(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(r),0)}function gs(t){try{Oc(new Blob([bn(t)],{type:"application/json;charset=utf-8"}),qc(t.spec.title,".genui.json"))}catch(e){throw new Ke("download-failed",e instanceof Error?e.message:"artifact download failed")}}async function bs(t){try{let e=await gn(t);Oc(new Blob([e],{type:"text/html;charset=utf-8"}),qc(t.spec.title,".html"))}catch(e){throw e instanceof Ke?e:new Ke("download-failed",e instanceof Error?e.message:"artifact download failed")}}
|
|
425
425
|
|
|
426
426
|
return module.exports;};
|