minerva-plexus-csd 1.1.44 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2460,69 +2460,63 @@ const N1 = ({
|
|
|
2460
2460
|
}, c = () => {
|
|
2461
2461
|
s(e.content), i(!1);
|
|
2462
2462
|
};
|
|
2463
|
-
return /* @__PURE__ */ g.jsx(
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
"
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
children: ly(e.created_at)
|
|
2521
|
-
}
|
|
2522
|
-
)
|
|
2523
|
-
] })
|
|
2524
|
-
}
|
|
2525
|
-
);
|
|
2463
|
+
return /* @__PURE__ */ g.jsx(A1, { role: "article", "aria-label": "Mensaje del usuario", children: a ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
2464
|
+
/* @__PURE__ */ g.jsx(
|
|
2465
|
+
I1,
|
|
2466
|
+
{
|
|
2467
|
+
value: o,
|
|
2468
|
+
onChange: (d) => s(d.target.value),
|
|
2469
|
+
rows: 3,
|
|
2470
|
+
"aria-label": l("text.edit_message")
|
|
2471
|
+
}
|
|
2472
|
+
),
|
|
2473
|
+
/* @__PURE__ */ g.jsxs(k1, { children: [
|
|
2474
|
+
/* @__PURE__ */ g.jsx(
|
|
2475
|
+
gr,
|
|
2476
|
+
{
|
|
2477
|
+
variant: "filled",
|
|
2478
|
+
color: "tertiary",
|
|
2479
|
+
borderradius: "7px",
|
|
2480
|
+
onClick: c,
|
|
2481
|
+
"aria-label": l("text.cancel_edit"),
|
|
2482
|
+
children: l("text.cancel")
|
|
2483
|
+
}
|
|
2484
|
+
),
|
|
2485
|
+
/* @__PURE__ */ g.jsx(
|
|
2486
|
+
gr,
|
|
2487
|
+
{
|
|
2488
|
+
variant: "filled",
|
|
2489
|
+
onClick: u,
|
|
2490
|
+
borderradius: "7px",
|
|
2491
|
+
"aria-label": l("text.accept_edit"),
|
|
2492
|
+
children: l("text.accept")
|
|
2493
|
+
}
|
|
2494
|
+
)
|
|
2495
|
+
] })
|
|
2496
|
+
] }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
2497
|
+
/* @__PURE__ */ g.jsxs(R1, { children: [
|
|
2498
|
+
/* @__PURE__ */ g.jsxs("span", { className: "sr-only", children: [
|
|
2499
|
+
l("text.human_message"),
|
|
2500
|
+
": "
|
|
2501
|
+
] }),
|
|
2502
|
+
e.content
|
|
2503
|
+
] }),
|
|
2504
|
+
e.created_at && /* @__PURE__ */ g.jsx(
|
|
2505
|
+
"div",
|
|
2506
|
+
{
|
|
2507
|
+
style: {
|
|
2508
|
+
fontFamily: "Nunito Sans",
|
|
2509
|
+
fontStyle: "normal",
|
|
2510
|
+
fontWeight: 400,
|
|
2511
|
+
fontSize: "12px",
|
|
2512
|
+
color: "#363D47",
|
|
2513
|
+
marginTop: "0px",
|
|
2514
|
+
textAlign: "right"
|
|
2515
|
+
},
|
|
2516
|
+
children: ly(e.created_at)
|
|
2517
|
+
}
|
|
2518
|
+
)
|
|
2519
|
+
] }) });
|
|
2526
2520
|
};
|
|
2527
2521
|
function O1(e, t) {
|
|
2528
2522
|
const n = {};
|
|
@@ -31808,9 +31802,11 @@ const r4 = D.div`
|
|
|
31808
31802
|
}
|
|
31809
31803
|
) }, x)
|
|
31810
31804
|
) }),
|
|
31811
|
-
/* @__PURE__ */ g.
|
|
31805
|
+
!i && /* @__PURE__ */ g.jsx(
|
|
31812
31806
|
"div",
|
|
31813
31807
|
{
|
|
31808
|
+
role: "article",
|
|
31809
|
+
"aria-label": f("text.bot_message"),
|
|
31814
31810
|
style: {
|
|
31815
31811
|
position: "absolute",
|
|
31816
31812
|
left: "-9999px",
|
|
@@ -31818,13 +31814,7 @@ const r4 = D.div`
|
|
|
31818
31814
|
height: "1px",
|
|
31819
31815
|
overflow: "hidden"
|
|
31820
31816
|
},
|
|
31821
|
-
|
|
31822
|
-
"aria-live": "polite",
|
|
31823
|
-
children: [
|
|
31824
|
-
f("text.bot_message"),
|
|
31825
|
-
": ",
|
|
31826
|
-
e.content
|
|
31827
|
-
]
|
|
31817
|
+
children: e.content
|
|
31828
31818
|
}
|
|
31829
31819
|
)
|
|
31830
31820
|
] }),
|
|
@@ -32516,35 +32506,43 @@ const yL = (e) => {
|
|
|
32516
32506
|
}, 0));
|
|
32517
32507
|
}, [s, u]), /* @__PURE__ */ g.jsx(EL, { children: s ? /* @__PURE__ */ g.jsxs("div", { children: [
|
|
32518
32508
|
t && /* @__PURE__ */ g.jsx(SL, { children: s.title }),
|
|
32519
|
-
/* @__PURE__ */ g.jsxs(
|
|
32520
|
-
|
|
32521
|
-
|
|
32522
|
-
|
|
32523
|
-
|
|
32524
|
-
|
|
32525
|
-
|
|
32526
|
-
{
|
|
32527
|
-
|
|
32528
|
-
|
|
32529
|
-
|
|
32530
|
-
|
|
32531
|
-
|
|
32532
|
-
|
|
32533
|
-
|
|
32534
|
-
|
|
32535
|
-
|
|
32536
|
-
|
|
32537
|
-
|
|
32538
|
-
|
|
32539
|
-
|
|
32540
|
-
|
|
32541
|
-
|
|
32542
|
-
|
|
32543
|
-
|
|
32544
|
-
|
|
32545
|
-
|
|
32546
|
-
|
|
32547
|
-
|
|
32509
|
+
/* @__PURE__ */ g.jsxs(
|
|
32510
|
+
vL,
|
|
32511
|
+
{
|
|
32512
|
+
role: "log",
|
|
32513
|
+
"aria-live": "polite",
|
|
32514
|
+
"aria-relevant": "additions text",
|
|
32515
|
+
children: [
|
|
32516
|
+
n && /* @__PURE__ */ g.jsx(wL, { children: yL(s.created_at) }),
|
|
32517
|
+
l.length === 0 ? /* @__PURE__ */ g.jsx(TL, { children: o("text.welcome_text") }) : l.map((h) => {
|
|
32518
|
+
console.log("Renderizando mensaje:", h);
|
|
32519
|
+
const m = d === h.id;
|
|
32520
|
+
return /* @__PURE__ */ g.jsx("div", { children: h.sender_type === "user" ? /* @__PURE__ */ g.jsx(
|
|
32521
|
+
N1,
|
|
32522
|
+
{
|
|
32523
|
+
showeditIcon: i,
|
|
32524
|
+
message: h,
|
|
32525
|
+
showControlButtons: e
|
|
32526
|
+
}
|
|
32527
|
+
) : /* @__PURE__ */ g.jsx(
|
|
32528
|
+
y4,
|
|
32529
|
+
{
|
|
32530
|
+
showPlexo: r,
|
|
32531
|
+
showFeedbackButtons: a,
|
|
32532
|
+
message: h,
|
|
32533
|
+
isReading: m,
|
|
32534
|
+
onReadAloud: S,
|
|
32535
|
+
onStopReading: x,
|
|
32536
|
+
showControlButtons: e,
|
|
32537
|
+
onFeedback: C,
|
|
32538
|
+
isStreaming: c
|
|
32539
|
+
}
|
|
32540
|
+
) }, h.id);
|
|
32541
|
+
}),
|
|
32542
|
+
/* @__PURE__ */ g.jsx("div", { ref: p })
|
|
32543
|
+
]
|
|
32544
|
+
}
|
|
32545
|
+
)
|
|
32548
32546
|
] }) : /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsx("p", { children: t ? o("logMessages.no_conversations_available") : null }) }) });
|
|
32549
32547
|
};
|
|
32550
32548
|
var OE = { exports: {} };
|
|
@@ -845,7 +845,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
845
845
|
display: flex;
|
|
846
846
|
justify-content: flex-end; /* Alinea el icono de edición a la derecha */
|
|
847
847
|
margin-top: 5px;
|
|
848
|
-
`;const v1=({message:e,showControlButtons:t,showeditIcon:n})=>{const{editAndReplayMessage:r}=Cr(),[a,i]=I.useState(!1),[o,s]=I.useState(e.content),{t:l}=Ve.useTranslation("minerva"),u=async()=>{o.trim()&&o!==e.content&&await r(e.conversation_id,e.id,o),i(!1)},c=()=>{s(e.content),i(!1)};return g.jsx(h1,{role:"status",children:a?g.jsxs(g.Fragment,{children:[g.jsx(y1,{value:o,onChange:d=>s(d.target.value),rows:3,"aria-label":l("text.edit_message")}),g.jsxs(E1,{children:[g.jsx(Yn,{variant:"filled",color:"tertiary",borderradius:"7px",onClick:c,"aria-label":l("text.cancel_edit"),children:l("text.cancel")}),g.jsx(Yn,{variant:"filled",onClick:u,borderradius:"7px","aria-label":l("text.accept_edit"),children:l("text.accept")})]})]}):g.jsxs(g.Fragment,{children:[g.jsxs(b1,{children:[g.jsxs("span",{className:"sr-only",children:[l("text.human_message"),": "]}),e.content]}),e.created_at&&g.jsx("div",{style:{fontFamily:"Nunito Sans",fontStyle:"normal",fontWeight:400,fontSize:"12px",color:"#363D47",marginTop:"0px",textAlign:"right"},children:Qc(e.created_at)})]})})};function kL(){}function RL(){}function S1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const w1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,C1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T1={};function ed(e,t){return(T1.jsx?C1:w1).test(e)}const x1=/[ \t\n\f\r]/g;function _1(e){return typeof e=="object"?e.type==="text"?td(e.value):!1:td(e)}function td(e){return e.replace(x1,"")===""}let vn=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};vn.prototype.normal={},vn.prototype.property={},vn.prototype.space=void 0;function nd(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new vn(n,r,t)}function Nr(e){return e.toLowerCase()}let Fe=class{constructor(t,n){this.attribute=n,this.property=t}};Fe.prototype.attribute="",Fe.prototype.booleanish=!1,Fe.prototype.boolean=!1,Fe.prototype.commaOrSpaceSeparated=!1,Fe.prototype.commaSeparated=!1,Fe.prototype.defined=!1,Fe.prototype.mustUseProperty=!1,Fe.prototype.number=!1,Fe.prototype.overloadedBoolean=!1,Fe.prototype.property="",Fe.prototype.spaceSeparated=!1,Fe.prototype.space=void 0;let A1=0;const ue=Pt(),Ae=Pt(),Or=Pt(),q=Pt(),Se=Pt(),Zt=Pt(),Ye=Pt();function Pt(){return 2**++A1}const Lr=Object.freeze(Object.defineProperty({__proto__:null,boolean:ue,booleanish:Ae,commaOrSpaceSeparated:Ye,commaSeparated:Zt,number:q,overloadedBoolean:Or,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Dr=Object.keys(Lr);let Mr=class extends Fe{constructor(t,n,r,a){let i=-1;if(super(t,n),rd(this,"space",a),typeof r=="number")for(;++i<Dr.length;){const o=Dr[i];rd(this,Dr[i],(r&Lr[o])===Lr[o])}}};Mr.prototype.defined=!0;function rd(e,t,n){n&&(e[t]=n)}function Xt(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Mr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Nr(r)]=r,n[Nr(i.attribute)]=r}return new vn(t,n,e.space)}const ad=Xt({properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:Se,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:q,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:Se,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:Ae,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function id(e,t){return t in e?e[t]:t}function od(e,t){return id(e,t.toLowerCase())}const k1=Xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zt,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:Se,autoFocus:ue,autoPlay:ue,blocking:Se,capture:null,charSet:null,checked:ue,cite:null,className:Se,cols:q,colSpan:null,content:null,contentEditable:Ae,controls:ue,controlsList:Se,coords:q|Zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:Or,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:Se,height:q,hidden:Or,high:q,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:Se,itemRef:Se,itemScope:ue,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ue,optimum:q,pattern:null,ping:Se,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:Se,required:ue,reversed:ue,rows:q,rowSpan:q,sandbox:Se,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootClonable:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:Ae,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:od}),R1=Xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ye,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Se,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:Zt,g2:Zt,glyphName:Zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ye,rev:Ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ye,requiredFeatures:Ye,requiredFonts:Ye,requiredFormats:Ye,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ye,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:id}),sd=Xt({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()}}),ld=Xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:od}),ud=Xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),I1={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"},N1=/[A-Z]/g,cd=/-[a-z]/g,O1=/^data[-\w.:]+$/i;function L1(e,t){const n=Nr(t);let r=t,a=Fe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&O1.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(cd,M1);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!cd.test(i)){let o=i.replace(N1,D1);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Mr}return new a(r,t)}function D1(e){return"-"+e.toLowerCase()}function M1(e){return e.charAt(1).toUpperCase()}const P1=nd([ad,k1,sd,ld,ud],"html"),Pr=nd([ad,R1,sd,ld,ud],"svg");function F1(e){return e.join(" ").trim()}var Fr={},dd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,U1=/\n/g,B1=/^\s*/,$1=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,j1=/^:\s*/,q1=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,z1=/^[;\s]*/,G1=/^\s+|\s+$/g,H1=`
|
|
848
|
+
`;const v1=({message:e,showControlButtons:t,showeditIcon:n})=>{const{editAndReplayMessage:r}=Cr(),[a,i]=I.useState(!1),[o,s]=I.useState(e.content),{t:l}=Ve.useTranslation("minerva"),u=async()=>{o.trim()&&o!==e.content&&await r(e.conversation_id,e.id,o),i(!1)},c=()=>{s(e.content),i(!1)};return g.jsx(h1,{role:"article","aria-label":"Mensaje del usuario",children:a?g.jsxs(g.Fragment,{children:[g.jsx(y1,{value:o,onChange:d=>s(d.target.value),rows:3,"aria-label":l("text.edit_message")}),g.jsxs(E1,{children:[g.jsx(Yn,{variant:"filled",color:"tertiary",borderradius:"7px",onClick:c,"aria-label":l("text.cancel_edit"),children:l("text.cancel")}),g.jsx(Yn,{variant:"filled",onClick:u,borderradius:"7px","aria-label":l("text.accept_edit"),children:l("text.accept")})]})]}):g.jsxs(g.Fragment,{children:[g.jsxs(b1,{children:[g.jsxs("span",{className:"sr-only",children:[l("text.human_message"),": "]}),e.content]}),e.created_at&&g.jsx("div",{style:{fontFamily:"Nunito Sans",fontStyle:"normal",fontWeight:400,fontSize:"12px",color:"#363D47",marginTop:"0px",textAlign:"right"},children:Qc(e.created_at)})]})})};function kL(){}function RL(){}function S1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const w1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,C1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T1={};function ed(e,t){return(T1.jsx?C1:w1).test(e)}const x1=/[ \t\n\f\r]/g;function _1(e){return typeof e=="object"?e.type==="text"?td(e.value):!1:td(e)}function td(e){return e.replace(x1,"")===""}let vn=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};vn.prototype.normal={},vn.prototype.property={},vn.prototype.space=void 0;function nd(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new vn(n,r,t)}function Nr(e){return e.toLowerCase()}let Fe=class{constructor(t,n){this.attribute=n,this.property=t}};Fe.prototype.attribute="",Fe.prototype.booleanish=!1,Fe.prototype.boolean=!1,Fe.prototype.commaOrSpaceSeparated=!1,Fe.prototype.commaSeparated=!1,Fe.prototype.defined=!1,Fe.prototype.mustUseProperty=!1,Fe.prototype.number=!1,Fe.prototype.overloadedBoolean=!1,Fe.prototype.property="",Fe.prototype.spaceSeparated=!1,Fe.prototype.space=void 0;let A1=0;const ue=Pt(),Ae=Pt(),Or=Pt(),q=Pt(),Se=Pt(),Zt=Pt(),Ye=Pt();function Pt(){return 2**++A1}const Lr=Object.freeze(Object.defineProperty({__proto__:null,boolean:ue,booleanish:Ae,commaOrSpaceSeparated:Ye,commaSeparated:Zt,number:q,overloadedBoolean:Or,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),Dr=Object.keys(Lr);let Mr=class extends Fe{constructor(t,n,r,a){let i=-1;if(super(t,n),rd(this,"space",a),typeof r=="number")for(;++i<Dr.length;){const o=Dr[i];rd(this,Dr[i],(r&Lr[o])===Lr[o])}}};Mr.prototype.defined=!0;function rd(e,t,n){n&&(e[t]=n)}function Xt(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Mr(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Nr(r)]=r,n[Nr(i.attribute)]=r}return new vn(t,n,e.space)}const ad=Xt({properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:Se,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:q,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:Se,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:Ae,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function id(e,t){return t in e?e[t]:t}function od(e,t){return id(e,t.toLowerCase())}const k1=Xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zt,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:Se,autoFocus:ue,autoPlay:ue,blocking:Se,capture:null,charSet:null,checked:ue,cite:null,className:Se,cols:q,colSpan:null,content:null,contentEditable:Ae,controls:ue,controlsList:Se,coords:q|Zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:Or,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:Se,height:q,hidden:Or,high:q,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:Se,itemRef:Se,itemScope:ue,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ue,optimum:q,pattern:null,ping:Se,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:Se,required:ue,reversed:ue,rows:q,rowSpan:q,sandbox:Se,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootClonable:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:Ae,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:od}),R1=Xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ye,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Se,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:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,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:Zt,g2:Zt,glyphName:Zt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Ye,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,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:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ye,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ye,rev:Ye,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ye,requiredFeatures:Ye,requiredFonts:Ye,requiredFormats:Ye,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:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Ye,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ye,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ye,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:id}),sd=Xt({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()}}),ld=Xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:od}),ud=Xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),I1={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"},N1=/[A-Z]/g,cd=/-[a-z]/g,O1=/^data[-\w.:]+$/i;function L1(e,t){const n=Nr(t);let r=t,a=Fe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&O1.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(cd,M1);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!cd.test(i)){let o=i.replace(N1,D1);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Mr}return new a(r,t)}function D1(e){return"-"+e.toLowerCase()}function M1(e){return e.charAt(1).toUpperCase()}const P1=nd([ad,k1,sd,ld,ud],"html"),Pr=nd([ad,R1,sd,ld,ud],"svg");function F1(e){return e.join(" ").trim()}var Fr={},dd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,U1=/\n/g,B1=/^\s*/,$1=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,j1=/^:\s*/,q1=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,z1=/^[;\s]*/,G1=/^\s+|\s+$/g,H1=`
|
|
849
849
|
`,pd="/",fd="*",Ft="",V1="comment",W1="declaration",Y1=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 a(E){var S=E.match(U1);S&&(n+=S.length);var x=E.lastIndexOf(H1);r=~x?E.length-x:r+E.length}function i(){var E={line:n,column:r};return function(S){return S.position=new o(E),u(),S}}function o(E){this.start=E,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(E){var S=new Error(t.source+":"+n+":"+r+": "+E);if(S.reason=E,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(E){var S=E.exec(e);if(S){var x=S[0];return a(x),e=e.slice(x.length),S}}function u(){l(B1)}function c(E){var S;for(E=E||[];S=d();)S!==!1&&E.push(S);return E}function d(){var E=i();if(!(pd!=e.charAt(0)||fd!=e.charAt(1))){for(var S=2;Ft!=e.charAt(S)&&(fd!=e.charAt(S)||pd!=e.charAt(S+1));)++S;if(S+=2,Ft===e.charAt(S-1))return s("End of comment missing");var x=e.slice(2,S-2);return r+=2,a(x),e=e.slice(S),r+=2,E({type:V1,comment:x})}}function f(){var E=i(),S=l($1);if(S){if(d(),!l(j1))return s("property missing ':'");var x=l(q1),T=E({type:W1,property:gd(S[0].replace(dd,Ft)),value:x?gd(x[0].replace(dd,Ft)):Ft});return l(z1),T}}function p(){var E=[];c(E);for(var S;S=f();)S!==!1&&(E.push(S),c(E));return E}return u(),p()};function gd(e){return e?e.replace(G1,Ft):Ft}var K1=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=X1;var Z1=K1(Y1);function X1(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Z1.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,s=i.value;a?t(o,s,i):s&&(n=n||{},n[o]=s)}}),n}var Kn={};Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.camelCase=void 0;var J1=/^--[a-zA-Z0-9_-]+$/,Q1=/-([a-z])/g,eS=/^[^-]+$/,tS=/^-(webkit|moz|ms|o|khtml)-/,nS=/^-(ms)-/,rS=function(e){return!e||eS.test(e)||J1.test(e)},aS=function(e,t){return t.toUpperCase()},md=function(e,t){return"".concat(t,"-")},iS=function(e,t){return t===void 0&&(t={}),rS(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(nS,md):e=e.replace(tS,md),e.replace(Q1,aS))};Kn.camelCase=iS;var oS=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},sS=oS(Fr),lS=Kn;function Ur(e,t){var n={};return!e||typeof e!="string"||(0,sS.default)(e,function(r,a){r&&a&&(n[(0,lS.camelCase)(r,t)]=a)}),n}Ur.default=Ur;var uS=Ur;const cS=Lt(uS),hd=bd("end"),Br=bd("start");function bd(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 dS(e){const t=Br(e),n=hd(e);if(t&&n)return{start:t,end:n}}function Sn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ed(e.position):"start"in e||"end"in e?Ed(e):"line"in e||"column"in e?$r(e):""}function $r(e){return yd(e&&e.line)+":"+yd(e&&e.column)}function Ed(e){return $r(e&&e.start)+"-"+$r(e&&e.end)}function yd(e){return e&&typeof e=="number"?e:1}class Ne extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=Sn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ne.prototype.file="",Ne.prototype.name="",Ne.prototype.reason="",Ne.prototype.message="",Ne.prototype.stack="",Ne.prototype.column=void 0,Ne.prototype.line=void 0,Ne.prototype.ancestors=void 0,Ne.prototype.cause=void 0,Ne.prototype.fatal=void 0,Ne.prototype.place=void 0,Ne.prototype.ruleId=void 0,Ne.prototype.source=void 0;const jr={}.hasOwnProperty,pS=new Map,fS=/[A-Z]/g,gS=new Set(["table","tbody","thead","tfoot","tr"]),mS=new Set(["td","th"]),vd="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function hS(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=TS(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=CS(n,t.jsx,t.jsxs)}const a={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"?Pr:P1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Sd(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Sd(e,t,n){if(t.type==="element")return bS(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ES(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return vS(e,t,n);if(t.type==="mdxjsEsm")return yS(e,t);if(t.type==="root")return SS(e,t,n);if(t.type==="text")return wS(e,t)}function bS(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Pr,e.schema=a),e.ancestors.push(t);const i=Cd(e,t.tagName,!1),o=xS(e,t);let s=zr(e,t);return gS.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!_1(l):!0})),wd(e,o,i,t),qr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function ES(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)}wn(e,t.position)}function yS(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wn(e,t.position)}function vS(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Pr,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Cd(e,t.name,!0),o=_S(e,t),s=zr(e,t);return wd(e,o,i,t),qr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function SS(e,t,n){const r={};return qr(r,zr(e,t)),e.create(t,e.Fragment,r,n)}function wS(e,t){return t.value}function wd(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function qr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function CS(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function TS(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=Br(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function xS(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&jr.call(t.properties,a)){const i=AS(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&mS.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function _S(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else wn(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else wn(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function zr(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:pS;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=Sd(e,i,o);s!==void 0&&n.push(s)}return n}function AS(e,t,n){const r=L1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?S1(n):F1(n)),r.property==="style"){let a=typeof n=="object"?n:kS(e,String(n));return e.stylePropertyNameCase==="css"&&(a=RS(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?I1[r.property]||r.property:r.attribute,n]}}function kS(e,t){try{return cS(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Ne("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=vd+"#cannot-parse-style-attribute",a}}function Cd(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=ed(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=ed(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return jr.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);wn(e)}function wn(e,t){const n=new Ne("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=vd+"#cannot-handle-mdx-estrees-without-createevaluater",n}function RS(e){const t={};let n;for(n in e)jr.call(e,n)&&(t[IS(n)]=e[n]);return t}function IS(e){let t=e.replace(fS,NS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function NS(e){return"-"+e.toLowerCase()}const Gr={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"]},OS={};function LS(e,t){const n=OS,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Td(e,r,a)}function Td(e,t,n){if(DS(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 xd(e.children,t,n)}return Array.isArray(e)?xd(e,t,n):""}function xd(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Td(e[a],t,n);return r.join("")}function DS(e){return!!(e&&typeof e=="object")}const _d=document.createElement("i");function Hr(e){const t="&"+e+";";_d.innerHTML=t;const n=_d.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function dt(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Qe(e,t){return e.length>0?(dt(e,e.length,0,t),e):t}const Ad={}.hasOwnProperty;function MS(e){const t={};let n=-1;for(;++n<e.length;)PS(t,e[n]);return t}function PS(e,t){let n;for(n in t){const a=(Ad.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Ad.call(a,o)||(a[o]=[]);const s=i[o];FS(a[o],Array.isArray(s)?s:s?[s]:[])}}}function FS(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);dt(e,0,0,r)}function kd(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 Jt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pt=Ct(/[A-Za-z]/),Ke=Ct(/[\dA-Za-z]/),US=Ct(/[#-'*+\--9=?A-Z^-~]/);function Vr(e){return e!==null&&(e<32||e===127)}const Wr=Ct(/\d/),BS=Ct(/[\dA-Fa-f]/),$S=Ct(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function Ue(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const jS=Ct(new RegExp("\\p{P}|\\p{S}","u")),qS=Ct(/\s/);function Ct(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Qt(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Ke(e.charCodeAt(n+1))&&Ke(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function we(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return me(l)?(e.enter(n),s(l)):t(l)}function s(l){return me(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const zS={tokenize:GS};function GS(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),we(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ie(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const HS={tokenize:VS},Rd={tokenize:WS};function VS(e){const t=this,n=[];let r=0,a,i,o;return s;function s(m){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,l,u)(m)}return u(m)}function l(m){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&h();const _=t.events.length;let v=_,b;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){b=t.events[v][1].end;break}T(r);let R=_;for(;R<t.events.length;)t.events[R][1].end={...b},R++;return dt(t.events,v+1,0,t.events.slice(_)),t.events.length=R,u(m)}return s(m)}function u(m){if(r===n.length){if(!a)return f(m);if(a.currentConstruct&&a.currentConstruct.concrete)return E(m);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Rd,c,d)(m)}function c(m){return a&&h(),T(r),f(m)}function d(m){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,E(m)}function f(m){return t.containerState={},e.attempt(Rd,p,E)(m)}function p(m){return r++,n.push([t.currentConstruct,t.containerState]),f(m)}function E(m){if(m===null){a&&h(),T(0),e.consume(m);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),S(m)}function S(m){if(m===null){x(e.exit("chunkFlow"),!0),T(0),e.consume(m);return}return ie(m)?(e.consume(m),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(m),S)}function x(m,_){const v=t.sliceStream(m);if(_&&v.push(null),m.previous=i,i&&(i.next=m),i=m,a.defineSkip(m.start),a.write(v),t.parser.lazy[m.start.line]){let b=a.events.length;for(;b--;)if(a.events[b][1].start.offset<o&&(!a.events[b][1].end||a.events[b][1].end.offset>o))return;const R=t.events.length;let M=R,k,D;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(k){D=t.events[M][1].end;break}k=!0}for(T(r),b=R;b<t.events.length;)t.events[b][1].end={...D},b++;dt(t.events,M+1,0,t.events.slice(R)),t.events.length=b}}function T(m){let _=n.length;for(;_-- >m;){const v=n[_];t.containerState=v[1],v[0].exit.call(t,e)}n.length=m}function h(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function WS(e,t,n){return we(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Id(e){if(e===null||Ue(e)||qS(e))return 1;if(jS(e))return 2}function Yr(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Kr={name:"attention",resolveAll:YS,tokenize:KS};function YS(e,t){let n=-1,r,a,i,o,s,l,u,c;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;l=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 d={...e[r][1].end},f={...e[n][1].start};Nd(d,-l),Nd(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Qe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Qe(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Qe(u,Yr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Qe(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Qe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,dt(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function KS(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Id(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const u=e.exit("attentionSequence"),c=Id(l),d=!c||c===2&&a||n.includes(l),f=!a||a===2&&c||n.includes(r);return u._open=!!(i===42?d:d&&(a||!f)),u._close=!!(i===42?f:f&&(c||!d)),t(l)}}function Nd(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ZS={name:"autolink",tokenize:XS};function XS(e,t,n){let r=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return pt(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||Ke(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Ke(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(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||Vr(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),c):US(p)?(e.consume(p),u):n(p)}function c(p){return Ke(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Ke(p))&&r++<63){const E=p===45?f:d;return e.consume(p),E}return n(p)}}const Zn={partial:!0,tokenize:JS};function JS(e,t,n){return r;function r(i){return me(i)?we(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ie(i)?t(i):n(i)}}const Od={continuation:{tokenize:ew},exit:tw,name:"blockQuote",tokenize:QS};function QS(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return me(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ew(e,t,n){const r=this;return a;function a(o){return me(o)?we(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(Od,t,n)(o)}}function tw(e){e.exit("blockQuote")}const Ld={name:"characterEscape",tokenize:nw};function nw(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return $S(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Dd={name:"characterReference",tokenize:rw};function rw(e,t,n){const r=this;let a=0,i,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Ke,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=BS,c):(e.enter("characterReferenceValue"),i=7,o=Wr,c(d))}function c(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return o===Ke&&!Hr(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&a++<i?(e.consume(d),c):n(d)}}const Md={partial:!0,tokenize:iw},Pd={concrete:!0,name:"codeFenced",tokenize:aw};function aw(e,t,n){const r=this,a={partial:!0,tokenize:v};let i=0,o=0,s;return l;function l(b){return u(b)}function u(b){const R=r.events[r.events.length-1];return i=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,s=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(b)}function c(b){return b===s?(o++,e.consume(b),c):o<3?n(b):(e.exit("codeFencedFenceSequence"),me(b)?we(e,d,"whitespace")(b):d(b))}function d(b){return b===null||ie(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Md,S,_)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===null||ie(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(b)):me(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),we(e,p,"whitespace")(b)):b===96&&b===s?n(b):(e.consume(b),f)}function p(b){return b===null||ie(b)?d(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(b))}function E(b){return b===null||ie(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(b)):b===96&&b===s?n(b):(e.consume(b),E)}function S(b){return e.attempt(a,_,x)(b)}function x(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),T}function T(b){return i>0&&me(b)?we(e,h,"linePrefix",i+1)(b):h(b)}function h(b){return b===null||ie(b)?e.check(Md,S,_)(b):(e.enter("codeFlowValue"),m(b))}function m(b){return b===null||ie(b)?(e.exit("codeFlowValue"),h(b)):(e.consume(b),m)}function _(b){return e.exit("codeFenced"),t(b)}function v(b,R,M){let k=0;return D;function D(j){return b.enter("lineEnding"),b.consume(j),b.exit("lineEnding"),N}function N(j){return b.enter("codeFencedFence"),me(j)?we(b,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):P(j)}function P(j){return j===s?(b.enter("codeFencedFenceSequence"),B(j)):M(j)}function B(j){return j===s?(k++,b.consume(j),B):k>=o?(b.exit("codeFencedFenceSequence"),me(j)?we(b,z,"whitespace")(j):z(j)):M(j)}function z(j){return j===null||ie(j)?(b.exit("codeFencedFence"),R(j)):M(j)}}}function iw(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Zr={name:"codeIndented",tokenize:sw},ow={partial:!0,tokenize:lw};function sw(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),we(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):ie(u)?e.attempt(ow,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ie(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function lw(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):ie(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):we(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):ie(o)?a(o):n(o)}}const uw={name:"codeText",previous:dw,resolve:cw,tokenize:pw};function cw(e){let t=e.length-4,n=3,r,a;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;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function dw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pw(e,t,n){let r=0,a,i;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,c(d)):ie(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||ie(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",u(d))}}class fw{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 a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Cn(this.left,r),i.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),Cn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cn(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);Cn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cn(this.left,n.reverse())}}}function Cn(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 Fd(e){const t={};let n=-1,r,a,i,o,s,l,u;const c=new fw(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,gw(c,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=c.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},s=c.slice(a,n),s.unshift(r),c.splice(a,n-a+1,s))}}return dt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function gw(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let c,d,f=-1,p=n,E=0,S=0;const x=[S];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(S=f+1,x.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),f=x.length;f--;){const T=s.slice(x[f],x[f+1]),h=i.pop();l.push([h,h+T.length-1]),e.splice(h,2,T)}for(l.reverse(),f=-1;++f<l.length;)u[E+l[f][0]]=E+l[f][1],E+=l[f][1]-l[f][0]-1;return u}const mw={resolve:bw,tokenize:Ew},hw={partial:!0,tokenize:yw};function bw(e){return Fd(e),e}function Ew(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):ie(s)?e.check(hw,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function yw(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),we(e,i,"linePrefix")}function i(o){if(o===null||ie(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Ud(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(T){return T===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(T),e.exit(i),f):T===null||T===32||T===41||Vr(T)?n(T):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),S(T))}function f(T){return T===62?(e.enter(i),e.consume(T),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===62?(e.exit("chunkString"),e.exit(s),f(T)):T===null||T===60||ie(T)?n(T):(e.consume(T),T===92?E:p)}function E(T){return T===60||T===62||T===92?(e.consume(T),p):p(T)}function S(T){return!c&&(T===null||T===41||Ue(T))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(T)):c<u&&T===40?(e.consume(T),c++,S):T===41?(e.consume(T),c--,S):T===null||T===32||T===40||Vr(T)?n(T):(e.consume(T),T===92?x:S)}function x(T){return T===40||T===41||T===92?(e.consume(T),S):S(T)}}function Bd(e,t,n,r,a,i){const o=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):ie(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ie(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!me(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function $d(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),l(o)):f===null?n(f):ie(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),we(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||ie(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function Tn(e,t){let n;return r;function r(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):me(a)?we(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const vw={name:"definition",tokenize:ww},Sw={partial:!0,tokenize:Cw};function ww(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return Bd.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return a=Jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Ue(p)?Tn(e,u)(p):u(p)}function u(p){return Ud(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Sw,d,d)(p)}function d(p){return me(p)?we(e,f,"whitespace")(p):f(p)}function f(p){return p===null||ie(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function Cw(e,t,n){return r;function r(s){return Ue(s)?Tn(e,a)(s):n(s)}function a(s){return $d(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return me(s)?we(e,o,"whitespace")(s):o(s)}function o(s){return s===null||ie(s)?t(s):n(s)}}const Tw={name:"hardBreakEscape",tokenize:xw};function xw(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ie(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const _w={name:"headingAtx",resolve:Aw,tokenize:kw};function Aw(e,t){let n=e.length-2,r=3,a,i;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&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},dt(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function kw(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Ue(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||ie(c)?(e.exit("atxHeading"),t(c)):me(c)?we(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||Ue(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Rw=["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"],jd=["pre","script","style","textarea"],Iw={concrete:!0,name:"htmlFlow",resolveTo:Lw,tokenize:Dw},Nw={partial:!0,tokenize:Pw},Ow={partial:!0,tokenize:Mw};function Lw(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 Dw(e,t,n){const r=this;let a,i,o,s,l;return u;function u(C){return c(C)}function c(C){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(C),d}function d(C){return C===33?(e.consume(C),f):C===47?(e.consume(C),i=!0,S):C===63?(e.consume(C),a=3,r.interrupt?t:w):pt(C)?(e.consume(C),o=String.fromCharCode(C),x):n(C)}function f(C){return C===45?(e.consume(C),a=2,p):C===91?(e.consume(C),a=5,s=0,E):pt(C)?(e.consume(C),a=4,r.interrupt?t:w):n(C)}function p(C){return C===45?(e.consume(C),r.interrupt?t:w):n(C)}function E(C){const Y="CDATA[";return C===Y.charCodeAt(s++)?(e.consume(C),s===Y.length?r.interrupt?t:P:E):n(C)}function S(C){return pt(C)?(e.consume(C),o=String.fromCharCode(C),x):n(C)}function x(C){if(C===null||C===47||C===62||Ue(C)){const Y=C===47,X=o.toLowerCase();return!Y&&!i&&jd.includes(X)?(a=1,r.interrupt?t(C):P(C)):Rw.includes(o.toLowerCase())?(a=6,Y?(e.consume(C),T):r.interrupt?t(C):P(C)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(C):i?h(C):m(C))}return C===45||Ke(C)?(e.consume(C),o+=String.fromCharCode(C),x):n(C)}function T(C){return C===62?(e.consume(C),r.interrupt?t:P):n(C)}function h(C){return me(C)?(e.consume(C),h):D(C)}function m(C){return C===47?(e.consume(C),D):C===58||C===95||pt(C)?(e.consume(C),_):me(C)?(e.consume(C),m):D(C)}function _(C){return C===45||C===46||C===58||C===95||Ke(C)?(e.consume(C),_):v(C)}function v(C){return C===61?(e.consume(C),b):me(C)?(e.consume(C),v):m(C)}function b(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),l=C,R):me(C)?(e.consume(C),b):M(C)}function R(C){return C===l?(e.consume(C),l=null,k):C===null||ie(C)?n(C):(e.consume(C),R)}function M(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||Ue(C)?v(C):(e.consume(C),M)}function k(C){return C===47||C===62||me(C)?m(C):n(C)}function D(C){return C===62?(e.consume(C),N):n(C)}function N(C){return C===null||ie(C)?P(C):me(C)?(e.consume(C),N):n(C)}function P(C){return C===45&&a===2?(e.consume(C),H):C===60&&a===1?(e.consume(C),Z):C===62&&a===4?(e.consume(C),O):C===63&&a===3?(e.consume(C),w):C===93&&a===5?(e.consume(C),J):ie(C)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Nw,U,B)(C)):C===null||ie(C)?(e.exit("htmlFlowData"),B(C)):(e.consume(C),P)}function B(C){return e.check(Ow,z,U)(C)}function z(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),j}function j(C){return C===null||ie(C)?B(C):(e.enter("htmlFlowData"),P(C))}function H(C){return C===45?(e.consume(C),w):P(C)}function Z(C){return C===47?(e.consume(C),o="",W):P(C)}function W(C){if(C===62){const Y=o.toLowerCase();return jd.includes(Y)?(e.consume(C),O):P(C)}return pt(C)&&o.length<8?(e.consume(C),o+=String.fromCharCode(C),W):P(C)}function J(C){return C===93?(e.consume(C),w):P(C)}function w(C){return C===62?(e.consume(C),O):C===45&&a===2?(e.consume(C),w):P(C)}function O(C){return C===null||ie(C)?(e.exit("htmlFlowData"),U(C)):(e.consume(C),O)}function U(C){return e.exit("htmlFlow"),t(C)}}function Mw(e,t,n){const r=this;return a;function a(o){return ie(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Pw(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Zn,t,n)}}const Fw={name:"htmlText",tokenize:Uw};function Uw(e,t,n){const r=this;let a,i,o;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),l}function l(w){return w===33?(e.consume(w),u):w===47?(e.consume(w),v):w===63?(e.consume(w),m):pt(w)?(e.consume(w),M):n(w)}function u(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),i=0,E):pt(w)?(e.consume(w),h):n(w)}function c(w){return w===45?(e.consume(w),p):n(w)}function d(w){return w===null?n(w):w===45?(e.consume(w),f):ie(w)?(o=d,Z(w)):(e.consume(w),d)}function f(w){return w===45?(e.consume(w),p):d(w)}function p(w){return w===62?H(w):w===45?f(w):d(w)}function E(w){const O="CDATA[";return w===O.charCodeAt(i++)?(e.consume(w),i===O.length?S:E):n(w)}function S(w){return w===null?n(w):w===93?(e.consume(w),x):ie(w)?(o=S,Z(w)):(e.consume(w),S)}function x(w){return w===93?(e.consume(w),T):S(w)}function T(w){return w===62?H(w):w===93?(e.consume(w),T):S(w)}function h(w){return w===null||w===62?H(w):ie(w)?(o=h,Z(w)):(e.consume(w),h)}function m(w){return w===null?n(w):w===63?(e.consume(w),_):ie(w)?(o=m,Z(w)):(e.consume(w),m)}function _(w){return w===62?H(w):m(w)}function v(w){return pt(w)?(e.consume(w),b):n(w)}function b(w){return w===45||Ke(w)?(e.consume(w),b):R(w)}function R(w){return ie(w)?(o=R,Z(w)):me(w)?(e.consume(w),R):H(w)}function M(w){return w===45||Ke(w)?(e.consume(w),M):w===47||w===62||Ue(w)?k(w):n(w)}function k(w){return w===47?(e.consume(w),H):w===58||w===95||pt(w)?(e.consume(w),D):ie(w)?(o=k,Z(w)):me(w)?(e.consume(w),k):H(w)}function D(w){return w===45||w===46||w===58||w===95||Ke(w)?(e.consume(w),D):N(w)}function N(w){return w===61?(e.consume(w),P):ie(w)?(o=N,Z(w)):me(w)?(e.consume(w),N):k(w)}function P(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,B):ie(w)?(o=P,Z(w)):me(w)?(e.consume(w),P):(e.consume(w),z)}function B(w){return w===a?(e.consume(w),a=void 0,j):w===null?n(w):ie(w)?(o=B,Z(w)):(e.consume(w),B)}function z(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Ue(w)?k(w):(e.consume(w),z)}function j(w){return w===47||w===62||Ue(w)?k(w):n(w)}function H(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function Z(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),W}function W(w){return me(w)?we(e,J,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):J(w)}function J(w){return e.enter("htmlTextData"),o(w)}}const Xr={name:"labelEnd",resolveAll:qw,resolveTo:zw,tokenize:Gw},Bw={tokenize:Hw},$w={tokenize:Vw},jw={tokenize:Ww};function qw(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 a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&dt(e,0,e.length,n),e}function zw(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=Qe(s,e.slice(i+1,i+r+3)),s=Qe(s,[["enter",c,t]]),s=Qe(s,Yr(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=Qe(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=Qe(s,e.slice(o+1)),s=Qe(s,[["exit",l,t]]),dt(e,i,e.length,s),e}function Gw(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(f){return i?i._inactive?d(f):(o=r.parser.defined.includes(Jt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Bw,c,o?c:d)(f):f===91?e.attempt($w,c,o?u:d)(f):o?c(f):d(f)}function u(f){return e.attempt(jw,c,d)(f)}function c(f){return t(f)}function d(f){return i._balanced=!0,n(f)}}function Hw(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Ue(d)?Tn(e,i)(d):i(d)}function i(d){return d===41?c(d):Ud(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return Ue(d)?Tn(e,l)(d):c(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?$d(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Ue(d)?Tn(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Vw(e,t,n){const r=this;return a;function a(s){return Bd.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(Jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Ww(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const Yw={name:"labelStartImage",resolveAll:Xr.resolveAll,tokenize:Kw};function Kw(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Zw={name:"labelStartLink",resolveAll:Xr.resolveAll,tokenize:Xw};function Xw(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Jr={name:"lineEnding",tokenize:Jw};function Jw(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),we(e,t,"linePrefix")}}const Xn={name:"thematicBreak",tokenize:Qw};function Qw(e,t,n){let r=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ie(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),me(u)?we(e,s,"whitespace")(u):s(u))}}const Be={continuation:{tokenize:rC},exit:iC,name:"list",tokenize:nC},eC={partial:!0,tokenize:oC},tC={partial:!0,tokenize:aC};function nC(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(p){const E=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Wr(p)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Xn,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Wr(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Zn,r.interrupt?n:c,e.attempt(eC,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return me(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function rC(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zn,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,we(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!me(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tC,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,we(e,e.attempt(Be,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function aC(e,t,n){const r=this;return we(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function iC(e){e.exit(this.containerState.type)}function oC(e,t,n){const r=this;return we(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!me(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const qd={name:"setextUnderline",resolveTo:sC,tokenize:lC};function sC(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function lC(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),me(u)?we(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ie(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const uC={tokenize:cC};function cC(e){const t=this,n=e.attempt(Zn,r,e.attempt(this.parser.constructs.flowInitial,a,we(e,e.attempt(this.parser.constructs.flow,a,e.attempt(mw,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const dC={resolveAll:Gd()},pC=zd("string"),fC=zd("text");function zd(e){return{resolveAll:Gd(e==="text"?gC:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(c){return u(c)?i(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Gd(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function gC(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],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const mC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:vw},disable:{null:[]},document:{42:Be,43:Be,45:Be,48:Be,49:Be,50:Be,51:Be,52:Be,53:Be,54:Be,55:Be,56:Be,57:Be,62:Od},flow:{35:_w,42:Xn,45:[qd,Xn],60:Iw,61:qd,95:Xn,96:Pd,126:Pd},flowInitial:{[-2]:Zr,[-1]:Zr,32:Zr},insideSpan:{null:[Kr,dC]},string:{38:Dd,92:Ld},text:{[-5]:Jr,[-4]:Jr,[-3]:Jr,33:Yw,38:Dd,42:Kr,60:[ZS,Fw],91:Zw,92:[Tw,Ld],93:Xr,95:Kr,96:uw}},Symbol.toStringTag,{value:"Module"}));function hC(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 a={},i=[];let o=[],s=[];const l={attempt:R(v),check:R(b),consume:h,enter:m,exit:_,interrupt:R(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:E,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function d(N){return o=Qe(o,N),x(),o[o.length-1]!==null?[]:(M(t,0),u.events=Yr(i,u.events,u),u.events)}function f(N,P){return EC(p(N),P)}function p(N){return bC(o,N)}function E(){const{_bufferIndex:N,_index:P,line:B,column:z,offset:j}=r;return{_bufferIndex:N,_index:P,line:B,column:z,offset:j}}function S(N){a[N.line]=N.column,D()}function x(){let N;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<P.length;)T(P.charCodeAt(r._bufferIndex));else T(P)}}function T(N){c=c(N)}function h(N){ie(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,D()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=N}function m(N,P){const B=P||{};return B.type=N,B.start=E(),u.events.push(["enter",B,u]),s.push(B),B}function _(N){const P=s.pop();return P.end=E(),u.events.push(["exit",P,u]),P}function v(N,P){M(N,P.from)}function b(N,P){P.restore()}function R(N,P){return B;function B(z,j,H){let Z,W,J,w;return Array.isArray(z)?U(z):"tokenize"in z?U([z]):O(z);function O(K){return ee;function ee(te){const ne=te!==null&&K[te],oe=te!==null&&K.null,re=[...Array.isArray(ne)?ne:ne?[ne]:[],...Array.isArray(oe)?oe:oe?[oe]:[]];return U(re)(te)}}function U(K){return Z=K,W=0,K.length===0?H:C(K[W])}function C(K){return ee;function ee(te){return w=k(),J=K,K.partial||(u.currentConstruct=K),K.name&&u.parser.constructs.disable.null.includes(K.name)?X():K.tokenize.call(P?Object.assign(Object.create(u),P):u,l,Y,X)(te)}}function Y(K){return N(J,w),j}function X(K){return w.restore(),++W<Z.length?C(Z[W]):H}}}function M(N,P){N.resolveAll&&!i.includes(N)&&i.push(N),N.resolve&&dt(u.events,P,u.events.length-P,N.resolve(u.events.slice(P),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function k(){const N=E(),P=u.previous,B=u.currentConstruct,z=u.events.length,j=Array.from(s);return{from:z,restore:H};function H(){r=N,u.previous=P,u.currentConstruct=B,u.events.length=z,s=j,D()}}function D(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function bC(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function EC(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
850
850
|
`;break}case-3:{o=`\r
|
|
851
851
|
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function yC(e){const r={constructs:MS([mC,...(e||{}).extensions||[]]),content:a(zS),defined:[],document:a(HS),flow:a(uC),lazy:{},string:a(pC),text:a(fC)};return r;function a(i){return o;function o(s){return hC(r,i,s)}}}function vC(e){for(;!Fd(e););return e}const Hd=/[\0\t\n\r]/g;function SC(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let u,c,d,f,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(Hd.lastIndex=d,u=Hd.exec(i),f=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(f),!u){t=i.slice(d);break}if(p===10&&d===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<f&&(l.push(i.slice(d,f)),e+=f-d),p){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const wC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CC(e){return e.replace(wC,TC)}function TC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return kd(n.slice(i?2:1),i?16:10)}return Hr(n)||e}const Vd={}.hasOwnProperty;function xC(e,t,n){return typeof t!="string"&&(n=t,t=void 0),_C(n)(vC(yC(n).document().write(SC()(e,t,!0))))}function _C(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ht),autolinkProtocol:k,autolinkEmail:k,atxHeading:i(st),blockQuote:i(oe),characterEscape:k,characterReference:k,codeFenced:i(re),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(re,o),codeText:i(Te,o),codeTextData:k,data:k,codeFlowValue:k,definition:i(V),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Oe),hardBreakEscape:i(Xe),hardBreakTrailing:i(Xe),htmlFlow:i(lt,o),htmlFlowData:k,htmlText:i(lt,o),htmlTextData:k,image:i(fn),label:o,link:i(Ht),listItem:i(It),listItemValue:f,listOrdered:i(De,d),listUnordered:i(De),paragraph:i(gn),reference:C,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(st),strong:i(Nt),thematicBreak:i(mn)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:ne,autolinkProtocol:te,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:K,characterReference:ee,codeFenced:l(x),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:E,codeFlowValue:D,codeIndented:l(T),codeText:l(j),codeTextData:D,data:D,definition:l(),definitionDestinationString:_,definitionLabelString:h,definitionTitleString:m,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(B),htmlFlowData:D,htmlText:l(z),htmlTextData:D,image:l(Z),label:J,labelText:W,lineEnding:N,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Y,resourceDestinationString:w,resourceTitleString:O,resource:U,setextHeading:l(M),setextHeadingLineSequence:R,setextHeadingText:b,strong:l(),thematicBreak:l()}};Wd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(F){let G={type:"root",children:[]};const ae={stack:[G],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:n},de=[];let Ee=-1;for(;++Ee<F.length;)if(F[Ee][1].type==="listOrdered"||F[Ee][1].type==="listUnordered")if(F[Ee][0]==="enter")de.push(Ee);else{const Ge=de.pop();Ee=a(F,Ge,Ee)}for(Ee=-1;++Ee<F.length;){const Ge=t[F[Ee][0]];Vd.call(Ge,F[Ee][1].type)&&Ge[F[Ee][1].type].call(Object.assign({sliceSerialize:F[Ee][2].sliceSerialize},ae),F[Ee][1])}if(ae.tokenStack.length>0){const Ge=ae.tokenStack[ae.tokenStack.length-1];(Ge[1]||Yd).call(ae,void 0,Ge[0])}for(G.position={start:Tt(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Tt(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<t.transforms.length;)G=t.transforms[Ee](G)||G;return G}function a(F,G,ae){let de=G-1,Ee=-1,Ge=!1,St,ut,Wt,Yt;for(;++de<=ae;){const Me=F[de];switch(Me[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Me[0]==="enter"?Ee++:Ee--,Yt=void 0;break}case"lineEndingBlank":{Me[0]==="enter"&&(St&&!Yt&&!Ee&&!Wt&&(Wt=de),Yt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yt=void 0}if(!Ee&&Me[0]==="enter"&&Me[1].type==="listItemPrefix"||Ee===-1&&Me[0]==="exit"&&(Me[1].type==="listUnordered"||Me[1].type==="listOrdered")){if(St){let Ot=de;for(ut=void 0;Ot--;){const ct=F[Ot];if(ct[1].type==="lineEnding"||ct[1].type==="lineEndingBlank"){if(ct[0]==="exit")continue;ut&&(F[ut][1].type="lineEndingBlank",Ge=!0),ct[1].type="lineEnding",ut=Ot}else if(!(ct[1].type==="linePrefix"||ct[1].type==="blockQuotePrefix"||ct[1].type==="blockQuotePrefixWhitespace"||ct[1].type==="blockQuoteMarker"||ct[1].type==="listItemIndent"))break}Wt&&(!ut||Wt<ut)&&(St._spread=!0),St.end=Object.assign({},ut?F[ut][1].start:Me[1].end),F.splice(ut||de,0,["exit",St,Me[2]]),de++,ae++}if(Me[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},Me[1].start),end:void 0};St=Ot,F.splice(de,0,["enter",Ot,Me[2]]),de++,ae++,Wt=void 0,Yt=!0}}}return F[G][1]._spread=Ge,ae}function i(F,G){return ae;function ae(de){s.call(this,F(de),de),G&&G.call(this,de)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(F,G,ae){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([G,ae||void 0]),F.position={start:Tt(G.start),end:void 0}}function l(F){return G;function G(ae){F&&F.call(this,ae),u.call(this,ae)}}function u(F,G){const ae=this.stack.pop(),de=this.tokenStack.pop();if(de)de[0].type!==F.type&&(G?G.call(this,F,de[0]):(de[1]||Yd).call(this,F,de[0]));else throw new Error("Cannot close `"+F.type+"` ("+Sn({start:F.start,end:F.end})+"): it’s not open");ae.position.end=Tt(F.end)}function c(){return LS(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(F){if(this.data.expectingFirstListItemValue){const G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function p(){const F=this.resume(),G=this.stack[this.stack.length-1];G.lang=F}function E(){const F=this.resume(),G=this.stack[this.stack.length-1];G.meta=F}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const F=this.resume(),G=this.stack[this.stack.length-1];G.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const F=this.resume(),G=this.stack[this.stack.length-1];G.value=F.replace(/(\r?\n|\r)$/g,"")}function h(F){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.label=G,ae.identifier=Jt(this.sliceSerialize(F)).toLowerCase()}function m(){const F=this.resume(),G=this.stack[this.stack.length-1];G.title=F}function _(){const F=this.resume(),G=this.stack[this.stack.length-1];G.url=F}function v(F){const G=this.stack[this.stack.length-1];if(!G.depth){const ae=this.sliceSerialize(F).length;G.depth=ae}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function R(F){const G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function k(F){const ae=this.stack[this.stack.length-1].children;let de=ae[ae.length-1];(!de||de.type!=="text")&&(de=Vt(),de.position={start:Tt(F.start),end:void 0},ae.push(de)),this.stack.push(de)}function D(F){const G=this.stack.pop();G.value+=this.sliceSerialize(F),G.position.end=Tt(F.end)}function N(F){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ae=G.children[G.children.length-1];ae.position.end=Tt(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(G.type)&&(k.call(this,F),D.call(this,F))}function P(){this.data.atHardBreak=!0}function B(){const F=this.resume(),G=this.stack[this.stack.length-1];G.value=F}function z(){const F=this.resume(),G=this.stack[this.stack.length-1];G.value=F}function j(){const F=this.resume(),G=this.stack[this.stack.length-1];G.value=F}function H(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=G,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function Z(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=G,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function W(F){const G=this.sliceSerialize(F),ae=this.stack[this.stack.length-2];ae.label=CC(G),ae.identifier=Jt(G).toLowerCase()}function J(){const F=this.stack[this.stack.length-1],G=this.resume(),ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,ae.type==="link"){const de=F.children;ae.children=de}else ae.alt=G}function w(){const F=this.resume(),G=this.stack[this.stack.length-1];G.url=F}function O(){const F=this.resume(),G=this.stack[this.stack.length-1];G.title=F}function U(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function Y(F){const G=this.resume(),ae=this.stack[this.stack.length-1];ae.label=G,ae.identifier=Jt(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function X(F){this.data.characterReferenceType=F.type}function K(F){const G=this.sliceSerialize(F),ae=this.data.characterReferenceType;let de;ae?(de=kd(G,ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):de=Hr(G);const Ee=this.stack[this.stack.length-1];Ee.value+=de}function ee(F){const G=this.stack.pop();G.position.end=Tt(F.end)}function te(F){D.call(this,F);const G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(F)}function ne(F){D.call(this,F);const G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(F)}function oe(){return{type:"blockquote",children:[]}}function re(){return{type:"code",lang:null,meta:null,value:""}}function Te(){return{type:"inlineCode",value:""}}function V(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Oe(){return{type:"emphasis",children:[]}}function st(){return{type:"heading",depth:0,children:[]}}function Xe(){return{type:"break"}}function lt(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function Ht(){return{type:"link",title:null,url:"",children:[]}}function De(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function It(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function gn(){return{type:"paragraph",children:[]}}function Nt(){return{type:"strong",children:[]}}function Vt(){return{type:"text",value:""}}function mn(){return{type:"thematicBreak"}}}function Tt(e){return{line:e.line,column:e.column,offset:e.offset}}function Wd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Wd(e,r):AC(e,r)}}function AC(e,t){let n;for(n in t)if(Vd.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 Yd(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sn({start:t.start,end:t.end})+") is still open")}function kC(e){const t=this;t.parser=n;function n(r){return xC(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function RC(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 IC(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
@@ -989,7 +989,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
989
989
|
margin-bottom: 4px;
|
|
990
990
|
`,YN=L.p`
|
|
991
991
|
margin-bottom: 10px;
|
|
992
|
-
`,KN=e=>{const t=[],n=/(```[\s\S]*?```)/g;let r=0,a;for(;(a=n.exec(e))!==null;)a.index>r&&t.push({type:"markdown",content:e.slice(r,a.index)}),t.push({type:"code",content:a[0]}),r=a.index+a[0].length;return r<e.length&&t.push({type:"markdown",content:e.slice(r)}),t},ZN=e=>e.replace(/```[a-z]*\n?/,"").replace(/```$/,"").trim(),XN=({code:e})=>{const[t,n]=I.useState(!1),{t:r}=Ve.useTranslation("minerva"),a=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),1500)};return g.jsxs(BN,{children:[t&&g.jsx(jN,{children:r("text.copied")}),g.jsx($N,{onClick:a,"aria-label":r("text.copycode"),children:g.jsx(Zv,{size:16,color:"#ffffff"})}),g.jsx(DN,{language:"tsx",style:RN,customStyle:{borderRadius:"6px",padding:"16px",fontSize:"13px"},children:e})]})},JN=({message:e,isReading:t,onReadAloud:n,onStopReading:r,onFeedback:a,isStreaming:i,showControlButtons:o=!0,showPlexo:s=!1,showFeedbackButtons:l=!0})=>{const{isWaitingForFirstResponse:u,messages:c,setIsWaitingForFirstResponse:d}=Cr(),{t:f}=Ve.useTranslation("minerva"),p=c.length>0?c[c.length-1]:null;I.useEffect(()=>{e.id===(p==null?void 0:p.id)&&e.content.length>1&&u&&d(!1)},[e.content,p,u,e.id]);const E=KN(e.content);return I.useEffect(()=>{e.id===(p==null?void 0:p.id)&&e.content.length>1&&u&&d(!1)},[e.content,p,u,e.id]),g.jsxs(MN,{children:[g.jsx(PN,{children:g.jsxs("div",{style:{width:"100%"},children:[e.content==="__CUSTOM_SUPPORT_MESSAGE__"?g.jsx(LN,{}):u&&e.id===(p==null?void 0:p.id)?g.jsx("div",{role:"status","aria-live":"polite",children:f("text.bot_typing")}):g.jsxs(g.Fragment,{children:[g.jsx("div",{"aria-hidden":"true",children:E.map((S,x)=>S.type==="code"?g.jsx(XN,{code:ZN(S.content)},Ap()):g.jsx(FN,{children:g.jsx(WT,{components:{h1:qN,h2:zN,h3:GN,h4:HN,h5:VN,h6:WN,p:YN},children:S.content})},x))}),g.jsxs("div",{style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},"aria-hidden":!1,"aria-live":"polite",children:[f("text.bot_message"),": ",e.content]})]}),e.created_at&&g.jsx("div",{style:{fontFamily:"Nunito Sans",fontStyle:"normal",fontWeight:400,fontSize:"12px",color:"#363D47",marginTop:"5px",textAlign:"left"},children:Qc(e.created_at)})]})}),g.jsx(UN,{})]})},LE={titles:{login:"Iniciar Sesión",error:"Error",welcome:"Bienvenido",list_conversations:"Conversaciones",chatTtitle:"Asistente Virtual"},menus:{explorehelper:"Explore Helpers",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Company Assistant",three_helper:"Helia - Amazing Name",four_helper:"Iria - Amazing Name",five_helper:"Flavia - Your Name",quit:"Quit",options:"Options",logout:"Logout"},text:{one_helper_title:"Minia",one_helper_text:"La solución líder de gestión curricular.",two_helper_title:"Uxía",two_helper_text:"Otra solución líder en el mercado de las IA.",three_helper_title:"Helia",three_helper_text:"Otra solución líder en el mercado de las IA.",four_helper_title:"Iria",four_helper_text:"Otra solución líder en el mercado de las IA.",five_helper_title:"Flavia",five_helper_text:"Otra solución líder en el mercado de las IA.",new_conversation:"Nueva conversación",copied:"Copiado",copycode:"Copiar",welcome_text:"¡Hola! Soy tu asistente virtual. ¿Cómo puedo ayudarte hoy?",customticketmessage1:"Parece que no hemos conseguido ayudarte con esta solicitud. Si necesitas más ayuda, trasladaremos tu consulta a nuestro equipo de soporte.",customticketmessage2:"Para ello, es necesario que, a continuación, introduzcas tu correo para poder darte respuesta",customticketbuttontext:"Crea un tiquet",caduca_text:"Ha expirado el tiempo de conversación. Si lo necesitas, puedes iniciar una nueva conversación.",reiniciasessio:"Reiniciar sesión",bot_message:"Mensaje del bot",human_message:"Mensaje del usuario"},formLabels:{loginEmail:"Correo Electrónico",loginPassword:"Contraseña",loginSend:"LOGIN",loginLdapSend:"Login LDAP",placeholderWriteMessage:"Escribe aquí...",buttonSendMessage:"Enviar",buttonInit:"Iniciar",placeholder_create_conversation:"Crear conversación",button_create_conversation:"Crear",expand_chat:"Asistente virtual contraído",collapse_chat:"Asistente virtual abierto",chat_button_send_message:"Enviar mensaje",chat_button_stop_streaming:"Detener envío de mensaje"},errorMessages:{invalidCredentials:"Nombre de usuario o contraseña inválidos.",networkError:"Error de red, por favor intenta de nuevo más tarde.",serverCommunicationError:"Error en la comunicación con el servidor.",invalidResponse:"Respuesta inválida del servidor."},logMessages:{noAnswer:"Error: La respuesta no contiene 'answer'.",sendMessageError:"Error enviando el mensaje:",serverResponse:"Respuesta del servidor:",communicationError:"Error de comunicación:",no_conversations_available:"Sin conversaciones disponibles"},welcomeMessages:{welcomeMessage:"Bienvenido/a al chat de Plexus",startChatting:"Puedes empezar a chatear"},ticket:{title:"Crea un ticket",description:"Crea un ticket con una solicitud de ayuda y el equipo de soporte se pondrá en contacto contigo.",emailLabel:"Correo electrónico",emailPlaceholder:"Introduce tu correo para enviar tu consulta",close:"Cerrar",create:"Crear ticket",sending:"Enviando...",successTitle:"Consulta enviada con éxito",successDescription:"Ya se ha trasladado tu consulta a nuestro equipo de soporte con número #{{id}}. En breve, te daremos respuesta",error:"Error",errorInvalidEmail:"Introduce un correo válido.",errorNoConversation:"No hay conversación activa.",errorCreateFailure:"El ticket no pudo ser creado. Por favor inténtelo otra vez.",errorUnexpected:"Ha habido un problema técnico al trasladar tu consulta. Por favor, puedes intentarlo de nuevo",errorTokenEmail:"No se pudo extraer el email del token.",aceptar:"Aceptar"}},DE={titles:{login:"Log In",error:"Error",welcome:"Welcome",list_conversations:"Conversations",chatTtitle:"Virtual Assistant"},menus:{explorehelper:"Explore Helpers",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Company Assistant",three_helper:"Helia - Amazing Name",four_helper:"Iria - Amazing Name",five_helper:"Flavia - Your Name",quit:"Quit",options:"Options",logout:"Logout"},text:{one_helper_title:"Minia",one_helper_text:"The leading solution for curriculum management.",two_helper_title:"Uxía",two_helper_text:"Another leading solution in the AI market.",three_helper_title:"Helia",three_helper_text:"Another leading solution in the AI market.",four_helper_title:"Iria",four_helper_text:"Another leading solution in the AI market.",five_helper_title:"Flavia",five_helper_text:"Another leading solution in the AI market.",new_conversation:"New Conversation",copied:"Copied",copycode:"Copy",welcome_text:"Hello! I’m your virtual assistant. How can I help you today?",customticketmessage1:"It seems we can't help you with this request. If you need further assistance, we can create a ticket for our support team.",customticketmessage2:"Enter your email below and confirm so we can help resolve your issue.",customticketbuttontext:"Create a ticket",caduca_text:"The conversation time has expired. If you need to, you can start a new conversation.",reiniciasessio:"Restart session",bot_message:"Bot message",human_message:"User message"},formLabels:{loginEmail:"Email Address",loginPassword:"Password",loginSend:"LOGIN",loginLdapSend:"LDAP Login",placeholderWriteMessage:"Write here...",buttonSendMessage:"Send",buttonInit:"Start",placeholder_create_conversation:"Create Conversation",button_create_conversation:"Create",expand_chat:"Virtual assistant collapsed",collapse_chat:"Virtual assistant open",chat_button_send_message:"Send message",chat_button_stop_streaming:"Stop sending message"},errorMessages:{invalidCredentials:"Invalid username or password.",networkError:"Network error, please try again later.",serverCommunicationError:"Error communicating with the server.",invalidResponse:"Invalid response from the server."},logMessages:{noAnswer:"Error: The response does not contain 'answer'.",sendMessageError:"Error sending message:",serverResponse:"Server response:",communicationError:"Communication error:",no_conversations_available:"No conversations available"},welcomeMessages:{welcomeMessage:"Welcome to the Plexus chat",startChatting:"You can start chatting"},ticket:{title:"Create a ticket",description:"Create a ticket requesting help, and the support team will contact you.",emailLabel:"Email address",emailPlaceholder:"Enter your email to send your request",close:"Close",create:"Create ticket",sending:"Sending...",successTitle:"Request #{{id}} was sent successfully",successDescription:"You will receive a confirmation email with the details of your request.",error:"Error",errorInvalidEmail:"Please enter a valid email.",errorNoConversation:"There is no active conversation.",errorCreateFailure:"The ticket could not be created. Please try again.",errorUnexpected:"There has been a technical problem transferring your query. Please try again.",errorTokenEmail:"Could not extract email from token.",aceptar:"Done"}},QN={titles:{login:"Iniciar sesión",error:"Erro",welcome:"Benvido",list_conversations:"Conversas",chatTtitle:"Asistente Virtual"},menus:{explorehelper:"Explorar Axudantes",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Asistente Empresarial",three_helper:"Helia - Nome Marabilloso",four_helper:"Iria - Nome Marabilloso",five_helper:"Flavia - O teu Nome",quit:"Saír",options:"Opcións",logout:"Pechar sesión"},text:{one_helper_title:"Minia",one_helper_text:"A solución líder en xestión curricular.",two_helper_title:"Uxía",two_helper_text:"Outra solución líder no mercado da IA.",three_helper_title:"Helia",three_helper_text:"Outra solución líder no mercado da IA.",four_helper_title:"Iria",four_helper_text:"Outra solución líder no mercado da IA.",five_helper_title:"Flavia",five_helper_text:"Outra solución líder no mercado da IA.",new_conversation:"Nova conversa",copied:"Copiado",copycode:"Copiar",welcome_text:"Ola! Son o teu asistente virtual. En que che podo axudar hoxe?",customticketmessage1:"Semella que non podemos axudarche con esta solicitude. Se precisas máis axuda, podemos xerar un ticket para o noso equipo de soporte.",customticketmessage2:"Introduce o teu correo electrónico abaixo e confírmao para que poidamos resolver as túas dúbidas.",customticketbuttontext:"Crear un ticket",caduca_text:"O tempo de conversa expirou. Se o precisas, podes iniciar unha nova conversa.",reiniciasessio:"Reiniciar sesión",bot_message:"Mensaxe do bot",human_message:"Mensaxe do usuario"},formLabels:{loginEmail:"Enderezo de correo",loginPassword:"Contrasinal",loginSend:"INICIAR",loginLdapSend:"Login LDAP",placeholderWriteMessage:"Escribe aquí...",buttonSendMessage:"Enviar",buttonInit:"Comezar",placeholder_create_conversation:"Crear conversa",button_create_conversation:"Crear",expand_chat:"Asistente virtual contraído",collapse_chat:"Asistente virtual aberto",chat_button_send_message:"Enviar mensaxe",chat_button_stop_streaming:"Deter o envío da mensaxe"},errorMessages:{invalidCredentials:"Usuario ou contrasinal inválido.",networkError:"Erro de rede, por favor intenta máis tarde.",serverCommunicationError:"Erro na comunicación co servidor.",invalidResponse:"Resposta inválida do servidor."},logMessages:{noAnswer:"Erro: a resposta non contén 'answer'.",sendMessageError:"Erro ao enviar a mensaxe:",serverResponse:"Resposta do servidor:",communicationError:"Erro de comunicación:",no_conversations_available:"Non hai conversas dispoñibles"},welcomeMessages:{welcomeMessage:"Benvido ao chat de Plexus",startChatting:"Podes comezar a chatear"},ticket:{title:"Crear un ticket",description:"Crear un ticket solicitando axuda e o equipo de soporte porase en contacto contigo.",emailLabel:"Correo electrónico",emailPlaceholder:"Introduce o teu correo para enviar a túa consulta",close:"Pechar",create:"Crear ticket",sending:"Enviando...",successTitle:"Consulta #{{id}} creado con éxito",successDescription:"Recibirás un correo de confirmación cos datos da túa petición.",error:"Erro",errorInvalidEmail:"Introduce un correo válido.",errorNoConversation:"Non hai unha conversa activa.",errorCreateFailure:"Non se puido crear o ticket. Por favor, tenta de novo.",errorUnexpected:"Erro inesperado ao crear o ticket.",errorTokenEmail:"Non se puido extraer o correo do token.",aceptar:"Aceptar"}},e2={titles:{login:"Inicia la sessió",error:"Error",welcome:"Benvingut",list_conversations:"Converses",chatTtitle:"Assistent Virtual"},menus:{explorehelper:"Explora Assistents",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Assistència Empresarial",three_helper:"Helia - Nom Fantàstic",four_helper:"Iria - Nom Fantàstic",five_helper:"Flavia - El teu Nom",quit:"Surt",options:"Opcions",logout:"Tancar la sessió"},text:{one_helper_title:"Minia",one_helper_text:"La solució líder en gestió curricular.",two_helper_title:"Uxía",two_helper_text:"Una altra solució líder al mercat de les IA.",three_helper_title:"Helia",three_helper_text:"Una altra solució líder al mercat de les IA.",four_helper_title:"Iria",four_helper_text:"Una altra solució líder al mercat de les IA.",five_helper_title:"Flavia",five_helper_text:"Una altra solució líder al mercat de les IA.",new_conversation:"Nova conversa",copied:"Copiat",copycode:"Copiar",welcome_text:"Hola! Sóc el teu assistent virtual. Com et puc ajudar avui?",customticketmessage1:"Sembla que no et podem ajudar amb aquesta sol·licitud. Si necessites més ajuda, podem generar un tiquet per al nostre equip de suport.",customticketmessage2:"Introdueix el teu correu a continuació i confirma’l perquè puguem resoldre els teus dubtes.",customticketbuttontext:"Crea un tiquet",caduca_text:"Ha expirat el temps de conversa. Si ho necessites, pots iniciar una nova conversa.",reiniciasessio:"Reiniciar sessió",bot_message:"Missatge del bot",human_message:"Missatge de l'usuari"},formLabels:{loginEmail:"Adreça de correu",loginPassword:"Contrasenya",loginSend:"INICIA",loginLdapSend:"Inicia LDAP",placeholderWriteMessage:"Escriu aquí...",buttonSendMessage:"Envia",buttonInit:"Comença",placeholder_create_conversation:"Crea una conversa",button_create_conversation:"Crear",expand_chat:"Assistent virtual contraigut",collapse_chat:"Assistent virtual obert",chat_button_send_message:"Enviar missatge",chat_button_stop_streaming:"Aturar l'enviament de missatge"},errorMessages:{invalidCredentials:"Nom d'usuari o contrasenya invàlids.",networkError:"Error de xarxa, si us plau intenta-ho més tard.",serverCommunicationError:"Error en la comunicació amb el servidor.",invalidResponse:"Resposta invàlida del servidor."},logMessages:{noAnswer:"Error: La resposta no conté ‘answer’.",sendMessageError:"Error enviant el missatge:",serverResponse:"Resposta del servidor:",communicationError:"Error de comunicació:",no_conversations_available:"No hi ha converses disponibles"},welcomeMessages:{welcomeMessage:"Benvingut al xat de Plexus",startChatting:"Pots començar a xatejar"},ticket:{title:"Crea un tiquet",description:"Crea un tiquet sol·licitant ajuda i l’equip de suport es posarà en contacte amb tu.",emailLabel:"Correu electrònic",emailPlaceholder:"Introdueix el teu correu pero enviar la teva consulta",close:"Tanca",create:"Crea tiquet",sending:"Enviant...",successTitle:"Consulta #{{id}} enviada amb èxit",successDescription:"Rebràs un correu de confirmació amb les dades de la teva sol·licitud.",error:"Error",errorInvalidEmail:"Introdueix un correu vàlid.",errorNoConversation:"No hi ha una conversa activa.",errorCreateFailure:"No s'ha pogut crear el tiquet. Si us plau, intenta-ho de nou.",errorUnexpected:"Error inesperat en crear el tiquet.",errorTokenEmail:"No s'ha pogut extreure l’email del token.",aceptar:"Acceptar"}},t2={titles:{login:"Saioa hasi",error:"Errorea",welcome:"Ongietorri",list_conversations:"Elkarrizketak",chatTtitle:"Laguntzaile Birtuala"},menus:{explorehelper:"Laguntzaileak Aztertu",one_helper:"Minia - CV Bilatzailea",two_helper:"Uxía - Enpresen Laguntzailea",three_helper:"Helia - Izen Bikaineko",four_helper:"Iria - Izen Bikaineko",five_helper:"Flavia - Zure Izena",quit:"Irten",options:"Aukerak",logout:"Saioa itxi"},text:{one_helper_title:"Minia",one_helper_text:"Curriculuma kudeatzeko soluziorik nagusiena.",two_helper_title:"Uxía",two_helper_text:"Beste soluzio nagusi bat AI merkatuan.",three_helper_title:"Helia",three_helper_text:"Beste soluzio nagusi bat AI merkatuan.",four_helper_title:"Iria",four_helper_text:"Beste soluzio nagusi bat AI merkatuan.",five_helper_title:"Flavia",five_helper_text:"Beste soluzio nagusi bat AI merkatuan.",new_conversation:"Elkarrizketa Berri",copied:"Kopiatu da",copycode:"Kopiatu",welcome_text:"Kaixo! Zure laguntzaile birtuala naiz. Nola lagun zaitzaket gaur?",customticketmessage1:"Badirudi ezin dizugula eskaera honekin lagundu. Laguntza gehiago behar baduzu, gure laguntza-taldearentzat txartel bat sor dezakegu.",customticketmessage2:"Sartu zure helbide elektronikoa behean eta baieztatu zure arazoa konpontzen lagun diezazugun.",customticketbuttontext:"Sortu txartela",caduca_text:"Elkarrizketaren denbora amaitu da. Behar baduzu, elkarrizketa berri bat has dezakezu.",reiniciasessio:"Saioa berrabiarazi",bot_message:"Botaren mezua",human_message:"Erabiltzailearen mezua"},formLabels:{loginEmail:"Posta Elektronikoa",loginPassword:"Pasahitza",loginSend:"SAIOA HASI",loginLdapSend:"LDAP Saioa",placeholderWriteMessage:"Idatzi hemen...",buttonSendMessage:"Bidali",buttonInit:"Hasi",placeholder_create_conversation:"Elkarrizketa sortu",button_create_conversation:"Sortu",expand_chat:"Laguntzaile birtuala tolestuta",collapse_chat:"Laguntzaile birtuala zabalik",chat_button_send_message:"Mezua bidali",chat_button_stop_streaming:"Mezuaren bidalketa gelditu"},errorMessages:{invalidCredentials:"Erabiltzaile edo pasahitz baliogabea.",networkError:"Sareko errorea, mesedez saiatu berriro beranduago.",serverCommunicationError:"Zerbiderako komunikazio errorea.",invalidResponse:"Zerbitzaritik baliozko erantzunik jaso ez da."},logMessages:{noAnswer:"Errorea: Erantzunak ez du 'answer' barne.",sendMessageError:"Mezua bidaltzean errorea:",serverResponse:"Zerbitzariko erantzuna:",communicationError:"Komunikazio errorea:",no_conversations_available:"Ez dago elkarrizketa erabilgarri"},welcomeMessages:{welcomeMessage:"Ongietorri Plexus txatera",startChatting:"Txateatzen hasi zaitezke"},ticket:{title:"Ticket bat sortu",description:"Laguntza eskatzeko ticket bat sortu, eta laguntza taldea zurekin harremanetan jarriko da.",emailLabel:"Posta elektrikoa",emailPlaceholder:"Idatzi zure posta elektronikoa kontsulta bidaltzeko",close:"Itxi",create:"Ticket Sortu",sending:"Bidaltzen...",successTitle:"Kontsulta #{{id}} arrakastaz sortu da",successDescription:"Eskariaren xehetasunekin berrespen posta jasoko duzu.",error:"Errorea",errorInvalidEmail:"Mesedez, sartu baliozko posta elektronikoa.",errorNoConversation:"Ez dago aktibo dagoen elkarrizketarik.",errorCreateFailure:"Ezin izan da ticket sortu. Saiatu berriro mesedez.",errorUnexpected:"Ticket sortzean errore ezezaguna.",errorTokenEmail:"Tokenetik posta elektronikoa ateratzen ez da lortu.",aceptar:"Aceptar"}},n2={titles:{login:"Inicia sessió",error:"Error",welcome:"Benvingut",list_conversations:"Converses",chatTtitle:"Assistent Virtual"},menus:{explorehelper:"Explora Assistents",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Assistència Empresarial",three_helper:"Helia - Nom Fantàstic",four_helper:"Iria - Nom Fantàstic",five_helper:"Flavia - El teu Nom",quit:"Surt",options:"Opcions",logout:"Tancar la sessió"},text:{one_helper_title:"Minia",one_helper_text:"La solució líder en gestió curricular.",two_helper_title:"Uxía",two_helper_text:"Una altra solució líder en el mercat de les IA.",three_helper_title:"Helia",three_helper_text:"Una altra solució líder en el mercat de les IA.",four_helper_title:"Iria",four_helper_text:"Una altra solució líder en el mercat de les IA.",five_helper_title:"Flavia",five_helper_text:"Una altra solució líder en el mercat de les IA.",new_conversation:"Nova conversa",copied:"Copiat",copycode:"Copiar",welcome_text:"Hola! Sóc el teu assistent virtual. Com et puc ajudar hui?",customticketmessage1:"Sembla que no podem ajudar-te amb esta sol·licitud. Si necessites més ajuda, podem generar un tiquet per al nostre equip de suport.",customticketmessage2:"Introdueix el teu correu electrònic a continuació i confirma'l perquè puguem resoldre els teus dubtes.",customticketbuttontext:"Crear un tiquet",caduca_text:"Ha expirat el temps de conversa. Si ho necessites, pots iniciar una nova conversa.",reiniciasessio:"Reiniciar sessió",bot_message:"Missatge del bot",human_message:"Missatge de l'usuari"},formLabels:{loginEmail:"Adreça de correu",loginPassword:"Contrasenya",loginSend:"INICIA",loginLdapSend:"Inicia LDAP",placeholderWriteMessage:"Escriu ací...",buttonSendMessage:"Envia",buttonInit:"Comença",placeholder_create_conversation:"Crear una conversa",button_create_conversation:"Crear",expand_chat:"Assistent virtual contret",collapse_chat:"Assistent virtual obert",chat_button_send_message:"Enviar missatge",chat_button_stop_streaming:"Detindre l'enviament de missatge"},errorMessages:{invalidCredentials:"Nom d’usuari o contrasenya invàlids.",networkError:"Error de xarxa, si us plau intenta-ho més tard.",serverCommunicationError:"Error en la comunicació amb el servidor.",invalidResponse:"Resposta invàlida del servidor."},logMessages:{noAnswer:"Error: La resposta no conté ‘answer’.",sendMessageError:"Error enviant el missatge:",serverResponse:"Resposta del servidor:",communicationError:"Error de comunicació:",no_conversations_available:"No hi ha converses disponibles"},welcomeMessages:{welcomeMessage:"Benvingut al xat de Plexus",startChatting:"Pots començar a xatejar"},ticket:{title:"Crea un ticket",description:"Crea un ticket sol·licitant ajuda i l’equip de suport es posarà en contacte amb tu.",emailLabel:"Correu electrònic",emailPlaceholder:"Introdueix el teu correu pero enviar la teua consulta",close:"Tanca",create:"Crear ticket",sending:"Enviant...",successTitle:"Consulta #{{id}} enviada amb èxit",successDescription:"Rebràs un correu de confirmació amb les dades de la teua petició.",error:"Error",errorInvalidEmail:"Introdueix un correu vàlid.",errorNoConversation:"No hi ha una conversa activa.",errorCreateFailure:"No s’ha pogut crear el ticket. Si us plau, intenta-ho de nou.",errorUnexpected:"Error inesperat en crear el ticket.",errorTokenEmail:"No s’ha pogut extraure el correu del token.",aceptar:"Aceptar"}};function ME(){const e=window.location.pathname.split("/")[1];return["es","ca","en","eu","ga","va"].includes(e)?e:"es"}const PE=ME();_r.use(Ve.initReactI18next).init({resources:{es:{minerva:LE},en:{minerva:DE},ga:{minerva:QN},ca:{minerva:e2},eu:{minerva:t2},va:{minerva:n2}},lng:PE,supportedLngs:["es","en","ga","ca","eu","va"],nonExplicitSupportedLngs:!0,fallbackLng:{default:["en"],ga:["es","en"],ca:["es","en"],eu:["es","en"],va:["es","en"]},ns:["minerva"],defaultNS:"minerva",interpolation:{escapeValue:!1},load:"languageOnly"}),console.log("[minerva‑plexus‑csd] Idioma detectado:",PE);const r2=e=>{const t=new Date(e),n=t.getDate().toString().padStart(2,"0"),r=_r.language||"en",a=t.toLocaleString(r,{month:"long",timeZone:"UTC"}),i=a.charAt(0).toUpperCase()+a.slice(1);return`${n} ${i}`},a2=L.div`
|
|
992
|
+
`,KN=e=>{const t=[],n=/(```[\s\S]*?```)/g;let r=0,a;for(;(a=n.exec(e))!==null;)a.index>r&&t.push({type:"markdown",content:e.slice(r,a.index)}),t.push({type:"code",content:a[0]}),r=a.index+a[0].length;return r<e.length&&t.push({type:"markdown",content:e.slice(r)}),t},ZN=e=>e.replace(/```[a-z]*\n?/,"").replace(/```$/,"").trim(),XN=({code:e})=>{const[t,n]=I.useState(!1),{t:r}=Ve.useTranslation("minerva"),a=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),1500)};return g.jsxs(BN,{children:[t&&g.jsx(jN,{children:r("text.copied")}),g.jsx($N,{onClick:a,"aria-label":r("text.copycode"),children:g.jsx(Zv,{size:16,color:"#ffffff"})}),g.jsx(DN,{language:"tsx",style:RN,customStyle:{borderRadius:"6px",padding:"16px",fontSize:"13px"},children:e})]})},JN=({message:e,isReading:t,onReadAloud:n,onStopReading:r,onFeedback:a,isStreaming:i,showControlButtons:o=!0,showPlexo:s=!1,showFeedbackButtons:l=!0})=>{const{isWaitingForFirstResponse:u,messages:c,setIsWaitingForFirstResponse:d}=Cr(),{t:f}=Ve.useTranslation("minerva"),p=c.length>0?c[c.length-1]:null;I.useEffect(()=>{e.id===(p==null?void 0:p.id)&&e.content.length>1&&u&&d(!1)},[e.content,p,u,e.id]);const E=KN(e.content);return I.useEffect(()=>{e.id===(p==null?void 0:p.id)&&e.content.length>1&&u&&d(!1)},[e.content,p,u,e.id]),g.jsxs(MN,{children:[g.jsx(PN,{children:g.jsxs("div",{style:{width:"100%"},children:[e.content==="__CUSTOM_SUPPORT_MESSAGE__"?g.jsx(LN,{}):u&&e.id===(p==null?void 0:p.id)?g.jsx("div",{role:"status","aria-live":"polite",children:f("text.bot_typing")}):g.jsxs(g.Fragment,{children:[g.jsx("div",{"aria-hidden":"true",children:E.map((S,x)=>S.type==="code"?g.jsx(XN,{code:ZN(S.content)},Ap()):g.jsx(FN,{children:g.jsx(WT,{components:{h1:qN,h2:zN,h3:GN,h4:HN,h5:VN,h6:WN,p:YN},children:S.content})},x))}),!i&&g.jsx("div",{role:"article","aria-label":f("text.bot_message"),style:{position:"absolute",left:"-9999px",width:"1px",height:"1px",overflow:"hidden"},children:e.content})]}),e.created_at&&g.jsx("div",{style:{fontFamily:"Nunito Sans",fontStyle:"normal",fontWeight:400,fontSize:"12px",color:"#363D47",marginTop:"5px",textAlign:"left"},children:Qc(e.created_at)})]})}),g.jsx(UN,{})]})},LE={titles:{login:"Iniciar Sesión",error:"Error",welcome:"Bienvenido",list_conversations:"Conversaciones",chatTtitle:"Asistente Virtual"},menus:{explorehelper:"Explore Helpers",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Company Assistant",three_helper:"Helia - Amazing Name",four_helper:"Iria - Amazing Name",five_helper:"Flavia - Your Name",quit:"Quit",options:"Options",logout:"Logout"},text:{one_helper_title:"Minia",one_helper_text:"La solución líder de gestión curricular.",two_helper_title:"Uxía",two_helper_text:"Otra solución líder en el mercado de las IA.",three_helper_title:"Helia",three_helper_text:"Otra solución líder en el mercado de las IA.",four_helper_title:"Iria",four_helper_text:"Otra solución líder en el mercado de las IA.",five_helper_title:"Flavia",five_helper_text:"Otra solución líder en el mercado de las IA.",new_conversation:"Nueva conversación",copied:"Copiado",copycode:"Copiar",welcome_text:"¡Hola! Soy tu asistente virtual. ¿Cómo puedo ayudarte hoy?",customticketmessage1:"Parece que no hemos conseguido ayudarte con esta solicitud. Si necesitas más ayuda, trasladaremos tu consulta a nuestro equipo de soporte.",customticketmessage2:"Para ello, es necesario que, a continuación, introduzcas tu correo para poder darte respuesta",customticketbuttontext:"Crea un tiquet",caduca_text:"Ha expirado el tiempo de conversación. Si lo necesitas, puedes iniciar una nueva conversación.",reiniciasessio:"Reiniciar sesión",bot_message:"Mensaje del bot",human_message:"Mensaje del usuario"},formLabels:{loginEmail:"Correo Electrónico",loginPassword:"Contraseña",loginSend:"LOGIN",loginLdapSend:"Login LDAP",placeholderWriteMessage:"Escribe aquí...",buttonSendMessage:"Enviar",buttonInit:"Iniciar",placeholder_create_conversation:"Crear conversación",button_create_conversation:"Crear",expand_chat:"Asistente virtual contraído",collapse_chat:"Asistente virtual abierto",chat_button_send_message:"Enviar mensaje",chat_button_stop_streaming:"Detener envío de mensaje"},errorMessages:{invalidCredentials:"Nombre de usuario o contraseña inválidos.",networkError:"Error de red, por favor intenta de nuevo más tarde.",serverCommunicationError:"Error en la comunicación con el servidor.",invalidResponse:"Respuesta inválida del servidor."},logMessages:{noAnswer:"Error: La respuesta no contiene 'answer'.",sendMessageError:"Error enviando el mensaje:",serverResponse:"Respuesta del servidor:",communicationError:"Error de comunicación:",no_conversations_available:"Sin conversaciones disponibles"},welcomeMessages:{welcomeMessage:"Bienvenido/a al chat de Plexus",startChatting:"Puedes empezar a chatear"},ticket:{title:"Crea un ticket",description:"Crea un ticket con una solicitud de ayuda y el equipo de soporte se pondrá en contacto contigo.",emailLabel:"Correo electrónico",emailPlaceholder:"Introduce tu correo para enviar tu consulta",close:"Cerrar",create:"Crear ticket",sending:"Enviando...",successTitle:"Consulta enviada con éxito",successDescription:"Ya se ha trasladado tu consulta a nuestro equipo de soporte con número #{{id}}. En breve, te daremos respuesta",error:"Error",errorInvalidEmail:"Introduce un correo válido.",errorNoConversation:"No hay conversación activa.",errorCreateFailure:"El ticket no pudo ser creado. Por favor inténtelo otra vez.",errorUnexpected:"Ha habido un problema técnico al trasladar tu consulta. Por favor, puedes intentarlo de nuevo",errorTokenEmail:"No se pudo extraer el email del token.",aceptar:"Aceptar"}},DE={titles:{login:"Log In",error:"Error",welcome:"Welcome",list_conversations:"Conversations",chatTtitle:"Virtual Assistant"},menus:{explorehelper:"Explore Helpers",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Company Assistant",three_helper:"Helia - Amazing Name",four_helper:"Iria - Amazing Name",five_helper:"Flavia - Your Name",quit:"Quit",options:"Options",logout:"Logout"},text:{one_helper_title:"Minia",one_helper_text:"The leading solution for curriculum management.",two_helper_title:"Uxía",two_helper_text:"Another leading solution in the AI market.",three_helper_title:"Helia",three_helper_text:"Another leading solution in the AI market.",four_helper_title:"Iria",four_helper_text:"Another leading solution in the AI market.",five_helper_title:"Flavia",five_helper_text:"Another leading solution in the AI market.",new_conversation:"New Conversation",copied:"Copied",copycode:"Copy",welcome_text:"Hello! I’m your virtual assistant. How can I help you today?",customticketmessage1:"It seems we can't help you with this request. If you need further assistance, we can create a ticket for our support team.",customticketmessage2:"Enter your email below and confirm so we can help resolve your issue.",customticketbuttontext:"Create a ticket",caduca_text:"The conversation time has expired. If you need to, you can start a new conversation.",reiniciasessio:"Restart session",bot_message:"Bot message",human_message:"User message"},formLabels:{loginEmail:"Email Address",loginPassword:"Password",loginSend:"LOGIN",loginLdapSend:"LDAP Login",placeholderWriteMessage:"Write here...",buttonSendMessage:"Send",buttonInit:"Start",placeholder_create_conversation:"Create Conversation",button_create_conversation:"Create",expand_chat:"Virtual assistant collapsed",collapse_chat:"Virtual assistant open",chat_button_send_message:"Send message",chat_button_stop_streaming:"Stop sending message"},errorMessages:{invalidCredentials:"Invalid username or password.",networkError:"Network error, please try again later.",serverCommunicationError:"Error communicating with the server.",invalidResponse:"Invalid response from the server."},logMessages:{noAnswer:"Error: The response does not contain 'answer'.",sendMessageError:"Error sending message:",serverResponse:"Server response:",communicationError:"Communication error:",no_conversations_available:"No conversations available"},welcomeMessages:{welcomeMessage:"Welcome to the Plexus chat",startChatting:"You can start chatting"},ticket:{title:"Create a ticket",description:"Create a ticket requesting help, and the support team will contact you.",emailLabel:"Email address",emailPlaceholder:"Enter your email to send your request",close:"Close",create:"Create ticket",sending:"Sending...",successTitle:"Request #{{id}} was sent successfully",successDescription:"You will receive a confirmation email with the details of your request.",error:"Error",errorInvalidEmail:"Please enter a valid email.",errorNoConversation:"There is no active conversation.",errorCreateFailure:"The ticket could not be created. Please try again.",errorUnexpected:"There has been a technical problem transferring your query. Please try again.",errorTokenEmail:"Could not extract email from token.",aceptar:"Done"}},QN={titles:{login:"Iniciar sesión",error:"Erro",welcome:"Benvido",list_conversations:"Conversas",chatTtitle:"Asistente Virtual"},menus:{explorehelper:"Explorar Axudantes",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Asistente Empresarial",three_helper:"Helia - Nome Marabilloso",four_helper:"Iria - Nome Marabilloso",five_helper:"Flavia - O teu Nome",quit:"Saír",options:"Opcións",logout:"Pechar sesión"},text:{one_helper_title:"Minia",one_helper_text:"A solución líder en xestión curricular.",two_helper_title:"Uxía",two_helper_text:"Outra solución líder no mercado da IA.",three_helper_title:"Helia",three_helper_text:"Outra solución líder no mercado da IA.",four_helper_title:"Iria",four_helper_text:"Outra solución líder no mercado da IA.",five_helper_title:"Flavia",five_helper_text:"Outra solución líder no mercado da IA.",new_conversation:"Nova conversa",copied:"Copiado",copycode:"Copiar",welcome_text:"Ola! Son o teu asistente virtual. En que che podo axudar hoxe?",customticketmessage1:"Semella que non podemos axudarche con esta solicitude. Se precisas máis axuda, podemos xerar un ticket para o noso equipo de soporte.",customticketmessage2:"Introduce o teu correo electrónico abaixo e confírmao para que poidamos resolver as túas dúbidas.",customticketbuttontext:"Crear un ticket",caduca_text:"O tempo de conversa expirou. Se o precisas, podes iniciar unha nova conversa.",reiniciasessio:"Reiniciar sesión",bot_message:"Mensaxe do bot",human_message:"Mensaxe do usuario"},formLabels:{loginEmail:"Enderezo de correo",loginPassword:"Contrasinal",loginSend:"INICIAR",loginLdapSend:"Login LDAP",placeholderWriteMessage:"Escribe aquí...",buttonSendMessage:"Enviar",buttonInit:"Comezar",placeholder_create_conversation:"Crear conversa",button_create_conversation:"Crear",expand_chat:"Asistente virtual contraído",collapse_chat:"Asistente virtual aberto",chat_button_send_message:"Enviar mensaxe",chat_button_stop_streaming:"Deter o envío da mensaxe"},errorMessages:{invalidCredentials:"Usuario ou contrasinal inválido.",networkError:"Erro de rede, por favor intenta máis tarde.",serverCommunicationError:"Erro na comunicación co servidor.",invalidResponse:"Resposta inválida do servidor."},logMessages:{noAnswer:"Erro: a resposta non contén 'answer'.",sendMessageError:"Erro ao enviar a mensaxe:",serverResponse:"Resposta do servidor:",communicationError:"Erro de comunicación:",no_conversations_available:"Non hai conversas dispoñibles"},welcomeMessages:{welcomeMessage:"Benvido ao chat de Plexus",startChatting:"Podes comezar a chatear"},ticket:{title:"Crear un ticket",description:"Crear un ticket solicitando axuda e o equipo de soporte porase en contacto contigo.",emailLabel:"Correo electrónico",emailPlaceholder:"Introduce o teu correo para enviar a túa consulta",close:"Pechar",create:"Crear ticket",sending:"Enviando...",successTitle:"Consulta #{{id}} creado con éxito",successDescription:"Recibirás un correo de confirmación cos datos da túa petición.",error:"Erro",errorInvalidEmail:"Introduce un correo válido.",errorNoConversation:"Non hai unha conversa activa.",errorCreateFailure:"Non se puido crear o ticket. Por favor, tenta de novo.",errorUnexpected:"Erro inesperado ao crear o ticket.",errorTokenEmail:"Non se puido extraer o correo do token.",aceptar:"Aceptar"}},e2={titles:{login:"Inicia la sessió",error:"Error",welcome:"Benvingut",list_conversations:"Converses",chatTtitle:"Assistent Virtual"},menus:{explorehelper:"Explora Assistents",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Assistència Empresarial",three_helper:"Helia - Nom Fantàstic",four_helper:"Iria - Nom Fantàstic",five_helper:"Flavia - El teu Nom",quit:"Surt",options:"Opcions",logout:"Tancar la sessió"},text:{one_helper_title:"Minia",one_helper_text:"La solució líder en gestió curricular.",two_helper_title:"Uxía",two_helper_text:"Una altra solució líder al mercat de les IA.",three_helper_title:"Helia",three_helper_text:"Una altra solució líder al mercat de les IA.",four_helper_title:"Iria",four_helper_text:"Una altra solució líder al mercat de les IA.",five_helper_title:"Flavia",five_helper_text:"Una altra solució líder al mercat de les IA.",new_conversation:"Nova conversa",copied:"Copiat",copycode:"Copiar",welcome_text:"Hola! Sóc el teu assistent virtual. Com et puc ajudar avui?",customticketmessage1:"Sembla que no et podem ajudar amb aquesta sol·licitud. Si necessites més ajuda, podem generar un tiquet per al nostre equip de suport.",customticketmessage2:"Introdueix el teu correu a continuació i confirma’l perquè puguem resoldre els teus dubtes.",customticketbuttontext:"Crea un tiquet",caduca_text:"Ha expirat el temps de conversa. Si ho necessites, pots iniciar una nova conversa.",reiniciasessio:"Reiniciar sessió",bot_message:"Missatge del bot",human_message:"Missatge de l'usuari"},formLabels:{loginEmail:"Adreça de correu",loginPassword:"Contrasenya",loginSend:"INICIA",loginLdapSend:"Inicia LDAP",placeholderWriteMessage:"Escriu aquí...",buttonSendMessage:"Envia",buttonInit:"Comença",placeholder_create_conversation:"Crea una conversa",button_create_conversation:"Crear",expand_chat:"Assistent virtual contraigut",collapse_chat:"Assistent virtual obert",chat_button_send_message:"Enviar missatge",chat_button_stop_streaming:"Aturar l'enviament de missatge"},errorMessages:{invalidCredentials:"Nom d'usuari o contrasenya invàlids.",networkError:"Error de xarxa, si us plau intenta-ho més tard.",serverCommunicationError:"Error en la comunicació amb el servidor.",invalidResponse:"Resposta invàlida del servidor."},logMessages:{noAnswer:"Error: La resposta no conté ‘answer’.",sendMessageError:"Error enviant el missatge:",serverResponse:"Resposta del servidor:",communicationError:"Error de comunicació:",no_conversations_available:"No hi ha converses disponibles"},welcomeMessages:{welcomeMessage:"Benvingut al xat de Plexus",startChatting:"Pots començar a xatejar"},ticket:{title:"Crea un tiquet",description:"Crea un tiquet sol·licitant ajuda i l’equip de suport es posarà en contacte amb tu.",emailLabel:"Correu electrònic",emailPlaceholder:"Introdueix el teu correu pero enviar la teva consulta",close:"Tanca",create:"Crea tiquet",sending:"Enviant...",successTitle:"Consulta #{{id}} enviada amb èxit",successDescription:"Rebràs un correu de confirmació amb les dades de la teva sol·licitud.",error:"Error",errorInvalidEmail:"Introdueix un correu vàlid.",errorNoConversation:"No hi ha una conversa activa.",errorCreateFailure:"No s'ha pogut crear el tiquet. Si us plau, intenta-ho de nou.",errorUnexpected:"Error inesperat en crear el tiquet.",errorTokenEmail:"No s'ha pogut extreure l’email del token.",aceptar:"Acceptar"}},t2={titles:{login:"Saioa hasi",error:"Errorea",welcome:"Ongietorri",list_conversations:"Elkarrizketak",chatTtitle:"Laguntzaile Birtuala"},menus:{explorehelper:"Laguntzaileak Aztertu",one_helper:"Minia - CV Bilatzailea",two_helper:"Uxía - Enpresen Laguntzailea",three_helper:"Helia - Izen Bikaineko",four_helper:"Iria - Izen Bikaineko",five_helper:"Flavia - Zure Izena",quit:"Irten",options:"Aukerak",logout:"Saioa itxi"},text:{one_helper_title:"Minia",one_helper_text:"Curriculuma kudeatzeko soluziorik nagusiena.",two_helper_title:"Uxía",two_helper_text:"Beste soluzio nagusi bat AI merkatuan.",three_helper_title:"Helia",three_helper_text:"Beste soluzio nagusi bat AI merkatuan.",four_helper_title:"Iria",four_helper_text:"Beste soluzio nagusi bat AI merkatuan.",five_helper_title:"Flavia",five_helper_text:"Beste soluzio nagusi bat AI merkatuan.",new_conversation:"Elkarrizketa Berri",copied:"Kopiatu da",copycode:"Kopiatu",welcome_text:"Kaixo! Zure laguntzaile birtuala naiz. Nola lagun zaitzaket gaur?",customticketmessage1:"Badirudi ezin dizugula eskaera honekin lagundu. Laguntza gehiago behar baduzu, gure laguntza-taldearentzat txartel bat sor dezakegu.",customticketmessage2:"Sartu zure helbide elektronikoa behean eta baieztatu zure arazoa konpontzen lagun diezazugun.",customticketbuttontext:"Sortu txartela",caduca_text:"Elkarrizketaren denbora amaitu da. Behar baduzu, elkarrizketa berri bat has dezakezu.",reiniciasessio:"Saioa berrabiarazi",bot_message:"Botaren mezua",human_message:"Erabiltzailearen mezua"},formLabels:{loginEmail:"Posta Elektronikoa",loginPassword:"Pasahitza",loginSend:"SAIOA HASI",loginLdapSend:"LDAP Saioa",placeholderWriteMessage:"Idatzi hemen...",buttonSendMessage:"Bidali",buttonInit:"Hasi",placeholder_create_conversation:"Elkarrizketa sortu",button_create_conversation:"Sortu",expand_chat:"Laguntzaile birtuala tolestuta",collapse_chat:"Laguntzaile birtuala zabalik",chat_button_send_message:"Mezua bidali",chat_button_stop_streaming:"Mezuaren bidalketa gelditu"},errorMessages:{invalidCredentials:"Erabiltzaile edo pasahitz baliogabea.",networkError:"Sareko errorea, mesedez saiatu berriro beranduago.",serverCommunicationError:"Zerbiderako komunikazio errorea.",invalidResponse:"Zerbitzaritik baliozko erantzunik jaso ez da."},logMessages:{noAnswer:"Errorea: Erantzunak ez du 'answer' barne.",sendMessageError:"Mezua bidaltzean errorea:",serverResponse:"Zerbitzariko erantzuna:",communicationError:"Komunikazio errorea:",no_conversations_available:"Ez dago elkarrizketa erabilgarri"},welcomeMessages:{welcomeMessage:"Ongietorri Plexus txatera",startChatting:"Txateatzen hasi zaitezke"},ticket:{title:"Ticket bat sortu",description:"Laguntza eskatzeko ticket bat sortu, eta laguntza taldea zurekin harremanetan jarriko da.",emailLabel:"Posta elektrikoa",emailPlaceholder:"Idatzi zure posta elektronikoa kontsulta bidaltzeko",close:"Itxi",create:"Ticket Sortu",sending:"Bidaltzen...",successTitle:"Kontsulta #{{id}} arrakastaz sortu da",successDescription:"Eskariaren xehetasunekin berrespen posta jasoko duzu.",error:"Errorea",errorInvalidEmail:"Mesedez, sartu baliozko posta elektronikoa.",errorNoConversation:"Ez dago aktibo dagoen elkarrizketarik.",errorCreateFailure:"Ezin izan da ticket sortu. Saiatu berriro mesedez.",errorUnexpected:"Ticket sortzean errore ezezaguna.",errorTokenEmail:"Tokenetik posta elektronikoa ateratzen ez da lortu.",aceptar:"Aceptar"}},n2={titles:{login:"Inicia sessió",error:"Error",welcome:"Benvingut",list_conversations:"Converses",chatTtitle:"Assistent Virtual"},menus:{explorehelper:"Explora Assistents",one_helper:"Minia - CV Hunter",two_helper:"Uxía - Assistència Empresarial",three_helper:"Helia - Nom Fantàstic",four_helper:"Iria - Nom Fantàstic",five_helper:"Flavia - El teu Nom",quit:"Surt",options:"Opcions",logout:"Tancar la sessió"},text:{one_helper_title:"Minia",one_helper_text:"La solució líder en gestió curricular.",two_helper_title:"Uxía",two_helper_text:"Una altra solució líder en el mercat de les IA.",three_helper_title:"Helia",three_helper_text:"Una altra solució líder en el mercat de les IA.",four_helper_title:"Iria",four_helper_text:"Una altra solució líder en el mercat de les IA.",five_helper_title:"Flavia",five_helper_text:"Una altra solució líder en el mercat de les IA.",new_conversation:"Nova conversa",copied:"Copiat",copycode:"Copiar",welcome_text:"Hola! Sóc el teu assistent virtual. Com et puc ajudar hui?",customticketmessage1:"Sembla que no podem ajudar-te amb esta sol·licitud. Si necessites més ajuda, podem generar un tiquet per al nostre equip de suport.",customticketmessage2:"Introdueix el teu correu electrònic a continuació i confirma'l perquè puguem resoldre els teus dubtes.",customticketbuttontext:"Crear un tiquet",caduca_text:"Ha expirat el temps de conversa. Si ho necessites, pots iniciar una nova conversa.",reiniciasessio:"Reiniciar sessió",bot_message:"Missatge del bot",human_message:"Missatge de l'usuari"},formLabels:{loginEmail:"Adreça de correu",loginPassword:"Contrasenya",loginSend:"INICIA",loginLdapSend:"Inicia LDAP",placeholderWriteMessage:"Escriu ací...",buttonSendMessage:"Envia",buttonInit:"Comença",placeholder_create_conversation:"Crear una conversa",button_create_conversation:"Crear",expand_chat:"Assistent virtual contret",collapse_chat:"Assistent virtual obert",chat_button_send_message:"Enviar missatge",chat_button_stop_streaming:"Detindre l'enviament de missatge"},errorMessages:{invalidCredentials:"Nom d’usuari o contrasenya invàlids.",networkError:"Error de xarxa, si us plau intenta-ho més tard.",serverCommunicationError:"Error en la comunicació amb el servidor.",invalidResponse:"Resposta invàlida del servidor."},logMessages:{noAnswer:"Error: La resposta no conté ‘answer’.",sendMessageError:"Error enviant el missatge:",serverResponse:"Resposta del servidor:",communicationError:"Error de comunicació:",no_conversations_available:"No hi ha converses disponibles"},welcomeMessages:{welcomeMessage:"Benvingut al xat de Plexus",startChatting:"Pots començar a xatejar"},ticket:{title:"Crea un ticket",description:"Crea un ticket sol·licitant ajuda i l’equip de suport es posarà en contacte amb tu.",emailLabel:"Correu electrònic",emailPlaceholder:"Introdueix el teu correu pero enviar la teua consulta",close:"Tanca",create:"Crear ticket",sending:"Enviant...",successTitle:"Consulta #{{id}} enviada amb èxit",successDescription:"Rebràs un correu de confirmació amb les dades de la teua petició.",error:"Error",errorInvalidEmail:"Introdueix un correu vàlid.",errorNoConversation:"No hi ha una conversa activa.",errorCreateFailure:"No s’ha pogut crear el ticket. Si us plau, intenta-ho de nou.",errorUnexpected:"Error inesperat en crear el ticket.",errorTokenEmail:"No s’ha pogut extraure el correu del token.",aceptar:"Aceptar"}};function ME(){const e=window.location.pathname.split("/")[1];return["es","ca","en","eu","ga","va"].includes(e)?e:"es"}const PE=ME();_r.use(Ve.initReactI18next).init({resources:{es:{minerva:LE},en:{minerva:DE},ga:{minerva:QN},ca:{minerva:e2},eu:{minerva:t2},va:{minerva:n2}},lng:PE,supportedLngs:["es","en","ga","ca","eu","va"],nonExplicitSupportedLngs:!0,fallbackLng:{default:["en"],ga:["es","en"],ca:["es","en"],eu:["es","en"],va:["es","en"]},ns:["minerva"],defaultNS:"minerva",interpolation:{escapeValue:!1},load:"languageOnly"}),console.log("[minerva‑plexus‑csd] Idioma detectado:",PE);const r2=e=>{const t=new Date(e),n=t.getDate().toString().padStart(2,"0"),r=_r.language||"en",a=t.toLocaleString(r,{month:"long",timeZone:"UTC"}),i=a.charAt(0).toUpperCase()+a.slice(1);return`${n} ${i}`},a2=L.div`
|
|
993
993
|
background-color: transparent;
|
|
994
994
|
width: 100%;
|
|
995
995
|
|
|
@@ -1031,7 +1031,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1031
1031
|
font-style: normal;
|
|
1032
1032
|
font-weight: 400;
|
|
1033
1033
|
word-wrap: break-word;
|
|
1034
|
-
`,FE=({showControlButtons:e=!0,showConversationTitle:t=!0,showDate:n=!0,showPlexo:r=!0,showFeedbackButtons:a=!0,showeditIcon:i=!0})=>{const{t:o}=Ve.useTranslation("minerva"),{selectedConversation:s}=Mt(),{messages:l,fetchMessages:u,isBotStreaming:c}=Cr(),[d,f]=I.useState(null),p=I.useRef(null),E=I.useRef(null);I.useEffect(()=>{console.log("Estado de messages en ChatPlayground:",l);const h=l.filter(m=>m.isStatus201);console.log("Mensajes con isStatus201 en ChatPlayground:",h)},[l]),I.useEffect(()=>{p.current&&p.current.scrollIntoView({behavior:"smooth"})},[l]),I.useEffect(()=>{s&&s.id!==E.current&&(E.current=s.id,setTimeout(()=>{u(s.id)},0))},[s,u]);const S=I.useCallback((h,m)=>{const _=new SpeechSynthesisUtterance(h);f(m),_.onend=()=>{f(null)},speechSynthesis.speak(_)},[]),x=I.useCallback(()=>{speechSynthesis.cancel(),f(null)},[]),T=h=>{console.log("Feedback recibido:",h)};return I.useEffect(()=>{s&&s.id!==E.current&&(console.log("Cambiando selectedConversation:",s.id),E.current=s.id,setTimeout(()=>{u(s.id)},0))},[s,u]),g.jsx(a2,{children:s?g.jsxs("div",{children:[t&&g.jsx(o2,{children:s.title}),g.jsxs(i2,{"aria-live":"polite",children:[n&&g.jsx(s2,{children:r2(s.created_at)}),l.length===0?g.jsx(l2,{children:o("text.welcome_text")}):l.map(h=>{console.log("Renderizando mensaje:",h);const m=d===h.id;return g.jsx("div",{children:h.sender_type==="user"?g.jsx(v1,{showeditIcon:i,message:h,showControlButtons:e}):g.jsx(JN,{showPlexo:r,showFeedbackButtons:a,message:h,isReading:m,onReadAloud:S,onStopReading:x,showControlButtons:e,onFeedback:T,isStreaming:c})},h.id)}),g.jsx("div",{ref:p})]})]}):g.jsx(g.Fragment,{children:g.jsx("p",{children:t?o("logMessages.no_conversations_available"):null})})})};var UE={exports:{}};/*!
|
|
1034
|
+
`,FE=({showControlButtons:e=!0,showConversationTitle:t=!0,showDate:n=!0,showPlexo:r=!0,showFeedbackButtons:a=!0,showeditIcon:i=!0})=>{const{t:o}=Ve.useTranslation("minerva"),{selectedConversation:s}=Mt(),{messages:l,fetchMessages:u,isBotStreaming:c}=Cr(),[d,f]=I.useState(null),p=I.useRef(null),E=I.useRef(null);I.useEffect(()=>{console.log("Estado de messages en ChatPlayground:",l);const h=l.filter(m=>m.isStatus201);console.log("Mensajes con isStatus201 en ChatPlayground:",h)},[l]),I.useEffect(()=>{p.current&&p.current.scrollIntoView({behavior:"smooth"})},[l]),I.useEffect(()=>{s&&s.id!==E.current&&(E.current=s.id,setTimeout(()=>{u(s.id)},0))},[s,u]);const S=I.useCallback((h,m)=>{const _=new SpeechSynthesisUtterance(h);f(m),_.onend=()=>{f(null)},speechSynthesis.speak(_)},[]),x=I.useCallback(()=>{speechSynthesis.cancel(),f(null)},[]),T=h=>{console.log("Feedback recibido:",h)};return I.useEffect(()=>{s&&s.id!==E.current&&(console.log("Cambiando selectedConversation:",s.id),E.current=s.id,setTimeout(()=>{u(s.id)},0))},[s,u]),g.jsx(a2,{children:s?g.jsxs("div",{children:[t&&g.jsx(o2,{children:s.title}),g.jsxs(i2,{role:"log","aria-live":"polite","aria-relevant":"additions text",children:[n&&g.jsx(s2,{children:r2(s.created_at)}),l.length===0?g.jsx(l2,{children:o("text.welcome_text")}):l.map(h=>{console.log("Renderizando mensaje:",h);const m=d===h.id;return g.jsx("div",{children:h.sender_type==="user"?g.jsx(v1,{showeditIcon:i,message:h,showControlButtons:e}):g.jsx(JN,{showPlexo:r,showFeedbackButtons:a,message:h,isReading:m,onReadAloud:S,onStopReading:x,showControlButtons:e,onFeedback:T,isStreaming:c})},h.id)}),g.jsx("div",{ref:p})]})]}):g.jsx(g.Fragment,{children:g.jsx("p",{children:t?o("logMessages.no_conversations_available"):null})})})};var UE={exports:{}};/*!
|
|
1035
1035
|
Copyright (c) 2018 Jed Watson.
|
|
1036
1036
|
Licensed under the MIT License (MIT), see
|
|
1037
1037
|
http://jedwatson.github.io/classnames
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "minerva-plexus-csd",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "A reusable chat logic library for React applications",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.45",
|
|
6
6
|
"main": "dist/minerva-plexus-csd.umd.js",
|
|
7
7
|
"module": "dist/minerva-plexus-csd.es.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|