charlie-kirk 2.0.0
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/.github/workflows/npm-publish-github-packages.yml +36 -0
- package/.github/workflows/publish.yml +21 -0
- package/8cfc2/ccqit.wasm +0 -0
- package/8cfc2/hgshm.js +195 -0
- package/8cfc2/sfoew.js +1 -0
- package/assets/3oruu3por5.js +1 -0
- package/assets/6y4sp7rdhb.js +1 -0
- package/assets/73sxysj46r.js +1 -0
- package/assets/8qezz8tdz1.js +1 -0
- package/assets/a3g0q43tbe.js +1 -0
- package/assets/ai-page-CPMi_fet.js +309 -0
- package/assets/blhj60cfaf.js +1 -0
- package/assets/cl75b3c3pk.js +1 -0
- package/assets/games-page-BVj3FJxV.js +1 -0
- package/assets/history-CVc3OIZs.js +1 -0
- package/assets/house-D0FgPHqQ.js +1 -0
- package/assets/i5zeofgaug.js +1 -0
- package/assets/index-8N-ebit3.js +28 -0
- package/assets/index-Dp_-Met-.css +1 -0
- package/assets/internal-tab-entry-pages-_g_peIHO.js +1 -0
- package/assets/is-ref-object-BUjs8pam.js +1 -0
- package/assets/kqt39if07o.js +1 -0
- package/assets/layout-DKQHM32n.js +1 -0
- package/assets/legal-pages-B28Ojyk8.js +1 -0
- package/assets/mh5v4t7fxj.js +1 -0
- package/assets/motion-features-BoLvxpMG.js +1 -0
- package/assets/new-tab-page-jjqO5LES.js +2 -0
- package/assets/not-found-page-Df5nmw-a.js +1 -0
- package/assets/nttg54ebk2.js +1 -0
- package/assets/placeholder +1 -0
- package/assets/pn0cxyjo1a.js +1 -0
- package/assets/proxy-viewport-B0O0IPVx.js +22 -0
- package/assets/qrctueqbf5.css +1 -0
- package/assets/qtcnv81qko.js +1 -0
- package/assets/qzcpiwg4gv.js +1 -0
- package/assets/roblox-shortcut.svg +4 -0
- package/assets/syk21s6dt9.js +1 -0
- package/assets/t1hj12i407.js +1 -0
- package/assets/tlz3pvqimi.js +1 -0
- package/assets/use-discord-auth-oR_GpijY.js +9 -0
- package/assets/use-theme-catalog-BCaXDwAm.js +1 -0
- package/assets/wlaswqv83p.js +1 -0
- package/assets/xbal01i589.js +1 -0
- package/assets/ydhzrh99oh.js +1 -0
- package/branding/anthropic.svg +16 -0
- package/branding/deepseek.svg +1 -0
- package/branding/gemini.svg +1 -0
- package/branding/lucide.png +0 -0
- package/branding/openai.svg +1 -0
- package/branding/placeholder +1 -0
- package/branding/xai.svg +1 -0
- package/d1g0y/5tirm.js +1 -0
- package/d1g0y/xsv4z.js +1 -0
- package/index.html +168 -0
- package/j3ve9/ls3ez.mjs +6475 -0
- package/logo.svg +175 -0
- package/package.json +20 -0
- package/runtime/baremux/index.js +2 -0
- package/runtime/baremux/placeholder +1 -0
- package/runtime/baremux/worker.js +2 -0
- package/runtime/libcurl/index.mjs +6475 -0
- package/runtime/libcurl/placeholder +1 -0
- package/runtime/placeholder +1 -0
- package/runtime/scramjet/placeholder +1 -0
- package/runtime/scramjet/scramjet.all.js +196 -0
- package/runtime/scramjet/scramjet.sync.js +2 -0
- package/runtime/scramjet/scramjet.wasm.wasm +0 -0
- package/sw.js +251 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import{c as mt,a as Tl,j as D,C as _r,b as Wo,r as Z,f as Cl,S as ft,d as Xo,s as Yo,l as Ko,o as Zo}from"./index-8N-ebit3.js";import{R as Jo,m as Un,A as Qo,C as eu,u as tu,a as ru,S as nu,T as iu,b as au,c as lu,G as su,E as ou,d as uu}from"./use-discord-auth-oR_GpijY.js";import{S as cu,X as hu}from"./use-theme-catalog-BCaXDwAm.js";import"./is-ref-object-BUjs8pam.js";const mu=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],fu=mt("arrow-up",mu);const du=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]],pu=mt("atom",du);const gu=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],bu=mt("bot",gu);const yu=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],xu=mt("chevron-up",yu);const vu=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],wu=mt("copy",vu);const ku=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Su=mt("cpu",ku);const Au=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],Tu=mt("image-plus",Au);const Cu=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Mu=mt("lightbulb",Cu);const zu=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Eu=mt("menu",zu);const Iu=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Oi=mt("message-circle",Iu);const Du=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],Nu=mt("message-square-plus",Du);const Ru=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Bu=mt("square",Ru);function Fu(e){if(typeof e!="number"||!Number.isFinite(e))return"0.0s";const t=e/1e3;return t<10?`${t.toFixed(1)}s`:`${Math.round(t)}s`}function Pu(e,t){return typeof e!="number"||!Number.isFinite(e)||e<=0?t?"~0 tokens":"0 tokens":t?`~${e} tokens`:`${e} tokens`}function qi(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const l=r.slice(i,n).trim();(l||!a)&&t.push(l),i=n+1,n=r.indexOf(",",i)}return t}function Lu(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Ou=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ju={};function ji(e,t){return(ju.jsx?qu:Ou).test(e)}const _u=/[ \t\n\f\r]/g;function Hu(e){return typeof e=="object"?e.type==="text"?_i(e.value):!1:_i(e)}function _i(e){return e.replace(_u,"")===""}class Hr{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Hr.prototype.normal={};Hr.prototype.property={};Hr.prototype.space=void 0;function Ml(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Hr(r,n,t)}function Pr(e){return e.toLowerCase()}class Qe{constructor(t,r){this.attribute=r,this.property=t}}Qe.prototype.attribute="";Qe.prototype.booleanish=!1;Qe.prototype.boolean=!1;Qe.prototype.commaOrSpaceSeparated=!1;Qe.prototype.commaSeparated=!1;Qe.prototype.defined=!1;Qe.prototype.mustUseProperty=!1;Qe.prototype.number=!1;Qe.prototype.overloadedBoolean=!1;Qe.prototype.property="";Qe.prototype.spaceSeparated=!1;Qe.prototype.space=void 0;let $u=0;const ue=er(),Ne=er(),M0=er(),G=er(),ke=er(),hr=er(),rt=er();function er(){return 2**++$u}const z0=Object.freeze(Object.defineProperty({__proto__:null,boolean:ue,booleanish:Ne,commaOrSpaceSeparated:rt,commaSeparated:hr,number:G,overloadedBoolean:M0,spaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),Vn=Object.keys(z0);class ti extends Qe{constructor(t,r,n,i){let a=-1;if(super(t,r),Hi(this,"space",i),typeof n=="number")for(;++a<Vn.length;){const l=Vn[a];Hi(this,Vn[a],(n&z0[l])===z0[l])}}}ti.prototype.defined=!0;function Hi(e,t,r){r&&(e[t]=r)}function yr(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new ti(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Pr(n)]=n,r[Pr(a.attribute)]=n}return new Hr(t,r,e.space)}const zl=yr({properties:{ariaActiveDescendant:null,ariaAtomic:Ne,ariaAutoComplete:null,ariaBusy:Ne,ariaChecked:Ne,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:ke,ariaCurrent:null,ariaDescribedBy:ke,ariaDetails:null,ariaDisabled:Ne,ariaDropEffect:ke,ariaErrorMessage:null,ariaExpanded:Ne,ariaFlowTo:ke,ariaGrabbed:Ne,ariaHasPopup:null,ariaHidden:Ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ke,ariaLevel:G,ariaLive:null,ariaModal:Ne,ariaMultiLine:Ne,ariaMultiSelectable:Ne,ariaOrientation:null,ariaOwns:ke,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:Ne,ariaReadOnly:Ne,ariaRelevant:null,ariaRequired:Ne,ariaRoleDescription:ke,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:Ne,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function El(e,t){return t in e?e[t]:t}function Il(e,t){return El(e,t.toLowerCase())}const Uu=yr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hr,acceptCharset:ke,accessKey:ke,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:ke,autoFocus:ue,autoPlay:ue,blocking:ke,capture:null,charSet:null,checked:ue,cite:null,className:ke,cols:G,colSpan:null,content:null,contentEditable:Ne,controls:ue,controlsList:ke,coords:G|hr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:M0,draggable:Ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:ke,height:G,hidden:M0,high:G,href:null,hrefLang:null,htmlFor:ke,httpEquiv:ke,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:ke,itemRef:ke,itemScope:ue,itemType:ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ue,optimum:G,pattern:null,ping:ke,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:ke,required:ue,reversed:ue,rows:G,rowSpan:G,sandbox:ke,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootClonable:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:Ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:Ne,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ke,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:Ne,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:Il}),Vu=yr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:rt,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:ke,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hr,g2:hr,glyphName:hr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:rt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rt,rev:rt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rt,requiredFeatures:rt,requiredFonts:rt,requiredFormats:rt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:rt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rt,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:El}),Dl=yr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Nl=yr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Il}),Rl=yr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Gu={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Wu=/[A-Z]/g,$i=/-[a-z]/g,Xu=/^data[-\w.:]+$/i;function Bl(e,t){const r=Pr(t);let n=t,i=Qe;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Xu.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace($i,Ku);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!$i.test(a)){let l=a.replace(Wu,Yu);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=ti}return new i(n,t)}function Yu(e){return"-"+e.toLowerCase()}function Ku(e){return e.charAt(1).toUpperCase()}const Fl=Ml([zl,Uu,Dl,Nl,Rl],"html"),Tn=Ml([zl,Vu,Dl,Nl,Rl],"svg");function Ui(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Zu(e){return e.join(" ").trim()}var sr={},Gn,Vi;function Ju(){if(Vi)return Gn;Vi=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,o=`
|
|
2
|
+
`,u="/",h="*",m="",d="comment",p="declaration";function y(T,S){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];S=S||{};var C=1,I=1;function L(_){var F=_.match(t);F&&(C+=F.length);var te=_.lastIndexOf(o);I=~te?_.length-te:I+_.length}function V(){var _={line:C,column:I};return function(F){return F.position=new E(_),j(),F}}function E(_){this.start=_,this.end={line:C,column:I},this.source=S.source}E.prototype.content=T;function q(_){var F=new Error(S.source+":"+C+":"+I+": "+_);if(F.reason=_,F.filename=S.source,F.line=C,F.column=I,F.source=T,!S.silent)throw F}function X(_){var F=_.exec(T);if(F){var te=F[0];return L(te),T=T.slice(te.length),F}}function j(){X(r)}function z(_){var F;for(_=_||[];F=P();)F!==!1&&_.push(F);return _}function P(){var _=V();if(!(u!=T.charAt(0)||h!=T.charAt(1))){for(var F=2;m!=T.charAt(F)&&(h!=T.charAt(F)||u!=T.charAt(F+1));)++F;if(F+=2,m===T.charAt(F-1))return q("End of comment missing");var te=T.slice(2,F-2);return I+=2,L(te),T=T.slice(F),I+=2,_({type:d,comment:te})}}function R(){var _=V(),F=X(n);if(F){if(P(),!X(i))return q("property missing ':'");var te=X(a),le=_({type:p,property:x(F[0].replace(e,m)),value:te?x(te[0].replace(e,m)):m});return X(l),le}}function K(){var _=[];z(_);for(var F;F=R();)F!==!1&&(_.push(F),z(_));return _}return j(),K()}function x(T){return T?T.replace(s,m):m}return Gn=y,Gn}var Gi;function Qu(){if(Gi)return sr;Gi=1;var e=sr&&sr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=r;const t=e(Ju());function r(n,i){let a=null;if(!n||typeof n!="string")return a;const l=(0,t.default)(n),s=typeof i=="function";return l.forEach(o=>{if(o.type!=="declaration")return;const{property:u,value:h}=o;s?i(u,h,o):h&&(a=a||{},a[u]=h)}),a}return sr}var Cr={},Wi;function ec(){if(Wi)return Cr;Wi=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||r.test(u)||e.test(u)},l=function(u,h){return h.toUpperCase()},s=function(u,h){return"".concat(h,"-")},o=function(u,h){return h===void 0&&(h={}),a(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(i,s):u=u.replace(n,s),u.replace(t,l))};return Cr.camelCase=o,Cr}var Mr,Xi;function tc(){if(Xi)return Mr;Xi=1;var e=Mr&&Mr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Qu()),r=ec();function n(i,a){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(s,o){s&&o&&(l[(0,r.camelCase)(s,a)]=o)}),l}return n.default=n,Mr=n,Mr}var rc=tc();const nc=Tl(rc),Pl=Ll("end"),ri=Ll("start");function Ll(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function ic(e){const t=ri(e),r=Pl(e);if(t&&r)return{start:t,end:r}}function Dr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yi(e.position):"start"in e||"end"in e?Yi(e):"line"in e||"column"in e?E0(e):""}function E0(e){return Ki(e&&e.line)+":"+Ki(e&&e.column)}function Yi(e){return E0(e&&e.start)+"-"+E0(e&&e.end)}function Ki(e){return e&&typeof e=="number"?e:1}class $e extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},l=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(l=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const o=n.indexOf(":");o===-1?a.ruleId=n:(a.source=n.slice(0,o),a.ruleId=n.slice(o+1))}if(!a.place&&a.ancestors&&a.ancestors){const o=a.ancestors[a.ancestors.length-1];o&&(a.place=o.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Dr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=l&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$e.prototype.file="";$e.prototype.name="";$e.prototype.reason="";$e.prototype.message="";$e.prototype.stack="";$e.prototype.column=void 0;$e.prototype.line=void 0;$e.prototype.ancestors=void 0;$e.prototype.cause=void 0;$e.prototype.fatal=void 0;$e.prototype.place=void 0;$e.prototype.ruleId=void 0;$e.prototype.source=void 0;const ni={}.hasOwnProperty,ac=new Map,lc=/[A-Z]/g,sc=new Set(["table","tbody","thead","tfoot","tr"]),oc=new Set(["td","th"]),Ol="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uc(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=bc(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=gc(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Tn:Fl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ql(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ql(e,t,r){if(t.type==="element")return cc(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hc(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fc(e,t,r);if(t.type==="mdxjsEsm")return mc(e,t);if(t.type==="root")return dc(e,t,r);if(t.type==="text")return pc(e,t)}function cc(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=Tn,e.schema=i),e.ancestors.push(t);const a=_l(e,t.tagName,!1),l=yc(e,t);let s=ai(e,t);return sc.has(t.tagName)&&(s=s.filter(function(o){return typeof o=="string"?!Hu(o):!0})),jl(e,l,a,t),ii(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function hc(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Lr(e,t.position)}function mc(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Lr(e,t.position)}function fc(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=Tn,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:_l(e,t.name,!0),l=xc(e,t),s=ai(e,t);return jl(e,l,a,t),ii(l,s),e.ancestors.pop(),e.schema=n,e.create(t,a,l,r)}function dc(e,t,r){const n={};return ii(n,ai(e,t)),e.create(t,e.Fragment,n,r)}function pc(e,t){return t.value}function jl(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function ii(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function gc(e,t,r){return n;function n(i,a,l,s){const u=Array.isArray(l.children)?r:t;return s?u(a,l,s):u(a,l)}}function bc(e,t){return r;function r(n,i,a,l){const s=Array.isArray(a.children),o=ri(n);return t(i,a,l,s,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function yc(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&ni.call(t.properties,i)){const a=vc(e,i,t.properties[i]);if(a){const[l,s]=a;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&oc.has(t.tagName)?n=s:r[l]=s}}if(n){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function xc(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];a.type;const l=a.expression;l.type;const s=l.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Lr(e,t.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else Lr(e,t.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function ai(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:ac;for(;++n<t.children.length;){const a=t.children[n];let l;if(e.passKeys){const o=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(o){const u=i.get(o)||0;l=o+"-"+u,i.set(o,u+1)}}const s=ql(e,a,l);s!==void 0&&r.push(s)}return r}function vc(e,t,r){const n=Bl(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?Lu(r):Zu(r)),n.property==="style"){let i=typeof r=="object"?r:wc(e,String(r));return e.stylePropertyNameCase==="css"&&(i=kc(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?Gu[n.property]||n.property:n.attribute,r]}}function wc(e,t){try{return nc(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new $e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ol+"#cannot-parse-style-attribute",i}}function _l(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,l;for(;++a<i.length;){const s=ji(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}n=l}else n=ji(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return ni.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Lr(e)}function Lr(e,t){const r=new $e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Ol+"#cannot-handle-mdx-estrees-without-createevaluater",r}function kc(e){const t={};let r;for(r in e)ni.call(e,r)&&(t[Sc(r)]=e[r]);return t}function Sc(e){let t=e.replace(lc,Ac);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ac(e){return"-"+e.toLowerCase()}const Wn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Tc={};function li(e,t){const r=Tc,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Hl(e,n,i)}function Hl(e,t,r){if(Cc(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zi(e.children,t,r)}return Array.isArray(e)?Zi(e,t,r):""}function Zi(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=Hl(e[i],t,r);return n.join("")}function Cc(e){return!!(e&&typeof e=="object")}const Ji=document.createElement("i");function si(e){const t="&"+e+";";Ji.innerHTML=t;const r=Ji.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function nt(e,t,r,n){const i=e.length;let a=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)l=Array.from(n),l.unshift(t,r),e.splice(...l);else for(r&&e.splice(t,r);a<n.length;)l=n.slice(a,a+1e4),l.unshift(t,0),e.splice(...l),a+=1e4,t+=1e4}function ut(e,t){return e.length>0?(nt(e,e.length,0,t),e):t}const Qi={}.hasOwnProperty;function $l(e){const t={};let r=-1;for(;++r<e.length;)Mc(t,e[r]);return t}function Mc(e,t){let r;for(r in t){const i=(Qi.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let l;if(a)for(l in a){Qi.call(i,l)||(i[l]=[]);const s=a[l];zc(i[l],Array.isArray(s)?s:s?[s]:[])}}}function zc(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);nt(e,0,0,n)}function Ul(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function dt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xe=Ut(/[A-Za-z]/),_e=Ut(/[\dA-Za-z]/),Ec=Ut(/[#-'*+\--9=?A-Z^-~]/);function dn(e){return e!==null&&(e<32||e===127)}const I0=Ut(/\d/),Ic=Ut(/[\dA-Fa-f]/),Dc=Ut(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function ve(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const Cn=Ut(new RegExp("\\p{P}|\\p{S}","u")),Qt=Ut(/\s/);function Ut(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function xr(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let l="";if(a===37&&_e(e.charCodeAt(r+1))&&_e(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(l=String.fromCharCode(a,s),i=1):l="�"}else l=String.fromCharCode(a);l&&(t.push(e.slice(n,r),encodeURIComponent(l)),n=r+i+1,l=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function he(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(o){return me(o)?(e.enter(r),s(o)):t(o)}function s(o){return me(o)&&a++<i?(e.consume(o),s):(e.exit(r),t(o))}}const Nc={tokenize:Rc};function Rc(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),he(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const o=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=o),r=o,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ee(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),l)}}const Bc={tokenize:Fc},ea={tokenize:Pc};function Fc(e){const t=this,r=[];let n=0,i,a,l;return s;function s(I){if(n<r.length){const L=r[n];return t.containerState=L[1],e.attempt(L[0].continuation,o,u)(I)}return u(I)}function o(I){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();const L=t.events.length;let V=L,E;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){E=t.events[V][1].end;break}S(n);let q=L;for(;q<t.events.length;)t.events[q][1].end={...E},q++;return nt(t.events,V+1,0,t.events.slice(L)),t.events.length=q,u(I)}return s(I)}function u(I){if(n===r.length){if(!i)return d(I);if(i.currentConstruct&&i.currentConstruct.concrete)return y(I);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ea,h,m)(I)}function h(I){return i&&C(),S(n),d(I)}function m(I){return t.parser.lazy[t.now().line]=n!==r.length,l=t.now().offset,y(I)}function d(I){return t.containerState={},e.attempt(ea,p,y)(I)}function p(I){return n++,r.push([t.currentConstruct,t.containerState]),d(I)}function y(I){if(I===null){i&&C(),S(0),e.consume(I);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),x(I)}function x(I){if(I===null){T(e.exit("chunkFlow"),!0),S(0),e.consume(I);return}return ee(I)?(e.consume(I),T(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(I),x)}function T(I,L){const V=t.sliceStream(I);if(L&&V.push(null),I.previous=a,a&&(a.next=I),a=I,i.defineSkip(I.start),i.write(V),t.parser.lazy[I.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<l&&(!i.events[E][1].end||i.events[E][1].end.offset>l))return;const q=t.events.length;let X=q,j,z;for(;X--;)if(t.events[X][0]==="exit"&&t.events[X][1].type==="chunkFlow"){if(j){z=t.events[X][1].end;break}j=!0}for(S(n),E=q;E<t.events.length;)t.events[E][1].end={...z},E++;nt(t.events,X+1,0,t.events.slice(q)),t.events.length=E}}function S(I){let L=r.length;for(;L-- >I;){const V=r[L];t.containerState=V[1],V[0].exit.call(t,e)}r.length=I}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Pc(e,t,r){return he(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function fr(e){if(e===null||ve(e)||Qt(e))return 1;if(Cn(e))return 2}function Mn(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const D0={name:"attention",resolveAll:Lc,tokenize:Oc};function Lc(e,t){let r=-1,n,i,a,l,s,o,u,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[n][1].end},d={...e[r][1].start};ta(m,-o),ta(d,o),l={type:o>1?"strongSequence":"emphasisSequence",start:m,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:d},a={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:o>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[n][1].end={...l.start},e[r][1].start={...s.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ut(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ut(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",a,t]]),u=ut(u,Mn(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ut(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,u=ut(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,nt(e,n-1,r-n+3,u),r=n+u.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Oc(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=fr(n);let a;return l;function l(o){return a=o,e.enter("attentionSequence"),s(o)}function s(o){if(o===a)return e.consume(o),s;const u=e.exit("attentionSequence"),h=fr(o),m=!h||h===2&&i||r.includes(o),d=!i||i===2&&h||r.includes(n);return u._open=!!(a===42?m:m&&(i||!d)),u._close=!!(a===42?d:d&&(h||!m)),t(o)}}function ta(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const qc={name:"autolink",tokenize:jc};function jc(e,t,r){let n=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return Xe(p)?(e.consume(p),l):p===64?r(p):u(p)}function l(p){return p===43||p===45||p===46||_e(p)?(n=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),n=0,o):(p===43||p===45||p===46||_e(p))&&n++<32?(e.consume(p),s):(n=0,u(p))}function o(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||dn(p)?r(p):(e.consume(p),o)}function u(p){return p===64?(e.consume(p),h):Ec(p)?(e.consume(p),u):r(p)}function h(p){return _e(p)?m(p):r(p)}function m(p){return p===46?(e.consume(p),n=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||_e(p))&&n++<63){const y=p===45?d:m;return e.consume(p),y}return r(p)}}const $r={partial:!0,tokenize:_c};function _c(e,t,r){return n;function n(a){return me(a)?he(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||ee(a)?t(a):r(a)}}const Vl={continuation:{tokenize:$c},exit:Uc,name:"blockQuote",tokenize:Hc};function Hc(e,t,r){const n=this;return i;function i(l){if(l===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return r(l)}function a(l){return me(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function $c(e,t,r){const n=this;return i;function i(l){return me(l)?he(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(Vl,t,r)(l)}}function Uc(e){e.exit("blockQuote")}const Gl={name:"characterEscape",tokenize:Vc};function Vc(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Dc(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Wl={name:"characterReference",tokenize:Gc};function Gc(e,t,r){const n=this;let i=0,a,l;return s;function s(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),o}function o(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,l=_e,h(m))}function u(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=Ic,h):(e.enter("characterReferenceValue"),a=7,l=I0,h(m))}function h(m){if(m===59&&i){const d=e.exit("characterReferenceValue");return l===_e&&!si(n.sliceSerialize(d))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&i++<a?(e.consume(m),h):r(m)}}const ra={partial:!0,tokenize:Xc},na={concrete:!0,name:"codeFenced",tokenize:Wc};function Wc(e,t,r){const n=this,i={partial:!0,tokenize:V};let a=0,l=0,s;return o;function o(E){return u(E)}function u(E){const q=n.events[n.events.length-1];return a=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,s=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(E)}function h(E){return E===s?(l++,e.consume(E),h):l<3?r(E):(e.exit("codeFencedFenceSequence"),me(E)?he(e,m,"whitespace")(E):m(E))}function m(E){return E===null||ee(E)?(e.exit("codeFencedFence"),n.interrupt?t(E):e.check(ra,x,L)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(E)):me(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),he(e,p,"whitespace")(E)):E===96&&E===s?r(E):(e.consume(E),d)}function p(E){return E===null||ee(E)?m(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(E))}function y(E){return E===null||ee(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(E)):E===96&&E===s?r(E):(e.consume(E),y)}function x(E){return e.attempt(i,L,T)(E)}function T(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),S}function S(E){return a>0&&me(E)?he(e,C,"linePrefix",a+1)(E):C(E)}function C(E){return E===null||ee(E)?e.check(ra,x,L)(E):(e.enter("codeFlowValue"),I(E))}function I(E){return E===null||ee(E)?(e.exit("codeFlowValue"),C(E)):(e.consume(E),I)}function L(E){return e.exit("codeFenced"),t(E)}function V(E,q,X){let j=0;return z;function z(F){return E.enter("lineEnding"),E.consume(F),E.exit("lineEnding"),P}function P(F){return E.enter("codeFencedFence"),me(F)?he(E,R,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):R(F)}function R(F){return F===s?(E.enter("codeFencedFenceSequence"),K(F)):X(F)}function K(F){return F===s?(j++,E.consume(F),K):j>=l?(E.exit("codeFencedFenceSequence"),me(F)?he(E,_,"whitespace")(F):_(F)):X(F)}function _(F){return F===null||ee(F)?(E.exit("codeFencedFence"),q(F)):X(F)}}}function Xc(e,t,r){const n=this;return i;function i(l){return l===null?r(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}const Xn={name:"codeIndented",tokenize:Kc},Yc={partial:!0,tokenize:Zc};function Kc(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),he(e,a,"linePrefix",5)(u)}function a(u){const h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(u):r(u)}function l(u){return u===null?o(u):ee(u)?e.attempt(Yc,l,o)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ee(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function o(u){return e.exit("codeIndented"),t(u)}}function Zc(e,t,r){const n=this;return i;function i(l){return n.parser.lazy[n.now().line]?r(l):ee(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):he(e,a,"linePrefix",5)(l)}function a(l){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):ee(l)?i(l):r(l)}}const Jc={name:"codeText",previous:e1,resolve:Qc,tokenize:t1};function Qc(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function e1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function t1(e,t,r){let n=0,i,a;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),s(m)}function s(m){return m===96?(e.consume(m),n++,s):(e.exit("codeTextSequence"),o(m))}function o(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),o):m===96?(a=e.enter("codeTextSequence"),i=0,h(m)):ee(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),o):(e.enter("codeTextData"),u(m))}function u(m){return m===null||m===32||m===96||ee(m)?(e.exit("codeTextData"),o(m)):(e.consume(m),u)}function h(m){return m===96?(e.consume(m),i++,h):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",u(m))}}class r1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&zr(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),zr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),zr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);zr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);zr(this.left,r.reverse())}}}function zr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Xl(e){const t={};let r=-1,n,i,a,l,s,o,u;const h=new r1(e);for(;++r<h.length;){for(;r in t;)r=t[r];if(n=h.get(r),r&&n[1].type==="chunkFlow"&&h.get(r-1)[1].type==="listItemPrefix"&&(o=n[1]._tokenizer.events,a=0,a<o.length&&o[a][1].type==="lineEndingBlank"&&(a+=2),a<o.length&&o[a][1].type==="content"))for(;++a<o.length&&o[a][1].type!=="content";)o[a][1].type==="chunkText"&&(o[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,n1(h,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(l=h.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(n[1].end={...h.get(i)[1].start},s=h.slice(i,r),s.unshift(n),h.splice(i,r-i+1,s))}}return nt(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function n1(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const a=[];let l=r._tokenizer;l||(l=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,o=[],u={};let h,m,d=-1,p=r,y=0,x=0;const T=[x];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(h=n.sliceStream(p),p.next||h.push(null),m&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(h),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=p,p=p.next}for(p=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(x=d+1,T.push(x),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),d=T.length;d--;){const S=s.slice(T[d],T[d+1]),C=a.pop();o.push([C,C+S.length-1]),e.splice(C,2,S)}for(o.reverse(),d=-1;++d<o.length;)u[y+o[d][0]]=y+o[d][1],y+=o[d][1]-o[d][0]-1;return u}const i1={resolve:l1,tokenize:s1},a1={partial:!0,tokenize:o1};function l1(e){return Xl(e),e}function s1(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):ee(s)?e.check(a1,l,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function o1(e,t,r){const n=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),he(e,a,"linePrefix")}function a(l){if(l===null||ee(l))return r(l);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):e.interrupt(n.parser.constructs.flow,r,t)(l)}}function Yl(e,t,r,n,i,a,l,s,o){const u=o||Number.POSITIVE_INFINITY;let h=0;return m;function m(S){return S===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(S),e.exit(a),d):S===null||S===32||S===41||dn(S)?r(S):(e.enter(n),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(S))}function d(S){return S===62?(e.enter(a),e.consume(S),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===62?(e.exit("chunkString"),e.exit(s),d(S)):S===null||S===60||ee(S)?r(S):(e.consume(S),S===92?y:p)}function y(S){return S===60||S===62||S===92?(e.consume(S),p):p(S)}function x(S){return!h&&(S===null||S===41||ve(S))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(n),t(S)):h<u&&S===40?(e.consume(S),h++,x):S===41?(e.consume(S),h--,x):S===null||S===32||S===40||dn(S)?r(S):(e.consume(S),S===92?T:x)}function T(S){return S===40||S===41||S===92?(e.consume(S),x):x(S)}}function Kl(e,t,r,n,i,a){const l=this;let s=0,o;return u;function u(p){return e.enter(n),e.enter(i),e.consume(p),e.exit(i),e.enter(a),h}function h(p){return s>999||p===null||p===91||p===93&&!o||p===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?r(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),m(p))}function m(p){return p===null||p===91||p===93||ee(p)||s++>999?(e.exit("chunkString"),h(p)):(e.consume(p),o||(o=!me(p)),p===92?d:m)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,m):m(p)}}function Zl(e,t,r,n,i,a){let l;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,o):r(d)}function o(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===l?(e.exit(a),o(l)):d===null?r(d):ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),he(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===l||d===null||ee(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?m:h)}function m(d){return d===l||d===92?(e.consume(d),h):h(d)}}function Nr(e,t){let r;return n;function n(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):me(i)?he(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const u1={name:"definition",tokenize:h1},c1={partial:!0,tokenize:m1};function h1(e,t,r){const n=this;let i;return a;function a(p){return e.enter("definition"),l(p)}function l(p){return Kl.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=dt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),o):r(p)}function o(p){return ve(p)?Nr(e,u)(p):u(p)}function u(p){return Yl(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(c1,m,m)(p)}function m(p){return me(p)?he(e,d,"whitespace")(p):d(p)}function d(p){return p===null||ee(p)?(e.exit("definition"),n.parser.defined.push(i),t(p)):r(p)}}function m1(e,t,r){return n;function n(s){return ve(s)?Nr(e,i)(s):r(s)}function i(s){return Zl(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return me(s)?he(e,l,"whitespace")(s):l(s)}function l(s){return s===null||ee(s)?t(s):r(s)}}const f1={name:"hardBreakEscape",tokenize:d1};function d1(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return ee(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const p1={name:"headingAtx",resolve:g1,tokenize:b1};function g1(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},nt(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function b1(e,t,r){let n=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),l(h)}function l(h){return h===35&&n++<6?(e.consume(h),l):h===null||ve(h)?(e.exit("atxHeadingSequence"),s(h)):r(h)}function s(h){return h===35?(e.enter("atxHeadingSequence"),o(h)):h===null||ee(h)?(e.exit("atxHeading"),t(h)):me(h)?he(e,s,"whitespace")(h):(e.enter("atxHeadingText"),u(h))}function o(h){return h===35?(e.consume(h),o):(e.exit("atxHeadingSequence"),s(h))}function u(h){return h===null||h===35||ve(h)?(e.exit("atxHeadingText"),s(h)):(e.consume(h),u)}}const y1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ia=["pre","script","style","textarea"],x1={concrete:!0,name:"htmlFlow",resolveTo:k1,tokenize:S1},v1={partial:!0,tokenize:T1},w1={partial:!0,tokenize:A1};function k1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function S1(e,t,r){const n=this;let i,a,l,s,o;return u;function u(k){return h(k)}function h(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),m}function m(k){return k===33?(e.consume(k),d):k===47?(e.consume(k),a=!0,x):k===63?(e.consume(k),i=3,n.interrupt?t:A):Xe(k)?(e.consume(k),l=String.fromCharCode(k),T):r(k)}function d(k){return k===45?(e.consume(k),i=2,p):k===91?(e.consume(k),i=5,s=0,y):Xe(k)?(e.consume(k),i=4,n.interrupt?t:A):r(k)}function p(k){return k===45?(e.consume(k),n.interrupt?t:A):r(k)}function y(k){const ye="CDATA[";return k===ye.charCodeAt(s++)?(e.consume(k),s===ye.length?n.interrupt?t:R:y):r(k)}function x(k){return Xe(k)?(e.consume(k),l=String.fromCharCode(k),T):r(k)}function T(k){if(k===null||k===47||k===62||ve(k)){const ye=k===47,qe=l.toLowerCase();return!ye&&!a&&ia.includes(qe)?(i=1,n.interrupt?t(k):R(k)):y1.includes(l.toLowerCase())?(i=6,ye?(e.consume(k),S):n.interrupt?t(k):R(k)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):a?C(k):I(k))}return k===45||_e(k)?(e.consume(k),l+=String.fromCharCode(k),T):r(k)}function S(k){return k===62?(e.consume(k),n.interrupt?t:R):r(k)}function C(k){return me(k)?(e.consume(k),C):z(k)}function I(k){return k===47?(e.consume(k),z):k===58||k===95||Xe(k)?(e.consume(k),L):me(k)?(e.consume(k),I):z(k)}function L(k){return k===45||k===46||k===58||k===95||_e(k)?(e.consume(k),L):V(k)}function V(k){return k===61?(e.consume(k),E):me(k)?(e.consume(k),V):I(k)}function E(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),o=k,q):me(k)?(e.consume(k),E):X(k)}function q(k){return k===o?(e.consume(k),o=null,j):k===null||ee(k)?r(k):(e.consume(k),q)}function X(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||ve(k)?V(k):(e.consume(k),X)}function j(k){return k===47||k===62||me(k)?I(k):r(k)}function z(k){return k===62?(e.consume(k),P):r(k)}function P(k){return k===null||ee(k)?R(k):me(k)?(e.consume(k),P):r(k)}function R(k){return k===45&&i===2?(e.consume(k),te):k===60&&i===1?(e.consume(k),le):k===62&&i===4?(e.consume(k),fe):k===63&&i===3?(e.consume(k),A):k===93&&i===5?(e.consume(k),xe):ee(k)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(v1,be,K)(k)):k===null||ee(k)?(e.exit("htmlFlowData"),K(k)):(e.consume(k),R)}function K(k){return e.check(w1,_,be)(k)}function _(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),F}function F(k){return k===null||ee(k)?K(k):(e.enter("htmlFlowData"),R(k))}function te(k){return k===45?(e.consume(k),A):R(k)}function le(k){return k===47?(e.consume(k),l="",de):R(k)}function de(k){if(k===62){const ye=l.toLowerCase();return ia.includes(ye)?(e.consume(k),fe):R(k)}return Xe(k)&&l.length<8?(e.consume(k),l+=String.fromCharCode(k),de):R(k)}function xe(k){return k===93?(e.consume(k),A):R(k)}function A(k){return k===62?(e.consume(k),fe):k===45&&i===2?(e.consume(k),A):R(k)}function fe(k){return k===null||ee(k)?(e.exit("htmlFlowData"),be(k)):(e.consume(k),fe)}function be(k){return e.exit("htmlFlow"),t(k)}}function A1(e,t,r){const n=this;return i;function i(l){return ee(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):r(l)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}function T1(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($r,t,r)}}const C1={name:"htmlText",tokenize:M1};function M1(e,t,r){const n=this;let i,a,l;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),o}function o(A){return A===33?(e.consume(A),u):A===47?(e.consume(A),V):A===63?(e.consume(A),I):Xe(A)?(e.consume(A),X):r(A)}function u(A){return A===45?(e.consume(A),h):A===91?(e.consume(A),a=0,y):Xe(A)?(e.consume(A),C):r(A)}function h(A){return A===45?(e.consume(A),p):r(A)}function m(A){return A===null?r(A):A===45?(e.consume(A),d):ee(A)?(l=m,le(A)):(e.consume(A),m)}function d(A){return A===45?(e.consume(A),p):m(A)}function p(A){return A===62?te(A):A===45?d(A):m(A)}function y(A){const fe="CDATA[";return A===fe.charCodeAt(a++)?(e.consume(A),a===fe.length?x:y):r(A)}function x(A){return A===null?r(A):A===93?(e.consume(A),T):ee(A)?(l=x,le(A)):(e.consume(A),x)}function T(A){return A===93?(e.consume(A),S):x(A)}function S(A){return A===62?te(A):A===93?(e.consume(A),S):x(A)}function C(A){return A===null||A===62?te(A):ee(A)?(l=C,le(A)):(e.consume(A),C)}function I(A){return A===null?r(A):A===63?(e.consume(A),L):ee(A)?(l=I,le(A)):(e.consume(A),I)}function L(A){return A===62?te(A):I(A)}function V(A){return Xe(A)?(e.consume(A),E):r(A)}function E(A){return A===45||_e(A)?(e.consume(A),E):q(A)}function q(A){return ee(A)?(l=q,le(A)):me(A)?(e.consume(A),q):te(A)}function X(A){return A===45||_e(A)?(e.consume(A),X):A===47||A===62||ve(A)?j(A):r(A)}function j(A){return A===47?(e.consume(A),te):A===58||A===95||Xe(A)?(e.consume(A),z):ee(A)?(l=j,le(A)):me(A)?(e.consume(A),j):te(A)}function z(A){return A===45||A===46||A===58||A===95||_e(A)?(e.consume(A),z):P(A)}function P(A){return A===61?(e.consume(A),R):ee(A)?(l=P,le(A)):me(A)?(e.consume(A),P):j(A)}function R(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),i=A,K):ee(A)?(l=R,le(A)):me(A)?(e.consume(A),R):(e.consume(A),_)}function K(A){return A===i?(e.consume(A),i=void 0,F):A===null?r(A):ee(A)?(l=K,le(A)):(e.consume(A),K)}function _(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||ve(A)?j(A):(e.consume(A),_)}function F(A){return A===47||A===62||ve(A)?j(A):r(A)}function te(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):r(A)}function le(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),de}function de(A){return me(A)?he(e,xe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):xe(A)}function xe(A){return e.enter("htmlTextData"),l(A)}}const oi={name:"labelEnd",resolveAll:D1,resolveTo:N1,tokenize:R1},z1={tokenize:B1},E1={tokenize:F1},I1={tokenize:P1};function D1(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&nt(e,0,e.length,r),e}function N1(e,t){let r=e.length,n=0,i,a,l,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(l=r);const o={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},h={type:"labelText",start:{...e[a+n+2][1].end},end:{...e[l-2][1].start}};return s=[["enter",o,t],["enter",u,t]],s=ut(s,e.slice(a+1,a+n+3)),s=ut(s,[["enter",h,t]]),s=ut(s,Mn(t.parser.constructs.insideSpan.null,e.slice(a+n+4,l-3),t)),s=ut(s,[["exit",h,t],e[l-2],e[l-1],["exit",u,t]]),s=ut(s,e.slice(l+1)),s=ut(s,[["exit",o,t]]),nt(e,a,e.length,s),e}function R1(e,t,r){const n=this;let i=n.events.length,a,l;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?m(d):(l=n.parser.defined.includes(dt(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),o):r(d)}function o(d){return d===40?e.attempt(z1,h,l?h:m)(d):d===91?e.attempt(E1,h,l?u:m)(d):l?h(d):m(d)}function u(d){return e.attempt(I1,h,m)(d)}function h(d){return t(d)}function m(d){return a._balanced=!0,r(d)}}function B1(e,t,r){return n;function n(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),i}function i(m){return ve(m)?Nr(e,a)(m):a(m)}function a(m){return m===41?h(m):Yl(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return ve(m)?Nr(e,o)(m):h(m)}function s(m){return r(m)}function o(m){return m===34||m===39||m===40?Zl(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):h(m)}function u(m){return ve(m)?Nr(e,h)(m):h(m)}function h(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):r(m)}}function F1(e,t,r){const n=this;return i;function i(s){return Kl.call(n,e,a,l,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(dt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function l(s){return r(s)}}function P1(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const L1={name:"labelStartImage",resolveAll:oi.resolveAll,tokenize:O1};function O1(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):r(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const q1={name:"labelStartLink",resolveAll:oi.resolveAll,tokenize:j1};function j1(e,t,r){const n=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}const Yn={name:"lineEnding",tokenize:_1};function _1(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),he(e,t,"linePrefix")}}const cn={name:"thematicBreak",tokenize:H1};function H1(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),o(u)):n>=3&&(u===null||ee(u))?(e.exit("thematicBreak"),t(u)):r(u)}function o(u){return u===i?(e.consume(u),n++,o):(e.exit("thematicBreakSequence"),me(u)?he(e,s,"whitespace")(u):s(u))}}const Ze={continuation:{tokenize:G1},exit:X1,name:"list",tokenize:V1},$1={partial:!0,tokenize:Y1},U1={partial:!0,tokenize:W1};function V1(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(p){const y=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:I0(p)){if(n.containerState.type||(n.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cn,r,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(p)}return r(p)}function o(p){return I0(p)&&++l<10?(e.consume(p),o):(!n.interrupt||l<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):r(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check($r,n.interrupt?r:h,e.attempt($1,d,m))}function h(p){return n.containerState.initialBlankLine=!0,a++,d(p)}function m(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):r(p)}function d(p){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function G1(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check($r,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,he(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!me(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,l(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(U1,t,l)(s))}function l(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,he(e,e.attempt(Ze,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function W1(e,t,r){const n=this;return he(e,i,"listItemIndent",n.containerState.size+1);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===n.containerState.size?t(a):r(a)}}function X1(e){e.exit(this.containerState.type)}function Y1(e,t,r){const n=this;return he(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=n.events[n.events.length-1];return!me(a)&&l&&l[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const aa={name:"setextUnderline",resolveTo:K1,tokenize:Z1};function K1(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const l={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=l,e.push(["exit",l,t]),e}function Z1(e,t,r){const n=this;let i;return a;function a(u){let h=n.events.length,m;for(;h--;)if(n.events[h][1].type!=="lineEnding"&&n.events[h][1].type!=="linePrefix"&&n.events[h][1].type!=="content"){m=n.events[h][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||m)?(e.enter("setextHeadingLine"),i=u,l(u)):r(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),me(u)?he(e,o,"lineSuffix")(u):o(u))}function o(u){return u===null||ee(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const J1={tokenize:Q1};function Q1(e){const t=this,r=e.attempt($r,n,e.attempt(this.parser.constructs.flowInitial,i,he(e,e.attempt(this.parser.constructs.flow,i,e.attempt(i1,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const eh={resolveAll:Ql()},th=Jl("string"),rh=Jl("text");function Jl(e){return{resolveAll:Ql(e==="text"?nh:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,l,s);return l;function l(h){return u(h)?a(h):s(h)}function s(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),o}function o(h){return u(h)?(r.exit("data"),a(h)):(r.consume(h),o)}function u(h){if(h===null)return!0;const m=i[h];let d=-1;if(m)for(;++d<m.length;){const p=m[d];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function Ql(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function nh(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,l=-1,s=0,o;for(;a--;){const u=i[a];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(u===-2)o=!0,s++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const u={type:r===e.length||o||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:n.start._bufferIndex+l,_index:n.start._index+a,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const ih={42:Ze,43:Ze,45:Ze,48:Ze,49:Ze,50:Ze,51:Ze,52:Ze,53:Ze,54:Ze,55:Ze,56:Ze,57:Ze,62:Vl},ah={91:u1},lh={[-2]:Xn,[-1]:Xn,32:Xn},sh={35:p1,42:cn,45:[aa,cn],60:x1,61:aa,95:cn,96:na,126:na},oh={38:Wl,92:Gl},uh={[-5]:Yn,[-4]:Yn,[-3]:Yn,33:L1,38:Wl,42:D0,60:[qc,C1],91:q1,92:[f1,Gl],93:oi,95:D0,96:Jc},ch={null:[D0,eh]},hh={null:[42,95]},mh={null:[]},fh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:hh,contentInitial:ah,disable:mh,document:ih,flow:sh,flowInitial:lh,insideSpan:ch,string:oh,text:uh},Symbol.toStringTag,{value:"Module"}));function dh(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let l=[],s=[];const o={attempt:q(V),check:q(E),consume:C,enter:I,exit:L,interrupt:q(E,{interrupt:!0})},u={code:null,containerState:{},defineSkip:x,events:[],now:y,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:m};let h=t.tokenize.call(u,o);return t.resolveAll&&a.push(t),u;function m(P){return l=ut(l,P),T(),l[l.length-1]!==null?[]:(X(t,0),u.events=Mn(a,u.events,u),u.events)}function d(P,R){return gh(p(P),R)}function p(P){return ph(l,P)}function y(){const{_bufferIndex:P,_index:R,line:K,column:_,offset:F}=n;return{_bufferIndex:P,_index:R,line:K,column:_,offset:F}}function x(P){i[P.line]=P.column,z()}function T(){let P;for(;n._index<l.length;){const R=l[n._index];if(typeof R=="string")for(P=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===P&&n._bufferIndex<R.length;)S(R.charCodeAt(n._bufferIndex));else S(R)}}function S(P){h=h(P)}function C(P){ee(P)?(n.line++,n.column=1,n.offset+=P===-3?2:1,z()):P!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===l[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=P}function I(P,R){const K=R||{};return K.type=P,K.start=y(),u.events.push(["enter",K,u]),s.push(K),K}function L(P){const R=s.pop();return R.end=y(),u.events.push(["exit",R,u]),R}function V(P,R){X(P,R.from)}function E(P,R){R.restore()}function q(P,R){return K;function K(_,F,te){let le,de,xe,A;return Array.isArray(_)?be(_):"tokenize"in _?be([_]):fe(_);function fe(ze){return Ue;function Ue(Oe){const De=Oe!==null&&ze[Oe],et=Oe!==null&&ze.null,pt=[...Array.isArray(De)?De:De?[De]:[],...Array.isArray(et)?et:et?[et]:[]];return be(pt)(Oe)}}function be(ze){return le=ze,de=0,ze.length===0?te:k(ze[de])}function k(ze){return Ue;function Ue(Oe){return A=j(),xe=ze,ze.partial||(u.currentConstruct=ze),ze.name&&u.parser.constructs.disable.null.includes(ze.name)?qe():ze.tokenize.call(R?Object.assign(Object.create(u),R):u,o,ye,qe)(Oe)}}function ye(ze){return P(xe,A),F}function qe(ze){return A.restore(),++de<le.length?k(le[de]):te}}}function X(P,R){P.resolveAll&&!a.includes(P)&&a.push(P),P.resolve&&nt(u.events,R,u.events.length-R,P.resolve(u.events.slice(R),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function j(){const P=y(),R=u.previous,K=u.currentConstruct,_=u.events.length,F=Array.from(s);return{from:_,restore:te};function te(){n=P,u.previous=R,u.currentConstruct=K,u.events.length=_,s=F,z()}}function z(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function ph(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let l;if(r===i)l=[e[r].slice(n,a)];else{if(l=e.slice(r,i),n>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(n):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function gh(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
|
|
3
|
+
`;break}case-3:{l=`\r
|
|
4
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(a)}i=a===-2,n.push(l)}return n.join("")}function bh(e){const n={constructs:$l([fh,...(e||{}).extensions||[]]),content:i(Nc),defined:[],document:i(Bc),flow:i(J1),lazy:{},string:i(th),text:i(rh)};return n;function i(a){return l;function l(s){return dh(n,a,s)}}}function yh(e){for(;!Xl(e););return e}const la=/[\0\t\n\r]/g;function xh(){let e=1,t="",r=!0,n;return i;function i(a,l,s){const o=[];let u,h,m,d,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),m=0,t="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(la.lastIndex=m,u=la.exec(a),d=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(d),!u){t=a.slice(m);break}if(p===10&&m===d&&n)o.push(-3),n=void 0;else switch(n&&(o.push(-5),n=void 0),m<d&&(o.push(a.slice(m,d)),e+=d-m),p){case 0:{o.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,o.push(-2);e++<h;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:n=!0,e=1}m=d+1}return s&&(n&&o.push(-5),t&&o.push(t),o.push(null)),o}}const vh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wh(e){return e.replace(vh,kh)}function kh(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return Ul(r.slice(a?2:1),a?16:10)}return si(r)||e}const es={}.hasOwnProperty;function Sh(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),Ah(r)(yh(bh(r).document().write(xh()(e,t,!0))))}function Ah(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Xt),autolinkProtocol:j,autolinkEmail:j,atxHeading:a(nr),blockQuote:a(et),characterEscape:j,characterReference:j,codeFenced:a(pt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(pt,l),codeText:a(tt,l),codeTextData:j,data:j,codeFlowValue:j,definition:a(gt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(Rt),hardBreakEscape:a(Gt),hardBreakTrailing:a(Gt),htmlFlow:a(Wt,l),htmlFlowData:j,htmlText:a(Wt,l),htmlTextData:j,image:a(ir),label:l,link:a(Xt),listItem:a(Ar),listItemValue:d,listOrdered:a(ot,m),listUnordered:a(ot),paragraph:a(Tr),reference:k,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(nr),strong:a(Yt),thematicBreak:a(lr)},exit:{atxHeading:o(),atxHeadingSequence:V,autolink:o(),autolinkEmail:De,autolinkProtocol:Oe,blockQuote:o(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:qe,characterReferenceMarkerNumeric:qe,characterReferenceValue:ze,characterReference:Ue,codeFenced:o(T),codeFencedFence:x,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:z,codeIndented:o(S),codeText:o(F),codeTextData:z,data:z,definition:o(),definitionDestinationString:L,definitionLabelString:C,definitionTitleString:I,emphasis:o(),hardBreakEscape:o(R),hardBreakTrailing:o(R),htmlFlow:o(K),htmlFlowData:z,htmlText:o(_),htmlTextData:z,image:o(le),label:xe,labelText:de,lineEnding:P,link:o(te),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:ye,resourceDestinationString:A,resourceTitleString:fe,resource:be,setextHeading:o(X),setextHeadingLineSequence:q,setextHeadingText:E,strong:o(),thematicBreak:o()}};ts(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(B){let Y={type:"root",children:[]};const ne={stack:[Y],tokenStack:[],config:t,enter:s,exit:u,buffer:l,resume:h,data:r},oe=[];let N=-1;for(;++N<B.length;)if(B[N][1].type==="listOrdered"||B[N][1].type==="listUnordered")if(B[N][0]==="enter")oe.push(N);else{const ie=oe.pop();N=i(B,ie,N)}for(N=-1;++N<B.length;){const ie=t[B[N][0]];es.call(ie,B[N][1].type)&&ie[B[N][1].type].call(Object.assign({sliceSerialize:B[N][2].sliceSerialize},ne),B[N][1])}if(ne.tokenStack.length>0){const ie=ne.tokenStack[ne.tokenStack.length-1];(ie[1]||sa).call(ne,void 0,ie[0])}for(Y.position={start:Pt(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:Pt(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N<t.transforms.length;)Y=t.transforms[N](Y)||Y;return Y}function i(B,Y,ne){let oe=Y-1,N=-1,ie=!1,Ee,Se,bt,Bt;for(;++oe<=ne;){const Ve=B[oe];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?N++:N--,Bt=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(Ee&&!Bt&&!N&&!bt&&(bt=oe),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!N&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||N===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(Ee){let Ft=oe;for(Se=void 0;Ft--;){const je=B[Ft];if(je[1].type==="lineEnding"||je[1].type==="lineEndingBlank"){if(je[0]==="exit")continue;Se&&(B[Se][1].type="lineEndingBlank",ie=!0),je[1].type="lineEnding",Se=Ft}else if(!(je[1].type==="linePrefix"||je[1].type==="blockQuotePrefix"||je[1].type==="blockQuotePrefixWhitespace"||je[1].type==="blockQuoteMarker"||je[1].type==="listItemIndent"))break}bt&&(!Se||bt<Se)&&(Ee._spread=!0),Ee.end=Object.assign({},Se?B[Se][1].start:Ve[1].end),B.splice(Se||oe,0,["exit",Ee,Ve[2]]),oe++,ne++}if(Ve[1].type==="listItemPrefix"){const Ft={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};Ee=Ft,B.splice(oe,0,["enter",Ft,Ve[2]]),oe++,ne++,bt=void 0,Bt=!0}}}return B[Y][1]._spread=ie,ne}function a(B,Y){return ne;function ne(oe){s.call(this,B(oe),oe),Y&&Y.call(this,oe)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(B,Y,ne){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([Y,ne||void 0]),B.position={start:Pt(Y.start),end:void 0}}function o(B){return Y;function Y(ne){B&&B.call(this,ne),u.call(this,ne)}}function u(B,Y){const ne=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==B.type&&(Y?Y.call(this,B,oe[0]):(oe[1]||sa).call(this,B,oe[0]));else throw new Error("Cannot close `"+B.type+"` ("+Dr({start:B.start,end:B.end})+"): it’s not open");ne.position.end=Pt(B.end)}function h(){return li(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function d(B){if(this.data.expectingFirstListItemValue){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function p(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=B}function y(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=B}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/(\r?\n|\r)$/g,"")}function C(B){const Y=this.resume(),ne=this.stack[this.stack.length-1];ne.label=Y,ne.identifier=dt(this.sliceSerialize(B)).toLowerCase()}function I(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function L(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function V(B){const Y=this.stack[this.stack.length-1];if(!Y.depth){const ne=this.sliceSerialize(B).length;Y.depth=ne}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function q(B){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function j(B){const ne=this.stack[this.stack.length-1].children;let oe=ne[ne.length-1];(!oe||oe.type!=="text")&&(oe=ar(),oe.position={start:Pt(B.start),end:void 0},ne.push(oe)),this.stack.push(oe)}function z(B){const Y=this.stack.pop();Y.value+=this.sliceSerialize(B),Y.position.end=Pt(B.end)}function P(B){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=Y.children[Y.children.length-1];ne.position.end=Pt(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Y.type)&&(j.call(this,B),z.call(this,B))}function R(){this.data.atHardBreak=!0}function K(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function _(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function F(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function te(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function le(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function de(B){const Y=this.sliceSerialize(B),ne=this.stack[this.stack.length-2];ne.label=wh(Y),ne.identifier=dt(Y).toLowerCase()}function xe(){const B=this.stack[this.stack.length-1],Y=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const oe=B.children;ne.children=oe}else ne.alt=Y}function A(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function fe(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function be(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ye(B){const Y=this.resume(),ne=this.stack[this.stack.length-1];ne.label=Y,ne.identifier=dt(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function qe(B){this.data.characterReferenceType=B.type}function ze(B){const Y=this.sliceSerialize(B),ne=this.data.characterReferenceType;let oe;ne?(oe=Ul(Y,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=si(Y);const N=this.stack[this.stack.length-1];N.value+=oe}function Ue(B){const Y=this.stack.pop();Y.position.end=Pt(B.end)}function Oe(B){z.call(this,B);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(B)}function De(B){z.call(this,B);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(B)}function et(){return{type:"blockquote",children:[]}}function pt(){return{type:"code",lang:null,meta:null,value:""}}function tt(){return{type:"inlineCode",value:""}}function gt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function nr(){return{type:"heading",depth:0,children:[]}}function Gt(){return{type:"break"}}function Wt(){return{type:"html",value:""}}function ir(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function ot(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function Ar(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Tr(){return{type:"paragraph",children:[]}}function Yt(){return{type:"strong",children:[]}}function ar(){return{type:"text",value:""}}function lr(){return{type:"thematicBreak"}}}function Pt(e){return{line:e.line,column:e.column,offset:e.offset}}function ts(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?ts(e,n):Th(e,n)}}function Th(e,t){let r;for(r in t)if(es.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function sa(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Dr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Dr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Dr({start:t.start,end:t.end})+") is still open")}function Ch(e){const t=this;t.parser=r;function r(n){return Sh(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mh(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function zh(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
5
|
+
`}]}function Eh(e,t){const r=t.value?t.value+`
|
|
6
|
+
`:"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Ih(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Dh(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Nh(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=xr(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let l,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),l=e.footnoteOrder.length):l=a+1,s+=1,e.footnoteCounts.set(n,s);const o={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,o);const u={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,u),e.applyData(t,u)}function Rh(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Bh(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function rs(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=n:i.push({type:"text",value:n}),i}function Fh(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return rs(e,t);const i={src:xr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Ph(e,t){const r={src:xr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Lh(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Oh(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return rs(e,t);const i={href:xr(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function qh(e,t){const r={href:xr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jh(e,t,r){const n=e.all(t),i=r?_h(r):ns(t),a={},l=[];if(typeof t.checked=="boolean"){const h=n[0];let m;h&&h.type==="element"&&h.tagName==="p"?m=h:(m={type:"element",tagName:"p",properties:{},children:[]},n.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const h=n[s];(i||s!==0||h.type!=="element"||h.tagName!=="p")&&l.push({type:"text",value:`
|
|
7
|
+
`}),h.type==="element"&&h.tagName==="p"&&!i?l.push(...h.children):l.push(h)}const o=n[n.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&l.push({type:"text",value:`
|
|
8
|
+
`});const u={type:"element",tagName:"li",properties:a,children:l};return e.patch(t,u),e.applyData(t,u)}function _h(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=ns(r[n])}return t}function ns(e){const t=e.spread;return t??e.children.length>1}function Hh(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const l=n[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function $h(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uh(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Vh(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Gh(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],l),i.push(l)}if(r.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=ri(t.children[1]),o=Pl(t.children[t.children.length-1]);s&&o&&(l.position={start:s,end:o}),i.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Wh(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",l=r&&r.type==="table"?r.align:void 0,s=l?l.length:t.children.length;let o=-1;const u=[];for(;++o<s;){const m=t.children[o],d={},p=l?l[o]:void 0;p&&(d.align=p);let y={type:"element",tagName:a,properties:d,children:[]};m&&(y.children=e.all(m),e.patch(m,y),y=e.applyData(m,y)),u.push(y)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,h),e.applyData(t,h)}function Xh(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const oa=9,ua=32;function Yh(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(ca(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(ca(t.slice(i),i>0,!1)),a.join("")}function ca(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===oa||a===ua;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===oa||a===ua;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Kh(e,t){const r={type:"text",value:Yh(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Zh(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Jh={blockquote:Mh,break:zh,code:Eh,delete:Ih,emphasis:Dh,footnoteReference:Nh,heading:Rh,html:Bh,imageReference:Fh,image:Ph,inlineCode:Lh,linkReference:Oh,link:qh,listItem:jh,list:Hh,paragraph:$h,root:Uh,strong:Vh,table:Gh,tableCell:Xh,tableRow:Wh,text:Kh,thematicBreak:Zh,toml:Yr,yaml:Yr,definition:Yr,footnoteDefinition:Yr};function Yr(){}const is=-1,zn=0,Rr=1,pn=2,ui=3,ci=4,hi=5,mi=6,as=7,ls=8,ha=typeof self=="object"?self:globalThis,Qh=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,l]=t[i];switch(a){case zn:case is:return r(l,i);case Rr:{const s=r([],i);for(const o of l)s.push(n(o));return s}case pn:{const s=r({},i);for(const[o,u]of l)s[n(o)]=n(u);return s}case ui:return r(new Date(l),i);case ci:{const{source:s,flags:o}=l;return r(new RegExp(s,o),i)}case hi:{const s=r(new Map,i);for(const[o,u]of l)s.set(n(o),n(u));return s}case mi:{const s=r(new Set,i);for(const o of l)s.add(n(o));return s}case as:{const{name:s,message:o}=l;return r(new ha[s](o),i)}case ls:return r(BigInt(l),i);case"BigInt":return r(Object(BigInt(l)),i);case"ArrayBuffer":return r(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return r(new DataView(s),l)}}return r(new ha[a](l),i)};return n},ma=e=>Qh(new Map,e)(0),or="",{toString:em}={},{keys:tm}=Object,Er=e=>{const t=typeof e;if(t!=="object"||!e)return[zn,t];const r=em.call(e).slice(8,-1);switch(r){case"Array":return[Rr,or];case"Object":return[pn,or];case"Date":return[ui,or];case"RegExp":return[ci,or];case"Map":return[hi,or];case"Set":return[mi,or];case"DataView":return[Rr,r]}return r.includes("Array")?[Rr,r]:r.includes("Error")?[as,r]:[pn,r]},Kr=([e,t])=>e===zn&&(t==="function"||t==="symbol"),rm=(e,t,r,n)=>{const i=(l,s)=>{const o=n.push(l)-1;return r.set(s,o),o},a=l=>{if(r.has(l))return r.get(l);let[s,o]=Er(l);switch(s){case zn:{let h=l;switch(o){case"bigint":s=ls,h=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);h=null;break;case"undefined":return i([is],l)}return i([s,h],l)}case Rr:{if(o){let d=l;return o==="DataView"?d=new Uint8Array(l.buffer):o==="ArrayBuffer"&&(d=new Uint8Array(l)),i([o,[...d]],l)}const h=[],m=i([s,h],l);for(const d of l)h.push(a(d));return m}case pn:{if(o)switch(o){case"BigInt":return i([o,l.toString()],l);case"Boolean":case"Number":case"String":return i([o,l.valueOf()],l)}if(t&&"toJSON"in l)return a(l.toJSON());const h=[],m=i([s,h],l);for(const d of tm(l))(e||!Kr(Er(l[d])))&&h.push([a(d),a(l[d])]);return m}case ui:return i([s,l.toISOString()],l);case ci:{const{source:h,flags:m}=l;return i([s,{source:h,flags:m}],l)}case hi:{const h=[],m=i([s,h],l);for(const[d,p]of l)(e||!(Kr(Er(d))||Kr(Er(p))))&&h.push([a(d),a(p)]);return m}case mi:{const h=[],m=i([s,h],l);for(const d of l)(e||!Kr(Er(d)))&&h.push(a(d));return m}}const{message:u}=l;return i([s,{name:o,message:u}],l)};return a},fa=(e,{json:t,lossy:r}={})=>{const n=[];return rm(!(t||r),!!t,new Map,n)(e),n},gn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ma(fa(e,t)):structuredClone(e):(e,t)=>ma(fa(e,t));function nm(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function im(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function am(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||nm,n=e.options.footnoteBackLabel||im,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let o=-1;for(;++o<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[o]);if(!u)continue;const h=e.all(u),m=String(u.identifier).toUpperCase(),d=xr(m.toLowerCase());let p=0;const y=[],x=e.footnoteCounts.get(m);for(;x!==void 0&&++p<=x;){y.length>0&&y.push({type:"text",value:" "});let C=typeof r=="string"?r:r(o,p);typeof C=="string"&&(C={type:"text",value:C}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(o,p),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const T=h[h.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const C=T.children[T.children.length-1];C&&C.type==="text"?C.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...y)}else h.push(...y);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(h,!0)};e.patch(u,S),s.push(S)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...gn(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
9
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
10
|
+
`}]}}const Ur=(function(e){if(e==null)return um;if(typeof e=="function")return En(e);if(typeof e=="object")return Array.isArray(e)?lm(e):sm(e);if(typeof e=="string")return om(e);throw new Error("Expected function, string, or object as test")});function lm(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ur(e[r]);return En(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function sm(e){const t=e;return En(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function om(e){return En(t);function t(r){return r&&r.type===e}}function En(e){return t;function t(r,n,i){return!!(cm(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function um(){return!0}function cm(e){return e!==null&&typeof e=="object"&&"type"in e}const ss=[],hm=!0,N0=!1,os="skip";function fi(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=Ur(i),l=n?-1:1;s(e,void 0,[])();function s(o,u,h){const m=o&&typeof o=="object"?o:{};if(typeof m.type=="string"){const p=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(o.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=ss,y,x,T;if((!t||a(o,u,h[h.length-1]||void 0))&&(p=mm(r(o,h)),p[0]===N0))return p;if("children"in o&&o.children){const S=o;if(S.children&&p[0]!==os)for(x=(n?S.children.length:-1)+l,T=h.concat(S);x>-1&&x<S.children.length;){const C=S.children[x];if(y=s(C,x,T)(),y[0]===N0)return y;x=typeof y[1]=="number"?y[1]:x+l}}return p}}}function mm(e){return Array.isArray(e)?e:typeof e=="number"?[hm,e]:e==null?ss:[e]}function di(e,t,r,n){let i,a,l;typeof t=="function"&&typeof r!="function"?(a=void 0,l=t,i=r):(a=t,l=r,i=n),fi(e,a,s,i);function s(o,u){const h=u[u.length-1],m=h?h.children.indexOf(o):void 0;return l(o,m,h)}}const R0={}.hasOwnProperty,fm={};function dm(e,t){const r=t||fm,n=new Map,i=new Map,a=new Map,l={...Jh,...r.handlers},s={all:u,applyData:gm,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:l,one:o,options:r,patch:pm,wrap:ym};return di(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const m=h.type==="definition"?n:i,d=String(h.identifier).toUpperCase();m.has(d)||m.set(d,h)}}),s;function o(h,m){const d=h.type,p=s.handlers[d];if(R0.call(s.handlers,d)&&p)return p(s,h,m);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in h){const{children:x,...T}=h,S=gn(T);return S.children=s.all(h),S}return gn(h)}return(s.options.unknownHandler||bm)(s,h,m)}function u(h){const m=[];if("children"in h){const d=h.children;let p=-1;for(;++p<d.length;){const y=s.one(d[p],h);if(y){if(p&&d[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=da(y.value)),!Array.isArray(y)&&y.type==="element")){const x=y.children[0];x&&x.type==="text"&&(x.value=da(x.value))}Array.isArray(y)?m.push(...y):m.push(y)}}}return m}}function pm(e,t){e.position&&(t.position=ic(e))}function gm(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const l="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:l}}r.type==="element"&&a&&Object.assign(r.properties,gn(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function bm(e,t){const r=t.data||{},n="value"in t&&!(R0.call(r,"hProperties")||R0.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ym(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
|
11
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
12
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
13
|
+
`}),r}function da(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function pa(e,t){const r=dm(e,t),n=r.one(e,void 0),i=am(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
|
14
|
+
`},i),a}function xm(e,t){return e&&"run"in e?async function(r,n){const i=pa(r,{file:n,...t});await e.run(i,n)}:function(r,n){return pa(r,{file:n,...e||t})}}function ga(e){if(e)throw e}var Kn,ba;function vm(){if(ba)return Kn;ba=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var h=e.call(u,"constructor"),m=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!h&&!m)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},l=function(u,h){r&&h.name==="__proto__"?r(u,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):u[h.name]=h.newValue},s=function(u,h){if(h==="__proto__")if(e.call(u,h)){if(n)return n(u,h).value}else return;return u[h]};return Kn=function o(){var u,h,m,d,p,y,x=arguments[0],T=1,S=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},T=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});T<S;++T)if(u=arguments[T],u!=null)for(h in u)m=s(x,h),d=s(u,h),x!==d&&(C&&d&&(a(d)||(p=i(d)))?(p?(p=!1,y=m&&i(m)?m:[]):y=m&&a(m)?m:{},l(x,{name:h,newValue:o(C,y,d)})):typeof d<"u"&&l(x,{name:h,newValue:d}));return x},Kn}var wm=vm();const Zn=Tl(wm);function B0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function km(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...i);function s(o,...u){const h=e[++a];let m=-1;if(o){l(o);return}for(;++m<i.length;)(u[m]===null||u[m]===void 0)&&(u[m]=i[m]);i=u,h?Sm(h,s)(...u):l(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Sm(e,t){let r;return n;function n(...l){const s=e.length>l.length;let o;s&&l.push(i);try{o=e.apply(this,l)}catch(u){const h=u;if(s&&r)throw h;return i(h)}s||(o&&o.then&&typeof o.then=="function"?o.then(a,i):o instanceof Error?i(o):a(o))}function i(l,...s){r||(r=!0,t(l,...s))}function a(l){i(null,l)}}const yt={basename:Am,dirname:Tm,extname:Cm,join:Mm,sep:"/"};function Am(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Vr(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else l<0&&(a=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=l));return r===n?n=l:n<0&&(n=e.length),e.slice(r,n)}function Tm(e){if(Vr(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Cm(e){Vr(e);let t=e.length,r=-1,n=0,i=-1,a=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){n=t+1;break}continue}r<0&&(l=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function Mm(...e){let t=-1,r;for(;++t<e.length;)Vr(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":zm(r)}function zm(e){Vr(e);const t=e.codePointAt(0)===47;let r=Em(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Em(e,t){let r="",n=0,i=-1,a=0,l=-1,s,o;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(i===l-1||a===1))if(i!==l-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(o=r.lastIndexOf("/"),o!==r.length-1){o<0?(r="",n=0):(r=r.slice(0,o),n=r.length-1-r.lastIndexOf("/")),i=l,a=0;continue}}else if(r.length>0){r="",n=0,i=l,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,l):r=e.slice(i+1,l),n=l-i-1;i=l,a=0}else s===46&&a>-1?a++:a=-1}return r}function Vr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Im={cwd:Dm};function Dm(){return"/"}function F0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Nm(e){if(typeof e=="string")e=new URL(e);else if(!F0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Rm(e)}function Rm(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Jn=["history","path","basename","stem","extname","dirname"];class us{constructor(t){let r;t?F0(t)?r={path:t}:typeof t=="string"||Bm(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Im.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Jn.length;){const a=Jn[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Jn.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?yt.basename(this.path):void 0}set basename(t){e0(t,"basename"),Qn(t,"basename"),this.path=yt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yt.dirname(this.path):void 0}set dirname(t){ya(this.basename,"dirname"),this.path=yt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yt.extname(this.path):void 0}set extname(t){if(Qn(t,"extname"),ya(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){F0(t)&&(t=Nm(t)),e0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yt.basename(this.path,this.extname):void 0}set stem(t){e0(t,"stem"),Qn(t,"stem"),this.path=yt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new $e(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Qn(e,t){if(e&&e.includes(yt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yt.sep+"`")}function e0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ya(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Bm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fm=(function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a}),Pm={}.hasOwnProperty;class pi extends Fm{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=km()}copy(){const t=new pi;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(Zn(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(n0("data",this.frozen),this.namespace[t]=r,this):Pm.call(this.namespace,t)&&this.namespace[t]||void 0:t?(n0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Zr(t),n=this.parser||this.Parser;return t0("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),t0("process",this.parser||this.Parser),r0("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,l){const s=Zr(t),o=n.parse(s);n.run(o,s,function(h,m,d){if(h||!m||!d)return u(h);const p=m,y=n.stringify(p,d);qm(y)?d.value=y:d.result=y,u(h,d)});function u(h,m){h||!m?l(h):a?a(m):r(void 0,m)}}}processSync(t){let r=!1,n;return this.freeze(),t0("processSync",this.parser||this.Parser),r0("processSync",this.compiler||this.Compiler),this.process(t,i),va("processSync","process",r),n;function i(a,l){r=!0,ga(a),n=l}}run(t,r,n){xa(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(l,s){const o=Zr(r);i.run(t,o,u);function u(h,m,d){const p=m||t;h?s(h):l?l(p):n(void 0,p,d)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),va("runSync","run",n),i;function a(l,s){ga(l),i=s,n=!0}}stringify(t,r){this.freeze();const n=Zr(r),i=this.compiler||this.Compiler;return r0("stringify",i),xa(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(n0("use",this.frozen),t!=null)if(typeof t=="function")o(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")o(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[h,...m]=u;o(h,m)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(i.settings=Zn(!0,i.settings,u.settings))}function s(u){let h=-1;if(u!=null)if(Array.isArray(u))for(;++h<u.length;){const m=u[h];a(m)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function o(u,h){let m=-1,d=-1;for(;++m<n.length;)if(n[m][0]===u){d=m;break}if(d===-1)n.push([u,...h]);else if(h.length>0){let[p,...y]=h;const x=n[d][1];B0(x)&&B0(p)&&(p=Zn(!0,x,p)),n[d]=[u,p,...y]}}}}const Lm=new pi().freeze();function t0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function r0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function n0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xa(e){if(!B0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function va(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zr(e){return Om(e)?e:new us(e)}function Om(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qm(e){return typeof e=="string"||jm(e)}function jm(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _m="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wa=[],ka={allowDangerousHtml:!0},Hm=/^(https?|ircs?|mailto|xmpp)$/i,$m=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function cs(e){const t=Um(e),r=Vm(e);return Gm(t.runSync(t.parse(r),r),e)}function Um(e){const t=e.rehypePlugins||wa,r=e.remarkPlugins||wa,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ka}:ka;return Lm().use(Ch).use(r).use(xm,n).use(t)}function Vm(e){const t=e.children||"",r=new us;return typeof t=="string"&&(r.value=t),r}function Gm(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,a=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,o=t.urlTransform||Wm;for(const h of $m)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+_m+h.id,void 0);return di(e,u),uc(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function u(h,m,d){if(h.type==="raw"&&d&&typeof m=="number")return l?d.children.splice(m,1):d.children[m]={type:"text",value:h.value},m;if(h.type==="element"){let p;for(p in Wn)if(Object.hasOwn(Wn,p)&&Object.hasOwn(h.properties,p)){const y=h.properties[p],x=Wn[p];(x===null||x.includes(h.tagName))&&(h.properties[p]=o(String(y||""),p,h))}}if(h.type==="element"){let p=r?!r.includes(h.tagName):a?a.includes(h.tagName):!1;if(!p&&n&&typeof m=="number"&&(p=!n(h,m,d)),p&&d&&typeof m=="number")return s&&h.children?d.children.splice(m,1,...h.children):d.children.splice(m,1),m}}}function Wm(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||Hm.test(e.slice(0,t))?e:""}const Sa=/[#.]/g;function Xm(e,t){const r=e||"",n={};let i=0,a,l;for(;i<r.length;){Sa.lastIndex=i;const s=Sa.exec(r),o=r.slice(i,s?s.index:r.length);o&&(a?a==="#"?n.id=o:Array.isArray(n.className)?n.className.push(o):n.className=[o]:l=o,i+=o.length),s&&(a=s[0],i++)}return{type:"element",tagName:l||t||"div",properties:n,children:[]}}function hs(e,t,r){const n=r?Jm(r):void 0;function i(a,l,...s){let o;if(a==null){o={type:"root",children:[]};const u=l;s.unshift(u)}else{o=Xm(a,t);const u=o.tagName.toLowerCase(),h=n?n.get(u):void 0;if(o.tagName=h||u,Ym(l))s.unshift(l);else for(const[m,d]of Object.entries(l))Km(e,o.properties,m,d)}for(const u of s)P0(o.children,u);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function Ym(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const l of a)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Km(e,t,r,n){const i=Bl(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=Ui(n):i.commaSeparated?a=qi(n):i.commaOrSpaceSeparated?a=Ui(qi(n).join(" ")):a=Aa(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?Zm(n):String(n);if(Array.isArray(a)){const l=[];for(const s of a)l.push(Aa(i,i.property,s));a=l}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function P0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)P0(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?P0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Aa(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Pr(r)===Pr(t)))return!0}return r}function Zm(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function Jm(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const Qm=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],e4=hs(Fl,"div"),t4=hs(Tn,"g",Qm),i0={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function r4(e,t){return ms(e,{})||{type:"root",children:[]}}function ms(e,t){const r=n4(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function n4(e,t){switch(e.nodeType){case 1:return s4(e,t);case 3:return a4(e);case 8:return l4(e);case 9:return Ta(e,t);case 10:return i4();case 11:return Ta(e,t);default:return}}function Ta(e,t){return{type:"root",children:fs(e,t)}}function i4(){return{type:"doctype"}}function a4(e){return{type:"text",value:e.nodeValue||""}}function l4(e){return{type:"comment",value:e.nodeValue||""}}function s4(e,t){const r=e.namespaceURI,n=r===i0.svg?t4:e4,i=r===i0.html?e.tagName.toLowerCase():e.tagName,a=r===i0.html&&i==="template"?e.content:e,l=e.getAttributeNames(),s={};let o=-1;for(;++o<l.length;)s[l[o]]=e.getAttribute(l[o])||"";return n(i,s,fs(a,t))}function fs(e,t){const r=e.childNodes,n=[];let i=-1;for(;++i<r.length;){const a=ms(r[i],t);a!==void 0&&n.push(a)}return n}new DOMParser;function o4(e,t){const r=u4(e);return r4(r)}function u4(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Ca=(function(e,t,r){const n=Ur(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),tr=(function(e){if(e==null)return m4;if(typeof e=="string")return h4(e);if(typeof e=="object")return c4(e);if(typeof e=="function")return gi(e);throw new Error("Expected function, string, or array as `test`")});function c4(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=tr(e[r]);return gi(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function h4(e){return gi(t);function t(r){return r.tagName===e}}function gi(e){return t;function t(r,n,i){return!!(f4(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function m4(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function f4(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Ma=/\n/g,za=/[\t ]+/g,L0=tr("br"),Ea=tr(w4),d4=tr("p"),Ia=tr("tr"),p4=tr(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",v4,k4]),ds=tr(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function g4(e,t){const r=t||{},n="children"in e?e.children:[],i=ds(e),a=bs(e,{whitespace:r.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...gs(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<n.length;)l.push(...ps(n[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<n.length-1?L0(n[s+1]):i}));const o=[];let u;for(s=-1;++s<l.length;){const h=l[s];typeof h=="number"?u!==void 0&&h>u&&(u=h):h&&(u!==void 0&&u>-1&&o.push(`
|
|
15
|
+
`.repeat(u)||" "),u=-1,o.push(h))}return o.join("")}function ps(e,t,r){return e.type==="element"?b4(e,t,r):e.type==="text"?r.whitespace==="normal"?gs(e,r):y4(e):[]}function b4(e,t,r){const n=bs(e,r),i=e.children||[];let a=-1,l=[];if(p4(e))return l;let s,o;for(L0(e)||Ia(e)&&Ca(t,e,Ia)?o=`
|
|
16
|
+
`:d4(e)?(s=2,o=2):ds(e)&&(s=1,o=1);++a<i.length;)l=l.concat(ps(i[a],e,{whitespace:n,breakBefore:a?void 0:s,breakAfter:a<i.length-1?L0(i[a+1]):o}));return Ea(e)&&Ca(t,e,Ea)&&l.push(" "),s&&l.unshift(s),o&&l.push(o),l}function gs(e,t){const r=String(e.value),n=[],i=[];let a=0;for(;a<=r.length;){Ma.lastIndex=a;const o=Ma.exec(r),u=o&&"index"in o?o.index:r.length;n.push(x4(r.slice(a,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),a=u+1}let l=-1,s;for(;++l<n.length;)n[l].charCodeAt(n[l].length-1)===8203||l<n.length-1&&n[l+1].charCodeAt(0)===8203?(i.push(n[l]),s=void 0):n[l]?(typeof s=="number"&&i.push(s),i.push(n[l]),s=0):(l===0||l===n.length-1)&&i.push(0);return i}function y4(e){return[String(e.value)]}function x4(e,t,r){const n=[];let i=0,a;for(;i<e.length;){za.lastIndex=i;const l=za.exec(e);a=l?l.index:e.length,!i&&!a&&l&&!t&&n.push(""),i!==a&&n.push(e.slice(i,a)),i=l?a+l[0].length:a}return i!==a&&!r&&n.push(""),n.join(" ")}function bs(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function v4(e){return!!(e.properties||{}).hidden}function w4(e){return e.tagName==="td"||e.tagName==="th"}function k4(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class $ extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,a,l=r&&r.loc;if(l&&l.start<=l.end){var s=l.lexer.input;i=l.start,a=l.end,i===s.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var o=s.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+s.slice(i-15,i):u=s.slice(0,i);var h;a+15<s.length?h=s.slice(a,a+15)+"…":h=s.slice(a),n+=u+o+h}super(n),this.name="ParseError",Object.setPrototypeOf(this,$.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}}var S4=/([A-Z])/g,bi=e=>e.replace(S4,"-$1").toLowerCase(),A4={"&":"&",">":">","<":"<",'"':""","'":"'"},T4=/[&><"']/g,He=e=>String(e).replace(T4,t=>A4[t]),hn=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?hn(e.body[0]):e:e.type==="font"?hn(e.body):e,C4=new Set(["mathord","textord","atom"]),Et=e=>C4.has(hn(e).type),M4=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},O0={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:e=>"#"+e},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:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <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:e=>Math.max(0,e),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:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function z4(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class yi{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(O0)){var n=O0[r],i=t[r];this[r]=i!==void 0?n.processor?n.processor(i):i:z4(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new $("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=M4(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Lt{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return xt[E4[this.id]]}sub(){return xt[I4[this.id]]}fracNum(){return xt[D4[this.id]]}fracDen(){return xt[N4[this.id]]}cramp(){return xt[R4[this.id]]}text(){return xt[B4[this.id]]}isTight(){return this.size>=2}}var xi=0,bn=1,mr=2,Mt=3,Or=4,ct=5,dr=6,Ye=7,xt=[new Lt(xi,0,!1),new Lt(bn,0,!0),new Lt(mr,1,!1),new Lt(Mt,1,!0),new Lt(Or,2,!1),new Lt(ct,2,!0),new Lt(dr,3,!1),new Lt(Ye,3,!0)],E4=[Or,ct,Or,ct,dr,Ye,dr,Ye],I4=[ct,ct,ct,ct,Ye,Ye,Ye,Ye],D4=[mr,Mt,Or,ct,dr,Ye,dr,Ye],N4=[Mt,Mt,ct,ct,Ye,Ye,Ye,Ye],R4=[bn,bn,Mt,Mt,ct,ct,Ye,Ye],B4=[xi,bn,mr,Mt,mr,Mt,mr,Mt],se={DISPLAY:xt[xi],TEXT:xt[mr],SCRIPT:xt[Or],SCRIPTSCRIPT:xt[dr]},q0=[{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 F4(e){for(var t=0;t<q0.length;t++)for(var r=q0[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var mn=[];q0.forEach(e=>e.blocks.forEach(t=>mn.push(...t)));function ys(e){for(var t=0;t<mn.length;t+=2)if(e>=mn[t]&&e<=mn[t+1])return!0;return!1}var Pe=e=>e+" "+e,ur=80,P4=function(t,r){return"M95,"+(622+t+r)+`
|
|
17
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
18
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
19
|
+
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
|
|
20
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
21
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
22
|
+
l`+t/2.075+" -"+t+`
|
|
23
|
+
c5.3,-9.3,12,-14,20,-14
|
|
24
|
+
H400000v`+(40+t)+`H845.2724
|
|
25
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
26
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
27
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},L4=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
28
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
29
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
30
|
+
l`+t/2.084+" -"+t+`
|
|
31
|
+
c4.7,-7.3,11,-11,19,-11
|
|
32
|
+
H40000v`+(40+t)+`H1012.3
|
|
33
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
34
|
+
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
|
|
35
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
36
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
37
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},O4=function(t,r){return"M983 "+(10+t+r)+`
|
|
38
|
+
l`+t/3.13+" -"+t+`
|
|
39
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
40
|
+
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
|
|
41
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
42
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
43
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
44
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
45
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
46
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},q4=function(t,r){return"M424,"+(2398+t+r)+`
|
|
47
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
48
|
+
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
|
|
49
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
50
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
51
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
52
|
+
v`+(40+t)+`H1014.6
|
|
53
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
54
|
+
c-2,6,-10,9,-24,9
|
|
55
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
56
|
+
h400000v`+(40+t)+"h-400000z"},j4=function(t,r){return"M473,"+(2713+t+r)+`
|
|
57
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
58
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
59
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
60
|
+
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
|
|
61
|
+
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
|
|
62
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
63
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},_4=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},H4=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
64
|
+
H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
65
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
66
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
67
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},$4=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=P4(r,ur);break;case"sqrtSize1":i=L4(r,ur);break;case"sqrtSize2":i=O4(r,ur);break;case"sqrtSize3":i=q4(r,ur);break;case"sqrtSize4":i=j4(r,ur);break;case"sqrtTall":i=H4(r,ur,n)}return i},U4=function(t,r){switch(t){case"⎜":return Pe("M291 0 H417 V"+r+" H291z");case"∣":return Pe("M145 0 H188 V"+r+" H145z");case"∥":return Pe("M145 0 H188 V"+r+" H145z")+Pe("M367 0 H410 V"+r+" H367z");case"⎟":return Pe("M457 0 H583 V"+r+" H457z");case"⎢":return Pe("M319 0 H403 V"+r+" H319z");case"⎥":return Pe("M263 0 H347 V"+r+" H263z");case"⎪":return Pe("M384 0 H504 V"+r+" H384z");case"⏐":return Pe("M312 0 H355 V"+r+" H312z");case"‖":return Pe("M257 0 H300 V"+r+" H257z")+Pe("M478 0 H521 V"+r+" H478z");default:return""}},Da={doubleleftarrow:`M262 157
|
|
68
|
+
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
|
|
69
|
+
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
|
|
70
|
+
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
|
|
71
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
72
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
73
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
74
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
75
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
76
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
77
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
78
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
79
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
80
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
81
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
82
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
83
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
84
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
85
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
86
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
87
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
88
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
89
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
90
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
91
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
92
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
93
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
94
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
95
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
96
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
97
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
98
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
99
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
100
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
101
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
102
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
103
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
104
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
105
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
106
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
107
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
108
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
109
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
110
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
111
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
112
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
113
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Pe("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Pe("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Pe("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Pe("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
114
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
115
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
116
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Pe("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
117
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
118
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
119
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
120
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
121
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
122
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
123
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
124
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
125
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
126
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
127
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
128
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
129
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
130
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
131
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
132
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
133
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
134
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
135
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
136
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
137
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
138
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
139
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
140
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
141
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
142
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
143
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
144
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
145
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
146
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
147
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
148
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
149
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
150
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
151
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
152
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
153
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
154
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
155
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
156
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
157
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
158
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
159
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
160
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
161
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
162
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
163
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
164
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
165
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Pe("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Pe("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Pe("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
166
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
167
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
168
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
169
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
170
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
171
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
172
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
173
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
174
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
175
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
176
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
177
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
178
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
179
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
180
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
181
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
182
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
183
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
184
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
185
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
186
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
187
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
188
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
189
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
190
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
191
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
192
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
193
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
194
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
195
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
196
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
197
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
198
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
199
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
200
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
201
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
202
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
203
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
204
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
205
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
206
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
207
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
208
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
209
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
210
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
211
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
212
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
213
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
214
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
215
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
216
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
217
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
218
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
219
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
220
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
221
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
222
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
223
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
224
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
225
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
226
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
227
|
+
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,
|
|
228
|
+
-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
|
|
229
|
+
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
|
|
230
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
231
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
232
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
233
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
234
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
235
|
+
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,
|
|
236
|
+
-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
|
|
237
|
+
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
|
|
238
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},V4=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
239
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
240
|
+
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
|
|
241
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
242
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
243
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
244
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
245
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
246
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
247
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
248
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
249
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
250
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
251
|
+
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
252
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
253
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
254
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
255
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
256
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
257
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
258
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
259
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
260
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
261
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
262
|
+
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,11
|
|
263
|
+
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
|
|
264
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
265
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
266
|
+
-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.")}};class vr{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var j0={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},G4={ex:!0,em:!0,mu:!0},xs=function(t){return typeof t!="string"&&(t=t.unit),t in j0||t in G4||t==="ex"},Me=function(t,r){var n;if(t.unit in j0)n=j0[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new $("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},W=function(t){return+t.toFixed(4)+"em"},jt=function(t){return t.filter(r=>r).join(" ")},vs=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},ws=function(t){var r=document.createElement(t);r.className=jt(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},W4=/[\s"'>/=\x00-\x1f]/,ks=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+He(jt(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=bi(i)+":"+this.style[i]+";";n&&(r+=' style="'+He(n)+'"');for(var a of Object.keys(this.attributes)){if(W4.test(a))throw new $("Invalid attribute name '"+a+"'");r+=" "+a+'="'+He(this.attributes[a])+'"'}r+=">";for(var l=0;l<this.children.length;l++)r+=this.children[l].toMarkup();return r+="</"+t+">",r};class wr{constructor(t,r,n,i){vs.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return ws.call(this,"span")}toMarkup(){return ks.call(this,"span")}}class In{constructor(t,r,n,i){vs.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return ws.call(this,"a")}toMarkup(){return ks.call(this,"a")}}class X4{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+He(this.src)+'"'+(' alt="'+He(this.alt)+'"'),r="";for(var n of Object.keys(this.style))r+=bi(n)+":"+this.style[n]+";";return r&&(t+=' style="'+He(r)+'"'),t+="'/>",t}}var Y4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class at{constructor(t,r,n,i,a,l,s,o){this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=l||0,this.classes=s||[],this.style=o||{},this.maxFontSize=0;var u=F4(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Y4[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=W(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=jt(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=He(jt(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+W(this.italic)+";");for(var i of Object.keys(this.style))n+=bi(i)+":"+this.style[i]+";";n&&(t=!0,r+=' style="'+He(n)+'"');var a=He(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class zt{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+He(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class _t{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Da[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+He(this.alternate)+'"/>':'<path d="'+He(Da[this.pathName])+'"/>'}}class _0{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+He(this.attributes[r])+'"';return t+="/>",t}}function K4(e){if(e instanceof at)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Z4(e){if(e instanceof wr)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var J4=e=>e instanceof wr||e instanceof In||e instanceof vr,vt={"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]}},Jr={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]},Na={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Q4(e,t){vt[e]=t}function vi(e,t,r){if(!vt[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=vt[t][n];if(!i&&e[0]in Na&&(n=Na[e[0]].charCodeAt(0),i=vt[t][n]),!i&&r==="text"&&ys(n)&&(i=vt[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var a0={};function ef(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!a0[t]){var r=a0[t]={cssEmPerMu:Jr.quad[t]/18};for(var n in Jr)Jr.hasOwnProperty(n)&&(r[n]=Jr[n][t])}return a0[t]}var tf={bin:1,close:1,inner:1,open:1,punct:1,rel:1},rf={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ae={math:{},text:{}};function c(e,t,r,n,i,a){Ae[e][i]={font:t,group:r,replace:n},a&&n&&(Ae[e][n]=Ae[e][i])}var f="math",O="text",g="main",v="ams",Te="accent-token",Q="bin",Ke="close",kr="inner",re="mathord",Fe="op-token",lt="open",Gr="punct",w="rel",It="spacing",M="textord";c(f,g,w,"≡","\\equiv",!0);c(f,g,w,"≺","\\prec",!0);c(f,g,w,"≻","\\succ",!0);c(f,g,w,"∼","\\sim",!0);c(f,g,w,"⊥","\\perp");c(f,g,w,"⪯","\\preceq",!0);c(f,g,w,"⪰","\\succeq",!0);c(f,g,w,"≃","\\simeq",!0);c(f,g,w,"∣","\\mid",!0);c(f,g,w,"≪","\\ll",!0);c(f,g,w,"≫","\\gg",!0);c(f,g,w,"≍","\\asymp",!0);c(f,g,w,"∥","\\parallel");c(f,g,w,"⋈","\\bowtie",!0);c(f,g,w,"⌣","\\smile",!0);c(f,g,w,"⊑","\\sqsubseteq",!0);c(f,g,w,"⊒","\\sqsupseteq",!0);c(f,g,w,"≐","\\doteq",!0);c(f,g,w,"⌢","\\frown",!0);c(f,g,w,"∋","\\ni",!0);c(f,g,w,"∝","\\propto",!0);c(f,g,w,"⊢","\\vdash",!0);c(f,g,w,"⊣","\\dashv",!0);c(f,g,w,"∋","\\owns");c(f,g,Gr,".","\\ldotp");c(f,g,Gr,"⋅","\\cdotp");c(f,g,Gr,"⋅","·");c(O,g,M,"⋅","·");c(f,g,M,"#","\\#");c(O,g,M,"#","\\#");c(f,g,M,"&","\\&");c(O,g,M,"&","\\&");c(f,g,M,"ℵ","\\aleph",!0);c(f,g,M,"∀","\\forall",!0);c(f,g,M,"ℏ","\\hbar",!0);c(f,g,M,"∃","\\exists",!0);c(f,g,M,"∇","\\nabla",!0);c(f,g,M,"♭","\\flat",!0);c(f,g,M,"ℓ","\\ell",!0);c(f,g,M,"♮","\\natural",!0);c(f,g,M,"♣","\\clubsuit",!0);c(f,g,M,"℘","\\wp",!0);c(f,g,M,"♯","\\sharp",!0);c(f,g,M,"♢","\\diamondsuit",!0);c(f,g,M,"ℜ","\\Re",!0);c(f,g,M,"♡","\\heartsuit",!0);c(f,g,M,"ℑ","\\Im",!0);c(f,g,M,"♠","\\spadesuit",!0);c(f,g,M,"§","\\S",!0);c(O,g,M,"§","\\S");c(f,g,M,"¶","\\P",!0);c(O,g,M,"¶","\\P");c(f,g,M,"†","\\dag");c(O,g,M,"†","\\dag");c(O,g,M,"†","\\textdagger");c(f,g,M,"‡","\\ddag");c(O,g,M,"‡","\\ddag");c(O,g,M,"‡","\\textdaggerdbl");c(f,g,Ke,"⎱","\\rmoustache",!0);c(f,g,lt,"⎰","\\lmoustache",!0);c(f,g,Ke,"⟯","\\rgroup",!0);c(f,g,lt,"⟮","\\lgroup",!0);c(f,g,Q,"∓","\\mp",!0);c(f,g,Q,"⊖","\\ominus",!0);c(f,g,Q,"⊎","\\uplus",!0);c(f,g,Q,"⊓","\\sqcap",!0);c(f,g,Q,"∗","\\ast");c(f,g,Q,"⊔","\\sqcup",!0);c(f,g,Q,"◯","\\bigcirc",!0);c(f,g,Q,"∙","\\bullet",!0);c(f,g,Q,"‡","\\ddagger");c(f,g,Q,"≀","\\wr",!0);c(f,g,Q,"⨿","\\amalg");c(f,g,Q,"&","\\And");c(f,g,w,"⟵","\\longleftarrow",!0);c(f,g,w,"⇐","\\Leftarrow",!0);c(f,g,w,"⟸","\\Longleftarrow",!0);c(f,g,w,"⟶","\\longrightarrow",!0);c(f,g,w,"⇒","\\Rightarrow",!0);c(f,g,w,"⟹","\\Longrightarrow",!0);c(f,g,w,"↔","\\leftrightarrow",!0);c(f,g,w,"⟷","\\longleftrightarrow",!0);c(f,g,w,"⇔","\\Leftrightarrow",!0);c(f,g,w,"⟺","\\Longleftrightarrow",!0);c(f,g,w,"↦","\\mapsto",!0);c(f,g,w,"⟼","\\longmapsto",!0);c(f,g,w,"↗","\\nearrow",!0);c(f,g,w,"↩","\\hookleftarrow",!0);c(f,g,w,"↪","\\hookrightarrow",!0);c(f,g,w,"↘","\\searrow",!0);c(f,g,w,"↼","\\leftharpoonup",!0);c(f,g,w,"⇀","\\rightharpoonup",!0);c(f,g,w,"↙","\\swarrow",!0);c(f,g,w,"↽","\\leftharpoondown",!0);c(f,g,w,"⇁","\\rightharpoondown",!0);c(f,g,w,"↖","\\nwarrow",!0);c(f,g,w,"⇌","\\rightleftharpoons",!0);c(f,v,w,"≮","\\nless",!0);c(f,v,w,"","\\@nleqslant");c(f,v,w,"","\\@nleqq");c(f,v,w,"⪇","\\lneq",!0);c(f,v,w,"≨","\\lneqq",!0);c(f,v,w,"","\\@lvertneqq");c(f,v,w,"⋦","\\lnsim",!0);c(f,v,w,"⪉","\\lnapprox",!0);c(f,v,w,"⊀","\\nprec",!0);c(f,v,w,"⋠","\\npreceq",!0);c(f,v,w,"⋨","\\precnsim",!0);c(f,v,w,"⪹","\\precnapprox",!0);c(f,v,w,"≁","\\nsim",!0);c(f,v,w,"","\\@nshortmid");c(f,v,w,"∤","\\nmid",!0);c(f,v,w,"⊬","\\nvdash",!0);c(f,v,w,"⊭","\\nvDash",!0);c(f,v,w,"⋪","\\ntriangleleft");c(f,v,w,"⋬","\\ntrianglelefteq",!0);c(f,v,w,"⊊","\\subsetneq",!0);c(f,v,w,"","\\@varsubsetneq");c(f,v,w,"⫋","\\subsetneqq",!0);c(f,v,w,"","\\@varsubsetneqq");c(f,v,w,"≯","\\ngtr",!0);c(f,v,w,"","\\@ngeqslant");c(f,v,w,"","\\@ngeqq");c(f,v,w,"⪈","\\gneq",!0);c(f,v,w,"≩","\\gneqq",!0);c(f,v,w,"","\\@gvertneqq");c(f,v,w,"⋧","\\gnsim",!0);c(f,v,w,"⪊","\\gnapprox",!0);c(f,v,w,"⊁","\\nsucc",!0);c(f,v,w,"⋡","\\nsucceq",!0);c(f,v,w,"⋩","\\succnsim",!0);c(f,v,w,"⪺","\\succnapprox",!0);c(f,v,w,"≆","\\ncong",!0);c(f,v,w,"","\\@nshortparallel");c(f,v,w,"∦","\\nparallel",!0);c(f,v,w,"⊯","\\nVDash",!0);c(f,v,w,"⋫","\\ntriangleright");c(f,v,w,"⋭","\\ntrianglerighteq",!0);c(f,v,w,"","\\@nsupseteqq");c(f,v,w,"⊋","\\supsetneq",!0);c(f,v,w,"","\\@varsupsetneq");c(f,v,w,"⫌","\\supsetneqq",!0);c(f,v,w,"","\\@varsupsetneqq");c(f,v,w,"⊮","\\nVdash",!0);c(f,v,w,"⪵","\\precneqq",!0);c(f,v,w,"⪶","\\succneqq",!0);c(f,v,w,"","\\@nsubseteqq");c(f,v,Q,"⊴","\\unlhd");c(f,v,Q,"⊵","\\unrhd");c(f,v,w,"↚","\\nleftarrow",!0);c(f,v,w,"↛","\\nrightarrow",!0);c(f,v,w,"⇍","\\nLeftarrow",!0);c(f,v,w,"⇏","\\nRightarrow",!0);c(f,v,w,"↮","\\nleftrightarrow",!0);c(f,v,w,"⇎","\\nLeftrightarrow",!0);c(f,v,w,"△","\\vartriangle");c(f,v,M,"ℏ","\\hslash");c(f,v,M,"▽","\\triangledown");c(f,v,M,"◊","\\lozenge");c(f,v,M,"Ⓢ","\\circledS");c(f,v,M,"®","\\circledR");c(O,v,M,"®","\\circledR");c(f,v,M,"∡","\\measuredangle",!0);c(f,v,M,"∄","\\nexists");c(f,v,M,"℧","\\mho");c(f,v,M,"Ⅎ","\\Finv",!0);c(f,v,M,"⅁","\\Game",!0);c(f,v,M,"‵","\\backprime");c(f,v,M,"▲","\\blacktriangle");c(f,v,M,"▼","\\blacktriangledown");c(f,v,M,"■","\\blacksquare");c(f,v,M,"⧫","\\blacklozenge");c(f,v,M,"★","\\bigstar");c(f,v,M,"∢","\\sphericalangle",!0);c(f,v,M,"∁","\\complement",!0);c(f,v,M,"ð","\\eth",!0);c(O,g,M,"ð","ð");c(f,v,M,"╱","\\diagup");c(f,v,M,"╲","\\diagdown");c(f,v,M,"□","\\square");c(f,v,M,"□","\\Box");c(f,v,M,"◊","\\Diamond");c(f,v,M,"¥","\\yen",!0);c(O,v,M,"¥","\\yen",!0);c(f,v,M,"✓","\\checkmark",!0);c(O,v,M,"✓","\\checkmark");c(f,v,M,"ℶ","\\beth",!0);c(f,v,M,"ℸ","\\daleth",!0);c(f,v,M,"ℷ","\\gimel",!0);c(f,v,M,"ϝ","\\digamma",!0);c(f,v,M,"ϰ","\\varkappa");c(f,v,lt,"┌","\\@ulcorner",!0);c(f,v,Ke,"┐","\\@urcorner",!0);c(f,v,lt,"└","\\@llcorner",!0);c(f,v,Ke,"┘","\\@lrcorner",!0);c(f,v,w,"≦","\\leqq",!0);c(f,v,w,"⩽","\\leqslant",!0);c(f,v,w,"⪕","\\eqslantless",!0);c(f,v,w,"≲","\\lesssim",!0);c(f,v,w,"⪅","\\lessapprox",!0);c(f,v,w,"≊","\\approxeq",!0);c(f,v,Q,"⋖","\\lessdot");c(f,v,w,"⋘","\\lll",!0);c(f,v,w,"≶","\\lessgtr",!0);c(f,v,w,"⋚","\\lesseqgtr",!0);c(f,v,w,"⪋","\\lesseqqgtr",!0);c(f,v,w,"≑","\\doteqdot");c(f,v,w,"≓","\\risingdotseq",!0);c(f,v,w,"≒","\\fallingdotseq",!0);c(f,v,w,"∽","\\backsim",!0);c(f,v,w,"⋍","\\backsimeq",!0);c(f,v,w,"⫅","\\subseteqq",!0);c(f,v,w,"⋐","\\Subset",!0);c(f,v,w,"⊏","\\sqsubset",!0);c(f,v,w,"≼","\\preccurlyeq",!0);c(f,v,w,"⋞","\\curlyeqprec",!0);c(f,v,w,"≾","\\precsim",!0);c(f,v,w,"⪷","\\precapprox",!0);c(f,v,w,"⊲","\\vartriangleleft");c(f,v,w,"⊴","\\trianglelefteq");c(f,v,w,"⊨","\\vDash",!0);c(f,v,w,"⊪","\\Vvdash",!0);c(f,v,w,"⌣","\\smallsmile");c(f,v,w,"⌢","\\smallfrown");c(f,v,w,"≏","\\bumpeq",!0);c(f,v,w,"≎","\\Bumpeq",!0);c(f,v,w,"≧","\\geqq",!0);c(f,v,w,"⩾","\\geqslant",!0);c(f,v,w,"⪖","\\eqslantgtr",!0);c(f,v,w,"≳","\\gtrsim",!0);c(f,v,w,"⪆","\\gtrapprox",!0);c(f,v,Q,"⋗","\\gtrdot");c(f,v,w,"⋙","\\ggg",!0);c(f,v,w,"≷","\\gtrless",!0);c(f,v,w,"⋛","\\gtreqless",!0);c(f,v,w,"⪌","\\gtreqqless",!0);c(f,v,w,"≖","\\eqcirc",!0);c(f,v,w,"≗","\\circeq",!0);c(f,v,w,"≜","\\triangleq",!0);c(f,v,w,"∼","\\thicksim");c(f,v,w,"≈","\\thickapprox");c(f,v,w,"⫆","\\supseteqq",!0);c(f,v,w,"⋑","\\Supset",!0);c(f,v,w,"⊐","\\sqsupset",!0);c(f,v,w,"≽","\\succcurlyeq",!0);c(f,v,w,"⋟","\\curlyeqsucc",!0);c(f,v,w,"≿","\\succsim",!0);c(f,v,w,"⪸","\\succapprox",!0);c(f,v,w,"⊳","\\vartriangleright");c(f,v,w,"⊵","\\trianglerighteq");c(f,v,w,"⊩","\\Vdash",!0);c(f,v,w,"∣","\\shortmid");c(f,v,w,"∥","\\shortparallel");c(f,v,w,"≬","\\between",!0);c(f,v,w,"⋔","\\pitchfork",!0);c(f,v,w,"∝","\\varpropto");c(f,v,w,"◀","\\blacktriangleleft");c(f,v,w,"∴","\\therefore",!0);c(f,v,w,"∍","\\backepsilon");c(f,v,w,"▶","\\blacktriangleright");c(f,v,w,"∵","\\because",!0);c(f,v,w,"⋘","\\llless");c(f,v,w,"⋙","\\gggtr");c(f,v,Q,"⊲","\\lhd");c(f,v,Q,"⊳","\\rhd");c(f,v,w,"≂","\\eqsim",!0);c(f,g,w,"⋈","\\Join");c(f,v,w,"≑","\\Doteq",!0);c(f,v,Q,"∔","\\dotplus",!0);c(f,v,Q,"∖","\\smallsetminus");c(f,v,Q,"⋒","\\Cap",!0);c(f,v,Q,"⋓","\\Cup",!0);c(f,v,Q,"⩞","\\doublebarwedge",!0);c(f,v,Q,"⊟","\\boxminus",!0);c(f,v,Q,"⊞","\\boxplus",!0);c(f,v,Q,"⋇","\\divideontimes",!0);c(f,v,Q,"⋉","\\ltimes",!0);c(f,v,Q,"⋊","\\rtimes",!0);c(f,v,Q,"⋋","\\leftthreetimes",!0);c(f,v,Q,"⋌","\\rightthreetimes",!0);c(f,v,Q,"⋏","\\curlywedge",!0);c(f,v,Q,"⋎","\\curlyvee",!0);c(f,v,Q,"⊝","\\circleddash",!0);c(f,v,Q,"⊛","\\circledast",!0);c(f,v,Q,"⋅","\\centerdot");c(f,v,Q,"⊺","\\intercal",!0);c(f,v,Q,"⋒","\\doublecap");c(f,v,Q,"⋓","\\doublecup");c(f,v,Q,"⊠","\\boxtimes",!0);c(f,v,w,"⇢","\\dashrightarrow",!0);c(f,v,w,"⇠","\\dashleftarrow",!0);c(f,v,w,"⇇","\\leftleftarrows",!0);c(f,v,w,"⇆","\\leftrightarrows",!0);c(f,v,w,"⇚","\\Lleftarrow",!0);c(f,v,w,"↞","\\twoheadleftarrow",!0);c(f,v,w,"↢","\\leftarrowtail",!0);c(f,v,w,"↫","\\looparrowleft",!0);c(f,v,w,"⇋","\\leftrightharpoons",!0);c(f,v,w,"↶","\\curvearrowleft",!0);c(f,v,w,"↺","\\circlearrowleft",!0);c(f,v,w,"↰","\\Lsh",!0);c(f,v,w,"⇈","\\upuparrows",!0);c(f,v,w,"↿","\\upharpoonleft",!0);c(f,v,w,"⇃","\\downharpoonleft",!0);c(f,g,w,"⊶","\\origof",!0);c(f,g,w,"⊷","\\imageof",!0);c(f,v,w,"⊸","\\multimap",!0);c(f,v,w,"↭","\\leftrightsquigarrow",!0);c(f,v,w,"⇉","\\rightrightarrows",!0);c(f,v,w,"⇄","\\rightleftarrows",!0);c(f,v,w,"↠","\\twoheadrightarrow",!0);c(f,v,w,"↣","\\rightarrowtail",!0);c(f,v,w,"↬","\\looparrowright",!0);c(f,v,w,"↷","\\curvearrowright",!0);c(f,v,w,"↻","\\circlearrowright",!0);c(f,v,w,"↱","\\Rsh",!0);c(f,v,w,"⇊","\\downdownarrows",!0);c(f,v,w,"↾","\\upharpoonright",!0);c(f,v,w,"⇂","\\downharpoonright",!0);c(f,v,w,"⇝","\\rightsquigarrow",!0);c(f,v,w,"⇝","\\leadsto");c(f,v,w,"⇛","\\Rrightarrow",!0);c(f,v,w,"↾","\\restriction");c(f,g,M,"‘","`");c(f,g,M,"$","\\$");c(O,g,M,"$","\\$");c(O,g,M,"$","\\textdollar");c(f,g,M,"%","\\%");c(O,g,M,"%","\\%");c(f,g,M,"_","\\_");c(O,g,M,"_","\\_");c(O,g,M,"_","\\textunderscore");c(f,g,M,"∠","\\angle",!0);c(f,g,M,"∞","\\infty",!0);c(f,g,M,"′","\\prime");c(f,g,M,"△","\\triangle");c(f,g,M,"Γ","\\Gamma",!0);c(f,g,M,"Δ","\\Delta",!0);c(f,g,M,"Θ","\\Theta",!0);c(f,g,M,"Λ","\\Lambda",!0);c(f,g,M,"Ξ","\\Xi",!0);c(f,g,M,"Π","\\Pi",!0);c(f,g,M,"Σ","\\Sigma",!0);c(f,g,M,"Υ","\\Upsilon",!0);c(f,g,M,"Φ","\\Phi",!0);c(f,g,M,"Ψ","\\Psi",!0);c(f,g,M,"Ω","\\Omega",!0);c(f,g,M,"A","Α");c(f,g,M,"B","Β");c(f,g,M,"E","Ε");c(f,g,M,"Z","Ζ");c(f,g,M,"H","Η");c(f,g,M,"I","Ι");c(f,g,M,"K","Κ");c(f,g,M,"M","Μ");c(f,g,M,"N","Ν");c(f,g,M,"O","Ο");c(f,g,M,"P","Ρ");c(f,g,M,"T","Τ");c(f,g,M,"X","Χ");c(f,g,M,"¬","\\neg",!0);c(f,g,M,"¬","\\lnot");c(f,g,M,"⊤","\\top");c(f,g,M,"⊥","\\bot");c(f,g,M,"∅","\\emptyset");c(f,v,M,"∅","\\varnothing");c(f,g,re,"α","\\alpha",!0);c(f,g,re,"β","\\beta",!0);c(f,g,re,"γ","\\gamma",!0);c(f,g,re,"δ","\\delta",!0);c(f,g,re,"ϵ","\\epsilon",!0);c(f,g,re,"ζ","\\zeta",!0);c(f,g,re,"η","\\eta",!0);c(f,g,re,"θ","\\theta",!0);c(f,g,re,"ι","\\iota",!0);c(f,g,re,"κ","\\kappa",!0);c(f,g,re,"λ","\\lambda",!0);c(f,g,re,"μ","\\mu",!0);c(f,g,re,"ν","\\nu",!0);c(f,g,re,"ξ","\\xi",!0);c(f,g,re,"ο","\\omicron",!0);c(f,g,re,"π","\\pi",!0);c(f,g,re,"ρ","\\rho",!0);c(f,g,re,"σ","\\sigma",!0);c(f,g,re,"τ","\\tau",!0);c(f,g,re,"υ","\\upsilon",!0);c(f,g,re,"ϕ","\\phi",!0);c(f,g,re,"χ","\\chi",!0);c(f,g,re,"ψ","\\psi",!0);c(f,g,re,"ω","\\omega",!0);c(f,g,re,"ε","\\varepsilon",!0);c(f,g,re,"ϑ","\\vartheta",!0);c(f,g,re,"ϖ","\\varpi",!0);c(f,g,re,"ϱ","\\varrho",!0);c(f,g,re,"ς","\\varsigma",!0);c(f,g,re,"φ","\\varphi",!0);c(f,g,Q,"∗","*",!0);c(f,g,Q,"+","+");c(f,g,Q,"−","-",!0);c(f,g,Q,"⋅","\\cdot",!0);c(f,g,Q,"∘","\\circ",!0);c(f,g,Q,"÷","\\div",!0);c(f,g,Q,"±","\\pm",!0);c(f,g,Q,"×","\\times",!0);c(f,g,Q,"∩","\\cap",!0);c(f,g,Q,"∪","\\cup",!0);c(f,g,Q,"∖","\\setminus",!0);c(f,g,Q,"∧","\\land");c(f,g,Q,"∨","\\lor");c(f,g,Q,"∧","\\wedge",!0);c(f,g,Q,"∨","\\vee",!0);c(f,g,M,"√","\\surd");c(f,g,lt,"⟨","\\langle",!0);c(f,g,lt,"∣","\\lvert");c(f,g,lt,"∥","\\lVert");c(f,g,Ke,"?","?");c(f,g,Ke,"!","!");c(f,g,Ke,"⟩","\\rangle",!0);c(f,g,Ke,"∣","\\rvert");c(f,g,Ke,"∥","\\rVert");c(f,g,w,"=","=");c(f,g,w,":",":");c(f,g,w,"≈","\\approx",!0);c(f,g,w,"≅","\\cong",!0);c(f,g,w,"≥","\\ge");c(f,g,w,"≥","\\geq",!0);c(f,g,w,"←","\\gets");c(f,g,w,">","\\gt",!0);c(f,g,w,"∈","\\in",!0);c(f,g,w,"","\\@not");c(f,g,w,"⊂","\\subset",!0);c(f,g,w,"⊃","\\supset",!0);c(f,g,w,"⊆","\\subseteq",!0);c(f,g,w,"⊇","\\supseteq",!0);c(f,v,w,"⊈","\\nsubseteq",!0);c(f,v,w,"⊉","\\nsupseteq",!0);c(f,g,w,"⊨","\\models");c(f,g,w,"←","\\leftarrow",!0);c(f,g,w,"≤","\\le");c(f,g,w,"≤","\\leq",!0);c(f,g,w,"<","\\lt",!0);c(f,g,w,"→","\\rightarrow",!0);c(f,g,w,"→","\\to");c(f,v,w,"≱","\\ngeq",!0);c(f,v,w,"≰","\\nleq",!0);c(f,g,It," ","\\ ");c(f,g,It," ","\\space");c(f,g,It," ","\\nobreakspace");c(O,g,It," ","\\ ");c(O,g,It," "," ");c(O,g,It," ","\\space");c(O,g,It," ","\\nobreakspace");c(f,g,It,null,"\\nobreak");c(f,g,It,null,"\\allowbreak");c(f,g,Gr,",",",");c(f,g,Gr,";",";");c(f,v,Q,"⊼","\\barwedge",!0);c(f,v,Q,"⊻","\\veebar",!0);c(f,g,Q,"⊙","\\odot",!0);c(f,g,Q,"⊕","\\oplus",!0);c(f,g,Q,"⊗","\\otimes",!0);c(f,g,M,"∂","\\partial",!0);c(f,g,Q,"⊘","\\oslash",!0);c(f,v,Q,"⊚","\\circledcirc",!0);c(f,v,Q,"⊡","\\boxdot",!0);c(f,g,Q,"△","\\bigtriangleup");c(f,g,Q,"▽","\\bigtriangledown");c(f,g,Q,"†","\\dagger");c(f,g,Q,"⋄","\\diamond");c(f,g,Q,"⋆","\\star");c(f,g,Q,"◃","\\triangleleft");c(f,g,Q,"▹","\\triangleright");c(f,g,lt,"{","\\{");c(O,g,M,"{","\\{");c(O,g,M,"{","\\textbraceleft");c(f,g,Ke,"}","\\}");c(O,g,M,"}","\\}");c(O,g,M,"}","\\textbraceright");c(f,g,lt,"{","\\lbrace");c(f,g,Ke,"}","\\rbrace");c(f,g,lt,"[","\\lbrack",!0);c(O,g,M,"[","\\lbrack",!0);c(f,g,Ke,"]","\\rbrack",!0);c(O,g,M,"]","\\rbrack",!0);c(f,g,lt,"(","\\lparen",!0);c(f,g,Ke,")","\\rparen",!0);c(O,g,M,"<","\\textless",!0);c(O,g,M,">","\\textgreater",!0);c(f,g,lt,"⌊","\\lfloor",!0);c(f,g,Ke,"⌋","\\rfloor",!0);c(f,g,lt,"⌈","\\lceil",!0);c(f,g,Ke,"⌉","\\rceil",!0);c(f,g,M,"\\","\\backslash");c(f,g,M,"∣","|");c(f,g,M,"∣","\\vert");c(O,g,M,"|","\\textbar",!0);c(f,g,M,"∥","\\|");c(f,g,M,"∥","\\Vert");c(O,g,M,"∥","\\textbardbl");c(O,g,M,"~","\\textasciitilde");c(O,g,M,"\\","\\textbackslash");c(O,g,M,"^","\\textasciicircum");c(f,g,w,"↑","\\uparrow",!0);c(f,g,w,"⇑","\\Uparrow",!0);c(f,g,w,"↓","\\downarrow",!0);c(f,g,w,"⇓","\\Downarrow",!0);c(f,g,w,"↕","\\updownarrow",!0);c(f,g,w,"⇕","\\Updownarrow",!0);c(f,g,Fe,"∐","\\coprod");c(f,g,Fe,"⋁","\\bigvee");c(f,g,Fe,"⋀","\\bigwedge");c(f,g,Fe,"⨄","\\biguplus");c(f,g,Fe,"⋂","\\bigcap");c(f,g,Fe,"⋃","\\bigcup");c(f,g,Fe,"∫","\\int");c(f,g,Fe,"∫","\\intop");c(f,g,Fe,"∬","\\iint");c(f,g,Fe,"∭","\\iiint");c(f,g,Fe,"∏","\\prod");c(f,g,Fe,"∑","\\sum");c(f,g,Fe,"⨂","\\bigotimes");c(f,g,Fe,"⨁","\\bigoplus");c(f,g,Fe,"⨀","\\bigodot");c(f,g,Fe,"∮","\\oint");c(f,g,Fe,"∯","\\oiint");c(f,g,Fe,"∰","\\oiiint");c(f,g,Fe,"⨆","\\bigsqcup");c(f,g,Fe,"∫","\\smallint");c(O,g,kr,"…","\\textellipsis");c(f,g,kr,"…","\\mathellipsis");c(O,g,kr,"…","\\ldots",!0);c(f,g,kr,"…","\\ldots",!0);c(f,g,kr,"⋯","\\@cdots",!0);c(f,g,kr,"⋱","\\ddots",!0);c(f,g,M,"⋮","\\varvdots");c(O,g,M,"⋮","\\varvdots");c(f,g,Te,"ˊ","\\acute");c(f,g,Te,"ˋ","\\grave");c(f,g,Te,"¨","\\ddot");c(f,g,Te,"~","\\tilde");c(f,g,Te,"ˉ","\\bar");c(f,g,Te,"˘","\\breve");c(f,g,Te,"ˇ","\\check");c(f,g,Te,"^","\\hat");c(f,g,Te,"⃗","\\vec");c(f,g,Te,"˙","\\dot");c(f,g,Te,"˚","\\mathring");c(f,g,re,"","\\@imath");c(f,g,re,"","\\@jmath");c(f,g,M,"ı","ı");c(f,g,M,"ȷ","ȷ");c(O,g,M,"ı","\\i",!0);c(O,g,M,"ȷ","\\j",!0);c(O,g,M,"ß","\\ss",!0);c(O,g,M,"æ","\\ae",!0);c(O,g,M,"œ","\\oe",!0);c(O,g,M,"ø","\\o",!0);c(O,g,M,"Æ","\\AE",!0);c(O,g,M,"Œ","\\OE",!0);c(O,g,M,"Ø","\\O",!0);c(O,g,Te,"ˊ","\\'");c(O,g,Te,"ˋ","\\`");c(O,g,Te,"ˆ","\\^");c(O,g,Te,"˜","\\~");c(O,g,Te,"ˉ","\\=");c(O,g,Te,"˘","\\u");c(O,g,Te,"˙","\\.");c(O,g,Te,"¸","\\c");c(O,g,Te,"˚","\\r");c(O,g,Te,"ˇ","\\v");c(O,g,Te,"¨",'\\"');c(O,g,Te,"˝","\\H");c(O,g,Te,"◯","\\textcircled");var Ss={"--":!0,"---":!0,"``":!0,"''":!0};c(O,g,M,"–","--",!0);c(O,g,M,"–","\\textendash");c(O,g,M,"—","---",!0);c(O,g,M,"—","\\textemdash");c(O,g,M,"‘","`",!0);c(O,g,M,"‘","\\textquoteleft");c(O,g,M,"’","'",!0);c(O,g,M,"’","\\textquoteright");c(O,g,M,"“","``",!0);c(O,g,M,"“","\\textquotedblleft");c(O,g,M,"”","''",!0);c(O,g,M,"”","\\textquotedblright");c(f,g,M,"°","\\degree",!0);c(O,g,M,"°","\\degree");c(O,g,M,"°","\\textdegree",!0);c(f,g,M,"£","\\pounds");c(f,g,M,"£","\\mathsterling",!0);c(O,g,M,"£","\\pounds");c(O,g,M,"£","\\textsterling",!0);c(f,v,M,"✠","\\maltese");c(O,v,M,"✠","\\maltese");var Ra='0123456789/@."';for(var l0=0;l0<Ra.length;l0++){var Ba=Ra.charAt(l0);c(f,g,M,Ba,Ba)}var Fa='0123456789!@*()-=+";:?/.,';for(var s0=0;s0<Fa.length;s0++){var Pa=Fa.charAt(s0);c(O,g,M,Pa,Pa)}var yn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var o0=0;o0<yn.length;o0++){var Qr=yn.charAt(o0);c(f,g,re,Qr,Qr),c(O,g,M,Qr,Qr)}c(f,v,M,"C","ℂ");c(O,v,M,"C","ℂ");c(f,v,M,"H","ℍ");c(O,v,M,"H","ℍ");c(f,v,M,"N","ℕ");c(O,v,M,"N","ℕ");c(f,v,M,"P","ℙ");c(O,v,M,"P","ℙ");c(f,v,M,"Q","ℚ");c(O,v,M,"Q","ℚ");c(f,v,M,"R","ℝ");c(O,v,M,"R","ℝ");c(f,v,M,"Z","ℤ");c(O,v,M,"Z","ℤ");c(f,g,re,"h","ℎ");c(O,g,re,"h","ℎ");var ae="";for(var Ge=0;Ge<yn.length;Ge++){var Ie=yn.charAt(Ge);ae=String.fromCharCode(55349,56320+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56372+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56424+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56580+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56684+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56736+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56788+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56840+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56944+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),Ge<26&&(ae=String.fromCharCode(55349,56632+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae),ae=String.fromCharCode(55349,56476+Ge),c(f,g,re,Ie,ae),c(O,g,M,Ie,ae))}ae="𝕜";c(f,g,re,"k",ae);c(O,g,M,"k",ae);for(var Kt=0;Kt<10;Kt++){var Ot=Kt.toString();ae=String.fromCharCode(55349,57294+Kt),c(f,g,re,Ot,ae),c(O,g,M,Ot,ae),ae=String.fromCharCode(55349,57314+Kt),c(f,g,re,Ot,ae),c(O,g,M,Ot,ae),ae=String.fromCharCode(55349,57324+Kt),c(f,g,re,Ot,ae),c(O,g,M,Ot,ae),ae=String.fromCharCode(55349,57334+Kt),c(f,g,re,Ot,ae),c(O,g,M,Ot,ae)}var H0="ÐÞþ";for(var u0=0;u0<H0.length;u0++){var en=H0.charAt(u0);c(f,g,re,en,en),c(O,g,M,en,en)}var tn=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],La=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],nf=(e,t)=>{var r=e.charCodeAt(0),n=e.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=t==="math"?0:1;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return[tn[l][2],tn[l][a]]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return[La[s][2],La[s][a]]}else{if(i===120485||i===120486)return[tn[0][2],tn[0][a]];if(120486<i&&i<120782)return["",""];throw new $("Unsupported character: "+e)}},Dn=function(t,r,n){if(Ae[n][t]){var i=Ae[n][t].replace;i&&(t=i)}return{value:t,metrics:vi(t,r,n)}},We=function(t,r,n,i,a){var l=Dn(t,r,n),s=l.metrics;t=l.value;var o;if(s){var u=s.italic;(n==="text"||i&&i.font==="mathit")&&(u=0),o=new at(t,s.height,s.depth,u,s.skew,s.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),o=new at(t,0,0,0,0,0,a);if(i){o.maxFontSize=i.sizeMultiplier,i.style.isTight()&&o.classes.push("mtight");var h=i.getColor();h&&(o.style.color=h)}return o},wi=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Dn(t,"Main-Bold",r).metrics?We(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||Ae[r][t].font==="main"?We(t,"Main-Regular",r,n,i):We(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},af=function(t,r,n,i,a){return a!=="textord"&&Dn(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Nn=function(t,r,n){var i=t.mode,a=t.text,l=["mord"],s=i==="math"||i==="text"&&r.font,o=s?r.font:r.fontFamily,u="",h="";if(a.charCodeAt(0)===55349&&([u,h]=nf(a,i)),u.length>0)return We(a,u,i,r,l.concat(h));if(o){var m,d;if(o==="boldsymbol"){var p=af(a,i,r,l,n);m=p.fontName,d=[p.fontClass]}else s?(m=$0[o].fontName,d=[o]):(m=rn(o,r.fontWeight,r.fontShape),d=[o,r.fontWeight,r.fontShape]);if(Dn(a,m,i).metrics)return We(a,m,i,r,l.concat(d));if(Ss.hasOwnProperty(a)&&m.slice(0,10)==="Typewriter"){for(var y=[],x=0;x<a.length;x++)y.push(We(a[x],m,i,r,l.concat(d)));return Dt(y)}}if(n==="mathord")return We(a,"Math-Italic",i,r,l.concat(["mathnormal"]));if(n==="textord"){var T=Ae[i][a]&&Ae[i][a].font;if(T==="ams"){var S=rn("amsrm",r.fontWeight,r.fontShape);return We(a,S,i,r,l.concat("amsrm",r.fontWeight,r.fontShape))}else if(T==="main"||!T){var C=rn("textrm",r.fontWeight,r.fontShape);return We(a,C,i,r,l.concat(r.fontWeight,r.fontShape))}else{var I=rn(T,r.fontWeight,r.fontShape);return We(a,I,i,r,l.concat(I,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},lf=(e,t)=>{if(jt(e.classes)!==jt(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},As=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof at&&n instanceof at&&lf(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,e.splice(t+1,1),t--)}return e},ki=function(t){for(var r=0,n=0,i=0,a=0;a<t.children.length;a++){var l=t.children[a];l.height>r&&(r=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>i&&(i=l.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},H=function(t,r,n,i){var a=new wr(t,r,n,i);return ki(a),a},Ht=(e,t,r,n)=>new wr(e,t,r,n),pr=function(t,r,n){var i=H([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=W(i.height),i.maxFontSize=1,i},sf=function(t,r,n,i){var a=new In(t,r,n,i);return ki(a),a},Dt=function(t){var r=new vr(t);return ki(r),r},gr=function(t,r){return t instanceof vr?H([],[t],r):t},of=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,l=1;l<r.length;l++){var s=-r[l].shift-a-r[l].elem.depth,o=s-(r[l-1].elem.height+r[l-1].elem.depth);a=a+s,n.push({type:"kern",size:o}),n.push(r[l])}return{children:n,depth:i}}var u;if(t.positionType==="top"){for(var h=t.positionData,m=0;m<t.children.length;m++){var d=t.children[m];h-=d.type==="kern"?d.size:d.elem.height+d.elem.depth}u=h}else if(t.positionType==="bottom")u=-t.positionData;else{var p=t.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-p.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-p.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},pe=function(t,r){for(var{children:n,depth:i}=of(t),a=0,l=0;l<n.length;l++){var s=n[l];if(s.type==="elem"){var o=s.elem;a=Math.max(a,o.maxFontSize,o.height)}}a+=2;var u=H(["pstrut"],[]);u.style.height=W(a);for(var h=[],m=i,d=i,p=i,y=0;y<n.length;y++){var x=n[y];if(x.type==="kern")p+=x.size;else{var T=x.elem,S=x.wrapperClasses||[],C=x.wrapperStyle||{},I=H(S,[u,T],void 0,C);I.style.top=W(-a-p-T.depth),x.marginLeft&&(I.style.marginLeft=x.marginLeft),x.marginRight&&(I.style.marginRight=x.marginRight),h.push(I),p+=T.height+T.depth}m=Math.min(m,p),d=Math.max(d,p)}var L=H(["vlist"],h);L.style.height=W(d);var V;if(m<0){var E=H([],[]),q=H(["vlist"],[E]);q.style.height=W(-m);var X=H(["vlist-s"],[new at("")]);V=[H(["vlist-r"],[L,X]),H(["vlist-r"],[q])]}else V=[H(["vlist-r"],[L])];var j=H(["vlist-t"],V);return V.length===2&&j.classes.push("vlist-t2"),j.height=d,j.depth=-m,j},Ts=(e,t)=>{var r=H(["mspace"],[],t),n=Me(e,t);return r.style.marginRight=W(n),r},rn=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},$0={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"}},Cs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ms=function(t,r){var[n,i,a]=Cs[t],l=new _t(n),s=new zt([l],{width:W(i),height:W(a),style:"width:"+W(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),o=Ht(["overlay"],[s],r);return o.height=a,o.style.height=W(a),o.style.width=W(i),o},Ce={number:3,unit:"mu"},Zt={number:4,unit:"mu"},Tt={number:5,unit:"mu"},uf={mord:{mop:Ce,mbin:Zt,mrel:Tt,minner:Ce},mop:{mord:Ce,mop:Ce,mrel:Tt,minner:Ce},mbin:{mord:Zt,mop:Zt,mopen:Zt,minner:Zt},mrel:{mord:Tt,mop:Tt,mopen:Tt,minner:Tt},mopen:{},mclose:{mop:Ce,mbin:Zt,mrel:Tt,minner:Ce},mpunct:{mord:Ce,mop:Ce,mrel:Tt,mopen:Ce,mclose:Ce,mpunct:Ce,minner:Ce},minner:{mord:Ce,mop:Ce,mbin:Zt,mrel:Tt,mopen:Ce,mpunct:Ce,minner:Ce}},cf={mord:{mop:Ce},mop:{mord:Ce,mop:Ce},mbin:{},mrel:{},mopen:{},mclose:{mop:Ce},mpunct:{},minner:{mop:Ce}},zs={},xn={},vn={};function J(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},o=0;o<r.length;++o)zs[r[o]]=s;t&&(a&&(xn[t]=a),l&&(vn[t]=l))}function rr(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;J({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var wn=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Re=function(t){return t.type==="ordgroup"?t.body:[t]},hf=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),mf=new Set(["rightmost","mrel","mclose","mpunct"]),ff={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT},df={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Le=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],l=0;l<t.length;l++){var s=ge(t[l],r);if(s instanceof vr){var o=s.children;a.push(...o)}else a.push(s)}if(As(a),!n)return a;var u=r;if(t.length===1){var h=t[0];h.type==="sizing"?u=r.havingSize(h.size):h.type==="styling"&&(u=r.havingStyle(ff[h.style]))}var m=H([i[0]||"leftmost"],[],r),d=H([i[1]||"rightmost"],[],r),p=n==="root";return U0(a,(y,x)=>{var T=x.classes[0],S=y.classes[0];T==="mbin"&&mf.has(S)?x.classes[0]="mord":S==="mbin"&&hf.has(T)&&(y.classes[0]="mord")},{node:m},d,p),U0(a,(y,x)=>{var T,S,C=G0(x),I=G0(y),L=C&&I?y.hasClass("mtight")?(T=cf[C])==null?void 0:T[I]:(S=uf[C])==null?void 0:S[I]:null;if(L)return Ts(L,u)},{node:m},d,p),a},U0=function(t,r,n,i,a){i&&t.push(i);for(var l=0;l<t.length;l++){var s=t[l],o=Es(s);if(o){U0(o.children,r,n,null,a);continue}var u=!s.hasClass("mspace");if(u){var h=r(s,n.node);h&&(n.insertAfter?n.insertAfter(h):(t.unshift(h),l++))}u?n.node=s:a&&s.hasClass("newline")&&(n.node=H(["leftmost"])),n.insertAfter=(m=>d=>{t.splice(m+1,0,d),l++})(l)}i&&t.pop()},Es=function(t){return t instanceof vr||t instanceof In||t instanceof wr&&t.hasClass("enclosing")?t:null},V0=function(t,r){var n=Es(t);if(n){var i=n.children;if(i.length){if(r==="right")return V0(i[i.length-1],"right");if(r==="left")return V0(i[0],"left")}}return t},G0=function(t,r){if(!t)return null;r&&(t=V0(t,r));var n=t.classes[0];return df[n]||null},qr=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return H(r.concat(n))},ge=function(t,r,n){if(!t)return H();if(xn[t.type]){var i=xn[t.type](t,r);if(n&&r.size!==n.size){i=H(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new $("Got group of unknown type: '"+t.type+"'")};function nn(e,t){var r=H(["base"],e,t),n=H(["strut"]);return n.style.height=W(r.height+r.depth),r.depth&&(n.style.verticalAlign=W(-r.depth)),r.children.unshift(n),r}function W0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Le(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],l=[],s=0;s<n.length;s++)if(l.push(n[s]),n[s].hasClass("mbin")||n[s].hasClass("mrel")||n[s].hasClass("allowbreak")){for(var o=!1;s<n.length-1&&n[s+1].hasClass("mspace")&&!n[s+1].hasClass("newline");)s++,l.push(n[s]),n[s].hasClass("nobreak")&&(o=!0);o||(a.push(nn(l,t)),l=[])}else n[s].hasClass("newline")&&(l.pop(),l.length>0&&(a.push(nn(l,t)),l=[]),a.push(n[s]));l.length>0&&a.push(nn(l,t));var u;r?(u=nn(Le(r,t,!0),t),u.classes=["tag"],a.push(u)):i&&a.push(i);var h=H(["katex-html"],a);if(h.setAttribute("aria-hidden","true"),u){var m=u.children[0];m.style.height=W(h.height+h.depth),h.depth&&(m.style.verticalAlign=W(-h.depth))}return h}function Is(e){return new vr(e)}class U{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=jt(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Be&&this.children[n+1]instanceof Be){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Be;)i+=this.children[++n].toText();t.appendChild(new Be(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=He(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+He(jt(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Be{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return He(this.toText())}toText(){return this.text}}class Ds{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",W(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+W(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var pf=new Set(["\\imath","\\jmath"]),gf=new Set(["mrow","mtable"]),ht=function(t,r,n){return Ae[r][t]&&Ae[r][t].replace&&t.charCodeAt(0)!==55349&&!(Ss.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Ae[r][t].replace),new Be(t)},Si=function(t){return t.length===1?t[0]:new U("mrow",t)},Ai=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(pf.has(a))return null;if(Ae[i][a]){var l=Ae[i][a].replace;l&&(a=l)}var s=$0[n].fontName;return vi(a,s,i)?$0[n].variant:null};function c0(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Be&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Be&&r.text===","}else return!1}var st=function(t,r,n){if(t.length===1){var i=we(t[0],r);return n&&i instanceof U&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],l,s=0;s<t.length;s++){var o=we(t[s],r);if(o instanceof U&&l instanceof U){if(o.type==="mtext"&&l.type==="mtext"&&o.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...o.children);continue}else if(o.type==="mn"&&l.type==="mn"){l.children.push(...o.children);continue}else if(c0(o)&&l.type==="mn"){l.children.push(...o.children);continue}else if(o.type==="mn"&&c0(l))o.children=[...l.children,...o.children],a.pop();else if((o.type==="msup"||o.type==="msub")&&o.children.length>=1&&(l.type==="mn"||c0(l))){var u=o.children[0];u instanceof U&&u.type==="mn"&&(u.children=[...l.children,...u.children],a.pop())}else if(l.type==="mi"&&l.children.length===1){var h=l.children[0];if(h instanceof Be&&h.text==="̸"&&(o.type==="mo"||o.type==="mi"||o.type==="mn")){var m=o.children[0];m instanceof Be&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),a.pop())}}}a.push(o),l=o}return a},$t=function(t,r,n){return Si(st(t,r,n))},we=function(t,r){if(!t)return new U("mrow");if(vn[t.type]){var n=vn[t.type](t,r);return n}else throw new $("Got group of unknown type: '"+t.type+"'")};function Oa(e,t,r,n,i){var a=st(e,r),l;a.length===1&&a[0]instanceof U&&gf.has(a[0].type)?l=a[0]:l=new U("mrow",a);var s=new U("annotation",[new Be(t)]);s.setAttribute("encoding","application/x-tex");var o=new U("semantics",[l,s]),u=new U("math",[o]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var h=i?"katex":"katex-mathml";return H([h],[u])}var bf=[[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]],qa=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ja=function(t,r){return r.size<2?t:bf[t-1][r.size-1]};class Ct{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||Ct.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=qa[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){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};return Object.assign(r,t),new Ct(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:ja(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:qa[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=ja(Ct.BASESIZE,t);return this.size===r&&this.textSize===Ct.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ct.BASESIZE?["sizing","reset-size"+this.size,"size"+Ct.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=ef(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ct.BASESIZE=6;var Ns=function(t){return new Ct({style:t.displayMode?se.DISPLAY:se.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Rs=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=H(n,[t])}return t},yf=function(t,r,n){var i=Ns(n),a;if(n.output==="mathml")return Oa(t,r,i,n.displayMode,!0);if(n.output==="html"){var l=W0(t,i);a=H(["katex"],[l])}else{var s=Oa(t,r,i,n.displayMode,!1),o=W0(t,i);a=H(["katex"],[s,o])}return Rs(a,n)},xf=function(t,r,n){var i=Ns(n),a=W0(t,i),l=H(["katex"],[a]);return Rs(l,n)},vf={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Rn=function(t){var r=new U("mo",[new Be(vf[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},wf={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]},kf=new Set(["widehat","widecheck","widetilde","utilde"]),Bn=function(t,r){function n(){var s=4e5,o=t.label.slice(1);if(kf.has(o)){var u=t,h=u.base.type==="ordgroup"?u.base.body.length:1,m,d,p;if(h>5)o==="widehat"||o==="widecheck"?(m=420,s=2364,p=.42,d=o+"4"):(m=312,s=2340,p=.34,d="tilde4");else{var y=[1,1,2,2,3,3][h];o==="widehat"||o==="widecheck"?(s=[0,1062,2364,2364,2364][y],m=[0,239,300,360,420][y],p=[0,.24,.3,.3,.36,.42][y],d=o+y):(s=[0,600,1033,2339,2340][y],m=[0,260,286,306,312][y],p=[0,.26,.286,.3,.306,.34][y],d="tilde"+y)}var x=new _t(d),T=new zt([x],{width:"100%",height:W(p),viewBox:"0 0 "+s+" "+m,preserveAspectRatio:"none"});return{span:Ht([],[T],r),minWidth:0,height:p}}else{var S=[],C=wf[o],[I,L,V]=C,E=V/1e3,q=I.length,X,j;if(q===1){var z=C[3];X=["hide-tail"],j=[z]}else if(q===2)X=["halfarrow-left","halfarrow-right"],j=["xMinYMin","xMaxYMin"];else if(q===3)X=["brace-left","brace-center","brace-right"],j=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
267
|
+
`+q+" children.");for(var P=0;P<q;P++){var R=new _t(I[P]),K=new zt([R],{width:"400em",height:W(E),viewBox:"0 0 "+s+" "+V,preserveAspectRatio:j[P]+" slice"}),_=Ht([X[P]],[K],r);if(q===1)return{span:_,minWidth:L,height:E};_.style.height=W(E),S.push(_)}return{span:H(["stretchy"],S,r),minWidth:L,height:E}}}var{span:i,minWidth:a,height:l}=n();return i.height=l,i.style.height=W(l),a>0&&(i.style.minWidth=W(a)),i},Sf=function(t,r,n,i,a){var l,s=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(l=H(["stretchy",r],[],a),r==="fbox"){var o=a.color&&a.getColor();o&&(l.style.borderColor=o)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new _0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new _0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new zt(u,{width:"100%",height:W(s)});l=Ht([],[h],a)}return l.height=s,l.style.height=W(s),l};function ce(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Fn(e){var t=Pn(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Pn(e){return e&&(e.type==="atom"||rf.hasOwnProperty(e.type))?e:null}var Bs=e=>{if(e instanceof at)return e;if(J4(e)&&e.children.length===1)return Bs(e.children[0])},Ti=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=ce(e.base,"accent"),r=n.base,e.base=r,i=Z4(ge(e,t)),e.base=n):(n=ce(e,"accent"),r=n.base);var a=ge(r,t.havingCrampedStyle()),l=n.isShifty&&Et(r),s=0;if(l){var o,u;s=(o=(u=Bs(a))==null?void 0:u.skew)!=null?o:0}var h=n.label==="\\c",m=h?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),d;if(n.isStretchy)d=Bn(n,t),d=pe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+W(2*s)+")",marginLeft:W(2*s)}:void 0}]});else{var p,y;n.label==="\\vec"?(p=Ms("vec",t),y=Cs.vec[1]):(p=Nn({mode:n.mode,text:n.label},t,"textord"),p=K4(p),p.italic=0,y=p.width,h&&(m+=p.depth)),d=H(["accent-body"],[p]);var x=n.label==="\\textcircled";x&&(d.classes.push("accent-full"),m=a.height);var T=s;x||(T-=y/2),d.style.left=W(T),n.label==="\\textcircled"&&(d.style.top=".2em"),d=pe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-m},{type:"elem",elem:d}]})}var S=H(["mord","accent"],[d],t);return i?(i.children[0]=S,i.height=Math.max(S.height,i.height),i.classes[0]="mord",i):S},Fs=(e,t)=>{var r=e.isStretchy?Rn(e.label):new U("mo",[ht(e.label,e.mode)]),n=new U("mover",[we(e.base,t),r]);return n.setAttribute("accent","true"),n},Af=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));J({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=wn(t[0]),n=!Af.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Ti,mathmlBuilder:Fs});J({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Ti,mathmlBuilder:Fs});J({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=ge(e.base,t),n=Bn(e,t),i=e.label==="\\utilde"?.12:0,a=pe({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return H(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Rn(e.label),n=new U("munder",[we(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var an=e=>{var t=new U("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};J({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=gr(ge(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var l;e.below&&(n=t.havingStyle(r.sub()),l=gr(ge(e.below,n,t),t),l.classes.push(a+"-arrow-pad"));var s=Bn(e,t),o=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var h;if(l){var m=-t.fontMetrics().axisHeight+l.height+.5*s.height+.111;h=pe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:o},{type:"elem",elem:l,shift:m}]})}else h=pe({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:o}]});return h.children[0].children[0].children[1].classes.push("svg-align"),H(["mrel","x-arrow"],[h],t)},mathmlBuilder(e,t){var r=Rn(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=an(we(e.body,t));if(e.below){var a=an(we(e.below,t));n=new U("munderover",[r,a,i])}else n=new U("mover",[r,i])}else if(e.below){var l=an(we(e.below,t));n=new U("munder",[r,l])}else n=an(),n=new U("mover",[r,n]);return n}});function Ps(e,t){var r=Le(e.body,t,!0);return H([e.mclass],r,t)}function Ls(e,t){var r,n=st(e.body,t);return e.mclass==="minner"?r=new U("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new U("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new U("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}J({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Re(i),isCharacterBox:Et(i)}},htmlBuilder:Ps,mathmlBuilder:Ls});var Ln=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};J({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Ln(t[0]),body:Re(t[1]),isCharacterBox:Et(t[1])}}});J({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],l;n!=="\\stackrel"?l=Ln(i):l="mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Re(i)},o={type:"supsub",mode:a.mode,base:s,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:l,body:[o],isCharacterBox:Et(o)}},htmlBuilder:Ps,mathmlBuilder:Ls});J({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Ln(t[0]),body:Re(t[0])}},htmlBuilder(e,t){var r=Le(e.body,t,!0),n=H([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=st(e.body,t),n=new U("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Tf={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},_a=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ha=e=>e.type==="textord"&&e.text==="@",Cf=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Mf(e,t,r){var n=Tf[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},l=r.callFunction("\\Big",[a],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),o={type:"ordgroup",mode:"math",body:[i,l,s]};return r.callFunction("\\\\cdparent",[o],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function zf(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new $("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a<t.length;a++){for(var l=t[a],s=_a(),o=0;o<l.length;o++)if(!Ha(l[o]))s.body.push(l[o]);else{n.push(s),o+=1;var u=Fn(l[o]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var m=0;m<2;m++){for(var d=!0,p=o+1;p<l.length;p++){if(Cf(l[p],u)){d=!1,o=p;break}if(Ha(l[p]))throw new $("Missing a "+u+" character to complete a CD arrow.",l[p]);h[m].body.push(l[p])}if(d)throw new $("Missing a "+u+" character to complete a CD arrow.",l[o])}else throw new $('Expected one of "<>AV=|." after @',l[o]);var y=Mf(u,h,e),x={type:"styling",body:[y],mode:"math",style:"display"};n.push(x),s=_a()}a%2===0?n.push(s):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}J({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=gr(ge(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=W(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new U("mrow",[we(e.label,t)]);return r=new U("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new U("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});J({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=gr(ge(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new U("mrow",[we(e.fragment,t)])}});J({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=ce(t[0],"ordgroup"),i=n.body,a="",l=0;l<i.length;l++){var s=ce(i[l],"textord");a+=s.text}var o=parseInt(a),u;if(isNaN(o))throw new $("\\@char has non-numeric argument "+a);if(o<0||o>=1114111)throw new $("\\@char with invalid code point "+a);return o<=65535?u=String.fromCharCode(o):(o-=65536,u=String.fromCharCode((o>>10)+55296,(o&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Os=(e,t)=>{var r=Le(e.body,t.withColor(e.color),!1);return Dt(r)},qs=(e,t)=>{var r=st(e.body,t.withColor(e.color)),n=new U("mstyle",r);return n.setAttribute("mathcolor",e.color),n};J({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=ce(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:Re(i)}},htmlBuilder:Os,mathmlBuilder:qs});J({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=ce(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:Os,mathmlBuilder:qs});J({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&ce(i,"size").value}},htmlBuilder(e,t){var r=H(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=W(Me(e.size,t)))),r},mathmlBuilder(e,t){var r=new U("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",W(Me(e.size,t)))),r}});var X0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},js=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new $("Expected a control sequence",e);return t},Ef=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},_s=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};J({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(X0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=X0[n.text]),ce(t.parseFunction(),"internal");throw new $("Invalid token after macro prefix",n)}});J({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new $("Expected a control sequence",n);for(var a=0,l,s=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),s[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new $('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new $('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if(n.text==="EOF")throw new $("Expected a macro definition");s[a].push(n.text)}var{tokens:o}=t.gullet.consumeArg();return l&&o.unshift(l),(r==="\\edef"||r==="\\xdef")&&(o=t.gullet.expandTokens(o),o.reverse()),t.gullet.macros.set(i,{tokens:o,numArgs:a,delimiters:s},r===X0[r]),{type:"internal",mode:t.mode}}});J({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=js(t.gullet.popToken());t.gullet.consumeSpaces();var i=Ef(t);return _s(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});J({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=js(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return _s(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Ir=function(t,r,n){var i=Ae.math[t]&&Ae.math[t].replace,a=vi(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},Ci=function(t,r,n,i){var a=n.havingBaseStyle(r),l=H(i.concat(a.sizingClasses(n)),[t],n),s=a.sizeMultiplier/n.sizeMultiplier;return l.height*=s,l.depth*=s,l.maxFontSize=a.sizeMultiplier,l},Hs=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=W(a),t.height-=a,t.depth+=a},If=function(t,r,n,i,a,l){var s=We(t,"Main-Regular",a,i),o=Ci(s,r,i,l);return Hs(o,i,r),o},Df=function(t,r,n,i){return We(t,"Size"+r+"-Regular",n,i)},$s=function(t,r,n,i,a,l){var s=Df(t,r,a,i),o=Ci(H(["delimsizing","size"+r],[s],i),se.TEXT,i,l);return n&&Hs(o,i,se.TEXT),o},h0=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=H(["delimsizinginner",i],[H([],[We(t,r,n)])]);return{type:"elem",elem:a}},m0=function(t,r,n){var i=vt["Size4-Regular"][t.charCodeAt(0)]?vt["Size4-Regular"][t.charCodeAt(0)][4]:vt["Size1-Regular"][t.charCodeAt(0)][4],a=new _t("inner",U4(t,Math.round(1e3*r))),l=new zt([a],{width:W(i),height:W(r),style:"width:"+W(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Ht([],[l],n);return s.height=r,s.style.height=W(r),s.style.width=W(i),{type:"elem",elem:s}},Y0=.008,ln={type:"kern",size:-1*Y0},Nf=new Set(["|","\\lvert","\\rvert","\\vert"]),Rf=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Us=function(t,r,n,i,a,l){var s,o,u,h,m="",d=0;s=u=h=t,o=null;var p="Size1-Regular";t==="\\uparrow"?u=h="⏐":t==="\\Uparrow"?u=h="‖":t==="\\downarrow"?s=u="⏐":t==="\\Downarrow"?s=u="‖":t==="\\updownarrow"?(s="\\uparrow",u="⏐",h="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="‖",h="\\Downarrow"):Nf.has(t)?(u="∣",m="vert",d=333):Rf.has(t)?(u="∥",m="doublevert",d=556):t==="["||t==="\\lbrack"?(s="⎡",u="⎢",h="⎣",p="Size4-Regular",m="lbrack",d=667):t==="]"||t==="\\rbrack"?(s="⎤",u="⎥",h="⎦",p="Size4-Regular",m="rbrack",d=667):t==="\\lfloor"||t==="⌊"?(u=s="⎢",h="⎣",p="Size4-Regular",m="lfloor",d=667):t==="\\lceil"||t==="⌈"?(s="⎡",u=h="⎢",p="Size4-Regular",m="lceil",d=667):t==="\\rfloor"||t==="⌋"?(u=s="⎥",h="⎦",p="Size4-Regular",m="rfloor",d=667):t==="\\rceil"||t==="⌉"?(s="⎤",u=h="⎥",p="Size4-Regular",m="rceil",d=667):t==="("||t==="\\lparen"?(s="⎛",u="⎜",h="⎝",p="Size4-Regular",m="lparen",d=875):t===")"||t==="\\rparen"?(s="⎞",u="⎟",h="⎠",p="Size4-Regular",m="rparen",d=875):t==="\\{"||t==="\\lbrace"?(s="⎧",o="⎨",h="⎩",u="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="⎫",o="⎬",h="⎭",u="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(s="⎧",h="⎩",u="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(s="⎫",h="⎭",u="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(s="⎧",h="⎭",u="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(s="⎫",h="⎩",u="⎪",p="Size4-Regular");var y=Ir(s,p,a),x=y.height+y.depth,T=Ir(u,p,a),S=T.height+T.depth,C=Ir(h,p,a),I=C.height+C.depth,L=0,V=1;if(o!==null){var E=Ir(o,p,a);L=E.height+E.depth,V=2}var q=x+I+L,X=Math.max(0,Math.ceil((r-q)/(V*S))),j=q+X*V*S,z=i.fontMetrics().axisHeight;n&&(z*=i.sizeMultiplier);var P=j/2-z,R=[];if(m.length>0){var K=j-x-I,_=Math.round(j*1e3),F=V4(m,Math.round(K*1e3)),te=new _t(m,F),le=W(d/1e3),de=W(_/1e3),xe=new zt([te],{width:le,height:de,viewBox:"0 0 "+d+" "+_}),A=Ht([],[xe],i);A.height=_/1e3,A.style.width=le,A.style.height=de,R.push({type:"elem",elem:A})}else{if(R.push(h0(h,p,a)),R.push(ln),o===null){var fe=j-x-I+2*Y0;R.push(m0(u,fe,i))}else{var be=(j-x-I-L)/2+2*Y0;R.push(m0(u,be,i)),R.push(ln),R.push(h0(o,p,a)),R.push(ln),R.push(m0(u,be,i))}R.push(ln),R.push(h0(s,p,a))}var k=i.havingBaseStyle(se.TEXT),ye=pe({positionType:"bottom",positionData:P,children:R});return Ci(H(["delimsizing","mult"],[ye],k),se.TEXT,i,l)},f0=80,d0=.08,p0=function(t,r,n,i,a){var l=$4(t,i,n),s=new _t(t,l),o=new zt([s],{width:"400em",height:W(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ht(["hide-tail"],[o],a)},Bf=function(t,r){var n=r.havingBaseSizing(),i=Ys("\\surd",t*n.sizeMultiplier,Xs,n),a=n.sizeMultiplier,l=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,o=0,u=0,h=0,m;return i.type==="small"?(h=1e3+1e3*l+f0,t<1?a=1:t<1.4&&(a=.7),o=(1+l+d0)/a,u=(1+l)/a,s=p0("sqrtMain",o,h,l,r),s.style.minWidth="0.853em",m=.833/a):i.type==="large"?(h=(1e3+f0)*Br[i.size],u=(Br[i.size]+l)/a,o=(Br[i.size]+l+d0)/a,s=p0("sqrtSize"+i.size,o,h,l,r),s.style.minWidth="1.02em",m=1/a):(o=t+l+d0,u=t+l,h=Math.floor(1e3*t+l)+f0,s=p0("sqrtTall",o,h,l,r),s.style.minWidth="0.742em",m=1.056),s.height=u,s.style.height=W(o),{span:s,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+l)*a}},Vs=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Ff=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Gs=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Br=[0,1.2,1.8,2.4,3],Ws=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Vs.has(t)||Gs.has(t))return $s(t,r,!1,n,i,a);if(Ff.has(t))return Us(t,Br[r],!1,n,i,a);throw new $("Illegal delimiter: '"+t+"'")},Pf=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Lf=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"stack"}],Xs=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Of=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},Ys=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),l=a;l<n.length;l++){var s=n[l];if(s.type==="stack")break;var o=Ir(t,Of(s),"math"),u=o.height+o.depth;if(s.type==="small"){var h=i.havingBaseStyle(s.style);u*=h.sizeMultiplier}if(u>r)return s}return n[n.length-1]},K0=function(t,r,n,i,a,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var s;Gs.has(t)?s=Pf:Vs.has(t)?s=Xs:s=Lf;var o=Ys(t,r,s,i);return o.type==="small"?If(t,o.style,n,i,a,l):o.type==="large"?$s(t,o.size,n,i,a,l):Us(t,r,n,i,a,l)},g0=function(t,r,n,i,a,l){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,o=901,u=5/i.fontMetrics().ptPerEm,h=Math.max(r-s,n+s),m=Math.max(h/500*o,2*h-u);return K0(t,m,!0,i,a,l)},$a={"\\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}},qf=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function On(e,t){var r=Pn(e);if(r&&qf.has(r.text))return r;throw r?new $("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new $("Invalid delimiter type '"+e.type+"'",e)}J({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=On(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:$a[e.funcName].size,mclass:$a[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?H([e.mclass]):Ws(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ht(e.delim,e.mode));var r=new U("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=W(Br[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Ua(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}J({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new $("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:On(t[0],e).text,color:r}}});J({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=On(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=ce(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Ua(e);for(var r=Le(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,l=0;l<r.length;l++)r[l].isMiddle?a=!0:(n=Math.max(r[l].height,n),i=Math.max(r[l].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var s;if(e.left==="."?s=qr(t,["mopen"]):s=g0(e.left,n,i,t,e.mode,["mopen"]),r.unshift(s),a)for(var o=1;o<r.length;o++){var u=r[o],h=u.isMiddle;h&&(r[o]=g0(h.delim,n,i,h.options,e.mode,[]))}var m;if(e.right===".")m=qr(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;m=g0(e.right,n,i,d,e.mode,["mclose"])}return r.push(m),H(["minner"],r,t)},mathmlBuilder:(e,t)=>{Ua(e);var r=st(e.body,t);if(e.left!=="."){var n=new U("mo",[ht(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new U("mo",[ht(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Si(r)}});J({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=On(t[0],e);if(!e.parser.leftrightDepth)throw new $("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=qr(t,[]);else{r=Ws(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?ht("|","text"):ht(e.delim,e.mode),n=new U("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var qn=(e,t)=>{var r=gr(ge(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,l=0,s=Et(e.body);if(n==="sout")a=H(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,l=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var o=Me({number:.6,unit:"pt"},t),u=Me({number:.35,unit:"ex"},t),h=t.havingBaseSizing();i=i/h.sizeMultiplier;var m=r.height+r.depth+o+u;r.style.paddingLeft=W(m/2+o);var d=Math.floor(1e3*m*i),p=_4(d),y=new zt([new _t("phase",p)],{width:"400em",height:W(d/1e3),viewBox:"0 0 400000 "+d,preserveAspectRatio:"xMinYMin slice"});a=Ht(["hide-tail"],[y],t),a.style.height=W(m),l=r.depth+o+u}else{/cancel/.test(n)?s||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var x=0,T=0,S=0;/box/.test(n)?(S=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),x=t.fontMetrics().fboxsep+(n==="colorbox"?0:S),T=x):n==="angl"?(S=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),x=4*S,T=Math.max(0,.25-r.depth)):(x=s?.2:0,T=x),a=Sf(r,n,x,T,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=W(S)):n==="angl"&&S!==.049&&(a.style.borderTopWidth=W(S),a.style.borderRightWidth=W(S)),l=r.depth+T,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var C;if(e.backgroundColor)C=pe({positionType:"individualShift",children:[{type:"elem",elem:a,shift:l},{type:"elem",elem:r,shift:0}]});else{var I=/cancel|phase/.test(n)?["svg-align"]:[];C=pe({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:l,wrapperClasses:I}]})}return/cancel/.test(n)&&(C.height=r.height,C.depth=r.depth),/cancel/.test(n)&&!s?H(["mord","cancel-lap"],[C],t):H(["mord"],[C],t)},jn=(e,t)=>{var r=0,n=new U(e.label.includes("colorbox")?"mpadded":"menclose",[we(e.body,t)]);switch(e.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=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+W(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};J({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=ce(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:l}},htmlBuilder:qn,mathmlBuilder:jn});J({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=ce(t[0],"color-token").color,l=ce(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:l,borderColor:a,body:s}},htmlBuilder:qn,mathmlBuilder:jn});J({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});J({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:qn,mathmlBuilder:jn});J({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:qn,mathmlBuilder:jn});J({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Ks={};function wt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:l}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},o=0;o<r.length;++o)Ks[r[o]]=s;a&&(xn[t]=a),l&&(vn[t]=l)}var Zs={};function b(e,t){Zs[e]=t}class Je{constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new Je(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class it{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new it(r,Je.range(this,t))}}function Va(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var _n=e=>{var t=e.parser.settings;if(!t.displayMode)throw new $("{"+e.envName+"} can be used only in display mode.")},jf=new Set(["gather","gather*"]);function Mi(e){if(!e.includes("ed"))return!e.includes("*")}function Vt(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:l,colSeparationType:s,autoTag:o,singleRow:u,emptySingleRow:h,maxNumCols:m,leqno:d}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)l=1;else if(l=parseFloat(p),!l||l<0)throw new $("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var y=[],x=[y],T=[],S=[],C=o!=null?[]:void 0;function I(){o&&e.gullet.macros.set("\\@eqnsw","1",!0)}function L(){C&&(e.gullet.macros.get("\\df@tag")?(C.push(e.subparse([new it("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):C.push(!!o&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(I(),S.push(Va(e));;){var V=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var E={type:"ordgroup",mode:e.mode,body:V};r&&(E={type:"styling",mode:e.mode,style:r,body:[E]}),y.push(E);var q=e.fetch().text;if(q==="&"){if(m&&y.length===m){if(u||s)throw new $("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(q==="\\end"){L(),y.length===1&&E.type==="styling"&&E.body.length===1&&E.body[0].type==="ordgroup"&&E.body[0].body.length===0&&(x.length>1||!h)&&x.pop(),S.length<x.length+1&&S.push([]);break}else if(q==="\\\\"){e.consume();var X=void 0;e.gullet.future().text!==" "&&(X=e.parseSizeGroup(!0)),T.push(X?X.value:null),L(),S.push(Va(e)),y=[],x.push(y),I()}else throw new $("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:l,body:x,cols:a,rowGaps:T,hskipBeforeAndAfter:n,hLinesBeforeRow:S,colSeparationType:s,tags:C,leqno:d}}function zi(e){return e.slice(0,1)==="d"?"display":"text"}var kt=function(t,r){var n,i,a=t.body.length,l=t.hLinesBeforeRow,s=0,o=new Array(a),u=[],h=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),m=1/r.fontMetrics().ptPerEm,d=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var p=r.havingStyle(se.SCRIPT).sizeMultiplier;d=.2778*(p/r.sizeMultiplier)}var y=t.colSeparationType==="CD"?Me({number:3,unit:"ex"},r):12*m,x=3*m,T=t.arraystretch*y,S=.7*T,C=.3*T,I=0;function L(ne){for(var oe=0;oe<ne.length;++oe)oe>0&&(I+=.25),u.push({pos:I,isDashed:ne[oe]})}for(L(l[0]),n=0;n<t.body.length;++n){var V=t.body[n],E=S,q=C;s<V.length&&(s=V.length);var X=new Array(V.length);for(i=0;i<V.length;++i){var j=ge(V[i],r);q<j.depth&&(q=j.depth),E<j.height&&(E=j.height),X[i]=j}var z=t.rowGaps[n],P=0;z&&(P=Me(z,r),P>0&&(P+=C,q<P&&(q=P),P=0)),t.addJot&&n<t.body.length-1&&(q+=x),X.height=E,X.depth=q,I+=E,X.pos=I,I+=q+P,o[n]=X,L(l[n+1])}var R=I/2+r.fontMetrics().axisHeight,K=t.cols||[],_=[],F,te,le=[];if(t.tags&&t.tags.some(ne=>ne))for(n=0;n<a;++n){var de=o[n],xe=de.pos-R,A=t.tags[n],fe=void 0;A===!0?fe=H(["eqn-num"],[],r):A===!1?fe=H([],[],r):fe=H([],Le(A,r,!0),r),fe.depth=de.depth,fe.height=de.height,le.push({type:"elem",elem:fe,shift:xe})}for(i=0,te=0;i<s||te<K.length;++i,++te){for(var be,k=K[te],ye=!0;((qe=k)==null?void 0:qe.type)==="separator";){var qe;if(ye||(F=H(["arraycolsep"],[]),F.style.width=W(r.fontMetrics().doubleRuleSep),_.push(F)),k.separator==="|"||k.separator===":"){var ze=k.separator==="|"?"solid":"dashed",Ue=H(["vertical-separator"],[],r);Ue.style.height=W(I),Ue.style.borderRightWidth=W(h),Ue.style.borderRightStyle=ze,Ue.style.margin="0 "+W(-h/2);var Oe=I-R;Oe&&(Ue.style.verticalAlign=W(-Oe)),_.push(Ue)}else throw new $("Invalid separator type: "+k.separator);te++,k=K[te],ye=!1}if(!(i>=s)){var De=void 0;if(i>0||t.hskipBeforeAndAfter){var et,pt;De=(et=(pt=k)==null?void 0:pt.pregap)!=null?et:d,De!==0&&(F=H(["arraycolsep"],[]),F.style.width=W(De),_.push(F))}var tt=[];for(n=0;n<a;++n){var gt=o[n],Rt=gt[i];if(Rt){var nr=gt.pos-R;Rt.depth=gt.depth,Rt.height=gt.height,tt.push({type:"elem",elem:Rt,shift:nr})}}var Gt=pe({positionType:"individualShift",children:tt}),Wt=H(["col-align-"+(((be=k)==null?void 0:be.align)||"c")],[Gt]);if(_.push(Wt),i<s-1||t.hskipBeforeAndAfter){var ir,Xt;De=(ir=(Xt=k)==null?void 0:Xt.postgap)!=null?ir:d,De!==0&&(F=H(["arraycolsep"],[]),F.style.width=W(De),_.push(F))}}}var ot=H(["mtable"],_);if(u.length>0){for(var Ar=pr("hline",r,h),Tr=pr("hdashline",r,h),Yt=[{type:"elem",elem:ot,shift:0}];u.length>0;){var ar=u.pop(),lr=ar.pos-R;ar.isDashed?Yt.push({type:"elem",elem:Tr,shift:lr}):Yt.push({type:"elem",elem:Ar,shift:lr})}ot=pe({positionType:"individualShift",children:Yt})}if(le.length===0)return H(["mord"],[ot],r);var B=pe({positionType:"individualShift",children:le}),Y=H(["tag"],[B],r);return Dt([ot,Y])},_f={c:"center ",l:"left ",r:"right "},St=function(t,r){for(var n=[],i=new U("mtd",[],["mtr-glue"]),a=new U("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var s=t.body[l],o=[],u=0;u<s.length;u++)o.push(new U("mtd",[we(s[u],r)]));t.tags&&t.tags[l]&&(o.unshift(i),o.push(i),t.leqno?o.unshift(a):o.push(a)),n.push(new U("mtr",o))}var h=new U("mtable",n),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);h.setAttribute("rowspacing",W(m));var d="",p="";if(t.cols&&t.cols.length>0){var y=t.cols,x="",T=!1,S=0,C=y.length;y[0].type==="separator"&&(d+="top ",S=1),y[y.length-1].type==="separator"&&(d+="bottom ",C-=1);for(var I=S;I<C;I++){var L=y[I];L.type==="align"?(p+=_f[L.align],T&&(x+="none "),T=!0):L.type==="separator"&&T&&(x+=L.separator==="|"?"solid ":"dashed ",T=!1)}h.setAttribute("columnalign",p.trim()),/[sd]/.test(x)&&h.setAttribute("columnlines",x.trim())}if(t.colSeparationType==="align"){for(var V=t.cols||[],E="",q=1;q<V.length;q++)E+=q%2?"0em ":"1em ";h.setAttribute("columnspacing",E.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?h.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var X="",j=t.hLinesBeforeRow;d+=j[0].length>0?"left ":"",d+=j[j.length-1].length>0?"right ":"";for(var z=1;z<j.length-1;z++)X+=j[z].length===0?"none ":j[z][0]?"dashed ":"solid ";return/[sd]/.test(X)&&h.setAttribute("rowlines",X.trim()),d!==""&&(h=new U("menclose",[h]),h.setAttribute("notation",d.trim())),t.arraystretch&&t.arraystretch<1&&(h=new U("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Js=function(t,r){t.envName.includes("ed")||_n(t);var n=[],i=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",l=Vt(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:Mi(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,o=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var h="",m=0;m<r[0].body.length;m++){var d=ce(r[0].body[m],"textord");h+=d.text}s=Number(h),o=s*2}var p=!o;l.body.forEach(function(S){for(var C=1;C<S.length;C+=2){var I=ce(S[C],"styling"),L=ce(I.body[0],"ordgroup");L.body.unshift(u)}if(p)o<S.length&&(o=S.length);else{var V=S.length/2;if(s<V)throw new $("Too many math in a row: "+("expected "+s+", but got "+V),S[0])}});for(var y=0;y<o;++y){var x="r",T=0;y%2===1?x="l":y>0&&p&&(T=1),n[y]={type:"align",align:x,pregap:T,postgap:0}}return l.colSeparationType=p?"align":"alignat",l};wt({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Pn(t[0]),n=r?[t[0]]:ce(t[0],"ordgroup").body,i=n.map(function(l){var s=Fn(l),o=s.text;if("lcr".includes(o))return{type:"align",align:o};if(o==="|")return{type:"separator",separator:"|"};if(o===":")return{type:"separator",separator:":"};throw new $("Unknown column alignment: "+o,l)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Vt(e.parser,a,zi(e.envName))},htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new $("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=Vt(e.parser,n,zi(e.envName)),l=Math.max(0,...a.body.map(s=>s.length));return a.cols=new Array(l).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Vt(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Pn(t[0]),n=r?[t[0]]:ce(t[0],"ordgroup").body,i=n.map(function(s){var o=Fn(s),u=o.text;if("lc".includes(u))return{type:"align",align:u};throw new $("Unknown column alignment: "+u,s)});if(i.length>1)throw new $("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},l=Vt(e.parser,a,"script");if(l.body.length>0&&l.body[0].length>1)throw new $("{subarray} can contain only one column");return l},htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Vt(e.parser,t,zi(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Js,htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){jf.has(e.envName)&&_n(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Mi(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Vt(e.parser,t,"display")},htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Js,htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){_n(e);var t={autoTag:Mi(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Vt(e.parser,t,"display")},htmlBuilder:kt,mathmlBuilder:St});wt({type:"array",names:["CD"],props:{numArgs:0},handler(e){return _n(e),zf(e.parser)},htmlBuilder:kt,mathmlBuilder:St});b("\\nonumber","\\gdef\\@eqnsw{0}");b("\\notag","\\nonumber");J({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new $(e.funcName+" valid only within array environment")}});var Ga=Ks;J({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new $("Invalid environment name",i);for(var a="",l=0;l<i.body.length;++l)a+=ce(i.body[l],"textord").text;if(n==="\\begin"){if(!Ga.hasOwnProperty(a))throw new $("No such environment: "+a,i);var s=Ga[a],{args:o,optArgs:u}=r.parseArguments("\\begin{"+a+"}",s),h={mode:r.mode,envName:a,parser:r},m=s.handler(h,o,u);r.expect("\\end",!1);var d=r.nextToken,p=ce(r.parseFunction(),"environment");if(p.name!==a)throw new $("Mismatch: \\begin{"+a+"} matched by \\end{"+p.name+"}",d);return m}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var Qs=(e,t)=>{var r=e.font,n=t.withFont(r);return ge(e.body,n)},eo=(e,t)=>{var r=e.font,n=t.withFont(r);return we(e.body,n)},Wa={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};J({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=wn(t[0]),a=n;return a in Wa&&(a=Wa[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Qs,mathmlBuilder:eo});J({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:Ln(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Et(n)}}});J({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,l=r.parseExpression(!0,i),s="math"+n.slice(1);return{type:"font",mode:a,font:s,body:{type:"ordgroup",mode:r.mode,body:l}}},htmlBuilder:Qs,mathmlBuilder:eo});var Hf=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var l=ge(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,o=3.5/t.fontMetrics().ptPerEm;l.height=l.height<s?s:l.height,l.depth=l.depth<o?o:l.depth}a=t.havingStyle(i);var u=ge(e.denom,a,t),h,m,d;e.hasBarLine?(e.barSize?(m=Me(e.barSize,t),h=pr("frac-line",t,m)):h=pr("frac-line",t),m=h.height,d=h.height):(h=null,m=0,d=t.fontMetrics().defaultRuleThickness);var p,y,x;r.size===se.DISPLAY.size?(p=t.fontMetrics().num1,m>0?y=3*d:y=7*d,x=t.fontMetrics().denom1):(m>0?(p=t.fontMetrics().num2,y=d):(p=t.fontMetrics().num3,y=3*d),x=t.fontMetrics().denom2);var T;if(h){var C=t.fontMetrics().axisHeight;p-l.depth-(C+.5*m)<y&&(p+=y-(p-l.depth-(C+.5*m))),C-.5*m-(u.height-x)<y&&(x+=y-(C-.5*m-(u.height-x)));var I=-(C-.5*m);T=pe({positionType:"individualShift",children:[{type:"elem",elem:u,shift:x},{type:"elem",elem:h,shift:I},{type:"elem",elem:l,shift:-p}]})}else{var S=p-l.depth-(u.height-x);S<y&&(p+=.5*(y-S),x+=.5*(y-S)),T=pe({positionType:"individualShift",children:[{type:"elem",elem:u,shift:x},{type:"elem",elem:l,shift:-p}]})}a=t.havingStyle(r),T.height*=a.sizeMultiplier/t.sizeMultiplier,T.depth*=a.sizeMultiplier/t.sizeMultiplier;var L;r.size===se.DISPLAY.size?L=t.fontMetrics().delim1:r.size===se.SCRIPTSCRIPT.size?L=t.havingStyle(se.SCRIPT).fontMetrics().delim2:L=t.fontMetrics().delim2;var V,E;return e.leftDelim==null?V=qr(t,["mopen"]):V=K0(e.leftDelim,L,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?E=H([]):e.rightDelim==null?E=qr(t,["mclose"]):E=K0(e.rightDelim,L,!0,t.havingStyle(r),e.mode,["mclose"]),H(["mord"].concat(a.sizingClasses(t)),[V,H(["mfrac"],[T]),E],t)},$f=(e,t)=>{var r=new U("mfrac",[we(e.numer,t),we(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Me(e.barSize,t);r.setAttribute("linethickness",W(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new U("mo",[new Be(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),e.rightDelim!=null){var l=new U("mo",[new Be(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),i.push(l)}return Si(i)}return r},to=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};J({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],l,s=null,o=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,s="(",o=")";break;case"\\\\bracefrac":l=!1,s="\\{",o="\\}";break;case"\\\\brackfrac":l=!1,s="[",o="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",h=null;return u||n.startsWith("\\d")?h="display":n.startsWith("\\t")&&(h="text"),to({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:u,hasBarLine:l,leftDelim:s,rightDelim:o,barSize:null},h)},htmlBuilder:Hf,mathmlBuilder:$f});J({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var Xa=["display","text","script","scriptscript"],Ya=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};J({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=wn(t[0]),l=a.type==="atom"&&a.family==="open"?Ya(a.text):null,s=wn(t[1]),o=s.type==="atom"&&s.family==="close"?Ya(s.text):null,u=ce(t[2],"size"),h,m=null;u.isBlank?h=!0:(m=u.value,h=m.number>0);var d=null,p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var y=ce(p.body[0],"textord");d=Xa[Number(y.text)]}}else p=ce(p,"textord"),d=Xa[Number(p.text)];return to({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:h,barSize:m,leftDelim:l,rightDelim:o},d)}});J({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ce(t[0],"size").value,token:i}}});J({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=ce(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var l=t[2],s=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:s,barSize:a,leftDelim:null,rightDelim:null}}});var ro=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?ge(e.sup,t.havingStyle(r.sup()),t):ge(e.sub,t.havingStyle(r.sub()),t),i=ce(e.base,"horizBrace")):i=ce(e,"horizBrace");var a=ge(i.base,t.havingBaseStyle(se.DISPLAY)),l=Bn(i,t),s;if(i.isOver?(s=pe({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:l}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=pe({positionType:"bottom",positionData:a.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:a}]}),s.children[0].children[0].children[0].classes.push("svg-align")),n){var o=H(["minner",i.isOver?"mover":"munder"],[s],t);i.isOver?s=pe({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:n}]}):s=pe({positionType:"bottom",positionData:o.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:o}]})}return H(["minner",i.isOver?"mover":"munder"],[s],t)},Uf=(e,t)=>{var r=Rn(e.label);return new U(e.isOver?"mover":"munder",[we(e.base,t),r])};J({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:ro,mathmlBuilder:Uf});J({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=ce(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:Re(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Le(e.body,t,!1);return sf(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=$t(e.body,t);return r instanceof U||(r=new U("mrow",[r])),r.setAttribute("href",e.href),r}});J({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=ce(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var l=n[a];l==="~"&&(l="\\textasciitilde"),i.push({type:"textord",mode:"text",text:l})}var s={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:Re(s)}}});J({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Re(t[0])}},htmlBuilder(e,t){var r=Le(e.body,t,!1);return Dt(r)},mathmlBuilder(e,t){return new U("mrow",st(e.body,t))}});J({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,a=ce(t[0],"raw").string,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");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 u=a.split(","),h=0;h<u.length;h++){var m=u[h],d=m.indexOf("=");if(d<0)throw new $("\\htmlData key/value '"+m+"' missing equals sign");var p=m.slice(0,d),y=m.slice(d+1);o["data-"+p.trim()]=y}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:Re(l)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Le(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=H(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>$t(e.body,t)});J({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Re(t[0]),mathml:Re(t[1])}},htmlBuilder:(e,t)=>{var r=Le(e.html,t,!1);return Dt(r)},mathmlBuilder:(e,t)=>$t(e.mathml,t)});var b0=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new $("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!xs(n))throw new $("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};J({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},l={number:0,unit:"em"},s="";if(r[0])for(var o=ce(r[0],"raw").string,u=o.split(","),h=0;h<u.length;h++){var m=u[h].split("=");if(m.length===2){var d=m[1].trim();switch(m[0].trim()){case"alt":s=d;break;case"width":i=b0(d);break;case"height":a=b0(d);break;case"totalheight":l=b0(d);break;default:throw new $("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var p=ce(t[0],"url").url;return s===""&&(s=p,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:n.mode,alt:s,width:i,height:a,totalheight:l,src:p}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Me(e.height,t),n=0;e.totalheight.number>0&&(n=Me(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=Me(e.width,t));var a={height:W(r+n)};i>0&&(a.width=W(i)),n>0&&(a.verticalAlign=W(-n));var l=new X4(e.src,e.alt,a);return l.height=r,l.depth=n,l},mathmlBuilder:(e,t)=>{var r=new U("mglyph",[]);r.setAttribute("alt",e.alt);var n=Me(e.height,t),i=0;if(e.totalheight.number>0&&(i=Me(e.totalheight,t)-n,r.setAttribute("valign",W(-i))),r.setAttribute("height",W(n+i)),e.width.number>0){var a=Me(e.width,t);r.setAttribute("width",W(a))}return r.setAttribute("src",e.src),r}});J({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=ce(t[0],"size");if(r.settings.strict){var a=n[1]==="m",l=i.value.unit==="mu";a?(l||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):l&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return Ts(e.dimension,t)},mathmlBuilder(e,t){var r=Me(e.dimension,t);return new Ds(r)}});J({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=H([],[ge(e.body,t)]),r=H(["inner"],[r],t)):r=H(["inner"],[ge(e.body,t)]);var n=H(["fix"],[]),i=H([e.alignment],[r,n],t),a=H(["strut"]);return a.style.height=W(i.height+i.depth),i.depth&&(a.style.verticalAlign=W(-i.depth)),i.children.unshift(a),i=H(["thinbox"],[i],t),H(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new U("mpadded",[we(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});J({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",l=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:l}}});J({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new $("Mismatched "+e.funcName)}});var Ka=(e,t)=>{switch(t.style.size){case se.DISPLAY.size:return e.display;case se.TEXT.size:return e.text;case se.SCRIPT.size:return e.script;case se.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Re(t[0]),text:Re(t[1]),script:Re(t[2]),scriptscript:Re(t[3])}},htmlBuilder:(e,t)=>{var r=Ka(e,t),n=Le(r,t,!1);return Dt(n)},mathmlBuilder:(e,t)=>{var r=Ka(e,t);return $t(r,t)}});var no=(e,t,r,n,i,a,l)=>{e=H([],[e]);var s=r&&Et(r),o,u;if(t){var h=ge(t,n.havingStyle(i.sup()),n);u={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var m=ge(r,n.havingStyle(i.sub()),n);o={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-m.height)}}var d;if(u&&o){var p=n.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+e.depth+l;d=pe({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:W(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:W(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(o){var y=e.height-l;d=pe({positionType:"top",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:W(-a)},{type:"kern",size:o.kern},{type:"elem",elem:e}]})}else if(u){var x=e.depth+l;d=pe({positionType:"bottom",positionData:x,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:W(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var T=[d];if(o&&a!==0&&!s){var S=H(["mspace"],[],n);S.style.marginRight=W(a),T.unshift(S)}return H(["mop","op-limits"],T,n)},io=new Set(["\\smallint"]),Sr=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=ce(e.base,"op"),i=!0):a=ce(e,"op");var l=t.style,s=!1;l.size===se.DISPLAY.size&&a.symbol&&!io.has(a.name)&&(s=!0);var o;if(a.symbol){var u=s?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),o=We(a.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),h.length>0){var m=o.italic,d=Ms(h+"Size"+(s?"2":"1"),t);o=pe({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:d,shift:s?.08:0}]}),a.name="\\"+h,o.classes.unshift("mop"),o.italic=m}}else if(a.body){var p=Le(a.body,t,!0);p.length===1&&p[0]instanceof at?(o=p[0],o.classes[0]="mop"):o=H(["mop"],p,t)}else{for(var y=[],x=1;x<a.name.length;x++)y.push(wi(a.name[x],a.mode,t));o=H(["mop"],y,t)}var T=0,S=0;return(o instanceof at||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(T=(o.height-o.depth)/2-t.fontMetrics().axisHeight,S=o.italic||0),i?no(o,r,n,t,l,S,T):(T&&(o.style.position="relative",o.style.top=W(T)),o)},Wr=(e,t)=>{var r;if(e.symbol)r=new U("mo",[ht(e.name,e.mode)]),io.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new U("mo",st(e.body,t));else{r=new U("mi",[new Be(e.name.slice(1))]);var n=new U("mo",[ht("","text")]);e.parentIsSupSub?r=new U("mrow",[r,n]):r=Is([r,n])}return r},Vf={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};J({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=Vf[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Sr,mathmlBuilder:Wr});J({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Re(n)}},htmlBuilder:Sr,mathmlBuilder:Wr});var Gf={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};J({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Sr,mathmlBuilder:Wr});J({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Sr,mathmlBuilder:Wr});J({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=Gf[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Sr,mathmlBuilder:Wr});var ao=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=ce(e.base,"operatorname"),i=!0):a=ce(e,"operatorname");var l;if(a.body.length>0){for(var s=a.body.map(m=>{var d="text"in m?m.text:void 0;return typeof d=="string"?{type:"textord",mode:m.mode,text:d}:m}),o=Le(s,t.withFont("mathrm"),!0),u=0;u<o.length;u++){var h=o[u];h instanceof at&&(h.text=h.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=H(["mop"],o,t)}else l=H(["mop"],[],t);return i?no(l,r,n,t,t.style,0,0):l},Wf=(e,t)=>{for(var r=st(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof Ds))if(a instanceof U)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var l=a.children[0];a.children.length===1&&l instanceof Be?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var s=r.map(h=>h.toText()).join("");r=[new Be(s)]}var o=new U("mi",r);o.setAttribute("mathvariant","normal");var u=new U("mo",[ht("","text")]);return e.parentIsSupSub?new U("mrow",[o,u]):Is([o,u])};J({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:Re(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:ao,mathmlBuilder:Wf});b("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");rr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Dt(Le(e.body,t,!1)):H(["mord"],Le(e.body,t,!0),t)},mathmlBuilder(e,t){return $t(e.body,t,!0)}});J({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=ge(e.body,t.havingCrampedStyle()),n=pr("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=pe({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return H(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new U("mo",[new Be("‾")]);r.setAttribute("stretchy","true");var n=new U("mover",[we(e.body,t),r]);return n.setAttribute("accent","true"),n}});J({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Re(n)}},htmlBuilder:(e,t)=>{var r=Le(e.body,t.withPhantom(),!1);return Dt(r)},mathmlBuilder:(e,t)=>{var r=st(e.body,t);return new U("mphantom",r)}});b("\\hphantom","\\smash{\\phantom{#1}}");J({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=H(["inner"],[ge(e.body,t.withPhantom())]),n=H(["fix"],[]);return H(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=st(Re(e.body),t),n=new U("mphantom",r),i=new U("mpadded",[n]);return i.setAttribute("width","0px"),i}});J({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=ce(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=ge(e.body,t),n=Me(e.dy,t);return pe({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new U("mpadded",[we(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});J({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});J({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=ce(t[0],"size"),l=ce(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&ce(i,"size").value,width:a.value,height:l.value}},htmlBuilder(e,t){var r=H(["mord","rule"],[],t),n=Me(e.width,t),i=Me(e.height,t),a=e.shift?Me(e.shift,t):0;return r.style.borderRightWidth=W(n),r.style.borderTopWidth=W(i),r.style.bottom=W(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Me(e.width,t),n=Me(e.height,t),i=e.shift?Me(e.shift,t):0,a=t.color&&t.getColor()||"black",l=new U("mspace");l.setAttribute("mathbackground",a),l.setAttribute("width",W(r)),l.setAttribute("height",W(n));var s=new U("mpadded",[l]);return i>=0?s.setAttribute("height",W(i)):(s.setAttribute("height",W(i)),s.setAttribute("depth",W(-i))),s.setAttribute("voffset",W(i)),s}});function lo(e,t,r){for(var n=Le(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var l=n[a].classes.indexOf("sizing");l<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[l+1]==="reset-size"+t.size&&(n[a].classes[l+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return Dt(n)}var Za=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Xf=(e,t)=>{var r=t.havingSize(e.size);return lo(e.body,r,t)};J({type:"sizing",names:Za,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:Za.indexOf(n)+1,body:a}},htmlBuilder:Xf,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=st(e.body,r),i=new U("mstyle",n);return i.setAttribute("mathsize",W(r.sizeMultiplier)),i}});J({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,l=r[0]&&ce(r[0],"ordgroup");if(l)for(var s="",o=0;o<l.body.length;++o){var u=l.body[o];if(s=Fn(u).text,s==="t")i=!0;else if(s==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var h=t[0];return{type:"smash",mode:n.mode,body:h,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=H([],[ge(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return H(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=pe({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return H(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new U("mpadded",[we(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});J({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=ge(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=gr(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.id<se.TEXT.id&&(a=t.fontMetrics().xHeight);var l=i+a/4,s=r.height+r.depth+l+i,{span:o,ruleWidth:u,advanceWidth:h}=Bf(s,t),m=o.height-u;m>r.height+r.depth+l&&(l=(l+m-r.height-r.depth)/2);var d=o.height-r.height-l-u;r.style.paddingLeft=W(h);var p=pe({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:o},{type:"kern",size:u}]});if(e.index){var y=t.havingStyle(se.SCRIPTSCRIPT),x=ge(e.index,y,t),T=.6*(p.height-p.depth),S=pe({positionType:"shift",positionData:-T,children:[{type:"elem",elem:x}]}),C=H(["root"],[S]);return H(["mord","sqrt"],[C,p],t)}else return H(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new U("mroot",[we(r,t),we(n,t)]):new U("msqrt",[we(r,t)])}});var Ja={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT};J({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),l=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:l,body:a}},htmlBuilder(e,t){var r=Ja[e.style],n=t.havingStyle(r).withFont("");return lo(e.body,n,t)},mathmlBuilder(e,t){var r=Ja[e.style],n=t.havingStyle(r),i=st(e.body,n),a=new U("mstyle",i),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=l[e.style];return a.setAttribute("scriptlevel",s[0]),a.setAttribute("displaystyle",s[1]),a}});var Yf=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===se.DISPLAY.size||n.alwaysHandleSupSub);return i?Sr:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===se.DISPLAY.size||n.limits);return a?ao:null}else{if(n.type==="accent")return Et(n.base)?Ti:null;if(n.type==="horizBrace"){var l=!t.sub;return l===n.isOver?ro:null}else return null}else return null};rr({type:"supsub",htmlBuilder(e,t){var r=Yf(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,l=ge(n,t),s,o,u=t.fontMetrics(),h=0,m=0,d=n&&Et(n);if(i){var p=t.havingStyle(t.style.sup());s=ge(i,p,t),d||(h=l.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var y=t.havingStyle(t.style.sub());o=ge(a,y,t),d||(m=l.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}var x;t.style===se.DISPLAY?x=u.sup1:t.style.cramped?x=u.sup3:x=u.sup2;var T=t.sizeMultiplier,S=W(.5/u.ptPerEm/T),C=null;if(o){var I=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(l instanceof at||I)&&(C=W(-l.italic))}var L;if(s&&o){h=Math.max(h,x,s.depth+.25*u.xHeight),m=Math.max(m,u.sub2);var V=u.defaultRuleThickness,E=4*V;if(h-s.depth-(o.height-m)<E){m=E-(h-s.depth)+o.height;var q=.8*u.xHeight-(h-s.depth);q>0&&(h+=q,m-=q)}var X=[{type:"elem",elem:o,shift:m,marginRight:S,marginLeft:C},{type:"elem",elem:s,shift:-h,marginRight:S}];L=pe({positionType:"individualShift",children:X})}else if(o){m=Math.max(m,u.sub1,o.height-.8*u.xHeight);var j=[{type:"elem",elem:o,marginLeft:C,marginRight:S}];L=pe({positionType:"shift",positionData:m,children:j})}else if(s)h=Math.max(h,x,s.depth+.25*u.xHeight),L=pe({positionType:"shift",positionData:-h,children:[{type:"elem",elem:s,marginRight:S}]});else throw new Error("supsub must have either sup or sub.");var z=G0(l,"right")||"mord";return H([z],[l,H(["msupsub"],[L])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[we(e.base,t)];e.sub&&a.push(we(e.sub,t)),e.sup&&a.push(we(e.sup,t));var l;if(r)l=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===se.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===se.DISPLAY||u.limits)?l="munderover":l="msubsup"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===se.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===se.DISPLAY)?l="munder":l="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===se.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===se.DISPLAY)?l="mover":l="msup"}return new U(l,a)}});rr({type:"atom",htmlBuilder(e,t){return wi(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new U("mo",[ht(e.text,e.mode)]);if(e.family==="bin"){var n=Ai(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var so={mi:"italic",mn:"normal",mtext:"normal"};rr({type:"mathord",htmlBuilder(e,t){return Nn(e,t,"mathord")},mathmlBuilder(e,t){var r=new U("mi",[ht(e.text,e.mode,t)]),n=Ai(e,t)||"italic";return n!==so[r.type]&&r.setAttribute("mathvariant",n),r}});rr({type:"textord",htmlBuilder(e,t){return Nn(e,t,"textord")},mathmlBuilder(e,t){var r=ht(e.text,e.mode,t),n=Ai(e,t)||"normal",i;return e.mode==="text"?i=new U("mtext",[r]):/[0-9]/.test(e.text)?i=new U("mn",[r]):e.text==="\\prime"?i=new U("mo",[r]):i=new U("mi",[r]),n!==so[i.type]&&i.setAttribute("mathvariant",n),i}});var y0={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},x0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};rr({type:"spacing",htmlBuilder(e,t){if(x0.hasOwnProperty(e.text)){var r=x0[e.text].className||"";if(e.mode==="text"){var n=Nn(e,t,"textord");return n.classes.push(r),n}else return H(["mspace",r],[wi(e.text,e.mode,t)],t)}else{if(y0.hasOwnProperty(e.text))return H(["mspace",y0[e.text]],[],t);throw new $('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(x0.hasOwnProperty(e.text))r=new U("mtext",[new Be(" ")]);else{if(y0.hasOwnProperty(e.text))return new U("mspace");throw new $('Unknown type of space "'+e.text+'"')}return r}});var Qa=()=>{var e=new U("mtd",[]);return e.setAttribute("width","50%"),e};rr({type:"tag",mathmlBuilder(e,t){var r=new U("mtable",[new U("mtr",[Qa(),new U("mtd",[$t(e.body,t)]),Qa(),new U("mtd",[$t(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var el={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},tl={"\\textbf":"textbf","\\textmd":"textmd"},Kf={"\\textit":"textit","\\textup":"textup"},rl=(e,t)=>{var r=e.font;if(r){if(el[r])return t.withTextFontFamily(el[r]);if(tl[r])return t.withTextFontWeight(tl[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Kf[r])};J({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:Re(i),font:n}},htmlBuilder(e,t){var r=rl(e,t),n=Le(e.body,r,!0);return H(["mord","text"],n,r)},mathmlBuilder(e,t){var r=rl(e,t);return $t(e.body,r)}});J({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ge(e.body,t),n=pr("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=pe({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return H(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new U("mo",[new Be("‾")]);r.setAttribute("stretchy","true");var n=new U("munder",[we(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});J({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=ge(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return pe({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new U("mpadded",[we(e.body,t)],["vcenter"]);return new U("mrow",[r])}});J({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new $("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=nl(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var l=r[a];l==="~"&&(l="\\textasciitilde"),n.push(We(l,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return H(["mord","text"].concat(i.sizingClasses(t)),As(n),i)},mathmlBuilder(e,t){var r=new Be(nl(e)),n=new U("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var nl=e=>e.body.replace(/ /g,e.star?"␣":" "),qt=zs,oo=`[ \r
|
|
268
|
+
]`,Zf="\\\\[a-zA-Z@]+",Jf="\\\\[^\uD800-\uDFFF]",Qf="("+Zf+")"+oo+"*",ed=`\\\\(
|
|
269
|
+
|[ \r ]+
|
|
270
|
+
?)[ \r ]*`,Z0="[̀-ͯ]",td=new RegExp(Z0+"+$"),rd="("+oo+"+)|"+(ed+"|")+"([!-\\[\\]-‧-豈-]"+(Z0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Z0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Qf)+("|"+Jf+")");class il{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(rd,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new it("EOF",new Je(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new $("Unexpected character: '"+t[r]+"'",new it(t[r],new Je(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
|
|
271
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new it(i,new Je(this,r,this.tokenRegex.lastIndex))}}class nd{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new $("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var id=Zs;b("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});b("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});b("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});b("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});b("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});b("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");b("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var al={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};b("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new $("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=al[t.text],n==null||n>=r)throw new $("Invalid base-"+r+" digit "+t.text);for(var i;(i=al[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var Ei=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new $("\\newcommand's first argument must be a macro name");var a=i[0].text,l=e.isDefined(a);if(l&&!t)throw new $("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!l&&!r)throw new $("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var o="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)o+=u.text,u=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new $("Invalid number of arguments: "+o);s=parseInt(o),i=e.consumeArg().tokens}return l&&n||e.macros.set(a,{tokens:i,numArgs:s}),""};b("\\newcommand",e=>Ei(e,!1,!0,!1));b("\\renewcommand",e=>Ei(e,!0,!1,!1));b("\\providecommand",e=>Ei(e,!0,!0,!0));b("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});b("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});b("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),qt[r],Ae.math[r],Ae.text[r]),""});b("\\bgroup","{");b("\\egroup","}");b("~","\\nobreakspace");b("\\lq","`");b("\\rq","'");b("\\aa","\\r a");b("\\AA","\\r A");b("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");b("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");b("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");b("ℬ","\\mathscr{B}");b("ℰ","\\mathscr{E}");b("ℱ","\\mathscr{F}");b("ℋ","\\mathscr{H}");b("ℐ","\\mathscr{I}");b("ℒ","\\mathscr{L}");b("ℳ","\\mathscr{M}");b("ℛ","\\mathscr{R}");b("ℭ","\\mathfrak{C}");b("ℌ","\\mathfrak{H}");b("ℨ","\\mathfrak{Z}");b("\\Bbbk","\\Bbb{k}");b("\\llap","\\mathllap{\\textrm{#1}}");b("\\rlap","\\mathrlap{\\textrm{#1}}");b("\\clap","\\mathclap{\\textrm{#1}}");b("\\mathstrut","\\vphantom{(}");b("\\underbar","\\underline{\\text{#1}}");b("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');b("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");b("\\ne","\\neq");b("≠","\\neq");b("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");b("∉","\\notin");b("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");b("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");b("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");b("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");b("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");b("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");b("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");b("⟂","\\perp");b("‼","\\mathclose{!\\mkern-0.8mu!}");b("∌","\\notni");b("⌜","\\ulcorner");b("⌝","\\urcorner");b("⌞","\\llcorner");b("⌟","\\lrcorner");b("©","\\copyright");b("®","\\textregistered");b("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');b("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');b("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');b("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');b("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");b("⋮","\\vdots");b("\\varGamma","\\mathit{\\Gamma}");b("\\varDelta","\\mathit{\\Delta}");b("\\varTheta","\\mathit{\\Theta}");b("\\varLambda","\\mathit{\\Lambda}");b("\\varXi","\\mathit{\\Xi}");b("\\varPi","\\mathit{\\Pi}");b("\\varSigma","\\mathit{\\Sigma}");b("\\varUpsilon","\\mathit{\\Upsilon}");b("\\varPhi","\\mathit{\\Phi}");b("\\varPsi","\\mathit{\\Psi}");b("\\varOmega","\\mathit{\\Omega}");b("\\substack","\\begin{subarray}{c}#1\\end{subarray}");b("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");b("\\boxed","\\fbox{$\\displaystyle{#1}$}");b("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");b("\\implies","\\DOTSB\\;\\Longrightarrow\\;");b("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");b("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");b("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ll={",":"\\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"},ad=new Set(["bin","rel"]);b("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in ll?t=ll[r]:(r.slice(0,4)==="\\not"||r in Ae.math&&ad.has(Ae.math[r].group))&&(t="\\dotsb"),t});var Ii={")":!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};b("\\dotso",function(e){var t=e.future().text;return t in Ii?"\\ldots\\,":"\\ldots"});b("\\dotsc",function(e){var t=e.future().text;return t in Ii&&t!==","?"\\ldots\\,":"\\ldots"});b("\\cdots",function(e){var t=e.future().text;return t in Ii?"\\@cdots\\,":"\\@cdots"});b("\\dotsb","\\cdots");b("\\dotsm","\\cdots");b("\\dotsi","\\!\\cdots");b("\\dotsx","\\ldots\\,");b("\\DOTSI","\\relax");b("\\DOTSB","\\relax");b("\\DOTSX","\\relax");b("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");b("\\,","\\tmspace+{3mu}{.1667em}");b("\\thinspace","\\,");b("\\>","\\mskip{4mu}");b("\\:","\\tmspace+{4mu}{.2222em}");b("\\medspace","\\:");b("\\;","\\tmspace+{5mu}{.2777em}");b("\\thickspace","\\;");b("\\!","\\tmspace-{3mu}{.1667em}");b("\\negthinspace","\\!");b("\\negmedspace","\\tmspace-{4mu}{.2222em}");b("\\negthickspace","\\tmspace-{5mu}{.277em}");b("\\enspace","\\kern.5em ");b("\\enskip","\\hskip.5em\\relax");b("\\quad","\\hskip1em\\relax");b("\\qquad","\\hskip2em\\relax");b("\\tag","\\@ifstar\\tag@literal\\tag@paren");b("\\tag@paren","\\tag@literal{({#1})}");b("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new $("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});b("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");b("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");b("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");b("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");b("\\newline","\\\\\\relax");b("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var uo=W(vt["Main-Regular"][84][1]-.7*vt["Main-Regular"][65][1]);b("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+uo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");b("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+uo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");b("\\hspace","\\@ifstar\\@hspacer\\@hspace");b("\\@hspace","\\hskip #1\\relax");b("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");b("\\ordinarycolon",":");b("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");b("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');b("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');b("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');b("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');b("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');b("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');b("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');b("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');b("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');b("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');b("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');b("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');b("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');b("∷","\\dblcolon");b("∹","\\eqcolon");b("≔","\\coloneqq");b("≕","\\eqqcolon");b("⩴","\\Coloneqq");b("\\ratio","\\vcentcolon");b("\\coloncolon","\\dblcolon");b("\\colonequals","\\coloneqq");b("\\coloncolonequals","\\Coloneqq");b("\\equalscolon","\\eqqcolon");b("\\equalscoloncolon","\\Eqqcolon");b("\\colonminus","\\coloneq");b("\\coloncolonminus","\\Coloneq");b("\\minuscolon","\\eqcolon");b("\\minuscoloncolon","\\Eqcolon");b("\\coloncolonapprox","\\Colonapprox");b("\\coloncolonsim","\\Colonsim");b("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");b("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");b("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");b("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");b("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");b("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");b("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");b("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");b("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");b("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");b("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");b("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");b("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");b("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");b("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");b("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");b("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");b("\\nleqq","\\html@mathml{\\@nleqq}{≰}");b("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");b("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");b("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");b("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");b("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");b("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");b("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");b("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");b("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");b("\\imath","\\html@mathml{\\@imath}{ı}");b("\\jmath","\\html@mathml{\\@jmath}{ȷ}");b("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");b("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");b("⟦","\\llbracket");b("⟧","\\rrbracket");b("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");b("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");b("⦃","\\lBrace");b("⦄","\\rBrace");b("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");b("⦵","\\minuso");b("\\darr","\\downarrow");b("\\dArr","\\Downarrow");b("\\Darr","\\Downarrow");b("\\lang","\\langle");b("\\rang","\\rangle");b("\\uarr","\\uparrow");b("\\uArr","\\Uparrow");b("\\Uarr","\\Uparrow");b("\\N","\\mathbb{N}");b("\\R","\\mathbb{R}");b("\\Z","\\mathbb{Z}");b("\\alef","\\aleph");b("\\alefsym","\\aleph");b("\\Alpha","\\mathrm{A}");b("\\Beta","\\mathrm{B}");b("\\bull","\\bullet");b("\\Chi","\\mathrm{X}");b("\\clubs","\\clubsuit");b("\\cnums","\\mathbb{C}");b("\\Complex","\\mathbb{C}");b("\\Dagger","\\ddagger");b("\\diamonds","\\diamondsuit");b("\\empty","\\emptyset");b("\\Epsilon","\\mathrm{E}");b("\\Eta","\\mathrm{H}");b("\\exist","\\exists");b("\\harr","\\leftrightarrow");b("\\hArr","\\Leftrightarrow");b("\\Harr","\\Leftrightarrow");b("\\hearts","\\heartsuit");b("\\image","\\Im");b("\\infin","\\infty");b("\\Iota","\\mathrm{I}");b("\\isin","\\in");b("\\Kappa","\\mathrm{K}");b("\\larr","\\leftarrow");b("\\lArr","\\Leftarrow");b("\\Larr","\\Leftarrow");b("\\lrarr","\\leftrightarrow");b("\\lrArr","\\Leftrightarrow");b("\\Lrarr","\\Leftrightarrow");b("\\Mu","\\mathrm{M}");b("\\natnums","\\mathbb{N}");b("\\Nu","\\mathrm{N}");b("\\Omicron","\\mathrm{O}");b("\\plusmn","\\pm");b("\\rarr","\\rightarrow");b("\\rArr","\\Rightarrow");b("\\Rarr","\\Rightarrow");b("\\real","\\Re");b("\\reals","\\mathbb{R}");b("\\Reals","\\mathbb{R}");b("\\Rho","\\mathrm{P}");b("\\sdot","\\cdot");b("\\sect","\\S");b("\\spades","\\spadesuit");b("\\sub","\\subset");b("\\sube","\\subseteq");b("\\supe","\\supseteq");b("\\Tau","\\mathrm{T}");b("\\thetasym","\\vartheta");b("\\weierp","\\wp");b("\\Zeta","\\mathrm{Z}");b("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");b("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");b("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");b("\\bra","\\mathinner{\\langle{#1}|}");b("\\ket","\\mathinner{|{#1}\\rangle}");b("\\braket","\\mathinner{\\langle{#1}\\rangle}");b("\\Bra","\\left\\langle#1\\right|");b("\\Ket","\\left|#1\\right\\rangle");var co=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,l=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var o=m=>d=>{e&&(d.macros.set("|",l),i.length&&d.macros.set("\\|",s));var p=m;if(!m&&i.length){var y=d.future();y.text==="|"&&(d.popToken(),p=!0)}return{tokens:p?i:n,numArgs:0}};t.macros.set("|",o(!1)),i.length&&t.macros.set("\\|",o(!0));var u=t.consumeArg().tokens,h=t.expandTokens([...a,...u,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};b("\\bra@ket",co(!1));b("\\bra@set",co(!0));b("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");b("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");b("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");b("\\angln","{\\angl n}");b("\\blue","\\textcolor{##6495ed}{#1}");b("\\orange","\\textcolor{##ffa500}{#1}");b("\\pink","\\textcolor{##ff00af}{#1}");b("\\red","\\textcolor{##df0030}{#1}");b("\\green","\\textcolor{##28ae7b}{#1}");b("\\gray","\\textcolor{gray}{#1}");b("\\purple","\\textcolor{##9d38bd}{#1}");b("\\blueA","\\textcolor{##ccfaff}{#1}");b("\\blueB","\\textcolor{##80f6ff}{#1}");b("\\blueC","\\textcolor{##63d9ea}{#1}");b("\\blueD","\\textcolor{##11accd}{#1}");b("\\blueE","\\textcolor{##0c7f99}{#1}");b("\\tealA","\\textcolor{##94fff5}{#1}");b("\\tealB","\\textcolor{##26edd5}{#1}");b("\\tealC","\\textcolor{##01d1c1}{#1}");b("\\tealD","\\textcolor{##01a995}{#1}");b("\\tealE","\\textcolor{##208170}{#1}");b("\\greenA","\\textcolor{##b6ffb0}{#1}");b("\\greenB","\\textcolor{##8af281}{#1}");b("\\greenC","\\textcolor{##74cf70}{#1}");b("\\greenD","\\textcolor{##1fab54}{#1}");b("\\greenE","\\textcolor{##0d923f}{#1}");b("\\goldA","\\textcolor{##ffd0a9}{#1}");b("\\goldB","\\textcolor{##ffbb71}{#1}");b("\\goldC","\\textcolor{##ff9c39}{#1}");b("\\goldD","\\textcolor{##e07d10}{#1}");b("\\goldE","\\textcolor{##a75a05}{#1}");b("\\redA","\\textcolor{##fca9a9}{#1}");b("\\redB","\\textcolor{##ff8482}{#1}");b("\\redC","\\textcolor{##f9685d}{#1}");b("\\redD","\\textcolor{##e84d39}{#1}");b("\\redE","\\textcolor{##bc2612}{#1}");b("\\maroonA","\\textcolor{##ffbde0}{#1}");b("\\maroonB","\\textcolor{##ff92c6}{#1}");b("\\maroonC","\\textcolor{##ed5fa6}{#1}");b("\\maroonD","\\textcolor{##ca337c}{#1}");b("\\maroonE","\\textcolor{##9e034e}{#1}");b("\\purpleA","\\textcolor{##ddd7ff}{#1}");b("\\purpleB","\\textcolor{##c6b9fc}{#1}");b("\\purpleC","\\textcolor{##aa87ff}{#1}");b("\\purpleD","\\textcolor{##7854ab}{#1}");b("\\purpleE","\\textcolor{##543b78}{#1}");b("\\mintA","\\textcolor{##f5f9e8}{#1}");b("\\mintB","\\textcolor{##edf2df}{#1}");b("\\mintC","\\textcolor{##e0e5cc}{#1}");b("\\grayA","\\textcolor{##f6f7f7}{#1}");b("\\grayB","\\textcolor{##f0f1f2}{#1}");b("\\grayC","\\textcolor{##e3e5e6}{#1}");b("\\grayD","\\textcolor{##d6d8da}{#1}");b("\\grayE","\\textcolor{##babec2}{#1}");b("\\grayF","\\textcolor{##888d93}{#1}");b("\\grayG","\\textcolor{##626569}{#1}");b("\\grayH","\\textcolor{##3b3e40}{#1}");b("\\grayI","\\textcolor{##21242c}{#1}");b("\\kaBlue","\\textcolor{##314453}{#1}");b("\\kaGreen","\\textcolor{##71B307}{#1}");var ho={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ld{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new nd(id,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new il(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new it("EOF",n.loc)),this.pushTokens(i),new it("",Je.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,l=0,s=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++l;else if(a.text==="}"){if(--l,l===-1)throw new $("Extra }",a)}else if(a.text==="EOF")throw new $("Unexpected end of input in a macro argument, expected '"+(t&&n?t[s]:"}")+"'",a);if(t&&n)if((l===0||l===1&&t[s]==="{")&&a.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(l!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new $("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new $("Use of the macro doesn't match its definition",a)}}for(var l=[],s=0;s<t;s++)l.push(this.consumeArg(r&&r[s+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new $("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new $("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,l=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var o=a[s];if(o.text==="#"){if(s===0)throw new $("Incomplete placeholder at end of macro body",o);if(o=a[--s],o.text==="#")a.splice(s+1,1);else if(/^[1-9]$/.test(o.text))a.splice(s,2,...l[+o.text-1]);else throw new $("Not a valid argument number",o)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new it(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var l=i.replace(/##/g,"");l.includes("#"+(a+1));)++a;for(var s=new il(i,this.settings),o=[],u=s.lex();u.text!=="EOF";)o.push(u),u=s.lex();o.reverse();var h={tokens:o,numArgs:a};return h}return i}isDefined(t){return this.macros.has(t)||qt.hasOwnProperty(t)||Ae.math.hasOwnProperty(t)||Ae.text.hasOwnProperty(t)||ho.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:qt.hasOwnProperty(t)&&!qt[t].primitive}}var sl=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,sn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),v0={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ol={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Hn{constructor(t,r){this.mode="math",this.gullet=new ld(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new $("Expected '"+t+"', 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(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new it("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Hn.endOfExpression.has(i.text)||r&&i.text===r||t&&qt[i.text]&&qt[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var a=t[i];if(a.type==="infix"){if(r!==-1)throw new $("only one infix operator per group",a.token);r=i,n=a.replaceWith}}if(r!==-1&&n){var l,s,o=t.slice(0,r),u=t.slice(r+1);o.length===1&&o[0].type==="ordgroup"?l=o[0]:l={type:"ordgroup",mode:this.mode,body:o},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var h;return n==="\\\\abovefrac"?h=this.callFunction(n,[l,t[r],s],[]):h=this.callFunction(n,[l,s],[]),[h]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new $("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var l=a.text==="\\limits";r.limits=l,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new $("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new $("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new $("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new $("Double superscript",a);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(sn[a.text]){var u=sl.test(a.text),h=[];for(h.push(new it(sn[a.text])),this.consume();;){var m=this.fetch().text;if(!sn[m]||sl.test(m)!==u)break;h.unshift(new it(sn[m])),this.consume()}var d=this.subparse(h);u?i={type:"ordgroup",mode:"math",body:d}:n={type:"ordgroup",mode:"math",body:d}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=qt[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new $("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new $("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new $("Can't use function '"+i+"' in math mode",n);var{args:l,optArgs:s}=this.parseArguments(i,a);return this.callFunction(i,l,s,n,t)}callFunction(t,r,n,i,a){var l={funcName:t,parser:this,token:i,breakOnTokenText:a},s=qt[t];if(s&&s.handler)return s.handler(l,r,n);throw new $("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],l=0;l<n;l++){var s=r.argTypes&&r.argTypes[l],o=l<r.numOptionalArgs;("primitive"in r&&r.primitive&&s==null||r.type==="sqrt"&&l===1&&a[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,o);if(o)a.push(u);else if(u!=null)i.push(u);else throw new $("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,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 i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new $("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new $("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new $("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",l;(l=this.fetch()).text!=="EOF"&&t.test(a+l.text);)i=l,a+=i.text,this.consume();if(a==="")throw new $("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);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 $("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new $("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!xs(a))throw new $("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);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(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),l}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var l=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,l),o=this.fetch();this.expect(l),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:Je.range(n,o),body:s,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!ho.hasOwnProperty(i)){if(this.settings.throwOnError)throw new $("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var a=i.text,l=t[n+1];if(!(!l||l.type!=="textord")){if(a==="-"&&l.text==="-"){var s=t[n+2];n+1<r&&s&&s.type==="textord"&&s.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:Je.range(i,s),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:Je.range(i,l),text:"--"}),r-=1)}(a==="'"||a==="`")&&l.text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:Je.range(i,l),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new $(`\\verb assertion failed --
|
|
272
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}ol.hasOwnProperty(r[0])&&!Ae[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=ol[r[0]]+r.slice(1));var a=td.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var l;if(Ae[this.mode][r]){this.settings.strict&&this.mode==="math"&&H0.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=Ae[this.mode][r].group,o=Je.range(t),u;if(tf.hasOwnProperty(s)){var h=s;u={type:"atom",mode:this.mode,family:h,loc:o,text:r}}else u={type:s,mode:this.mode,loc:o,text:r};l=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(ys(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),l={type:"textord",mode:"text",loc:Je.range(t),text:r};else return null;if(this.consume(),a)for(var m=0;m<a[0].length;m++){var d=a[0][m];if(!v0[d])throw new $("Unknown accent ' "+d+"'",t);var p=v0[d][this.mode]||v0[d].text;if(!p)throw new $("Accent "+d+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:Je.range(t),label:p,isStretchy:!1,isShifty:!0,base:l}}return l}}Hn.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Di=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Hn(t,r);delete n.gullet.macros.current["\\df@tag"];var i=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 $("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new it("\\df@tag")])}]}return i},mo=function(t,r,n){r.textContent="";var i=Ni(t,n).toNode();r.appendChild(i)};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."),mo=function(){throw new $("KaTeX doesn't work in quirks mode.")});var sd=function(t,r){var n=Ni(t,r).toMarkup();return n},od=function(t,r){var n=new yi(r);return Di(t,n)},fo=function(t,r,n){if(n.throwOnError||!(t instanceof $))throw t;var i=H(["katex-error"],[new at(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},Ni=function(t,r){var n=new yi(r);try{var i=Di(t,n);return yf(i,t,n)}catch(a){return fo(a,t,n)}},ud=function(t,r){var n=new yi(r);try{var i=Di(t,n);return xf(i,t,n)}catch(a){return fo(a,t,n)}},cd="0.16.45",hd={Span:wr,Anchor:In,SymbolNode:at,SvgNode:zt,PathNode:_t,LineNode:_0},ul={version:cd,render:mo,renderToString:sd,ParseError:$,SETTINGS_SCHEMA:O0,__parse:od,__renderToDomTree:Ni,__renderToHTMLTree:ud,__setFontMetrics:Q4,__defineSymbol:c,__defineFunction:J,__defineMacro:b,__domTree:hd};const md={},fd=[];function po(e){const t=e||md;return function(r,n){fi(r,"element",function(i,a){const l=Array.isArray(i.properties.className)?i.properties.className:fd,s=l.includes("language-math"),o=l.includes("math-display"),u=l.includes("math-inline");let h=o;if(!s&&!o&&!u)return;let m=a[a.length-1],d=i;if(i.tagName==="code"&&s&&m&&m.type==="element"&&m.tagName==="pre"&&(d=m,m=a[a.length-2],h=!0),!m)return;const p=g4(d,{whitespace:"pre"});let y;try{y=ul.renderToString(p,{...t,displayMode:h,throwOnError:!0})}catch(T){const S=T,C=S.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...a,i],cause:S,place:i.position,ruleId:C,source:"rehype-katex"});try{y=ul.renderToString(p,{...t,displayMode:h,strict:"ignore",throwOnError:!1})}catch{y=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(T)},children:[{type:"text",value:p}]}]}}typeof y=="string"&&(y=o4(y).children);const x=m.children.indexOf(d);return m.children.splice(x,1,...y),os})}}function cl(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function dd(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function pd(e,t,r){const i=Ur((r||{}).ignore||[]),a=gd(t);let l=-1;for(;++l<a.length;)fi(e,"text",s);function s(u,h){let m=-1,d;for(;++m<h.length;){const p=h[m],y=d?d.children:void 0;if(i(p,y?y.indexOf(p):void 0,d))return;d=p}if(d)return o(u,h)}function o(u,h){const m=h[h.length-1],d=a[l][0],p=a[l][1];let y=0;const T=m.children.indexOf(u);let S=!1,C=[];d.lastIndex=0;let I=d.exec(u.value);for(;I;){const L=I.index,V={index:I.index,input:I.input,stack:[...h,u]};let E=p(...I,V);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?d.lastIndex=L+1:(y!==L&&C.push({type:"text",value:u.value.slice(y,L)}),Array.isArray(E)?C.push(...E):E&&C.push(E),y=L+I[0].length,S=!0),!d.global)break;I=d.exec(u.value)}return S?(y<u.value.length&&C.push({type:"text",value:u.value.slice(y)}),m.children.splice(T,1,...C)):C=[u],T+C.length}}function gd(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([bd(i[0]),yd(i[1])])}return t}function bd(e){return typeof e=="string"?new RegExp(dd(e),"g"):e}function yd(e){return typeof e=="function"?e:function(){return e}}const w0="phrasing",k0=["autolink","link","image","label"];function xd(){return{transforms:[Cd],enter:{literalAutolink:wd,literalAutolinkEmail:S0,literalAutolinkHttp:S0,literalAutolinkWww:S0},exit:{literalAutolink:Td,literalAutolinkEmail:Ad,literalAutolinkHttp:kd,literalAutolinkWww:Sd}}}function vd(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:w0,notInConstruct:k0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:w0,notInConstruct:k0},{character:":",before:"[ps]",after:"\\/",inConstruct:w0,notInConstruct:k0}]}}function wd(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function S0(e){this.config.enter.autolinkProtocol.call(this,e)}function kd(e){this.config.exit.autolinkProtocol.call(this,e)}function Sd(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Ad(e){this.config.exit.autolinkEmail.call(this,e)}function Td(e){this.exit(e)}function Cd(e){pd(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Md],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zd]],{ignore:["link","linkReference"]})}function Md(e,t,r,n,i){let a="";if(!go(i)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!Ed(r)))return!1;const l=Id(r+n);if(!l[0])return!1;const s={type:"link",title:null,url:a+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[s,{type:"text",value:l[1]}]:s}function zd(e,t,r,n){return!go(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Ed(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Id(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=cl(e,"(");let a=cl(e,")");for(;n!==-1&&i>a;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),a++;return[e,r]}function go(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Qt(r)||Cn(r))&&(!t||r!==47)}bo.peek=qd;function Dd(){this.buffer()}function Nd(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Rd(){this.buffer()}function Bd(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fd(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=dt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Pd(e){this.exit(e)}function Ld(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=dt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Od(e){this.exit(e)}function qd(){return"["}function bo(e,t,r,n){const i=r.createTracker(n);let a=i.move("[^");const l=r.enter("footnoteReference"),s=r.enter("reference");return a+=i.move(r.safe(r.associationId(e),{after:"]",before:a})),s(),l(),a+=i.move("]"),a}function jd(){return{enter:{gfmFootnoteCallString:Dd,gfmFootnoteCall:Nd,gfmFootnoteDefinitionLabelString:Rd,gfmFootnoteDefinition:Bd},exit:{gfmFootnoteCallString:Fd,gfmFootnoteCall:Pd,gfmFootnoteDefinitionLabelString:Ld,gfmFootnoteDefinition:Od}}}function _d(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:bo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,a,l){const s=a.createTracker(l);let o=s.move("[^");const u=a.enter("footnoteDefinition"),h=a.enter("label");return o+=s.move(a.safe(a.associationId(n),{before:o,after:"]"})),h(),o+=s.move("]:"),n.children&&n.children.length>0&&(s.shift(4),o+=s.move((t?`
|
|
273
|
+
`:" ")+a.indentLines(a.containerFlow(n,s.current()),t?yo:Hd))),u(),o}}function Hd(e,t,r){return t===0?e:yo(e,t,r)}function yo(e,t,r){return(r?"":" ")+e}const $d=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];xo.peek=Xd;function Ud(){return{canContainEols:["delete"],enter:{strikethrough:Gd},exit:{strikethrough:Wd}}}function Vd(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$d}],handlers:{delete:xo}}}function Gd(e){this.enter({type:"delete",children:[]},e)}function Wd(e){this.exit(e)}function xo(e,t,r,n){const i=r.createTracker(n),a=r.enter("strikethrough");let l=i.move("~~");return l+=r.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),a(),l}function Xd(){return"~"}function Yd(e){return e.length}function Kd(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||Yd,a=[],l=[],s=[],o=[];let u=0,h=-1;for(;++h<e.length;){const x=[],T=[];let S=-1;for(e[h].length>u&&(u=e[h].length);++S<e[h].length;){const C=Zd(e[h][S]);if(r.alignDelimiters!==!1){const I=i(C);T[S]=I,(o[S]===void 0||I>o[S])&&(o[S]=I)}x.push(C)}l[h]=x,s[h]=T}let m=-1;if(typeof n=="object"&&"length"in n)for(;++m<u;)a[m]=hl(n[m]);else{const x=hl(n);for(;++m<u;)a[m]=x}m=-1;const d=[],p=[];for(;++m<u;){const x=a[m];let T="",S="";x===99?(T=":",S=":"):x===108?T=":":x===114&&(S=":");let C=r.alignDelimiters===!1?1:Math.max(1,o[m]-T.length-S.length);const I=T+"-".repeat(C)+S;r.alignDelimiters!==!1&&(C=T.length+C+S.length,C>o[m]&&(o[m]=C),p[m]=C),d[m]=I}l.splice(1,0,d),s.splice(1,0,p),h=-1;const y=[];for(;++h<l.length;){const x=l[h],T=s[h];m=-1;const S=[];for(;++m<u;){const C=x[m]||"";let I="",L="";if(r.alignDelimiters!==!1){const V=o[m]-(T[m]||0),E=a[m];E===114?I=" ".repeat(V):E===99?V%2?(I=" ".repeat(V/2+.5),L=" ".repeat(V/2-.5)):(I=" ".repeat(V/2),L=I):L=" ".repeat(V)}r.delimiterStart!==!1&&!m&&S.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&C==="")&&(r.delimiterStart!==!1||m)&&S.push(" "),r.alignDelimiters!==!1&&S.push(I),S.push(C),r.alignDelimiters!==!1&&S.push(L),r.padding!==!1&&S.push(" "),(r.delimiterEnd!==!1||m!==u-1)&&S.push("|")}y.push(r.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return y.join(`
|
|
274
|
+
`)}function Zd(e){return e==null?"":String(e)}function hl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Jd(e,t,r,n){const i=r.enter("blockquote"),a=r.createTracker(n);a.move("> "),a.shift(2);const l=r.indentLines(r.containerFlow(e,a.current()),Qd);return i(),l}function Qd(e,t,r){return">"+(r?"":" ")+e}function ep(e,t){return ml(e,t.inConstruct,!0)&&!ml(e,t.notInConstruct,!1)}function ml(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function fl(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
275
|
+
`&&ep(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
276
|
+
`}function vo(e,t){const r=String(e);let n=r.indexOf(t),i=n,a=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++a>l&&(l=a):a=1,i=n+t.length,n=r.indexOf(t,i);return l}function tp(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rp(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function np(e,t,r,n){const i=rp(r),a=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(tp(e,r)){const m=r.enter("codeIndented"),d=r.indentLines(a,ip);return m(),d}const s=r.createTracker(n),o=i.repeat(Math.max(vo(a,i)+1,3)),u=r.enter("codeFenced");let h=s.move(o);if(e.lang){const m=r.enter(`codeFencedLang${l}`);h+=s.move(r.safe(e.lang,{before:h,after:" ",encode:["`"],...s.current()})),m()}if(e.lang&&e.meta){const m=r.enter(`codeFencedMeta${l}`);h+=s.move(" "),h+=s.move(r.safe(e.meta,{before:h,after:`
|
|
277
|
+
`,encode:["`"],...s.current()})),m()}return h+=s.move(`
|
|
278
|
+
`),a&&(h+=s.move(a+`
|
|
279
|
+
`)),h+=s.move(o),u(),h}function ip(e,t,r){return(r?"":" ")+e}function Ri(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ap(e,t,r,n){const i=Ri(r),a=i==='"'?"Quote":"Apostrophe",l=r.enter("definition");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("[");return u+=o.move(r.safe(r.associationId(e),{before:u,after:"]",...o.current()})),u+=o.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
280
|
+
`,...o.current()}))),s(),e.title&&(s=r.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(r.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),l(),u}function lp(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function jr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kn(e,t,r){const n=fr(e),i=fr(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}wo.peek=sp;function wo(e,t,r,n){const i=lp(r),a=r.enter("emphasis"),l=r.createTracker(n),s=l.move(i);let o=l.move(r.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=o.charCodeAt(0),h=kn(n.before.charCodeAt(n.before.length-1),u,i);h.inside&&(o=jr(u)+o.slice(1));const m=o.charCodeAt(o.length-1),d=kn(n.after.charCodeAt(0),m,i);d.inside&&(o=o.slice(0,-1)+jr(m));const p=l.move(i);return a(),r.attentionEncodeSurroundingInfo={after:d.outside,before:h.outside},s+o+p}function sp(e,t,r){return r.options.emphasis||"*"}function op(e,t){let r=!1;return di(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,N0}),!!((!e.depth||e.depth<3)&&li(e)&&(t.options.setext||r))}function up(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(n);if(op(e,r)){const h=r.enter("headingSetext"),m=r.enter("phrasing"),d=r.containerPhrasing(e,{...a.current(),before:`
|
|
281
|
+
`,after:`
|
|
282
|
+
`});return m(),h(),d+`
|
|
283
|
+
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
284
|
+
`))+1))}const l="#".repeat(i),s=r.enter("headingAtx"),o=r.enter("phrasing");a.move(l+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
285
|
+
`,...a.current()});return/^[\t ]/.test(u)&&(u=jr(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,r.options.closeAtx&&(u+=" "+l),o(),s(),u}ko.peek=cp;function ko(e){return e.value||""}function cp(){return"<"}So.peek=hp;function So(e,t,r,n){const i=Ri(r),a=i==='"'?"Quote":"Apostrophe",l=r.enter("image");let s=r.enter("label");const o=r.createTracker(n);let u=o.move("![");return u+=o.move(r.safe(e.alt,{before:u,after:"]",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=r.enter(`title${a}`),u+=o.move(" "+i),u+=o.move(r.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),l(),u}function hp(){return"!"}Ao.peek=mp;function Ao(e,t,r,n){const i=e.referenceType,a=r.enter("imageReference");let l=r.enter("label");const s=r.createTracker(n);let o=s.move("![");const u=r.safe(e.alt,{before:o,after:"]",...s.current()});o+=s.move(u+"]["),l();const h=r.stack;r.stack=[],l=r.enter("reference");const m=r.safe(r.associationId(e),{before:o,after:"]",...s.current()});return l(),r.stack=h,a(),i==="full"||!u||u!==m?o+=s.move(m+"]"):i==="shortcut"?o=o.slice(0,-1):o+=s.move("]"),o}function mp(){return"!"}To.peek=fp;function To(e,t,r){let n=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++a<r.unsafe.length;){const l=r.unsafe[a],s=r.compilePattern(l);let o;if(l.atBreak)for(;o=s.exec(n);){let u=o.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(o.index+1)}}return i+n+i}function fp(){return"`"}function Co(e,t){const r=li(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Mo.peek=dp;function Mo(e,t,r,n){const i=Ri(r),a=i==='"'?"Quote":"Apostrophe",l=r.createTracker(n);let s,o;if(Co(e,r)){const h=r.stack;r.stack=[],s=r.enter("autolink");let m=l.move("<");return m+=l.move(r.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),s(),r.stack=h,m}s=r.enter("link"),o=r.enter("label");let u=l.move("[");return u+=l.move(r.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function dp(e,t,r){return Co(e,r)?"<":"["}zo.peek=pp;function zo(e,t,r,n){const i=e.referenceType,a=r.enter("linkReference");let l=r.enter("label");const s=r.createTracker(n);let o=s.move("[");const u=r.containerPhrasing(e,{before:o,after:"]",...s.current()});o+=s.move(u+"]["),l();const h=r.stack;r.stack=[],l=r.enter("reference");const m=r.safe(r.associationId(e),{before:o,after:"]",...s.current()});return l(),r.stack=h,a(),i==="full"||!u||u!==m?o+=s.move(m+"]"):i==="shortcut"?o=o.slice(0,-1):o+=s.move("]"),o}function pp(){return"["}function Bi(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gp(e){const t=Bi(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function bp(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Eo(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function yp(e,t,r,n){const i=r.enter("list"),a=r.bulletCurrent;let l=e.ordered?bp(r):Bi(r);const s=e.ordered?l==="."?")":".":gp(r);let o=t&&r.bulletLastUsed?l===r.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&h&&(!h.children||!h.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(o=!0),Eo(r)===l&&h){let m=-1;for(;++m<e.children.length;){const d=e.children[m];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(l=s),r.bulletCurrent=l;const u=r.containerFlow(e,n);return r.bulletLastUsed=l,r.bulletCurrent=a,i(),u}function xp(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vp(e,t,r,n){const i=xp(r);let a=r.bulletCurrent||Bi(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let l=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=r.createTracker(n);s.move(a+" ".repeat(l-a.length)),s.shift(l);const o=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),h);return o(),u;function h(m,d,p){return d?(p?"":" ".repeat(l))+m:(p?a:a+" ".repeat(l-a.length))+m}}function wp(e,t,r,n){const i=r.enter("paragraph"),a=r.enter("phrasing"),l=r.containerPhrasing(e,n);return a(),i(),l}const kp=Ur(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Sp(e,t,r,n){return(e.children.some(function(l){return kp(l)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function Ap(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Io.peek=Tp;function Io(e,t,r,n){const i=Ap(r),a=r.enter("strong"),l=r.createTracker(n),s=l.move(i+i);let o=l.move(r.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=o.charCodeAt(0),h=kn(n.before.charCodeAt(n.before.length-1),u,i);h.inside&&(o=jr(u)+o.slice(1));const m=o.charCodeAt(o.length-1),d=kn(n.after.charCodeAt(0),m,i);d.inside&&(o=o.slice(0,-1)+jr(m));const p=l.move(i+i);return a(),r.attentionEncodeSurroundingInfo={after:d.outside,before:h.outside},s+o+p}function Tp(e,t,r){return r.options.strong||"*"}function Cp(e,t,r,n){return r.safe(e.value,n)}function Mp(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function zp(e,t,r){const n=(Eo(r)+(r.options.ruleSpaces?" ":"")).repeat(Mp(r));return r.options.ruleSpaces?n.slice(0,-1):n}const Do={blockquote:Jd,break:fl,code:np,definition:ap,emphasis:wo,hardBreak:fl,heading:up,html:ko,image:So,imageReference:Ao,inlineCode:To,link:Mo,linkReference:zo,list:yp,listItem:vp,paragraph:wp,root:Sp,strong:Io,text:Cp,thematicBreak:zp};function Ep(){return{enter:{table:Ip,tableData:dl,tableHeader:dl,tableRow:Np},exit:{codeText:Rp,table:Dp,tableData:A0,tableHeader:A0,tableRow:A0}}}function Ip(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function Dp(e){this.exit(e),this.data.inTable=void 0}function Np(e){this.enter({type:"tableRow",children:[]},e)}function A0(e){this.exit(e)}function dl(e){this.enter({type:"tableCell",children:[]},e)}function Rp(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Bp));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Bp(e,t){return t==="|"?t:e}function Fp(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
286
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:l,tableCell:o,tableRow:s}};function l(p,y,x,T){return u(h(p,x,T),p.align)}function s(p,y,x,T){const S=m(p,x,T),C=u([S]);return C.slice(0,C.indexOf(`
|
|
287
|
+
`))}function o(p,y,x,T){const S=x.enter("tableCell"),C=x.enter("phrasing"),I=x.containerPhrasing(p,{...T,before:a,after:a});return C(),S(),I}function u(p,y){return Kd(p,{align:y,alignDelimiters:n,padding:r,stringLength:i})}function h(p,y,x){const T=p.children;let S=-1;const C=[],I=y.enter("table");for(;++S<T.length;)C[S]=m(T[S],y,x);return I(),C}function m(p,y,x){const T=p.children;let S=-1;const C=[],I=y.enter("tableRow");for(;++S<T.length;)C[S]=o(T[S],p,y,x);return I(),C}function d(p,y,x){let T=Do.inlineCode(p,y,x);return x.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function Pp(){return{exit:{taskListCheckValueChecked:pl,taskListCheckValueUnchecked:pl,paragraph:Op}}}function Lp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qp}}}function pl(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Op(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=t.children;let a=-1,l;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){l=s;break}}l===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function qp(e,t,r,n){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);a&&s.move(l);let o=Do.listItem(e,t,r,{...n,...s.current()});return a&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),o;function u(h){return h+l}}function jp(){return[xd(),jd(),Ud(),Ep(),Pp()]}function _p(e){return{extensions:[vd(),_d(e),Vd(),Fp(e),Lp()]}}const Hp={tokenize:Xp,partial:!0},No={tokenize:Yp,partial:!0},Ro={tokenize:Kp,partial:!0},Bo={tokenize:Zp,partial:!0},$p={tokenize:Jp,partial:!0},Fo={name:"wwwAutolink",tokenize:Gp,previous:Lo},Po={name:"protocolAutolink",tokenize:Wp,previous:Oo},Nt={name:"emailAutolink",tokenize:Vp,previous:qo},At={};function Up(){return{text:At}}let Jt=48;for(;Jt<123;)At[Jt]=Nt,Jt++,Jt===58?Jt=65:Jt===91&&(Jt=97);At[43]=Nt;At[45]=Nt;At[46]=Nt;At[95]=Nt;At[72]=[Nt,Po];At[104]=[Nt,Po];At[87]=[Nt,Fo];At[119]=[Nt,Fo];function Vp(e,t,r){const n=this;let i,a;return l;function l(m){return!J0(m)||!qo.call(n,n.previous)||Fi(n.events)?r(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(m))}function s(m){return J0(m)?(e.consume(m),s):m===64?(e.consume(m),o):r(m)}function o(m){return m===46?e.check($p,h,u)(m):m===45||m===95||_e(m)?(a=!0,e.consume(m),o):h(m)}function u(m){return e.consume(m),i=!0,o}function h(m){return a&&i&&Xe(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):r(m)}}function Gp(e,t,r){const n=this;return i;function i(l){return l!==87&&l!==119||!Lo.call(n,n.previous)||Fi(n.events)?r(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Hp,e.attempt(No,e.attempt(Ro,a),r),r)(l))}function a(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Wp(e,t,r){const n=this;let i="",a=!1;return l;function l(m){return(m===72||m===104)&&Oo.call(n,n.previous)&&!Fi(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(m),e.consume(m),s):r(m)}function s(m){if(Xe(m)&&i.length<5)return i+=String.fromCodePoint(m),e.consume(m),s;if(m===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(m),o}return r(m)}function o(m){return m===47?(e.consume(m),a?u:(a=!0,o)):r(m)}function u(m){return m===null||dn(m)||ve(m)||Qt(m)||Cn(m)?r(m):e.attempt(No,e.attempt(Ro,h),r)(m)}function h(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function Xp(e,t,r){let n=0;return i;function i(l){return(l===87||l===119)&&n<3?(n++,e.consume(l),i):l===46&&n===3?(e.consume(l),a):r(l)}function a(l){return l===null?r(l):t(l)}}function Yp(e,t,r){let n,i,a;return l;function l(u){return u===46||u===95?e.check(Bo,o,s)(u):u===null||ve(u)||Qt(u)||u!==45&&Cn(u)?o(u):(a=!0,e.consume(u),l)}function s(u){return u===95?n=!0:(i=n,n=void 0),e.consume(u),l}function o(u){return i||n||!a?r(u):t(u)}}function Kp(e,t){let r=0,n=0;return i;function i(l){return l===40?(r++,e.consume(l),i):l===41&&n<r?a(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Bo,t,a)(l):l===null||ve(l)||Qt(l)?t(l):(e.consume(l),i)}function a(l){return l===41&&n++,e.consume(l),i}}function Zp(e,t,r){return n;function n(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),n):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||ve(s)||Qt(s)?t(s):r(s)}function i(s){return s===null||s===40||s===91||ve(s)||Qt(s)?t(s):n(s)}function a(s){return Xe(s)?l(s):r(s)}function l(s){return s===59?(e.consume(s),n):Xe(s)?(e.consume(s),l):r(s)}}function Jp(e,t,r){return n;function n(a){return e.consume(a),i}function i(a){return _e(a)?r(a):t(a)}}function Lo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ve(e)}function Oo(e){return!Xe(e)}function qo(e){return!(e===47||J0(e))}function J0(e){return e===43||e===45||e===46||e===95||_e(e)}function Fi(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const Qp={tokenize:s2,partial:!0};function e2(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:i2,continuation:{tokenize:a2},exit:l2}},text:{91:{name:"gfmFootnoteCall",tokenize:n2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:t2,resolveTo:r2}}}}function t2(e,t,r){const n=this;let i=n.events.length;const a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let l;for(;i--;){const o=n.events[i][1];if(o.type==="labelImage"){l=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return s;function s(o){if(!l||!l._balanced)return r(o);const u=dt(n.sliceSerialize({start:l.end,end:n.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?r(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function r2(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function n2(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a=0,l;return s;function s(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),o}function o(m){return m!==94?r(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(m){if(a>999||m===93&&!l||m===null||m===91||ve(m))return r(m);if(m===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(dt(n.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(m)}return ve(m)||(l=!0),a++,e.consume(m),m===92?h:u}function h(m){return m===91||m===92||m===93?(e.consume(m),a++,u):u(m)}}function i2(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a,l=0,s;return o;function o(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):r(y)}function h(y){if(l>999||y===93&&!s||y===null||y===91||ve(y))return r(y);if(y===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return a=dt(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ve(y)||(s=!0),l++,e.consume(y),y===92?m:h}function m(y){return y===91||y===92||y===93?(e.consume(y),l++,h):h(y)}function d(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(a)||i.push(a),he(e,p,"gfmFootnoteDefinitionWhitespace")):r(y)}function p(y){return t(y)}}function a2(e,t,r){return e.check($r,t,e.attempt(Qp,t,r))}function l2(e){e.exit("gfmFootnoteDefinition")}function s2(e,t,r){const n=this;return he(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const l=n.events[n.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(a):r(a)}}function o2(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:a,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(l,s){let o=-1;for(;++o<l.length;)if(l[o][0]==="enter"&&l[o][1].type==="strikethroughSequenceTemporary"&&l[o][1]._close){let u=o;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[o][1].end.offset-l[o][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[o][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[o][1].end)},m={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[o][1].start)},d=[["enter",h,s],["enter",l[u][1],s],["exit",l[u][1],s],["enter",m,s]],p=s.parser.constructs.insideSpan.null;p&&nt(d,d.length,0,Mn(p,l.slice(u+1,o),s)),nt(d,d.length,0,[["exit",m,s],["enter",l[o][1],s],["exit",l[o][1],s],["exit",h,s]]),nt(l,u-1,o-u+3,d),o=u+d.length-2;break}}for(o=-1;++o<l.length;)l[o][1].type==="strikethroughSequenceTemporary"&&(l[o][1].type="data");return l}function a(l,s,o){const u=this.previous,h=this.events;let m=0;return d;function d(y){return u===126&&h[h.length-1][1].type!=="characterEscape"?o(y):(l.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const x=fr(u);if(y===126)return m>1?o(y):(l.consume(y),m++,p);if(m<2&&!r)return o(y);const T=l.exit("strikethroughSequenceTemporary"),S=fr(y);return T._open=!S||S===2&&!!x,T._close=!x||x===2&&!!S,s(y)}}}class u2{constructor(){this.map=[]}add(t,r,n){c2(this,t,r,n)}consume(t){if(this.map.sort(function(a,l){return a[0]-l[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const a of i)t.push(a);i=n.pop()}this.map.length=0}}function c2(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function h2(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function m2(){return{flow:{null:{name:"table",tokenize:f2,resolveAll:d2}}}}function f2(e,t,r){const n=this;let i=0,a=0,l;return s;function s(z){let P=n.events.length-1;for(;P>-1;){const _=n.events[P][1].type;if(_==="lineEnding"||_==="linePrefix")P--;else break}const R=P>-1?n.events[P][1].type:null,K=R==="tableHead"||R==="tableRow"?E:o;return K===E&&n.parser.lazy[n.now().line]?r(z):K(z)}function o(z){return e.enter("tableHead"),e.enter("tableRow"),u(z)}function u(z){return z===124||(l=!0,a+=1),h(z)}function h(z){return z===null?r(z):ee(z)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),p):r(z):me(z)?he(e,h,"whitespace")(z):(a+=1,l&&(l=!1,i+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),l=!0,h):(e.enter("data"),m(z)))}function m(z){return z===null||z===124||ve(z)?(e.exit("data"),h(z)):(e.consume(z),z===92?d:m)}function d(z){return z===92||z===124?(e.consume(z),m):m(z)}function p(z){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(z):(e.enter("tableDelimiterRow"),l=!1,me(z)?he(e,y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):y(z))}function y(z){return z===45||z===58?T(z):z===124?(l=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),x):V(z)}function x(z){return me(z)?he(e,T,"whitespace")(z):T(z)}function T(z){return z===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),S):z===45?(a+=1,S(z)):z===null||ee(z)?L(z):V(z)}function S(z){return z===45?(e.enter("tableDelimiterFiller"),C(z)):V(z)}function C(z){return z===45?(e.consume(z),C):z===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),I):(e.exit("tableDelimiterFiller"),I(z))}function I(z){return me(z)?he(e,L,"whitespace")(z):L(z)}function L(z){return z===124?y(z):z===null||ee(z)?!l||i!==a?V(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):V(z)}function V(z){return r(z)}function E(z){return e.enter("tableRow"),q(z)}function q(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),q):z===null||ee(z)?(e.exit("tableRow"),t(z)):me(z)?he(e,q,"whitespace")(z):(e.enter("data"),X(z))}function X(z){return z===null||z===124||ve(z)?(e.exit("data"),q(z)):(e.consume(z),z===92?j:X)}function j(z){return z===92||z===124?(e.consume(z),X):X(z)}}function d2(e,t){let r=-1,n=!0,i=0,a=[0,0,0,0],l=[0,0,0,0],s=!1,o=0,u,h,m;const d=new u2;for(;++r<e.length;){const p=e[r],y=p[1];p[0]==="enter"?y.type==="tableHead"?(s=!1,o!==0&&(gl(d,t,o,u,h),h=void 0,o=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},d.add(r,0,[["enter",u,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(n=!0,m=void 0,a=[0,0,0,0],l=[0,r+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},d.add(r,0,[["enter",h,t]])),i=y.type==="tableDelimiterRow"?2:h?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(n=!1,l[2]===0&&(a[1]!==0&&(l[0]=l[1],m=on(d,t,a,i,void 0,m),a=[0,0,0,0]),l[2]=r)):y.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(l[0]=l[1],m=on(d,t,a,i,void 0,m)),a=l,l=[a[1],r,0,0])):y.type==="tableHead"?(s=!0,o=r):y.type==="tableRow"||y.type==="tableDelimiterRow"?(o=r,a[1]!==0?(l[0]=l[1],m=on(d,t,a,i,r,m)):l[1]!==0&&(m=on(d,t,l,i,r,m)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(l[3]=r)}for(o!==0&&gl(d,t,o,u,h),d.consume(t.events),r=-1;++r<t.events.length;){const p=t.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=h2(t.events,r))}return e}function on(e,t,r,n,i,a){const l=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(a.end=Object.assign({},cr(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const o=cr(t.events,r[1]);if(a={type:l,start:Object.assign({},o),end:Object.assign({},o)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const u=cr(t.events,r[2]),h=cr(t.events,r[3]),m={type:s,start:Object.assign({},u),end:Object.assign({},h)};if(e.add(r[2],0,[["enter",m,t]]),n!==2){const d=t.events[r[2]],p=t.events[r[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",r[3]>r[2]+1){const y=r[2]+1,x=r[3]-r[2]-1;e.add(y,x,[])}}e.add(r[3]+1,0,[["exit",m,t]])}return i!==void 0&&(a.end=Object.assign({},cr(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function gl(e,t,r,n,i){const a=[],l=cr(t.events,r);i&&(i.end=Object.assign({},l),a.push(["exit",i,t])),n.end=Object.assign({},l),a.push(["exit",n,t]),e.add(r+1,0,a)}function cr(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const p2={name:"tasklistCheck",tokenize:b2};function g2(){return{text:{91:p2}}}function b2(e,t,r){const n=this;return i;function i(o){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),a)}function a(o){return ve(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),l):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),l):r(o)}function l(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(o)}function s(o){return ee(o)?t(o):me(o)?e.check({tokenize:y2},t,r)(o):r(o)}}function y2(e,t,r){return he(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function x2(e){return $l([Up(),e2(),o2(e),m2(),g2()])}const v2={};function jo(e){const t=this,r=e||v2,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),l=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(x2(r)),a.push(jp()),l.push(_p(r))}function w2(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:s,mathText:l,mathTextData:s}};function e(o){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},o)}function t(){this.buffer()}function r(){const o=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=o}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(o){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(o),h.value=u;const m=h.data.hChildren[0];m.type,m.tagName,m.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(o){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},o),this.buffer()}function l(o){const u=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(o),h.value=u,h.data.hChildren.push({type:"text",value:u})}function s(o){this.config.enter.data.call(this,o),this.config.exit.data.call(this,o)}}function k2(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
288
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(a,l,s,o){const u=a.value||"",h=s.createTracker(o),m="$".repeat(Math.max(vo(u,"$")+1,2)),d=s.enter("mathFlow");let p=h.move(m);if(a.meta){const y=s.enter("mathFlowMeta");p+=h.move(s.safe(a.meta,{after:`
|
|
289
|
+
`,before:p,encode:["$"],...h.current()})),y()}return p+=h.move(`
|
|
290
|
+
`),u&&(p+=h.move(u+`
|
|
291
|
+
`)),p+=h.move(m),d(),p}function n(a,l,s){let o=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(o);)u++;const h="$".repeat(u);/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^\$|\$$/.test(o))&&(o=" "+o+" ");let m=-1;for(;++m<s.unsafe.length;){const d=s.unsafe[m];if(!d.atBreak)continue;const p=s.compilePattern(d);let y;for(;y=p.exec(o);){let x=y.index;o.codePointAt(x)===10&&o.codePointAt(x-1)===13&&x--,o=o.slice(0,x)+" "+o.slice(y.index+1)}}return h+o+h}function i(){return"$"}}const S2={tokenize:A2,concrete:!0,name:"mathFlow"},bl={tokenize:T2,partial:!0};function A2(e,t,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let l=0;return s;function s(C){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),o(C)}function o(C){return C===36?(e.consume(C),l++,o):l<2?r(C):(e.exit("mathFlowFenceSequence"),he(e,u,"whitespace")(C))}function u(C){return C===null||ee(C)?m(C):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(C))}function h(C){return C===null||ee(C)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),m(C)):C===36?r(C):(e.consume(C),h)}function m(C){return e.exit("mathFlowFence"),n.interrupt?t(C):e.attempt(bl,d,T)(C)}function d(C){return e.attempt({tokenize:S,partial:!0},T,p)(C)}function p(C){return(a?he(e,y,"linePrefix",a+1):y)(C)}function y(C){return C===null?T(C):ee(C)?e.attempt(bl,d,T)(C):(e.enter("mathFlowValue"),x(C))}function x(C){return C===null||ee(C)?(e.exit("mathFlowValue"),y(C)):(e.consume(C),x)}function T(C){return e.exit("mathFlow"),t(C)}function S(C,I,L){let V=0;return he(C,E,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function E(j){return C.enter("mathFlowFence"),C.enter("mathFlowFenceSequence"),q(j)}function q(j){return j===36?(V++,C.consume(j),q):V<l?L(j):(C.exit("mathFlowFenceSequence"),he(C,X,"whitespace")(j))}function X(j){return j===null||ee(j)?(C.exit("mathFlowFence"),I(j)):L(j)}}}function T2(e,t,r){const n=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return n.parser.lazy[n.now().line]?r(l):t(l)}}function C2(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:M2,previous:z2,name:"mathText"};function n(i,a,l){let s=0,o,u;return h;function h(x){return i.enter("mathText"),i.enter("mathTextSequence"),m(x)}function m(x){return x===36?(i.consume(x),s++,m):s<2&&!r?l(x):(i.exit("mathTextSequence"),d(x))}function d(x){return x===null?l(x):x===36?(u=i.enter("mathTextSequence"),o=0,y(x)):x===32?(i.enter("space"),i.consume(x),i.exit("space"),d):ee(x)?(i.enter("lineEnding"),i.consume(x),i.exit("lineEnding"),d):(i.enter("mathTextData"),p(x))}function p(x){return x===null||x===32||x===36||ee(x)?(i.exit("mathTextData"),d(x)):(i.consume(x),p)}function y(x){return x===36?(i.consume(x),o++,y):o===s?(i.exit("mathTextSequence"),i.exit("mathText"),a(x)):(u.type="mathTextData",p(x))}}}function M2(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="mathTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function z2(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function E2(e){return{flow:{36:S2},text:{36:C2(e)}}}const I2={};function _o(e){const t=this,r=e||I2,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),l=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(E2(r)),a.push(w2()),l.push(k2(r))}function Ho(e){return e.replace(/\r\n?/g,`
|
|
292
|
+
`).replace(/\\\[([\s\S]*?)\\\]/g,(t,r)=>`$$${r}$$`).replace(/\\\(([\s\S]*?)\\\)/g,(t,r)=>`$${r}$`)}function yl({content:e,onOpenLink:t}){const r=Ho(e),n=(i,a)=>{t?.(a,{newTab:i.metaKey||i.ctrlKey||i.button===1})&&i.preventDefault()};return D.jsx("div",{className:"text-[15px] leading-[1.6] text-[var(--text)] [&_.katex]:text-[var(--text)] [&_.katex-display]:my-5 [&_.katex-display]:overflow-x-auto [&_.katex-display]:rounded-md [&_.katex-display]:bg-[var(--surface-2)] [&_.katex-display]:p-[15px] [&_a]:break-all [&_a]:border-b [&_a]:border-transparent [&_a]:text-[var(--accent)] [&_a]:no-underline [&_blockquote]:my-5 [&_blockquote]:rounded-md [&_blockquote]:border-l-4 [&_blockquote]:border-[var(--accent)] [&_blockquote]:bg-[var(--surface-2)] [&_blockquote]:px-[25px] [&_blockquote]:py-[15px] [&_blockquote]:italic [&_blockquote]:text-[var(--muted)] [&_code]:rounded-sm [&_code]:bg-[var(--surface-2)] [&_code]:px-[6px] [&_code]:py-[3px] [&_code]:font-mono [&_code]:text-[0.9em] [&_code]:text-[#e1d5a1] [&_h1]:mb-4 [&_h1]:border-b [&_h1]:border-[var(--border)] [&_h1]:pb-2 [&_h1]:text-[1.8em] [&_h1]:font-bold [&_h2]:mt-6 [&_h2]:text-[1.5em] [&_h2]:font-semibold [&_h3]:text-[1.3em] [&_h3]:font-semibold [&_hr]:my-[30px] [&_hr]:border-0 [&_hr]:bg-[var(--border)] [&_hr]:h-px [&_img]:my-[15px] [&_img]:h-auto [&_img]:max-w-full [&_img]:rounded-sm [&_img]:border [&_img]:border-[var(--border)] [&_li]:mb-2 [&_ol]:my-[10px] [&_ol]:pl-[25px] [&_ol]:list-decimal [&_p]:m-0 [&_pre]:my-5 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:border [&_pre]:border-[var(--border)] [&_pre]:bg-[var(--surface-2)] [&_pre]:p-4 [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_table]:my-5 [&_table]:w-full [&_table]:border-collapse [&_table]:overflow-hidden [&_table]:rounded-sm [&_table]:border [&_table]:border-[var(--border)] [&_td]:border-b [&_td]:border-[var(--border)] [&_td]:px-[15px] [&_td]:py-[10px] [&_th]:border-b-2 [&_th]:border-[var(--border)] [&_th]:bg-[var(--surface-2)] [&_th]:px-[15px] [&_th]:py-3 [&_th]:text-left [&_ul]:my-[10px] [&_ul]:pl-[25px] [&_ul]:list-disc",children:D.jsx(cs,{remarkPlugins:[jo,_o],rehypePlugins:[po],skipHtml:!0,components:{a({href:i,children:a,...l}){const s=typeof i=="string"?i:"";return D.jsx("a",{...l,href:s,onClick:o=>{s&&n(o,s)},onAuxClick:o=>{!s||o.button!==1||n(o,s)},children:a})}},children:r})})}const D2=Wo,N2=`${_r}/anthropic.svg`,R2=`${_r}/deepseek.svg`,B2=`${_r}/openai.svg`,F2=`${_r}/gemini.svg`,P2=`${_r}/xai.svg`;function Xr({assetUrl:e,label:t,className:r}){return D.jsx("span",{role:"img","aria-label":t,className:r,style:{backgroundColor:"#111827",WebkitMaskImage:`url(${e})`,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain",maskImage:`url(${e})`,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain"}})}function L2({className:e}){return D.jsx(Xr,{assetUrl:B2,label:"OpenAI",className:e})}function O2({className:e}){return D.jsx(Xr,{assetUrl:N2,label:"Anthropic",className:e})}function q2({className:e}){return D.jsx(Xr,{assetUrl:R2,label:"DeepSeek",className:e})}function j2({className:e}){return D.jsx(Xr,{assetUrl:F2,label:"Gemini",className:e})}function _2({className:e}){return D.jsx(Xr,{assetUrl:P2,label:"xAI",className:e})}function H2({className:e}){return D.jsx("img",{src:D2,alt:"Custom API",className:e})}function $2(e){const t=e.trim().toLowerCase();return t==="gpt-5.4"||t==="gpt-5.4-mini"||t.startsWith("gpt-")||t.startsWith("o")||t.startsWith("openai")?"openai":t.startsWith("gemini")||t.startsWith("google")?"gemini":t.startsWith("claude")||t.startsWith("anthropic")?"anthropic":t.startsWith("deepseek")?"deepseek":t.startsWith("grok")||t.startsWith("xai")?"xai":"custom"}function xl({modelId:e,compact:t=!1}){const r=t?"h-3.5 w-3.5 shrink-0":"h-[18px] w-[18px] shrink-0",n=$2(e),i=n==="openai"?D.jsx(L2,{className:r}):n==="gemini"?D.jsx(j2,{className:r}):n==="anthropic"?D.jsx(O2,{className:r}):n==="deepseek"?D.jsx(q2,{className:r}):n==="xai"?D.jsx(_2,{className:r}):D.jsx(H2,{className:r}),a=n!=="custom";return t?a?D.jsx("span",{className:"inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-white p-[2px]",children:i}):i:D.jsx("span",{className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border p-1 shadow-[0_2px_10px_rgba(0,0,0,0.16)] ${a?"border-white/70 bg-white":"border-[var(--border)] bg-[var(--surface-2)]"}`,children:i})}function U2({message:e,isStreaming:t,selectedModel:r,onOpenLink:n,onRegenerate:i}){const a=e.role==="user",l=e.modelId??r,[s,o]=Z.useState(!1),[u,h]=Z.useState(!1);Z.useEffect(()=>{if(!s)return;const d=window.setTimeout(()=>{o(!1)},1200);return()=>{window.clearTimeout(d)}},[s]),Z.useEffect(()=>{if(!(a||!e.reasoningSummary?.trim())){if(t){h(!0);return}h(!1)}},[t,a,e.content,e.reasoningSummary]);const m=async()=>{if(e.content.trim())try{await navigator.clipboard.writeText(e.content),o(!0)}catch{return}};return D.jsx("article",{className:`mb-4 flex ${a?"justify-end":"justify-start"}`,children:D.jsxs("div",{className:`max-w-[min(840px,100%)] rounded-2xl border border-[var(--border)] bg-[var(--surface-2)] px-4 shadow-[0_6px_24px_rgba(0,0,0,0.18)] ${a?"py-1.5":"py-3"}`,children:[!a&&!(t&&e.content.trim().length===0)?D.jsx("div",{className:"mb-2 mt-1 inline-flex",children:D.jsx(xl,{modelId:l})}):null,!a&&t&&e.content.trim().length===0?D.jsxs("div",{className:"inline-flex items-center gap-2 py-1 text-[var(--muted)]",children:[D.jsxs("span",{className:"relative inline-flex h-6 w-6 items-center justify-center",children:[D.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-[var(--border)]"}),D.jsx("span",{className:"absolute inset-0 animate-spin rounded-full border-2 border-transparent border-t-[var(--accent)]"}),D.jsx("span",{className:"relative inline-flex h-4 w-4 items-center justify-center rounded-full bg-[var(--surface-2)] p-0.5",children:D.jsx(xl,{modelId:l,compact:!0})})]}),D.jsx("span",{className:"text-sm",children:"Thinking..."})]}):D.jsxs(D.Fragment,{children:[a&&Array.isArray(e.images)&&e.images.length>0?D.jsx("div",{className:"mb-2 grid grid-cols-2 gap-2 sm:grid-cols-3",children:e.images.map((d,p)=>D.jsx("img",{src:d.dataUrl,alt:d.name??`Attached image ${p+1}`,className:"max-h-40 w-full rounded-lg border border-[var(--border)] object-cover",loading:"lazy",decoding:"async"},`${d.dataUrl.slice(0,32)}-${p}`))}):null,!a&&e.reasoningSummary?.trim()?D.jsxs("div",{className:"mb-3 overflow-hidden rounded-xl border border-[var(--border)] bg-[color-mix(in_srgb,var(--surface)_72%,black_28%)]",children:[D.jsxs("button",{type:"button",onClick:()=>{h(d=>!d)},className:"flex w-full items-center justify-between gap-3 px-3 py-2 text-left text-xs font-medium text-[var(--muted)] transition hover:text-[var(--text)]",children:[D.jsx("span",{children:"Reasoning summary"}),D.jsx("span",{children:u?"Hide":"Show"})]}),u?D.jsx("div",{className:"border-t border-[var(--border)] px-3 py-3 text-sm text-[var(--muted)]",children:D.jsx(yl,{content:e.reasoningSummary,onOpenLink:n})}):null]}):null,D.jsx(yl,{content:e.content,onOpenLink:n})]}),!a&&e.content.trim().length>0?D.jsxs("div",{className:"mt-2 flex items-center justify-between gap-2",children:[D.jsxs("p",{className:"text-[11px] text-[var(--muted)]",children:[Fu(e.durationMs)," ·"," ",Pu(e.totalTokens,e.tokensEstimated)]}),D.jsxs("div",{className:"flex items-center gap-2",children:[i?D.jsx("button",{type:"button",onClick:i,className:"inline-flex h-7 w-7 items-center justify-center rounded-md border border-[var(--border)] text-[var(--muted)] transition hover:text-[var(--text)]","aria-label":"Regenerate response",children:D.jsx(Jo,{size:12})}):null,D.jsx(Un.button,{type:"button",onClick:()=>{m()},className:"inline-flex h-7 w-7 items-center justify-center rounded-md border border-[var(--border)] text-[var(--muted)] transition hover:text-[var(--text)]","aria-label":"Copy response",whileTap:{scale:.86},animate:s?{scale:[1,.88,1.04,1]}:{scale:1},transition:{duration:.28,times:[0,.35,.7,1]},children:D.jsx(Qo,{mode:"wait",initial:!1,children:s?D.jsx(Un.span,{initial:{opacity:0,scale:.7,rotate:-14},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.7,rotate:14},transition:{duration:.18},className:"inline-flex",children:D.jsx(eu,{size:12})},"check"):D.jsx(Un.span,{initial:{opacity:0,scale:.8,rotate:14},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:-14},transition:{duration:.18},className:"inline-flex",children:D.jsx(wu,{size:12})},"copy")})})]})]}):null]})})}function Q0(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>{if(typeof t=="string")return t;if(!t||typeof t!="object")return"";const r=t.text;return typeof r=="string"?r:""}).join(""):""}function V2(e){if(!e||typeof e!="object")return"";const t=e.choices;if(!Array.isArray(t)||t.length===0)return"";const r=t[0],n=r?.delta?.content;if(typeof n<"u")return Q0(n);const i=r?.message?.content;return Q0(i)}function G2(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>{if(!t||typeof t!="object")return"";const r=t.text;return typeof r=="string"?r:""}).filter(Boolean).join(`
|
|
293
|
+
|
|
294
|
+
`):""}function W2(e){if(!e||typeof e!="object")return null;const t=e;if(typeof t.type=="string"){if(t.type==="response.reasoning_summary_text.delta"||t.type==="response.reasoning_summary.delta")return typeof t.delta=="string"&&t.delta?{mode:"append",text:t.delta}:null;if(t.type==="response.reasoning_summary_text.done")return typeof t.text=="string"&&t.text?{mode:"replace",text:t.text}:null;if(t.type==="response.output_item.done"||t.type==="response.done"){const i=t.type==="response.done"?t.response?.output:e.item,l=(Array.isArray(i)?i:i?[i]:[]).map(s=>!s||typeof s!="object"||s.type!=="reasoning"?"":G2(s.summary)).filter(Boolean).join(`
|
|
295
|
+
|
|
296
|
+
`);return l?{mode:"replace",text:l}:null}}const r=t.choices;if(!Array.isArray(r)||r.length===0)return null;const n=Q0(r[0]?.delta?.reasoning_content);return n?{mode:"append",text:n}:null}function X2(e){const t=e.usage?.total_tokens??e.usage?.output_tokens??e.response?.usage?.total_tokens??e.response?.usage?.output_tokens;return typeof t=="number"&&Number.isFinite(t)&&t>0?t:null}function vl(e,t,r){const n=e.split(/\r?\n/);for(const i of n){if(!i.startsWith("data:"))continue;const a=i.slice(5).trim();if(a){if(a==="[DONE]")return!0;try{const l=JSON.parse(a),s=X2(l);typeof s=="number"&&r?.onUsageTotalTokens?.(s);const o=W2(l);o&&r?.onReasoningSummaryDelta?.(o);const u=V2(l);if(!u&&l.type==="response.output_text.delta"&&typeof l.delta=="string"){t(l.delta);continue}u&&t(u)}catch{continue}}}return!1}const Sn={"gpt-5.4":"gpt-5.4","gpt-5.4-mini":"gpt-5.4-mini","gemini-3-flash-preview":"gemini-3-flash-preview"},wl=1200,Fr=[{id:"gpt-5.4-mini",label:"GPT-5.4 Mini",description:"Faster OpenAI model with lower latency.",providerId:"openai"},{id:"gpt-5.4",label:"GPT-5.4",description:"High-capability OpenAI model.",providerId:"openai"},{id:"gemini-3-flash-preview",label:"Gemini 3 Flash Preview",description:"Fast multimodal model.",providerId:"google"}],Pi="gpt-5.4-mini",$o="gpt-5.4-mini";function Y2(e){if(e==="gpt-5.4")return"gpt-5.4";if(e==="gpt-5.4-mini")return"gpt-5.4-mini";if(e==="gemini-3-flash-preview")return"gemini-3-flash-preview"}function K2(e){if(typeof e!="string")return;const t=e.trim();return t||void 0}function br(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function An(e="New chat"){const t=Date.now();return{id:br(),title:e,messages:[],updatedAt:t}}function Z2(e){const t=e.replace(/\s+/g," ").replace(/^[`"'([{]+|[`"')\]}]+$/g,"").trim();if(!t)return"New chat";const r=t.replace(/[.!?]+$/g,""),n=r.split(" ").filter(Boolean);if(n.length===0)return"New chat";let i=n.slice(0,5).join(" ");if(i.length>32&&(i=i.slice(0,32).trimEnd()),!i)return"New chat";const a=i.charAt(0),l=n.length>5||r.length>i.length;return`${a.toUpperCase()}${i.slice(1)}${l?"...":""}`}function J2(e){const t=e.trim();return t.length<=wl?t:`${t.slice(0,wl)}...`}function Q2(e){return e.filter(r=>r.content.trim().length>0||r.role==="user"&&Array.isArray(r.images)&&r.images.length>0).slice(-10).map(r=>{const n=J2(r.content);if(r.role==="user"&&Array.isArray(r.images)&&r.images.length>0){const i=[];n.length>0&&i.push({type:"text",text:n});for(const a of r.images.slice(0,5))i.push({type:"image_url",image_url:{url:a.dataUrl,detail:"auto"}});return{role:r.role,content:i}}return{role:r.role,content:n}})}async function Uo(e,t,r){if(!e.body)return{};const n=e.body.getReader(),i=new TextDecoder;let a="",l,s="";for(;;){const{value:o,done:u}=await n.read();if(u)break;a+=i.decode(o,{stream:!0});const h=a.split(/\r?\n\r?\n/);a=h.pop()??"";for(const m of h)if(vl(m,t,{onUsageTotalTokens:p=>{l=p},onReasoningSummaryDelta:p=>{s=p.mode==="replace"?p.text:s+p.text,r?.(s)}}))return{totalTokens:l,...s.trim()?{reasoningSummary:s.trim()}:{}}}return a+=i.decode(),a.trim()&&vl(a,t,{onUsageTotalTokens:o=>{l=o},onReasoningSummaryDelta:o=>{s=o.mode==="replace"?o.text:s+o.text,r?.(s)}}),{totalTokens:l,...s.trim()?{reasoningSummary:s.trim()}:{}}}function e5(e){if(!e)return[];try{const t=JSON.parse(e);return Array.isArray(t)?t.map(r=>{if(!r||typeof r!="object")return null;const n=r,i=typeof n.id=="string"?n.id:br(),a=typeof n.title=="string"&&n.title.trim()?n.title.trim():"New chat",l=typeof n.updatedAt=="number"?n.updatedAt:Date.now(),s=Array.isArray(n.messages)?n.messages.map(o=>{if(!o||typeof o!="object")return null;const u=o;if(u.role!=="user"&&u.role!=="assistant")return null;const h=K2(u.modelId),m=Array.isArray(u.images)?u.images.map(x=>{if(!x||typeof x!="object")return null;const T=x;return typeof T.dataUrl!="string"||!T.dataUrl.startsWith("data:image/")||typeof T.mimeType!="string"||!T.mimeType.startsWith("image/")?null:{dataUrl:T.dataUrl,mimeType:T.mimeType,...typeof T.name=="string"&&T.name.trim().length>0?{name:T.name}:{}}}).filter(x=>x!==null).slice(0,5):[],d=typeof u.imageDataUrl=="string"&&u.imageDataUrl?.startsWith("data:image/")?u.imageDataUrl??"":"",p=typeof u.imageMimeType=="string"&&u.imageMimeType?.startsWith("image/")?u.imageMimeType??"":"",y=m.length>0?m:d&&p?[{dataUrl:d,mimeType:p}]:[];return{id:typeof u.id=="string"?u.id:br(),role:u.role,content:typeof u.content=="string"?u.content:"",createdAt:typeof u.createdAt=="number"?u.createdAt:Date.now(),...y.length>0?{images:y}:{},...h?{modelId:h}:{},...typeof u.durationMs=="number"&&Number.isFinite(u.durationMs)?{durationMs:Math.max(0,u.durationMs)}:{},...typeof u.totalTokens=="number"&&Number.isFinite(u.totalTokens)?{totalTokens:Math.max(0,Math.round(u.totalTokens))}:{},...typeof u.tokensEstimated=="boolean"?{tokensEstimated:u.tokensEstimated}:{}}}).filter(o=>o!==null):[];return{id:i,title:a,messages:s,updatedAt:l}}).filter(r=>r!==null):[]}catch{return[]}}function kl(e){return e.map(t=>({id:t.id,title:t.title,updatedAt:t.updatedAt,messages:t.messages.map(({images:r,...n})=>({...n}))}))}function t5(e){const t=Y2(e);if(t)return t;const r=Fr.find(n=>n.id===e);return r?r.id:Pi}const Sl=48,T0="Upstream error: the API returned an empty response. This is likely the provider's fault, not yours.";function r5(e=Date.now()){return new Date(e).toISOString().slice(0,10)}function n5(e){if(typeof window>"u")return;const t=e.get("X-RateLimit-Remaining-Day");t&&(window.localStorage.setItem(ft.aiRateLimitRemainingDay,t),window.localStorage.setItem(ft.aiRateLimitDayStamp,r5()))}function i5(e){const t="base64,",r=e.indexOf(t);if(r===-1)return e.length;const n=e.slice(r+t.length),i=n.endsWith("==")?2:n.endsWith("=")?1:0;return Math.max(0,Math.floor(n.length*3/4)-i)}function a5(e){return!Number.isFinite(e)||e<=0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}function Vo(e,t){return e<=0?"":` Upload payload: ${e} image${e===1?"":"s"} (~${a5(t)}).`}function l5(e){const t=e.split(/\r?\n/).map(n=>n.trim()).find(Boolean);if(!t)return null;const r=t.replace(/^["'`#*\-\s]+/,"").replace(/["'`]+$/g,"").replace(/\s+/g," ").trim();return r?r.length<=Sl?r:`${r.slice(0,Sl).trimEnd()}...`:null}async function s5(e){const t=e.input.trim();if(!t)return null;const r=e.requestModel in Sn?Sn[e.requestModel]:e.requestModel,n=await Cl("/api/ai/responses",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:r,prompt_profile:"default",messages:[{role:"user",content:`Create a concise 2 to 5 word chat title for the following first message. Return only the title, with no quotes, no markdown, and no extra text.
|
|
297
|
+
|
|
298
|
+
Message: ${t}`}]})});if(!n.ok)return null;let i="";return await Uo(n,a=>{i+=a}),l5(i)}async function o5(e,t){const r=t?.hasImageUploads?Vo(t.imageCount,t.imageBytes):"";try{const n=await e.json();if(typeof n.message=="string"&&n.message.trim())return`${n.message}${r}`;if(n.error==="rate_limited"){if(n.reason==="minute_limit_exceeded")return`Messages per minute limit exceeded.${r}`;if(n.reason==="daily_limit_exceeded")return`You ran out of your daily AI limit. Discord server boosters and donators get higher limits: https://discord.gg/ZDq3UYskkK${r}`}return n.error==="ip_blocked"||n.error==="vpn_blocked"||n.error==="datacenter_blocked"?n.reason==="vpn_blocked"?`Requests from VPN connections are blocked. Please disable your VPN and try again.${r}`:n.reason==="datacenter_blocked"?`Requests from datacenter or hosting IPs are blocked. Please use a residential/mobile connection and try again.${r}`:`Request blocked by IP reputation policy.${r}`:typeof n.error=="string"&&n.error.trim()?`${n.error}${r}`:e.status===413&&t?.hasImageUploads?`Upload payload too large (HTTP 413). Try fewer/smaller images.${r}`:e.status===502||e.status===503||e.status===504?`Upstream AI provider is currently down or unavailable (HTTP ${e.status}). Please try again in a bit.${r}`:`Request failed (${e.status}).${r}`}catch{return e.status===413&&t?.hasImageUploads?`Upload payload too large (HTTP 413). Try fewer/smaller images.${r}`:e.status===502||e.status===503||e.status===504?`Upstream AI provider is currently down or unavailable (HTTP ${e.status}). Please try again in a bit.${r}`:`Request failed (${e.status}).${r}`}}async function C0(e){const t=e.sessionOverride??e.activeSession,r=e.rawInput.trim(),n=e.allowEmptyInput??!1,i=e.requestModel??e.selectedModel,a=i;if(!r&&!n||e.isStreaming||!t)return null;const l=t.id,s=Date.now(),{persistedUserMessage:o,outboundUserMessage:u}=e.buildUserMessages(s,r),h={id:br(),role:"assistant",content:"",createdAt:s,modelId:a},m=t.messages.some(K=>K.role==="user"),d=[...t.messages,u],p=Date.now(),y=u.images??[],x=y.length>0,T=y.reduce((K,_)=>K+i5(_.dataUrl),0),S=y.length;let C=0,I="",L=null;const V=!m&&r.length>0&&e.promptProfile!=="screen",E=m?t.title:"New chat",q=m?t.title:Z2(r),X=K=>{e.setSessions(_=>_.map(F=>F.id!==l||F.title!=="New chat"?F:{...F,title:K}))};V&&s5({input:r,requestModel:Pi}).then(K=>{X(K??q)}).catch(()=>{X(q)});const j=()=>{if(!I){L=null;return}const K=I;I="",L=null,e.callbacks?.onDelta?.(K),e.setSessions(_=>_.map(F=>F.id!==l?F:{...F,updatedAt:Date.now(),messages:F.messages.map(te=>te.id===h.id?{...te,content:te.content+K}:te)}))},z=()=>{L===null&&(L=window.requestAnimationFrame(()=>{j()}))};e.setError(null),e.setIsStreaming(!0),e.setSessions(K=>K.map(_=>_.id!==l?_:{..._,title:E,messages:[...t.messages,o,h],updatedAt:Date.now()}));const P=new AbortController;e.abortControllerRef.current=P;let R=!1;try{const K=i in Sn?Sn[i]:i,_=e.apiMode==="responses"?"/api/ai/responses":"/api/ai/chat/completions",F={model:K,prompt_profile:e.promptProfile,messages:Q2(d)};e.webSearch&&(F.web_search=!0),e.apiMode==="responses"?F.reasoning={effort:"medium",summary:"auto"}:F.stream_options={include_usage:!0};const le=await Cl(_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(F),signal:P.signal});if(n5(le.headers),!le.ok)throw new Error(await o5(le,{hasImageUploads:x,imageCount:S,imageBytes:T}));const de=await Uo(le,be=>{C+=be.length,I+=be,z()},be=>{e.setSessions(k=>k.map(ye=>ye.id!==l?ye:{...ye,updatedAt:Date.now(),messages:ye.messages.map(qe=>qe.id===h.id?{...qe,reasoningSummary:be}:qe)}))});if(j(),C===0)throw new Error(T0);const xe=Date.now()-p,A=de.totalTokens,fe=de.reasoningSummary;e.setSessions(be=>be.map(k=>k.id!==l?k:{...k,updatedAt:Date.now(),messages:k.messages.map(ye=>ye.id===h.id?{...ye,durationMs:xe,...typeof fe=="string"&&fe.trim().length>0?{reasoningSummary:fe.trim()}:{},...typeof A=="number"?{totalTokens:A}:{}}:ye)})),R=!0}catch(K){if(j(),L!==null&&(window.cancelAnimationFrame(L),L=null),P.signal.aborted)e.setSessions(_=>_.map(F=>{if(F.id!==l)return F;const te=F.messages.find(le=>le.id===h.id);return!te||te.content.trim().length>0?F:{...F,messages:F.messages.filter(le=>le.id!==h.id),updatedAt:Date.now()}}));else{const F=K instanceof Error&&K.message===T0?T0:"Sorry, I could not complete that response.",te=x?Vo(S,T):"",le=x?`Upload request failed before completion.${te}`:"Failed to complete request",xe=(x&&K instanceof TypeError?`Upload request failed (network/CORS).${te}`:null)??(K instanceof Error?K.message:le);e.setError(xe),e.callbacks?.onError?.(xe),e.setSessions(A=>A.map(fe=>fe.id!==l?fe:{...fe,updatedAt:Date.now(),messages:fe.messages.map(be=>be.id===h.id&&be.content.trim().length===0?{...be,content:F}:be)}))}}finally{L!==null&&window.cancelAnimationFrame(L),e.abortControllerRef.current===P&&(e.abortControllerRef.current=null),e.setIsStreaming(!1),R&&e.callbacks?.onComplete?.()}return h.id}const fn=20,u5=1200;function c5(){if(typeof window>"u"){const a=An();return{sessions:[a],activeSessionId:a.id,selectedModel:Pi}}const e=e5(window.localStorage.getItem(ft.aiSessions)),t=e.length>0?e.slice(0,fn):[An()],r=window.localStorage.getItem(ft.aiActiveSession),n=t.some(a=>a.id===r)?r??t[0].id:t[0].id,i=t5(window.localStorage.getItem(ft.aiModel));return{sessions:t,activeSessionId:n,selectedModel:i}}function h5(){const[e]=Z.useState(c5),[t,r]=Z.useState(e.sessions),[n,i]=Z.useState(e.activeSessionId),[a,l]=Z.useState(e.selectedModel),s=Z.useMemo(()=>t.find(h=>h.id===n)??t[0]??null,[t,n]);return Z.useEffect(()=>{if(typeof window>"u")return;const h=window.setTimeout(()=>{window.localStorage.setItem(ft.aiSessions,JSON.stringify(kl(t.slice(0,fn))))},u5),m=()=>{window.clearTimeout(h),window.localStorage.setItem(ft.aiSessions,JSON.stringify(kl(t.slice(0,fn))))},d=()=>{document.visibilityState==="hidden"&&m()};return window.addEventListener("pagehide",m,{once:!0}),document.addEventListener("visibilitychange",d),()=>{window.clearTimeout(h),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",d)}},[t]),Z.useEffect(()=>{typeof window>"u"||window.localStorage.setItem(ft.aiActiveSession,n)},[n]),Z.useEffect(()=>{typeof window>"u"||window.localStorage.setItem(ft.aiModel,a)},[a]),{sessions:t,setSessions:r,activeSession:s,activeSessionId:n,setActiveSessionId:i,selectedModel:a,setSelectedModel:l,createNewChat:()=>{const h=t.find(d=>d.messages.length===0);if(h)return r(d=>{const p=d.find(y=>y.id===h.id);return p?[p,...d.filter(y=>y.id!==p.id)]:d}),i(h.id),h.id;const m=An();return r(d=>[m,...d].slice(0,fn)),i(m.id),m.id},deleteSession:h=>{const m=t.filter(d=>d.id!==h);if(m.length===0){const d=An();r([d]),i(d.id);return}r(m),m.some(d=>d.id===n)||i(m[0].id)}}}function m5(){const{sessions:e,setSessions:t,activeSession:r,activeSessionId:n,setActiveSessionId:i,selectedModel:a,setSelectedModel:l,createNewChat:s,deleteSession:o}=h5(),[u,h]=Z.useState(!1),[m,d]=Z.useState(null),p=Z.useRef(null),y=Z.useRef(!1),x=E=>{h(q=>{const X=typeof E=="function"?E(q):E;return y.current=X,X})},T=()=>{p.current?.abort()};return{sessions:e,activeSession:r,activeSessionId:n,selectedModel:a,isStreaming:u,error:m,setSelectedModel:l,setActiveSessionId:i,createNewChat:()=>{y.current&&T();const E=s();return d(null),E},deleteSession:E=>{y.current&&E===n&&T(),o(E)},sendMessage:async(E,q,X)=>{const j=E.trim();return!j&&(!q||q.length===0)?null:C0({rawInput:j,buildUserMessages:(z,P)=>{const R={id:br(),role:"user",content:P,createdAt:z,...q&&q.length>0?{images:q.slice(0,5)}:{}};return{persistedUserMessage:R,outboundUserMessage:R}},allowEmptyInput:!!(q&&q.length>0),apiMode:"responses",requestModel:a,webSearch:X?.webSearch,activeSession:r,selectedModel:a,isStreaming:y.current,setSessions:t,setIsStreaming:x,setError:d,abortControllerRef:p})},sendScreenMessage:async(E,q,X,j=$o)=>{const z=E.trim();return!z||!q?null:C0({rawInput:z,buildUserMessages:(P,R)=>{const K={id:br(),role:"user",content:R,createdAt:P},_={...K,images:[{dataUrl:q,mimeType:"image/jpeg",name:"screen-capture"}]};return{persistedUserMessage:K,outboundUserMessage:_}},callbacks:X,allowEmptyInput:!0,apiMode:"chat-completions",requestModel:j,promptProfile:"screen",activeSession:r,selectedModel:a,isStreaming:y.current,setSessions:t,setIsStreaming:x,setError:d,abortControllerRef:p})},regenerateResponse:async E=>{if(!r||y.current)return null;const q=r.messages.findIndex(R=>R.id===E);if(q<=0||q!==r.messages.length-1)return null;const X=r.messages[q];if(X.role!=="assistant")return null;let j=-1;for(let R=q-1;R>=0;R-=1)if(r.messages[R]?.role==="user"){j=R;break}if(j===-1)return null;const z=r.messages[j],P={...r,messages:r.messages.slice(0,j)};return C0({rawInput:z.content,buildUserMessages:()=>({persistedUserMessage:z,outboundUserMessage:z}),allowEmptyInput:!!(z.images&&z.images.length>0),apiMode:"responses",requestModel:X.modelId??a,activeSession:r,sessionOverride:P,selectedModel:a,isStreaming:y.current,setSessions:t,setIsStreaming:x,setError:d,abortControllerRef:p})},stopStreaming:T}}function f5({tokens:e,isSharing:t,isAsking:r,output:n,error:i,selectedModel:a,modelOptions:l,onToggleSharing:s,onSelectModel:o,onAsk:u,onClose:h}){const m=t&&!r,d=Ho(n),p=!!i||r||d.trim().length>0,y=!p;return D.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:y?"8px":"10px",boxSizing:"border-box",padding:y?"10px":"12px",background:e.bg,color:e.text},children:[y?null:D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[D.jsx("span",{style:{width:"8px",height:"8px",borderRadius:"999px",background:t?"#22c55e":"#ef4444",boxShadow:t?"0 0 8px rgba(34,197,94,0.55)":"0 0 8px rgba(239,68,68,0.55)"}}),D.jsx("span",{style:{fontSize:"12px",color:e.muted},children:t?"Screen sharing active":"Screen sharing inactive"})]}),D.jsx("textarea",{onKeyDown:x=>{if(x.key==="Enter"&&!x.shiftKey){x.preventDefault();const T=x.currentTarget,S=T.value.trim();if(!m||!S)return;u(S),T.value=""}},placeholder:"Ask about what's on your screen...",rows:1,disabled:r,style:{width:"100%",minHeight:y?"36px":"56px",maxHeight:"120px",resize:"none",boxSizing:"border-box",borderRadius:"10px",border:`1px solid ${e.border}`,background:e.surface2,color:e.text,padding:"10px",outline:"none",fontFamily:"Geist Variable, ui-sans-serif, system-ui, sans-serif",fontSize:"13px",lineHeight:"1.45",opacity:r?.72:1}}),D.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"},children:[D.jsx("button",{type:"button",onClick:s,style:{height:"32px",borderRadius:"8px",border:`1px solid ${e.border}`,background:e.surface2,color:e.text,padding:"0 12px",cursor:"pointer",fontFamily:"Geist Variable, ui-sans-serif, system-ui, sans-serif",fontWeight:600,fontSize:"12px"},children:t?"Stop Sharing":"Share Screen"}),D.jsx("select",{value:a,onChange:x=>{o(x.currentTarget.value)},disabled:r,style:{height:"32px",minWidth:"138px",borderRadius:"8px",border:`1px solid ${e.border}`,background:e.surface2,color:e.text,padding:"0 10px",cursor:r?"default":"pointer",fontFamily:"Geist Variable, ui-sans-serif, system-ui, sans-serif",fontWeight:500,fontSize:"12px",opacity:r?.72:1},children:l.map(x=>D.jsx("option",{value:x.id,children:x.label},x.id))}),D.jsx("span",{style:{fontSize:"12px",color:e.muted},children:r?"Thinking...":"Press Enter to ask"}),D.jsx("button",{type:"button",onClick:h,style:{marginLeft:"auto",height:"32px",borderRadius:"8px",border:`1px solid ${e.border}`,background:e.surface2,color:e.text,padding:"0 12px",cursor:"pointer",fontFamily:"Geist Variable, ui-sans-serif, system-ui, sans-serif",fontWeight:600,fontSize:"12px"},children:"Close"})]}),p?D.jsxs("div",{style:{overflow:"auto",maxHeight:"560px",borderRadius:"10px",border:`1px solid ${e.border}`,background:e.surface2,padding:"10px",color:e.text,boxSizing:"border-box",fontFamily:"Geist Variable, ui-sans-serif, system-ui, sans-serif",fontSize:"13px",lineHeight:"1.55",whiteSpace:"normal"},children:[i?D.jsx("p",{style:{margin:0,color:"#fca5a5"},children:i}):null,i?null:D.jsx("div",{className:"lucide-screen-md",children:D.jsx(cs,{remarkPlugins:[jo,_o],rehypePlugins:[po],skipHtml:!0,children:d})})]}):null]})}const d5="https://cdn.jsdelivr.net/npm/katex@0.16.38/dist/katex.min.css",p5={video:{cursor:"always"},audio:!1};function g5(){const e=getComputedStyle(document.documentElement),t=(r,n)=>e.getPropertyValue(r).trim()||n;return{bg:t("--bg","#0b0f14"),surface:t("--surface","#111827"),surface2:t("--surface-2","#1f2937"),border:t("--border","#374151"),text:t("--text","#f3f4f6"),muted:t("--muted","#9ca3af"),accent:t("--accent","#ffffff")}}function b5(){try{if(window.top&&window.top!==window&&window.top.location.origin===window.location.origin)return window.top}catch{return window}return window}function y5(e){const t="popup=yes,width=430,height=120";return e.open("","lucide-screen-assistant",t)??window.open("","lucide-screen-assistant",t)}function x5(e){const t=e.document;if(t.title="Lucide Screen Assistant",t.body.innerHTML="",t.body.style.margin="0",t.documentElement.style.overflow="hidden",t.body.style.overflow="hidden",t.body.style.fontFamily="Geist Variable, Geist, ui-sans-serif, system-ui, sans-serif",!t.getElementById("lucide-screen-assistant-style")){const n=t.createElement("style");n.id="lucide-screen-assistant-style",n.textContent=`
|
|
299
|
+
.lucide-screen-md { overflow-wrap: anywhere; }
|
|
300
|
+
.lucide-screen-md p { margin: 0 0 8px; }
|
|
301
|
+
.lucide-screen-md p:last-child { margin-bottom: 0; }
|
|
302
|
+
.lucide-screen-md ul,
|
|
303
|
+
.lucide-screen-md ol { margin: 0 0 8px; padding-left: 18px; }
|
|
304
|
+
.lucide-screen-md pre { margin: 8px 0; border: 1px solid var(--assistant-border); border-radius: 8px; background: var(--assistant-code-bg); padding: 8px; overflow-x: auto; }
|
|
305
|
+
.lucide-screen-md code { border-radius: 6px; background: var(--assistant-code-bg); padding: 1px 4px; }
|
|
306
|
+
.lucide-screen-md pre code { background: transparent; padding: 0; }
|
|
307
|
+
.lucide-screen-md a { color: var(--assistant-accent); text-decoration: underline; }
|
|
308
|
+
.lucide-screen-md blockquote { margin: 8px 0; border-left: 2px solid var(--assistant-border); padding-left: 8px; opacity: 0.9; }
|
|
309
|
+
`,t.head.append(n)}if(!t.getElementById("lucide-screen-assistant-katex")){const n=t.createElement("link");n.id="lucide-screen-assistant-katex",n.rel="stylesheet",n.href=d5,t.head.append(n)}const r=t.createElement("div");return r.style.width="100%",r.style.display="block",t.body.append(r),r}function v5(){return new Promise(e=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{e()})})})}function w5({onError:e,onStateChange:t}){const[r,n]=Z.useState(!1),i=Z.useRef(null),a=Z.useRef(null),l=Z.useRef(null),s=Z.useRef(!1),o=Z.useCallback(()=>{if(a.current)return a.current;const d=document.createElement("video");return d.muted=!0,d.autoplay=!0,d.playsInline=!0,a.current=d,d},[]),u=Z.useCallback(()=>{const d=i.current;if(d)for(const p of d.getTracks())p.stop();i.current=null,a.current&&(a.current.srcObject=null),l.current=null,s.current=!1,n(!1),t()},[t]),h=Z.useCallback(async()=>{if(i.current)return!0;try{const d=await navigator.mediaDevices.getDisplayMedia(p5);d.getVideoTracks()[0].addEventListener("ended",()=>{u()});const y=o();return y.srcObject=d,await y.play().catch(()=>{}),i.current=d,s.current=!0,n(!0),t(),!0}catch(d){const p=d instanceof Error?d.message:"Could not start screen sharing";return e(p),!1}},[o,e,t,u]),m=Z.useCallback(async()=>{if(!i.current)throw new Error("Screen sharing is not active");const d=o();(!d.videoWidth||!d.videoHeight)&&await new Promise((E,q)=>{const X=window.setTimeout(()=>{q(new Error("Timed out waiting for screen frame"))},1200),j=()=>{window.clearTimeout(X),d.removeEventListener("loadeddata",j),E()};d.addEventListener("loadeddata",j)});const p=Math.max(1,d.videoWidth),y=Math.max(1,d.videoHeight),x=960,T=p>x?x/p:1,S=Math.max(1,Math.round(p*T)),C=Math.max(1,Math.round(y*T)),I=l.current??document.createElement("canvas");l.current=I,I.width=S,I.height=C;const L=I.getContext("2d");if(!L)throw new Error("Canvas context unavailable");L.drawImage(d,0,0,S,C);const V=await new Promise(E=>{I.toBlob(E,"image/jpeg",.72)});return V?await new Promise((E,q)=>{const X=new FileReader;X.onload=()=>{if(typeof X.result=="string"){E(X.result);return}q(new Error("Failed to encode screen capture"))},X.onerror=()=>q(new Error("Failed to encode screen capture")),X.readAsDataURL(V)}):I.toDataURL("image/jpeg",.72)},[o]);return{isSharing:r,isSharingRef:s,streamRef:i,startSharing:h,stopSharing:u,captureFrameDataUrl:m}}const Go=430,ei=120,Al=760,k5=28;function S5(e){return e.isAsking||e.error!==null||e.output.trim().length>0}function A5(e,t){if(!t)return ei;try{const r=e.document,n=T5(e),i=Math.max(n,e.document.body.getBoundingClientRect().height,r.documentElement.scrollHeight,r.documentElement.offsetHeight,r.body.scrollHeight,r.body.offsetHeight);return Math.min(Al,Math.max(ei,Math.ceil(i+k5)))}catch{return Al}}function T5(e){const t=e.document.body.firstElementChild;return t instanceof HTMLElement?Math.ceil(t.getBoundingClientRect().height):0}function C5(e,t){const r=A5(e,t);try{e.resizeTo(Go,r)}catch{return}}function M5({onAsk:e}){const[t,r]=Z.useState(null),[n,i]=Z.useState($o),a=Z.useRef(null),l=Z.useRef({output:"",isAsking:!1,error:null}),s=Z.useRef(()=>{}),o=Z.useRef(null),u=Z.useCallback(z=>{r(z)},[]),h=Z.useCallback(()=>{s.current()},[]),{isSharing:m,isSharingRef:d,streamRef:p,startSharing:y,stopSharing:x,captureFrameDataUrl:T}=w5({onError:u,onStateChange:h}),S=Z.useCallback(async()=>{const z=await y();return z&&r(null),z},[y]),C=z=>{l.current={...l.current,...z},s.current()},I=Z.useCallback(z=>{const P=z??a.current?.window;if(!P||P.closed)return;const R=()=>{a.current?.window!==P||P.closed||C5(P,S5(l.current))};P.requestAnimationFrame(()=>{R(),o.current!==null&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{P.requestAnimationFrame(R),o.current=null},90)})},[]),L=Z.useRef(()=>{}),V=Z.useCallback(()=>{const z=a.current;if(z)try{z.window.close()}catch{return}finally{L.current()}},[]),E=Z.useCallback(async z=>{if(l.current.isAsking)return;const P=z.trim();if(!P){C({error:"Type a question first."});return}if(!d.current){C({error:"Start screen sharing first."});return}C({isAsking:!0,output:"Thinking...",error:null});const R=a.current;try{const F=p.current?.getVideoTracks()[0]?.getSettings().displaySurface==="monitor";F&&R&&(R.mountElement.style.visibility="hidden",R.mountElement.style.pointerEvents="none",await v5());const te=await T();F&&R&&(R.mountElement.style.visibility="visible",R.mountElement.style.pointerEvents="auto",R.window.focus());let le=!1,de="";await e(P,te,n,{onDelta:xe=>{!a.current||a.current.window.closed||(le||(de="",le=!0),de+=xe,C({output:de,error:null}))},onError:xe=>{C({output:xe,error:xe})},onComplete:()=>{C({isAsking:!1})}})}catch(K){R&&(R.mountElement.style.visibility="visible",R.mountElement.style.pointerEvents="auto");const _=K instanceof Error?K.message:"Failed to ask about screen";C({output:_,error:_})}finally{C({isAsking:!1})}},[T,d,e,n,p]),q=Z.useCallback(()=>{const z=a.current;if(!z)return;const P=g5(),R=z.window.document;R.documentElement.style.background=P.bg,R.body.style.background=P.bg,R.documentElement.style.setProperty("--assistant-border",P.border),R.documentElement.style.setProperty("--assistant-code-bg",`color-mix(in srgb, ${P.surface} 78%, black 22%)`),R.documentElement.style.setProperty("--assistant-accent",P.accent),z.root.render(D.jsx(f5,{tokens:P,isSharing:d.current,isAsking:l.current.isAsking,output:l.current.output,error:l.current.error,selectedModel:n,modelOptions:Fr,onToggleSharing:()=>{if(d.current){x();return}S()},onSelectModel:i,onAsk:K=>{E(K)},onClose:V})),I(z.window)},[E,V,d,I,n,S,x]);s.current=q;const X=Z.useCallback(()=>{const z=a.current;z&&(z.themeObserver?.disconnect(),z.resizeObserver?.disconnect(),o.current!==null&&(window.clearTimeout(o.current),o.current=null),window.setTimeout(()=>{z.root.unmount()},0)),a.current=null,C({output:"",error:null,isAsking:!1}),x()},[x]);L.current=X;const j=Z.useCallback(async()=>{if(a.current&&!a.current.window.closed){a.current.window.focus();return}let z=null;try{const P=b5(),R=P.documentPictureInPicture;let K=null;if(R?.requestWindow)try{z=await R.requestWindow({width:Go,height:ei,disallowReturnToOpener:!0,preferInitialWindowPlacement:!0})}catch(fe){K=fe}if(z||(z=y5(P)),!z&&K instanceof Error)throw K;if(!z)throw new Error("Could not open assistant window");const _=z,F=x5(_),te=Xo.createRoot(F),le=new MutationObserver(()=>{s.current()}),de=_.ResizeObserver,xe=de?new de(()=>{I(_)}):null;le.observe(document.documentElement,{attributes:!0,attributeFilter:["style","data-theme","data-theme-mode"]}),xe?.observe(F),a.current={window:_,root:te,mountElement:F,themeObserver:le,resizeObserver:xe};const A=()=>{a.current?.window===_&&window.setTimeout(()=>{_.closed&&L.current()},0)};_.addEventListener("pagehide",A,{once:!0}),r(null),s.current(),_.focus()}catch(P){const R=P instanceof Error?P.message:"Could not open assistant window";r(R)}},[I]);return Z.useEffect(()=>()=>{V(),x()},[V,x]),{isSharing:m,error:t,startSharing:S,stopSharing:x,openAssistantWindow:j,closeAssistantWindow:V}}const un=5,z5=3*1024*1024,E5=1600,I5=.8;function D5(e){return new Promise((t,r)=>{const n=URL.createObjectURL(e),i=new Image;i.onload=()=>{URL.revokeObjectURL(n),t(i)},i.onerror=()=>{URL.revokeObjectURL(n),r(new Error("Failed to load image file"))},i.src=n})}async function N5(e){const t=await D5(e),r=Math.max(1,t.naturalWidth||t.width),n=Math.max(1,t.naturalHeight||t.height),i=Math.min(1,E5/Math.max(r,n)),a=Math.max(1,Math.round(r*i)),l=Math.max(1,Math.round(n*i)),s=document.createElement("canvas");s.width=a,s.height=l;const o=s.getContext("2d");if(!o)return null;o.drawImage(t,0,0,a,l);const u=e.type==="image/png"?"image/png":"image/jpeg";return{dataUrl:s.toDataURL(u,u==="image/png"?void 0:I5),mimeType:u,name:e.name}}function R5({selectedModel:e,onSelect:t}){const r=Fr.find(l=>l.id===e)??Fr[0],[n,i]=Z.useState(!1),a=Z.useRef(null);return Z.useEffect(()=>{if(!n)return;const l=o=>{const u=o.target;a.current?.contains(u)||i(!1)},s=o=>{o.key==="Escape"&&i(!1)};return window.addEventListener("mousedown",l),window.addEventListener("keydown",s),()=>{window.removeEventListener("mousedown",l),window.removeEventListener("keydown",s)}},[n]),D.jsxs("div",{ref:a,className:"relative text-[var(--text)]",children:[D.jsxs("button",{type:"button",onClick:()=>i(l=>!l),className:"flex w-full items-center gap-2 rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-[10px] py-[8px] text-left transition duration-150 hover:bg-[color-mix(in_srgb,var(--surface-2)_82%,white_3%)]","aria-haspopup":"listbox","aria-expanded":n,"aria-label":"AI model",children:[D.jsx(Su,{size:14,className:"shrink-0 text-[var(--muted)]"}),D.jsx("span",{className:"text-[12px] text-[var(--muted)]",children:"Model"}),D.jsx("span",{className:"min-w-0 flex-1 truncate text-right text-[12px] font-medium text-[var(--text)]",children:r.label}),D.jsx(xu,{size:12,className:"shrink-0 text-[var(--muted)]"})]}),D.jsx("div",{className:`absolute bottom-[calc(100%+8px)] left-0 right-0 z-50 overflow-hidden rounded-md border border-[var(--border)] bg-[var(--surface-2)] p-1 shadow-[0_18px_40px_rgba(0,0,0,0.32)] transition duration-200 ${n?"visible translate-y-0 opacity-100":"pointer-events-none invisible translate-y-[6px] opacity-0"}`,children:D.jsx("div",{role:"listbox","aria-label":"AI model options",className:"max-h-[320px] space-y-0.5 overflow-y-auto",children:Fr.map(l=>{const s=l.id===e;return D.jsxs("button",{type:"button",role:"option","aria-selected":s,onClick:()=>{t(l.id),i(!1)},className:`flex w-full items-center gap-2 rounded-sm px-3 py-[9px] text-left text-[13px] transition ${s?"text-[var(--text)]":"text-[var(--text)] hover:bg-[var(--border)]"}`,children:[D.jsx("span",{className:"min-w-0 flex-1",children:D.jsx("span",{className:"block truncate text-[var(--text)]",children:l.label})}),s?D.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[var(--accent)]"}):null]},l.id)})})})]})}function B5({embedded:e=!1}={}){const t=tu(),{sessions:r,activeSession:n,activeSessionId:i,selectedModel:a,isStreaming:l,error:s,setSelectedModel:o,setActiveSessionId:u,createNewChat:h,deleteSession:m,sendMessage:d,sendScreenMessage:p,regenerateResponse:y,stopStreaming:x}=m5(),[T,S]=Z.useState(""),[C,I]=Z.useState(null),[L,V]=Z.useState([]),[E,q]=Z.useState(!1),[X,j]=Z.useState(!1),[z,P]=Z.useState(null),R=ru(),[K,_]=Z.useState(!1),[F,te]=Z.useState(!1),[le,de]=Z.useState(""),[xe,A]=Z.useState(!1),fe=Z.useRef(null),be=Z.useRef(null),k=Z.useRef(0),ye=Z.useRef(null),qe=Z.useRef(null),ze=Z.useRef(null),Ue=Z.useRef(0),Oe=R.session?.user?.adsDisabled===!0,De=M5({onAsk:async(N,ie,Ee,Se)=>{await p(N,ie,{onDelta:Se.onDelta,onError:Se.onError,onComplete:Se.onComplete},Ee)||Se.onError("Could not start screen request.")}}),et=Z.useMemo(()=>[...r].sort((N,ie)=>ie.updatedAt-N.updatedAt),[r]),pt=Z.useMemo(()=>{const N=le.trim().toLowerCase();return N?et.filter(ie=>ie.title.toLowerCase().includes(N)):et},[le,et]);Z.useEffect(()=>{Yo(R.sessionPending||Oe)},[Oe,R.sessionPending]),Z.useEffect(()=>{R.sessionPending||Oe||Ko()},[Oe,R.sessionPending]),Z.useEffect(()=>{if(typeof window>"u")return;const N=window.localStorage.getItem(ft.aiPendingPrompt)?.trim()??"";N&&(window.localStorage.removeItem(ft.aiPendingPrompt),P(N))},[]);const tt=n?.messages??[],gt=tt[tt.length-1],Rt=L.length>0?"pb-[236px]":"pb-[176px]",nr=L.length>0?"scroll-mb-[220px]":"scroll-mb-[156px]";Z.useEffect(()=>{if(R.sessionPending||Oe)return;const N=tt.filter(ie=>ie.role==="assistant").length;N>0&&N%15===0&&N!==Ue.current&&(Ue.current=N,Zo())},[tt,Oe,R.sessionPending]),Z.useEffect(()=>{const N=fe.current;N&&(N.style.height="0px",N.style.height=`${Math.min(N.scrollHeight,112)}px`)},[T]),Z.useEffect(()=>{const N=ye.current;N&&N.scrollTo({top:N.scrollHeight,behavior:t?"auto":"smooth"})},[i,tt.length,gt?.content,t]),Z.useEffect(()=>{const N=ye.current;if(!N)return;const ie=()=>{const Ee=N.scrollHeight-N.scrollTop-N.clientHeight;A(Ee>180)};return ie(),N.addEventListener("scroll",ie,{passive:!0}),()=>{N.removeEventListener("scroll",ie)}},[i,tt.length]),Z.useEffect(()=>{if(!z||!n||l)return;if(n.messages.length>0){h();return}const N=z;P(null),(async()=>(S(""),await d(N)))()},[n,h,l,z,d]);const Gt=async()=>{const N=T.trim();if(!N&&L.length===0||l)return;const ie=L,Ee=E;S(""),V([]),I(null),await d(N,ie,{webSearch:Ee})},Wt=N=>{if(!N||N.length===0)return;const ie=Array.from(N),Ee=L.length,Se=Math.max(0,un-Ee);if(Se===0){I(`You can attach up to ${un} images.`);return}const bt=ie.filter(je=>je.type.startsWith("image/"));if(bt.length===0){I("Please select image files.");return}if(bt.some(je=>je.size>z5)){I("Each image must be 3MB or smaller.");return}const Bt=bt.slice(0,Se),Ve=ie.length-Bt.length,Ft=Bt.map(je=>N5(je).catch(()=>null));Promise.all(Ft).then(je=>{const Li=je.filter($n=>$n!==null);if(Li.length===0){I("Failed to read image file.");return}V($n=>[...$n,...Li].slice(0,un)),Ve>0?I(`You can attach up to ${un} images.`):I(null)})},ir=N=>{const ie=Array.from(N.target.files??[]);N.target.value="",Wt(ie)},Xt=()=>{const N=be.current;if(!N){I("File picker is unavailable. Try drag and drop.");return}try{N.value="",N.click()}catch(ie){const Ee=ie instanceof Error?ie.message:"Unknown error";I(`Could not open file picker (${Ee}). Try drag and drop.`)}},ot=N=>{const ie=N.dataTransfer?.types;return ie?Array.from(ie).includes("Files"):!1},Ar=N=>{ot(N)&&(N.preventDefault(),N.stopPropagation(),k.current+=1,j(!0))},Tr=N=>{ot(N)&&(N.preventDefault(),N.stopPropagation(),N.dataTransfer.dropEffect="copy")},Yt=N=>{ot(N)&&(N.preventDefault(),N.stopPropagation(),k.current=Math.max(0,k.current-1),k.current===0&&j(!1))},ar=N=>{ot(N)&&(N.preventDefault(),N.stopPropagation(),k.current=0,j(!1),Wt(N.dataTransfer.files))},lr=N=>{V(ie=>ie.filter((Ee,Se)=>Se!==N)),I(null)},B=N=>{N.preventDefault(),Gt()},Y=()=>{h(),!window.matchMedia("(prefers-reduced-motion: reduce)").matches&&ze.current?.animate([{transform:"scaleX(-1) rotate(0deg) scale(1)",easing:"cubic-bezier(0.22, 1, 0.36, 1)"},{transform:"scaleX(-1) rotate(-22deg) scale(1.05)",easing:"cubic-bezier(0.34, 1.56, 0.64, 1)"},{transform:"scaleX(-1) rotate(6deg) scale(0.98)",easing:"cubic-bezier(0.16, 1, 0.3, 1)"},{transform:"scaleX(-1) rotate(0deg) scale(1)"}],{duration:420,fill:"both"})},ne=(N,ie)=>{const Ee=N.trim();if(!Ee)return!1;let Se=Ee;try{Se=new URL(Ee,window.location.origin).toString()}catch{return!1}return e?(window.parent.postMessage({type:"lucide:open-link",href:Se,newTab:ie.newTab},window.location.origin),!0):(ie.newTab?window.open(Se,"_blank","noopener,noreferrer"):window.location.assign(Se),!0)},oe=()=>{qe.current?.scrollIntoView({behavior:t?"auto":"smooth",block:"end"})};return D.jsxs("div",{className:"relative flex h-screen flex-col overflow-hidden bg-[var(--bg)] text-[var(--text)]",style:{fontFamily:'"Geist Variable", Geist, ui-sans-serif, system-ui, sans-serif'},children:[D.jsx("div",{className:`fixed inset-0 z-40 bg-black/60 md:hidden ${F?"block":"hidden"}`,onClick:()=>te(!1)}),D.jsxs("div",{className:"flex h-full",children:[D.jsxs("aside",{className:`relative z-50 flex h-full w-[250px] shrink-0 flex-col border-x border-[var(--border)] bg-[var(--bg)] transition-transform duration-300 max-md:fixed max-md:left-0 max-md:top-0 max-md:translate-x-[-100%] ${F?"max-md:translate-x-0":""}`,children:[D.jsxs("div",{className:"flex items-center justify-between border-b border-[var(--border)] px-3 pb-3 pt-[13px]",children:[D.jsxs("div",{className:"flex items-center gap-[5px] text-[15px] font-bold text-[var(--text)]",children:[D.jsx(nu,{size:16,className:"text-[var(--accent)]"}),"Lucide ",D.jsx("span",{children:"AI"})]}),D.jsx("button",{type:"button",onClick:Y,className:"inline-flex h-[30px] w-[30px] items-center justify-center rounded-sm border border-[var(--border)] bg-transparent text-[var(--muted)] transition hover:bg-[var(--surface-2)] hover:text-[var(--text)]","aria-label":"New chat",children:D.jsx("span",{ref:ze,className:"inline-flex",children:D.jsx(Nu,{size:15})})})]}),D.jsx("div",{className:"px-[14px] py-[10px]",children:D.jsxs("div",{className:"relative",children:[D.jsx(cu,{size:12,className:"pointer-events-none absolute left-[10px] top-1/2 -translate-y-1/2 text-[var(--muted)]"}),D.jsx("input",{type:"text",value:le,onChange:N=>de(N.target.value),placeholder:"Search chats...",className:"w-full rounded-md border border-[var(--border)] bg-[var(--surface-2)] py-[7px] pl-[30px] pr-[10px] text-[12px] text-[var(--text)] outline-none transition placeholder:text-[var(--border)] focus:border-[color-mix(in_srgb,var(--border)_80%,white_20%)]"})]})}),D.jsx("div",{className:"flex-1 overflow-y-auto px-2 pb-1 pt-1",children:pt.length>0?D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"px-[6px] pb-[6px] pt-3 text-[10px] font-semibold uppercase tracking-[1px] text-[var(--muted)] opacity-60",children:"Today"}),pt.map(N=>{const ie=N.id===i;return D.jsxs("div",{className:`mb-[2.5px] flex h-[35px] items-center gap-2 rounded-md px-[10px] py-2 ${ie?"bg-[var(--surface-2)]":"hover:bg-[color-mix(in_srgb,var(--surface-2)_65%,transparent)]"}`,children:[D.jsx(Oi,{size:13,className:"shrink-0 text-[var(--muted)]"}),D.jsx("button",{type:"button",onClick:()=>{u(N.id),te(!1)},className:"min-w-0 flex-1 truncate text-left text-[13px] text-[var(--text)]",children:N.title}),r.length>1?D.jsx("button",{type:"button",onClick:()=>m(N.id),className:"inline-flex h-[22px] w-[22px] items-center justify-center rounded-sm text-[var(--muted)] transition hover:bg-[var(--border)] hover:text-[var(--text)]","aria-label":`Delete ${N.title}`,children:D.jsx(iu,{size:11})}):null]},N.id)})]}):D.jsxs("div",{className:"px-3 py-6 text-center text-[13px] leading-[1.6] text-[var(--muted)]",children:[D.jsx(Oi,{size:24,className:"mx-auto mb-2 opacity-40"}),"No chats yet.",D.jsx("br",{}),"Start a conversation!"]})}),D.jsx("div",{className:"border-t border-[var(--border)] p-3",children:D.jsx(R5,{selectedModel:a,onSelect:o})})]}),D.jsxs("main",{className:"relative flex min-h-0 flex-1 flex-col",onDragEnter:Ar,onDragOver:Tr,onDragLeave:Yt,onDrop:ar,onDragEnd:()=>{k.current=0,j(!1)},children:[D.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between border-b border-[var(--border)] bg-[var(--bg)] px-5",children:[D.jsxs("div",{className:"flex items-center gap-[10px]",children:[D.jsx("button",{type:"button",onClick:()=>te(!0),className:"hidden h-8 w-8 items-center justify-center rounded-sm text-[var(--muted)] transition hover:bg-[var(--surface-2)] hover:text-[var(--text)] max-md:inline-flex","aria-label":"Open chats",children:D.jsx(Eu,{size:16})}),D.jsx("span",{className:"max-w-[300px] truncate text-[14px] font-medium text-[var(--text)]",children:n?.title??"New chat"})]}),D.jsx("div",{className:"flex items-center gap-1",children:D.jsx("button",{type:"button",onClick:async()=>{if(De.isSharing){De.stopSharing();return}await De.startSharing()&&await De.openAssistantWindow()},className:"inline-flex h-9 items-center justify-center rounded-sm border border-[color-mix(in_srgb,var(--border)_88%,var(--text)_12%)] bg-[var(--surface)] px-3 text-[12px] text-[var(--text)] shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--border)_72%,transparent)] transition hover:border-[color-mix(in_srgb,var(--accent)_30%,var(--border))] hover:bg-[var(--surface-2)]","aria-label":"Share screen",children:De.isSharing?"Stop share screen":"Share screen"})})]}),s||C||De.error?D.jsx("div",{className:"mx-auto mt-3 w-full max-w-[760px] px-5",children:D.jsx("div",{className:"rounded-md border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-200",children:s??C??De.error})}):null,X?D.jsx("div",{className:"pointer-events-none absolute inset-3 z-20 rounded-md border border-dashed border-[var(--accent)]/60 bg-[color-mix(in_srgb,var(--accent)_9%,transparent)]",children:D.jsx("div",{className:"flex h-full items-center justify-center px-4 text-center",children:D.jsx("p",{className:"rounded-full border border-[var(--border)] bg-[var(--surface)]/90 px-4 py-2 text-sm font-medium text-[var(--text)]",children:"Drop image anywhere to attach"})})}):null,D.jsx("div",{ref:ye,className:`flex-1 overflow-y-auto px-0 pt-6 ${Rt}`,children:D.jsxs("div",{className:"mx-auto w-full max-w-[760px] px-5",children:[tt.length===0?D.jsxs("div",{className:"flex min-h-[60vh] flex-col items-center justify-center gap-8 px-5 py-10 text-center",children:[D.jsxs("div",{className:"text-[28px] font-semibold leading-[1.2] tracking-[-0.5px] text-[var(--text)]",children:["What can I help",D.jsx("br",{}),"you with today?"]}),D.jsx("div",{className:"grid w-full max-w-[560px] grid-cols-2 gap-2 max-sm:grid-cols-1",children:[{icon:D.jsx(pu,{size:20}),title:"Explain quantum computing",subtitle:"in simple terms",prompt:"Explain quantum computing in simple terms"},{icon:D.jsx(au,{size:20}),title:"Python JSON parser",subtitle:"from an API endpoint",prompt:"Write a Python function to parse JSON from an API"},{icon:D.jsx(Mu,{size:20}),title:"Creative startup ideas",subtitle:"in the AI space",prompt:"Give me 5 creative startup ideas in the AI space"},{icon:D.jsx(bu,{size:20}),title:"Dark sci-fi story",subtitle:"about a rogue AI",prompt:"Write a short, dark sci-fi story about a rogue AI"}].map(N=>D.jsxs("button",{type:"button",onClick:()=>{S(N.prompt),requestAnimationFrame(()=>{fe.current?.focus()})},className:"rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-[14px] py-3 text-left text-[13px] text-[var(--text)] transition hover:bg-[color-mix(in_srgb,var(--surface-2)_70%,white_3%)] hover:text-[var(--text)]",children:[D.jsx("span",{className:"mb-1.5 block text-[var(--muted)]",children:N.icon}),N.title,D.jsx("span",{className:"mt-0.5 block text-[12px] text-[var(--muted)]",children:N.subtitle})]},N.title))})]}):tt.map(N=>{const ie=N.id===gt?.id&&N.role==="assistant";return D.jsx(U2,{message:N,selectedModel:a,isStreaming:l&&ie,onOpenLink:ne,onRegenerate:!l&&N.role==="assistant"&&N.id===gt?.id?async()=>await y(N.id):void 0},N.id)}),D.jsx("div",{ref:qe,className:`h-px ${nr}`})]})}),D.jsx("button",{type:"button",onClick:oe,className:`absolute bottom-[150px] left-1/2 z-20 flex h-9 w-9 -translate-x-1/2 items-center justify-center rounded-full border border-[var(--border)] bg-[var(--surface-2)] text-[var(--text)] transition-opacity duration-200 ${xe?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,"aria-label":"Scroll to bottom",children:D.jsx(lu,{size:16})}),D.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-10 bg-[linear-gradient(to_top,var(--bg)_70%,transparent)] px-5 pb-5",children:D.jsxs("div",{className:"mx-auto max-w-[760px]",children:[L.length>0?D.jsx("div",{className:"mb-2 flex flex-wrap gap-2",children:L.map((N,ie)=>D.jsxs("div",{className:"relative h-[60px] w-[60px] shrink-0",children:[D.jsx("img",{src:N.dataUrl,alt:N.name,className:"h-[60px] w-[60px] rounded-md border border-[var(--border)] object-cover"}),D.jsx("button",{type:"button",onClick:()=>lr(ie),className:"absolute -right-[6px] -top-[6px] inline-flex h-[18px] w-[18px] items-center justify-center rounded-full bg-red-500 text-white","aria-label":`Remove ${N.name}`,children:D.jsx(hu,{size:10})})]},`${N.dataUrl.slice(0,32)}-${ie}`))}):null,D.jsxs("form",{onSubmit:B,className:"rounded-md border border-[var(--border)] bg-[var(--surface)] p-[10px_10px_10px_14px] transition focus-within:border-[color-mix(in_srgb,var(--border)_80%,white_20%)]",children:[D.jsx("input",{ref:be,type:"file",accept:"image/*",multiple:!0,className:"sr-only",onChange:ir}),D.jsxs("div",{className:"flex items-end gap-2",children:[D.jsx("textarea",{ref:fe,value:T,onChange:N=>S(N.target.value),onKeyDown:N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),Gt())},placeholder:"Ask me anything..",rows:1,className:"max-h-[160px] flex-1 self-center resize-none bg-transparent py-0.5 text-[14px] leading-[1.5] text-[var(--text)] outline-none placeholder:text-[color-mix(in_srgb,var(--muted)_84%,white_16%)]"}),D.jsxs("div",{className:"flex shrink-0 items-center gap-1 pb-0.5",children:[D.jsx("button",{type:"button",onClick:Xt,className:"inline-flex h-[34px] w-[34px] items-center justify-center rounded-md text-[var(--muted)] transition hover:bg-[var(--surface-2)] hover:text-[var(--text)]","aria-label":"Attach image",children:D.jsx(Tu,{size:16})}),D.jsx("button",{type:"button",onClick:()=>q(N=>!N),className:`inline-flex h-[34px] w-[34px] items-center justify-center rounded-md transition ${E?"bg-[color-mix(in_srgb,var(--accent)_14%,transparent)] text-[var(--accent)]":"text-[var(--muted)] hover:bg-[var(--surface-2)] hover:text-[var(--text)]"}`,"aria-label":E?"Disable web search":"Enable web search","aria-pressed":E,title:E?"Web search on":"Search the web",children:D.jsx(su,{size:16})}),l?D.jsx("button",{type:"button",onClick:x,className:"inline-flex h-[34px] w-[34px] items-center justify-center rounded-md border border-[var(--border)] bg-[var(--surface-2)] text-[var(--text)] transition hover:bg-[color-mix(in_srgb,var(--surface-2)_80%,white_3%)]","aria-label":"Stop",children:D.jsx(Bu,{size:14})}):D.jsx("button",{type:"submit",disabled:T.trim().length===0&&L.length===0,className:`inline-flex h-[34px] w-[34px] items-center justify-center rounded-md transition ${T.trim().length===0&&L.length===0?"cursor-not-allowed bg-[var(--border)] text-[var(--muted)]":"bg-[var(--accent)] text-[#5f5f65] hover:brightness-110"}`,"aria-label":"Send",children:D.jsx(fu,{size:14})})]})]})]}),D.jsx("div",{className:"mt-2 text-center text-[11px] text-[var(--muted)] opacity-50",children:"Lucide AI can make mistakes. Please verify important info."})]})})]})]}),!e&&ou?D.jsx(uu,{open:K,onClose:()=>_(!1),auth:R}):null]})}function q5(){return D.jsx(B5,{embedded:!0})}export{q5 as AIFramePage};
|