@juki-team/base-ui 1.5.0 → 1.5.1
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/dist/esm/{BarChart-DGvfKEbJ.js → BarChart-D74BtmuY.js} +1 -1
- package/dist/esm/{CartesianChart-BLpd_e8l.js → CartesianChart-CW5O6vne.js} +1 -1
- package/dist/esm/{ChangePasswordModal-8aYa6mTN.js → ChangePasswordModal-BjmZ4w-n.js} +1 -1
- package/dist/esm/{CodeEditor-BKMFVmPO.js → CodeEditor-DHSwOQl_.js} +1 -1
- package/dist/esm/{CodeViewer-DqO18gks.js → CodeViewer-BgcqqnsU.js} +1 -1
- package/dist/esm/{Collapse-DMLYcciz.js → Collapse-CJGjLO29.js} +1 -1
- package/dist/esm/{DataGrid-C-Gco96b.js → DataGrid-B2ZsmTQN.js} +1 -1
- package/dist/esm/{DataViewer-DIROui4g.js → DataViewer-C7cqe5jJ.js} +1 -1
- package/dist/esm/{DrawerView-Be_ckf6D.js → DrawerView-CBLVa95i.js} +1 -1
- package/dist/esm/{ExcalidrawButton-DWRJMohJ.js → ExcalidrawButton-Gtzt3GBc.js} +1 -1
- package/dist/esm/{GraphvizViewer-DUIJSiDq.js → GraphvizViewer-Dyqijdc9.js} +1 -1
- package/dist/esm/{ImageLoaderCropper-O3UDeKd5.js → ImageLoaderCropper-DhWDuHK1.js} +1 -1
- package/dist/esm/{InputCellPhoneNumber-ByG_R6dr.js → InputCellPhoneNumber-BgKCDHLv.js} +1 -1
- package/dist/esm/{InputColor-C_JNgwYl.js → InputColor-DeeYpvdA.js} +1 -1
- package/dist/esm/{LineChart-BkCo4cnj.js → LineChart-D2VT5Aos.js} +1 -1
- package/dist/esm/{MdMath-C38RmN3O.js → MdMath-PFhigRVS.js} +1 -1
- package/dist/esm/{MdMathEditor-C7surRiM.js → MdMathEditor-CNn23WdZ.js} +2 -2
- package/dist/esm/{Popover-BaP7hJ0J.js → Popover-kYKitQai.js} +1 -1
- package/dist/esm/{SlideDeck-CpWGHFVE.js → SlideDeck-DMd0LgxX.js} +1 -1
- package/dist/esm/{TableOfContents-888D-B0V.js → TableOfContents-zzI7FQbW.js} +1 -1
- package/dist/esm/{Tooltip-CNWDFJKv.js → Tooltip-B8AobPsl.js} +1 -1
- package/dist/esm/{UserCodeEditor-C0MyUL5-.js → UserCodeEditor-CbgpE94F.js} +2 -2
- package/dist/esm/{VirtualizedRowsFixed-CYPaWB5L.js → VirtualizedRowsFixed-Cau69yw0.js} +1 -1
- package/dist/esm/{WorksheetAsSlides-BNOZBoQY.js → WorksheetAsSlides-cYn12ViE.js} +1 -1
- package/dist/esm/{WorksheetBodies-CHTN-wn9.js → WorksheetBodies-oAHNxEoL.js} +1 -1
- package/dist/esm/{WorksheetContents-IN63vuWT.js → WorksheetContents-m3z1cSCO.js} +1 -1
- package/dist/esm/{WorksheetEditor-Hs_sWk7j.js → WorksheetEditor-DL9l5iCM.js} +1 -1
- package/dist/esm/{WorksheetNode-DGuKOPTt.js → WorksheetNode-D6tMtEqC.js} +1 -1
- package/dist/esm/{WorksheetViewer-Bt_jqHdh.js → WorksheetViewer-tctJbZIu.js} +1 -1
- package/dist/esm/{architecture-YZFGNWBL-BExtdnEH.js → architecture-YZFGNWBL-rccIGhXm.js} +1 -1
- package/dist/esm/{architectureDiagram-Q4EWVU46-CUhUPzlC.js → architectureDiagram-Q4EWVU46-D4BxMEG7.js} +1 -1
- package/dist/esm/{blockDiagram-DXYQGD6D-DwW8YrKx.js → blockDiagram-DXYQGD6D-z0-_xhoI.js} +1 -1
- package/dist/esm/{c4Diagram-AHTNJAMY-DUUpakLg.js → c4Diagram-AHTNJAMY-BoabvxgU.js} +1 -1
- package/dist/esm/channel-B33C1-lx.js +1 -0
- package/dist/esm/{chunk-4BX2VUAB-BwFNstmG.js → chunk-4BX2VUAB-BD59bCvh.js} +1 -1
- package/dist/esm/{chunk-4TB4RGXK-DV5sTBnv.js → chunk-4TB4RGXK-bRIvkE2u.js} +1 -1
- package/dist/esm/{chunk-55IACEB6-BPJEY6mM.js → chunk-55IACEB6-B9SJqSMu.js} +1 -1
- package/dist/esm/{chunk-EDXVE4YY-9L7nz82K.js → chunk-EDXVE4YY-DO0UVobI.js} +1 -1
- package/dist/esm/{chunk-FMBD7UC4-BZMcHvFk.js → chunk-FMBD7UC4-B0l_pK7G.js} +1 -1
- package/dist/esm/{chunk-OYMX7WX6-COWCWylB.js → chunk-OYMX7WX6-ChpTvaWt.js} +1 -1
- package/dist/esm/{chunk-QZHKN3VN-D2pIW1ss.js → chunk-QZHKN3VN-9SrlxM-A.js} +1 -1
- package/dist/esm/{chunk-YZCP3GAM-D9GadUwL.js → chunk-YZCP3GAM-B9nB-mZv.js} +1 -1
- package/dist/esm/{classDiagram-6PBFFD2Q-Cr8ipQ5w.js → classDiagram-6PBFFD2Q-BsMMZhRG.js} +1 -1
- package/dist/esm/{classDiagram-v2-HSJHXN6E-Cr8ipQ5w.js → classDiagram-v2-HSJHXN6E-BsMMZhRG.js} +1 -1
- package/dist/esm/clone-BDf6Yet-.js +1 -0
- package/dist/esm/{cose-bilkent-S5V4N54A-Dg1f2q8q.js → cose-bilkent-S5V4N54A-DOOhcKZn.js} +1 -1
- package/dist/esm/{dagre-KV5264BT-Drwedjf_.js → dagre-KV5264BT-DNQuzBru.js} +1 -1
- package/dist/esm/{diagram-5BDNPKRD-BUvinU3I.js → diagram-5BDNPKRD-BuDsbwIH.js} +1 -1
- package/dist/esm/{diagram-G4DWMVQ6-D60Wox58.js → diagram-G4DWMVQ6-Dqe6ehne.js} +1 -1
- package/dist/esm/{diagram-MMDJMWI5-C60GB5LZ.js → diagram-MMDJMWI5-DutUl44V.js} +1 -1
- package/dist/esm/{diagram-TYMM5635-CMF-zVic.js → diagram-TYMM5635-Dg8R_BVT.js} +1 -1
- package/dist/esm/{erDiagram-SMLLAGMA-BmCfxmBR.js → erDiagram-SMLLAGMA-Z9rnwC7z.js} +1 -1
- package/dist/esm/{flowDiagram-DWJPFMVM-CVOjnh-h.js → flowDiagram-DWJPFMVM-DlD4QYIw.js} +1 -1
- package/dist/esm/{ganttDiagram-T4ZO3ILL-Cay-LcBr.js → ganttDiagram-T4ZO3ILL-DCyjcGXR.js} +1 -1
- package/dist/esm/{gitGraph-7Q5UKJZL-BIhofRTU.js → gitGraph-7Q5UKJZL-B-fw09HA.js} +1 -1
- package/dist/esm/{gitGraphDiagram-UUTBAWPF-BN1EkaA3.js → gitGraphDiagram-UUTBAWPF-CdYpB5kl.js} +1 -1
- package/dist/esm/{graph-XFLEVMvo.js → graph-BuAvWT_r.js} +1 -1
- package/dist/esm/{index-D4D24Np7.js → index-BoA3EjMr.js} +1 -1
- package/dist/esm/{index-EPJhFLhN.js → index-rYUgz1LC.js} +1 -1
- package/dist/esm/{info-OMHHGYJF-DMKJgJ3s.js → info-OMHHGYJF-fbv9Xw4D.js} +1 -1
- package/dist/esm/{infoDiagram-42DDH7IO-kAZbkK9S.js → infoDiagram-42DDH7IO-Ce56qzjb.js} +1 -1
- package/dist/esm/{ishikawaDiagram-UXIWVN3A-MtQmxrIE.js → ishikawaDiagram-UXIWVN3A-Cc0AgO_R.js} +1 -1
- package/dist/esm/{journeyDiagram-VCZTEJTY-BuKFXeHL.js → journeyDiagram-VCZTEJTY-BQAuB_0y.js} +1 -1
- package/dist/esm/{kanban-definition-6JOO6SKY-pGcXhhi7.js → kanban-definition-6JOO6SKY-CFfdKxrM.js} +1 -1
- package/dist/esm/{layout-D9uGd7GO.js → layout-C9Uq7X58.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/{mermaid-parser.core-Crc-QLCi.js → mermaid-parser.core-B9BVFPAN.js} +1 -1
- package/dist/esm/{mermaid.core-C2hrg85i.js → mermaid.core-Ch6a1N6x.js} +1 -1
- package/dist/esm/{mindmap-definition-QFDTVHPH-CtfxHH9N.js → mindmap-definition-QFDTVHPH-BwtZAHVe.js} +1 -1
- package/dist/esm/{packet-4T2RLAQJ-BD2Ad6jE.js → packet-4T2RLAQJ-BGTrXSHu.js} +1 -1
- package/dist/esm/{pie-ZZUOXDRM-Bf017PqT.js → pie-ZZUOXDRM-Dx3xGYkv.js} +1 -1
- package/dist/esm/{pieDiagram-DEJITSTG-ChBbMYd8.js → pieDiagram-DEJITSTG-ChBY2XYY.js} +1 -1
- package/dist/esm/{quadrantDiagram-34T5L4WZ-BNmMB-pp.js → quadrantDiagram-34T5L4WZ-CRGLfMnt.js} +1 -1
- package/dist/esm/{radar-PYXPWWZC-DvvZel7z.js → radar-PYXPWWZC-BYId5clz.js} +1 -1
- package/dist/esm/{requirementDiagram-MS252O5E-B1RjmS2l.js → requirementDiagram-MS252O5E-qmbcV6Kf.js} +1 -1
- package/dist/esm/{sankeyDiagram-XADWPNL6-DSuRDDHI.js → sankeyDiagram-XADWPNL6-DaL42Ehn.js} +1 -1
- package/dist/esm/{sequenceDiagram-FGHM5R23-ByfYuCTD.js → sequenceDiagram-FGHM5R23-D28F9BbZ.js} +1 -1
- package/dist/esm/{stateDiagram-FHFEXIEX-CMjgjvak.js → stateDiagram-FHFEXIEX-RgoWlW1V.js} +1 -1
- package/dist/esm/{stateDiagram-v2-QKLJ7IA2-htYMk5r5.js → stateDiagram-v2-QKLJ7IA2-DuyT41He.js} +1 -1
- package/dist/esm/{timeline-definition-GMOUNBTQ-COFLk0ve.js → timeline-definition-GMOUNBTQ-BcOvpU4t.js} +1 -1
- package/dist/esm/{treeView-SZITEDCU-Ck6yPSxL.js → treeView-SZITEDCU-BjLEV1yZ.js} +1 -1
- package/dist/esm/{treemap-W4RFUUIX-ErJXCLFJ.js → treemap-W4RFUUIX-Cuo2Y8dN.js} +1 -1
- package/dist/esm/{types-rkDjePoL.js → types-DI2OON_b.js} +1 -1
- package/dist/esm/{vennDiagram-DHZGUBPP-xxvi147V.js → vennDiagram-DHZGUBPP-CZrtDTUB.js} +1 -1
- package/dist/esm/{wardley-RL74JXVD-B3jC7s0b.js → wardley-RL74JXVD-d0LkVT8_.js} +1 -1
- package/dist/esm/{wardleyDiagram-NUSXRM2D-CIYzWE9T.js → wardleyDiagram-NUSXRM2D-vlFiIB8t.js} +1 -1
- package/dist/esm/{xychartDiagram-5P7HB3ND-CHfEshBW.js → xychartDiagram-5P7HB3ND-DsCQdXVH.js} +1 -1
- package/package.json +2 -2
- package/dist/esm/channel-a8NrvAcc.js +0 -1
- package/dist/esm/clone-1ULLnhdV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as e}from"./index-EPJhFLhN.js";import{l as n,v as t,m as l,j as o,k as r,S as a}from"./types-rkDjePoL.js";function i(e){const n=[],t=String(e||"");let l=t.indexOf(","),o=0,r=!1;for(;!r;){-1===l&&(l=t.length,r=!0);const e=t.slice(o,l).trim();!e&&r||n.push(e),o=l+1,l=t.indexOf(",",o)}return n}function u(e,n){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}const s=/[$_\p{ID_Start}]/u,c=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,p=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,f=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h={};function g(e){return!!e&&s.test(String.fromCodePoint(e))}function m(e,n){const t=(n||h).jsx?p:c;return!!e&&t.test(String.fromCodePoint(e))}function y(e,n){return((n||h).jsx?d:f).test(e)}const v=/[ \t\n\f\r]/g;function b(e){return"object"==typeof e?"text"===e.type&&w(e.value):w(e)}function w(e){return""===e.replace(v,"")}class x{constructor(e,n,t){this.normal=n,this.property=e,t&&(this.space=t)}}function k(e,n){const t={},l={};for(const n of e)Object.assign(t,n.property),Object.assign(l,n.normal);return new x(t,l,n)}function C(e){return e.toLowerCase()}x.prototype.normal={},x.prototype.property={},x.prototype.space=void 0;class S{constructor(e,n){this.attribute=n,this.property=e}}S.prototype.attribute="",S.prototype.booleanish=!1,S.prototype.boolean=!1,S.prototype.commaOrSpaceSeparated=!1,S.prototype.commaSeparated=!1,S.prototype.defined=!1,S.prototype.mustUseProperty=!1,S.prototype.number=!1,S.prototype.overloadedBoolean=!1,S.prototype.property="",S.prototype.spaceSeparated=!1,S.prototype.space=void 0;let D=0;const A=T(),N=T(),L=T(),O=T(),P=T(),M=T(),R=T();function T(){return 2**++D}var E=Object.freeze({__proto__:null,boolean:A,booleanish:N,commaOrSpaceSeparated:R,commaSeparated:M,number:O,overloadedBoolean:L,spaceSeparated:P});const I=Object.keys(E);class B extends S{constructor(e,n,t,l){let o=-1;if(super(e,n),U(this,"space",l),"number"==typeof t)for(;++o<I.length;){const e=I[o];U(this,I[o],(t&E[e])===E[e])}}}function U(e,n,t){t&&(e[n]=t)}function j(e){const n={},t={};for(const[l,o]of Object.entries(e.properties)){const r=new B(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,t[C(l)]=l,t[C(r.attribute)]=l}return new x(n,t,e.space)}B.prototype.defined=!0;const z=j({properties:{ariaActiveDescendant:null,ariaAtomic:N,ariaAutoComplete:null,ariaBusy:N,ariaChecked:N,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:P,ariaCurrent:null,ariaDescribedBy:P,ariaDetails:null,ariaDisabled:N,ariaDropEffect:P,ariaErrorMessage:null,ariaExpanded:N,ariaFlowTo:P,ariaGrabbed:N,ariaHasPopup:null,ariaHidden:N,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:P,ariaLevel:O,ariaLive:null,ariaModal:N,ariaMultiLine:N,ariaMultiSelectable:N,ariaOrientation:null,ariaOwns:P,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:N,ariaReadOnly:N,ariaRelevant:null,ariaRequired:N,ariaRoleDescription:P,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:N,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase()});function F(e,n){return n in e?e[n]:n}function _(e,n){return F(e,n.toLowerCase())}const H=j({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:M,acceptCharset:P,accessKey:P,action:null,allow:null,allowFullScreen:A,allowPaymentRequest:A,allowUserMedia:A,alt:null,as:null,async:A,autoCapitalize:null,autoComplete:P,autoFocus:A,autoPlay:A,blocking:P,capture:null,charSet:null,checked:A,cite:null,className:P,cols:O,colSpan:null,content:null,contentEditable:N,controls:A,controlsList:P,coords:O|M,crossOrigin:null,data:null,dateTime:null,decoding:null,default:A,defer:A,dir:null,dirName:null,disabled:A,download:L,draggable:N,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:A,formTarget:null,headers:P,height:O,hidden:L,high:O,href:null,hrefLang:null,htmlFor:P,httpEquiv:P,id:null,imageSizes:null,imageSrcSet:null,inert:A,inputMode:null,integrity:null,is:null,isMap:A,itemId:null,itemProp:P,itemRef:P,itemScope:A,itemType:P,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:A,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:A,muted:A,name:null,nonce:null,noModule:A,noValidate:A,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:A,optimum:O,pattern:null,ping:P,placeholder:null,playsInline:A,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:A,referrerPolicy:null,rel:P,required:A,reversed:A,rows:O,rowSpan:O,sandbox:P,scope:null,scoped:A,seamless:A,selected:A,shadowRootClonable:A,shadowRootDelegatesFocus:A,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:N,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:A,useMap:null,value:N,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:P,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:A,declare:A,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:A,noHref:A,noShade:A,noWrap:A,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:N,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:A,disableRemotePlayback:A,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:_}),V=j({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:R,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:P,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:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:A,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:M,g2:M,glyphName:M,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:R,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,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:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:P,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:R,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:R,rev:R,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:R,requiredFeatures:R,requiredFonts:R,requiredFormats:R,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:R,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:R,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:R,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:F}),q=j({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase()}),K=j({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_}),W=j({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase()}),X={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"},$=/[A-Z]/g,Y=/-[a-z]/g,G=/^data[-\w.:]+$/i;function Z(e,n){const t=C(n);let l=n,o=S;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&G.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Y,Q);l="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Y.test(e)){let t=e.replace($,J);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=B}return new o(l,n)}function J(e){return"-"+e.toLowerCase()}function Q(e){return e.charAt(1).toUpperCase()}const ee=k([z,H,q,K,W],"html"),ne=k([z,V,q,K,W],"svg");function te(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function le(e){return e.join(" ").trim()}var oe,re,ae,ie={};function ue(){if(ae)return ie;ae=1;var e=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ie,"__esModule",{value:!0}),ie.default=function(e,t){let l=null;if(!e||"string"!=typeof e)return l;const o=(0,n.default)(e),r="function"==typeof t;return o.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:o}=e;r?t(n,o,e):o&&(l=l||{},l[n]=o)}),l};const n=e(function(){if(re)return oe;re=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,i=/^\s+|\s+$/g,u="";function s(e){return e?e.replace(i,u):u}return oe=function(i,c){if("string"!=typeof i)throw new TypeError("First argument must be a string");if(!i)return[];c=c||{};var p=1,f=1;function d(e){var t=e.match(n);t&&(p+=t.length);var l=e.lastIndexOf("\n");f=~l?e.length-l:f+e.length}function h(){var e={line:p,column:f};return function(n){return n.position=new g(e),v(),n}}function g(e){this.start=e,this.end={line:p,column:f},this.source=c.source}function m(e){var n=new Error(c.source+":"+p+":"+f+": "+e);if(n.reason=e,n.filename=c.source,n.line=p,n.column=f,n.source=i,!c.silent)throw n}function y(e){var n=e.exec(i);if(n){var t=n[0];return d(t),i=i.slice(t.length),n}}function v(){y(t)}function b(e){var n;for(e=e||[];n=w();)!1!==n&&e.push(n);return e}function w(){var e=h();if("/"==i.charAt(0)&&"*"==i.charAt(1)){for(var n=2;u!=i.charAt(n)&&("*"!=i.charAt(n)||"/"!=i.charAt(n+1));)++n;if(n+=2,u===i.charAt(n-1))return m("End of comment missing");var t=i.slice(2,n-2);return f+=2,d(t),i=i.slice(n),f+=2,e({type:"comment",comment:t})}}function x(){var n=h(),t=y(l);if(t){if(w(),!y(o))return m("property missing ':'");var i=y(r),c=n({type:"declaration",property:s(t[0].replace(e,u)),value:i?s(i[0].replace(e,u)):u});return y(a),c}}return g.prototype.content=i,v(),function(){var e,n=[];for(b(n);e=x();)!1!==e&&(n.push(e),b(n));return n}()},oe}());return ie}var se,ce,pe,fe={};function de(){if(se)return fe;se=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,r=function(e,n){return n.toUpperCase()},a=function(e,n){return"".concat(n,"-")};return fe.camelCase=function(i,u){return void 0===u&&(u={}),function(n){return!n||t.test(n)||e.test(n)}(i)?i:(i=i.toLowerCase(),(i=u.reactCompat?i.replace(o,a):i.replace(l,a)).replace(n,r))},fe}var he=function(){if(pe)return ce;pe=1;var e=(ce&&ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ue()),n=de();function t(t,l){var o={};return t&&"string"==typeof t?((0,e.default)(t,function(e,t){e&&t&&(o[(0,n.camelCase)(e,l)]=t)}),o):o}return t.default=t,ce=t}(),ge=e(he);const me=ve("end"),ye=ve("start");function ve(e){return function(n){const t=n&&n.position&&n.position[e]||{};if("number"==typeof t.line&&t.line>0&&"number"==typeof t.column&&t.column>0)return{line:t.line,column:t.column,offset:"number"==typeof t.offset&&t.offset>-1?t.offset:void 0}}}function be(e){const n=ye(e),t=me(e);if(n&&t)return{start:n,end:t}}function we(e){const t=[];let l=-1,o=0,r=0;for(;++l<e.length;){const a=e.charCodeAt(l);let i="";if(37===a&&n(e.charCodeAt(l+1))&&n(e.charCodeAt(l+2)))r=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const n=e.charCodeAt(l+1);a<56320&&n>56319&&n<57344?(i=String.fromCharCode(a,n),r=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(o,l),encodeURIComponent(i)),o=l+r+1,i=""),r&&(l+=r,r=0)}return t.join("")+e.slice(o)}function xe(e,n){const t=n.referenceType;let l="]";if("collapsed"===t?l+="[]":"full"===t&&(l+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return[{type:"text",value:"!["+n.alt+l}];const o=e.all(n),r=o[0];r&&"text"===r.type?r.value="["+r.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=l:o.push({type:"text",value:l}),o}function ke(e){const n=e.spread;return null==n?e.children.length>1:n}function Ce(e){const n=String(e),t=/\r?\n|\r/g;let l=t.exec(n),o=0;const r=[];for(;l;)r.push(Se(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=t.exec(n);return r.push(Se(n.slice(o),o>0,!1)),r.join("")}function Se(e,n,t){let l=0,o=e.length;if(n){let n=e.codePointAt(l);for(;9===n||32===n;)l++,n=e.codePointAt(l)}if(t){let n=e.codePointAt(o-1);for(;9===n||32===n;)o--,n=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}const De={blockquote:function(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)},break:function(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:"\n"}]},code:function(e,n){const t=n.value?n.value+"\n":"",l={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(l.className=["language-"+o[0]]);let r={type:"element",tagName:"code",properties:l,children:[{type:"text",value:t}]};return n.meta&&(r.data={meta:n.meta}),e.patch(n,r),r=e.applyData(n,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(n,r),r},delete:function(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},emphasis:function(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},footnoteReference:function(e,n){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=we(l.toLowerCase()),r=e.footnoteOrder.indexOf(l);let a,i=e.footnoteCounts.get(l);void 0===i?(i=0,e.footnoteOrder.push(l),a=e.footnoteOrder.length):a=r+1,i+=1,e.footnoteCounts.set(l,i);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+o,id:t+"fnref-"+o+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)},heading:function(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},html:function(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}},imageReference:function(e,n){const t=String(n.identifier).toUpperCase(),l=e.definitionById.get(t);if(!l)return xe(e,n);const o={src:we(l.url||""),alt:n.alt};null!==l.title&&void 0!==l.title&&(o.title=l.title);const r={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,r),e.applyData(n,r)},image:function(e,n){const t={src:we(n.url)};null!==n.alt&&void 0!==n.alt&&(t.alt=n.alt),null!==n.title&&void 0!==n.title&&(t.title=n.title);const l={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,l),e.applyData(n,l)},inlineCode:function(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const l={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,l),e.applyData(n,l)},linkReference:function(e,n){const t=String(n.identifier).toUpperCase(),l=e.definitionById.get(t);if(!l)return xe(e,n);const o={href:we(l.url||"")};null!==l.title&&void 0!==l.title&&(o.title=l.title);const r={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},link:function(e,n){const t={href:we(n.url)};null!==n.title&&void 0!==n.title&&(t.title=n.title);const l={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)},listItem:function(e,n,t){const l=e.all(n),o=t?function(e){let n=!1;if("list"===e.type){n=e.spread||!1;const t=e.children;let l=-1;for(;!n&&++l<t.length;)n=ke(t[l])}return n}(t):ke(n),r={},a=[];if("boolean"==typeof n.checked){const e=l[0];let t;e&&"element"===e.type&&"p"===e.tagName?t=e:(t={type:"element",tagName:"p",properties:{},children:[]},l.unshift(t)),t.children.length>0&&t.children.unshift({type:"text",value:" "}),t.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let i=-1;for(;++i<l.length;){const e=l[i];(o||0!==i||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const u=l[l.length-1];u&&(o||"element"!==u.type||"p"!==u.tagName)&&a.push({type:"text",value:"\n"});const s={type:"element",tagName:"li",properties:r,children:a};return e.patch(n,s),e.applyData(n,s)},list:function(e,n){const t={},l=e.all(n);let o=-1;for("number"==typeof n.start&&1!==n.start&&(t.start=n.start);++o<l.length;){const e=l[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const r={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(l,!0)};return e.patch(n,r),e.applyData(n,r)},paragraph:function(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},root:function(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)},strong:function(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},table:function(e,n){const t=e.all(n),l=t.shift(),o=[];if(l){const t={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(n.children[0],t),o.push(t)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},r=ye(n.children[1]),a=me(n.children[n.children.length-1]);r&&a&&(l.position={start:r,end:a}),o.push(l)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,r),e.applyData(n,r)},tableCell:function(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},tableRow:function(e,n,t){const l=t?t.children:void 0,o=0===(l?l.indexOf(n):1)?"th":"td",r=t&&"table"===t.type?t.align:void 0,a=r?r.length:n.children.length;let i=-1;const u=[];for(;++i<a;){const t=n.children[i],l={},a=r?r[i]:void 0;a&&(l.align=a);let s={type:"element",tagName:o,properties:l,children:[]};t&&(s.children=e.all(t),e.patch(t,s),s=e.applyData(t,s)),u.push(s)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)},text:function(e,n){const t={type:"text",value:Ce(String(n.value))};return e.patch(n,t),e.applyData(n,t)},thematicBreak:function(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)},toml:Ae,yaml:Ae,definition:Ae,footnoteDefinition:Ae};function Ae(){}const Ne="object"==typeof self?self:globalThis,Le=e=>((e,n)=>{const t=(n,t)=>(e.set(t,n),n),l=o=>{if(e.has(o))return e.get(o);const[r,a]=n[o];switch(r){case 0:case-1:return t(a,o);case 1:{const e=t([],o);for(const n of a)e.push(l(n));return e}case 2:{const e=t({},o);for(const[n,t]of a)e[l(n)]=l(t);return e}case 3:return t(new Date(a),o);case 4:{const{source:e,flags:n}=a;return t(new RegExp(e,n),o)}case 5:{const e=t(new Map,o);for(const[n,t]of a)e.set(l(n),l(t));return e}case 6:{const e=t(new Set,o);for(const n of a)e.add(l(n));return e}case 7:{const{name:e,message:n}=a;return t(new Ne[e](n),o)}case 8:return t(BigInt(a),o);case"BigInt":return t(Object(BigInt(a)),o);case"ArrayBuffer":return t(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return t(new DataView(e),a)}}return t(new Ne[r](a),o)};return l})(new Map,e)(0),Oe="",{toString:Pe}={},{keys:Me}=Object,Re=e=>{const n=typeof e;if("object"!==n||!e)return[0,n];const t=Pe.call(e).slice(8,-1);switch(t){case"Array":return[1,Oe];case"Object":return[2,Oe];case"Date":return[3,Oe];case"RegExp":return[4,Oe];case"Map":return[5,Oe];case"Set":return[6,Oe];case"DataView":return[1,t]}return t.includes("Array")?[1,t]:t.includes("Error")?[7,t]:[2,t]},Te=([e,n])=>0===e&&("function"===n||"symbol"===n),Ee=(e,{json:n,lossy:t}={})=>{const l=[];return((e,n,t,l)=>{const o=(e,n)=>{const o=l.push(e)-1;return t.set(n,o),o},r=l=>{if(t.has(l))return t.get(l);let[a,i]=Re(l);switch(a){case 0:{let n=l;switch(i){case"bigint":a=8,n=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+i);n=null;break;case"undefined":return o([-1],l)}return o([a,n],l)}case 1:{if(i){let e=l;return"DataView"===i?e=new Uint8Array(l.buffer):"ArrayBuffer"===i&&(e=new Uint8Array(l)),o([i,[...e]],l)}const e=[],n=o([a,e],l);for(const n of l)e.push(r(n));return n}case 2:{if(i)switch(i){case"BigInt":return o([i,l.toString()],l);case"Boolean":case"Number":case"String":return o([i,l.valueOf()],l)}if(n&&"toJSON"in l)return r(l.toJSON());const t=[],u=o([a,t],l);for(const n of Me(l))!e&&Te(Re(l[n]))||t.push([r(n),r(l[n])]);return u}case 3:return o([a,l.toISOString()],l);case 4:{const{source:e,flags:n}=l;return o([a,{source:e,flags:n}],l)}case 5:{const n=[],t=o([a,n],l);for(const[t,o]of l)(e||!Te(Re(t))&&!Te(Re(o)))&&n.push([r(t),r(o)]);return t}case 6:{const n=[],t=o([a,n],l);for(const t of l)!e&&Te(Re(t))||n.push(r(t));return t}}const{message:u}=l;return o([a,{name:i,message:u}],l)};return r})(!(n||t),!!n,new Map,l)(e),l};var Ie="function"==typeof structuredClone?(e,n)=>n&&("json"in n||"lossy"in n)?Le(Ee(e,n)):structuredClone(e):(e,n)=>Le(Ee(e,n));function Be(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Ue(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}const je={}.hasOwnProperty,ze={};function Fe(e,n){e.position&&(n.position=be(e))}function _e(e,n){let t=n;if(e&&e.data){const n=e.data.hName,l=e.data.hChildren,o=e.data.hProperties;if("string"==typeof n)if("element"===t.type)t.tagName=n;else{t={type:"element",tagName:n,properties:{},children:"children"in t?t.children:[t]}}"element"===t.type&&o&&Object.assign(t.properties,Ie(o)),"children"in t&&t.children&&null!=l&&(t.children=l)}return t}function He(e,n){const t=n.data||{},l=!("value"in n)||je.call(t,"hProperties")||je.call(t,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(n)}:{type:"text",value:n.value};return e.patch(n,l),e.applyData(n,l)}function Ve(e,n){const t=[];let l=-1;for(n&&t.push({type:"text",value:"\n"});++l<e.length;)l&&t.push({type:"text",value:"\n"}),t.push(e[l]);return n&&e.length>0&&t.push({type:"text",value:"\n"}),t}function qe(e){let n=0,t=e.charCodeAt(n);for(;9===t||32===t;)n++,t=e.charCodeAt(n);return e.slice(n)}function Ke(e,n){const l=function(e,n){const l=n||ze,o=new Map,r=new Map,a=new Map,i={...De,...l.handlers},u={all:function(e){const n=[];if("children"in e){const t=e.children;let l=-1;for(;++l<t.length;){const o=u.one(t[l],e);if(o){if(l&&"break"===t[l-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=qe(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=qe(e.value))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n},applyData:_e,definitionById:o,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,n){const t=e.type,l=u.handlers[t];if(je.call(u.handlers,t)&&l)return l(u,e,n);if(u.options.passThrough&&u.options.passThrough.includes(t)){if("children"in e){const{children:n,...t}=e,l=Ie(t);return l.children=u.all(e),l}return Ie(e)}return(u.options.unknownHandler||He)(u,e,n)},options:l,patch:Fe,wrap:Ve};return t(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const n="definition"===e.type?o:r,t=String(e.identifier).toUpperCase();n.has(t)||n.set(t,e)}}),u}(e,n),o=l.one(e,void 0),r=function(e){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Be,l=e.options.footnoteBackLabel||Ue,o=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},i=[];let u=-1;for(;++u<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[u]);if(!o)continue;const r=e.all(o),a=String(o.identifier).toUpperCase(),s=we(a.toLowerCase());let c=0;const p=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){p.length>0&&p.push({type:"text",value:" "});let e="string"==typeof t?t:t(u,c);"string"==typeof e&&(e={type:"text",value:e}),p.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof l?l:l(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=r[r.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...p)}else r.push(...p);const h={type:"element",tagName:"li",properties:{id:n+"fn-"+s},children:e.wrap(r,!0)};e.patch(o,h),i.push(h)}if(0!==i.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...Ie(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(i,!0)},{type:"text",value:"\n"}]}}(l),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return r&&a.children.push({type:"text",value:"\n"},r),a}function We(e,n){return e&&"run"in e?async function(t,l){const o=Ke(t,{file:l,...n});await e.run(o,l)}:function(t,l){return Ke(t,{file:l,...e||n})}}const Xe=/[#.]/g;function $e(e,n,t){const l=t?function(e){const n=new Map;for(const t of e)n.set(t.toLowerCase(),t);return n}(t):void 0;return function(t,o,...r){let a;if(null==t){a={type:"root",children:[]};const e=o;r.unshift(e)}else{a=function(e,n){const t=e||"",l={};let o,r,a=0;for(;a<t.length;){Xe.lastIndex=a;const e=Xe.exec(t),n=t.slice(a,e?e.index:t.length);n&&(o?"#"===o?l.id=n:Array.isArray(l.className)?l.className.push(n):l.className=[n]:r=n,a+=n.length),e&&(o=e[0],a++)}return{type:"element",tagName:r||n||"div",properties:l,children:[]}}(t,n);const i=a.tagName.toLowerCase(),u=l?l.get(i):void 0;if(a.tagName=u||i,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const n=e,t=Object.keys(e);for(const e of t){const t=n[e];if(t&&"object"==typeof t){if(!Array.isArray(t))return!0;const e=t;for(const n of e)if("number"!=typeof n&&"string"!=typeof n)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(o))r.unshift(o);else for(const[n,t]of Object.entries(o))Ye(e,a.properties,n,t)}for(const e of r)Ge(a.children,e);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Ye(e,n,t,l){const o=Z(e,t);let r;if(null!=l){if("number"==typeof l){if(Number.isNaN(l))return;r=l}else r="boolean"==typeof l?l:"string"==typeof l?o.spaceSeparated?te(l):o.commaSeparated?i(l):o.commaOrSpaceSeparated?te(i(l).join(" ")):Ze(o,o.property,l):Array.isArray(l)?[...l]:"style"===o.property?function(e){const n=[];for(const[t,l]of Object.entries(e))n.push([t,l].join(": "));return n.join("; ")}(l):String(l);if(Array.isArray(r)){const e=[];for(const n of r)e.push(Ze(o,o.property,n));r=e}"className"===o.property&&Array.isArray(n.className)&&(r=n.className.concat(r)),n[o.property]=r}}function Ge(e,n){if(null==n);else if("number"==typeof n||"string"==typeof n)e.push({type:"text",value:String(n)});else if(Array.isArray(n))for(const t of n)Ge(e,t);else{if("object"!=typeof n||!("type"in n))throw new Error("Expected node, nodes, or string, got `"+n+"`");"root"===n.type?Ge(e,n.children):e.push(n)}}function Ze(e,n,t){if("string"==typeof t){if(e.number&&t&&!Number.isNaN(Number(t)))return Number(t);if((e.boolean||e.overloadedBoolean)&&(""===t||C(t)===C(n)))return!0}return t}const Je=$e(ee,"div"),Qe=$e(ne,"g",["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"]),en={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nn(e,n){const t=function(e,n){switch(e.nodeType){case 1:return function(e,n){const t=e.namespaceURI,l=t===en.svg?Qe:Je,o=t===en.html?e.tagName.toLowerCase():e.tagName,r=t===en.html&&"template"===o?e.content:e,a=e.getAttributeNames(),i={};let u=-1;for(;++u<a.length;)i[a[u]]=e.getAttribute(a[u])||"";return l(o,i,ln(r,n))}(e,n);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:return tn(e,n);case 10:return{type:"doctype"};case 11:return tn(e,n);default:return}}(e,n);return t&&n.afterTransform&&n.afterTransform(e,t),t}function tn(e,n){return{type:"root",children:ln(e,n)}}function ln(e,n){const t=e.childNodes,l=[];let o=-1;for(;++o<t.length;){const e=nn(t[o],n);void 0!==e&&l.push(e)}return l}function on(e,n){const t=function(e){const n=document.createElement("template");return n.innerHTML=e,n.content}(e);return nn(t,{})||{type:"root",children:[]}}new DOMParser;const rn=function(e,n,t){const o=l(t);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof n){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((n=e.children.indexOf(n))<0)throw new Error("Expected child node or index");for(;++n<e.children.length;)if(o(e.children[n],n,e))return e.children[n]},an=function(e){if(null==e)return sn;if("string"==typeof e)return function(e){return un(n);function n(n){return n.tagName===e}}(e);if("object"==typeof e)return function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=an(e[t]);return un(l);function l(...e){let t=-1;for(;++t<n.length;)if(n[t].apply(this,e))return!0;return!1}}(e);if("function"==typeof e)return un(e);throw new Error("Expected function, string, or array as `test`")};function un(e){return function(n,t,l){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}(n)&&e.call(this,n,"number"==typeof t?t:void 0,l||void 0))}}function sn(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}const cn=/\n/g,pn=/[\t ]+/g,fn=an("br"),dn=an(function(e){return"td"===e.tagName||"th"===e.tagName}),hn=an("p"),gn=an("tr"),mn=an(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),yn=an(["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 vn(e,n,t){return"element"===e.type?function(e,n,t){const l=xn(e,t),o=e.children||[];let r,a,i=-1,u=[];if(mn(e))return u;fn(e)||gn(e)&&rn(n,e,gn)?a="\n":hn(e)?(r=2,a=2):yn(e)&&(r=1,a=1);for(;++i<o.length;)u=u.concat(vn(o[i],e,{whitespace:l,breakBefore:i?void 0:r,breakAfter:i<o.length-1?fn(o[i+1]):a}));dn(e)&&rn(n,e,dn)&&u.push("\t");r&&u.unshift(r);a&&u.push(a);return u}(e,n,t):"text"===e.type?"normal"===t.whitespace?bn(e,t):function(e){return[String(e.value)]}(e):[]}function bn(e,n){const t=String(e.value),l=[],o=[];let r=0;for(;r<=t.length;){cn.lastIndex=r;const e=cn.exec(t),o=e&&"index"in e?e.index:t.length;l.push(wn(t.slice(r,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==r||n.breakBefore,o!==t.length||n.breakAfter)),r=o+1}let a,i=-1;for(;++i<l.length;)8203===l[i].charCodeAt(l[i].length-1)||i<l.length-1&&8203===l[i+1].charCodeAt(0)?(o.push(l[i]),a=void 0):l[i]?("number"==typeof a&&o.push(a),o.push(l[i]),a=0):0!==i&&i!==l.length-1||o.push(0);return o}function wn(e,n,t){const l=[];let o,r=0;for(;r<e.length;){pn.lastIndex=r;const t=pn.exec(e);o=t?t.index:e.length,r||o||!t||n||l.push(""),r!==o&&l.push(e.slice(r,o)),r=t?o+t[0].length:o}return r===o||t||l.push(""),l.join(" ")}function xn(e,n){if("element"===e.type){const t=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return t.wrap?"pre-wrap":"pre";case"td":case"th":return t.noWrap?"nowrap":n.whitespace;case"textarea":return"pre-wrap"}}return n.whitespace}const kn={},Cn=[];function Sn(e){const n=e||kn;return function(e,t){o(e,"element",function(e,l){const o=Array.isArray(e.properties.className)?e.properties.className:Cn,i=o.includes("language-math"),u=o.includes("math-display"),s=o.includes("math-inline");let c=u;if(!i&&!u&&!s)return;let p=l[l.length-1],f=e;if("code"===e.tagName&&i&&p&&"element"===p.type&&"pre"===p.tagName&&(f=p,p=l[l.length-2],c=!0),!p)return;const d=function(e,n){const t=n||{},l="children"in e?e.children:[],o=yn(e),r=xn(e,{whitespace:t.whitespace||"normal"}),a=[];"text"!==e.type&&"comment"!==e.type||a.push(...bn(e,{breakBefore:!0,breakAfter:!0}));let i=-1;for(;++i<l.length;)a.push(...vn(l[i],e,{whitespace:r,breakBefore:i?void 0:o,breakAfter:i<l.length-1?fn(l[i+1]):o}));const u=[];let s;for(i=-1;++i<a.length;){const e=a[i];"number"==typeof e?void 0!==s&&e>s&&(s=e):e&&(void 0!==s&&s>-1&&u.push("\n".repeat(s)||" "),s=-1,u.push(e))}return u.join("")}(f,{whitespace:"pre"});let h;try{h=r.renderToString(d,{...n,displayMode:c,throwOnError:!0})}catch(o){const a=o,i=a.name.toLowerCase();t.message("Could not render math with KaTeX",{ancestors:[...l,e],cause:a,place:e.position,ruleId:i,source:"rehype-katex"});try{h=r.renderToString(d,{...n,displayMode:c,strict:"ignore",throwOnError:!1})}catch{h=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(n.errorColor||"#cc0000"),title:String(o)},children:[{type:"text",value:d}]}]}}if("string"==typeof h){h=on(h).children}const g=p.children.indexOf(f);return p.children.splice(g,1,...h),a})}}export{u as a,le as b,X as c,ge as d,en as e,Z as f,Qe as g,ee as h,Je as i,me as j,Ie as k,Sn as l,be as m,y as n,g as o,ye as p,m as q,We as r,ne as s,b as w};
|
|
1
|
+
import{y as e}from"./index-rYUgz1LC.js";import{l as n,v as t,m as l,j as o,k as r,S as a}from"./types-DI2OON_b.js";function i(e){const n=[],t=String(e||"");let l=t.indexOf(","),o=0,r=!1;for(;!r;){-1===l&&(l=t.length,r=!0);const e=t.slice(o,l).trim();!e&&r||n.push(e),o=l+1,l=t.indexOf(",",o)}return n}function u(e,n){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}const s=/[$_\p{ID_Start}]/u,c=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,p=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,f=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h={};function g(e){return!!e&&s.test(String.fromCodePoint(e))}function m(e,n){const t=(n||h).jsx?p:c;return!!e&&t.test(String.fromCodePoint(e))}function y(e,n){return((n||h).jsx?d:f).test(e)}const v=/[ \t\n\f\r]/g;function b(e){return"object"==typeof e?"text"===e.type&&w(e.value):w(e)}function w(e){return""===e.replace(v,"")}class x{constructor(e,n,t){this.normal=n,this.property=e,t&&(this.space=t)}}function k(e,n){const t={},l={};for(const n of e)Object.assign(t,n.property),Object.assign(l,n.normal);return new x(t,l,n)}function C(e){return e.toLowerCase()}x.prototype.normal={},x.prototype.property={},x.prototype.space=void 0;class S{constructor(e,n){this.attribute=n,this.property=e}}S.prototype.attribute="",S.prototype.booleanish=!1,S.prototype.boolean=!1,S.prototype.commaOrSpaceSeparated=!1,S.prototype.commaSeparated=!1,S.prototype.defined=!1,S.prototype.mustUseProperty=!1,S.prototype.number=!1,S.prototype.overloadedBoolean=!1,S.prototype.property="",S.prototype.spaceSeparated=!1,S.prototype.space=void 0;let D=0;const A=T(),N=T(),L=T(),O=T(),P=T(),M=T(),R=T();function T(){return 2**++D}var E=Object.freeze({__proto__:null,boolean:A,booleanish:N,commaOrSpaceSeparated:R,commaSeparated:M,number:O,overloadedBoolean:L,spaceSeparated:P});const I=Object.keys(E);class B extends S{constructor(e,n,t,l){let o=-1;if(super(e,n),U(this,"space",l),"number"==typeof t)for(;++o<I.length;){const e=I[o];U(this,I[o],(t&E[e])===E[e])}}}function U(e,n,t){t&&(e[n]=t)}function j(e){const n={},t={};for(const[l,o]of Object.entries(e.properties)){const r=new B(l,e.transform(e.attributes||{},l),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,t[C(l)]=l,t[C(r.attribute)]=l}return new x(n,t,e.space)}B.prototype.defined=!0;const z=j({properties:{ariaActiveDescendant:null,ariaAtomic:N,ariaAutoComplete:null,ariaBusy:N,ariaChecked:N,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:P,ariaCurrent:null,ariaDescribedBy:P,ariaDetails:null,ariaDisabled:N,ariaDropEffect:P,ariaErrorMessage:null,ariaExpanded:N,ariaFlowTo:P,ariaGrabbed:N,ariaHasPopup:null,ariaHidden:N,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:P,ariaLevel:O,ariaLive:null,ariaModal:N,ariaMultiLine:N,ariaMultiSelectable:N,ariaOrientation:null,ariaOwns:P,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:N,ariaReadOnly:N,ariaRelevant:null,ariaRequired:N,ariaRoleDescription:P,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:N,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase()});function F(e,n){return n in e?e[n]:n}function _(e,n){return F(e,n.toLowerCase())}const H=j({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:M,acceptCharset:P,accessKey:P,action:null,allow:null,allowFullScreen:A,allowPaymentRequest:A,allowUserMedia:A,alt:null,as:null,async:A,autoCapitalize:null,autoComplete:P,autoFocus:A,autoPlay:A,blocking:P,capture:null,charSet:null,checked:A,cite:null,className:P,cols:O,colSpan:null,content:null,contentEditable:N,controls:A,controlsList:P,coords:O|M,crossOrigin:null,data:null,dateTime:null,decoding:null,default:A,defer:A,dir:null,dirName:null,disabled:A,download:L,draggable:N,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:A,formTarget:null,headers:P,height:O,hidden:L,high:O,href:null,hrefLang:null,htmlFor:P,httpEquiv:P,id:null,imageSizes:null,imageSrcSet:null,inert:A,inputMode:null,integrity:null,is:null,isMap:A,itemId:null,itemProp:P,itemRef:P,itemScope:A,itemType:P,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:A,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:A,muted:A,name:null,nonce:null,noModule:A,noValidate:A,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:A,optimum:O,pattern:null,ping:P,placeholder:null,playsInline:A,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:A,referrerPolicy:null,rel:P,required:A,reversed:A,rows:O,rowSpan:O,sandbox:P,scope:null,scoped:A,seamless:A,selected:A,shadowRootClonable:A,shadowRootDelegatesFocus:A,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:N,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:A,useMap:null,value:N,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:P,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:A,declare:A,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:A,noHref:A,noShade:A,noWrap:A,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:N,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:A,disableRemotePlayback:A,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:_}),V=j({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:R,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:P,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:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:A,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:M,g2:M,glyphName:M,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:R,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,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:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:P,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:R,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:R,rev:R,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:R,requiredFeatures:R,requiredFonts:R,requiredFormats:R,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:R,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:R,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:R,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:F}),q=j({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,n)=>"xlink:"+n.slice(5).toLowerCase()}),K=j({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_}),W=j({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase()}),X={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"},$=/[A-Z]/g,Y=/-[a-z]/g,G=/^data[-\w.:]+$/i;function Z(e,n){const t=C(n);let l=n,o=S;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&G.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Y,Q);l="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Y.test(e)){let t=e.replace($,J);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=B}return new o(l,n)}function J(e){return"-"+e.toLowerCase()}function Q(e){return e.charAt(1).toUpperCase()}const ee=k([z,H,q,K,W],"html"),ne=k([z,V,q,K,W],"svg");function te(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function le(e){return e.join(" ").trim()}var oe,re,ae,ie={};function ue(){if(ae)return ie;ae=1;var e=ie&&ie.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ie,"__esModule",{value:!0}),ie.default=function(e,t){let l=null;if(!e||"string"!=typeof e)return l;const o=(0,n.default)(e),r="function"==typeof t;return o.forEach(e=>{if("declaration"!==e.type)return;const{property:n,value:o}=e;r?t(n,o,e):o&&(l=l||{},l[n]=o)}),l};const n=e(function(){if(re)return oe;re=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,r=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,i=/^\s+|\s+$/g,u="";function s(e){return e?e.replace(i,u):u}return oe=function(i,c){if("string"!=typeof i)throw new TypeError("First argument must be a string");if(!i)return[];c=c||{};var p=1,f=1;function d(e){var t=e.match(n);t&&(p+=t.length);var l=e.lastIndexOf("\n");f=~l?e.length-l:f+e.length}function h(){var e={line:p,column:f};return function(n){return n.position=new g(e),v(),n}}function g(e){this.start=e,this.end={line:p,column:f},this.source=c.source}function m(e){var n=new Error(c.source+":"+p+":"+f+": "+e);if(n.reason=e,n.filename=c.source,n.line=p,n.column=f,n.source=i,!c.silent)throw n}function y(e){var n=e.exec(i);if(n){var t=n[0];return d(t),i=i.slice(t.length),n}}function v(){y(t)}function b(e){var n;for(e=e||[];n=w();)!1!==n&&e.push(n);return e}function w(){var e=h();if("/"==i.charAt(0)&&"*"==i.charAt(1)){for(var n=2;u!=i.charAt(n)&&("*"!=i.charAt(n)||"/"!=i.charAt(n+1));)++n;if(n+=2,u===i.charAt(n-1))return m("End of comment missing");var t=i.slice(2,n-2);return f+=2,d(t),i=i.slice(n),f+=2,e({type:"comment",comment:t})}}function x(){var n=h(),t=y(l);if(t){if(w(),!y(o))return m("property missing ':'");var i=y(r),c=n({type:"declaration",property:s(t[0].replace(e,u)),value:i?s(i[0].replace(e,u)):u});return y(a),c}}return g.prototype.content=i,v(),function(){var e,n=[];for(b(n);e=x();)!1!==e&&(n.push(e),b(n));return n}()},oe}());return ie}var se,ce,pe,fe={};function de(){if(se)return fe;se=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,r=function(e,n){return n.toUpperCase()},a=function(e,n){return"".concat(n,"-")};return fe.camelCase=function(i,u){return void 0===u&&(u={}),function(n){return!n||t.test(n)||e.test(n)}(i)?i:(i=i.toLowerCase(),(i=u.reactCompat?i.replace(o,a):i.replace(l,a)).replace(n,r))},fe}var he=function(){if(pe)return ce;pe=1;var e=(ce&&ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ue()),n=de();function t(t,l){var o={};return t&&"string"==typeof t?((0,e.default)(t,function(e,t){e&&t&&(o[(0,n.camelCase)(e,l)]=t)}),o):o}return t.default=t,ce=t}(),ge=e(he);const me=ve("end"),ye=ve("start");function ve(e){return function(n){const t=n&&n.position&&n.position[e]||{};if("number"==typeof t.line&&t.line>0&&"number"==typeof t.column&&t.column>0)return{line:t.line,column:t.column,offset:"number"==typeof t.offset&&t.offset>-1?t.offset:void 0}}}function be(e){const n=ye(e),t=me(e);if(n&&t)return{start:n,end:t}}function we(e){const t=[];let l=-1,o=0,r=0;for(;++l<e.length;){const a=e.charCodeAt(l);let i="";if(37===a&&n(e.charCodeAt(l+1))&&n(e.charCodeAt(l+2)))r=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const n=e.charCodeAt(l+1);a<56320&&n>56319&&n<57344?(i=String.fromCharCode(a,n),r=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(o,l),encodeURIComponent(i)),o=l+r+1,i=""),r&&(l+=r,r=0)}return t.join("")+e.slice(o)}function xe(e,n){const t=n.referenceType;let l="]";if("collapsed"===t?l+="[]":"full"===t&&(l+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return[{type:"text",value:"!["+n.alt+l}];const o=e.all(n),r=o[0];r&&"text"===r.type?r.value="["+r.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=l:o.push({type:"text",value:l}),o}function ke(e){const n=e.spread;return null==n?e.children.length>1:n}function Ce(e){const n=String(e),t=/\r?\n|\r/g;let l=t.exec(n),o=0;const r=[];for(;l;)r.push(Se(n.slice(o,l.index),o>0,!0),l[0]),o=l.index+l[0].length,l=t.exec(n);return r.push(Se(n.slice(o),o>0,!1)),r.join("")}function Se(e,n,t){let l=0,o=e.length;if(n){let n=e.codePointAt(l);for(;9===n||32===n;)l++,n=e.codePointAt(l)}if(t){let n=e.codePointAt(o-1);for(;9===n||32===n;)o--,n=e.codePointAt(o-1)}return o>l?e.slice(l,o):""}const De={blockquote:function(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)},break:function(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:"\n"}]},code:function(e,n){const t=n.value?n.value+"\n":"",l={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(l.className=["language-"+o[0]]);let r={type:"element",tagName:"code",properties:l,children:[{type:"text",value:t}]};return n.meta&&(r.data={meta:n.meta}),e.patch(n,r),r=e.applyData(n,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(n,r),r},delete:function(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},emphasis:function(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},footnoteReference:function(e,n){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",l=String(n.identifier).toUpperCase(),o=we(l.toLowerCase()),r=e.footnoteOrder.indexOf(l);let a,i=e.footnoteCounts.get(l);void 0===i?(i=0,e.footnoteOrder.push(l),a=e.footnoteOrder.length):a=r+1,i+=1,e.footnoteCounts.set(l,i);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+o,id:t+"fnref-"+o+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)},heading:function(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},html:function(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}},imageReference:function(e,n){const t=String(n.identifier).toUpperCase(),l=e.definitionById.get(t);if(!l)return xe(e,n);const o={src:we(l.url||""),alt:n.alt};null!==l.title&&void 0!==l.title&&(o.title=l.title);const r={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,r),e.applyData(n,r)},image:function(e,n){const t={src:we(n.url)};null!==n.alt&&void 0!==n.alt&&(t.alt=n.alt),null!==n.title&&void 0!==n.title&&(t.title=n.title);const l={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,l),e.applyData(n,l)},inlineCode:function(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const l={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,l),e.applyData(n,l)},linkReference:function(e,n){const t=String(n.identifier).toUpperCase(),l=e.definitionById.get(t);if(!l)return xe(e,n);const o={href:we(l.url||"")};null!==l.title&&void 0!==l.title&&(o.title=l.title);const r={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)},link:function(e,n){const t={href:we(n.url)};null!==n.title&&void 0!==n.title&&(t.title=n.title);const l={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)},listItem:function(e,n,t){const l=e.all(n),o=t?function(e){let n=!1;if("list"===e.type){n=e.spread||!1;const t=e.children;let l=-1;for(;!n&&++l<t.length;)n=ke(t[l])}return n}(t):ke(n),r={},a=[];if("boolean"==typeof n.checked){const e=l[0];let t;e&&"element"===e.type&&"p"===e.tagName?t=e:(t={type:"element",tagName:"p",properties:{},children:[]},l.unshift(t)),t.children.length>0&&t.children.unshift({type:"text",value:" "}),t.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let i=-1;for(;++i<l.length;){const e=l[i];(o||0!==i||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const u=l[l.length-1];u&&(o||"element"!==u.type||"p"!==u.tagName)&&a.push({type:"text",value:"\n"});const s={type:"element",tagName:"li",properties:r,children:a};return e.patch(n,s),e.applyData(n,s)},list:function(e,n){const t={},l=e.all(n);let o=-1;for("number"==typeof n.start&&1!==n.start&&(t.start=n.start);++o<l.length;){const e=l[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const r={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(l,!0)};return e.patch(n,r),e.applyData(n,r)},paragraph:function(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},root:function(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)},strong:function(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},table:function(e,n){const t=e.all(n),l=t.shift(),o=[];if(l){const t={type:"element",tagName:"thead",properties:{},children:e.wrap([l],!0)};e.patch(n.children[0],t),o.push(t)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},r=ye(n.children[1]),a=me(n.children[n.children.length-1]);r&&a&&(l.position={start:r,end:a}),o.push(l)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,r),e.applyData(n,r)},tableCell:function(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)},tableRow:function(e,n,t){const l=t?t.children:void 0,o=0===(l?l.indexOf(n):1)?"th":"td",r=t&&"table"===t.type?t.align:void 0,a=r?r.length:n.children.length;let i=-1;const u=[];for(;++i<a;){const t=n.children[i],l={},a=r?r[i]:void 0;a&&(l.align=a);let s={type:"element",tagName:o,properties:l,children:[]};t&&(s.children=e.all(t),e.patch(t,s),s=e.applyData(t,s)),u.push(s)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,s),e.applyData(n,s)},text:function(e,n){const t={type:"text",value:Ce(String(n.value))};return e.patch(n,t),e.applyData(n,t)},thematicBreak:function(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)},toml:Ae,yaml:Ae,definition:Ae,footnoteDefinition:Ae};function Ae(){}const Ne="object"==typeof self?self:globalThis,Le=e=>((e,n)=>{const t=(n,t)=>(e.set(t,n),n),l=o=>{if(e.has(o))return e.get(o);const[r,a]=n[o];switch(r){case 0:case-1:return t(a,o);case 1:{const e=t([],o);for(const n of a)e.push(l(n));return e}case 2:{const e=t({},o);for(const[n,t]of a)e[l(n)]=l(t);return e}case 3:return t(new Date(a),o);case 4:{const{source:e,flags:n}=a;return t(new RegExp(e,n),o)}case 5:{const e=t(new Map,o);for(const[n,t]of a)e.set(l(n),l(t));return e}case 6:{const e=t(new Set,o);for(const n of a)e.add(l(n));return e}case 7:{const{name:e,message:n}=a;return t(new Ne[e](n),o)}case 8:return t(BigInt(a),o);case"BigInt":return t(Object(BigInt(a)),o);case"ArrayBuffer":return t(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return t(new DataView(e),a)}}return t(new Ne[r](a),o)};return l})(new Map,e)(0),Oe="",{toString:Pe}={},{keys:Me}=Object,Re=e=>{const n=typeof e;if("object"!==n||!e)return[0,n];const t=Pe.call(e).slice(8,-1);switch(t){case"Array":return[1,Oe];case"Object":return[2,Oe];case"Date":return[3,Oe];case"RegExp":return[4,Oe];case"Map":return[5,Oe];case"Set":return[6,Oe];case"DataView":return[1,t]}return t.includes("Array")?[1,t]:t.includes("Error")?[7,t]:[2,t]},Te=([e,n])=>0===e&&("function"===n||"symbol"===n),Ee=(e,{json:n,lossy:t}={})=>{const l=[];return((e,n,t,l)=>{const o=(e,n)=>{const o=l.push(e)-1;return t.set(n,o),o},r=l=>{if(t.has(l))return t.get(l);let[a,i]=Re(l);switch(a){case 0:{let n=l;switch(i){case"bigint":a=8,n=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+i);n=null;break;case"undefined":return o([-1],l)}return o([a,n],l)}case 1:{if(i){let e=l;return"DataView"===i?e=new Uint8Array(l.buffer):"ArrayBuffer"===i&&(e=new Uint8Array(l)),o([i,[...e]],l)}const e=[],n=o([a,e],l);for(const n of l)e.push(r(n));return n}case 2:{if(i)switch(i){case"BigInt":return o([i,l.toString()],l);case"Boolean":case"Number":case"String":return o([i,l.valueOf()],l)}if(n&&"toJSON"in l)return r(l.toJSON());const t=[],u=o([a,t],l);for(const n of Me(l))!e&&Te(Re(l[n]))||t.push([r(n),r(l[n])]);return u}case 3:return o([a,l.toISOString()],l);case 4:{const{source:e,flags:n}=l;return o([a,{source:e,flags:n}],l)}case 5:{const n=[],t=o([a,n],l);for(const[t,o]of l)(e||!Te(Re(t))&&!Te(Re(o)))&&n.push([r(t),r(o)]);return t}case 6:{const n=[],t=o([a,n],l);for(const t of l)!e&&Te(Re(t))||n.push(r(t));return t}}const{message:u}=l;return o([a,{name:i,message:u}],l)};return r})(!(n||t),!!n,new Map,l)(e),l};var Ie="function"==typeof structuredClone?(e,n)=>n&&("json"in n||"lossy"in n)?Le(Ee(e,n)):structuredClone(e):(e,n)=>Le(Ee(e,n));function Be(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Ue(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}const je={}.hasOwnProperty,ze={};function Fe(e,n){e.position&&(n.position=be(e))}function _e(e,n){let t=n;if(e&&e.data){const n=e.data.hName,l=e.data.hChildren,o=e.data.hProperties;if("string"==typeof n)if("element"===t.type)t.tagName=n;else{t={type:"element",tagName:n,properties:{},children:"children"in t?t.children:[t]}}"element"===t.type&&o&&Object.assign(t.properties,Ie(o)),"children"in t&&t.children&&null!=l&&(t.children=l)}return t}function He(e,n){const t=n.data||{},l=!("value"in n)||je.call(t,"hProperties")||je.call(t,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(n)}:{type:"text",value:n.value};return e.patch(n,l),e.applyData(n,l)}function Ve(e,n){const t=[];let l=-1;for(n&&t.push({type:"text",value:"\n"});++l<e.length;)l&&t.push({type:"text",value:"\n"}),t.push(e[l]);return n&&e.length>0&&t.push({type:"text",value:"\n"}),t}function qe(e){let n=0,t=e.charCodeAt(n);for(;9===t||32===t;)n++,t=e.charCodeAt(n);return e.slice(n)}function Ke(e,n){const l=function(e,n){const l=n||ze,o=new Map,r=new Map,a=new Map,i={...De,...l.handlers},u={all:function(e){const n=[];if("children"in e){const t=e.children;let l=-1;for(;++l<t.length;){const o=u.one(t[l],e);if(o){if(l&&"break"===t[l-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=qe(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=qe(e.value))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n},applyData:_e,definitionById:o,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,n){const t=e.type,l=u.handlers[t];if(je.call(u.handlers,t)&&l)return l(u,e,n);if(u.options.passThrough&&u.options.passThrough.includes(t)){if("children"in e){const{children:n,...t}=e,l=Ie(t);return l.children=u.all(e),l}return Ie(e)}return(u.options.unknownHandler||He)(u,e,n)},options:l,patch:Fe,wrap:Ve};return t(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const n="definition"===e.type?o:r,t=String(e.identifier).toUpperCase();n.has(t)||n.set(t,e)}}),u}(e,n),o=l.one(e,void 0),r=function(e){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Be,l=e.options.footnoteBackLabel||Ue,o=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},i=[];let u=-1;for(;++u<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[u]);if(!o)continue;const r=e.all(o),a=String(o.identifier).toUpperCase(),s=we(a.toLowerCase());let c=0;const p=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){p.length>0&&p.push({type:"text",value:" "});let e="string"==typeof t?t:t(u,c);"string"==typeof e&&(e={type:"text",value:e}),p.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof l?l:l(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=r[r.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...p)}else r.push(...p);const h={type:"element",tagName:"li",properties:{id:n+"fn-"+s},children:e.wrap(r,!0)};e.patch(o,h),i.push(h)}if(0!==i.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...Ie(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(i,!0)},{type:"text",value:"\n"}]}}(l),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return r&&a.children.push({type:"text",value:"\n"},r),a}function We(e,n){return e&&"run"in e?async function(t,l){const o=Ke(t,{file:l,...n});await e.run(o,l)}:function(t,l){return Ke(t,{file:l,...e||n})}}const Xe=/[#.]/g;function $e(e,n,t){const l=t?function(e){const n=new Map;for(const t of e)n.set(t.toLowerCase(),t);return n}(t):void 0;return function(t,o,...r){let a;if(null==t){a={type:"root",children:[]};const e=o;r.unshift(e)}else{a=function(e,n){const t=e||"",l={};let o,r,a=0;for(;a<t.length;){Xe.lastIndex=a;const e=Xe.exec(t),n=t.slice(a,e?e.index:t.length);n&&(o?"#"===o?l.id=n:Array.isArray(l.className)?l.className.push(n):l.className=[n]:r=n,a+=n.length),e&&(o=e[0],a++)}return{type:"element",tagName:r||n||"div",properties:l,children:[]}}(t,n);const i=a.tagName.toLowerCase(),u=l?l.get(i):void 0;if(a.tagName=u||i,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const n=e,t=Object.keys(e);for(const e of t){const t=n[e];if(t&&"object"==typeof t){if(!Array.isArray(t))return!0;const e=t;for(const n of e)if("number"!=typeof n&&"string"!=typeof n)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(o))r.unshift(o);else for(const[n,t]of Object.entries(o))Ye(e,a.properties,n,t)}for(const e of r)Ge(a.children,e);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Ye(e,n,t,l){const o=Z(e,t);let r;if(null!=l){if("number"==typeof l){if(Number.isNaN(l))return;r=l}else r="boolean"==typeof l?l:"string"==typeof l?o.spaceSeparated?te(l):o.commaSeparated?i(l):o.commaOrSpaceSeparated?te(i(l).join(" ")):Ze(o,o.property,l):Array.isArray(l)?[...l]:"style"===o.property?function(e){const n=[];for(const[t,l]of Object.entries(e))n.push([t,l].join(": "));return n.join("; ")}(l):String(l);if(Array.isArray(r)){const e=[];for(const n of r)e.push(Ze(o,o.property,n));r=e}"className"===o.property&&Array.isArray(n.className)&&(r=n.className.concat(r)),n[o.property]=r}}function Ge(e,n){if(null==n);else if("number"==typeof n||"string"==typeof n)e.push({type:"text",value:String(n)});else if(Array.isArray(n))for(const t of n)Ge(e,t);else{if("object"!=typeof n||!("type"in n))throw new Error("Expected node, nodes, or string, got `"+n+"`");"root"===n.type?Ge(e,n.children):e.push(n)}}function Ze(e,n,t){if("string"==typeof t){if(e.number&&t&&!Number.isNaN(Number(t)))return Number(t);if((e.boolean||e.overloadedBoolean)&&(""===t||C(t)===C(n)))return!0}return t}const Je=$e(ee,"div"),Qe=$e(ne,"g",["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"]),en={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nn(e,n){const t=function(e,n){switch(e.nodeType){case 1:return function(e,n){const t=e.namespaceURI,l=t===en.svg?Qe:Je,o=t===en.html?e.tagName.toLowerCase():e.tagName,r=t===en.html&&"template"===o?e.content:e,a=e.getAttributeNames(),i={};let u=-1;for(;++u<a.length;)i[a[u]]=e.getAttribute(a[u])||"";return l(o,i,ln(r,n))}(e,n);case 3:return function(e){return{type:"text",value:e.nodeValue||""}}(e);case 8:return function(e){return{type:"comment",value:e.nodeValue||""}}(e);case 9:return tn(e,n);case 10:return{type:"doctype"};case 11:return tn(e,n);default:return}}(e,n);return t&&n.afterTransform&&n.afterTransform(e,t),t}function tn(e,n){return{type:"root",children:ln(e,n)}}function ln(e,n){const t=e.childNodes,l=[];let o=-1;for(;++o<t.length;){const e=nn(t[o],n);void 0!==e&&l.push(e)}return l}function on(e,n){const t=function(e){const n=document.createElement("template");return n.innerHTML=e,n.content}(e);return nn(t,{})||{type:"root",children:[]}}new DOMParser;const rn=function(e,n,t){const o=l(t);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if("number"==typeof n){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if((n=e.children.indexOf(n))<0)throw new Error("Expected child node or index");for(;++n<e.children.length;)if(o(e.children[n],n,e))return e.children[n]},an=function(e){if(null==e)return sn;if("string"==typeof e)return function(e){return un(n);function n(n){return n.tagName===e}}(e);if("object"==typeof e)return function(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=an(e[t]);return un(l);function l(...e){let t=-1;for(;++t<n.length;)if(n[t].apply(this,e))return!0;return!1}}(e);if("function"==typeof e)return un(e);throw new Error("Expected function, string, or array as `test`")};function un(e){return function(n,t,l){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}(n)&&e.call(this,n,"number"==typeof t?t:void 0,l||void 0))}}function sn(e){return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}const cn=/\n/g,pn=/[\t ]+/g,fn=an("br"),dn=an(function(e){return"td"===e.tagName||"th"===e.tagName}),hn=an("p"),gn=an("tr"),mn=an(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return Boolean((e.properties||{}).hidden)},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),yn=an(["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 vn(e,n,t){return"element"===e.type?function(e,n,t){const l=xn(e,t),o=e.children||[];let r,a,i=-1,u=[];if(mn(e))return u;fn(e)||gn(e)&&rn(n,e,gn)?a="\n":hn(e)?(r=2,a=2):yn(e)&&(r=1,a=1);for(;++i<o.length;)u=u.concat(vn(o[i],e,{whitespace:l,breakBefore:i?void 0:r,breakAfter:i<o.length-1?fn(o[i+1]):a}));dn(e)&&rn(n,e,dn)&&u.push("\t");r&&u.unshift(r);a&&u.push(a);return u}(e,n,t):"text"===e.type?"normal"===t.whitespace?bn(e,t):function(e){return[String(e.value)]}(e):[]}function bn(e,n){const t=String(e.value),l=[],o=[];let r=0;for(;r<=t.length;){cn.lastIndex=r;const e=cn.exec(t),o=e&&"index"in e?e.index:t.length;l.push(wn(t.slice(r,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==r||n.breakBefore,o!==t.length||n.breakAfter)),r=o+1}let a,i=-1;for(;++i<l.length;)8203===l[i].charCodeAt(l[i].length-1)||i<l.length-1&&8203===l[i+1].charCodeAt(0)?(o.push(l[i]),a=void 0):l[i]?("number"==typeof a&&o.push(a),o.push(l[i]),a=0):0!==i&&i!==l.length-1||o.push(0);return o}function wn(e,n,t){const l=[];let o,r=0;for(;r<e.length;){pn.lastIndex=r;const t=pn.exec(e);o=t?t.index:e.length,r||o||!t||n||l.push(""),r!==o&&l.push(e.slice(r,o)),r=t?o+t[0].length:o}return r===o||t||l.push(""),l.join(" ")}function xn(e,n){if("element"===e.type){const t=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return t.wrap?"pre-wrap":"pre";case"td":case"th":return t.noWrap?"nowrap":n.whitespace;case"textarea":return"pre-wrap"}}return n.whitespace}const kn={},Cn=[];function Sn(e){const n=e||kn;return function(e,t){o(e,"element",function(e,l){const o=Array.isArray(e.properties.className)?e.properties.className:Cn,i=o.includes("language-math"),u=o.includes("math-display"),s=o.includes("math-inline");let c=u;if(!i&&!u&&!s)return;let p=l[l.length-1],f=e;if("code"===e.tagName&&i&&p&&"element"===p.type&&"pre"===p.tagName&&(f=p,p=l[l.length-2],c=!0),!p)return;const d=function(e,n){const t=n||{},l="children"in e?e.children:[],o=yn(e),r=xn(e,{whitespace:t.whitespace||"normal"}),a=[];"text"!==e.type&&"comment"!==e.type||a.push(...bn(e,{breakBefore:!0,breakAfter:!0}));let i=-1;for(;++i<l.length;)a.push(...vn(l[i],e,{whitespace:r,breakBefore:i?void 0:o,breakAfter:i<l.length-1?fn(l[i+1]):o}));const u=[];let s;for(i=-1;++i<a.length;){const e=a[i];"number"==typeof e?void 0!==s&&e>s&&(s=e):e&&(void 0!==s&&s>-1&&u.push("\n".repeat(s)||" "),s=-1,u.push(e))}return u.join("")}(f,{whitespace:"pre"});let h;try{h=r.renderToString(d,{...n,displayMode:c,throwOnError:!0})}catch(o){const a=o,i=a.name.toLowerCase();t.message("Could not render math with KaTeX",{ancestors:[...l,e],cause:a,place:e.position,ruleId:i,source:"rehype-katex"});try{h=r.renderToString(d,{...n,displayMode:c,strict:"ignore",throwOnError:!1})}catch{h=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(n.errorColor||"#cc0000"),title:String(o)},children:[{type:"text",value:d}]}]}}if("string"==typeof h){h=on(h).children}const g=p.children.indexOf(f);return p.children.splice(g,1,...h),a})}}export{u as a,le as b,X as c,ge as d,en as e,Z as f,Qe as g,ee as h,Je as i,me as j,Ie as k,Sn as l,be as m,y as n,g as o,ye as p,m as q,We as r,ne as s,b as w};
|