PageSourceSearch

https://goaihub.ai/assets/GOAIAgent-CIzRUhBo.js

js goaihub.ai collected 2026-10-05 14:13:15 UTC 153,989 bytes, 120 lines download raw bytes

vendor: 4,504 bytes, line 1
1import{j as m,u as Lr,a as _r,s as Ee,L as Re}from"./index-BHpGygmd.js";import{c as it,d as Qn,r as Y}from"./vendor-BPcwhftq.js";import{H as Dr,F as Or}from"./Footer-BTIzH2fB.js";import{B as ue}from"./Button-BKmxiclL.js";import{M as yt}from"./Modal-CXeOOoW4.js";import"./translation-D2Hol4zu.js";import{c as rn}from"./openai-BpHjZL5B.js";import{a as Mr}from"./router-1j3dhTSx.js";import{Z as Fr,g as Br,c as Hr,i as Ur,a4 as Vr,d as $r,a5 as qr,E as Gr,R as Yr,a6 as ln,F as an,l as Wr,a7 as Kr,T as Xr,S as Qr}from"./ui-C8wOV-Zf.js";import"./supabase-B1wZkHUT.js";function Jr(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Zr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ei=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ti={};function on(e,t){return(ti.jsx?ei:Zr).test(e)}const ni=/[ \t\n\f\r]/g;function ri(e){return typeof e=="object"?e.type==="text"?sn(e.value):!1:sn(e)}function sn(e){return e.replace(ni,"")===""}class Ye{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ye.prototype.normal={};Ye.prototype.property={};Ye.prototype.space=void 0;function Jn(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ye(n,r,t)}function Rt(e){return e.toLowerCase()}class he{constructor(t,n){this.attribute=n,this.property=t}}he.prototype.attribute="";he.prototype.booleanish=!1;he.prototype.boolean=!1;he.prototype.commaOrSpaceSeparated=!1;he.prototype.commaSeparated=!1;he.prototype.defined=!1;he.prototype.mustUseProperty=!1;he.prototype.number=!1;he.prototype.overloadedBoolean=!1;he.prototype.property="";he.prototype.spaceSeparated=!1;he.prototype.space=void 0;let ii=0;const z=ze(),te=ze(),Pt=ze(),w=ze(),V=ze(),_e=ze(),me=ze();function ze(){return 2**++ii}const zt=Object.freeze(Object.defineProperty({__proto__:null,boolean:z,booleanish:te,commaOrSpaceSeparated:me,commaSeparated:_e,number:w,overloadedBoolean:Pt,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),bt=Object.keys(zt);class Ut extends he{constructor(t,n,r,i){let l=-1;if(super(t,n),un(this,"space",i),typeof r=="number")for(;++l<bt.length;){const a=bt[l];un(this,bt[l],(r&zt[a])===zt[a])}}}Ut.prototype.defined=!0;function un(e,t,n){n&&(e[t]=n)}function Oe(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new Ut(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[Rt(r)]=r,n[Rt(l.attribute)]=r}return new Ye(t,n,e.space)}const Zn=Oe({properties:{ariaActiveDescendant:null,ariaAtomic:te,ariaAutoComplete:null,ariaBusy:te,ariaChecked:te,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:te,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:te,ariaFlowTo:V,ariaGrabbed:te,ariaHasPopup:null,ariaHidden:te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:w,ariaLive:null,ariaModal:te,ariaMultiLine:te,ariaMultiSelectable:te,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:te,ariaReadOnly:te,ariaRelevant:null,ariaRequired:te,ariaRoleDescription:V,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:te,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function er(e,t){return t in e?e[t]:t}function tr(e,t){return er(e,t.toLowerCase())}const li=Oe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_e,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:V,autoFocus:z,autoPlay:z,blocking:V,capture:null,charSet:null,checked:z,cite:null,className:V,cols:w,colSpan:null,content:null,contentEditable:te,controls:z,controlsList:V,coords:w|_e,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:Pt,draggable:te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:V,height:w,hidden:Pt,high:w,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:z,
1inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:V,itemRef:V,itemScope:z,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,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:z,optimum:w,pattern:null,ping:V,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:V,required:z,reversed:z,rows:w,rowSpan:w,sandbox:V,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:te,src:null,
1srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:te,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:te,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:z,disableRemotePlayback:z,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:tr}),ai=Oe({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
1-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:me,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:V,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:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,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:_e,g2:_e,glyphName:_e,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,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:w,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,on
vendor: 5,208 bytes, lines 1-2
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:me,rev:me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:me,requiredFeatures:me,requiredFonts:me,requiredFormats:me,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:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:me,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:er}),nr=Oe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),rr=Oe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tr}),ir=Oe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),oi={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"},si=/[A-Z]/g,cn=/-[a-z]/g,ui=/^data[-\w.:]+$/i;function ci(e,t){const n=Rt(t);let r=t,i=he;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ui.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(cn,hi);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!cn.test(l)){let a=l.replace(si,pi);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Ut}return new i(r,t)}function pi(e){return"-"+e.toLowerCase()}function hi(e){return e.charAt(1).toUpperCase()}const fi=Jn([Zn,li,nr,rr,ir],"html"),Vt=Jn([Zn,ai,nr,rr,ir],"svg");function di(e){return e.join(" ").trim()}var $t={},pn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mi=/\n/g,gi=/^\s*/,xi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yi=/^:\s*/,bi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ki=/^[;\s]*/,wi=/^\s+|\s+$/g,Si=`
2`,hn="/",fn="*",Pe="",Ii="comment",Ci="declaration",Ei=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var S=b.match(mi);S&&(n+=S.length);var T=b.lastIndexOf(Si);r=~T?b.length-T:r+b.length}function l(){var b={line:n,column:r};return function(S){return S.position=new a(b),c(),S}}function a(b){this.start=b,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function o(b){var S=new Error(t.source+":"+n+":"+r+": "+b);if(S.reason=b,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function s(b){var S=b.exec(e);if(S){var T=S[0];return i(T),e=e.slice(T.length),S}}function c(){s(gi)}function u(b){var S;for(b=b||[];S=h();)S!==!1&&b.push(S);return b}function h(){var b=l();if(!(hn!=e.charAt(0)||fn!=e.charAt(1))){for(var S=2;Pe!=e.charAt(S)&&(fn!=e.charAt(S)||hn!=e.charAt(S+1));)++S;if(S+=2,Pe===e.charAt(S-1))return o("End of comment missing");var T=e.slice(2,S-2);return r+=2,i(T),e=e.slice(S),r+=2,b({type:Ii,comment:T})}}function g(){var b=l(),S=s(xi);if(S){if(h(),!s(yi))return o("property missing ':'");var T=s(bi),I=b({type:Ci,property:dn(S[0].replace(pn,Pe)),value:T?dn(T[0].replace(pn,Pe)):Pe});return s(ki),I}}function p(){var b=[];u(b);for(var S;S=g();)S!==!1&&(b.push(S),u(b));return b}return c(),p()};function dn(e){return e?e.replace(wi,Pe):Pe}
vendor: 3,669 bytes, line 2
2var Ai=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($t,"__esModule",{value:!0});$t.default=Ni;var vi=Ai(Ei);function Ni(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,vi.default)(e),i=typeof t=="function";return r.forEach(function(l){if(l.type==="declaration"){var a=l.property,o=l.value;i?t(a,o,l):o&&(n=n||{},n[a]=o)}}),n}var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.camelCase=void 0;var Ti=/^--[a-zA-Z0-9_-]+$/,ji=/-([a-z])/g,Ri=/^[^-]+$/,Pi=/^-(webkit|moz|ms|o|khtml)-/,zi=/^-(ms)-/,Li=function(e){return!e||Ri.test(e)||Ti.test(e)},_i=function(e,t){return t.toUpperCase()},mn=function(e,t){return"".concat(t,"-")},Di=function(e,t){return t===void 0&&(t={}),Li(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(zi,mn):e=e.replace(Pi,mn),e.replace(ji,_i))};ot.camelCase=Di;var Oi=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Mi=Oi($t),Fi=ot;function Lt(e,t){var n={};return!e||typeof e!="string"||(0,Mi.default)(e,function(r,i){r&&i&&(n[(0,Fi.camelCase)(r,t)]=i)}),n}Lt.default=Lt;var Bi=Lt;const Hi=Qn(Bi),lr=ar("end"),qt=ar("start");function ar(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ui(e){const t=qt(e),n=lr(e);if(t&&n)return{start:t,end:n}}function Ve(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gn(e.position):"start"in e||"end"in e?gn(e):"line"in e||"column"in e?_t(e):""}function _t(e){return xn(e&&e.line)+":"+xn(e&&e.column)}function gn(e){return _t(e&&e.start)+"-"+_t(e&&e.end)}function xn(e){return e&&typeof e=="number"?e:1}class le extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},a=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(a=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=Ve(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}le.prototype.file="";le.prototype.name="";le.prototype.reason="";le.prototype.message="";le.prototype.stack="";le.prototype.column=void 0;le.prototype.line=void 0;le.prototype.ancestors=void 0;le.prototype.cause=void 0;le.prototype.fatal=void 0;le.prototype.place=void 0;le.prototype.ruleId=void 0;le.prototype.source=void 0;const Gt={}.hasOwnProperty,Vi=new Map,$i=/[A-Z]/g,qi=new Set(["table","tbody","thead","tfoot","tr"]),Gi=new Set(["td","th"]),or="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Yi(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=tl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 2
2if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=el(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Vt:fi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=sr(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function sr(e,t,n){if(t.type==="element")return Wi(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ki(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Qi(e,t,n);if(t.type==="mdxjsEsm")return Xi(e,t);if(t.type==="root")return Ji(e,t,n);if(t.type==="text")return Zi(e,t)}function Wi(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Vt,e.schema=i),e.ancestors.push(t);const l=cr(e,t.tagName,!1),a=nl(e,t);let o=Wt(e,t);return qi.has(t.tagName)&&(o=o.filter(function(s){return typeof s=="string"?!ri(s):!0})),ur(e,a,l,t),Yt(a,o),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}function Ki(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ge(e,t.position)}function Xi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ge(e,t.position)}function Qi(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Vt,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:cr(e,t.name,!0),a=rl(e,t),o=Wt(e,t);return ur(e,a,l,t),Yt(a,o),e.ancestors.pop(),e.schema=r,e.create(t,l,a,n)}function Ji(e,t,n){const r={};return Yt(r,Wt(e,t)),e.create(t,e.Fragment,r,n)}function Zi(e,t){return t.value}function ur(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Yt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t,n){return r;function r(i,l,a,o){const c=Array.isArray(a.children)?n:t;return o?c(l,a,o):c(l,a)}}function tl(e,t){return n;function n(r,i,l,a){const o=Array.isArray(l.children),s=qt(r);return t(i,l,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function nl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Gt.call(t.properties,i)){const l=il(e,i,t.properties[i]);if(l){const[a,o]=l;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&Gi.has(t.tagName)?r=o:n[a]=o}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function rl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const a=l.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ge(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else Ge(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function Wt(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Vi;for(;++r<t.children.length;){const l=t.children[r];let a;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const c=i.get(s)||0;a=s+"-"+c,i.set(s,c+1)}}const o=sr(e,l,a);o!==void 0&&n.push(o)}return n}function il(e,t,n){const r=ci(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Jr(n):di(n)),r.property==="style"){let i=typeof n=="object"?n:ll(e,String(n));return e.stylePropertyNameCase==="css"&&(i=al(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?oi[r.property]||r.property:r.attribute,n]}}function ll(e,t){try{return Hi(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new le("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=or+"#cannot-parse-style-attribute",i}}function cr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,a;for(;++l<i.length;){const o=on(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}r=a}else r=on(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Gt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ge(e)}function Ge(e,t){const n=new le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=or+"#cannot-handle-mdx-estrees-without-createevaluater",n}function al(e){const t={};let n;for(n in e)Gt.call(e,n)&&(t[ol(n)]=e[n]);return t}function ol(e){let t=e.replace($i,sl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function sl(e){return"-"+e.toLowerCase()}const kt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},ul={};function cl(e,t){const n=ul,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return pr(e,r,i)}function pr(e,t,n){if(pl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yn(e.children,t,n)}return Array.isArray(e)?yn(e,t,n):""}function yn(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=pr(e[i],t,n);return r.join("")}function pl(e){return!!(e&&typeof e=="object")}const bn=document.createElement("i");function Kt(e){const t="&"+e+";";bn.innerHTML=t;const n=bn.textContent;
vendor: 11,972 bytes, line 2
2return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Se(e,t,n,r){const i=e.length;let l=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);l<r.length;)a=r.slice(l,l+1e4),a.unshift(t,0),e.splice(...a),l+=1e4,t+=1e4}function xe(e,t){return e.length>0?(Se(e,e.length,0,t),e):t}const kn={}.hasOwnProperty;function hl(e){const t={};let n=-1;for(;++n<e.length;)fl(t,e[n]);return t}function fl(e,t){let n;for(n in t){const i=(kn.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let a;if(l)for(a in l){kn.call(i,a)||(i[a]=[]);const o=l[a];dl(i[a],Array.isArray(o)?o:o?[o]:[])}}}function dl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Se(e,0,0,r)}function hr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function De(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const we=je(/[A-Za-z]/),ge=je(/[\dA-Za-z]/),ml=je(/[#-'*+\--9=?A-Z^-~]/);function Dt(e){return e!==null&&(e<32||e===127)}const Ot=je(/\d/),gl=je(/[\dA-Fa-f]/),xl=je(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function pe(e){return e!==null&&(e<0||e===32)}function F(e){return e===-2||e===-1||e===32}const yl=je(new RegExp("\\p{P}|\\p{S}","u")),bl=je(/\s/);function je(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Me(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let a="";if(l===37&&ge(e.charCodeAt(n+1))&&ge(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(n+1);l<56320&&o>56319&&o<57344?(a=String.fromCharCode(l,o),i=1):a="�"}else a=String.fromCharCode(l);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function $(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(s){return F(s)?(e.enter(n),o(s)):t(s)}function o(s){return F(s)&&l++<i?(e.consume(s),o):(e.exit(n),t(s))}}const kl={tokenize:wl};function wl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),$(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return j(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}const Sl={tokenize:Il},wn={tokenize:Cl};function Il(e){const t=this,n=[];let r=0,i,l,a;return o;function o(v){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,s,c)(v)}return c(v)}function s(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&P();const D=t.events.length;let q=D,k;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){k=t.events[q][1].end;break}I(r);let M=D;for(;M<t.events.length;)t.events[M][1].end={...k},M++;return Se(t.events,q+1,0,t.events.slice(D)),t.events.length=M,c(v)}return o(v)}function c(v){if(r===n.length){if(!i)return g(v);if(i.currentConstruct&&i.currentConstruct.concrete)return b(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(wn,u,h)(v)}function u(v){return i&&P(),I(r),g(v)}function h(v){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,b(v)}function g(v){return t.containerState={},e.attempt(wn,p,b)(v)}function p(v){return r++,n.push([t.currentConstruct,t.containerState]),g(v)}function b(v){if(v===null){i&&P(),I(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(v)}function S(v){if(v===null){T(e.exit("chunkFlow"),!0),I(0),e.consume(v);return}return j(v)?(e.consume(v),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(v),S)}function T(v,D){const q=t.sliceStream(v);if(D&&q.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(q),t.parser.lazy[v.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<a&&(!i.events[k][1].end||i.events[k][1].end.offset>a))return;const M=t.events.length;let X=M,O,H;for(;X--;)if(t.events[X][0]==="exit"&&t.events[X][1].type==="chunkFlow"){if(O){H=t.events[X][1].end;break}O=!0}for(I(r),k=M;k<t.events.length;)t.events[k][1].end={...H},k++;Se(t.events,X+1,0,t.events.slice(M)),t.events.length=k}}function I(v){let D=n.length;for(;D-- >v;){const q=n[D];t.containerState=q[1],q[0].exit.call(t,e)}n.length=v}function P(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Cl(e,t,n){return $(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Sn(e){if(e===null||pe(e)||bl(e))return 1;if(yl(e))return 2}function Xt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const Mt={name:"attention",resolveAll:El,tokenize:Al};function El(e,t){let n=-1,r,i,l,a,o,s,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},g={...e[n][1].start};In(h,-s),In(g,s),a={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=xe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=xe(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",l,t]]),c=xe(c,Xt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=xe(c,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=xe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Se(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Al(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Sn(r);let l;return a;function a(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const c=e.exit("attentionSequence"),u=Sn(s),h=!u||u===2&&i||n.includes(s),g=!i||i===2&&u||n.includes(r);return c._open=!!(l===42?h:h&&(i||!g)),c._close=!!(l===42?g:g&&(u||!h)),t(s)}}function In(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vl={name:"autolink",tokenize:Nl};function Nl(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return we(p)?(e.consume(p),a):p===64?n(p):c(p)}function a(p){return p===43||p===45||p===46||ge(p)?(r=1,o(p)):c(p)}function o(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||ge(p))&&r++<32?(e.consume(p),o):(r=0,c(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Dt(p)?n(p):(e.consume(p),s)}function c(p){return p===64?(e.consume(p),u):ml(p)?(e.consume(p),c):n(p)}function u(p){return ge(p)?h(p):n(p)}function h(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):g(p)}function g(p){if((p===45||ge(p))&&r++<63){const b=p===45?g:h;return e.consume(p),b}return n(p)}}const st={partial:!0,tokenize:Tl};function Tl(e,t,n){return r;function r(l){return F(l)?$(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||j(l)?t(l):n(l)}}const fr={continuation:{tokenize:Rl},exit:Pl,name:"blockQuote",tokenize:jl};function jl(e,t,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return n(a)}function l(a){return F(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Rl(e,t,n){const r=this;return i;function i(a){return F(a)?$(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(fr,t,n)(a)}}function Pl(e){e.exit("blockQuote")}const dr={name:"characterEscape",tokenize:zl};function zl(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return xl(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const mr={name:"characterReference",tokenize:Ll};function Ll(e,t,n){const r=this;let i=0,l,a;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),s}function s(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=ge,u(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=gl,u):(e.enter("characterReferenceValue"),l=7,a=Ot,u(h))}function u(h){if(h===59&&i){const g=e.exit("characterReferenceValue");return a===ge&&!Kt(r.sliceSerialize(g))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(h)&&i++<l?(e.consume(h),u):n(h)}}const Cn={partial:!0,tokenize:Dl},En={concrete:!0,name:"codeFenced",tokenize:_l};function _l(e,t,n){const r=this,i={partial:!0,tokenize:q};let l=0,a=0,o;return s;function s(k){return c(k)}function c(k){const M=r.events[r.events.length-1];return l=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,o=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(k)}function u(k){return k===o?(a++,e.consume(k),u):a<3?n(k):(e.exit("codeFencedFenceSequence"),F(k)?$(e,h,"whitespace")(k):h(k))}function h(k){return k===null||j(k)?(e.exit("codeFencedFence"),r.interrupt?t(k):e.check(Cn,S,D)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||j(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(k)):F(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$(e,p,"whitespace")(k)):k===96&&k===o?n(k):(e.consume(k),g)}function p(k){return k===null||j(k)?h(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===null||j(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(k)):k===96&&k===o?n(k):(e.consume(k),b)}function S(k){return e.attempt(i,D,T)(k)}function T(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),I}function I(k){return l>0&&F(k)?$(e,P,"linePrefix",l+1)(k):P(k)}function P(k){return k===null||j(k)?e.check(Cn,S,D)(k):(e.enter("co
2deFlowValue"),v(k))}function v(k){return k===null||j(k)?(e.exit("codeFlowValue"),P(k)):(e.consume(k),v)}function D(k){return e.exit("codeFenced"),t(k)}function q(k,M,X){let O=0;return H;function H(_){return k.enter("lineEnding"),k.consume(_),k.exit("lineEnding"),N}function N(_){return k.enter("codeFencedFence"),F(_)?$(k,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):A(_)}function A(_){return _===o?(k.enter("codeFencedFenceSequence"),U(_)):X(_)}function U(_){return _===o?(O++,k.consume(_),U):O>=a?(k.exit("codeFencedFenceSequence"),F(_)?$(k,B,"whitespace")(_):B(_)):X(_)}function B(_){return _===null||j(_)?(k.exit("codeFencedFence"),M(_)):X(_)}}}function Dl(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const wt={name:"codeIndented",tokenize:Ml},Ol={partial:!0,tokenize:Fl};function Ml(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),$(e,l,"linePrefix",5)(c)}function l(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?s(c):j(c)?e.attempt(Ol,a,s)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||j(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function s(c){return e.exit("codeIndented"),t(c)}}function Fl(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):$(e,l,"linePrefix",5)(a)}function l(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):j(a)?i(a):n(a)}}const Bl={name:"codeText",previous:Ul,resolve:Hl,tokenize:Vl};function Hl(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Ul(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Vl(e,t,n){let r=0,i,l;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),s(h))}function s(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),s):h===96?(l=e.enter("codeTextSequence"),i=0,u(h)):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||j(h)?(e.exit("codeTextData"),s(h)):(e.consume(h),c)}function u(h){return h===96?(e.consume(h),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(l.type="codeTextData",c(h))}}class $l{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),He(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);He(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);He(this.left,n.reverse())}}}function He(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function gr(e){const t={};let n=-1,r,i,l,a,o,s,c;const u=new $l(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ql(u,n)),n=t[n],c=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(a=u.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...u.get(i)[1].start},o=u.slice(i,n),o.unshift(r),u.splice(i,n-i+1,o))}}return Se(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function ql(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,s=[],c={};let u,h,g=-1,p=n,b=0,S=0;const T=[S];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&a.defineSki
vendor: 22,746 bytes, line 2
2p(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=n;++g<o.length;)o[g][0]==="exit"&&o[g-1][0]==="enter"&&o[g][1].type===o[g-1][1].type&&o[g][1].start.line!==o[g][1].end.line&&(S=g+1,T.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),g=T.length;g--;){const I=o.slice(T[g],T[g+1]),P=l.pop();s.push([P,P+I.length-1]),e.splice(P,2,I)}for(s.reverse(),g=-1;++g<s.length;)c[b+s[g][0]]=b+s[g][1],b+=s[g][1]-s[g][0]-1;return c}const Gl={resolve:Wl,tokenize:Kl},Yl={partial:!0,tokenize:Xl};function Wl(e){return gr(e),e}function Kl(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?l(o):j(o)?e.check(Yl,a,l)(o):(e.consume(o),i)}function l(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Xl(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),$(e,l,"linePrefix")}function l(a){if(a===null||j(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function xr(e,t,n,r,i,l,a,o,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return h;function h(I){return I===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(I),e.exit(l),g):I===null||I===32||I===41||Dt(I)?n(I):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(I))}function g(I){return I===62?(e.enter(l),e.consume(I),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===62?(e.exit("chunkString"),e.exit(o),g(I)):I===null||I===60||j(I)?n(I):(e.consume(I),I===92?b:p)}function b(I){return I===60||I===62||I===92?(e.consume(I),p):p(I)}function S(I){return!u&&(I===null||I===41||pe(I))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(I)):u<c&&I===40?(e.consume(I),u++,S):I===41?(e.consume(I),u--,S):I===null||I===32||I===40||Dt(I)?n(I):(e.consume(I),I===92?T:S)}function T(I){return I===40||I===41||I===92?(e.consume(I),S):S(I)}}function yr(e,t,n,r,i,l){const a=this;let o=0,s;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),u}function u(p){return o>999||p===null||p===91||p===93&&!s||p===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||j(p)||o++>999?(e.exit("chunkString"),u(p)):(e.consume(p),s||(s=!F(p)),p===92?g:h)}function g(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function br(e,t,n,r,i,l){let a;return o;function o(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),a=g===40?41:g,s):n(g)}function s(g){return g===a?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):(e.enter(l),c(g))}function c(g){return g===a?(e.exit(l),s(a)):g===null?n(g):j(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),$(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(g))}function u(g){return g===a||g===null||j(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?h:u)}function h(g){return g===a||g===92?(e.consume(g),u):u(g)}}function $e(e,t){let n;return r;function r(i){return j(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):F(i)?$(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Ql={name:"definition",tokenize:Zl},Jl={partial:!0,tokenize:ea};function Zl(e,t,n){const r=this;let i;return l;function l(p){return e.enter("definition"),a(p)}function a(p){return yr.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=De(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return pe(p)?$e(e,c)(p):c(p)}function c(p){return xr(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(Jl,h,h)(p)}function h(p){return F(p)?$(e,g,"whitespace")(p):g(p)}function g(p){return p===null||j(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function ea(e,t,n){return r;function r(o){return pe(o)?$e(e,i)(o):n(o)}function i(o){return br(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return F(o)?$(e,a,"whitespace")(o):a(o)}function a(o){return o===null||j(o)?t(o):n(o)}}const ta={name:"hardBreakEscape",tokenize:na};function na(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return j(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const ra={name:"headingAtx",resolve:ia,tokenize:la};function ia(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Se(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function la(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||pe(u)?(e.exit("atxHeadingSequence"),o(u)):n(u)}function o(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||j(u)?(e.exit("atxHeading"),t(u)):F(u)?$(e,o,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),o(u))}function c(u){return u===null||u===35||pe(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),c)}}const aa=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],An=["pre","script","style","textarea"],oa={concrete:!0,name:"htmlFlow",resolveTo:ca,tokenize:pa},sa={partial:!0,tokenize:fa},ua={partial:!0,tokenize:ha};function ca(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function pa(e,t,n){const r=this;let i,l,a,o,s;return c;function c(d){return u(d)}function u(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),h}function h(d){return d===33?(e.consume(d),g):d===47?(e.consume(d),l=!0,S):d===63?(e.consume(d),i=3,r.interrupt?t:f):we(d)?(e.consume(d),a=String.fromCharCode(d),T):n(d)}function g(d){return d===45?(e.consume(d),i=2,p):d===91?(e.consume(d),i=5,o=0,b):we(d)?(e.consume(d),i=4,r.interrupt?t:f):n(d)}function p(d){return d===45?(e.consume(d),r.interrupt?t:f):n(d)}function b(d){const ae="CDATA[";return d===ae.charCodeAt(o++)?(e.consume(d),o===ae.length?r.interrupt?t:A:b):n(d)}function S(d){return we(d)?(e.consume(d),a=String.fromCharCode(d),T):n(d)}function T(d){if(d===null||d===47||d===62||pe(d)){const ae=d===47,Ie=a.toLowerCase();return!ae&&!l&&An.includes(Ie)?(i=1,r.interrupt?t(d):A(d)):aa.includes(a.toLowerCase())?(i=6,ae?(e.consume(d),I):r.interrupt?t(d):A(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(d):l?P(d):v(d))}return d===45||ge(d)?(e.consume(d),a+=String.fromCharCode(d),T):n(d)}function I(d){return d===62?(e.consume(d),r.interrupt?t:A):n(d)}function P(d){return F(d)?(e.consume(d),P):H(d)}function v(d){return d===47?(e.consume(d),H):d===58||d===95||we(d)?(e.consume(d),D):F(d)?(e.consume(d),v):H(d)}function D(d){return d===45||d===46||d===58||d===95||ge(d)?(e.consume(d),D):q(d)}function q(d){return d===61?(e.consume(d),k):F(d)?(e.consume(d),q):v(d)}function k(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),s=d,M):F(d)?(e.consume(d),k):X(d)}function M(d){return d===s?(e.consume(d),s=null,O):d===null||j(d)?n(d):(e.consume(d),M)}function X(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||pe(d)?q(d):(e.consume(d),X)}function O(d){return d===47||d===62||F(d)?v(d):n(d)}function H(d){return d===62?(e.consume(d),N):n(d)}function N(d){return d===null||j(d)?A(d):F(d)?(e.consume(d),N):n(d)}function A(d){return d===45&&i===2?(e.consume(d),Q):d===60&&i===1?(e.consume(d),Z):d===62&&i===4?(e.consume(d),se):d===63&&i===3?(e.consume(d),f):d===93&&i===5?(e.consume(d),fe):j(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(sa,ye,U)(d)):d===null||j(d)?(e.exit("htmlFlowData"),U(d)):(e.consume(d),A)}function U(d){return e.check(ua,B,ye)(d)}function B(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_}function _(d){return d===null||j(d)?U(d):(e.enter("htmlFlowData"),A(d))}function Q(d){return d===45?(e.consume(d),f):A(d)}function Z(d){return d===47?(e.consume(d),a="",ie):A(d)}function ie(d){if(d===62){const ae=a.toLowerCase();return An.includes(ae)?(e.consume(d),se):A(d)}return we(d)&&a.length<8?(e.consume(d),a+=String.fromCharCode(d),ie):A(d)}function fe(d){return d===93?(e.consume(d),f):A(d)}function f(d){return d===62?(e.consume(d),se):d===45&&i===2?(e.consume(d),f):A(d)}function se(d){return d===null||j(d)?(e.exit("htmlFlowData"),ye(d)):(e.consume(d),se)}function ye(d){return e.exit("htmlFlow"),t(d)}}function ha(e,t,n){const r=this;return i;function i(a){return j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):n(a)}function l(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function fa(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(st,t,n)}}const da={name:"htmlText",tokenize:ma};function ma(e,t,n){const r=this;let i,l,a;return o;function o(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),s}function s(f){return f===33?(e.consume(f),c):f===47?(e.consume(f),q):f===63?(e.consume(f),v):we(f)?(e.consume(f),X):n(f)}function c(f){return f===45?(e.consume(f),u):f===91?(e.consume(f),l=0,b):we(f)?(e.consume(f),P):n(f)}function u(f){return f===45?(e.consume(f),p):n(f)}function h(f){return f===null?n(f):f===45?(e.consume(f),g):j(f)?(a=h,Z(f)):(e.consume(f),h)}function g(f){return f===45?(e.consume(f),p):h(f)}function p(f){return f===62?Q(f):f===45?g(f):h(f)}function b(f){const se="CDATA[";return f===se.charCodeAt(l++)?(e.consume(f),l===se.length?S:b):n(f)}function S(f){return f===null?n(f):f===93?(e.consume(f),T):j(f)?(a=S,Z(f)):(e.consume(f),S)}function T(f){return f===93?(e.consume(f),I):S(f)}function I(f){return f===62?Q(f):f===93?(e.consume(f),I):S(f)}function P(f){return f===null||f===62?Q(f):j(f)?(a=P,Z(f)):(e.consume(f),P)}function v(f){return f===null?n(f):f===63?(e.consume(f),D):j(f)?(a=v,Z(f)):(e.consume(f),v)}function D(f){return f===62?Q(f):v(f)}function q(f){return we(f)?(e.consume(f),k):n(f)}function k(f){return f===45||ge(f)?(e.consume(f),k):M(f)}function M(f){return j(f)?(a=M,Z(f)):F(f)?(e.consume(f),M):Q(f)}function X(f){return f===45||ge(f)?(e.consume(f),X):f===47||f===62||pe(f)?O(f):n(f)}function O(f){return f===47?(e.consume(f),Q):f===58||f===95||we(f)?(e.consume(f),H):j(f)?(a=O,Z(f)):F(f)?(e.consume(f),O):Q(f)}function H(f){return f===45||f===46||f===58||f===95||ge(f)?(e.consume(f),H):N(f)}function N(f){return f===61?(e.consume(f),A):j(f)?(a=N,Z(f)):F(f)?(e.consume(f),N):O(f)}function A(f){return f===null||f===60||f===61||f===62||f===96?n(f):f===34||f===39?(e.consume(f),i=f,U):j(f)?(a=A,Z(f)):F(f)?(e.consume(f),A):(e.consume(f),B)}function U(f){return f===i?(e.consume(f),i=void 0,_):f===null?n(f):j(f)?(a=U,Z(f)):(e.consume(f),U)}function B(f){return f===null||f===34||f===39||f===60||f===61||f===96?n(f):f===47||f===62||pe(f)?O(f):(e.consume(f),B)}function _(f){return f===47||f===62||pe(f)?O(f):n(f)}function Q(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),t):n(f)}function Z(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ie}function ie(f){return F(f)?$(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):fe(f)}function fe(f){return e.enter("htmlTextData"),a(f)}}const Qt={name:"labelEnd",resolveAll:ba,resolveTo:ka,tokenize:wa},ga={tokenize:Sa},xa={tokenize:Ia},ya={tokenize:Ca};function ba(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Se(e,0,e.length,n),e}function ka(e,t){let n=e.length,r=0,i,l,a,o;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",s,t],["enter",c,t]],o=xe(o,e.slice(l+1,l+r+3)),o=xe(o,[["enter",u,t]]),o=xe(o,Xt(t.parser.constructs.insideSpan.null,e.slice(l+r+4,a-3),t)),o=xe(o,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),o=xe(o,e.slice(a+1)),o=xe(o,[["exit",s,t]]),Se(e,l,e.length,o),e}function wa(e,t,n){const r=this;let i=r.events.length,l,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return o;function o(g){return l?l._inactive?h(g):(a=r.parser.defined.includes(De(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),s):n(g)}function s(g){return g===40?e.attempt(ga,u,a?u:h)(g):g===91?e.attempt(xa,u,a?c:h)(g):a?u(g):h(g)}function c(g){return e.attempt(ya,u,h)(g)}function u(g){return t(g)}function h(g){return l._balanced=!0,n(g)}}function Sa(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return pe(h)?$e(e,l)(h):l(h)}function l(h){return h===41?u(h):xr(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function a(h){return pe(h)?$e(e,s)(h):u(h)}function o(h){return n(h)}function s(h){return h===34||h===39||h===40?br(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):u(h)}function c(h){return pe(h)?$e(e,u)(h):u(h)}function u(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function Ia(e,t,n){const r=this;return i;function i(o){return yr.call(r,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return r.parser.defined.includes(De(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}function Ca(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const Ea={name:"labelStartImage",resolveAll:Qt.resolveAll,tokenize:Aa};function Aa(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const va={name:"labelStartLink",resolveAll:Qt.resolveAll,tokenize:Na};function Na(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const St={name:"lineEnding",tokenize:Ta};function Ta(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),$(e,t,"linePrefix")}}const nt={name:"thematicBreak",tokenize:ja};function ja(e,t,n){let r=0,i;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||j(c))?(e.exit("thematicBreak"),t(c)):n(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),F(c)?$(e,o,"whitespace")(c):o(c))}}const ce={continuation:{tokenize:La},exit:Da,name:"list",tokenize:za},Ra={partial:!0,tokenize:Oa},Pa={partial:!0,tokenize:_a};function za(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(p){const b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Ot(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(nt,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return Ot(p)&&++a<10?(e.consume(p),s):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(st,r.interrupt?n:u,e.attempt(Ra,g,h))}function u(p){return r.containerState.initialBlankLine=!0,l++,g(p)}function h(p){return F(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),g):n(p)}function g(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function La(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(st,i,l);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,t,"listItemIndent",r.containerState.size+1)(o)}function l(o){return r.containerState.furtherBlankLines||!F(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Pa,t,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(ce,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function _a(e,t,n){const r=this;return $(e,i,"listItemIndent",r.containerState.size+1);function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(l):n(l)}}function Da(e){e.exit(this.containerState.type)}function Oa(e,t,n){const r=this;return $(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const a=r.events[r.events.length-1];return!F(l)&&a&&a[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const vn={name:"setextUnderline",resolveTo:Ma,tokenize:Fa};function Ma(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",a,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function Fa(e,t,n){const r=this;let i;return l;function l(c){let u=r.events.length,h;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){h=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),F(c)?$(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||j(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Ba={tokenize:Ha};function Ha(e){const t=this,n=e.attempt(st,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Gl,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ua={resolveAll:wr()},Va=kr("string"),$a=kr("text");function kr(e){return{resolveAll:wr(e==="text"?qa:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,a,o);return a;function a(u){return c(u)?l(u):o(u)}function o(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),s}function s(u){return c(u)?(n.exit("data"),l(u)):(n.consume(u),s)}function c(u){if(u===null)return!0;const h=i[u];let g=-1;if(h)for(;++g<h.length;){const p=h[g];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function wr(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function qa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,a=-1,o=0,s;for(;l--;){const c=i[l];if(typeof c=="string"){for(a=c.length;
vendor: 5,461 bytes, lines 2-4
2c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)s=!0,o++;else if(c!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const Ga={42:ce,43:ce,45:ce,48:ce,49:ce,50:ce,51:ce,52:ce,53:ce,54:ce,55:ce,56:ce,57:ce,62:fr},Ya={91:Ql},Wa={[-2]:wt,[-1]:wt,32:wt},Ka={35:ra,42:nt,45:[vn,nt],60:oa,61:vn,95:nt,96:En,126:En},Xa={38:mr,92:dr},Qa={[-5]:St,[-4]:St,[-3]:St,33:Ea,38:mr,42:Mt,60:[vl,da],91:va,92:[ta,dr],93:Qt,95:Mt,96:Bl},Ja={null:[Mt,Ua]},Za={null:[42,95]},eo={null:[]},to=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Za,contentInitial:Ya,disable:eo,document:Ga,flow:Ka,flowInitial:Wa,insideSpan:Ja,string:Xa,text:Qa},Symbol.toStringTag,{value:"Module"}));function no(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let a=[],o=[];const s={attempt:M(q),check:M(k),consume:P,enter:v,exit:D,interrupt:M(k,{interrupt:!0})},c={code:null,containerState:{},defineSkip:S,events:[],now:b,parser:e,previous:null,sliceSerialize:g,sliceStream:p,write:h};let u=t.tokenize.call(c,s);return t.resolveAll&&l.push(t),c;function h(N){return a=xe(a,N),T(),a[a.length-1]!==null?[]:(X(t,0),c.events=Xt(l,c.events,c),c.events)}function g(N,A){return io(p(N),A)}function p(N){return ro(a,N)}function b(){const{_bufferIndex:N,_index:A,line:U,column:B,offset:_}=r;return{_bufferIndex:N,_index:A,line:U,column:B,offset:_}}function S(N){i[N.line]=N.column,H()}function T(){let N;for(;r._index<a.length;){const A=a[r._index];if(typeof A=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<A.length;)I(A.charCodeAt(r._bufferIndex));else I(A)}}function I(N){u=u(N)}function P(N){j(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,H()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=N}function v(N,A){const U=A||{};return U.type=N,U.start=b(),c.events.push(["enter",U,c]),o.push(U),U}function D(N){const A=o.pop();return A.end=b(),c.events.push(["exit",A,c]),A}function q(N,A){X(N,A.from)}function k(N,A){A.restore()}function M(N,A){return U;function U(B,_,Q){let Z,ie,fe,f;return Array.isArray(B)?ye(B):"tokenize"in B?ye([B]):se(B);function se(ee){return Ae;function Ae(re){const Ce=re!==null&&ee[re],ve=re!==null&&ee.null,be=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return ye(be)(re)}}function ye(ee){return Z=ee,ie=0,ee.length===0?Q:d(ee[ie])}function d(ee){return Ae;function Ae(re){return f=O(),fe=ee,ee.partial||(c.currentConstruct=ee),ee.name&&c.parser.constructs.disable.null.includes(ee.name)?Ie():ee.tokenize.call(A?Object.assign(Object.create(c),A):c,s,ae,Ie)(re)}}function ae(ee){return N(fe,f),_}function Ie(ee){return f.restore(),++ie<Z.length?d(Z[ie]):Q}}}function X(N,A){N.resolveAll&&!l.includes(N)&&l.push(N),N.resolve&&Se(c.events,A,c.events.length-A,N.resolve(c.events.slice(A),c)),N.resolveTo&&(c.events=N.resolveTo(c.events,c))}function O(){const N=b(),A=c.previous,U=c.currentConstruct,B=c.events.length,_=Array.from(o);return{from:B,restore:Q};function Q(){r=N,c.previous=A,c.currentConstruct=U,c.events.length=B,o=_,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ro(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,l)];else{if(a=e.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}l>0&&a.push(e[i].slice(0,l))}return a}function io(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
3`;break}case-3:{a=`\r
4`;break}case-2:{a=t?" ":"	";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(l)}i=l===-2,r.push(a)}return r.join("")}function lo(e){const r={constructs:hl([to,...(e||{}).extensions||[]]),content:i(kl),defined:[],document:i(Sl),flow:i(Ba),lazy:{},string:i(Va),text:i($a)};return r;function i(l){return a;function a(o){return no(r,l,o)}}}function ao(e){for(;!gr(e););return e}const Nn=/[\0\t\n\r]/g;function oo(){let e=1,t="",n=!0,r;return i;function i(l,a,o){const s=[];let c,u,h,g,p;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),h=0,t="",n&&(l.charCodeAt(0)===65279&&h++,n=void 0);h<l.length;){if(Nn.lastIndex=h,c=Nn.exec(l),g=c&&c.index!==void 0?c.index:l.length,p=l.charCodeAt(g),!c){t=l.slice(h);break}if(p===10&&h===g&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),h<g&&(s.push(l.slice(h,g)),e+=g-h),p){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}h=g+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const so=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uo(e){return e.replace(so,co)}function co(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return hr(n.slice(l?2:1),l?16:10)}return Kt(n)||e}const Sr={}.hasOwnProperty;
vendor: 16,080 bytes, lines 4-8
4function po(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ho(n)(ao(lo(n).document().write(oo()(e,t,!0))))}function ho(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Qe),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(Ke),blockQuote:l(ve),characterEscape:O,characterReference:O,codeFenced:l(be),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(be,a),codeText:l(pt,a),codeTextData:O,data:O,codeFlowValue:O,definition:l(ht),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(Ne),hardBreakEscape:l(Fe),hardBreakTrailing:l(Fe),htmlFlow:l(Be,a),htmlFlowData:O,htmlText:l(Be,a),htmlTextData:O,image:l(Xe),label:a,link:l(Qe),listItem:l(ft),listItemValue:g,listOrdered:l(Je,h),listUnordered:l(Je),paragraph:l(dt),reference:d,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Ke),strong:l(mt),thematicBreak:l(xt)},exit:{atxHeading:s(),atxHeadingSequence:q,autolink:s(),autolinkEmail:Ce,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:Ie,characterReferenceMarkerNumeric:Ie,characterReferenceValue:ee,characterReference:Ae,codeFenced:s(T),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:H,codeIndented:s(I),codeText:s(_),codeTextData:H,data:H,definition:s(),definitionDestinationString:D,definitionLabelString:P,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(A),hardBreakTrailing:s(A),htmlFlow:s(U),htmlFlowData:H,htmlText:s(B),htmlTextData:H,image:s(Z),label:fe,labelText:ie,lineEnding:N,link:s(Q),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:f,resourceTitleString:se,resource:ye,setextHeading:s(X),setextHeadingLineSequence:M,setextHeadingText:k,strong:s(),thematicBreak:s()}};Ir(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(y){let E={type:"root",children:[]};const R={stack:[E],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:u,data:n},x=[];let C=-1;for(;++C<y.length;)if(y[C][1].type==="listOrdered"||y[C][1].type==="listUnordered")if(y[C][0]==="enter")x.push(C);else{const L=x.pop();C=i(y,L,C)}for(C=-1;++C<y.length;){const L=t[y[C][0]];Sr.call(L,y[C][1].type)&&L[y[C][1].type].call(Object.assign({sliceSerialize:y[C][2].sliceSerialize},R),y[C][1])}if(R.tokenStack.length>0){const L=R.tokenStack[R.tokenStack.length-1];(L[1]||Tn).call(R,void 0,L[0])}for(E.position={start:Te(y.length>0?y[0][1].start:{line:1,column:1,offset:0}),end:Te(y.length>0?y[y.length-2][1].end:{line:1,column:1,offset:0})},C=-1;++C<t.transforms.length;)E=t.transforms[C](E)||E;return E}function i(y,E,R){let x=E-1,C=-1,L=!1,J,G,W,oe;for(;++x<=R;){const K=y[x];switch(K[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{K[0]==="enter"?C++:C--,oe=void 0;break}case"lineEndingBlank":{K[0]==="enter"&&(J&&!oe&&!C&&!W&&(W=x),oe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:oe=void 0}if(!C&&K[0]==="enter"&&K[1].type==="listItemPrefix"||C===-1&&K[0]==="exit"&&(K[1].type==="listUnordered"||K[1].type==="listOrdered")){if(J){let ne=x;for(G=void 0;ne--;){const de=y[ne];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;G&&(y[G][1].type="lineEndingBlank",L=!0),de[1].type="lineEnding",G=ne}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}W&&(!G||W<G)&&(J._spread=!0),J.end=Object.assign({},G?y[G][1].start:K[1].end),y.splice(G||x,0,["exit",J,K[2]]),x++,R++}if(K[1].type==="listItemPrefix"){const ne={type:"listItem",_spread:!1,start:Object.assign({},K[1].start),end:void 0};J=ne,y.splice(x,0,["enter",ne,K[2]]),x++,R++,W=void 0,oe=!0}}}return y[E][1]._spread=L,R}function l(y,E){return R;function R(x){o.call(this,y(x),x),E&&E.call(this,x)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(y,E,R){this.stack[this.stack.length-1].children.push(y),this.stack.push(y),this.tokenStack.push([E,R||void 0]),y.position={start:Te(E.start),end:void 0}}function s(y){return E;function E(R){y&&y.call(this,R),c.call(this,R)}}function c(y,E){const R=this.stack.pop(),x=this.tokenStack.pop();if(x)x[0].type!==y.type&&(E?E.call(this,y,x[0]):(x[1]||Tn).call(this,y,x[0]));else throw new Error("Cannot close `"+y.type+"` ("+Ve({start:y.start,end:y.end})+"): it’s not open");R.position.end=Te(y.end)}function u(){return cl(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function g(y){if(this.data.expectingFirstListItemValue){const E=this.stack[this.stack.length-2];E.start=Number.parseInt(this.sliceSerialize(y),10),this.data.expectingFirstListItemValue=void 0}}function p(){const y=this.resume(),E=this.stack[this.stack.length-1];E.lang=y}function b(){const y=this.resume(),E=this.stack[this.stack.length-1];E.meta=y}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const y=this.resume(),E=this.stack[this.stack.length-1];E.value=y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const y=this.resume(),E=this.stack[this.stack.length-1];E.value=y.replace(/(\r?\n|\r)$/g,"")}function P(y){const E=this.resume(),R=this.stack[this.stack.length-1];R.label=E,R.identifier=De(this.sliceSerialize(y)).toLowerCase()}function v(){const y=this.resume(),E=this.stack[this.stack.length-1];E.title=y}function D(){const y=this.resume(),E=this.stack[this.stack.length-1];E.url=y}function q(y){const E=this.stack[this.stack.length-1];if(!E.depth){const R=this.sliceSerialize(y).length;E.depth=R}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function M(y){const E=this.stack[this.stack.length-1];E.depth=this.sliceSerialize(y).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function O(y){const R=this.stack[this.stack.length-1].children;let x=R[R.length-1];(!x||x.type!=="text")&&(x=gt(),x.position={start:Te(y.start),end:void 0},R.push(x)),this.stack.push(x)}function H(y){const E=this.stack.pop();E.value+=this.sliceSerialize(y),E.position.end=Te(y.end)}function N(y){const E=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=E.children[E.children.length-1];R.position.end=Te(y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(E.type)&&(O.call(this,y),H.call(this,y))}function A(){this.data.atHardBreak=!0}function U(){const y=this.resume(),E=this.stack[this.stack.length-1];E.value=y}function B(){const y=this.resume(),E=this.stack[this.stack.length-1];E.value=y}function _(){const y=this.resume(),E=this.stack[this.stack.length-1];E.value=y}function Q(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=E,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function Z(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=E,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function ie(y){const E=this.sliceSerialize(y),R=this.stack[this.stack.length-2];R.label=uo(E),R.identifier=De(E).toLowerCase()}function fe(){const y=this.stack[this.stack.length-1],E=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const x=y.children;R.children=x}else R.alt=E}function f(){const y=this.resume(),E=this.stack[this.stack.length-1];E.url=y}function se(){const y=this.resume(),E=this.stack[this.stack.length-1];E.title=y}function ye(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function ae(y){const E=this.resume(),R=this.stack[this.stack.length-1];R.label=E,R.identifier=De(this.sliceSerialize(y)).toLowerCase(),this.data.referenceType="full"}function Ie(y){this.data.characterReferenceType=y.type}function ee(y){const E=this.sliceSerialize(y),R=this.data.characterReferenceType;let x;R?(x=hr(E,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):x=Kt(E);const C=this.stack[this.stack.length-1];C.value+=x}function Ae(y){const E=this.stack.pop();E.position.end=Te(y.end)}function re(y){H.call(this,y);const E=this.stack[this.stack.length-1];E.url=this.sliceSerialize(y)}function Ce(y){H.call(this,y);const E=this.stack[this.stack.length-1];E.url="mailto:"+this.sliceSerialize(y)}function ve(){return{type:"blockquote",children:[]}}function be(){return{type:"code",lang:null,meta:null,value:""}}function pt(){return{type:"inlineCode",value:""}}function ht(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ne(){return{type:"emphasis",children:[]}}function Ke(){return{type:"heading",depth:0,children:[]}}function Fe(){return{type:"break"}}function Be(){return{type:"html",value:""}}function Xe(){return{type:"image",title:null,url:"",alt:null}}function Qe(){return{type:"link",title:null,url:"",children:[]}}function Je(y){return{type:"list",ordered:y.type==="listOrdered",start:null,spread:y._spread,children:[]}}function ft(y){return{type:"listItem",spread:y._spread,checked:null,children:[]}}function dt(){return{type:"paragraph",children:[]}}function mt(){return{type:"strong",children:[]}}function gt(){return{type:"text",value:""}}function xt(){return{type:"thematicBreak"}}}function Te(e){return{line:e.line,column:e.column,offset:e.offset}}function Ir(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ir(e,r):fo(e,r)}}function fo(e,t){let n;for(n in t)if(Sr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Tn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ve({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ve({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ve({start:t.start,end:t.end})+") is still open")}function mo(e){const t=this;t.parser=n;function n(r){return po(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function go(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xo(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
5`}]}function yo(e,t){const n=t.value?t.value+`
6`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function bo(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ko(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wo(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Me(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=l+1,o+=1,e.footnoteCounts.set(r,o);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)}function So(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Io(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Cr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function Co(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cr(e,t);const i={src:Me(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function Eo(e,t){const n={src:Me(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ao(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function vo(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cr(e,t);const i={href:Me(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function No(e,t){const n={href:Me(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function To(e,t,n){const r=e.all(t),i=n?jo(n):Er(t),l={},a=[];if(typeof t.checked=="boolean"){const u=r[0];let h;u&&u.type==="element"&&u.tagName==="p"?h=u:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const u=r[o];(i||o!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
7`}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&a.push({type:"text",value:`
8`});const c={type:"element",tagName:"li",properties:l,children:a};return e.patch(t,c),e.applyData(t,c)}function jo(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Er(n[r])}return t}function Er(e){const t=e.spread;return t??e.children.length>1}function Ro(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Po(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zo(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Lo(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _o(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=qt(t.children[1]),s=lr(t.children[t.children.length-1]);o&&s&&(a.position={start:o,end:s}),i.push(a)}const l={type:"element",tagName:"table",properties:{}
vendor: 4,642 bytes, line 8
8,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function Do(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let s=-1;const c=[];for(;++s<o;){const h=t.children[s],g={},p=a?a[s]:void 0;p&&(g.align=p);let b={type:"element",tagName:l,properties:g,children:[]};h&&(b.children=e.all(h),e.patch(h,b),b=e.applyData(h,b)),c.push(b)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function Oo(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const jn=9,Rn=32;function Mo(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(Pn(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Pn(t.slice(i),i>0,!1)),l.join("")}function Pn(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===jn||l===Rn;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===jn||l===Rn;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Fo(e,t){const n={type:"text",value:Mo(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Bo(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ho={blockquote:go,break:xo,code:yo,delete:bo,emphasis:ko,footnoteReference:wo,heading:So,html:Io,imageReference:Co,image:Eo,inlineCode:Ao,linkReference:vo,link:No,listItem:To,list:Ro,paragraph:Po,root:zo,strong:Lo,table:_o,tableCell:Oo,tableRow:Do,text:Fo,thematicBreak:Bo,toml:Ze,yaml:Ze,definition:Ze,footnoteDefinition:Ze};function Ze(){}const Ar=-1,ut=0,qe=1,lt=2,Jt=3,Zt=4,en=5,tn=6,vr=7,Nr=8,zn=typeof self=="object"?self:globalThis,Uo=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,a]=t[i];switch(l){case ut:case Ar:return n(a,i);case qe:{const o=n([],i);for(const s of a)o.push(r(s));return o}case lt:{const o=n({},i);for(const[s,c]of a)o[r(s)]=r(c);return o}case Jt:return n(new Date(a),i);case Zt:{const{source:o,flags:s}=a;return n(new RegExp(o,s),i)}case en:{const o=n(new Map,i);for(const[s,c]of a)o.set(r(s),r(c));return o}case tn:{const o=n(new Set,i);for(const s of a)o.add(r(s));return o}case vr:{const{name:o,message:s}=a;return n(new zn[o](s),i)}case Nr:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new zn[l](a),i)};return r},Ln=e=>Uo(new Map,e)(0),Le="",{toString:Vo}={},{keys:$o}=Object,Ue=e=>{const t=typeof e;if(t!=="object"||!e)return[ut,t];const n=Vo.call(e).slice(8,-1);switch(n){case"Array":return[qe,Le];case"Object":return[lt,Le];case"Date":return[Jt,Le];case"RegExp":return[Zt,Le];case"Map":return[en,Le];case"Set":return[tn,Le];case"DataView":return[qe,n]}return n.includes("Array")?[qe,n]:n.includes("Error")?[vr,n]:[lt,n]},et=([e,t])=>e===ut&&(t==="function"||t==="symbol"),qo=(e,t,n,r)=>{const i=(a,o)=>{const s=r.push(a)-1;return n.set(o,s),s},l=a=>{if(n.has(a))return n.get(a);let[o,s]=Ue(a);switch(o){case ut:{let u=a;switch(s){case"bigint":o=Nr,u=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);u=null;break;case"undefined":return i([Ar],a)}return i([o,u],a)}case qe:{if(s){let g=a;return s==="DataView"?g=new Uint8Array(a.buffer):s==="ArrayBuffer"&&(g=new Uint8Array(a)),i([s,[...g]],a)}const u=[],h=i([o,u],a);for(const g of a)u.push(l(g));return h}case lt:{if(s)switch(s){case"BigInt":return i([s,a.toString()],a);case"Boolean":case"Number":case"String":return i([s,a.valueOf()],a)}if(t&&"toJSON"in a)return l(a.toJSON());const u=[],h=i([o,u],a);for(const g of $o(a))(e||!et(Ue(a[g])))&&u.push([l(g),l(a[g])]);return h}case Jt:return i([o,a.toISOString()],a);case Zt:{const{source:u,flags:h}=a;return i([o,{source:u,flags:h}],a)}case en:{const u=[],h=i([o,u],a);for(const[g,p]of a)(e||!(et(Ue(g))||et(Ue(p))))&&u.push([l(g),l(p)]);return h}case tn:{const u=[],h=i([o,u],a);for(const g of a)(e||!et(Ue(g)))&&u.push(l(g));return h}}const{message:c}=a;return i([o,{name:s,message:c}],a)};return l},_n=(e,{json:t,lossy:n}={})=>{const r=[];return qo(!(t||n),!!t,new Map,r)(e),r},at=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ln(_n(e,t)):structuredClone(e):(e,t)=>Ln(_n(e,t));function Go(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Yo(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 13,326 bytes, lines 8-14
8function Wo(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Go,r=e.options.footnoteBackLabel||Yo,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let s=-1;for(;++s<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[s]);if(!c)continue;const u=e.all(c),h=String(c.identifier).toUpperCase(),g=Me(h.toLowerCase());let p=0;const b=[],S=e.footnoteCounts.get(h);for(;S!==void 0&&++p<=S;){b.length>0&&b.push({type:"text",value:" "});let P=typeof n=="string"?n:n(s,p);typeof P=="string"&&(P={type:"text",value:P}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+g+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const T=u[u.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const P=T.children[T.children.length-1];P&&P.type==="text"?P.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...b)}else u.push(...b);const I={type:"element",tagName:"li",properties:{id:t+"fn-"+g},children:e.wrap(u,!0)};e.patch(c,I),o.push(I)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...at(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
10`}]}}const Tr=function(e){if(e==null)return Jo;if(typeof e=="function")return ct(e);if(typeof e=="object")return Array.isArray(e)?Ko(e):Xo(e);if(typeof e=="string")return Qo(e);throw new Error("Expected function, string, or object as test")};function Ko(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Tr(e[n]);return ct(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function Xo(e){const t=e;return ct(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Qo(e){return ct(t);function t(n){return n&&n.type===e}}function ct(e){return t;function t(n,r,i){return!!(Zo(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Jo(){return!0}function Zo(e){return e!==null&&typeof e=="object"&&"type"in e}const jr=[],es=!0,Dn=!1,ts="skip";function ns(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Tr(i),a=r?-1:1;o(e,void 0,[])();function o(s,c,u){const h=s&&typeof s=="object"?s:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return g;function g(){let p=jr,b,S,T;if((!t||l(s,c,u[u.length-1]||void 0))&&(p=rs(n(s,u)),p[0]===Dn))return p;if("children"in s&&s.children){const I=s;if(I.children&&p[0]!==ts)for(S=(r?I.children.length:-1)+a,T=u.concat(I);S>-1&&S<I.children.length;){const P=I.children[S];if(b=o(P,S,T)(),b[0]===Dn)return b;S=typeof b[1]=="number"?b[1]:S+a}}return p}}}function rs(e){return Array.isArray(e)?e:typeof e=="number"?[es,e]:e==null?jr:[e]}function Rr(e,t,n,r){let i,l,a;typeof t=="function"&&typeof n!="function"?(l=void 0,a=t,i=n):(l=t,a=n,i=r),ns(e,l,o,i);function o(s,c){const u=c[c.length-1],h=u?u.children.indexOf(s):void 0;return a(s,h,u)}}const Ft={}.hasOwnProperty,is={};function ls(e,t){const n=t||is,r=new Map,i=new Map,l=new Map,a={...Ho,...n.handlers},o={all:c,applyData:os,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:a,one:s,options:n,patch:as,wrap:us};return Rr(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const h=u.type==="definition"?r:i,g=String(u.identifier).toUpperCase();h.has(g)||h.set(g,u)}}),o;function s(u,h){const g=u.type,p=o.handlers[g];if(Ft.call(o.handlers,g)&&p)return p(o,u,h);if(o.options.passThrough&&o.options.passThrough.includes(g)){if("children"in u){const{children:S,...T}=u,I=at(T);return I.children=o.all(u),I}return at(u)}return(o.options.unknownHandler||ss)(o,u,h)}function c(u){const h=[];if("children"in u){const g=u.children;let p=-1;for(;++p<g.length;){const b=o.one(g[p],u);if(b){if(p&&g[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=On(b.value)),!Array.isArray(b)&&b.type==="element")){const S=b.children[0];S&&S.type==="text"&&(S.value=On(S.value))}Array.isArray(b)?h.push(...b):h.push(b)}}}return h}}function as(e,t){e.position&&(t.position=Ui(e))}function os(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&l&&Object.assign(n.properties,at(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ss(e,t){const n=t.data||{},r="value"in t&&!(Ft.call(n,"hProperties")||Ft.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function us(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
11`});++r<e.length;)r&&n.push({type:"text",value:`
12`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
13`}),n}function On(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Mn(e,t){const n=ls(e,t),r=n.one(e,void 0),i=Wo(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
14`},i),l}function cs(e,t){return e&&"run"in e?async function(n,r){const i=Mn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Mn(n,{file:r,...e||t})}}function Fn(e){if(e)throw e}var rt=Object.prototype.hasOwnProperty,Pr=Object.prototype.toString,Bn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Un=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Pr.call(t)==="[object Array]"},Vn=function(t){if(!t||Pr.call(t)!=="[object Object]")return!1;var n=rt.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&rt.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||rt.call(t,i)},$n=function(t,n){Bn&&n.name==="__proto__"?Bn(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},qn=function(t,n){if(n==="__proto__")if(rt.call(t,n)){if(Hn)return Hn(t,n).value}else return;return t[n]},ps=function e(){var t,n,r,i,l,a,o=arguments[0],s=1,c=arguments.length,u=!1;for(typeof o=="boolean"&&(u=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s<c;++s)if(t=arguments[s],t!=null)for(n in t)r=qn(o,n),i=qn(t,n),o!==i&&(u&&i&&(Vn(i)||(l=Un(i)))?(l?(l=!1,a=r&&Un(r)?r:[]):a=r&&Vn(r)?r:{},$n(o,{name:n,newValue:e(u,a,i)})):typeof i<"u"&&$n(o,{name:n,newValue:i}));return o};const It=Qn(ps);function Bt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hs(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(s,...c){const u=e[++l];let h=-1;if(s){a(s);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,u?fs(u,o)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function fs(e,t){let n;return r;function r(...a){const o=e.length>a.length;let s;o&&a.push(i);try{s=e.apply(this,a)}catch(c){const u=c;if(o&&n)throw u;return i(u)}o||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(a,...o){n||(n=!0,t(a,...o))}function l(a){i(null,a)}}const ke={basename:ds,dirname:ms,extname:gs,join:xs,sep:"/"};function ds(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');We(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else a<0&&(l=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function ms(e){if(We(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gs(e){We(e);let t=e.length,n=-1,r=0,i=-1,l=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function xs(...e){let t=-1,n;for(;++t<e.length;)We(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ys(n)}function ys(e){We(e);const t=e.codePointAt(0)===47;let n=bs(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function bs(e,t){let n="",r=0,i=-1,l=0,a=-1,o,s;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||l===1))if(i!==a-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=a,l=0;continue}}else if(n.length>0){n="",r=0,i=a,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,l=0}else o===46&&l>-1?l++:l=-1}return n}function We(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ks={cwd:ws};function ws(){return"/"}function Ht(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ss(e){if(typeof e=="string")e=new URL(e);else if(!Ht(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Is(e)}function Is(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ct=["history","path","basename","stem","extname","dirname"];class zr{constructor(t){let n;t?Ht(t)?n={path:t}:typeof t=="string"||Cs(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":ks.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ct.length;){const l=Ct[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)Ct.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?ke.basename(this.path):void 0}set basename(t){At(t,"basename"),Et(t,"basename"),this.path=ke.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ke.dirname(this.path):void 0}set dirname(t){Gn(this.basename,"dirname"),this.path=ke.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ke.extname(this.path):void 0}set extname(t){if(Et(t,"extname"),Gn(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ke.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ht(t)&&(t=Ss(t)),At(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ke.basename(this.path,this.extname):void 0}set stem(t){At(t,"stem"),Et(t,"stem"),this.path=ke.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new le(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Et(e,t){if(e&&e.includes(ke.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ke.sep+"`")}function At(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Gn(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Cs(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Es=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},As={}.hasOwnProperty;
vendor: 7,529 bytes, line 14
14class nn extends Es{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=hs()}copy(){const t=new nn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(It(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Tt("data",this.frozen),this.namespace[t]=n,this):As.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Tt("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=tt(t),r=this.parser||this.Parser;return vt("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),vt("process",this.parser||this.Parser),Nt("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,a){const o=tt(t),s=r.parse(o);r.run(s,o,function(u,h,g){if(u||!h||!g)return c(u);const p=h,b=r.stringify(p,g);Ts(b)?g.value=b:g.result=b,c(u,g)});function c(u,h){u||!h?a(u):l?l(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),vt("processSync",this.parser||this.Parser),Nt("processSync",this.compiler||this.Compiler),this.process(t,i),Wn("processSync","process",n),r;function i(l,a){n=!0,Fn(l),r=a}}run(t,n,r){Yn(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(a,o){const s=tt(n);i.run(t,s,c);function c(u,h,g){const p=h||t;u?o(u):a?a(p):r(void 0,p,g)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),Wn("runSync","run",r),i;function l(a,o){Fn(a),i=o,r=!0}}stringify(t,n){this.freeze();const r=tt(n),i=this.compiler||this.Compiler;return Nt("stringify",i),Yn(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Tt("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(c){if(typeof c=="function")s(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...h]=c;s(u,h)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(i.settings=It(!0,i.settings,c.settings))}function o(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const h=c[u];l(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function s(c,u){let h=-1,g=-1;for(;++h<r.length;)if(r[h][0]===c){g=h;break}if(g===-1)r.push([c,...u]);else if(u.length>0){let[p,...b]=u;const S=r[g][1];Bt(S)&&Bt(p)&&(p=It(!0,S,p)),r[g]=[c,p,...b]}}}}const vs=new nn().freeze();function vt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Nt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Tt(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yn(e){if(!Bt(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Wn(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tt(e){return Ns(e)?e:new zr(e)}function Ns(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ts(e){return typeof e=="string"||js(e)}function js(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Rs="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Kn=[],Xn={allowDangerousHtml:!0},Ps=/^(https?|ircs?|mailto|xmpp)$/i,zs=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jt(e){const t=Ls(e),n=_s(e);return Ds(t.runSync(t.parse(n),n),e)}function Ls(e){const t=e.rehypePlugins||Kn,n=e.remarkPlugins||Kn,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Xn}:Xn;return vs().use(mo).use(n).use(cs,r).use(t)}function _s(e){const t=e.children||"",n=new zr;return typeof t=="string"&&(n.value=t),n}function Ds(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,a=t.skipHtml,o=t.unwrapDisallowed,s=t.urlTransform||Os;for(const u of zs)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+Rs+u.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Rr(e,c),Yi(e,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function c(u,h,g){if(u.type==="raw"&&g&&typeof h=="number")return a?g.children.splice(h,1):g.children[h]={type:"text",value:u.value},h;if(u.type==="element"){let p;for(p in kt)if(Object.hasOwn(kt,p)&&Object.hasOwn(u.properties,p)){const b=u.properties[p],S=kt[p];(S===null||S.includes(u.tagName))&&(u.properties[p]=s(String(b||""),p,u))}}if(u.type==="element"){let p=n?!n.includes(u.tagName):l?l.includes(u.tagName):!1;if(!p&&r&&typeof h=="number"&&(p=!r(u,h,g)),p&&g&&typeof h=="number")return o&&u.children?g.children.splice(h,1,...u.children):g.children.splice(h,1),h}}}function Os(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Ps.test(e.slice(0,t))?e:""}const Ks=()=>{const{language:e,translations:t}=Lr(),n=Mr(),{user:r}=_r(),[i,l]=Y.useState([{id:"1",text:e==="ar"?"مرحباً! أنا رُوَّاد، مساعدك الذكي لاستكشاف حلول الذكاء الاصطناعي ورؤى السوق. كيف يمكنني مساعدتك اليوم؟":"Hello! I'm GO.Ai | رُوَّاد, your intelligent assistant for exploring AI solutions and market insights. How can I help you today?",sender:"bot"}]),[a,o]=Y.useState(""),[s,c]=Y.useState(!1),[u,h]=Y.useState(null),[g,p]=Y.useState("chat"),[b,S]=Y.useState([]),[T,I]=Y.useState(!1),[P,v]=Y.useState({used:0,limit:50,resetDate:new Date(new Date().getFullYear(),new Date().getMonth()+1,
141)}),[D,q]=Y.useState([]),[k,M]=Y.useState(!1),X=Y.useRef(null),O=Y.useRef(null),[H,N]=Y.useState(!1),[A,U]=Y.useState(null),[B,_]=Y.useState(!1),[Q,Z]=Y.useState(""),[ie,fe]=Y.useState("AI Market Research"),[f,se]=Y.useState(""),[ye,d]=Y.useState(!1),[ae,Ie]=Y.useState(!1),[ee,Ae]=Y.useState(!1),[re,Ce]=Y.useState(""),[ve,be]=Y.useState(!1);Y.useEffect(()=>{r?(Ne(),Fe(),Ke()):n("/")},[r,n]),Y.useEffect(()=>{pt()},[i]);const pt=()=>{X.current&&O.current&&(O.current.scrollTop=O.current.scrollHeight)},ht=x=>{o(x.target.value),x.target.style.height="auto",x.target.style.height=`${Math.min(x.target.scrollHeight,150)}px`},Ne=async()=>{if(r){I(!0);try{const{data:x,error:C}=await Ee.from("user_research_reports").select("*").eq("user_id",r.id).order("created_at",{ascending:!1});if(C)throw C;S(x||[])}catch(x){console.error("Error loading reports:",x)}finally{I(!1)}}},Ke=async()=>{M(!0);try{const{data:x,error:C}=await Ee.from("solutions").select("id, solution_name, summary, description, tech_categories, industry_focus, company_name, status, tech_approval_status, business_approval_status").eq("status","approved").eq("tech_approval_status","approved").eq("business_approval_status","approved");if(C)throw C;q(x||[]),console.log(`Loaded ${(x==null?void 0:x.length)||0} solutions for GO.Ai Agent`)}catch(x){console.error("Error loading solutions:",x)}finally{M(!1)}},Fe=async()=>{if(r)try{const x=new Date;x.setDate(1),x.setHours(0,0,0,0);const{data:C,error:L}=await Ee.from("rate_limits").select("count").eq("user_id",r.id).eq("action","goai_query").gte("window_start",x.toISOString()).maybeSingle();if(L){console.error("Error loading usage stats:",L);return}v({used:(C==null?void 0:C.count)||0,limit:50,resetDate:new Date(new Date().getFullYear(),new Date().getMonth()+1,1)})}catch(x){console.error("Error loading usage stats:",x)}},Be=async()=>{if(!r){n("/");return}if(a.trim()==="")return;if(P.used>=P.limit){h(e==="ar"?"لقد وصلت إلى الحد الشهري للاستعلامات. يرجى المحاولة مرة أخرى الشهر المقبل.":"You have reached your monthly query limit. Please try again next month.");return}const x={id:Date.now().toString(),text:a,sender:"user"};l(G=>[...G,x]);const C=a;o(""),c(!0),h(null);const L=document.querySelector("textarea");L&&(L.style.height="auto");const J=`typing-${Date.now()}`;l(G=>[...G,{id:J,text:"",sender:"bot",isTyping:!0}]);try{const{error:G}=await Ee.rpc("increment_rate_limit",{action_param:"goai_query",user_id_param:r.id});G&&console.error("Error incrementing rate limit:",G),await Fe();const W=i.filter(ne=>!ne.isTyping).slice(-5).map(ne=>({role:ne.sender==="bot"?"assistant":ne.sender,content:ne.text})),oe=Xe(),K=await rn(C,W,oe);l(ne=>ne.filter(de=>de.id!==J)),l(ne=>[...ne,{id:Date.now().toString(),text:K,sender:"bot"}]),Qe(C,K)&&await Je(C,K)}catch(G){console.error("Error processing message:",G),l(W=>W.filter(oe=>oe.id!==J)),h(G instanceof Error?G.message:"Failed to process message"),l(W=>[...W,{id:Date.now().toString(),text:e==="ar"?"أعتذر، لكنني أواجه مشكلة في معالجة طلبك. يرجى المحاولة مرة أخرى لاحقًا.":"I apologize, but I'm having trouble processing your request. Please try again later.",sender:"bot",isError:!0}])}finally{c(!1)}},Xe=()=>{if(!D||D.length===0)return e==="ar"?"لا توجد حلول متاحة حاليًا في المنصة.":"No solutions are currently available in the platform.";const x=D.map(C=>`Solution: ${C.solution_name}
15Company: ${C.company_name}
16ID: ${C.id}
17Summary: ${C.summary.substring(0,150)}${C.summary.length>150?"...":""}
18Categories: ${C.tech_categories.join(", ")}
19Industries: ${C.industry_focus.join(", ")}`).join(`
20
21`);return e==="ar"?`الحلول المتاحة في المنصة (${D.length} إجمالي):
22
23${x}
24
25عند الإشارة إلى الحلول، استخدم الصيغة "اسم الحل" دون ذكر المعرفات أو عناوين URL.`:`Available AI Solutions in the Platform (${D.length} total):
26
27${x}
28
29When referring to solutions, use the format "Solution Name" without mentioning IDs or URLs.`},Qe=(x,C)=>{const W=(e==="ar"?["بحث","تقرير","تحليل","دراسة","رؤى","اتجاهات"]:["research","report","analysis","study","insights","trends"]).some(de=>x.toLowerCase().includes(de)),oe=C.includes("research report")||C.includes("generated a report")||C.includes("created a report"),K=C.includes("تقرير بحثي")||C.includes("أنشأت تقريرًا")||C.includes("قمت بإنشاء تقرير");return W&&(e==="ar"?K:oe)},Je=async(x,C)=>{if(r)try{const L=e==="ar"?`تقرير بحثي: ${x.length>30?x.substring(0,30)+"...":x}`:`Research Report: ${x.length>30?x.substring(0,30)+"...":x}`,J=e==="ar"?`# تقرير الذكاء الاصطناعي البحثي: ${x}
30
31## نظرة عامة
32${C.split(".").slice(0,3).join(".")}
33
34## النتائج الرئيسية
35${C}
36
37## سياق السوق
38- سوق الذكاء الاصطناعي السعودي ينمو بمعدل 43.7٪ سنويًا
39- الاستثمار الحكومي يصل إلى 14.2 مليار دولار في عام 2025
40- معدل اعتماد المؤسسات وصل إلى 81٪ عبر القطاعات
41- 312 حل ذكاء اصطناعي بدعم اللغة العربية الأصلية
42
43## التوصيات
44بناءً على هذا التحليل، يجب على المؤسسات النظر في:
451. تقييم حلول الذكاء الاصطناعي التي تتوافق مع حالات الاستخدام الخاصة بها
462. إعطاء الأولوية للحلول التي تدعم اللغة العربية
473. النظر في نموذج النشر الذي يناسب بنيتها التحتية بشكل أفضل
484. تقييم مستوى جاهزية التكنولوجيا (TRL) للحلول المحتملة
49
50*تم إنشاؤه بواسطة GO.Ai | رُوَّاد في ${new Date().toLocaleDateString("ar-SA")}*`:`# AI Research Report: ${x}
51
52## Overview
53${C.split(".").slice(0,3).join(".")}
54
55## Key Findings
56${C}
57
58## Market Context
59- Saudi AI market is growing at 43.7% annually
60- Government investment reaching $14.2B in 2025
61- Enterprise adoption has reached 81% across sectors
62- 312 AI solutions with native Arabic language support
63
64## Recommendations
65Based on this analysis, organizations should consider:
661. Evaluating AI solutions that align with their specific use cases
672. Prioritizing solutions with Arabic language support
683. Considering the deployment model that best fits their infrastructure
694. Assessing the technology readiness level (TRL) of potential solutions
70
71*Generated by GO.Ai | رُوَّاد on ${new Date().toLocaleDateString()}*`,G=C.split(".").slice(0,2).join(".")+".";let W=e==="ar"?"بحث سوق الذكاء الاصطناعي":"AI Market Research";e==="ar"?x.toLowerCase().includes("صحة")||x.toLowerCase().includes("طب")?W="الذكاء الاصطناعي في الرعاية الصحية":x.toLowerCase().includes("حكوم")?W="الذكاء الاصطناعي الحكومي":x.toLowerCase().includes("مال")||x.toLowerCase().includes("بنك")?W="الذكاء الاصطناعي المالي":x.toLowerCase().includes("تعليم")&&(W="الذكاء الاصطناعي في التعليم"):x.toLowerCase().includes("healthcare")?W="Healthcare AI":x.toLowerCase().includes("government")?W="Government AI":x.toLowerCase().includes("finance")?W="Financial AI":x.toLowerCase().includes("education")&&(W="Education AI");const{data:oe,error:K}=await Ee.from("user_research_reports").insert({user_id:r.id,title:L,summary:G,content:J,category:W}).select().single();if(K)throw K;await Ne(),l(ne=>[...ne,{id:Date.now().toString(),text:e==="ar"?'لقد أنشأت تقريرًا بحثيًا بناءً على استفسارك. يمكنك العثور عليه في علامة التبويب "التقارير البحثية".':`I've created a research report based on your query. You can find it in the "Research Reports" tab.`,sender:"bot"}])}catch(L){console.error("Error creating research report:",L)}},ft=x=>{U(x),N(!0)},dt=async()=>{if(r){_(!0),h(null);try{if(!re.trim())throw new Error(e==="ar"?"يرجى تقديم موضوع للتقرير":"Please provide a prompt for the report");const x=Xe(),C=await rn(re,[],x),L=re.length>50?re.substring(0,50)+"...":re,J=e==="ar"?`# ${L}
72
73${C}
74
75## سياق السوق
76- سوق الذكاء الاصطناعي السعودي ينمو بمعدل 43.7٪ سنويًا
77- الاستثمار الحكومي يصل إلى 14.2 مليار دولار في عام 2025
78- معدل اعتماد المؤسسات وصل إلى 81٪ عبر القطاعات
79- 312 حل ذكاء اصطناعي بدعم اللغة العربية الأصلية
80
81## التوصيات
82بناءً على هذا التحليل، يجب على المؤسسات النظر في:
831. تقييم حلول الذكاء الاصطناعي التي تتوافق مع حالات الاستخدام الخاصة بها
842. إعطاء الأولوية للحلول التي تدعم اللغة العربية
853. النظر في نموذج النشر الذي يناسب بنيتها التحتية بشكل أفضل
864. تقييم مستوى جاهزية التكنولوجيا (TRL) للحلول المحتملة
87
88*تم إنشاؤه بواسطة GO.Ai | رُوَّاد في ${new Date().toLocaleDateString("ar-SA")}*`:`# ${L}
89
90${C}
91
92## Market Context
93- Saudi AI market is growing at 43.7% annually
94- Government investment reaching $14.2B in 2025
95- Enterprise adoption has reached 81% across sectors
96- 312 AI solutions with native Arabic language support
97
98## Recommendations
99Based on this analysis, organizations should consider:
1001. Evaluating AI solutions that align with their specific use cases
1012. Prioritizing solutions with Arabic language support
1023. Considering the deployment model that best fits their infrastructure
1034. Assessing the technology readiness level (TRL) of potential solutions
104
105*Generated by GO.Ai | رُوَّاد on ${new Date().toLocaleDateString()}*`,G=C.split(".").slice(0,2).join(".")+".",{data:W,error:oe}=await Ee.from("user_research_reports").insert({user_id:r.id,title:L,summary:G,content:J,category:ie}).select().single();if(oe)throw oe;await Ne(),l(K=>[...K,{id:Date.now().toString(),text:e==="ar"?`لقد أنشأت تقريرًا بحثيًا جديدًا بناءً على طلبك: "${re}". يمكنك العثور عليه في علامة التبويب "التقارير البحثية".`:`I've created a new research report based on your prompt: "${re}". You can find it in the "Research Reports" tab.`,sender:"bot"}]),p("reports"),be(!1),Ce("")}catch(x){console.error("Error creating AI report:",x),h(x instanceof Error?x.message:e==="ar"?"فشل في إنشاء تقرير الذكاء الاصطناعي. يرجى المحاولة مرة أخرى.":"Failed to generate AI report. Please try again.")}finally{_(!1)}}},mt=x=>{U(x),Z(x.title),fe(x.category||"AI Market Research"),se(x.content),Ie(!0),d(!0)},gt=async x=>{if(r){Ae(!0);try{const{error:C}=await Ee.from("user_research_reports").delete().eq("id",x).eq("user_id",r.id);if(C)throw C;await Ne(),h(null)}catch(C){console.error("Error deleting report:",C),h(e==="ar"?"فشل في حذف التقرير":"Failed to delete report")}finally{Ae(!1)}}},xt=async()=>{if(!(!r||!Q.trim()||!f.trim())){_(!0);try{const C=f.split(".").slice(0,2).join(".")+".";if(ae&&A){const{error:L}=await Ee.from("user_research_reports").update({title:Q,summary:C,content:f,category:ie,updated_at:new Date().toISOString()}).eq("id",A.id).eq("user_id",r.id);if(L)throw L}else{const{error:L}=await Ee.from("user_research_reports").insert({user_id:r.id,title:Q,summary:C,content:f,category:ie});if(L)throw L}await Ne(),d(!1),h(null)}catch(x){console.error("Error saving report:",x),h(e==="ar"?"فشل في حفظ التقرير":"Failed to save report")}finally{_(!1)}}};if(!r)return n("/"),null;const y=x=>{if(!D||D.length===0)return m.jsx(jt,{className:"markdown-content",children:x});D.reduce((L,J)=>(L[J.id]=J,L),{});let C=x;return C=C.replace(/\(https:\/\/goaihub\.ai\/solutions\/[a-f0-9-]+\)/g,""),C=C.replace(/\(ID:\s*[a-f0-9-]+\)/g,""),D.forEach(L=>{const J=new RegExp(`(?<!\\[)\\b${E(L.solution_name)}\\b(?!\\])`,"g");J.test(C)&&(C=C.replace(J,`[${L.solution_name}](/solutions/${L.id})`))}),m.jsx(jt,{className:"markdown-content",children:C})},E=x=>x.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),R=x=>e!=="ar"?x:{"AI Market Research":"بحث سوق الذكاء الاصطناعي","Healthcare AI":"الذكاء الاصطناعي في الرعاية الصحية","Government AI":"الذكاء الاصطناعي الحكومي","Financial AI":"الذكاء الاصطناعي المالي","Education AI":"الذكاء الاصطناعي في التعليم","Industry Analysis":"تحليل الصناعة","Technology Trends":"اتجاهات التكنولوجيا","Cybersecurity AI":"الذكاء الاصطناعي للأمن السيبراني","Retail AI":"الذكاء الاصطناعي في التجزئة","Manufacturing AI":"الذكاء الاصطناعي في التصنيع","Transportation AI":"الذكاء الاصطناعي في النقل","Energy AI":"الذكاء الاصطناعي في الطاقة","Agriculture AI":"الذكاء الاصطناعي في الزراعة","Smart Cities":"المدن الذكية","Defense AI":"الذكاء الاصطناعي في الدفاع"}[x]||x;return m.jsxs("div",{className:"min-h-screen flex flex-col bg-gray-900",children:[m.jsx(Dr,{}),m.jsxs("main",{className:"flex-grow pt-20 relative",children:[m.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-900 via-secondary-900/10 to-primary-900/10"}),m.jsx("div",{className:"absolute inset-0 opacity-5",children:m.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`
106              linear-gradient(rgba(0, 105, 155, 0.1) 1px, transparent 1px),
107              linear-gradient(90deg, rgba(0, 105, 155, 0.1) 1px, transparent 1px)
108            `,backgroundSize:"50px 50px"}})}),m.jsx("div",{className:"container mx-auto px-4 py-8 relative z-10",children:m.jsxs("div",{className:"max-w-5xl mx-auto",children:[m.jsxs("div",{className:"bg-gray-800/50 backdrop-blur-xl rounded-2xl border border-secondary-500/20 shadow-xl shadow-secondary-500/10 overflow-hidden",children:[m.jsxs("div",{className:"bg-gradient-to-r from-gray-900 via-secondary-900/30 to-primary-900/30 p-4 sm:p-6 border-b border-secondary-500/20",children:[m.jsxs("div",{className:"flex items-center mb-4 gap-3",children:[m.jsx(Fr,{className:"h-5 w-5 sm:h-6 sm:w-6 text-secondary-500"}),m.jsx("h1",{className:"text-xl sm:text-2xl font-bold text-white",children:t.goaiAgentTitle})]}),m.jsx("p",{className:"text-sm sm:text-base text-gray-300",children:t.goaiAgentSubtitle}),m.jsxs("div",{className:"flex mt-4 sm:mt-6 border-b border-gray-700/50 overflow-x-auto",children:[m.jsx("button",{className:`px-3 sm:px-4 py-2 font-medium text-xs sm:text-sm transition-all duration-300 whitespace-nowrap ${g==="chat"?"text-secondary-500 border-b-2 border-secondary-500":"text-gray-400 hover:text-gray-300"}`,onClick:()=>p("chat"),children:t.askGoai}),m.jsx("button",{className:`px-3 sm:px-4 py-2 font-medium text-xs sm:text-sm transition-all duration-300 whitespace-nowrap ${g==="reports"?"text-secondary-500 border-b-2 border-secondary-500":"text-gray-400 hover:text-gray-300"}`,onClick:()=>p("reports"),children:t.researchReports})]})]}),u&&m.jsx("div",{className:"bg-red-500/20 border-l-4 border-red-500 p-3 sm:p-4 backdrop-blur-sm",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Br,{className:"h-4 w-4 sm:h-5 sm:w-5 text-red-400"}),m.jsx("p",{className:"text-sm sm:text-base text-red-300",children:u})]})}),g==="chat"?m.jsxs(m.Fragment,{children:[m.jsxs("div",{ref:O,className:"h-64 sm:h-96 overflow-y-auto p-3 sm:p-4 bg-gray-900/20 backdrop-blur-sm",children:[i.map(x=>m.jsxs("div",{className:`mb-3 sm:mb-4 flex gap-2 ${x.sender==="user"?"justify-end":"justify-start"}`,children:[x.sender==="bot"&&m.jsx("div",{className:"bg-gradient-to-br from-secondary-500/20 to-primary-500/20 border border-secondary-500/30 rounded-full p-1.5 
108sm:p-2",children:m.jsx(Hr,{className:"h-4 w-4 sm:h-5 sm:w-5 text-secondary-500"})}),m.jsx("div",{className:`max-w-[85%] sm:max-w-[80%] rounded-lg py-2 px-3 sm:px-4 backdrop-blur-sm ${x.sender==="user"?"bg-gradient-to-r from-secondary-500 to-primary-500 text-white shadow-lg shadow-secondary-500/25":x.isError?"bg-red-500/20 text-red-300 border border-red-500/30":"bg-gray-800/50 text-gray-200 border border-gray-700/50"}`,children:x.isTyping?m.jsx(Re,{size:"sm"}):m.jsx("div",{className:"markdown-content text-sm sm:text-base",children:y(x.text)})}),x.sender==="user"&&m.jsx("div",{className:"bg-gradient-to-br from-primary-500/20 to-secondary-500/20 border border-primary-500/30 rounded-full p-1.5 sm:p-2 ml-2",children:m.jsx(Ur,{className:"h-4 w-4 sm:h-5 sm:w-5 text-primary-500"})})]},x.id)),m.jsx("div",{ref:X})]}),m.jsxs("div",{className:"p-3 sm:p-4 border-t border-gray-700/50 bg-gray-800/30 backdrop-blur-sm",children:[m.jsxs("div",{className:"flex items-center",children:[m.jsx("textarea",{value:a,onChange:ht,onKeyPress:x=>
108{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),s||Be())},placeholder:t.typeYourMessage,className:"flex-grow px-3 sm:px-4 py-2 bg-gray-800/50 border border-gray-700/50 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-secondary-500/50 focus:border-secondary-500/50 text-white placeholder-gray-400 resize-none backdrop-blur-sm text-sm sm:text-base",disabled:s,rows:2,style:{minHeight:"50px",maxHeight:"150px"}}),m.jsx(ue,{onClick:Be,disabled:s||a.trim()===""||P.used>=P.limit,className:"rounded-l-none h-full",children:s?m.jsx(Re,{size:"sm"}):m.jsx(Vr,{className:"h-4 w-4 sm:h-5 sm:w-5"})})]}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:t.pressEnterToSend})]}),m.jsxs("div",{className:"px-3 sm:px-4 py-2 sm:py-3 flex flex-col sm:flex-row sm:justify-between sm:items-center gap-2 bg-gray-800/30 backdrop-blur-sm border-t border-gray-700/50",children:[m.jsxs("div",{className:"flex flex-wrap items-center text-xs sm:text-sm text-gray-400 gap-2 sm:gap-4",children:[m.jsxs("div",{className:"flex items-center",children:[m.jsx($r,{className:"h-3 w-3 sm:h-4 sm:w-4 text-secondary-500 mr-1"}),m.jsxs("span",{children:[t.usageStatus,": ",P.used,"/",P.limit]})]}),m.jsxs("div",{className:"flex items-center",children:[m.jsx(qr,{className:"h-3 w-3 sm:h-4 sm:w-4 text-secondary-500 mr-1"}),m.jsx("span",{className:"text-xs",children:t.monthlyQuota})]})]}),m.jsx("div",{className:"flex items-center",children:m.jsxs("a",{href:Ms,target:"_blank",rel:"noopener noreferrer",className:"text-xs sm:text-sm text-secondary-500 hover:text-secondary-400 flex items-center transition-colors duration-300",children:[t.dataSources,m.jsx(Gr,{className:"h-3 w-3 ml-1"})]})})]})]}):m.jsxs("div",{className:"p-4 sm:p-6",children:[m.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-3 mb-4 sm:mb-6",children:[m.jsx("h2",{className:"text-lg sm:text-xl font-semibold text-white",children:t.researchReports}),m.jsxs("div",{className:"flex gap-2",children:[m.jsxs(ue,{variant:"outline",size:"sm",onClick:Ne,disabled:T,children:[T?m.jsx(Re,{size:"sm"}):m.jsx(Yr,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-1 sm:mr-2 ml-1"}),m.jsx("span",{className:"text-xs sm:text-sm",children:e==="ar"?"تحديث":"Refresh"})]}),m.jsxs(ue,{variant:"primary",size:"sm",onClick:()=>be(!0),disabled:B,children:[B?m.jsx(Re,{size:"sm"}):m.jsx(ln,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-1 sm:mr-2 ml-1"}),m.jsx("span",{className:"text-xs sm:text-sm",children:e==="ar"?"تقرير جديد":"New Report"})]})]})]}),T?m.jsx("div",{className:"flex justify-center py-8",children:m.jsx(Re,{text:t.loadingPlatformData})}):b.length===0?m.jsxs("div",{className:"bg-gray-800/30 backdrop-blur-sm rounded-xl border border-gray-700/50 p-6 sm:p-8 text-center",children:[m.jsx("p",{className:"text-gray-400 mb-4",children:t.noReportsYet}),m.jsxs(ue,{onClick:()=>be(!0),variant:"outline",disabled:B,children:[B?m.jsx(Re,{size:"sm"}):m.jsx(ln,{className:"h-4 w-4 mr-2"}),e==="ar"?"إنشاء تقرير بحثي":"Create Research Report"]})]}):m.jsx("div",{className:"space-y-4",children:b.map(x=>m.jsxs("div",{className:"bg-gray-800/30 backdrop-blur-sm rounded-xl border border-gray-700/50 p-4 sm:p-6 hover:border-secondary-500/30 transition-all duration-300",children:[m.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-start gap-2 mb-3 sm:mb-4",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-base sm:text-lg font-semibold text-white mb-1",children:x.title}),m.jsxs("p",{className:"text-xs sm:text-sm text-gray-400",children:[t.generatedOn,": ",new Date(x.created_at).toLocaleDateString(e==="ar"?"ar-SA":void 0)]})]}),m.jsx("div",{className:"bg-secondary-500/20 text-secondary-300 px-2 py-0.5 sm:px-3 sm:py-1 rounded-full text-xs border border-secondary-500/30 self-start",children:R(x.category)})]}),m.jsx("p",{className:"text-sm sm:text-base text-gray-300 mb-3 sm:mb-4 line-clamp-2",children:x.summary}),m.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[m.jsxs(ue,{variant:"outline",size:"sm",onClick:()=>ft(x),className:"flex items-center text-xs sm:text-sm",children:[m.jsx(an,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-1 sm:mr-2"}),e==="ar"?"عرض":"View"]}),m.jsxs(ue,{variant:"outline",size:"sm",onClick:()=>mt(x),className:"flex items-center text-xs sm:text-sm",children:[m.jsx(Wr,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-1 sm:mr-2"}),e==="ar"?"تعديل":"Edit"]}),m.jsxs(ue,{variant:"ghost",size:"sm",onClick:()=>gt(x.id),disabled:ee,className:"flex items-center text-red-400 hover:text-red-300 text-xs sm:text-sm",children:[ee?m.jsx(Re,{size:"sm"}):m.jsx(Kr,{className:"h-3 w-3 sm:h-4 sm:w-4 mr-1 sm:mr-2"}),e==="ar"?"حذف":"Delete"]})]})]},x.id))})]})]}),m.jsxs("div",{className:"mt-6 sm:mt-8 grid grid-cols-1 md:grid-cols-3 gap-4 sm:gap-6",children:[m.jsxs("div",{className:"bg-gray-800/50 backdrop-blur-xl rounded-2xl border border-secondary-500/20 p-4 sm:p-6 hover:border-secondary-500/30 transition-all duration-300",children:[m.jsxs("div",{className:"flex items-center mb-3 sm:mb-4 gap-3",children:[m.jsx("div",{className:"p-2 sm:p-3 bg-gradient-to-br from-secondary-500/20 to-primary-500/20 rounded-xl border border-secondary-500/30",children:m.jsx(an,{className:"h-4 w-4 sm:h-5 sm:w-5 text-secondary-500"})}),m.jsx("h3",{className:"text-base sm:text-lg font-semibold text-white",children:t.platformSolutions})]}),m.jsx("p",{className:"text-xs sm:text-sm text-gray-400 mb-3 sm:mb-4",children:e==="ar"?"اسأل عن حلول الذكاء الاصطناعي المتاحة على المنصة وقدراتها وتوافقها مع احتياجاتك.":"Ask about AI solutions available on the platform, their capabilities, and compatibility with your needs."}),m.jsx(ue,{variant:"ghost",size:"sm",onClick:()=>{p("chat"),o(e==="ar"?"ما هي حلول الذكاء الاصطناعي المتاحة للقطاع الحكومي؟":"What AI solutions are available for government sector?")},className:"text-secondary-500 hover:text-secondary-400 text-xs sm:text-sm",children:e==="ar"?"اسأل عن الحلول":"Ask about solutions"})]}),m.jsxs("div",{className:"bg-gray-800/50 backdrop-blur-xl rounded-2xl border border-secondary-500/20 p-4 sm:p-6 hover:border-secondary-500/30 transition-all duration-300",children:[m.jsxs("div",{className:"flex items-center mb-3 sm:mb-4 gap-3",children:[m.jsx("div",{className:"p-2 sm:p-3 bg-gradient-to-br from-secondary-500/20 to-primary-500/20 rounded-xl border border-secondary-500/30",children:m.jsx(Xr,{className:"h-4 w-4 sm:h-5 sm:w-5 text-secondary-500"})}),m.jsx("h3",{className:"text-base sm:text-lg font-semibold text-white",children:t.saudiMarketInsights})]}),m.jsx("p",{className:"text-xs sm:text-sm text-gray-400 mb-3 sm:mb-4",children:e==="ar"?"احصل على أحدث الرؤى حول اعتماد الذكاء الاصطناعي واتجاهات السوق وتوقعات النمو في المملكة العربية السعودية.":"Get the latest insights on AI adoption, market trends, and growth forecasts for Saudi Arabia."}),m.jsx(ue,{variant:"ghost",size:"sm",onClick:()=>{p("chat"),o(e==="ar"?"ما هي أحدث اتجاهات سوق الذكاء الاصطناعي في المملكة العربية السعودية؟":"What are the latest AI market trends in Saudi Arabia?")},className:"text-secondary-500 hover:text-secondary-400 text-xs sm:text-sm",children:e==="ar"?"استكشف اتجاهات السوق":"Explore market trends"})]}),m.jsxs("div",{className:"bg-gray-800/50 backdrop-blur-xl rounded-2xl border border-secondary-500/20 p-4 sm:p-6 hover:border-secondary-500/30 transition-all duration-300",children:[m.jsxs("div",{className:"flex items-center mb-3 sm:mb-4 gap-3",children:[m.jsx("div",{className:"p-2 sm:p-3 bg-gradient-to-br from-secondary-500/20 to-primary-500/20 rounded-xl border border-secondary-500/30",children:m.jsx(Qr,{className:"h-4 w-4 sm:h-5 sm:w-5 text-secondary-500"})}),m.jsx("h3",{className:"text-base sm:text-lg font-semibold text-white",children:t.globalIndustryReports})]}),m.jsx("p",{className:"text-xs sm:text-sm text-gray-400 mb-3 sm:mb-4",children:e==="ar"?"اطلب تقارير بحثية شاملة عن تقنيات الذكاء الاصطناعي المحددة أو الصناعات أو حالات الاستخدام.":"Request comprehensive research reports on specific AI technologies, industries, or use cases."}),m.jsx(ue,{variant:"ghost",size:"sm",onClick:()=>be(!0),className:"text-secondary-500 hover:text-secondary-400 text-xs sm:text-sm",children:e==="ar"?"طلب تقرير":"Request a report"})]})]})]})})]}),m.jsx(yt,{isOpen:H,onClose:()=>N(!1),title:(A==null?void 0:A.title)||(e==="ar"?"تقرير بحثي":"Research Report"),size:"lg",children:A&&m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center gap-2",children:[m.jsx("div",{className:"bg-secondary-500/20 text-secondary-300 px-2 py-1 rounded-full text-xs border border-secondary-500/30 self-start",children:R(A.category)}),m.jsxs("p",{className:"text-xs sm:text-sm text-gray-400",children:[t.generatedOn,": ",new Date(A.created_at).toLocaleDateString(e==="ar"?"ar-SA":void 0)]})]}),m.jsxs("div",{className:"bg-gray-700/30 backdrop-blur-sm p-3 sm:p-4 roun
108ded-lg border border-gray-600/50 mb-3 sm:mb-4",children:[m.jsx("h3",{className:"text-xs sm:text-sm font-medium text-gray-300 mb-1 sm:mb-2",children:e==="ar"?"ملخص":"Summary"}),m.jsx("p",{className:"text-xs sm:text-sm text-gray-300",children:A.summary})]}),m.jsx("div",{className:"bg-gray-700/30 backdrop-blur-sm p-3 sm:p-4 rounded-lg border border-gray-600/50 prose prose-invert max-w-none text-xs sm:text-sm",children:m.jsx(jt,{className:"markdown-content",children:A.content})})]})}),m.jsx(yt,{isOpen:ye,onClose:()=>d(!1),title:ae?e==="ar"?"تعديل التقرير البحثي":"Edit Research Report":e==="ar"?"إنشاء تقرير بحثي":"Create Research Report",size:"lg",children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-300 mb-2",children:e==="ar"?"عنوان التقرير *":"Report Title *"}),m.jsx("input",{type:"text",value:Q,onChange:x=>Z(x.target.value),className:"w-full px-3 sm:px-4 py-2 bg-gray-800/50 border border-gray-700/50 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500/50 text-white placeholder-gray-400 backdrop-blur-sm text-sm sm:text-base",placeholder:e==="ar"?"أدخل عنوان التقرير":"Enter report title",required:!0})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-300 mb-2",children:e==="ar"?"الفئة":"Category"}),m.jsxs("select",{value:ie,onChange:x=>fe(x.target.value),className:"w-full px-3 sm:px-4 py-2 bg-gray-800/50 border border-gray-700/50 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500/50 text-white backdrop-blur-sm text-sm sm:text-base",children:[m.jsx("option",{value:"AI Market Research",children:e==="ar"?"بحث سوق الذكاء الاصطناعي":"AI Market Research"}),m.jsx("option",{value:"Healthcare AI",children:e==="ar"?"الذكاء الاصطناعي في الرعاية الصحية":"Healthcare AI"}),m.jsx("option",{value:"Government AI",children:e==="ar"?"الذكاء الاصطناعي الحكومي":"Government AI"}),m.jsx("option",{value:"Financial AI",children:e==="ar"?"الذكاء الاصطناعي المالي":"Financial AI"}),m.jsx("option",{value:"Education AI",children:e==="ar"?"الذكاء الاصطناعي في التعليم":"Education AI"}),m.jsx("option",{value:"Industry Analysis",children:e==="ar"?"تحليل الصناعة":"Industry Analysis"}),m.jsx("option",{value:"Technology Trends",children:e==="ar"?"اتجاهات التكنولوجيا":"Technology Trends"}),m.jsx("option",{value:"Cybersecurity AI",children:e==="ar"?"الذكاء الاصطناعي للأمن السيبراني":"Cybersecurity AI"}),m.jsx("option",{value:"Retail AI",children:e==="ar"?"الذكاء الاصطناعي في التجزئة":"Retail AI"}),m.jsx("option",{value:"Manufacturing AI",children:e==="ar"?"الذكاء الاصطناعي في التصنيع":"Manufacturing AI"}),m.jsx("option",{value:"Transportation AI",children:e==="ar"?"الذكاء الاصطناعي في النقل":"Transportation AI"}),m.jsx("option",{value:"Energy AI",children:e==="ar"?"الذكاء الاصطناعي في الطاقة":"Energy AI"}),m.jsx("option",{value:"Agriculture AI",children:e==="ar"?"الذكاء الاصطناعي في الزراعة":"Agriculture AI"}),m.jsx("option",{value:"Smart Cities",children:e==="ar"?"المدن الذكية":"Smart Cities"}),m.jsx("option",{value:"Defense AI",children:e==="ar"?"الذكاء الاصطناعي في الدفاع":"Defense AI"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-300 mb-2",children:e==="ar"?"محتوى التقرير (يدعم Markdown) *":"Report Content (Markdown supported) *"}),m.jsx("textarea",{value:f,onChange:x=>se(x.target.value),rows:10,className:"w-full px-3 sm:px-4 py-2 bg-gray-800/50 border border-gray-700/50 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500/50 text-white placeholder-gray-400 backdrop-blur-sm font-mono text-xs sm:text-sm",placeholder:e==="ar"?`# عنوان التقرير
109
110## القسم 1
111المحتوى هنا...
112
113## القسم 2
114المزيد من المحتوى...`:`# Report Title
115
116## Section 1
117Content goes here...
118
119## Section 2
120More content...`,required:!0})]}),m.jsxs("div",{className:"flex justify-between items-center pt-4",children:[m.jsxs("div",{className:"text-xs sm:text-sm text-gray-400",children:[m.jsx("span",{className:"text-secondary-500",children:"*"})," ",e==="ar"?"حقول مطلوبة":"Required fields"]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx(ue,{variant:"ghost",onClick:()=>d(!1),size:"sm",children:t.cancel}),m.jsx(ue,{onClick:xt,disabled:B||!Q.trim()||!f.trim(),loading:B,size:"sm",children:ae?e==="ar"?"تحديث التقرير":"Update Report":e==="ar"?"إنشاء التقرير":"Create Report"})]})]})]})}),m.jsx(yt,{isOpen:ve,onClose:()=>be(!1),title:e==="ar"?"إنشاء تقرير بحثي بالذكاء الاصطناعي":"Create AI Research Report",size:"md",children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-300 mb-2",children:e==="ar"?"ما الذي ترغب في الحصول على تقرير عنه؟ *":"What would you like a report about? *"}),m.jsx("textarea",{value:re,onChange:x=>Ce(x.target.value),rows:4,className:"w-full px-3 sm:px-4 py-2 bg-gray-800/50 border border-gray-700/50 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500/50 text-white placeholder-gray-400 backdrop-blur-sm text-sm sm:text-base",placeholder:e==="ar"?"مثال: تحليل تأثير الذكاء الاصطناعي التوليدي على الرعاية الصحية في المملكة العربية السعودية":"E.g., Analyze the impact of generative AI on healthcare in Saudi Arabia",required:!0})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-xs sm:text-sm font-medium text-gray-300 mb-2",children:e==="ar"?"فئة التقرير":"Report Category"}),m.jsxs("select",{value:ie,onChange:x=>fe(x.target.value),className:"w-full px-3 sm:px-4 py-2 bg-gray-800/50 border border-gray-700/50 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500/50 text-white backdrop-blur-sm text-sm sm:text-base",children:[m.jsx("option",{value:"AI Market Research",children:e==="ar"?"بحث سوق الذكاء الاصطناعي":"AI Market Research"}),m.jsx("option",{value:"Healthcare AI",children:e==="ar"?"الذكاء الاصطناعي في الرعاية الصحية":"Healthcare AI"}),m.jsx("option",{value:"Government AI",children:e==="ar"?"الذكاء الاصطناعي الحكومي":"Government AI"}),m.jsx("option",{value:"Financial AI",children:e==="ar"?"الذكاء الاصطناعي المالي":"Financial AI"}),m.jsx("option",{value:"Education AI",children:e==="ar"?"الذكاء الاصطناعي في التعليم":"Education AI"}),m.jsx("option",{value:"Industry Analysis",children:e==="ar"?"تحليل الصناعة":"Industry Analysis"}),m.jsx("option",{value:"Technology Trends",children:e==="ar"?"اتجاهات التكنولوجيا":"Technology Trends"}),m.jsx("option",{value:"Cybersecurity AI",children:e==="ar"?"الذكاء الاصطناعي للأمن السيبراني":"Cybersecurity AI"}),m.jsx("option",{value:"Retail AI",children:e==="ar"?"الذكاء الاصطناعي في التجزئة":"Retail AI"}),m.jsx("option",{value:"Manufacturing AI",children:e==="ar"?"الذكاء الاصطناعي في التصنيع":"Manufacturing AI"}
120),m.jsx("option",{value:"Transportation AI",children:e==="ar"?"الذكاء الاصطناعي في النقل":"Transportation AI"}),m.jsx("option",{value:"Energy AI",children:e==="ar"?"الذكاء الاصطناعي في الطاقة":"Energy AI"}),m.jsx("option",{value:"Agriculture AI",children:e==="ar"?"الذكاء الاصطناعي في الزراعة":"Agriculture AI"}),m.jsx("option",{value:"Smart Cities",children:e==="ar"?"المدن الذكية":"Smart Cities"}),m.jsx("option",{value:"Defense AI",children:e==="ar"?"الذكاء الاصطناعي في الدفاع":"Defense AI"})]})]}),m.jsxs("div",{className:"flex justify-between items-center pt-4",children:[m.jsxs("div",{className:"text-xs sm:text-sm text-gray-400",children:[m.jsx("span",{className:"text-secondary-500",children:"*"})," ",e==="ar"?"حقول مطلوبة":"Required fields"]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx(ue,{variant:"ghost",onClick:()=>be(!1),size:"sm",children:t.cancel}),m.jsx(ue,{onClick:dt,disabled:B||!re.trim(),loading:B,size:"sm",children:e==="ar"?"إنشاء التقرير":"Create Report"})]})]})]})}),m.jsx(Or,{})]})},Ms="/MARKET_INSIGHTS_SOURCES.md";export{Ks as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.