1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/exceljs.min-D_QUTvSi.js","assets/index-CdaOVUJg.js","assets/index-CUQ66G97.css","assets/index-CTL0BCf5.js","assets/useQuery-_GVTcE5h.js","assets/project_grey-DlluJCVO.js","assets/index-EYO2t0Jb.js","assets/Modal-Bgf7xN89.js","assets/index-o4hm_rKN.css","assets/index-HIHDdnqB.js","assets/index-BSUwfD69.js","assets/Menu-oeFW6mDt.js","assets/Backdrop-HMZ0XVhc.js","assets/CircularProgress-CFj_9cGx.js","assets/Select-CfWleVIF.js","assets/index-CPQhDXg6.css","assets/index-C0bJV4Ww.css","assets/geospatialutils-tcULmRSo.js","assets/index-BTMjU5lK.js","assets/index-DNUXpDG8.js","assets/add-project-flow-C-b_qCk3.js","assets/styles-BSoK_n9t.js","assets/styles-BbzLE2wS.css","assets/index-DEqqwH04.js","assets/index-DJFeid4U.css","assets/index-B9FqzGVN.js","assets/index-DDqQxE1S.css","assets/index-BNQgd0HO.js","assets/index-CBDiDYwa.css","assets/validateConfigFiles-BcJbvBzg.js","assets/index-DMSmYjwi.js","assets/devices_grey-ylVW82im.js","assets/displayConfig-B-hZrFLe.js","assets/add-project-flow-BRkMECiV.css","assets/index-ejFp7YXP.js","assets/index-DmZobPGL.css","assets/index-CPRHlIbJ.js","assets/Grid-DrIgwYQT.js","assets/index-BmtGgHic.css","assets/contributorHelpers-D8ZapESx.js","assets/projects-side-panel-DbDGvZ3a.js","assets/trimble_logo_small-BehtEnmp.js","assets/index-DTZRcMg8.js","assets/index-B4UYiv3S.css","assets/index-DMTZw_Ab.js","assets/AccountSidePanelNav-4PItUNrF.js","assets/filternull-D3zAe-C8.js","assets/filternull-BMVtQ3vf.css","assets/accounts-trimble-logo-collapsed-D-p14eNR.js","assets/members_grey-BXarPCJm.js","assets/removeduplicatesfromarray-Np0dLZSc.js","assets/index-d2LdyksW.js","assets/iconUtils-DvY_Pyqo.js","assets/index-BJav2OSZ.js","assets/accounts-projects-DVXdYzFO.js","assets/index-uCw-Go0s.css","assets/AccountSidePanelNav-DDo2VyB0.css","assets/index-UgHS-cz1.css","assets/index-s9K2Ix5W.js","assets/workorders_blue-DZWRPa93.js","assets/index-RSluYLzK.js","assets/file_grey-BsAYw91y.js","assets/index-B6lYYTTK.css","assets/index-0HvrsMjF.js","assets/index-BpzzECV7.css","assets/index-DUzbQ_vs.css","assets/index-BWCfCWO8.js","assets/accounts-ibss-active-oKmy30im.js","assets/index-CxR6DtA9.css","assets/index-CsuhkiD2.js","assets/profile-BpM_rEId.js","assets/index-C_vgO7RS.css","assets/index-DXdcnV-u.js","assets/cb450-skin-CRfl4jqO.js","assets/index-VFFxkn6N.css","assets/cesiumglobe-Bl2-Yv5N.js","assets/purify.es-BgtpMKW3.js","assets/cloud-upload-grey-ehNIfjoA.js","assets/cloud-upload-CATrRBZR.js","assets/designs_grey-Dg9F1yMm.js","assets/excavator-DjB-K7ly.js","assets/deviceStatusUtils-CwW9nwRp.js","assets/cesiumglobe-BKUwj9Hc.css"])))=>i.map(i=>d[i]); 2import{R as Lt,j as i,P as j,p as ia,r as oa,w as aa,n as sa,t as la,c as Rt,g as ji,u as Ne,a as E,M as $,b as Dt,v as sr,d as ca,s as lr,e as gt,o as Le,f as Me,h as Ii,i as wn,k as ua,l as ha,_ as Xe,m as da,q as pa,x as _i,y as cr,z as fa,A as kn,B as ma,C as ga,F as ba,D as ur,E as ya,G as xa,H as wa,I as Oi,J as Ni,K as ka,L as Ta,N as Ca,O as Sa,Q as va,S as hr,T as Aa,U as Ea,V as dr,W as ja,X as Ia,Y as _a,Z as Be,$ as Xt}from"./index-CdaOVUJg.js";import{P as Oa}from"./index-DTZRcMg8.js";class Li extends Lt.Component{constructor(t){super(t),this.closeAlert=this.closeAlert.bind(this),this.timeOut=null}componentDidMount(){this.props.show&&this.props.type!=="error"&&!this.props.isAutoClose&&(this.timeOut=setTimeout(this.closeAlert,6e3))}componentDidUpdate(){this.props.show&&this.props.type!=="error"&&!this.props.isAutoClose&&(this.timeOut=setTimeout(this.closeAlert,6e3))}closeAlert(){this.props.onClose&&this.props.onClose()}render(){let t="";if(this.props.show){let n="";this.props.icon?n=this.props.icon:n="hide",t=i.jsx("div",{className:"alert-container",children:i.jsxs("div",{className:`alert ${this.props.type}`,children:[i.jsx("span",{className:`icon i32 ${n}`}),i.jsx("span",{className:"alert-info",children:this.props.children}),i.jsx("span",{className:"icon i32 close-white-icon",onClick:this.closeAlert})]})})}return i.jsx(Lt.Fragment,{children:t})}}Li.propTypes={show:j.bool,icon:j.string,type:j.oneOf(["success","error","warning","info"]),isAutoClose:j.bool};const Ri=({color:e="dark",size:t="small",type:n="counter",children:r=null,className:o=""})=>Lt.createElement("modus-badge",{color:e,size:t,type:n,class:o},r);Ri.propTypes={color:j.oneOf(["dark","primary","secondary","danger","success","warning"]),size:j.oneOf(["small","medium","large"]),type:j.oneOf(["counter","text"]),children:j.node,className:j.string};const R=e=>`chatbot.emptyState.pages.${e}`,Na=new Set(["account.devices","account.users","account.projects","projects.list","project.devices","project.members"]),La=new Set([R("selection.device.about"),R("selection.user.roleAccount"),R("selection.member.roleProject"),R("selection.project.devices"),R("selection.device.projectAdd"),R("selection.generic.about")]),Ra=new Set([R("selection.design.publish"),R("selection.device.map")]);function Da(e){const t=sa(e);return t==="core"||t==="unknown"}function Ma(e){return Ra.has(e)}const Kt={default:{doc1:R("default.doc1"),doc2:R("default.doc2"),doc3:R("default.doc3")},"account.devices":{doc1:R("accountDevices.doc1"),doc2:R("accountDevices.doc2"),doc3:R("accountDevices.doc3"),lookup:R("accountDevices.lookup"),selectionByType:{device:R("selection.device.about")}},"account.users":{doc1:R("accountUsers.doc1"),doc2:R("accountUsers.doc2"),doc3:R("accountUsers.doc3"),lookup:R("accountUsers.lookup"),selectionByType:{user:R("selection.user.roleAccount")}},"account.projects":{doc1:R("accountProjects.doc1"),doc2:R("accountProjects.doc2"),doc3:R("accountProjects.doc3"),lookup:R("accountProjects.lookup"),selectionByType:{project:R("selection.project.devices")}},"account.map":{doc1:R("accountMap.doc1"),doc2:R("accountMap.doc2"),doc3:R("accountMap.doc3"),selectionByType:{device:R("selection.device.map")}},"account.details":{doc1:R("accountDetails.doc1"),doc2:R("accountDetails.doc2"),doc3:R("accountDetails.doc3")},"account.partners":{doc1:R("accountPartners.doc1"),doc2:R("accountPartners.doc2"),doc3:R("accountPartners.doc3")},"account.ibss":{doc1:R("accountIbss.doc1"),doc2:R("accountIbss.doc2"),doc3:R("accountIbss.doc3")},"projects.list":{doc1:R("projectsList.doc1"),doc2:R("projectsList.doc2"),doc3:R("projectsList.doc3"),lookup:R("projectsList.lookup")},"project.devices":{doc1:R("projectDevices.doc1"),doc2:R("projectDevices.doc2"),doc3:R("projectDevices.doc3"),lookup:R("projectDevices.lookup"),selectionByType:{device:R("selection.device.projectAdd")}},"project.members":{doc1:R("projectMembers.doc1"),doc2:R("projectMembers.doc2"),doc3:R("projectMembers.doc3"),lookup:R("projectMembers.lookup"),selectionByType:{member:R("selection.member.roleProject")}},"project.designs":{doc1:R("projectDesigns.doc1"),doc2:R("projectDesigns.doc2"),doc3:R("projectDesigns.doc3"),selectionByType:{design:R("selection.design.publish")}},"project.dashboard":{doc1:R("projectDashboard.doc1"),doc2:R("projectDashboard.doc2"),doc3:R("projectDashboard.doc3")},"project.settings":{doc1:R("projectSettings.doc1"),doc2:R("projectSettings.doc2"),doc3:R("projectSettings.doc3")},"project.siteVisualization":{doc1:R("project3d.doc1"),doc2:R("project3d.doc2"),doc3:R("project3d.doc3")},"project.workOrders":{doc1:R("projectWorkOrders.doc1"),doc2:R("projectWorkOrders.doc2"),doc3:R("projectWorkOrders.doc3")},"remote.client":{doc1:R("remoteClient.doc1"),doc2:R("remoteClient.doc2"),doc3:R("remoteClient.doc3")}};function Pa(e){const{area:t,section:n}=e;return t==="account"&&n==="devices"?"account.devices":t==="account"&&n==="users"?"account.users":t==="account"&&n==="projects"?"account.projects":t==="account"&&n==="map"?"account.map":t==="account"&&n==="details"?"account.details":t==="account"&&n==="partners"?"account.partners":t==="account"&&n==="ibss"?"account.ibss":t==="projects"&&n==="list"?"projects.list":t==="project"&&n==="devices"?"project.devices":t==="project"&&n==="members"?"project.members":t==="project"&&n==="designs"?"project.designs":t==="project"&&n==="dashboard"?"project.dashboard":t==="project"&&n==="settings"?"project.settings":t==="project"&&n==="site-visualization"?"project.siteVisualization":t==="project"&&n==="work-orders"?"project.workOrders":t==="remote_client"?"remote.client":"default"}function Fa({pathname:e="",search:t="",selectionStore:n={},accountSelectionStore:r={}}){const o=n&&typeof n=="object"?n:{},a=r&&typeof r=="object"?r:{};return oa({whitelistedQuery:aa(t),workspace:{},selection:{selectedDevice:o.selectedDevice,selectedDesign:o.selectedDesign,currentDesign:o.currentDesign,selectedMember:o.selectedMember,selectedTask:o.selectedTask,selectedAsset:o.selectedAsset,selectedWorkOrder:o.selectedWorkOrder,selectedProject:o.selectedProject},accountSelection:{selectedDevice:a.selectedDevice,selectedProject:a.selectedProject,selectedUser:a.selectedUser,selectedPartner:a.selectedPartner,selectedIBSS:a.selectedIBSS,selectedAccount:a.selectedAccount}})}function Ba(e,t){return t==="account.details"?{id:e.doc2}:{id:e.doc3||e.doc2}}function pr(e,t,n,{workflowOnly:r=!1}={}){const o={id:e.doc1},a={id:e.doc2},s=Ba(e,t);if(n!=null&&n.type&&e.selectionByType){const l=e.selectionByType[n.type]||R("selection.generic.about");if(r&&(La.has(l)||!Ma(l)))return[o,a,s];const c=la(n.name);return[o,a,{id:l,values:{entityName:c||void 0,entityType:n.type}}]}return!r&&Na.has(t)&&e.lookup?[o,a,{id:e.lookup}]:[o,a,s]}function za(e){const t=ia(e.pathname||""),n=Pa(t),r=Kt[n]||Kt.default,o=Fa(e),a=Da(e.planName),s=pr(r,n,o,{workflowOnly:a});return s.length!==3?pr(Kt.default,"default",null,{workflowOnly:a}):s}function Ua(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ha=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Va=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ga={};function fr(e,t){return(Ga.jsx?Va:Ha).test(e)}const $a=/[ \t\n\f\r]/g;function Wa(e){return typeof e=="object"?e.type==="text"?mr(e.value):!1:mr(e)}function mr(e){return e.replace($a,"")===""}class Tt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Tt.prototype.normal={};Tt.prototype.property={};Tt.prototype.space=void 0;function Di(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Tt(n,r,t)}function Tn(e){return e.toLowerCase()}class Ce{constructor(t,n){this.attribute=n,this.property=t}}Ce.prototype.attribute="";Ce.prototype.booleanish=!1;Ce.prototype.boolean=!1;Ce.prototype.commaOrSpaceSeparated=!1;Ce.prototype.commaSeparated=!1;Ce.prototype.defined=!1;Ce.prototype.mustUseProperty=!1;Ce.prototype.number=!1;Ce.prototype.overloadedBoolean=!1;Ce.prototype.property="";Ce.prototype.spaceSeparated=!1;Ce.prototype.space=void 0;let qa=0;const q=it(),ue=it(),Cn=it(),_=it(),ie=it(),ct=it(),Ae=it();function it(){return 2**++qa}const Sn=Object.freeze(Object.defineProperty({__proto__:null,boolean:q,booleanish:ue,commaOrSpaceSeparated:Ae,commaSeparated:ct,number:_,overloadedBoolean:Cn,spaceSeparated:ie},Symbol.toStringTag,{value:"Module"})),Jt=Object.keys(Sn);class Dn extends Ce{constructor(t,n,r,o){let a=-1;if(super(t,n),gr(this,"space",o),typeof r=="number")for(;++a<Jt.length;){const s=Jt[a];gr(this,Jt[a],(r&Sn[s])===Sn[s])}}}Dn.prototype.defined=!0;function gr(e,t,n){n&&(e[t]=n)}function ht(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Dn(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Tn(r)]=r,n[Tn(a.attribute)]=r}return new Tt(t,n,e.space)}const Mi=ht({properties:{ariaActiveDescendant:null,ariaAtomic:ue,ariaAutoComplete:null,ariaBusy:ue,ariaChecked:ue,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControl
vendor: 5,361 bytes, line 2
2s:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:ue,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:ue,ariaFlowTo:ie,ariaGrabbed:ue,ariaHasPopup:null,ariaHidden:ue,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:_,ariaLive:null,ariaModal:ue,ariaMultiLine:ue,ariaMultiSelectable:ue,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:ue,ariaReadOnly:ue,ariaRelevant:null,ariaRequired:ue,ariaRoleDescription:ie,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:ue,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Pi(e,t){return t in e?e[t]:t}function Fi(e,t){return Pi(e,t.toLowerCase())}const Ya=ht({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ct,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:q,allowPaymentRequest:q,allowUserMedia:q,alt:null,as:null,async:q,autoCapitalize:null,autoComplete:ie,autoFocus:q,autoPlay:q,blocking:ie,capture:null,charSet:null,checked:q,cite:null,className:ie,cols:_,colSpan:null,content:null,contentEditable:ue,controls:q,controlsList:ie,coords:_|ct,crossOrigin:null,data:null,dateTime:null,decoding:null,default:q,defer:q,dir:null,dirName:null,disabled:q,download:Cn,draggable:ue,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:q,formTarget:null,headers:ie,height:_,hidden:Cn,high:_,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inert:q,inputMode:null,integrity:null,is:null,isMap:q,itemId:null,itemProp:ie,itemRef:ie,itemScope:q,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:q,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:q,muted:q,name:null,nonce:null,noModule:q,noValidate:q,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:q,optimum:_,pattern:null,ping:ie,placeholder:null,playsInline:q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:q,referrerPolicy:null,rel:ie,required:q,reversed:q,rows:_,rowSpan:_,sandbox:ie,scope:null,scoped:q,seamless:q,selected:q,shadowRootClonable:q,shadowRootDelegatesFocus:q,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:ue,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:q,useMap:null,value:ue,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:q,declare:q,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:q,noHref:q,noShade:q,noWrap:q,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:ue,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:q,disableRemotePlayback:q,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:Fi}),Xa=ht({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",colorRen
2dering:"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:Ae,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
2dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:q,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:ct,g2:ct,glyphName:ct,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:Ae,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ae,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ae,rev:Ae,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ae,requiredFeatures:Ae,requiredFonts:Ae,requiredFormats:Ae,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:Ae,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ae,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ae,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pi}),Bi=ht({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,749 bytes, lines 2-3
2,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),zi=ht({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fi}),Ui=ht({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ka={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"},Ja=/[A-Z]/g,br=/-[a-z]/g,Qa=/^data[-\w.:]+$/i;function Za(e,t){const n=Tn(t);let r=t,o=Ce;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Qa.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(br,ts);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!br.test(a)){let s=a.replace(Ja,es);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Dn}return new o(r,t)}function es(e){return"-"+e.toLowerCase()}function ts(e){return e.charAt(1).toUpperCase()}const ns=Di([Mi,Ya,Bi,zi,Ui],"html"),Mn=Di([Mi,Xa,Bi,zi,Ui],"svg");function rs(e){return e.join(" ").trim()}var Pn={},yr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,is=/\n/g,os=/^\s*/,as=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ss=/^:\s*/,ls=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cs=/^[;\s]*/,us=/^\s+|\s+$/g,hs=` 3`,xr="/",wr="*",nt="",ds="comment",ps="declaration";function fs(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 o(m){var y=m.match(is);y&&(n+=y.length);var k=m.lastIndexOf(hs);r=~k?m.length-k:r+m.length}function a(){var m={line:n,column:r};return function(y){return y.position=new s(m),u(),y}}function s(m){this.start=m,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function l(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function c(m){var y=m.exec(e);if(y){var k=y[0];return o(k),e=e.slice(k.length),y}}function u(){c(os)}function d(m){var y;for(m=m||[];y=h();)y!==!1&&m.push(y);return m}function h(){var m=a();if(!(xr!=e.charAt(0)||wr!=e.charAt(1))){for(var y=2;nt!=e.charAt(y)&&(wr!=e.charAt(y)||xr!=e.charAt(y+1));)++y;if(y+=2,nt===e.charAt(y-1))return l("End of comment missing");var k=e.slice(2,y-2);return r+=2,o(k),e=e.slice(y),r+=2,m({type:ds,comment:k})}}function f(){var m=a(),y=c(as);if(y){if(h(),!c(ss))return l("property missing ':'");var k=c(ls),w=m({type:ps,property:kr(y[0].replace(yr,nt)),value:k?kr(k[0].replace(yr,nt)):nt});return c(cs),w}}function p(){var m=[];d(m);for(var y;y=f();)y!==!1&&(m.push(y),d(m));return m}return u(),p()}function kr(e){return e?e.replace(us,nt):nt}var ms=fs,gs=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.default=ys;const bs=gs(ms);function ys(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,bs.default)(e),o=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:l}=a;o?t(s,l,a):l&&(n=n||{},n[s]=l)}),n}var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.camelCase=void 0;var xs=/^--[a-zA-Z0-9_-]+$/,ws=/-([a-z])/g,ks=/^[^-]+$/,Ts=/^-(webkit|moz|ms|o|khtml)-/,Cs=/^-(ms)-/,Ss=function(e){return!e||ks.test(e)||xs.test(e)},vs=function(e,t){return t.toUpperCase()},Tr=function(e,t){return"".concat(t,"-")},As=function(e,t){return t===void 0&&(t={}),Ss(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Cs,Tr):e=e.replace(Ts,Tr),e.replace(ws,vs))};Ut.camelCase=As;var Es=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},js=Es(Pn),Is=Ut;function vn(e,t){var n={};return!e||typeof e!="string"||(0,js.default)(e,function(r,o){r&&o&&(n[(0,Is.camelCase)(r,t)]=o)}),n}vn.default=vn;var _s=vn;const Os=ji(_s),Hi=Vi("end"),Fn=Vi("start");function Vi(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 Ns(e){const t=Fn(e),n=Hi(e);if(t&&n)return{start:t,end:n}}function bt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Cr(e.position):"start"in e||"end"in e?Cr(e):"line"in e||"column"in e?An(e):""}function An(e){return Sr(e&&e.line)+":"+Sr(e&&e.column)}function Cr(e){return An(e&&e.start)+"-"+An(e&&e.end)}function Sr(e){return e&&typeof e=="number"?e:1}
vendor: 1,921 bytes, line 3
3class me extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?o=t:!a.cause&&t&&(s=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=l?l.line:void 0,this.name=bt(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}me.prototype.file="";me.prototype.name="";me.prototype.reason="";me.prototype.message="";me.prototype.stack="";me.prototype.column=void 0;me.prototype.line=void 0;me.prototype.ancestors=void 0;me.prototype.cause=void 0;me.prototype.fatal=void 0;me.prototype.place=void 0;me.prototype.ruleId=void 0;me.prototype.source=void 0;const Bn={}.hasOwnProperty,Ls=new Map,Rs=/[A-Z]/g,Ds=new Set(["table","tbody","thead","tfoot","tr"]),Ms=new Set(["td","th"]),Gi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ps(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=$s(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 2,201 bytes, line 3
3if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Gs(n,t.jsx,t.jsxs)}const o={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"?Mn:ns,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=$i(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function $i(e,t,n){if(t.type==="element")return Fs(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Bs(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Us(e,t,n);if(t.type==="mdxjsEsm")return zs(e,t);if(t.type==="root")return Hs(e,t,n);if(t.type==="text")return Vs(e,t)}function Fs(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Mn,e.schema=o),e.ancestors.push(t);const a=qi(e,t.tagName,!1),s=Ws(e,t);let l=Un(e,t);return Ds.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!Wa(c):!0})),Wi(e,s,a,t),zn(s,l),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Bs(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)}wt(e,t.position)}function zs(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wt(e,t.position)}function Us(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Mn,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:qi(e,t.name,!0),s=qs(e,t),l=Un(e,t);return Wi(e,s,a,t),zn(s,l),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Hs(e,t,n){const r={};return zn(r,Un(e,t)),e.create(t,e.Fragment,r,n)}function Vs(e,t){return t.value}function Wi(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function zn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Gs(e,t,n){return r;function r(o,a,s,l){const u=Array.isArray(s.children)?n:t;
vendor: 4,101 bytes, line 3
3return l?u(a,s,l):u(a,s)}}function $s(e,t){return n;function n(r,o,a,s){const l=Array.isArray(a.children),c=Fn(r);return t(o,a,s,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Ws(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&Bn.call(t.properties,o)){const a=Ys(e,o,t.properties[o]);if(a){const[s,l]=a;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&Ms.has(t.tagName)?r=l:n[s]=l}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function qs(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const l=s.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else wt(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else wt(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function Un(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Ls;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const u=o.get(c)||0;s=c+"-"+u,o.set(c,u+1)}}const l=$i(e,a,s);l!==void 0&&n.push(l)}return n}function Ys(e,t,n){const r=Za(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ua(n):rs(n)),r.property==="style"){let o=typeof n=="object"?n:Xs(e,String(n));return e.stylePropertyNameCase==="css"&&(o=Ks(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Ka[r.property]||r.property:r.attribute,n]}}function Xs(e,t){try{return Os(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new me("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=Gi+"#cannot-parse-style-attribute",o}}function qi(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,s;for(;++a<o.length;){const l=fr(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(a&&l.type==="Literal"),optional:!1}:l}r=s}else r=fr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Bn.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);wt(e)}function wt(e,t){const n=new me("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=Gi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ks(e){const t={};let n;for(n in e)Bn.call(e,n)&&(t[Js(n)]=e[n]);return t}function Js(e){let t=e.replace(Rs,Qs);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Qs(e){return"-"+e.toLowerCase()}const Qt={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"]},Zs={};function Hn(e,t){const n=Zs,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Yi(e,r,o)}function Yi(e,t,n){if(el(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 vr(e.children,t,n)}return Array.isArray(e)?vr(e,t,n):""}function vr(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Yi(e[o],t,n);return r.join("")}function el(e){return!!(e&&typeof e=="object")}const Ar=document.createElement("i");function Vn(e){const t="&"+e+";";Ar.innerHTML=t;const n=Ar.textContent;
vendor: 11,466 bytes, line 3
3return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ee(e,t,n,r){const o=e.length;let a=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function Oe(e,t){return e.length>0?(Ee(e,e.length,0,t),e):t}const Er={}.hasOwnProperty;function Xi(e){const t={};let n=-1;for(;++n<e.length;)tl(t,e[n]);return t}function tl(e,t){let n;for(n in t){const o=(Er.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){Er.call(o,s)||(o[s]=[]);const l=a[s];nl(o[s],Array.isArray(l)?l:l?[l]:[])}}}function nl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ee(e,0,0,r)}function Ki(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function De(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const be=Ke(/[A-Za-z]/),fe=Ke(/[\dA-Za-z]/),rl=Ke(/[#-'*+\--9=?A-Z^-~]/);function Mt(e){return e!==null&&(e<32||e===127)}const En=Ke(/\d/),il=Ke(/[\dA-Fa-f]/),ol=Ke(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function ne(e){return e!==null&&(e<0||e===32)}function K(e){return e===-2||e===-1||e===32}const Ht=Ke(new RegExp("\\p{P}|\\p{S}","u")),rt=Ke(/\s/);function Ke(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function dt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&fe(e.charCodeAt(n+1))&&fe(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const l=e.charCodeAt(n+1);a<56320&&l>56319&&l<57344?(s=String.fromCharCode(a,l),o=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function J(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(c){return K(c)?(e.enter(n),l(c)):t(c)}function l(c){return K(c)&&a++<o?(e.consume(c),l):(e.exit(n),t(c))}}const al={tokenize:sl};function sl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),J(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),a(l)}function a(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return H(l)?(e.consume(l),e.exit("chunkText"),a):(e.consume(l),s)}}const ll={tokenize:cl},jr={tokenize:ul};function cl(e){const t=this,n=[];let r=0,o,a,s;return l;function l(x){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,c,u)(x)}return u(x)}function c(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&v();const I=t.events.length;let O=I,T;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){T=t.events[O][1].end;break}w(r);let L=I;for(;L<t.events.length;)t.events[L][1].end={...T},L++;return Ee(t.events,O+1,0,t.events.slice(I)),t.events.length=L,u(x)}return l(x)}function u(x){if(r===n.length){if(!o)return f(x);if(o.currentConstruct&&o.currentConstruct.concrete)return m(x);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jr,d,h)(x)}function d(x){return o&&v(),w(r),f(x)}function h(x){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(x)}function f(x){return t.containerState={},e.attempt(jr,p,m)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),f(x)}function m(x){if(x===null){o&&v(),w(0),e.consume(x);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),y(x)}function y(x){if(x===null){k(e.exit("chunkFlow"),!0),w(0),e.consume(x);return}return H(x)?(e.consume(x),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(x),y)}function k(x,I){const O=t.sliceStream(x);if(I&&O.push(null),x.previous=a,a&&(a.next=x),a=x,o.defineSkip(x.start),o.write(O),t.parser.lazy[x.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<s&&(!o.events[T][1].end||o.events[T][1].end.offset>s))return;const L=t.events.length;let D=L,B,C;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(B){C=t.events[D][1].end;break}B=!0}for(w(r),T=L;T<t.events.length;)t.events[T][1].end={...C},T++;Ee(t.events,D+1,0,t.events.slice(L)),t.events.length=T}}function w(x){let I=n.length;for(;I-- >x;){const O=n[I];t.containerState=O[1],O[0].exit.call(t,e)}n.length=x}function v(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function ul(e,t,n){return J(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ut(e){if(e===null||ne(e)||rt(e))return 1;if(Ht(e))return 2}function Vt(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const jn={name:"attention",resolveAll:hl,tokenize:dl};function hl(e,t){let n=-1,r,o,a,s,l,c,u,d;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;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},f={...e[n][1].start};Ir(h,-c),Ir(f,c),s={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:c>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[r][1].end={...s.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Oe(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Oe(u,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=Oe(u,Vt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Oe(u,[["exit",a,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Oe(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ee(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function dl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ut(r);let a;return s;function s(c){return a=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===a)return e.consume(c),l;const u=e.exit("attentionSequence"),d=ut(c),h=!d||d===2&&o||n.includes(c),f=!o||o===2&&d||n.includes(r);return u._open=!!(a===42?h:h&&(o||!f)),u._close=!!(a===42?f:f&&(d||!h)),t(c)}}function Ir(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const pl={name:"autolink",tokenize:fl};function fl(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return be(p)?(e.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||fe(p)?(r=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||fe(p))&&r++<32?(e.consume(p),l):(r=0,u(p))}function c(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||Mt(p)?n(p):(e.consume(p),c)}function u(p){return p===64?(e.consume(p),d):rl(p)?(e.consume(p),u):n(p)}function d(p){return fe(p)?h(p):n(p)}function h(p){return p===46?(e.consume(p),r=0,d):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||fe(p))&&r++<63){const m=p===45?f:h;return e.consume(p),m}return n(p)}}const Ct={partial:!0,tokenize:ml};function ml(e,t,n){return r;function r(a){return K(a)?J(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||H(a)?t(a):n(a)}}const Ji={continuation:{tokenize:bl},exit:yl,name:"blockQuote",tokenize:gl};function gl(e,t,n){const r=this;return o;function o(s){if(s===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return K(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function bl(e,t,n){const r=this;return o;function o(s){return K(s)?J(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Ji,t,n)(s)}}function yl(e){e.exit("blockQuote")}const Qi={name:"characterEscape",tokenize:xl};function xl(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return ol(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Zi={name:"characterReference",tokenize:wl};function wl(e,t,n){const r=this;let o=0,a,s;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=fe,d(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=il,d):(e.enter("characterReferenceValue"),a=7,s=En,d(h))}function d(h){if(h===59&&o){const f=e.exit("characterReferenceValue");return s===fe&&!Vn(r.sliceSerialize(f))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&o++<a?(e.consume(h),d):n(h)}}const _r={partial:!0,tokenize:Tl},Or={concrete:!0,name:"codeFenced",tokenize:kl};function kl(e,t,n){const r=this,o={partial:!0,tokenize:O};let a=0,s=0,l;return c;function c(T){return u(T)}function u(T){const L=r.events[r.events.length-1];return a=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,l=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(T)}function d(T){return T===l?(s++,e.consume(T),d):s<3?n(T):(e.exit("codeFencedFenceSequence"),K(T)?J(e,h,"whitespace")(T):h(T))}function h(T){return T===null||H(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(_r,y,I)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(T))}function f(T){return T===null||H(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(T)):K(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),J(e,p,"whitespace")(T)):T===96&&T===l?n(T):(e.consume(T),f)}
vendor: 12,278 bytes, line 3
3function p(T){return T===null||H(T)?h(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||H(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(T)):T===96&&T===l?n(T):(e.consume(T),m)}function y(T){return e.attempt(o,I,k)(T)}function k(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),w}function w(T){return a>0&&K(T)?J(e,v,"linePrefix",a+1)(T):v(T)}function v(T){return T===null||H(T)?e.check(_r,y,I)(T):(e.enter("codeFlowValue"),x(T))}function x(T){return T===null||H(T)?(e.exit("codeFlowValue"),v(T)):(e.consume(T),x)}function I(T){return e.exit("codeFenced"),t(T)}function O(T,L,D){let B=0;return C;function C(z){return T.enter("lineEnding"),T.consume(z),T.exit("lineEnding"),M}function M(z){return T.enter("codeFencedFence"),K(z)?J(T,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):P(z)}function P(z){return z===l?(T.enter("codeFencedFenceSequence"),U(z)):D(z)}function U(z){return z===l?(B++,T.consume(z),U):B>=s?(T.exit("codeFencedFenceSequence"),K(z)?J(T,W,"whitespace")(z):W(z)):D(z)}function W(z){return z===null||H(z)?(T.exit("codeFencedFence"),L(z)):D(z)}}}function Tl(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Zt={name:"codeIndented",tokenize:Sl},Cl={partial:!0,tokenize:vl};function Sl(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),J(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?c(u):H(u)?e.attempt(Cl,s,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||H(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function vl(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):J(e,a,"linePrefix",5)(s)}function a(s){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):H(s)?o(s):n(s)}}const Al={name:"codeText",previous:jl,resolve:El,tokenize:Il};function El(e){let t=e.length-4,n=3,r,o;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;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function jl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Il(e,t,n){let r=0,o,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,l):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(a=e.enter("codeTextSequence"),o=0,d(h)):H(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||H(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),u)}function d(h){return h===96?(e.consume(h),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",u(h))}}class _l{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&pt(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),pt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),pt(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);pt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);pt(this.left,n.reverse())}}}function pt(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 eo(e){const t={};let n=-1,r,o,a,s,l,c,u;const d=new _l(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ol(d,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(s=d.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(d.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...d.get(o)[1].start},l=d.slice(o,n),l.unshift(r),d.splice(o,n-o+1,l))}}return Ee(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function Ol(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,c=[],u={};let d,h,f=-1,p=n,m=0,y=0;const k=[y];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),h&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=n;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(y=f+1,k.push(y),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),f=k.length;f--;){const w=l.slice(k[f],k[f+1]),v=a.pop();c.push([v,v+w.length-1]),e.splice(v,2,w)}for(c.reverse(),f=-1;++f<c.length;)u[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return u}const Nl={resolve:Rl,tokenize:Dl},Ll={partial:!0,tokenize:Ml};function Rl(e){return eo(e),e}function Dl(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?a(l):H(l)?e.check(Ll,s,a)(l):(e.consume(l),o)}function a(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function Ml(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),J(e,a,"linePrefix")}function a(s){if(s===null||H(s))return n(s);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function to(e,t,n,r,o,a,s,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return h;function h(w){return w===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(w),e.exit(a),f):w===null||w===32||w===41||Mt(w)?n(w):(e.enter(r),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),y(w))}function f(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(l),f(w)):w===null||w===60||H(w)?n(w):(e.consume(w),w===92?m:p)}function m(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function y(w){return!d&&(w===null||w===41||ne(w))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(r),t(w)):d<u&&w===40?(e.consume(w),d++,y):w===41?(e.consume(w),d--,y):w===null||w===32||w===40||Mt(w)?n(w):(e.consume(w),w===92?k:y)}function k(w){return w===40||w===41||w===92?(e.consume(w),y):y(w)}}function no(e,t,n,r,o,a){const s=this;let l=0,c;return u;function u(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(a),d}function d(p){return l>999||p===null||p===91||p===93&&!c||p===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||H(p)||l++>999?(e.exit("chunkString"),d(p)):(e.consume(p),c||(c=!K(p)),p===92?f:h)}function f(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function ro(e,t,n,r,o,a){let s;return l;function l(f){return f===34||f===39||f===40?(e.enter(r),e.enter(o),e.consume(f),e.exit(o),s=f===40?41:f,c):n(f)}function c(f){return f===s?(e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):(e.enter(a),u(f))}function u(f){return f===s?(e.exit(a),c(s)):f===null?n(f):H(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),J(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===s||f===null||H(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?h:d)}function h(f){return f===s||f===92?(e.consume(f),d):d(f)}}function yt(e,t){let n;return r;function r(o){return H(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):K(o)?J(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Pl={name:"definition",tokenize:Bl},Fl={partial:!0,tokenize:zl};function Bl(e,t,n){const r=this;let o;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return no.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return o=De(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return ne(p)?yt(e,u)(p):u(p)}function u(p){return to(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(Fl,h,h)(p)}function h(p){return K(p)?J(e,f,"whitespace")(p):f(p)}function f(p){return p===null||H(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function zl(e,t,n){return r;function r(l){return ne(l)?yt(e,o)(l):n(l)}function o(l){return ro(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return K(l)?J(e,s,"whitespace")(l):s(l)}function s(l){return l===null||H(l)?t(l):n(l)}}const Ul={name:"hardBreakEscape",tokenize:Hl};function Hl(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return H(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Vl={name:"headingAtx",resolve:Gl,tokenize:$l};function Gl(e,t){let n=e.length-2,r=3,o,a;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&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ee(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]]
vendor: 12,809 bytes, line 3
3)),e}function $l(e,t,n){let r=0;return o;function o(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||ne(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||H(d)?(e.exit("atxHeading"),t(d)):K(d)?J(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||ne(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const Wl=["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"],Nr=["pre","script","style","textarea"],ql={concrete:!0,name:"htmlFlow",resolveTo:Kl,tokenize:Jl},Yl={partial:!0,tokenize:Zl},Xl={partial:!0,tokenize:Ql};function Kl(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 Jl(e,t,n){const r=this;let o,a,s,l,c;return u;function u(b){return d(b)}function d(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),h}function h(b){return b===33?(e.consume(b),f):b===47?(e.consume(b),a=!0,y):b===63?(e.consume(b),o=3,r.interrupt?t:g):be(b)?(e.consume(b),s=String.fromCharCode(b),k):n(b)}function f(b){return b===45?(e.consume(b),o=2,p):b===91?(e.consume(b),o=5,l=0,m):be(b)?(e.consume(b),o=4,r.interrupt?t:g):n(b)}function p(b){return b===45?(e.consume(b),r.interrupt?t:g):n(b)}function m(b){const te="CDATA[";return b===te.charCodeAt(l++)?(e.consume(b),l===te.length?r.interrupt?t:P:m):n(b)}function y(b){return be(b)?(e.consume(b),s=String.fromCharCode(b),k):n(b)}function k(b){if(b===null||b===47||b===62||ne(b)){const te=b===47,de=s.toLowerCase();return!te&&!a&&Nr.includes(de)?(o=1,r.interrupt?t(b):P(b)):Wl.includes(s.toLowerCase())?(o=6,te?(e.consume(b),w):r.interrupt?t(b):P(b)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):a?v(b):x(b))}return b===45||fe(b)?(e.consume(b),s+=String.fromCharCode(b),k):n(b)}function w(b){return b===62?(e.consume(b),r.interrupt?t:P):n(b)}function v(b){return K(b)?(e.consume(b),v):C(b)}function x(b){return b===47?(e.consume(b),C):b===58||b===95||be(b)?(e.consume(b),I):K(b)?(e.consume(b),x):C(b)}function I(b){return b===45||b===46||b===58||b===95||fe(b)?(e.consume(b),I):O(b)}function O(b){return b===61?(e.consume(b),T):K(b)?(e.consume(b),O):x(b)}function T(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),c=b,L):K(b)?(e.consume(b),T):D(b)}function L(b){return b===c?(e.consume(b),c=null,B):b===null||H(b)?n(b):(e.consume(b),L)}function D(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ne(b)?O(b):(e.consume(b),D)}function B(b){return b===47||b===62||K(b)?x(b):n(b)}function C(b){return b===62?(e.consume(b),M):n(b)}function M(b){return b===null||H(b)?P(b):K(b)?(e.consume(b),M):n(b)}function P(b){return b===45&&o===2?(e.consume(b),Q):b===60&&o===1?(e.consume(b),ee):b===62&&o===4?(e.consume(b),ce):b===63&&o===3?(e.consume(b),g):b===93&&o===5?(e.consume(b),he):H(b)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Yl,ae,U)(b)):b===null||H(b)?(e.exit("htmlFlowData"),U(b)):(e.consume(b),P)}function U(b){return e.check(Xl,W,ae)(b)}function W(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),z}function z(b){return b===null||H(b)?U(b):(e.enter("htmlFlowData"),P(b))}function Q(b){return b===45?(e.consume(b),g):P(b)}function ee(b){return b===47?(e.consume(b),s="",Y):P(b)}function Y(b){if(b===62){const te=s.toLowerCase();return Nr.includes(te)?(e.consume(b),ce):P(b)}return be(b)&&s.length<8?(e.consume(b),s+=String.fromCharCode(b),Y):P(b)}function he(b){return b===93?(e.consume(b),g):P(b)}function g(b){return b===62?(e.consume(b),ce):b===45&&o===2?(e.consume(b),g):P(b)}function ce(b){return b===null||H(b)?(e.exit("htmlFlowData"),ae(b)):(e.consume(b),ce)}function ae(b){return e.exit("htmlFlow"),t(b)}}function Ql(e,t,n){const r=this;return o;function o(s){return H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Zl(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Ct,t,n)}}const ec={name:"htmlText",tokenize:tc};function tc(e,t,n){const r=this;let o,a,s;return l;function l(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),u):g===47?(e.consume(g),O):g===63?(e.consume(g),x):be(g)?(e.consume(g),D):n(g)}function u(g){return g===45?(e.consume(g),d):g===91?(e.consume(g),a=0,m):be(g)?(e.consume(g),v):n(g)}function d(g){return g===45?(e.consume(g),p):n(g)}function h(g){return g===null?n(g):g===45?(e.consume(g),f):H(g)?(s=h,ee(g)):(e.consume(g),h)}function f(g){return g===45?(e.consume(g),p):h(g)}function p(g){return g===62?Q(g):g===45?f(g):h(g)}function m(g){const ce="CDATA[";return g===ce.charCodeAt(a++)?(e.consume(g),a===ce.length?y:m):n(g)}function y(g){return g===null?n(g):g===93?(e.consume(g),k):H(g)?(s=y,ee(g)):(e.consume(g),y)}function k(g){return g===93?(e.consume(g),w):y(g)}function w(g){return g===62?Q(g):g===93?(e.consume(g),w):y(g)}function v(g){return g===null||g===62?Q(g):H(g)?(s=v,ee(g)):(e.consume(g),v)}function x(g){return g===null?n(g):g===63?(e.consume(g),I):H(g)?(s=x,ee(g)):(e.consume(g),x)}function I(g){return g===62?Q(g):x(g)}function O(g){return be(g)?(e.consume(g),T):n(g)}function T(g){return g===45||fe(g)?(e.consume(g),T):L(g)}function L(g){return H(g)?(s=L,ee(g)):K(g)?(e.consume(g),L):Q(g)}function D(g){return g===45||fe(g)?(e.consume(g),D):g===47||g===62||ne(g)?B(g):n(g)}function B(g){return g===47?(e.consume(g),Q):g===58||g===95||be(g)?(e.consume(g),C):H(g)?(s=B,ee(g)):K(g)?(e.consume(g),B):Q(g)}function C(g){return g===45||g===46||g===58||g===95||fe(g)?(e.consume(g),C):M(g)}function M(g){return g===61?(e.consume(g),P):H(g)?(s=M,ee(g)):K(g)?(e.consume(g),M):B(g)}function P(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),o=g,U):H(g)?(s=P,ee(g)):K(g)?(e.consume(g),P):(e.consume(g),W)}function U(g){return g===o?(e.consume(g),o=void 0,z):g===null?n(g):H(g)?(s=U,ee(g)):(e.consume(g),U)}function W(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||ne(g)?B(g):(e.consume(g),W)}function z(g){return g===47||g===62||ne(g)?B(g):n(g)}function Q(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function ee(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Y}function Y(g){return K(g)?J(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):he(g)}function he(g){return e.enter("htmlTextData"),s(g)}}const Gn={name:"labelEnd",resolveAll:oc,resolveTo:ac,tokenize:sc},nc={tokenize:lc},rc={tokenize:cc},ic={tokenize:uc};function oc(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 o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Ee(e,0,e.length,n),e}function ac(e,t){let n=e.length,r=0,o,a,s,l;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(s=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",c,t],["enter",u,t]],l=Oe(l,e.slice(a+1,a+r+3)),l=Oe(l,[["enter",d,t]]),l=Oe(l,Vt(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),l=Oe(l,[["exit",d,t],e[s-2],e[s-1],["exit",u,t]]),l=Oe(l,e.slice(s+1)),l=Oe(l,[["exit",c,t]]),Ee(e,a,e.length,l),e}function sc(e,t,n){const r=this;let o=r.events.length,a,s;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return l;function l(f){return a?a._inactive?h(f):(s=r.parser.defined.includes(De(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),c):n(f)}function c(f){return f===40?e.attempt(nc,d,s?d:h)(f):f===91?e.attempt(rc,d,s?u:h)(f):s?d(f):h(f)}function u(f){return e.attempt(ic,d,h)(f)}function d(f){return t(f)}function h(f){return a._balanced=!0,n(f)}}function lc(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),o}function o(h){return ne(h)?yt(e,a)(h):a(h)}function a(h){return h===41?d(h):to(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return ne(h)?yt(e,c)(h):d(h)}function l(h){return n(h)}function c(h){return h===34||h===39||h===40?ro(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function u(h){return ne(h)?yt(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function cc(e,t,n){const r=this;return o;function o(l){return no.call(r,e,a,s,"reference","referenceMarker","referenceString")(l)}function a(l){return r.parser.defined.includes(De(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function s(l){return n(l)}}function uc(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const hc={name:"labelStartImage",resolveAll:Gn.resolveAll,tokenize:dc};function dc(e,t,n){const r=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),a}function a(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):n(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const pc={name:"labelStartLink",resolveAll:Gn.resolveAll,tokenize:fc};function fc(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const en={name:"lineEnding",tokenize:mc};function mc(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),J(e,t,"linePrefix")}}const _t={name:"thematicBreak",tokenize:gc};function gc(e,t,n){let r=0,o;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return o=u,l(u)}function l(u){return u===o?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||H(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===o?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),K(u)?J(e,l,"whitespace")(u):l(u))}}const Te={continuation:{tokenize:wc},exit:Tc,name:"list",tokenize:xc},bc={partial:!0,tokenize:Cc},yc={partial:!0,tokenize:kc};function xc(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return l;function l(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:En(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(_t,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return En(p)&&++s<10?(e.consume(p),c):(!r.interrupt||s<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(Ct,r.interrupt?n:d,e.attempt(bc,f,h))}
vendor: 5,348 bytes, line 3
3function d(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function h(p){return K(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function wc(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ct,o,a);function o(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,J(e,t,"listItemIndent",r.containerState.size+1)(l)}function a(l){return r.containerState.furtherBlankLines||!K(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yc,t,s)(l))}function s(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,J(e,e.attempt(Te,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function kc(e,t,n){const r=this;return J(e,o,"listItemIndent",r.containerState.size+1);function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Tc(e){e.exit(this.containerState.type)}function Cc(e,t,n){const r=this;return J(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const s=r.events[r.events.length-1];return!K(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Lr={name:"setextUnderline",resolveTo:Sc,tokenize:vc};function Sc(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function vc(e,t,n){const r=this;let o;return a;function a(u){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),o=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===o?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),K(u)?J(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||H(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Ac={tokenize:Ec};function Ec(e){const t=this,n=e.attempt(Ct,r,e.attempt(this.parser.constructs.flowInitial,o,J(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Nl,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const jc={resolveAll:oo()},Ic=io("string"),_c=io("text");function io(e){return{resolveAll:oo(e==="text"?Oc:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,s,l);return s;function s(d){return u(d)?a(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const h=o[d];let f=-1;if(h)for(;++f<h.length;){const p=h[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function oo(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function Oc(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],o=t.sliceStream(r);let a=o.length,s=-1,l=0,c;for(;a--;){const u=o[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(u===-2)c=!0,l++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},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 Nc={42:Te,43:Te,45:Te,48:Te,49:Te,50:Te,51:Te,52:Te,53:Te,54:Te,55:Te,56:Te,57:Te,62:Ji},Lc={91:Pl},Rc={[-2]:Zt,[-1]:Zt,32:Zt},Dc={35:Vl,42:_t,45:[Lr,_t],60:ql,61:Lr,95:_t,96:Or,126:Or},Mc={38:Zi,92:Qi},Pc={[-5]:en,[-4]:en,[-3]:en,33:hc,38:Zi,42:jn,60:[pl,ec],91:pc,92:[Ul,Qi],93:Gn,95:jn,96:Al},Fc={null:[jn,jc]},Bc={null:[42,95]},zc={null:[]},Uc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Bc,contentInitial:Lc,disable:zc,document:Nc,flow:Dc,flowInitial:Rc,insideSpan:Fc,string:Mc,text:Pc},Symbol.toStringTag,{value:"Module"}));function Hc(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 14,519 bytes, lines 3-5
3olumn:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let s=[],l=[];const c={attempt:L(O),check:L(T),consume:v,enter:x,exit:I,interrupt:L(T,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:h};let d=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function h(M){return s=Oe(s,M),k(),s[s.length-1]!==null?[]:(D(t,0),u.events=Vt(a,u.events,u),u.events)}function f(M,P){return Gc(p(M),P)}function p(M){return Vc(s,M)}function m(){const{_bufferIndex:M,_index:P,line:U,column:W,offset:z}=r;return{_bufferIndex:M,_index:P,line:U,column:W,offset:z}}function y(M){o[M.line]=M.column,C()}function k(){let M;for(;r._index<s.length;){const P=s[r._index];if(typeof P=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<P.length;)w(P.charCodeAt(r._bufferIndex));else w(P)}}function w(M){d=d(M)}function v(M){H(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,C()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function x(M,P){const U=P||{};return U.type=M,U.start=m(),u.events.push(["enter",U,u]),l.push(U),U}function I(M){const P=l.pop();return P.end=m(),u.events.push(["exit",P,u]),P}function O(M,P){D(M,P.from)}function T(M,P){P.restore()}function L(M,P){return U;function U(W,z,Q){let ee,Y,he,g;return Array.isArray(W)?ae(W):"tokenize"in W?ae([W]):ce(W);function ce(re){return Se;function Se(pe){const ge=pe!==null&&re[pe],ye=pe!==null&&re.null,Pe=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return ae(Pe)(pe)}}function ae(re){return ee=re,Y=0,re.length===0?Q:b(re[Y])}function b(re){return Se;function Se(pe){return g=B(),he=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?de():re.tokenize.call(P?Object.assign(Object.create(u),P):u,c,te,de)(pe)}}function te(re){return M(he,g),z}function de(re){return g.restore(),++Y<ee.length?b(ee[Y]):Q}}}function D(M,P){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&Ee(u.events,P,u.events.length-P,M.resolve(u.events.slice(P),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function B(){const M=m(),P=u.previous,U=u.currentConstruct,W=u.events.length,z=Array.from(l);return{from:W,restore:Q};function Q(){r=M,u.previous=P,u.currentConstruct=U,u.events.length=W,l=z,C()}}function C(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Vc(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,a)];else{if(s=e.slice(n,o),r>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(r):s.shift()}a>0&&s.push(e[o].slice(0,a))}return s}function Gc(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=` 4`;break}case-3:{s=`\r 5`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(a)}o=a===-2,r.push(s)}return r.join("")}function $c(e){const r={constructs:Xi([Uc,...(e||{}).extensions||[]]),content:o(al),defined:[],document:o(ll),flow:o(Ac),lazy:{},string:o(Ic),text:o(_c)};return r;function o(a){return s;function s(l){return Hc(r,a,l)}}}function Wc(e){for(;!eo(e););return e}const Rr=/[\0\t\n\r]/g;function qc(){let e=1,t="",n=!0,r;return o;function o(a,s,l){const c=[];let u,d,h,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(Rr.lastIndex=h,u=Rr.exec(a),f=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(f),!u){t=a.slice(h);break}if(p===10&&h===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<f&&(c.push(a.slice(h,f)),e+=f-h),p){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=f+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const Yc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xc(e){return e.replace(Yc,Kc)}function Kc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),a=o===120||o===88;return Ki(n.slice(a?2:1),a?16:10)}return Vn(n)||e}const ao={}.hasOwnProperty;function Jc(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Qc(n)(Wc($c(n).document().write(qc()(e,t,!0))))}function Qc(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(xe),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(je),blockQuote:a(ye),characterEscape:B,characterReference:B,codeFenced:a(Pe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Pe,s),codeText:a(Ve,s),codeTextData:B,data:B,codeFlowValue:B,definition:a(Ge),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a($e),hardBreakEscape:a(Je),hardBreakTrailing:a(Je),htmlFlow:a(We,s),htmlFlowData:B,htmlText:a(We,s),htmlTextData:B,image:a(qe),label:s,link:a(xe),listItem:a(V),listItemValue:f,listOrdered:a(S,h),listUnordered:a(S),paragraph:a(se),reference:b,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(je),strong:a(Ie),thematicBreak:a(ot)},exit:{atxHeading:c(),atxHeadingSequence:O,autolink:c(),autolinkEmail:ge,autolinkProtocol:pe,blockQuote:c(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:re,characterReference:Se,codeFenced:c(k),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:c(w),codeText:c(z),codeTextData:C,data:C,definition:c(),definitionDestinationString:I,definitionLabelString:v,definitionTitleString:x,emphasis:c(),hardBreakEscape:c(P),hardBreakTrailing:c(P),htmlFlow:c(U),htmlFlowData:C,htmlText:c(W),htmlTextData:C,image:c(ee),label:he,labelText:Y,lineEnding:M,link:c(Q),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:te,resourceDestinationString:g,resourceTitleString:ce,resource:ae,setextHeading:c(D),setextHeadingLineSequence:L,setextHeadingText:T,strong:c(),thematicBreak:c()}};so(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(A){let N={type:"root",children:[]};const G={stack:[N],tokenStack:[],config:t,enter:l,exit:u,buffer:s,resume:d,data:n},X=[];let Z=-1;for(;++Z<A.length;)if(A[Z][1].type==="listOrdered"||A[Z][1].type==="listUnordered")if(A[Z][0]==="enter")X.push(Z);else{const we=X.pop();Z=o(A,we,Z)}for(Z=-1;++Z<A.length;){const we=t[A[Z][0]];ao.call(we,A[Z][1].type)&&we[A[Z][1].type].call(Object.assign({sliceSerialize:A[Z][2].sliceSerialize},G),A[Z][1])}if(G.tokenStack.length>0){const we=G.tokenStack[G.tokenStack.length-1];(we[1]||Dr).call(G,void 0,we[0])}for(N.position={start:Ye(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:Ye(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<t.transforms.length;)N=t.transforms[Z](N)||N;return N}function o(A,N,G){let X=N-1,Z=-1,we=!1,Fe,_e,F,le;for(;++X<=G;){const oe=A[X];switch(oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{oe[0]==="enter"?Z++:Z--,le=void 0;break}case"lineEndingBlank":{oe[0]==="enter"&&(Fe&&!le&&!Z&&!F&&(F=X),le=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:le=void 0}if(!Z&&oe[0]==="enter"&&oe[1].type==="listItemPrefix"||Z===-1&&oe[0]==="exit"&&(oe[1].type==="listUnordered"||oe[1].type==="listOrdered")){if(Fe){let Re=X;for(_e=void 0;Re--;){const ke=A[Re];if(ke[1].type==="lineEnding"||ke[1].type==="lineEndingBlank"){if(ke[0]==="exit")continue;_e&&(A[_e][1].type="lineEndingBlank",we=!0),ke[1].type="lineEnding",_e=Re}else if(!(ke[1].type==="linePrefix"||ke[1].type==="blockQuotePrefix"||ke[1].type==="blockQuotePrefixWhitespace"||ke[1].type==="blockQuoteMarker"||ke[1].type==="listItemIndent"))break}F&&(!_e||F<_e)&&(Fe._spread=!0),Fe.end=Object.assign({},_e?A[_e][1].start:oe[1].end),A.splice(_e||X,0,["exit",Fe,oe[2]]),X++,G++}if(oe[1].type==="listItemPrefix"){const Re={type:"listItem",_spread:!1,start:Object.assign({},oe[1].start),end:void 0};Fe=Re,A.splice(X,0,["enter",Re,oe[2]]),X++,G++,F=void 0,le=!0}}}return A[N][1]._spread=we,G}function a(A,N){return G;function G(X){l.call(this,A(X),X),N&&N.call(this,X)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(A,N,G){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([N,G||void 0]),A.position={start:Ye(N.start),end:void 0}}function c(A){return N;function N(G){A&&A.call(this,G),u.call(this,G)}}function u(A,N){const G=this.stack.pop(),X=this.tokenStack.pop();if(X)X[0].type!==A.type&&(N?N.call(this,A,X[0]):(X[1]||Dr).call(this,A,X[0]));else throw new Error("Cannot close `"+A.type+"` ("+bt({start:A.start,end:A.end})+"): itâs not open");G.position.end=Ye(A.end)}function d(){return Hn(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(A){if(this.data.expectingFirstListItemValue){const N=this.stack[this.stack.length-2];N.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function p(){const A=this.resume(),N=this.stack[this.stack.length-1];N.lang=A}function m(){const A=this.resume(),N=this.stack[this.stack.length-1];N.meta=A}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const A=this.resume(),N=this.stack[this.stack.length-1];N.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const A=this.resume(),N=this.stack[this.stack.length-1];N.value=A.replace(/(\r?\n|\r)$/g,"")}function v(A){const N=this.resume(),G=this.stack[this.stack.length-1];G.label=N,G.identifier=De(this.sliceSerialize(A)).toLowerCase()}function x(){const A=this.resume(),N=this.stack[this.stack.length-1];N.title=A}function I(){const A=this.resume(),N=this.stack[this.stack.length-1];N.url=A}function O(A){const N=this.stack[this.stack.length-1];if(!N.depth){const G=this.sliceSerialize(A).length;N.depth=G}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function L(A){const N=this.stack[this.stack.length-1];N.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function B(A){const G=this.stack[this.stack.length-1].children;let X=G[G.length-1];(!X||X.type!=="text")&&(X=ve(),X.position={start:Ye(A.start),end:void 0},G.push(X)),this.stack.push(X)}function C(A){const N=this.stack.pop();N.value+=this.sliceSerialize(A),N.position.end=Ye(A.end)}function M(A){const N=this.stack[this.stack.length-1];if(this.data.atHardBreak){const G=N.children[N.children.length-1];G.position.end=Ye(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(N.type)&&(B.call(this,A),C.call(this,A))}function P(){this.data.atHardBreak=!0}function U(){const A=this.resume(),N=this.stack[this.stack.length-1];N.value=A}function W(){const A=this.resume(),N=this.stack[this.stack.length-1];N.value=A}function z(){const A=this.resume(),N=this.stack[this.stack.length-1];N.value=A}function Q(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=N,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function ee(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const N=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=N,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function Y(A){const N=this.sliceSerialize(A),G=this.stack[this.stack.length-2];G.label=Xc(N),G.identifier=De(N).toLowerCase()}function he(){const A=this.stack[this.stack.length-1],N=this.resume(),G=this.stack[this.stack.length-1];if(this.data.inReference=!0,G.type==="link"){const X=A.children;G.children=X}else G.alt=N}function g(){const A=this.resume(),N=this.stack[this.stack.length-1];N.url=A}function ce(){const A=this.resume(),N=this.stack[this.stack.length-1];N.title=A}function ae(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function te(A){const N=this.resume(),G=this.stack[this.stack.length-1];G.label=N,G.identifier=De(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function de(A){this.data.characterReferenceType=A.type}function re(A){const N=this.sliceSerialize(A),G=this.data.characterReferenceType;let X;G?(X=Ki(N,G==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):X=Vn(N);const Z=this.stack[this.stack.length-1];Z.value+=X}function Se(A){const N=this.stack.pop();N.position.end=Ye(A.end)}function pe(A){C.call(this,A);const N=this.stack[this.stack.length-1];N.url=this.sliceSerialize(A)}function ge(A){C.call(this,A);const N=this.stack[this.stack.length-1];N.url="mailto:"+this.sliceSerialize(A)}function ye(){return{type:"blockquote",children:[]}}function Pe(){return{type:"code",lang:null,meta:null,value:""}}function Ve(){return{type:"inlineCode",value:""}}function Ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $e(){return{type:"emphasis",children:[]}}function je(){return{type:"heading",depth:0,children:[]}}function Je(){return{type:"break"}}function We(){return{type:"html",value:""}}function qe(){return{type:"image",title:null,url:"",alt:null}}function xe(){return{type:"link",title:null,url:"",children:[]}}function S(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function V(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function se(){return{type:"paragraph",children:[]}}function Ie(){return{type:"strong",children:[]}}function ve(){return{type:"text",value:""}}function ot(){return{type:"thematicBreak"}}}function Ye(e){return{line:e.line,column:e.column,offset:e.offset}}function so(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?so(e,r):Zc(e,r)}}function Zc(e,t){let n;for(n in t)if(ao.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 Dr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bt({start:t.start,end:t.end}
vendor: 8,880 bytes, lines 5-9
5)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bt({start:t.start,end:t.end})+") is still open")}function eu(e){const t=this;t.parser=n;function n(r){return Jc(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tu(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 nu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 6`}]}function ru(e,t){const n=t.value?t.value+` 7`:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function iu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ou(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function au(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=dt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function su(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function lo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function cu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lo(e,t);const o={src:dt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)}function uu(e,t){const n={src:dt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function hu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function du(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return lo(e,t);const o={href:dt(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function pu(e,t){const n={href:dt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fu(e,t,n){const r=e.all(t),o=n?mu(n):co(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(o||l!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:` 8`}),d.type==="element"&&d.tagName==="p"&&!o?s.push(...d.children):s.push(d)}const c=r[r.length-1];c&&(o||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:` 9`});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function mu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=co(n[r])}return t}function co(e){const t=e.spread;return t??e.children.length>1}function gu(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function bu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yu(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function xu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wu(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=Fn(t.children[1]),c=Hi(t.children[t.children.length-1]);l&&c&&(s.position={start:l,end:c}),o.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function ku(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const h=t.children[c],f={},p=s?s[c]:void 0;p&&(f.align=p);let m={type:"element",tagName:a,properties:f,children:[]};h&&(m.children=e.all(h),e.patch(h,m),m=e.applyData(h,m)),u.push(m)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function Tu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Mr=9,Pr=32;function Cu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(Fr(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(Fr(t.slice(o),o>0,!1)),a.join("")}function Fr(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===Mr||a===Pr;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===Mr||a===Pr;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function Su(e,t){const n={type:"text",value:Cu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function vu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Au={blockquote:tu,break:nu,code:ru,delete:iu,emphasis:ou,footnoteReference:au,heading:su,html:lu,imageReference:cu,image:uu,inlineCode:hu,linkReference:du,link:pu,listItem:fu,list:gu,paragraph:bu,root:yu,strong:xu,table:wu,tableCell:Tu,tableRow:ku,text:Su,thematicBreak:vu,toml:At,yaml:At,definition:At,footnoteDefinition:At};function At(){}const uo=-1,Gt=0,xt=1,Pt=2,$n=3,Wn=4,qn=5,Yn=6,ho=7,po=8,Br=typeof self=="object"?self:globalThis,Eu=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,s]=t[o];switch(a){case Gt:case uo:return n(s,o);case xt:{const l=n([],o);for(const c of s)l.push(r(c));return l}case Pt:{const l=n({},o);for(const[c,u]of s)l[r(c)]=r(u);return l}case $n:return n(new Date(s),o);case Wn:{const{source:l,flags:c}=s;return n(new RegExp(l,c),o)}case qn:{const l=n(new Map,o);for(const[c,u]of s)l.set(r(c),r(u));return l}case Yn:{const l=n(new Set,o);for(const c of s)l.add(r(c));return l}case ho:{const{name:l,message:c}=s;return n(new Br[l](c),o)}case po:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new Br[a](s),o)};return r},zr=e=>Eu(new Map,e)(0),at="",{toString:ju}={},{keys:Iu}=Object,ft=e=>{const t=typeof e;if(t!=="object"||!e)return[Gt,t];const n=ju.call(e).slice(8,-1);switch(n){case"Array":return[xt,at];case"Object":return[Pt,at];case"Date":return[$n,at];case"RegExp":return[Wn,at];case"Map":return[qn,at];case"Set":return[Yn,at];case"DataView":return[xt,n]}
vendor: 4,405 bytes, lines 9-11
9return n.includes("Array")?[xt,n]:n.includes("Error")?[ho,n]:[Pt,n]},Et=([e,t])=>e===Gt&&(t==="function"||t==="symbol"),_u=(e,t,n,r)=>{const o=(s,l)=>{const c=r.push(s)-1;return n.set(l,c),c},a=s=>{if(n.has(s))return n.get(s);let[l,c]=ft(s);switch(l){case Gt:{let d=s;switch(c){case"bigint":l=po,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return o([uo],s)}return o([l,d],s)}case xt:{if(c){let f=s;return c==="DataView"?f=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(s)),o([c,[...f]],s)}const d=[],h=o([l,d],s);for(const f of s)d.push(a(f));return h}case Pt:{if(c)switch(c){case"BigInt":return o([c,s.toString()],s);case"Boolean":case"Number":case"String":return o([c,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],h=o([l,d],s);for(const f of Iu(s))(e||!Et(ft(s[f])))&&d.push([a(f),a(s[f])]);return h}case $n:return o([l,s.toISOString()],s);case Wn:{const{source:d,flags:h}=s;return o([l,{source:d,flags:h}],s)}case qn:{const d=[],h=o([l,d],s);for(const[f,p]of s)(e||!(Et(ft(f))||Et(ft(p))))&&d.push([a(f),a(p)]);return h}case Yn:{const d=[],h=o([l,d],s);for(const f of s)(e||!Et(ft(f)))&&d.push(a(f));return h}}const{message:u}=s;return o([l,{name:c,message:u}],s)};return a},Ur=(e,{json:t,lossy:n}={})=>{const r=[];return _u(!(t||n),!!t,new Map,r)(e),r},Ft=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zr(Ur(e,t)):structuredClone(e):(e,t)=>zr(Ur(e,t));function Ou(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Nu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Lu(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ou,r=e.options.footnoteBackLabel||Nu,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),h=String(u.identifier).toUpperCase(),f=dt(h.toLowerCase());let p=0;const m=[],y=e.footnoteCounts.get(h);for(;y!==void 0&&++p<=y;){m.length>0&&m.push({type:"text",value:" "});let v=typeof n=="string"?n:n(c,p);typeof v=="string"&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const v=k.children[k.children.length-1];v&&v.type==="text"?v.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...m)}else d.push(...m);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,w),l.push(w)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ft(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:` 10`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 11`}]}}const $t=function(e){if(e==null)return Pu;if(typeof e=="function")return Wt(e);if(typeof e=="object")return Array.isArray(e)?Ru(e):Du(e);if(typeof e=="string")return Mu(e);throw new Error("Expected function, string, or object as test")};function Ru(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=$t(e[n]);return Wt(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function Du(e){const t=e;return Wt(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function Mu(e){return Wt(t);function t(n){return n&&n.type===e}}function Wt(e){return t;function t(n,r,o){return!!(Fu(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function Pu(){return!0}function Fu(e){return e!==null&&typeof e=="object"&&"type"in e}const fo=[],Bu=!0,In=!1,zu="skip";function mo(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=$t(o),s=r?-1:1;l(e,void 0,[])();function l(c,u,d){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;
vendor: 13,766 bytes, lines 11-15
11Object.defineProperty(f,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=fo,m,y,k;if((!t||a(c,u,d[d.length-1]||void 0))&&(p=Uu(n(c,d)),p[0]===In))return p;if("children"in c&&c.children){const w=c;if(w.children&&p[0]!==zu)for(y=(r?w.children.length:-1)+s,k=d.concat(w);y>-1&&y<w.children.length;){const v=w.children[y];if(m=l(v,y,k)(),m[0]===In)return m;y=typeof m[1]=="number"?m[1]:y+s}}return p}}}function Uu(e){return Array.isArray(e)?e:typeof e=="number"?[Bu,e]:e==null?fo:[e]}function Xn(e,t,n,r){let o,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,o=n):(a=t,s=n,o=r),mo(e,a,l,o);function l(c,u){const d=u[u.length-1],h=d?d.children.indexOf(c):void 0;return s(c,h,d)}}const _n={}.hasOwnProperty,Hu={};function Vu(e,t){const n=t||Hu,r=new Map,o=new Map,a=new Map,s={...Au,...n.handlers},l={all:u,applyData:$u,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:s,one:c,options:n,patch:Gu,wrap:qu};return Xn(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?r:o,f=String(d.identifier).toUpperCase();h.has(f)||h.set(f,d)}}),l;function c(d,h){const f=d.type,p=l.handlers[f];if(_n.call(l.handlers,f)&&p)return p(l,d,h);if(l.options.passThrough&&l.options.passThrough.includes(f)){if("children"in d){const{children:y,...k}=d,w=Ft(k);return w.children=l.all(d),w}return Ft(d)}return(l.options.unknownHandler||Wu)(l,d,h)}function u(d){const h=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const m=l.one(f[p],d);if(m){if(p&&f[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Hr(m.value)),!Array.isArray(m)&&m.type==="element")){const y=m.children[0];y&&y.type==="text"&&(y.value=Hr(y.value))}Array.isArray(m)?h.push(...m):h.push(m)}}}return h}}function Gu(e,t){e.position&&(t.position=Ns(e))}function $u(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Ft(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Wu(e,t){const n=t.data||{},r="value"in t&&!(_n.call(n,"hProperties")||_n.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qu(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 12`});++r<e.length;)r&&n.push({type:"text",value:` 13`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 14`}),n}function Hr(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Vr(e,t){const n=Vu(e,t),r=n.one(e,void 0),o=Lu(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:` 15`},o),a}function Yu(e,t){return e&&"run"in e?async function(n,r){const o=Vr(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Vr(n,{file:r,...e||t})}}function Gr(e){if(e)throw e}var Ot=Object.prototype.hasOwnProperty,go=Object.prototype.toString,$r=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,qr=function(t){return typeof Array.isArray=="function"?Array.isArray(t):go.call(t)==="[object Array]"},Yr=function(t){if(!t||go.call(t)!=="[object Object]")return!1;var n=Ot.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ot.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||Ot.call(t,o)},Xr=function(t,n){$r&&n.name==="__proto__"?$r(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Kr=function(t,n){if(n==="__proto__")if(Ot.call(t,n)){if(Wr)return Wr(t,n).value}else return;return t[n]},Xu=function e(){var t,n,r,o,a,s,l=arguments[0],c=1,u=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=Kr(l,n),o=Kr(t,n),l!==o&&(d&&o&&(Yr(o)||(a=qr(o)))?(a?(a=!1,s=r&&qr(r)?r:[]):s=r&&Yr(r)?r:{},Xr(l,{name:n,newValue:e(d,s,o)})):typeof o<"u"&&Xr(l,{name:n,newValue:o}));return l};const tn=ji(Xu);function On(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ku(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...o);function l(c,...u){const d=e[++a];let h=-1;if(c){s(c);return}for(;++h<o.length;)(u[h]===null||u[h]===void 0)&&(u[h]=o[h]);o=u,d?Ju(d,l)(...u):s(null,...u)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function Ju(e,t){let n;return r;function r(...s){const l=e.length>s.length;let c;l&&s.push(o);try{c=e.apply(this,s)}catch(u){const d=u;if(l&&n)throw d;return o(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(a,o):c instanceof Error?o(c):a(c))}function o(s,...l){n||(n=!0,t(s,...l))}function a(s){o(null,s)}}const ze={basename:Qu,dirname:Zu,extname:eh,join:th,sep:"/"};function Qu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');St(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,l=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else s<0&&(a=!0,s=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(r=o):(l=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Zu(e){if(St(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function eh(e){St(e);let t=e.length,n=-1,r=0,o=-1,a=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),l===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function th(...e){let t=-1,n;for(;++t<e.length;)St(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":nh(n)}function nh(e){St(e);const t=e.codePointAt(0)===47;let n=rh(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function rh(e,t){let n="",r=0,o=-1,a=0,s=-1,l,c;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(o===s-1||a===1))if(o!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=s,a=0;continue}}else if(n.length>0){n="",r=0,o=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),r=s-o-1;o=s,a=0}else l===46&&a>-1?a++:a=-1}return n}function St(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ih={cwd:oh};function oh(){return"/"}function Nn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ah(e){if(typeof e=="string")e=new URL(e);else if(!Nn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return sh(e)}function sh(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const nn=["history","path","basename","stem","extname","dirname"];class bo{constructor(t){let n;t?Nn(t)?n={path:t}:typeof t=="string"||lh(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":ih.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nn.length;){const a=nn[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)nn.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?ze.basename(this.path):void 0}set basename(t){on(t,"basename"),rn(t,"basename"),this.path=ze.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ze.dirname(this.path):void 0}set dirname(t){Jr(this.basename,"dirname"),this.path=ze.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ze.extname(this.path):void 0}set extname(t){if(rn(t,"extname"),Jr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ze.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Nn(t)&&(t=ah(t)),on(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ze.basename(this.path,this.extname):void 0}set stem(t){on(t,"stem"),rn(t,"stem"),this.path=ze.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new me(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function rn(e,t){if(e&&e.includes(ze.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ze.sep+"`")}function on(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Jr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function lh(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ch=function(e){const r=this.constructor.prototype,o=r[e],a=function(){return o.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},uh={}.hasOwnProperty;class Kn extends ch{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ku()}copy(){const t=new Kn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(tn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ln("data",this.frozen),this.namespace[t]=n,this):uh.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ln("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=jt(t),r=this.parser||this.Parser;return an("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),an("process",this.parser||this.Parser),sn("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,s){const l=jt(t),c=r.parse(l);r.run(c,l,function(d,h,f){if(d||!h||!f)return u(d);const p=h,m=r.stringify(p,f);ph(m)?f.value=m:f.result=m,u(d,f)});function u(d,h){d||!h?s(d):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),an("processSync",this.parser||this.Parser),sn("processSync",this.compiler||this.Compiler),this.process(t,o),Zr("processSync","process",n),r;function o(a,s){n=!0,Gr(a),r=s}}run(t,n,r){Qr(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,l){const c=jt(n);o.run(t,c,u);function u(d,h,f){const p=h||t;d?l(d):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),Zr("runSync","run",r),o;function a(s,l){Gr(s),o=l,r=!0}}stringify(t,n){this.freeze();const r=jt(n),o=this.compiler||this.Compiler;return sn("stringify",o),Qr(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(ln("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...h]=u;c(d,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(o.settings=tn(!0,o.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const h=u[d];a(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let h=-1,f=-1;for(;++h<r.length;)if(r[h][0]===u){f=h;break}if(f===-1)r.push([u,...d]);else if(d.length>0){let[p,...m]=d;const y=r[f][1];
vendor: 6,243 bytes, line 15
15On(y)&&On(p)&&(p=tn(!0,y,p)),r[f]=[u,p,...m]}}}}const hh=new Kn().freeze();function an(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function sn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ln(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qr(e){if(!On(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jt(e){return dh(e)?e:new bo(e)}function dh(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ph(e){return typeof e=="string"||fh(e)}function fh(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mh="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ei=[],ti={allowDangerousHtml:!0},gh=/^(https?|ircs?|mailto|xmpp)$/i,bh=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function cn(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,s=e.disallowedElements,l=e.rehypePlugins||ei,c=e.remarkPlugins||ei,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ti}:ti,d=e.skipHtml,h=e.unwrapDisallowed,f=e.urlTransform||yh,p=hh().use(eu).use(c).use(Yu,u).use(l),m=new bo;typeof r=="string"&&(m.value=r);for(const v of bh)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+mh+v.id,void 0);const y=p.parse(m);let k=p.runSync(y,m);return o&&(k={type:"element",tagName:"div",properties:{className:o},children:k.type==="root"?k.children:[k]}),Xn(k,w),Ps(k,{Fragment:i.Fragment,components:a,ignoreInvalidStyle:!0,jsx:i.jsx,jsxs:i.jsxs,passKeys:!0,passNode:!0});function w(v,x,I){if(v.type==="raw"&&I&&typeof x=="number")return d?I.children.splice(x,1):I.children[x]={type:"text",value:v.value},x;if(v.type==="element"){let O;for(O in Qt)if(Object.hasOwn(Qt,O)&&Object.hasOwn(v.properties,O)){const T=v.properties[O],L=Qt[O];(L===null||L.includes(v.tagName))&&(v.properties[O]=f(String(T||""),O,v))}}if(v.type==="element"){let O=t?!t.includes(v.tagName):s?s.includes(v.tagName):!1;if(!O&&n&&typeof x=="number"&&(O=!n(v,x,I)),O&&I&&typeof x=="number")return h&&v.children?I.children.splice(x,1,...v.children):I.children.splice(x,1),x}}}function yh(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||gh.test(e.slice(0,t))?e:""}function ni(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function xh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wh(e,t,n){const o=$t((n||{}).ignore||[]),a=kh(t);let s=-1;for(;++s<a.length;)mo(e,"text",l);function l(u,d){let h=-1,f;for(;++h<d.length;){const p=d[h],m=f?f.children:void 0;if(o(p,m?m.indexOf(p):void 0,f))return;f=p}if(f)return c(u,d)}function c(u,d){const h=d[d.length-1],f=a[s][0],p=a[s][1];let m=0;const k=h.children.indexOf(u);let w=!1,v=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const I=x.index,O={index:x.index,input:x.input,stack:[...d,u]};let T=p(...x,O);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?f.lastIndex=I+1:(m!==I&&v.push({type:"text",value:u.value.slice(m,I)}),Array.isArray(T)?v.push(...T):T&&v.push(T),m=I+x[0].length,w=!0),!f.global)break;x=f.exec(u.value)}return w?(m<u.value.length&&v.push({type:"text",value:u.value.slice(m)}),h.children.splice(k,1,...v)):v=[u],k+v.length}}function kh(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([Th(o[0]),Ch(o[1])])}return t}function Th(e){return typeof e=="string"?new RegExp(xh(e),"g"):e}function Ch(e){return typeof e=="function"?e:function(){return e}}const un="phrasing",hn=["autolink","link","image","label"];function Sh(){return{transforms:[Oh],enter:{literalAutolink:Ah,literalAutolinkEmail:dn,literalAutolinkHttp:dn,literalAutolinkWww:dn},exit:{literalAutolink:_h,literalAutolinkEmail:Ih,literalAutolinkHttp:Eh,literalAutolinkWww:jh}}}function vh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:un,notInConstruct:hn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:un,notInConstruct:hn},{character:":",before:"[ps]",after:"\\/",inConstruct:un,notInConstruct:hn}]}}function Ah(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function dn(e){this.config.enter.autolinkProtocol.call(this,e)}function Eh(e){this.config.exit.autolinkProtocol.call(this,e)}function jh(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Ih(e){this.config.exit.autolinkEmail.call(this,e)}function _h(e){this.exit(e)}function Oh(e){wh(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Nh],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S}
15)([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Lh]],{ignore:["link","linkReference"]})}function Nh(e,t,n,r,o){let a="";if(!yo(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Rh(n)))return!1;const s=Dh(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function Lh(e,t,n,r){return!yo(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Rh(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Dh(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=ni(e,"(");let a=ni(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function yo(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||rt(n)||Ht(n))&&(!t||n!==47)}xo.peek=Gh;function Mh(){this.buffer()}function Ph(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Fh(){this.buffer()}function Bh(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zh(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=De(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Uh(e){this.exit(e)}function Hh(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=De(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Vh(e){this.exit(e)}function Gh(){return"["}function xo(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),s(),a+=o.move("]"),a}function $h(){return{enter:{gfmFootnoteCallString:Mh,gfmFootnoteCall:Ph,gfmFootnoteDefinitionLabelString:Fh,gfmFootnoteDefinition:Bh},exit:{gfmFootnoteCallString:zh,gfmFootnoteCall:Uh,gfmFootnoteDefinitionLabelString:Hh,gfmFootnoteDefinition:Vh}}}function Wh(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:xo},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,s){const l=a.createTracker(s);let c=l.move("[^");const u=a.enter("footnoteDefinition"),d=a.enter("label");return c+=l.move(a.safe(a.associationId(r),{before:c,after:"]"})),d(),c+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),c+=l.move((t?` 16`:" ")+a.indentLines(a.containerFlow(r,l.current()),t?wo:qh))),u(),c}}function qh(e,t,n){return t===0?e:wo(e,t,n)}function wo(e,t,n){return(n?"":" ")+e}const Yh=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ko.peek=Zh;function Xh(){return{canContainEols:["delete"],enter:{strikethrough:Jh},exit:{strikethrough:Qh}}}function Kh(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yh}],handlers:{delete:ko}}}function Jh(e){this.enter({type:"delete",children:[]},e)}function Qh(e){this.exit(e)}function ko(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let s=o.move("~~");return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),a(),s}function Zh(){return"~"}function ed(e){return e.length}function td(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||ed,a=[],s=[],l=[],c=[];let u=0,d=-1;for(;++d<e.length;){const y=[],k=[];let w=-1;for(e[d].length>u&&(u=e[d].length);++w<e[d].length;){const v=nd(e[d][w]);if(n.alignDelimiters!==!1){const x=o(v);k[w]=x,(c[w]===void 0||x>c[w])&&(c[w]=x)}y.push(v)}s[d]=y,l[d]=k}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<u;)a[h]=ri(r[h]);else{const y=ri(r);for(;++h<u;)a[h]=y}h=-1;const f=[],p=[];for(;++h<u;){const y=a[h];let k="",w="";y===99?(k=":",w=":"):y===108?k=":":y===114&&(w=":");let v=n.alignDelimiters===!1?1:Math.max(1,c[h]-k.length-w.length);const x=k+"-".repeat(v)+w;n.alignDelimiters!==!1&&(v=k.length+v+w.length,v>c[h]&&(c[h]=v),p[h]=v),f[h]=x}s.splice(1,0,f),l.splice(1,0,p),d=-1;const m=[];for(;++d<s.length;){const y=s[d],k=l[d];h=-1;const w=[];for(;++h<u;){const v=y[h]||"";let x="",I="";if(n.alignDelimiters!==!1){const O=c[h]-(k[h]||0),T=a[h];T===114?x=" ".repeat(O):T===99?O%2?(x=" ".repeat(O/2+.5),I=" ".repeat(O/2-.5)):(x=" ".repeat(O/2),I=x):I=" ".repeat(O)}n.delimiterStart!==!1&&!h&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||h)&&w.push(" "),n.alignDelimiters!==!1&&w.push(x),w.push(v),n.alignDelimiters!==!1&&w.push(I),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||h!==u-1)&&w.push("|")}m.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return m.join(` 17`)}
vendor: 6,885 bytes, lines 17-28
17function nd(e){return e==null?"":String(e)}function ri(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function rd(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),id);return o(),s}function id(e,t,n){return">"+(n?"":" ")+e}function od(e,t){return ii(e,t.inConstruct,!0)&&!ii(e,t.notInConstruct,!1)}function ii(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function oi(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===` 18`&&od(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\ 19`}function ad(e,t){const n=String(e);let r=n.indexOf(t),o=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++a>s&&(s=a):a=1,o=r+t.length,r=n.indexOf(t,o);return s}function sd(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ld(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function cd(e,t,n,r){const o=ld(n),a=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(sd(e,n)){const h=n.enter("codeIndented"),f=n.indentLines(a,ud);return h(),f}const l=n.createTracker(r),c=o.repeat(Math.max(ad(a,o)+1,3)),u=n.enter("codeFenced");let d=l.move(c);if(e.lang){const h=n.enter(`codeFencedLang${s}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:` 20`,encode:["`"],...l.current()})),h()}return d+=l.move(` 21`),a&&(d+=l.move(a+` 22`)),d+=l.move(c),u(),d}function ud(e,t,n){return(n?"":" ")+e}function Jn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function hd(e,t,n,r){const o=Jn(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":` 23`,...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+o),u+=c.move(n.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),l()),s(),u}function dd(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function kt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bt(e,t,n){const r=ut(e),o=ut(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}To.peek=pd;function To(e,t,n,r){const o=dd(n),a=n.enter("emphasis"),s=n.createTracker(r),l=s.move(o);let c=s.move(n.containerPhrasing(e,{after:o,before:l,...s.current()}));const u=c.charCodeAt(0),d=Bt(r.before.charCodeAt(r.before.length-1),u,o);d.inside&&(c=kt(u)+c.slice(1));const h=c.charCodeAt(c.length-1),f=Bt(r.after.charCodeAt(0),h,o);f.inside&&(c=c.slice(0,-1)+kt(h));const p=s.move(o);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},l+c+p}function pd(e,t,n){return n.options.emphasis||"*"}function fd(e,t){let n=!1;return Xn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,In}),!!((!e.depth||e.depth<3)&&Hn(e)&&(t.options.setext||n))}function md(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(fd(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:` 24`,after:` 25`});return h(),d(),f+` 26`+(o===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(` 27`))+1))}const s="#".repeat(o),l=n.enter("headingAtx"),c=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:` 28`,...a.current()});return/^[\t ]/.test(u)&&(u=kt(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),c(),l(),u}Co.peek=gd;function Co(e){return e.value||""}function gd(){return"<"}So.peek=bd;function So(e,t,n,r){const o=Jn(n),a=o==='"'?"Quote":"Apostrophe",s=n.enter("image");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=c.move(" "+o),u+=c.move(n.safe(e.title,{before:u,after:o,...c.current()})),u+=c.move(o),l()),u+=c.move(")"),s(),u}function bd(){return"!"}vo.peek=yd;function vo(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");const u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=d,a(),o==="full"||!u||u!==h?c+=l.move(h+"]"):o==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function yd(){return"!"}Ao.peek=xd;function Ao(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],l=n.compilePattern(s);let c;if(s.atBreak)for(;c=l.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return o+r+o}function xd(){return"`"}function Eo(e,t){const n=Hn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}jo.peek=wd;function jo(e,t,n,r){const o=Jn(n),a=o==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let l,c;if(Eo(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">
28"),l(),n.stack=d,h}l=n.enter("link"),c=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(c=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${a}`),u+=s.move(" "+o),u+=s.move(n.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),c()),u+=s.move(")"),l(),u}function wd(e,t,n){return Eo(e,n)?"<":"["}Io.peek=kd;function Io(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=d,a(),o==="full"||!u||u!==h?c+=l.move(h+"]"):o==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function kd(){return"["}function Qn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Td(e){const t=Qn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Cd(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function _o(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Sd(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Cd(n):Qn(n);const l=e.ordered?s==="."?")":".":Td(n);let c=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),_o(n)===s&&d){let h=-1;for(;++h<e.children.length;){const f=e.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(s=l),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,o(),u}function vd(e){const t=e.options.listItemIndent||"one";
vendor: 6,325 bytes, lines 28-30
28if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ad(e,t,n,r){const o=vd(n);let a=n.bulletCurrent||Qn(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(r);l.move(a+" ".repeat(s-a.length)),l.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),d);return c(),u;function d(h,f,p){return f?(p?"":" ".repeat(s))+h:(p?a:a+" ".repeat(s-a.length))+h}}function Ed(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),o(),s}const jd=$t(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Id(e,t,n,r){return(e.children.some(function(s){return jd(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function _d(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Oo.peek=Od;function Oo(e,t,n,r){const o=_d(n),a=n.enter("strong"),s=n.createTracker(r),l=s.move(o+o);let c=s.move(n.containerPhrasing(e,{after:o,before:l,...s.current()}));const u=c.charCodeAt(0),d=Bt(r.before.charCodeAt(r.before.length-1),u,o);d.inside&&(c=kt(u)+c.slice(1));const h=c.charCodeAt(c.length-1),f=Bt(r.after.charCodeAt(0),h,o);f.inside&&(c=c.slice(0,-1)+kt(h));const p=s.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},l+c+p}function Od(e,t,n){return n.options.strong||"*"}function Nd(e,t,n,r){return n.safe(e.value,r)}function Ld(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Rd(e,t,n){const r=(_o(n)+(n.options.ruleSpaces?" ":"")).repeat(Ld(n));return n.options.ruleSpaces?r.slice(0,-1):r}const No={blockquote:rd,break:oi,code:cd,definition:hd,emphasis:To,hardBreak:oi,heading:md,html:Co,image:So,imageReference:vo,inlineCode:Ao,link:jo,linkReference:Io,list:Sd,listItem:Ad,paragraph:Ed,root:Id,strong:Oo,text:Nd,thematicBreak:Rd};function Dd(){return{enter:{table:Md,tableData:ai,tableHeader:ai,tableRow:Fd},exit:{codeText:Bd,table:Pd,tableData:pn,tableHeader:pn,tableRow:pn}}}function Md(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Pd(e){this.exit(e),this.data.inTable=void 0}function Fd(e){this.enter({type:"tableRow",children:[]},e)}function pn(e){this.exit(e)}function ai(e){this.enter({type:"tableCell",children:[]},e)}function Bd(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,zd));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function zd(e,t){return t==="|"?t:e}function Ud(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 29`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:c,tableRow:l}};function s(p,m,y,k){return u(d(p,y,k),p.align)}function l(p,m,y,k){const w=h(p,y,k),v=u([w]);return v.slice(0,v.indexOf(` 30`))}function c(p,m,y,k){const w=y.enter("tableCell"),v=y.enter("phrasing"),x=y.containerPhrasing(p,{...k,before:a,after:a});return v(),w(),x}function u(p,m){return td(p,{align:m,alignDelimiters:r,padding:n,stringLength:o})}function d(p,m,y){const k=p.children;let w=-1;const v=[],x=m.enter("table");for(;++w<k.length;)v[w]=h(k[w],m,y);return x(),v}function h(p,m,y){const k=p.children;let w=-1;const v=[],x=m.enter("tableRow");for(;++w<k.length;)v[w]=c(k[w],p,m,y);return x(),v}function f(p,m,y){let k=No.inlineCode(p,m,y);return y.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function Hd(){return{exit:{taskListCheckValueChecked:si,taskListCheckValueUnchecked:si,paragraph:Gd}}}function Vd(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$d}}}function si(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Gd(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let a=-1,s;for(;++a<o.length;){const l=o[a];if(l.type==="paragraph"){s=l;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function $d(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(s);let c=No.listItem(e,t,n,{...r,...l.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+s}}function Wd(){return[Sh(),$h(),Xh(),Dd(),Hd()]}function qd(e){return{extensions:[vh(),Wh(e),Kh(),Ud(e),Vd()]}}const Yd={tokenize:ep,partial:!0},Lo={tokenize:tp,partial:!0},Ro={tokenize:np,partial:!0},Do={tokenize:rp,partial:!0},Xd={tokenize:ip,partial:!0},Mo={name:"wwwAutolink",tokenize:Qd,previous:Fo},Po={name:"protocolAutolink",tokenize:Zd,previous:Bo},He={name:"emailAutolink",tokenize:Jd,previous:zo},Ue={};function Kd(){return{text:Ue}}let et=48;for(;et<123;)Ue[et]=He,et++,et===58?et=65:et===91&&(et=97);Ue[43]=He;Ue[45]=He;Ue[46]=He;Ue[95]=He;Ue[72]=[He,Po];Ue[104]=[He,Po];Ue[87]=[He,Mo];Ue[119]=[He,Mo];function Jd(e,t,n){const r=this;let o,a;return s;function s(h){return!Ln(h)||!zo.call(r,r.previous)||Zn(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return Ln(h)?(e.consume(h),l):h===64?(e.consume(h),c):n(h)}
vendor: 8,468 bytes, line 30
30function c(h){return h===46?e.check(Xd,d,u)(h):h===45||h===95||fe(h)?(a=!0,e.consume(h),c):d(h)}function u(h){return e.consume(h),o=!0,c}function d(h){return a&&o&&be(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function Qd(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!Fo.call(r,r.previous)||Zn(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Yd,e.attempt(Lo,e.attempt(Ro,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Zd(e,t,n){const r=this;let o="",a=!1;return s;function s(h){return(h===72||h===104)&&Bo.call(r,r.previous)&&!Zn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(be(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const f=o.toLowerCase();if(f==="http"||f==="https")return e.consume(h),c}return n(h)}function c(h){return h===47?(e.consume(h),a?u:(a=!0,c)):n(h)}function u(h){return h===null||Mt(h)||ne(h)||rt(h)||Ht(h)?n(h):e.attempt(Lo,e.attempt(Ro,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function ep(e,t,n){let r=0;return o;function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function tp(e,t,n){let r,o,a;return s;function s(u){return u===46||u===95?e.check(Do,c,l)(u):u===null||ne(u)||rt(u)||u!==45&&Ht(u)?c(u):(a=!0,e.consume(u),s)}function l(u){return u===95?r=!0:(o=r,r=void 0),e.consume(u),s}function c(u){return o||r||!a?n(u):t(u)}}function np(e,t){let n=0,r=0;return o;function o(s){return s===40?(n++,e.consume(s),o):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Do,t,a)(s):s===null||ne(s)||rt(s)?t(s):(e.consume(s),o)}function a(s){return s===41&&r++,e.consume(s),o}}function rp(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),a):l===93?(e.consume(l),o):l===60||l===null||ne(l)||rt(l)?t(l):n(l)}function o(l){return l===null||l===40||l===91||ne(l)||rt(l)?t(l):r(l)}function a(l){return be(l)?s(l):n(l)}function s(l){return l===59?(e.consume(l),r):be(l)?(e.consume(l),s):n(l)}}function ip(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return fe(a)?n(a):t(a)}}function Fo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ne(e)}function Bo(e){return!be(e)}function zo(e){return!(e===47||Ln(e))}function Ln(e){return e===43||e===45||e===46||e===95||fe(e)}function Zn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const op={tokenize:pp,partial:!0};function ap(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:up,continuation:{tokenize:hp},exit:dp}},text:{91:{name:"gfmFootnoteCall",tokenize:cp},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sp,resolveTo:lp}}}}function sp(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const c=r.events[o][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!s||!s._balanced)return n(c);const u=De(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function lp(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function cp(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(a>999||h===93&&!s||h===null||h===91||ne(h))return n(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return o.includes(De(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return ne(h)||(s=!0),a++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}}function up(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,l;return c;function c(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(m)}function d(m){if(s>999||m===93&&!l||m===null||m===91||ne(m))return n(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=De(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return ne(m)||(l=!0),s++,e.consume(m),m===92?h:d}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o.includes(a)||o.push(a),J(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function hp(e,t,n){return e.check(Ct,t,e.attempt(op,t,n))}function dp(e){e.exit("gfmFootnoteDefinition")}function pp(e,t,n){const r=this;return J(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function fp(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(s,l){let c=-1;for(;++c<s.length;)if(s[c][0]==="enter"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._close){let u=c;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[c][1].end.offset-s[c][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[c][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[c][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[c][1].start)},f=[["enter",d,l],["enter",s[u][1],l],["exit",s[u][1],l],["enter",h,l]],p=l.parser.constructs.insideSpan.null;p&&Ee(f,f.length,0,Vt(p,s.slice(u+1,c),l)),Ee(f,f.length,0,[["exit",h,l],["enter",s[c][1],l],["exit",s[c][1],l],["exit",d,l]]),Ee(s,u-1,c-u+3,f),c=u+f.length-2;break}}for(c=-1;++c<s.length;)s[c][1].type==="strikethroughSequenceTemporary"&&(s[c][1].type="data");return s}function a(s,l,c){const u=this.previous,d=this.events;let h=0;return f;function f(m){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(m):(s.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const y=ut(u);
vendor: 4,974 bytes, line 30
30if(m===126)return h>1?c(m):(s.consume(m),h++,p);if(h<2&&!n)return c(m);const k=s.exit("strikethroughSequenceTemporary"),w=ut(m);return k._open=!w||w===2&&!!y,k._close=!y||y===2&&!!w,l(m)}}}class mp{constructor(){this.map=[]}add(t,n,r){gp(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const a of o)t.push(a);o=r.pop()}this.map.length=0}}function gp(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function bp(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function yp(){return{flow:{null:{name:"table",tokenize:xp,resolveAll:wp}}}}function xp(e,t,n){const r=this;let o=0,a=0,s;return l;function l(C){let M=r.events.length-1;for(;M>-1;){const W=r.events[M][1].type;if(W==="lineEnding"||W==="linePrefix")M--;else break}const P=M>-1?r.events[M][1].type:null,U=P==="tableHead"||P==="tableRow"?T:c;return U===T&&r.parser.lazy[r.now().line]?n(C):U(C)}function c(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,a+=1),d(C)}function d(C){return C===null?n(C):H(C)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),p):n(C):K(C)?J(e,d,"whitespace")(C):(a+=1,s&&(s=!1,o+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),h(C)))}function h(C){return C===null||C===124||ne(C)?(e.exit("data"),d(C)):(e.consume(C),C===92?f:h)}function f(C){return C===92||C===124?(e.consume(C),h):h(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,K(C)?J(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?k(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),y):O(C)}function y(C){return K(C)?J(e,k,"whitespace")(C):k(C)}function k(C){return C===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):C===45?(a+=1,w(C)):C===null||H(C)?I(C):O(C)}function w(C){return C===45?(e.enter("tableDelimiterFiller"),v(C)):O(C)}function v(C){return C===45?(e.consume(C),v):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(C))}function x(C){return K(C)?J(e,I,"whitespace")(C):I(C)}function I(C){return C===124?m(C):C===null||H(C)?!s||o!==a?O(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):O(C)}function O(C){return n(C)}function T(C){return e.enter("tableRow"),L(C)}function L(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),L):C===null||H(C)?(e.exit("tableRow"),t(C)):K(C)?J(e,L,"whitespace")(C):(e.enter("data"),D(C))}function D(C){return C===null||C===124||ne(C)?(e.exit("data"),L(C)):(e.consume(C),C===92?B:D)}function B(C){return C===92||C===124?(e.consume(C),D):D(C)}}function wp(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],s=[0,0,0,0],l=!1,c=0,u,d,h;const f=new mp;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(l=!1,c!==0&&(li(f,t,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",d,t]])),o=m.type==="tableDelimiterRow"?2:d?3:1):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=It(f,t,a,o,void 0,h),a=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],h=It(f,t,a,o,void 0,h)),a=s,s=[a[1],n,0,0])):m.type==="tableHead"?(l=!0,c=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(c=n,a[1]!==0?(s[0]=s[1],h=It(f,t,a,o,n,h)):s[1]!==0&&(h=It(f,t,s,o,n,h)),o=0):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(c!==0&&li(f,t,c,u,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=bp(t.events,n))}return e}function It(e,t,n,r,o,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(a.end=Object.assign({}
30,lt(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=lt(t.events,n[1]);if(a={type:s,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=lt(t.events,n[2]),d=lt(t.events,n[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,y=n[3]-n[2]-1;e.add(m,y,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return o!==void 0&&(a.end=Object.assign({},lt(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function li(e,t,n,r,o){const a=[],s=lt(t.events,n);o&&(o.end=Object.assign({},s),a.push(["exit",o,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function lt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kp={name:"tasklistCheck",tokenize:Cp};function Tp(){return{text:{91:kp}}}function Cp(e,t,n){const r=this;return o;function o(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return ne(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return H(c)?t(c):K(c)?e.check({tokenize:Sp},t,n)(c):n(c)}}function Sp(e,t,n){return J(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function vp(e){return Xi([Kd(),ap(),fp(e),yp(),Tp()])}const Ap={};function fn(e){const t=this,n=e||Ap,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(vp(n)),a.push(Wd()),s.push(qd(n))}const Ep={planning:"plan",routing:"route",searching:"search",composing:"spark",generating:"spark",verifying:"check",finalizing:"refresh",finishing:"check",resuming:"refresh",completing:"check"},jp={planning:"chatbot.thinking.phase.planning",routing:"chatbot.thinking.phase.routing",searching:"chatbot.thinking.phase.searching",composing:"chatbot.thinking.phase.composing",generating:"chatbot.thinking.phase.generating",verifying:"chatbot.thinking.phase.verifying",finalizing:"chatbot.thinking.phase.finalizing",finishing:"chatbot.thinking.phase.finishing",resuming:"chatbot.thinking.phase.resuming",completing:"chatbot.thinking.phase.completing"},Uo=({phase:e})=>{const t=typeof e=="string"?e.toLowerCase():"",n=Ep[t]||"dot";return n==="search"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[i.jsx("circle",{cx:"11",cy:"11",r:"8"}),i.jsx("path",{d:"M21 21l-4.35-4.35"})]}):n==="route"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[i.jsx("path",{d:"M6 3v6a3 3 0 0 0 3 3h6"}),i.jsx("path",{d:"M9 6L6 3 9 0"}),i.jsx("path",{d:"M15 12h3a3 3 0 0 1 3 3v6"}),i.jsx("path",{d:"M18 18l3 3-3 3"})]}):n==="spark"?i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:i.jsx("path",{d:"M12 2l1.5 4.5L18 8l-4.5 1.5L12 14l-1.5-4.5L6 8l4.5-1.5L12 2z"})}):n==="check"?i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:i.jsx("path",{d:"M20 6L9 17l-5-5"})}):n==="refresh"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[i.jsx("path",{d:"M23 4v6h-6"}),i.jsx("path",{d:"M1 20v-6h6"}),i.jsx("path",{d:"M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"})]}):i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,
30children:[i.jsx("path",{d:"M12 20h9"}),i.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z"})]})};Uo.propTypes={phase:j.string};function ci(e,t){const n=typeof t.phase=="string"?t.phase.toLowerCase():"",r=jp[n];return r?e.formatMessage({id:r}):e.formatMessage({id:"chatbot.thinking.phase.working",defaultMessage:"Working..."})}const Ho=({steps:e=[],turnPhase:t="idle",isHistorical:n=!1})=>{const r=Ne(),o=E.useId(),[a,s]=E.useState(null),l=!0,c=a===null?l:!a;if(E.useEffect(()=>{!n&&t==="streaming"&&s(null)},[t,n]),!e.length)return null;const u=()=>{s(h=>h===null?l:!h)},d=e[e.length-1];return i.jsxs("div",{className:`thinking-block${n?" thinking-block--historical":""}`,"data-testid":"thinking-block","data-collapsed":c?"true":"false",children:[i.jsxs("div",{className:"thinking-block__header",children:[!n&&i.jsx("span",{className:"thinking-block__pulse","aria-hidden":!0}),i.jsx("span",{className:"thinking-block__title",children:i.jsx($,{id:"chatbot.thinking.title",defaultMessage:"Thinking"})}),i.jsx("button",{type:"button",className:"thinking-block__toggle",onClick:u,"aria-expanded":!c,"aria-controls":o,children:c?i.jsx($,{id:"chatbot.thinking.show",defaultMessage:"Show"}):i.jsx($,{id:"chatbot.thinking.hide",defaultMessage:"Hide"})})]}),c?i.jsx("div",{id:o,className:"thinking-block__summary",children:!n&&t!=="complete"&&t!=="idle"&&d?i.jsx("div",{className:"thinking-block__step-text",children:ci(r,d)}):i.jsx($,{id:"chatbot.thinking.summary",defaultMessage:"Thought for {count} {count, plural, one {step} other {steps}}",values:{count:e.length}})}):i.jsx("ul",{id:o,className:"thinking-block__steps",children:e.map((h,f)=>i.jsxs("li",{className:`thinking-block__step thinking-block__step--${h.status||"done"}`,"data-testid":h.status==="active"?"reasoning-step--active":"reasoning-step--done",children:[i.jsx("span",{className:"thinking-block__step-icon",children:i.jsx(Uo,{phase:h.phase})}),i.jsx("span",{className:"thinking-block__step-text",children:ci(r,h)})]},`${h.phase}-${f}`))})]})};Ho.propTypes={steps:j.arrayOf(j.shape({phase:j.string,message:j.string,status:j.oneOf(["active","done"])})),turnPhase:j.string,isHistorical:j.bool};const ui=({planName:e,type:t})=>{const r=t?t==="core":["WSMLEVEL","WSMLEVEL-MO"].includes(e);return i.jsx(i.Fragment,{children:r?i.jsx("ul",{className:"modal__list",children:Array.from({length:5}).map((o,a)=>i.jsxs("li",{children:[i.jsx(Dt,{name:"check",color:sr.trmb_blue_dark,size:"24",className:"subscription-list-icon"}),i.jsx($,{id:`accountpage.coreli${a+1}`})]},a))}):i.jsxs("ul",{className:"modal__list",children:[i.jsx("li",{children:i.jsx($,{id:"accountpage.proli1"})}),Array.from({length:4}).map((o,a)=>i.jsxs("li",{children:[i.jsx(Dt,{name:"check",color:sr.trmb_blue_dark,size:"24",className:"subscription-list-icon"}),i.jsx($,{id:`accountpage.proli${a+2}`})]},a))]})})},Ip=(e,t,n,r,o,a,s,l,c)=>{const u=E.useRef(null),[d,h]=E.useState(null);E.useEffect(()=>{u.current&&(e?u.current.open():u.current.classList.contains("hydrated")&&!e&&u.current.close())},[e]),E.useEffect(()=>{var y;if(u.current){const k=document.createElement("style");k.textContent="",l||(k.textContent+=` 31 div[aria-label="Collapse"] { 32 display: none !important; 33 } 34 div[aria-label="Expand"] { 35 display: none !important; 36 } 37 `),s&&(k.textContent+=` 38 div[aria-label="Close"] { 39 display: none !important; 40 } 41 `),c&&(k.textContent+=` 42 modus-button[color="primary"] { 43 --modus-btn-primary-bg: #da212c; 44 --modus-btn-primary-border-color: #da212c; 45 --modus-btn-primary-hover-bg: #e44a53; 46 --modus-btn-primary-active-bg: #c41e28; 47 } 48 `),(y=u.current.shadowRoot)==null||y.appendChild(k)}},[l,s,c]);const f=E.useCallback(()=>{h("accept"),o&&o()},[o]),p=E.useCallback(()=>{h("decline"),a&&a()},[a]),m=E.useCallback(()=>{t&&(d==="accept"&&n||d==="decline"&&r||d===null)&&t(),h(null)},[d,n,r,t]);return{modalRef:u,handleAccept:f,handleDecline:p,handleClose:m,lastAction:d}},qt=({isOpen:e=!1,onAccept:t,onDecline:n,onClose:r,runOnCloseAfterAccept:o=!1,runOnCloseAfterDecline:a=!1,headerText:s,acceptButtonText:l,declineButtonText:c,children:u=null,primaryButtonAriaLabel:d="Save changes",secondaryButtonAriaLabel:h="Decline changes",hideClose:f,showFullScreen:p,primaryButtonDisabled:m,secondaryButtonDisabled:y,dangerPrimaryButton:k=!1,...w})=>{const{modalRef:v,handleAccept:x,handleDecline:I,handleClose:O}=Ip(e,r,o,a,t,n,f,p,k);return i.jsx(ca,{ref:v,"header-text":s,"primary-button-text":l,"primary-button-aria-label":d,"secondary-button-text":c,"secondary-button-aria-label":h,"primary-button-disabled":m,"secondary-button-disabled":y,onClosed:O,onPrimaryButtonClick:x,onSecondaryButtonClick:I,"data-testid":"modus-modal","z-index":"11",...w,children:u})};
48qt.propTypes={isOpen:j.bool,onAccept:j.func.isRequired,onDecline:j.func.isRequired,headerText:j.string.isRequired,acceptButtonText:j.string.isRequired,declineButtonText:j.string.isRequired,children:j.node,onClose:j.func,runOnCloseAfterAccept:j.bool,runOnCloseAfterDecline:j.bool,primaryButtonAriaLabel:j.string,secondaryButtonAriaLabel:j.string,primaryButtonDisabled:j.bool,secondaryButtonDisabled:j.bool,hideClose:j.bool,showFullScreen:j.bool,dangerPrimaryButton:j.bool};const _p=({isOpen:e,onClose:t,appStore:n,tierManagementStore:r,accountRootStore:o,accountId:a,activationSource:s})=>{const l=n.localeMessages,c=E.useCallback(async()=>{t();const d=a||o.accountStore.account.accountId;await r.activateProTrial(d),u()},[r,o,a,t]),u=()=>{if(s){lr(s);return}const d=window.location.href.split("/").reverse();lr(d[0])};return i.jsx("div",{children:i.jsxs(qt,{isOpen:e,headerText:l["accountpage.upgradetopro"],acceptButtonText:"",primaryButtonDisabled:!1,declineButtonText:"",onDecline:t,onAccept:()=>{},onClose:t,children:[i.jsx($,{id:"accountpage.protrialpopupdesc"}),i.jsxs("div",{className:"modal__structure",children:[i.jsxs("div",{className:"modal__core",children:[i.jsx("div",{className:"modal__core__current-badge"}),i.jsx("p",{className:"modal__title",children:i.jsx($,{id:"accountpage.WMCore"})}),i.jsx(ui,{type:"core"})]}),i.jsxs("div",{className:"modal__pro",children:[i.jsx("p",{className:"modal__title",children:i.jsx($,{id:"accountpage.WMPro"})}),i.jsx(ui,{type:"pro"}),i.jsx(gt,{buttonText:l["accountpage.trysubmittext"],size:"large",onButtonClick:c})]})]}),i.jsx("div",{className:"modal__learmore-link",hidden:!0,children:i.jsxs("p",{className:"account-subscription-details__tooltip-hover__link",children:[i.jsx($,{id:"accountpage.tiertooltiplinkdesc"}),i.jsxs("a",{href:"#",children:[i.jsx($,{id:"createdesign.learnmore"}),"."]})]})})]})})},Vo=Le(({message:e})=>{var L;const t=Ne(),{chatStore:n,appStore:r,tierManagementStore:o,accountRootStore:a,projectStore:s}=Me(),[l,c]=E.useState(!1),[u,d]=E.useState(!1),h=E.useRef(null),f=e==null?void 0:e.tryProUpsell,p=f!=null&&f.accountId?String(f.accountId):null,{accountId:m}=Ii({accountRootStore:a,projectStore:s}),y=!!p&&!!m&&p===String(m),k=y&&wn(o==null?void 0:o.planName),w=(e==null?void 0:e.citationsFinalized)===!0||(e==null?void 0:e.citationsFinalized)===void 0&&!(e!=null&&e.awaitingRunFinish),v=!!p&&!k&&w;E.useEffect(()=>{var D;!y||!p||(D=o==null?void 0:o.init)==null||D.call(o,p).catch(()=>{})},[y,p,o]),E.useEffect(()=>{if(!v)return;const D=(f==null?void 0:f.runId)||(e==null?void 0:e.id);!D||h.current===D||(h.current=D,ua({threadId:f==null?void 0:f.threadId,runId:f==null?void 0:f.runId,source:"agent_try_pro_upsell",agentContext:n.getAgentAnalyticsContext()}))},[v,f==null?void 0:f.runId,f==null?void 0:f.threadId,e==null?void 0:e.id]),E.useEffect(()=>{!y||!k||!(e!=null&&e.id)||n.clearTryProUpsellForMessage(e.id)},[y,k,e==null?void 0:e.id,n]);const x=(f==null?void 0:f.accountName)||"",I=x?t.formatMessage({id:"chatbot.tryProForAccount"},{accountName:x}):((L=r==null?void 0:r.localeMessages)==null?void 0:L["accountpage.trypro"])||"Try Pro",O=E.useCallback(async()=>{if(!(u||!p||!(e!=null&&e.id))){d(!0);try{if(y&&(await o.init(p),wn(o.planName))){n.clearTryProUpsellForMessage(e.id);return}ha(n.getAgentAnalyticsContext()),c(!0)}catch{y&&n.clearTryProUpsellForMessage(e.id)}finally{d(!1)}}},[u,p,e==null?void 0:e.id,y,o,n]),T=E.useCallback(()=>{c(!1)},[]);return v?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"chat-try-pro-cta",children:i.jsx(gt,{buttonText:I,color:"primary",size:"medium",onButtonClick:O,disabled:u})}),i.jsx(_p,{isOpen:l,onClose:T,appStore:r,tierManagementStore:o,accountRootStore:a,accountId:p,activationSource:"agent_try_pro_upsell"})]}):null});Vo.propTypes={message:j.shape({id:j.string.isRequired,citationsFinalized:j.bool,awaitingRunFinish:j.bool,tryProUpsell:j.shape({runId:j.string,threadId:j.string,accountId:j.string,accountName:j.string})}).isRequired};const Go=E.createContext({announce:()=>{}});function $o(){return E.useContext(Go)}const Op=/^[=+\-@]/,zt=e=>{const t=String(e??"");return Op.test(t)?`'${t}`:t},Np=e=>{const t=[],n=[],r=e.querySelector("thead");return r&&r.querySelectorAll("th").forEach(a=>{var s;t.push(((s=a.textContent)==null?void 0:s.trim())??"")}),(e.querySelector("tbody")??e).querySelectorAll("tr").forEach(a=>{if(a.closest("thead"))return;const s=[];a.querySelectorAll("td, th").forEach(l=>{var c;s.push(((c=l.textContent)==null?void 0:c.trim())??"")}),s.length>0&&n.push(s)}),{headers:t,rows:n}},hi=e=>{const t=zt(e);return t.includes(",")||t.includes(` 49`)||t.includes('"')?`"${t.replace(/"/g,'""')}"`:t},di=e=>{const t=[];return e.headers.length>0&&t.push(e.headers.map(hi).join(",")),e.rows.forEach(n=>{t.push(n.map(hi).join(","))}),`\uFEFF${t.join(` 50`)}`},pi=e=>{const t=e.headers.length>0?e.headers:e.rows[0]??[],n=e.headers.length>0?e.rows:e.rows.slice(1);if(t.length===0)return"";const r=l=>String(zt(l)).replace(/\|/g,"\\|"),o=`| ${t.map(r).join(" | ")} |`,a=`| ${t.map(()=>"---").join(" | ")} |`,s=n.map(l=>`| ${l.map(r).join(" | ")} |`);return[o,a,...s].join(` 51`)},mn=(e,t=new Date)=>{const n=o=>String(o).padStart(2,"0");return`worksmanager-assistant-table-${`${t.getFullYear()}${n(t.getMonth()+1)}${n(t.getDate())}-${n(t.getHours())}${n(t.getMinutes())}`}.${e}`},Nt=(e,t)=>
51{const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)},Lp=async e=>{const{default:t}=await Xe(async()=>{const{default:a}=await import("./exceljs.min-D_QUTvSi.js").then(s=>s.e);return{default:a}},__vite__mapDeps([0,1,2])),n=new t.Workbook,r=n.addWorksheet("Table");e.headers.length>0&&r.addRow(e.headers.map(zt)),e.rows.forEach(a=>{r.addRow(a.map(zt))});const o=await n.xlsx.writeBuffer();return new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})},Rp="M23 10H13C11.9 10 11 10.9 11 12V25C11 25.55 11.45 26 12 26C12.55 26 13 25.55 13 25V12H23C23.55 12 24 11.55 24 11C24 10.45 23.55 10 23 10ZM15 16V28C15 29.1 15.9 30 17 30H26C27.1 30 28 29.1 28 28V16C28 14.9 27.1 14 26 14H17C15.9 14 15 14.9 15 16Z",Dp="M64.0306 17.5306L56.5306 25.0306C56.4609 25.1003 56.3782 25.1556 56.2871 25.1933C56.1961 25.2311 56.0985 25.2505 55.9999 25.2505C55.9014 25.2505 55.8038 25.2311 55.7127 25.1933C55.6217 25.1556 55.539 25.1003 55.4693 25.0306L47.9693 17.5306C47.8286 17.3898 47.7495 17.199 47.7495 16.9999C47.7495 16.8009 47.8286 16.61 47.9693 16.4693C48.11 16.3286 48.3009 16.2495 48.4999 16.2495C48.699 16.2495 48.8898 16.3286 49.0306 16.4693L55.9999 23.4396L62.9693 16.4693C63.039 16.3996 63.1217 16.3443 63.2128 16.3066C63.3038 16.2689 63.4014 16.2495 63.4999 16.2495C63.5985 16.2495 63.6961 16.2689 63.7871 16.3066C63.8781 16.3443 63.9609 16.3996 64.0306 16.4693C64.1002 16.539 64.1555 16.6217 64.1932 16.7128C64.2309 16.8038 64.2503 16.9014 64.2503 16.9999C64.2503 17.0985 64.2309 17.1961 64.1932 17.2871C64.1555 17.3781 64.1002 17.4609 64.0306 17.5306Z",er=E.memo(({className:e=""})=>i.jsxs("svg",{viewBox:"0 0 80 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[i.jsx("path",{d:Rp,fill:"currentColor"}),i.jsx("path",{d:Dp,fill:"currentColor"})]}));er.displayName="TableCopyMenuIcon";er.propTypes={className:j.string};const Mp="M27 21V27H13V21C13 20.45 12.55 20 12 20C11.45 20 11 20.45 11 21V28C11 28.55 11.45 29 12 29H28C28.55 29 29 28.55 29 28V21C29 20.45 28.55 20 28 20C27.45 20 27 20.45 27 21ZM20.99 20.67L22.88 18.79C22.9726 18.6974 23.0825 18.624 23.2035 18.5739C23.3244 18.5238 23.4541 18.498 23.585 18.498C23.7159 18.498 23.8456 18.5238 23.9665 18.5739C24.0875 18.624 24.1974 18.6974 24.29 18.79C24.3826 18.8826 24.456 18.9925 24.5061 19.1135C24.5562 19.2344 24.582 19.3641 24.582 19.495C24.582 19.6259 24.5562 19.7556 24.5061 19.8765C24.456 19.9975 24.3826 20.1074 24.29 20.2L20.7 23.79C20.6075 23.8827 20.4976 23.9563 20.3766 24.0064C20.2557 24.0566 20.126 24.0824 19.995 24.0824C19.864 24.0824 19.7343 24.0566 19.6134 24.0064C19.4924 23.9563 19.3825 23.8827 19.29 23.79L15.7 20.2C15.513 20.013 15.408 19.7594 15.408 19.495C15.408 19.2306 15.513 18.977 15.7 18.79C15.887 18.603 16.1406 18.498 16.405 18.498C16.6694 18.498 16.923 18.603 17.11 18.79L18.99 20.67V12C18.99 11.45 19.44
5111 19.99 11C20.54 11 20.99 11.45 20.99 12V20.67Z",Pp="M64.0306 17.5306L56.5306 25.0306C56.4609 25.1003 56.3782 25.1556 56.2871 25.1933C56.1961 25.2311 56.0985 25.2505 55.9999 25.2505C55.9014 25.2505 55.8038 25.2311 55.7127 25.1933C55.6217 25.1556 55.539 25.1003 55.4693 25.0306L47.9693 17.5306C47.8286 17.3898 47.7495 17.199 47.7495 16.9999C47.7495 16.8009 47.8286 16.61 47.9693 16.4693C48.11 16.3286 48.3009 16.2495 48.4999 16.2495C48.699 16.2495 48.8898 16.3286 49.0306 16.4693L55.9999 23.4396L62.9693 16.4693C63.039 16.3996 63.1217 16.3443 63.2128 16.3066C63.3038 16.2689 63.4014 16.2495 63.4999 16.2495C63.5985 16.2495 63.6961 16.2689 63.7871 16.3066C63.8781 16.3443 63.9609 16.3996 64.0306 16.4693C64.1002 16.539 64.1555 16.6217 64.1932 16.7128C64.2309 16.8038 64.2503 16.9014 64.2503 16.9999C64.2503 17.0985 64.2309 17.1961 64.1932 17.2871C64.1555 17.3781 64.1002 17.4609 64.0306 17.5306Z",tr=E.memo(({className:e=""})=>i.jsxs("svg",{viewBox:"0 0 72 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:[i.jsx("path",{d:Mp,fill:"currentColor"}),i.jsx("path",{d:Pp,fill:"currentColor"})]}));tr.displayName="TableDownloadMenuIcon";tr.propTypes={className:j.string};const Fp=2e3,nr=E.memo(({tableRef:e})=>{const t=Ne(),{chatStore:n}=Me(),{announce:r}=$o(),o=E.useRef(null),a=E.useRef(null),s=E.useId().replace(/:/g,""),l=`table-copy-toggle-${s}`,c=`table-download-toggle-${s}`,[u,d]=E.useState(!1),[h,f]=E.useState(!1),[p,m]=E.useState(null);E.useEffect(()=>{if(!u&&!h)return;const U=z=>{var ee,Y;const Q=z.target;(ee=o.current)!=null&&ee.contains(Q)||(Y=a.current)!=null&&Y.contains(Q)||(d(!1),f(!1))},W=z=>{z.key==="Escape"&&(d(!1),f(!1))};return document.addEventListener("mousedown",U),document.addEventListener("keydown",W),()=>{document.removeEventListener("mousedown",U),document.removeEventListener("keydown",W)}},[u,h]);const y=E.useCallback(()=>{const U=e.current;return U?Np(U):null},[e]),k=n.getAgentAnalyticsContext(),w=E.useCallback(U=>{r(U),m("menu"),setTimeout(()=>m(null),Fp)},[r]),v=E.useCallback(async U=>{const W=y();if(!W)return;const z=U==="csv"?di(W):pi(W);if(z.trim())try{await navigator.clipboard.writeText(z),da(U,k),w(t.formatMessage({id:"chatbot.markdown.table.copied"}))}catch{m(null)}finally{d(!1)}},[k,w,y,t]),x=E.useCallback(async U=>{const W=y();if(W)try{if(U==="excel"){const z=await Lp(W);Nt(z,mn("xlsx"))}else if(U==="csv"){const z=di(W);Nt(new Blob([z],{type:"text/csv;charset=utf-8"}),mn("csv"))}else{const z=pi(W);if(!z.trim())return;Nt(new Blob([z],{type:"text/markdown;charset=utf-8"}),mn("md"))}pa(U,k),r(t.formatMessage({id:"chatbot.markdown.table.downloaded"}))}catch{}finally{f(!1)}},[k,r,y,t]),I=t.formatMessage({id:"chatbot.markdown.table.copy"}),O=t.formatMessage({id:"chatbot.markdown.table.copied"}),T=t.formatMessage({id:"chatbot.markdown.table.download"}),L=t.formatMessage({id:"chatbot.markdown.table.copyCsv"}),D=t.formatMessage({id:"chatbot.markdown.table.copyMarkdown"}),B=t.formatMessage({id:"chatbot.markdown.table.downloadExcel"}),C=t.formatMessage({id:"chatbot.markdown.table.downloadCsv"}),M=t.formatMessage({id:"chatbot.markdown.table.downloadMarkdown"}),P=p?O:I;return i.jsxs("div",{className:"chat-markdown-table-toolbar chat-markdown-table-toolbar--icon-only","data-testid":"table-toolbar",children:[i.jsxs("div",{ref:o,className:"chat-markdown-table-toolbar__menu",children:[i.jsx("button",{type:"button",id:l,className:"chat-markdown-table-toolbar__btn",title:P,"aria-label":P,"aria-haspopup":"menu","aria-expanded":u,onClick:()=>{f(!1),d(U=>!U)},children:i.jsx(er,{})}),u&&i.jsxs("div",{className:"chat-markdown-table-toolbar__menu-panel",role:"menu","aria-labelledby":l,children:[i.jsx("button",{type:"button",role:"menuitem",className:"chat-markdown-table-toolbar__menu-item",onClick:()=>v("csv"),children:L}),i.jsx("button",{type:"button",role:"menuitem",className:"chat-markdown-table-toolbar__menu-item",onClick:()=>v("markdown"),children:D})]})]}),i.jsxs("div",{ref:a,className:"chat-markdown-table-toolbar__menu",children:[i.jsx("button",{type:"button",id:c,className:"chat-markdown-table-toolbar__btn",title:T,"aria-label":T,"aria-haspopup":"menu","aria-expanded":h,onClick:()=>{d(!1),f(U=>!U)},children:i.jsx(tr,{})}),h&&i.jsxs("div",{className:"chat-markdown-table-toolbar__menu-panel",role:"menu","aria-labelledby":c,children:[i.jsx("button",{type:"button",role:"menuitem",className:"chat-markdown-table-toolbar__menu-item",onClick:()=>x("excel"),children:B}),i.jsx("button",{type:"button",role:"menuitem",className:"chat-markdown-table-toolbar__menu-item",onClick:()=>x("csv"),children:C}),i.jsx("button",{type:"button",role:"menuitem",className:"chat-markdown-table-toolbar__menu-item",onClick:()=>x("markdown"),children:M})]})]})]})});nr.displayName="TableToolbar";nr.propTypes={tableRef:j.shape({current:j.object}).isRequired};const rr=E.memo(({children:e=null})=>{const t=Ne(),n=E.useRef(null),r=E.useRef(null);E.useLayoutEffect(()=>{var a;r.current=((a=n.current)==null?void 0:a.querySelector("table"))??null});const o=t.formatMessage({id:"chatbot.markdown.table.scrollRegion"});return i.jsxs("div",{ref:n,className:"chat-markdown-table-block","data-testid":"chat-markdown-table-block",children:[i.jsx("div",{className:"chat-markdown-table-scroll",tabIndex:0,role:"region","aria-label":o,children:e}),i.jsx(nr,{tableRef:r})]})});rr.displayName="TableBlock";
51rr.propTypes={children:j.node};const Bp=/^https:\/\//i,zp=10*1024*1024,Wo={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp"},fi=Object.keys(Wo),Up=new Set(["image/svg+xml","text/html","application/html","text/plain"]);function ir(e){return typeof e=="string"&&Bp.test(e.trim())}function mi(e){return String(e||"").split(/[/\\]/).pop().replace(/\.[^.]+$/,"").trim().replace(/[^\w.-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"image"}function Hp(e){return e.length>=12&&e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80}function gn(e,t){return t.every((n,r)=>e[r]===n)}function Vp(e){return gn(e,[137,80,78,71,13,10,26,10])?"image/png":gn(e,[255,216,255])?"image/jpeg":gn(e,[71,73,70,56])?"image/gif":Hp(e)?"image/webp":null}async function Gp(e,t){const n=e.slice(0,t);if(typeof n.arrayBuffer=="function"){const r=await n.arrayBuffer();return new Uint8Array(r)}return new Promise((r,o)=>{const a=new FileReader;a.onload=()=>{r(new Uint8Array(a.result))},a.onerror=()=>{o(a.error||new Error("Failed to read image bytes"))},a.readAsArrayBuffer(n)})}function $p(e,t="",n="image/png"){const r=Wo[n]||"png";let o="";try{const a=new URL(e).pathname;o=mi(a.split("/").pop()||"")}catch{o=""}return(!o||o==="image")&&(o=mi(t||"image")),`${o}.${r}`}function Wp(e){const t=typeof e.type=="string"?e.type.trim().toLowerCase():"";return t?t.split(";")[0].trim():""}function gi(e){if(!ir(e))throw new Error("Disallowed image URL");const t=e.trim();if(!window.open(t,"_blank","noopener,noreferrer"))throw new Error("Image tab blocked")}async function qp(e,{alt:t=""}={}){if(!ir(e))throw new Error("Disallowed image URL");const n=e.trim();let r;try{r=await fetch(n,{mode:"cors",credentials:"omit",referrerPolicy:"no-referrer"})}catch{gi(n);return}if(!r.ok){gi(n);return}const o=await r.blob();if(o.size>zp)throw new Error("Image too large");const a=Wp(o);if(a&&Up.has(a))throw new Error("Disallowed image type");if(a&&a!=="application/octet-stream"&&!fi.includes(a))throw new Error("Disallowed image type");const s=await Gp(o,12),l=Vp(s);if(!l)throw new Error("Not a raster image");if(a&&fi.includes(a)&&a!==l)throw new Error("Image type mismatch");const c=$p(n,t,l);Nt(o,c)}const Yp="M27 21V27H13V21C13 20.45 12.55 20 12 20C11.45 20 11 20.45 11 21V28C11 28.55 11.45 29 12 29H28C28.55 29 29 28.55 29 28V21C29 20.45 28.55 20 28 20C27.45 20 27 20.45 27 21ZM20.99 20.67L22.88 18.79C22.9726 18.6974 23.0825 18.624 23.2035 18.5739C23.3244 18.5238 23.4541 18.498 23.585 18.498C23.7159 18.498 23.8456 18.5238 23.9665 18.5739C24.0875 18.624 24.1974 18.6974 24.29 18.79C24.3826 18.8826 24.456 18.9925 24.5061 19.1135C24.5562 19.2344 24.582 19.3641 24.582 19.495C24.582 19.6259 24.5562 19.7556 24.5061 19.8765C24.456 19.9975 24.3826 20.1074 24.29 20.2L20.7 23.79C20.6075 23.8827 20.4976 23.9563 20.3766 24.0064C20.2557 24.0566 20.126 24.0824 19.995 24.0824C19.864 24.0824 19.7343 24.0566 19.6134 24.0064C19.4924 23.9563 19.3825 23.8827 19.29 23.79L15.7 20.2C15.513 20.013 15.408 19.7594 15.408 19.495C15.408 19.2306 15.513 18.977 15.7 18.79C15.887 18.603 16.1406 18.498 16.405 18.498C16.6694 18.498 16.923 18.603 17.11 18.79L18.99 20.67V12C18.99 11.45 19.44
5111 19.99 11C20.54 11 20.99 11.45 20.99 12V20.67Z",or=E.memo(({className:e=""})=>i.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:i.jsx("path",{d:Yp,fill:"currentColor"})}));or.displayName="MarkdownImageDownloadIcon";or.propTypes={className:j.string};const ar=E.memo(({src:e="",alt:t=""})=>{const n=Ne(),{announce:r}=$o(),o=ir(e),a=o?e.trim():"",s=typeof t=="string"&&t.trim()?t.trim():"Image",l=E.useCallback(async()=>{try{await qp(a,{alt:s})}catch{r(n.formatMessage({id:"chatbot.markdown.image.downloadFailed"}))}},[r,s,n,a]);if(!o)return null;const c=n.formatMessage({id:"chatbot.markdown.image.download"});return i.jsxs("span",{className:"markdown-image-wrap","data-testid":"markdown-image-wrap",children:[i.jsx("img",{src:a,alt:s,className:"markdown-image",loading:"lazy",referrerPolicy:"no-referrer","data-testid":"markdown-image"}),i.jsx("span",{className:"markdown-image-actions",children:i.jsx("span",{className:"markdown-image-download","data-tooltip":c,title:c,children:i.jsx("button",{type:"button",className:"markdown-image-download-btn",onClick:l,"aria-label":c,"data-testid":"markdown-image-download",children:i.jsx(or,{})})})})]})});ar.displayName="MarkdownImage";ar.propTypes={src:j.string,alt:j.string};const Rn=e=>{var t;return e==null?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(n=>Rn(n)).join(""):(t=e.props)!=null&&t.children?Rn(e.props.children):""},bi=e=>e.replace(/\/$/,""),Xp=new Set(["http:","https:","mailto:","tel:"]);function qo(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;try{return Xp.has(new URL(t).protocol)}catch{return!1}}const yi=({href:e,children:t,className:n,...r})=>qo(e)?i.jsx("a",{...r,href:e,target:"_blank",rel:"noopener noreferrer",className:n,children:t}):i.jsx("span",{className:n,children:t}),st=({href:e,className:t,title:n,onClick:r,children:o})=>qo(e)?i.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:t,title:n,onClick:r,children:o}):i.jsx("span",{className:t,title:n,children:o}),Kp=(e,t)=>{if(!e||typeof e!="string")return!1;const n=e.trim();if(/^mailto:/i.test(n)||/^tel:/i.test(n))return!0;const r=Rn(t).trim();if(!r||r.includes(" "))return!1;if(/^https?:\/\//i.test(n)){const o=n.replace(/^https?:\/\//i,"");if(bi(r)===bi(n)||r===o)return!0;try{const a=new URL(n);if(r===a.hostname||r===`${a.hostname}${a.pathname}`)return!0}catch{return!1}}return!1},bn={a:({node:e,children:t,href:n,...r})=>
51{if(t&&t.length===1&&typeof t[0]=="string"&&/^\[?\d+(,\s*\d+)*\]?$/.test(t[0]))return i.jsx(yi,{href:n,className:"markdown-link--citation",...r,children:t});const a=Kp(n,t)?"markdown-link--atomic":"markdown-link";return i.jsx(yi,{href:n,className:a,...r,children:t})},img:({node:e,...t})=>i.jsx(ar,{src:t.src,alt:t.alt}),code:({node:e,className:t,children:n,...r})=>/language-(\w+)/.exec(t||"")||String(n).includes(` 52`)?i.jsx("pre",{className:"markdown-code-block",children:i.jsx("code",{className:t,...r,children:n})}):i.jsx("code",{className:`markdown-inline-code ${t||""}`,...r,children:n}),p:({node:e,...t})=>i.jsx("p",{className:"message-text",...t}),ul:({node:e,...t})=>i.jsx("ul",{...t}),ol:({node:e,...t})=>i.jsx("ol",{...t}),li:({node:e,...t})=>i.jsx("li",{...t}),strong:({node:e,...t})=>i.jsx("strong",{...t}),em:({node:e,...t})=>i.jsx("em",{...t}),h1:({node:e,...t})=>i.jsx("h1",{className:"message-heading",...t}),h2:({node:e,...t})=>i.jsx("h2",{className:"message-heading",...t}),h3:({node:e,...t})=>i.jsx("h3",{className:"message-heading",...t}),h4:({node:e,...t})=>i.jsx("h4",{className:"message-heading",...t}),h5:({node:e,...t})=>i.jsx("h5",{className:"message-heading",...t}),h6:({node:e,...t})=>i.jsx("h6",{className:"message-heading",...t}),table:({children:e,...t})=>i.jsx(rr,{...t,children:i.jsx("table",{children:e})})},Yo=Le(({message:e,onFeedback:t,feedbackLoading:n=!1,activeTurnSteps:r=null,activeTurnPhase:o=null})=>{const a=Ne(),{id:s,text:l,content:c,sender:u,feedback:d,cited_sources:h,additional_sources:f,isError:p,tone:m,retryable:y,retryAfterSeconds:k,details:w,errorMessageId:v,errorMessageValues:x,awaitingRunFinish:I,reasoningSteps:O,citationsFinalized:T}=e,L=u==="bot",D=u==="user",B=a.formatMessage({id:"chatbot.feedback.type.thumbs_up"}),C=a.formatMessage({id:"chatbot.feedback.type.thumbs_down"}),P=L&&s!=="welcome-msg"&&(!(T!==void 0||I===!0)||T===!0&&!I),U=r??(Array.isArray(O)?O:[]),W=o??"complete",z=r==null,[Q,ee]=E.useState(!1),[Y,he]=E.useState(!1),[g,ce]=E.useState(!1),ae=E.useRef(null),{chatStore:b}=Me(),te=b.useAgUI,de=a.formatMessage({id:"chatbot.v2.actions.copyMessage",defaultMessage:"Copy message"}),re=a.formatMessage({id:"chatbot.v2.actions.copiedMessage",defaultMessage:"Copied"}),Se=typeof c=="string"&&c.trim()?c:typeof l=="string"?l:"",pe=te&&L&&!p&&s!=="welcome-msg"&&Se.trim().length>0,ge=!!(d!=null&&d.feedback_type)||g;E.useEffect(()=>()=>{ae.current&&clearTimeout(ae.current)},[]);const ye=()=>{if(!p)return"";switch(m){case"warning":return"chat-message__bubble--warning";case"info":return"chat-message__bubble--info";default:return"chat-message__bubble--error"}},Pe=()=>{if(!p)return null;const S=c||l||"",V=(()=>{switch(m){case"warning":return"chat-message__error--warning";case"info":return"chat-message__error--info";default:return"chat-message__error--error"}})(),se=()=>y?k?i.jsx("span",{className:"chat-message__retry-hint",children:i.jsx($,{id:"chatbot.error.retryAfter",defaultMessage:"You can retry in about {seconds, number} seconds.",values:{seconds:k}})}):i.jsx("span",{className:"chat-message__retry-hint",children:i.jsx($,{id:"chatbot.error.retryGeneric",defaultMessage:"Please try again in a moment."})}):null,Ie=S&&i.jsx(cn,{remarkPlugins:[fn],components:bn,children:S})||v&&i.jsx($,{id:v,values:x});return i.jsxs("div",{className:`chat-message__error ${V}`,children:[Ie||i.jsx($,{id:"chatbot.error.generic",defaultMessage:"Something went wrong. Please try again."}),se()]})},Ve=()=>{t(s,e,"thumbs_up")},Ge=()=>{t(s,e,"thumbs_down")},$e=async()=>{var S;try{if((S=navigator.clipboard)!=null&&S.writeText)await navigator.clipboard.writeText(Se);else{const V=document.createElement("textarea");V.value=Se,document.body.appendChild(V),V.select(),document.execCommand("copy"),document.body.removeChild(V)}ce(!0),ae.current&&clearTimeout(ae.current),ae.current=setTimeout(()=>{ce(!1)},2e3)}catch{ce(!1)}},je=(S,V)=>{fa(S,V,b.getAgentAnalyticsContext())},Je=()=>{const S=!Q;S&&cr((h==null?void 0:h.length)||0,(f==null?void 0:f.length)||0,b.getAgentAnalyticsContext()),ee(S)},We=()=>{const S=!Y;S&&cr((h==null?void 0:h.length)||0,(f==null?void 0:f.length)||0,b.getAgentAnalyticsContext()),he(S)},qe=`chat-message chat-message--${D?"user":"bot"} ${p?"chat-message--error":""} ${te?"chat-message--agui-v2":""} ${te&&D?"chat-message--agui-v2-user":""}`.trim(),xe=()=>i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`chat-message__bubble ${ye()} ${p?`chat-message__bubble--${m||"error"}`:""} ${te&&D&&!p?"chat-message__v2-user-pill":""}`,children:[L&&U.length>0&&i.jsx(Ho,{steps:U,turnPhase:W,isHistorical:z}),Pe(),!p&&i.jsxs("div",{className:"chat-message__content",children:[!l&&c&&i.jsx(cn,{remarkPlugins:[fn],components:bn,children:c}),(l||!c&&!l)&&i.jsx(cn,{remarkPlugins:[fn],components:bn,children:l||""})]}),L&&I&&!p&&i.jsxs("div",{className:"chat-message__sources-shimmer","aria-busy":"true","aria-live":"polite",children:[i.jsx("span",{className:"chat-message__sources-shimmer-line"}),i.jsx("span",{className:"chat-message__sources-shimmer-line chat-message__sources-shimmer-line--short"})]}),L&&!p&&i.jsx(Vo,{message:e}),L&&(h&&h.length>0||f&&f.length>0)&&i.jsxs("div",{className:"message-sources-dropdown",children:[h&&h.length>0&&i.jsxs("div",{className:"sources-dropdown-section",children:[i.jsxs("button",{className:`s
52ources-dropdown-toggle ${Q?"open":""}`,onClick:Je,"aria-expanded":Q,children:[i.jsxs("span",{className:"sources-label",children:[te?i.jsx($,{id:"chatbot.sources.v2.title",defaultMessage:"Sources"}):i.jsx($,{id:"chatbot.sources.cited.title",defaultMessage:"Cited Sources"}),i.jsxs("span",{className:"sources-count",children:["(",h.length,")"]})]}),i.jsx("svg",{className:"dropdown-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:i.jsx("path",{d:"M3 4.5L6 7.5L9 4.5H3Z"})})]}),Q&&i.jsx("div",{className:"sources-dropdown-content",children:i.jsxs("div",{className:"sources-list",children:[h.map((S,V)=>i.jsxs("div",{className:"source-item",children:[i.jsxs("div",{className:"source-header",children:[i.jsxs("span",{className:"citation-number",children:["[",S.citation_number??V+1,"]"]}),i.jsxs("div",{className:"source-title",children:[S.url&&S.url!==""?i.jsxs(st,{href:S.url,className:"source-title-link",onClick:()=>je("cited",h.length),children:[S.title,i.jsx("svg",{className:"source-link-icon",width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:i.jsx("path",{d:"M10 10H2V2h4V0H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V6h-2v4zM6.5 0v1.5H9l-6 6 1.5 1.5 6-6v2.5H12V0H6.5z"})})]}):i.jsx("span",{className:"source-title-text",children:S.title}),S.sectionTitle&&S.sectionTitle!==""&&i.jsxs("span",{className:"source-section",children:[" ","- ",S.sectionTitle]})]})]}),S.url&&S.url!==""&&i.jsx("div",{className:"source-meta",children:i.jsx(st,{href:S.url,className:"source-url-link",title:S.url,onClick:()=>je("cited",h.length),children:S.url})})]},V)),f&&f.length>0&&i.jsxs("div",{className:"additional-sources-section",children:[i.jsxs("button",{className:`additional-sources-toggle ${Y?"open":""}`,onClick:We,"aria-expanded":Y,children:[i.jsx($,{id:"chatbot.sources.additional.title",defaultMessage:"Additional Sources"}),i.jsxs("span",{className:"sources-count",children:["(",f.length,")"]}),i.jsx("svg",{className:"dropdown-arrow",width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:i.jsx("path",{d:"M2.5 3.5L5 6L7.5 3.5H2.5Z"})})]}),Y&&i.jsx("div",{className:"additional-sources-content",children:f.map((S,V)=>i.jsxs("div",{className:"source-item additional",children:[i.jsx("div",{className:"source-header",children:i.jsxs("div",{className:"source-title",children:[S.url&&S.url!==""?i.jsxs(st,{href:S.url,className:"source-title-link",onClick:()=>je("additional",f.length),children:[S.title,i.jsx("svg",{className:"source-link-icon",width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:i.jsx("path",{d:"M10 10H2V2h4V0H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V6h-2v4zM6.5 0v1.5H9l-6 6 1.5 1.5 6-6v2.5H12V0H6.5z"})})]}):i.jsx("span",{className:"source-title-text",children:S.title}),S.sectionTitle&&S.sectionTitle!==""&&i.jsxs("span",{className:"source-section",children:[" ","- ",S.sectionTitle]})]})}),S.url&&S.url!==""&&i.jsx("div",{className:"source-meta",children:i.jsx(st,{href:S.url,className:"source-url-link",title:S.url,onClick:()=>je("additional",f.length),children:S.url})})]},V))})]})]})})]}),!h&&f&&f.length>0&&i.jsxs("div",{className:"sources-dropdown-section",children:[i.jsxs("button",{className:`sources-dropdown-toggle ${Y?"open":""}`,onClick:We,"aria-expanded":Y,children:[i.jsx($,{id:"chatbot.sources.additional.title",defaultMessage:"Additional Sources"}),i.jsxs("span",{className:"sources-count",children:["(",f.length,")"]}),i.jsx("svg",{className:"dropdown-arrow",width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:i.jsx("path",{d:"M3 4.5L6 7.5L9 4.5H3Z"})})]}),Y&&i.jsx("div",{className:"sources-dropdown-content",children:i.jsx("div",{className:"sources-list",children:f.map((S,V)=>i.jsxs("div",{className:"source-item additional",children:[i.jsx("div",{className:"source-header",children:i.jsxs("div",{className:"source-title",children:[S.url&&S.url!==""?i.jsxs(st,{href:S.url,className:"source-title-link",onClick:()=>je("additional",f.length),children:[S.title,i.jsx("svg",{className:"source-link-icon",width:"12",height:"12",viewBox:"0 0 12 12",fill:"
52currentColor",children:i.jsx("path",{d:"M10 10H2V2h4V0H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V6h-2v4zM6.5 0v1.5H9l-6 6 1.5 1.5 6-6v2.5H12V0H6.5z"})})]}):i.jsx("span",{className:"source-title-text",children:S.title}),S.sectionTitle&&S.sectionTitle!==""&&i.jsxs("span",{className:"source-section",children:[" ","- ",S.sectionTitle]})]})}),S.url&&S.url!==""&&i.jsx("div",{className:"source-meta",children:i.jsx(st,{href:S.url,className:"source-url-link",title:S.url,onClick:()=>je("additional",f.length),children:S.url})})]},V))})})]})]})]}),(P||pe)&&i.jsxs("div",{className:`chat-message__feedback ${te?"chat-message__feedback--modus":""} ${te?"chat-message__feedback--reveal":""} ${te&&ge?"chat-message__feedback--pinned":""}`,children:[P&&(te?i.jsxs(i.Fragment,{children:[i.jsx(gt,{buttonStyle:"borderless",color:(d==null?void 0:d.feedback_type)==="thumbs_up"?"primary":"tertiary",size:"small",iconOnly:"thumbs_up",tooltipText:B,onButtonClick:Ve,disabled:n,className:`chat-message__feedback-modus-btn ${(d==null?void 0:d.feedback_type)==="thumbs_up"?"chat-message__feedback-modus-btn--active":""}`,"aria-label":B,"aria-pressed":(d==null?void 0:d.feedback_type)==="thumbs_up"}),i.jsx(gt,{buttonStyle:"borderless",color:(d==null?void 0:d.feedback_type)==="thumbs_down"?"primary":"tertiary",size:"small",iconOnly:"thumbs_down",tooltipText:C,onButtonClick:Ge,disabled:n,className:`chat-message__feedback-modus-btn ${(d==null?void 0:d.feedback_type)==="thumbs_down"?"chat-message__feedback-modus-btn--active":""}`,"aria-label":C,"aria-pressed":(d==null?void 0:d.feedback_type)==="thumbs_down"})]}):i.jsxs(i.Fragment,{children:[i.jsx("button",{className:`chat-message__feedback-btn ${(d==null?void 0:d.feedback_type)==="thumbs_up"?"chat-message__feedback-btn--active":""}`,onClick:Ve,disabled:n,"aria-label":B,"aria-pressed":(d==null?void 0:d.feedback_type)==="thumbs_up",title:B,children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M8.5 2.5L8.5 7.5L4.5 7.5C3.94772 7.5 3.5 7.94772 3.5 8.5L3.5 13.5C3.5 14.0523 3.94772 14.5 4.5 14.5L11.5 14.5C12.0523 14.5 12.5 14.0523 12.5 13.5L12.5 6.5C12.5 5.94772 12.0523 5.5 11.5 5.5L10.5 5.5L10.5 2.5C10.5 1.94772 10.0523 1.5 9.5 1.5C8.94772 1.5 8.5 1.94772 8.5 2.5Z"})})}),i.jsx("button",{className:`chat-message__feedback-btn ${(d==null?void 0:d.feedback_type)==="thumbs_down"?"chat-message__feedback-btn--active":""}`,onClick:Ge,disabled:n,"aria-label":C,"aria-pressed":(d==null?void 0:d.feedback_type)==="thumbs_down",title:C,children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M8.5 13.5L8.5 8.5L4.5 8.5C3.94772 8.5 3.5 8.05228 3.5 7.5L3.5 2.5C3.5 1.94772 3.94772 1.5 4.5 1.5L11.5 1.5C12.0523 1.5 12.5 1.94772 12.5 2.5L12.5 9.5C12.5 10.0523 12.0523 10.5 11.5 10.5L10.5 10.5L10.5 13.5C10.5 14.0523 10.0523 14.5 9.5 14.5C8.94772 14.5 8.5 14.0523 8.5 13.5Z"})})})]})),pe&&(te?i.jsx(gt,{buttonStyle:"borderless",color:"tertiary",size:"small",iconOnly:g?"check":"copy_content",tooltipText:g?re:de,onButtonClick:$e,className:`chat-message__feedback-modus-btn ${g?"chat-message__feedback-modus-btn--active":""}`,"aria-label":g?re:de}):i.jsx("button",{className:`chat-message__feedback-btn ${g?"chat-message__feedback-btn--active":""}`,onClick:$e,"aria-label":g?re:de,title:g?re:de,children:i.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:g?i.jsx("path",{d:"M6.2 11.4L3.3 8.5L2.1 9.7L6.2 13.8L13.9 6.1L12.7 4.9L6.2 11.4Z"}):i.jsx("path",{d:"M5 2.5C5 1.95 5.45 1.5 6 1.5H12C12.55 1.5 13 1.95 13 2.5V10.5C13 11.05 12.55 11.5 12 11.5H6C5.45 11.5 5 11.05 5 10.5V2.5ZM6.5 3V10H11.5V3H6.5ZM3 4.5H4V12C4 12.83 4.67 13.5 5.5 13.5H11V14.5H5.5C4.12 14.5 3 13.38 3 12V4.5Z"})})}))]})]});return i.jsx("div",{className:qe,children:te&&L&&!p?i.jsxs("div",{className:"chat-message__v2-doc-row chat-message__v2-doc-row--group",children:[i.jsx("div",{className:"chat-message__v2-avatar","aria-hidden":"true",children:i.jsx("img",{className:"chat-message__v2-avatar-mark",src:_i,alt:""})}),i.jsxs("div",{className:"chat-message__v2-doc-main",children:[i.jsx("div",{className:"chat-message__v2-sender-name",children:i.jsx($,{id:"chatbot.name",defaultMessage:"WorksManager Assistant"})}),xe()]})]}):xe()})});Yo.propTypes={message:j.shape({id:j.string.isRequired,text:j.string,content:j.string,
52sender:j.oneOf(["user","bot"]).isRequired,isError:j.bool,tone:j.oneOf(["error","warning","info"]),retryable:j.bool,retryAfterSeconds:j.number,details:j.object,errorMessageId:j.string,errorMessageValues:j.object,feedback:j.shape({feedback_id:j.string,feedback_type:j.oneOf(["thumbs_up","thumbs_down"]),tags:j.array}),cited_sources:j.array,additional_sources:j.array,reasoningSteps:j.array,citationsFinalized:j.bool,awaitingRunFinish:j.bool}).isRequired,onFeedback:j.func.isRequired,feedbackLoading:j.bool,activeTurnSteps:j.array,activeTurnPhase:j.string};const tt=1e3,xi=20,Xo=({onSend:e,disabled:t=!1,prefillMessage:n=null,prefillRevision:r=0,onClearPrefill:o})=>{const a=Ne(),{chatStore:s}=Me(),[l,c]=E.useState(""),u=s.useAgUI?"chatbot.input.placeholder.readyV2":"chatbot.input.placeholder.ready",d=E.useRef(-1),h=E.useRef(null),f=s.useAgUI,p=tt-l.length,m=p<=xi?"polite":"off";E.useEffect(()=>{if(!h.current)return;const D=h.current,B=160,C=40;D.style.height="auto";const M=Math.min(B,Math.max(D.scrollHeight,C));D.style.height=`${M}px`,D.style.overflowY=D.scrollHeight>B?"auto":"hidden"},[l]),E.useEffect(()=>{n&&r!==d.current&&c(D=>D.trim()!==""?D:(d.current=r,typeof o=="function"&&queueMicrotask(()=>o()),n.slice(0,tt)))},[n,r,o]);const y=D=>{D.preventDefault();const B=l.slice(0,tt);B.trim()&&!t&&(e(B),c(""))},k=D=>{var B;(B=D.nativeEvent)!=null&&B.isComposing||D.key==="Enter"&&!D.shiftKey&&(D.preventDefault(),y(D))},w=D=>{const B=D.target.value.slice(0,tt);l.trim()===""&&B.length>0&&o&&o(),c(B)},v=a.formatMessage({id:"chatbot.input.sendAriaLabel"}),x=f?"chat-input__send-btn chat-input__send-btn--toolbar":"chat-input__send-btn chat-input__send-btn--outside",I=i.jsx("button",{type:"submit",className:x,disabled:!l.trim()||t,"aria-label":v,children:i.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:i.jsx("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"})})}),O=f&&p<=xi,T=i.jsxs("div",{className:`chat-input__counter ${f&&!O?"chat-input__counter--sr-only":""}`,"aria-live":m,"aria-atomic":"true",children:[l.length,"/",tt]}),L=["chat-input__gradient-shell",t?"chat-input__gradient-shell--loading":""].filter(Boolean).join(" ");return i.jsxs("form",{className:`chat-input ${f?"chat-input--agui-v2":""}`,onSubmit:y,children:[i.jsx("div",{className:`chat-input__main ${f?"chat-input__main--composer":""}`,children:f?i.jsx("div",{className:L,children:i.jsxs("div",{className:"chat-input__composer-shell",children:[i.jsx("textarea",{ref:h,className:"chat-input__field",placeholder:a.formatMessage({id:u}),value:l,onChange:w,onKeyDown:k,maxLength:tt,disabled:t,rows:1,"aria-label":a.formatMessage({id:"chatbot.input.fieldAriaLabel"})}),i.jsxs("div",{className:"chat-input__action-row",children:[O?T:null,I]})]})}):i.jsxs(i.Fragment,{children:[i.jsx("textarea",{ref:h,className:"chat-input__field",placeholder:a.formatMessage({id:u}),value:l,onChange:w,onKeyDown:k,maxLength:tt,disabled:t,rows:1,"aria-label":a.formatMessage({id:"chatbot.input.fieldAriaLabel"})}),T]})}),!f&&I]})};Xo.propTypes={onSend:j.func.isRequired,disabled:j.bool,prefillMessage:j.string,prefillRevision:j.number,onClearPrefill:j.func};const Jp=Le(Xo),Qp=e=>e==="thumbs_up"?["accurate","complete","clear"]:["wrong_information","incomplete","confusing","not_relevant"],Zp=Le(()=>{const{chatStore:e}=Me(),t=Ne(),[n,r]=E.useState([]),[o,a]=E.useState(new Set),[s,l]=E.useState(""),[c,u]=E.useState(!1);if(E.useEffect(()=>{e.feedbackData&&r(e.feedbackData.selected_tags||[])},[e.feedbackData]),!e.feedbackPopupOpen||!e.feedbackData)return null;const{messageId:d,feedbackType:h,feedback_id:f}=e.feedbackData,p=h==="thumbs_up"?"chatbot.feedback.type.thumbs_up":"chatbot.feedback.type.thumbs_down",m=Qp(h),y=async x=>{if(!f)return;const I=n.includes(x)?n.filter(O=>O!==x):[...n,x];r(I),a(O=>new Set([...O,x]));try{await e.updateMessageFeedbackTags(f,I)}catch{r(n)}finally{a(O=>{const T=new Set(O);return T.delete(x),T})}},k=()=>{e.closeFeedbackPopup(),r([]),l("")},w=async()=>{const x=s.trim();if(!x||!f)return;if(n.includes(x)){l("");return}const I=[...n,x];r(I),l(""),u(!0);try{await e.updateMessageFeedbackTags(f,I)}catch{r(n)}finally{u(!1)}},v=x=>{x.key==="Enter"&&(x.preventDefault(),w())};return i.jsx("div",{className:"chat-feedback-popup-overlay",onClick:k,children:i.jsxs("div",{className:"chat-feedback-popup",onClick:x=>x.stopPropagation(),children:[i.jsxs("div",{className:"chat-feedback-popup__header",children:[i.jsxs("div",{className:"chat-feedback-popup__header-content",children:[i.jsx("h3",{children:i.jsx($,{id:"chatbot.feedback.title",defaultMessage:"Provide Feedback"})}),i.jsx("p",{className:"chat-feedback-popup__subtitle",children:i.jsx($,{id:"chatbot.feedback.subtitle",defaultMessage:"Tags are saved automatically"})})]}),i.jsx("button",{className:"chat-feedback-popup__close",onClick:k,"aria-label":"Close",children:"Ã"})]}),i.jsxs("div",{className:"chat-feedback-popup__body",children:[i.jsx("p",{className:"chat-feedback-popup__feedback-type",children:i.jsx($,{id:p,defaultMessage:h==="thumbs_up"?"Helpful response":"Not helpful"})}),i.jsxs("div",{className:"chat-feedback-popup__tags",children:[i.jsx("label",{children:i.jsx($,{id:"chatbot.feedback.tags.label",defaultMessage:"Select or add tags (optional):"})}),i.jsxs("div",{className:"chat-feedback-popup__tag-list",children:[m.map(x=>{const I=t.formatMessage({id:`chatbot.feedback.tag.${x}`,defaultMessage:x});return i.jsxs("button",{className:`chat-feedback-popup__tag ${n.includes(x)?"chat-feedback-popup__tag--selected":""} ${o.has(x)?"chat-feedback-popup__tag--updating":""}`,onClick:()=>y(x),disabled:o.has(x),title:n.includes(x)?`Remove "${I}"`:`Add "${I}"`,children:[I,n.includes(x)&&!o.has(x)&&i.jsx("span",{className:"chat-feedback-popup__tag-remove",children:"Ã"}),o.has(x)&&i.jsx("span",{className:"chat-feedback-popup__tag-spinner",children:"â³"})]},x)}),n.filter(x=>!m.includes(x)).map(x=>i.jsxs("button",{className:`chat-feedback-popup__tag chat-feedback-popup__tag--selected ${o.has(x)?"chat-feedback-popup__tag--updating":""}`,onClick:()=>y(x),disabled:o.has(x),title:`Remove "${x}"`,children:[x,!o.has(x)&&i.jsx("span",{className:"chat-feedback-popup__tag-remove",children:"Ã"}),o.has(x)&&i.jsx("span",{className:"chat-feedback-popup__tag-spinner",children:"â³"})]},x))]}),i.jsxs("div",{className:"chat-feedback-popup__custom-tag-input",children:[i.jsx("input",{type:"text",value:s,onChange:x=>l(x.target.value),onKeyDown:v,placeholder:"Type a custom tag...",maxLength:50,disabled:c,
52className:"chat-feedback-popup__input"}),i.jsx("button",{onClick:w,disabled:!s.trim()||c,className:"chat-feedback-popup__add-btn",title:"Add custom tag",children:c?"â³":"+"})]})]})]})]})})}),ef=Le(()=>{const{chatStore:e}=Me(),[t,n]=E.useState(""),[r,o]=E.useState(0),{generalFeedbackSubmitting:a,generalFeedbackSubmitted:s,generalFeedbackError:l,submitGeneralFeedback:c,closeGeneralFeedbackPopup:u,resetGeneralFeedbackState:d}=e,h=e.generalFeedbackPopupOpen,f=()=>{n(""),o(0)},p=E.useCallback(()=>{u(),setTimeout(()=>{f(),d()},300)},[u,d]),m=()=>{p()},y=async()=>{if(!r){alert("Please select a rating");return}await c({rating:r,feedback:t})};return E.useEffect(()=>{if(!h||!s)return;const k=setTimeout(()=>{p()},2e3);return()=>{clearTimeout(k)}},[h,s,p]),h?i.jsx("div",{className:"chat-feedback-popup-overlay",onClick:m,children:i.jsx("div",{className:"chat-feedback-popup chat-general-feedback",onClick:k=>k.stopPropagation(),children:s?i.jsxs("div",{className:"chat-general-feedback__success",children:[i.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),i.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),i.jsx("h3",{children:"Thank you for your feedback!"}),i.jsx("p",{children:"Your input helps us improve WorksManager Assistant."})]}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"chat-feedback-popup__header",children:[i.jsxs("div",{className:"chat-feedback-popup__header-content",children:[i.jsx("h3",{children:"How is your experience?"}),i.jsx("p",{className:"chat-feedback-popup__subtitle",children:"Tell us about your experience with WorksManager Assistant"})]}),i.jsx("button",{className:"chat-feedback-popup__close",onClick:m,"aria-label":"Close",children:"Ã"})]}),i.jsxs("div",{className:"chat-feedback-popup__body",children:[i.jsxs("div",{className:"chat-general-feedback__rating",children:[i.jsx("label",{children:"Rate your experience"}),i.jsx("div",{className:"chat-general-feedback__stars",children:[1,2,3,4,5].map(k=>i.jsx("button",{type:"button",className:`chat-general-feedback__star ${k<=r?"active":""}`,onClick:()=>o(k),"aria-label":`${k} star${k>1?"s":""}`,children:i.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:k<=r?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})},k))})]}),i.jsxs("div",{className:"chat-general-feedback__comment",children:[i.jsx("label",{htmlFor:"general-feedback-text",children:"Additional comments (optional)"}),i.jsx("textarea",{id:"general-feedback-text",className:"chat-general-feedback__textarea",rows:"4",placeholder:"Share your thoughts, suggestions, or report any issues...",value:t,onChange:k=>n(k.target.value),disabled:a})]})]}),l&&i.jsx("div",{className:"chat-feedback-popup__error",children:l}),i.jsxs("div",{className:"chat-feedback-popup__footer",children:[i.jsx("button",{className:"chat-feedback-popup__btn chat-feedback-popup__btn--cancel",onClick:m,disabled:a,children:"Cancel"}),i.jsx("button",{className:"chat-feedback-popup__btn chat-feedback-popup__btn--submit",onClick:y,disabled:a||!r,children:a?"Submitting...":"Submit Feedback"})]})]})})}):null}),tf=["chatbot.emptyState.prompt1","chatbot.emptyState.prompt2","chatbot.emptyState.prompt3"],nf="chatbot.emptyState.description";function rf(e,t){const n={...t.values||{}};if(n.entityType&&!n.entityName){const r=String(n.entityType);n.entityName=e.formatMessage({id:`chatbot.emptyState.pages.selection.fallback.${r}`,defaultMessage:e.formatMessage({id:"chatbot.emptyState.pages.selection.fallback.item"})})}return delete n.entityType,e.formatMessage({id:t.id},n)}const Ko=({promptDescriptors:e=null,promptMessageIds:t=null,descriptionMessageId:n=nf,onPromptClick:r=()=>{}})=>{var h,f;const o=Ne(),{userStore:a}=Me(),s=Array.isArray(e)&&e.length>0?e:Array.isArray(t)&&t.length>0?t.map(p=>({id:p})):tf.map(p=>({id:p})),l=(a==null?void 0:a.status)===kn.COMPLETED&&!!(a!=null&&a.me),c=o.formatMessage({id:"chatbot.emptyState.nameFallback"}),u=((f=(h=a==null?void 0:a.me)==null?void 0:h.firstName)==null?void 0:f.trim())||c,d=l?o.formatMessage({id:"chatbot.emptyState.greeting"},{name:u}):null;return i.jsxs("div",{className:"chat-empty-state","data-testid":"chat-empty-state",children:[i.jsxs("div",{className:"chat-empty-state__hero",children:[i.jsx("div",{className:"chat-empty-state__icon","aria-hidden":"true",children:i.jsx("img",{className:"chat-empty-state__mark",src:_i,alt:"",width:"40",height:"40"})}),i.jsx("h3",{className:"chat-empty-state__title","data-testid":"chat-empty-state-greeting",children:d}),i.jsx("p",{className:"chat-empty-state__description","data-testid":"chat-empty-state-description",children:i.jsx($,{id:n})})]}),i.jsx("ul",{className:"chat-empty-state__prompts",role:"list",children:s.map((p,m)=>{const y=rf(o,p);return i.jsx("li",{className:"chat-empty-state__prompt-li",children:i.jsxs("button",{type:"button",className:"chat-empty-state__prompt-btn","data-testid":"chat-empty-prompt-btn","aria-label":y,onClick:()=>r(y),children:[i.jsx("span",{className:"chat-empty-state__prompt-label",children:y}),i.jsxs("svg",{className:"chat-empty-state__prompt-arrow",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),i.jsx("polyline",{points:"12 5 19 12 12 19"})]})]})},`${p.id}-${m}`)})})]})};Ko.propTypes={promptDescriptors:j.arrayOf(j.shape({id:j.string.isRequired,values:j.object})),promptMessageIds:j.arrayOf(j.string),descriptionMessageId:j.string,onPromptClick:j.func};const of=Le(Ko),af=Le(({isOpen:e,onClose:t})=>{const{chatStore:n}=Me(),r=Ne();if(E.useEffect(()=>{if(!e)return;const f=p=>{p.key==="Escape"&&t()};return window.addEventListener("keydown",f),()=>{window.removeEventListener("keydown",f)}},[e,t]),!e)return null;const o=r.formatMessage({id:"chatbot.menu.history"}),a=r.formatMessage({id:"chatbot.menu.historyDesc"}),s=r.formatMessage({id:"chatbot.menu.report"}),l=r.formatMessage({id:"chatbot.menu.reportDesc"}),c=r.formatMessage({id:"chatbot.menu.sendFeedback"}),u=r.formatMessage({id:"chatbot.menu.darkTheme"}),d=r.formatMessage({id:"chatbot.menu.darkThemeDesc"}),h=()=>{t(),n.openGeneralFeedbackPopup()};return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"settings-popover-overlay",onClick:t}),i.jsx("div",{className:"settings-popover v2-menu-popover","data-testid":"chatbot-v2-menu-panel",children:i.jsx("div",{className:"settings-popover__body",style:{padding:0},children:i.jsxs("ul",{className:"chatbot__v2-menu-list",role:"menu",children:[i.jsx("li",{role:"presentation",children:i.jsxs("button",{type:"button",className:"chatbot__v2-menu-item",disabled:!0,"aria-disabled":"true",title:a,role:"menuitem",children:[o,i.jsx("span",{className:"chatbot__v2-menu-hint",children:"â"})]})}),i.jsx("li",{role:"presentation",children:i.jsxs("button",{type:"button",className:"chatbot__v2-menu-item",disabled:!0,"aria-disabled":"true",title:l,role:"menuitem",children:[s,i.jsx("span",{className:"chatbot__v2-menu-hint",children:"â"})]})}),i.jsx("li",{role:"presentation",children:i.jsx("button",{type:"button",className:"chatbot__v2-menu-item chatbot__v2-menu-item--action",onClick:h,role:"menuitem",children:c})}),i.jsx("li",{role:"presentation",children:i.jsxs("button",{type:"button",className:"chatbot__v2-menu-item",disabled:!0,"aria-disabled":"true",title:d,role:"menuitem",children:[u,i.jsx("span",{className:"chatbot__v2-menu-hint",children:"â"})]})})]})})})]})}
52),Jo=({isOpen:e,title:t,message:n,confirmLabel:r,cancelLabel:o,onConfirm:a,onCancel:s})=>i.jsx(qt,{isOpen:e,headerText:t,acceptButtonText:r,declineButtonText:o,onAccept:a,onDecline:s,onClose:s,runOnCloseAfterDecline:!1,runOnCloseAfterAccept:!1,primaryButtonAriaLabel:r,secondaryButtonAriaLabel:o,hideClose:!1,children:i.jsx("p",{style:{margin:0},children:n})});Jo.propTypes={isOpen:j.bool.isRequired,title:j.string.isRequired,message:j.string.isRequired,confirmLabel:j.string.isRequired,cancelLabel:j.string.isRequired,onConfirm:j.func.isRequired,onCancel:j.func.isRequired};const wi=["today","yesterday","thisWeek","thisMonth","older"],yn=24*60*60*1e3;function ki(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function sf(e,t=new Date){if(!e)return"older";const n=new Date(e);if(Number.isNaN(n.getTime()))return"older";const r=ki(t),o=new Date(r.getTime()-yn),a=new Date(r.getTime()-7*yn),s=new Date(r.getTime()-30*yn),l=ki(n);return l>=r?"today":l>=o?"yesterday":l>=a?"thisWeek":l>=s?"thisMonth":"older"}function lf(e,t=new Date){const n=wi.reduce((r,o)=>(r[o]=[],r),{});return(e||[]).forEach(r=>{const o=sf(r==null?void 0:r.last_run_at,t);o&&n[o]&&n[o].push(r)}),wi.filter(r=>n[r].length>0).map(r=>({bucket:r,items:n[r]}))}const cf=250,uf=150,Ti=3,xn=2,Ci="chat-history-suggest-listbox",hf=({expanded:e})=>i.jsx("svg",{className:`chat-history-panel__group-chevron${e?" chat-history-panel__group-chevron--expanded":""}`,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:i.jsx("path",{d:"M9 18l6-6-6-6"})}),df=()=>i.jsxs("svg",{className:"chat-history-panel__search-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[i.jsx("circle",{cx:"11",cy:"11",r:"8"}),i.jsx("path",{d:"M21 21l-4.35-4.35"})]}),pf=(e,t)=>{if(!t)return"";const n=new Date(t);if(Number.isNaN(n.getTime()))return"";const r=n.getTime()-Date.now(),o=Math.round(r/6e4),a=Math.abs(o);if(a<1)return e.formatMessage({id:"chatbot.history.time.justNow"});if(a<60)return e.formatRelativeTime(o,"minute");const s=Math.round(o/60);if(Math.abs(s)<24)return e.formatRelativeTime(s,"hour");const l=Math.round(s/24);return Math.abs(l)<7?e.formatRelativeTime(l,"day"):e.formatDate(n,{month:"short",day:"numeric",year:n.getFullYear()!==new Date().getFullYear()?"numeric":void 0})};function Si({item:e}){const t=e==null?void 0:e.title_segments;return Array.isArray(t)&&t.length>0?i.jsx(i.Fragment,{children:t.map((n,r)=>{const o=(n==null?void 0:n.text)??"";return n!=null&&n.hit?i.jsx("strong",{children:o},r):i.jsx("span",{children:o},r)})}):(e==null?void 0:e.title)??""}function ff(e,t){const n=String(t||"").trim().toLowerCase();return n?(e??[]).filter(r=>String((r==null?void 0:r.title)||"").toLowerCase().includes(n)):e??[]}const mf=Le(()=>{var qe,xe;const{chatStore:e}=Me(),t=Ne(),n=E.useRef(null),r=E.useRef(null),o=E.useRef(null),[a,s]=E.useState(""),[l,c]=E.useState(null),[u,d]=E.useState(""),[h,f]=E.useState({}),[p,m]=E.useState(!1),[y,k]=E.useState(-1),w=e.historyRenamingId;E.useEffect(()=>{w&&n.current&&(n.current.focus(),n.current.select())},[w]);const v=u.trim(),x=v.length>0,I=v.length>=Ti,O=x&&!I;E.useEffect(()=>{if(!x){e.clearHistorySearch(),m(!1),k(-1);return}if(!I){e.searchHistory(v,{reset:!0});return}const S=window.setTimeout(()=>{e.searchHistory(v,{reset:!0})},cf);return()=>{window.clearTimeout(S)}},[e,v,x,I]),E.useEffect(()=>{if(v.length<xn){e.suggestHistory(""),m(!1),k(-1);return}const S=window.setTimeout(()=>{e.suggestHistory(v)},uf);return()=>{window.clearTimeout(S)}},[e,v]);const T=e.historySuggestItems??[],L=e.historySearchItems??[],D=I&&L.length>0&&e.historySearchQuery===v,B=p&&v.length>=xn&&T.length>0&&!D&&!e.historySearchUnavailable;E.useEffect(()=>{T.length>0&&v.length>=xn?m(!0):T.length===0&&k(-1)},[T.length,v]),E.useEffect(()=>{if(!B)return;const S=V=>{const se=o.current;se&&!se.contains(V.target)&&(m(!1),k(-1))};return document.addEventListener("pointerdown",S),()=>
52{document.removeEventListener("pointerdown",S)}},[B]);const C=S=>{e.setHistoryRenamingId(S.conversation_id),s(S.title||"")},M=()=>{e.setHistoryRenamingId(null),s("")},P=async S=>{const V=a.trim();V.length<1||V.length>80||(await e.renameThread(S,V),s(""))},U=async()=>{l&&(await e.deleteThread(l.conversation_id),c(null))},W=S=>{m(!1),k(-1),d(""),e.clearHistorySearch(),e.openThread(S.conversation_id)},z=()=>{v.length>=Ti&&e.searchHistory(v,{reset:!0}),m(!1),k(-1)},Q=e.historyStatus===kn.INPROGRESS,ee=e.historyStatus===kn.FAILURE,Y=e.historyItems,he=e.historySearchPagingInProgress,g=e.historySearchNextPageToken,ce=E.useMemo(()=>ff(Y,v),[Y,v]),ae=I?L:ce,b=E.useMemo(()=>x?[]:lf(Y??[]),[Y,x]),te=S=>S.some(V=>V.conversation_id===e.conversationId),de=(S,V)=>h[S]!==void 0?h[S]:S==="today"||te(V),re=(S,V)=>{f(se=>({...se,[S]:!de(S,V)}))},Se=S=>{const V=S.conversation_id===e.conversationId,se=w===S.conversation_id,Ie=pf(t,S.last_run_at);return i.jsx("li",{className:`chat-history-panel__item${V?" chat-history-panel__item--active":""}`,children:se?i.jsxs("form",{className:"chat-history-panel__rename-form",onSubmit:ve=>{ve.preventDefault(),P(S.conversation_id)},children:[i.jsx("input",{ref:n,type:"text",className:"chat-history-panel__rename-input",value:a,maxLength:80,"aria-label":t.formatMessage({id:"chatbot.history.renameLabel"}),onChange:ve=>s(ve.target.value),onKeyDown:ve=>{ve.key==="Escape"&&(ve.preventDefault(),M())}}),i.jsxs("div",{className:"chat-history-panel__rename-actions",children:[i.jsx("button",{type:"submit",className:"chat-history-panel__inline-btn",children:i.jsx($,{id:"chatbot.history.save"})}),i.jsx("button",{type:"button",className:"chat-history-panel__inline-btn",onClick:M,children:i.jsx($,{id:"chatbot.history.cancel"})})]})]}):i.jsxs("div",{className:"chat-history-panel__row",children:[i.jsxs("button",{type:"button",className:"chat-history-panel__open-btn","data-testid":`chat-history-open-${S.conversation_id}`,"aria-current":V?"true":void 0,title:Ie||void 0,onClick:()=>e.openThread(S.conversation_id),children:[i.jsx("span",{className:"chat-history-panel__item-title",children:i.jsx(Si,{item:S})}),i.jsx("span",{className:"chat-history-panel__item-time",children:Ie})]}),i.jsxs("div",{className:"chat-history-panel__item-actions",children:[i.jsx("button",{type:"button",className:"chat-history-panel__icon-btn","aria-label":t.formatMessage({id:"chatbot.history.renameAction"},{title:S.title}),onClick:()=>C(S),children:i.jsx("span",{className:"icon i20 edit-icon","aria-hidden":"true"})}),i.jsx("button",{type:"button",className:"chat-history-panel__icon-btn chat-history-panel__icon-btn--danger","aria-label":t.formatMessage({id:"chatbot.history.deleteAction"},{title:S.title}),onClick:()=>c(S),children:i.jsx("span",{className:"icon i20 delete-icon","aria-hidden":"true"})})]})]})},S.conversation_id)},pe=(S,V)=>i.jsx("ul",{id:S,className:"chat-history-panel__list",role:"list",children:V.map(se=>Se(se))}),ge=({bucket:S,items:V})=>{const se=t.formatMessage({id:`chatbot.history.groups.${S}`}),Ie=de(S,V),ve=`chat-history-group-list-${S}`,ot=t.formatMessage({id:"chatbot.history.groupCount"},{label:se,count:V.length});return i.jsxs("section",{className:"chat-history-panel__group","aria-label":se,children:[i.jsxs("button",{type:"button",className:"chat-history-panel__group-toggle","data-testid":`chat-history-group-toggle-${S}`,"aria-expanded":Ie,"aria-controls":ve,onClick:()=>re(S,V),children:[i.jsx(hf,{expanded:Ie}),i.jsx("span",{className:"chat-history-panel__group-toggle-label",children:ot})]}),Ie?pe(ve,V):null]},S)},ye=t.formatMessage({id:"chatbot.history.searchResults"}),Pe=I&&!he&&L.length===0&&!g&&!((qe=e.historyError)!=null&&qe.messageId),Ve=O&&!Q&&ce.length===0,Ge=!x&&!!e.historyNextPageToken,$e=I&&!!g&&!he,je=[{value:"relevance",labelId:"chatbot.history.sortBestMatch"},{value:"recent",labelId:"chatbot.history.sortRecent"},{value:"newest",labelId:"chatbot.history.sortNewest"}],Je=S=>{if(S.key==="Escape"){if(S.preventDefault(),B){m(!1),k(-1);return}d("");return}if(!(!B&&S.key!=="Enter")){if(S.key==="ArrowDown"){S.preventDefault(),k(V=>{const se=V+1;return se>=T.length?0:se});return}if(S.key==="ArrowUp"){S.preventDefault(),k(V=>V<=0?T.length-1:V-1);return}if(S.key==="Enter"){if(S.preventDefault(),B&&y>=0&&y<T.length){W(T[y]);return}z()}}},We=y>=0?`chat-history-suggest-option-${y}`:void 0;return i.jsxs("div",{className:"chat-history-panel","data-testid":"chat-history-panel",role:"region","aria-label":t.formatMessage({id:"chatbot.history.title"}),children:[i.jsxs("div",{className:"chat-history-panel__header",children:[i.jsx("h2",{className:"chat-history-panel__title",children:i.jsx($,{id:"chatbot.history.title"})}),i.jsx("div",{className:"chat-history-panel__search",role:"search",children:i.jsxs("div",{ref:o,className:"chat-history-panel__search-field",children:[i.jsx(df,{}),i.jsx("input",{ref:r,type:"search",className:"chat-history-panel__search-input",value:u,role:"combobox","aria-expanded":B,"aria-controls":B?Ci:void 0,"aria-activedescendant":B?We:void 0,"aria-autocomplete":"list","aria-label":t.formatMessage({id:"chatbot.history.searchLabel"}),placeholder:t.formatMessage({id:"chatbot.history.searchPlaceholder"}),onChange:S=>{d(S.target.value),m(!0),k(-1)},onFocus:()=>{T.length>0&&m(!0)},onKeyDown:Je}),i.jsx("button",{type:"button",className:"chat-history-panel__search-clear-btn","aria-label":t.formatMessage({id:"chatbot.history.clearSearch"}),disabled:!x,onClick:()=>d(""),children:i.jsx("span",{className:"icon i16 cancel-icon","aria-hidden":"true"})}),B?i.jsx("ul",{id:Ci,className:"chat-history-panel__suggest-list",role:"listbox","aria-label":t.formatMessage({id:"chatbot.history.suggestLabel"}),children:T.map((S,V)=>i.jsx("li",{id:`chat-history-suggest-option-${V}`,role:"option","aria-selected":V===y,className:`chat-history-panel__suggest-option${V===y?" chat-history-panel__suggest-option--active":""}`,onMouseDown:se=>{se.preventDefault(),W(S)},children:i.jsx(Si,{item:S})},S.conversation_id))}):null]})})]}),i.jsxs("div",{className:"chat-history-panel__body",children:[Q&&((Y==null?void 0:Y.length)??0)===0&&!x?i.jsx("p",{className:"chat-history-panel__status",role:"status",children:i.jsx($,{id:"chatbot.history.loading"})}):null,I&&he&&L.length===0?i.jsx("p",{className:"chat-history-panel__status",role:"status",children:i.jsx($,{id:"chatbot.history.loading"})}):null,(xe=e.historyError)!=null&&xe.messageId?i.jsx("p",{className:"chat-history-panel__status chat-history-panel__status--error",role:"alert",children:i.jsx($,{id:e.historyError.messageId})}):null,ee&&((Y==null?void 0:Y.length)??0)===0&&!x?i.jsxs("div",{className:"chat-history-panel__status chat-history-panel__status--error",children:[i.jsx("p",{children:i.jsx($,{id:"chatbot.history.errors.listFailed"})}),i.jsx("button",{type:"button",className:"chat-history-panel__retry-btn",onClick:()=>e.loadHistory(!0),children:i.jsx($,{id:"chatbot.history.retry"})})]}):null,!Q&&!ee&&((Y==null?void 0:Y.length)??0)===0&&!x?i.jsx("p",{className:"chat-history-panel__status",children:i.jsx($,{id:"chatbot.history.empty"})}):null,Pe||Ve?i.jsx("p",{className:"chat-history-panel__status",children:i.jsx($,{id:"chatbot.history.searchEmpty"})}):null,x?i.jsxs("div",{className:"chat-history-panel__results-bar","data-testid":"chat-history-results-bar",children:[i.jsx("p",{className:"chat-history-panel__results-count","aria-live":"polite",children:t.formatMessage({id:"chatbot.history.groupCount"},{label:ye,count:ae.length})}),I?i.jsxs("div",{className:"chat-history-panel__sort-control",children:[i.jsx("span",{className:"icon i16 sort-desc-icon chat-history-panel__sort-icon","aria-hidden":"true"}),i.jsx("select",{className:"chat-history-panel__sort-select",value:e.historySearchSortBy,"aria-label":t.formatMessage({id:"chatbot.history.sortLabel"}),onChange:S=>e.setHistorySearchSortBy(S.target.value),children:je.map(S=>i.jsx("option",{value:S.value,children:t.formatMessage({id:S.labelId})},S.value))})]}):i.jsx("p",{className:"chat-history-panel__results-hint",children:i.jsx($,{id:"chatbot.history.searchLoadedHint"})})]}):null,x&&ae.length>0?i.jsx("section",{className:"chat-history-panel__group chat-history-panel__group--results","aria-label":ye,children:pe("chat-history-search-results",ae)}):null,!x&&b.length>0?i.jsx("div",{className:"chat-history-panel__groups",children:b.map(S=>ge(S))}):null,Ge||$e?i.jsx("button",{type:"button",className:"chat-history-panel__load-more",disabled:Q||he,onClick:()=>{I?e.loadMoreSearchHistory():e.loadMoreHistory()},children:i.jsx($,{id:"chatbot.history.loadMore"})}):null]}),i.jsx("div",{className:"chat-history-panel__footer",children:i.jsx("button",{type:"button",className:"chat-history-panel__footer-btn",onClick:()=>{e.closeHistory(),e.openGeneralFeedbackPopup()},children:i.jsx($,{id:"chatbot.menu.sendFeedback"})})}),i.jsx(Jo,{isOpen:!!l,title:t.formatMessage({id:"chatbot.history.deleteConfirmTitle"}),message:t.formatMessage({id:"chatbot.history.deleteConfirmMessage"},{title:(l==null?void 0:l.title)||""}),confirmLabel:t.formatMessage({id:"chatbot.history.delete"}),cancelLabel:t.formatMessage({id:"chatbot.history.cancel"}),onConfirm:U,onCancel:()=>c(null)})]})}),gf="https://www.trimble.com/en/ai-at-trimble",bf=Le(()=>{var ot,A,N,G,X,Z,we,Fe,_e;const{chatStore:e,selectionStore:t,accountRootStore:n,tierManagementStore:r,projectStore:o}=Me(),a=ma(),s=Ne(),l=E.useRef(null),c=E.useRef(null),[u,d]=E.useState(!1),[h,f]=E.useState(null),[p,m]=E.useState({x:0,y:0,width:0,height:0}),[y,k]=E.useState(!1),[w,v]=E.useState(""),x=E.useCallback(F=>{v(""),requestAnimationFrame(()=>v(F))},[]),I=e.chatbotSize,O=E.useRef(I),T=e.chatbotMaximized;E.useEffect(()=>{O.current=I},[I]),E.useEffect(()=>{var F;(F=l.current)!=null&&F.scrollIntoView&&l.current.scrollIntoView({behavior:"smooth"})},[e.messagesSnapshot]),E.useEffect(()=>{var F;e.turnPhase==="streaming"&&((F=l.current)!=null&&F.scrollIntoView)&&l.current.scrollIntoView({behavior:"auto"})},[e.turnPhase]),E.useEffect(()=>{var F;(F=l.current)!=null&&F.scrollIntoView&&l.current.scrollIntoView({behavior:"auto"})},[e.progressHistory.length,(ot=e.currentProgress)==null?void 0:ot.message,e.currentProgress]),E.useEffect(()=>{const F=oe=>{if(u&&h){const Re=oe.clientX-p.x,ke=oe.clientY-p.y;let Qe=O.current.width,Ze=O.current.height;const vt=56,Zo=12,ea=24,Yt=e.useAgUI,ta=ur(Yt),na=ya(Yt),ra=Math.max(400,window.innerHeight-(vt+Zo+ea));h.includes("w")&&(Qe=Math.max(na,Math.min(p.width-Re,ta,window.innerWidth-48))),!Yt&&h.includes("s")&&(Ze=Math.max(400,Math.min(p.height+ke,ra))),(Qe!==O.current.width||Ze!==O.current.height)&&(O.current={width:Qe,height:Ze},e.setChatbotSize({width:Qe,height:Ze}))}},le=()=>{d(!1),f(null)};if(u)return document.addEventListener("mousemove",F),document.addEventListener("mouseup",le),()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",le)}},[e,u,p,h]),E.useEffect(()=>{const F=le=>{var ke,Qe,Ze,vt;if(le.key!=="Escape"||!e.isOpen)return;if(e.historyOpen){e.closeHistory(),le.preventDefault();return}if(y){k(!1),le.preventDefault();return}if((ke=c.current)==null?void 0:ke.querySelector(".chat-markdown-table-toolbar__dropdown")){le.preventDefault();return}if((vt=(Ze=(Qe=c.current)==null?void 0:Qe.querySelector(".chat-input__field"))==null?void 0:Ze.value)==null?void 0:vt.trim()){le.preventDefault();return}e.closeChat("panel")};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[e,y,e.historyOpen]);const L=E.useMemo(()=>{const{accountId:F}=Ii({accountRootStore:n,projectStore:o,pathname:(a==null?void 0:a.pathname)??""});return F},[(N=(A=n==null?void 0:n.accountStore)==null?void 0:A.account)==null?void 0:N.accountId,(X=(G=n==null?void 0:n.accountSelectionStore)==null?void 0:G.selectedAccount)==null?void 0:X.accountId,(Z=o==null?void 0:o.project)==null?void 0:Z.accountId,a==null?void 0:a.pathname]),D=e.useAgUI&&e.usePlatformAgent;E.useEffect(()=>{D&&(!L||!(r!=null&&r.init)||r.isFeaturesCurrentForAccount(L)||r.init(L).catch(()=>{}))},[D,L,r]);const B=E.useMemo(()=>D?za({pathname:(a==null?void 0:a.pathname)??"",search:(a==null?void 0:a.search)??"",selectionStore:t,accountSelectionStore:n==null?void 0:n.accountSelectionStore,planName:r==null?void 0:r.planName}):null,[D,a==null?void 0:a.pathname,a==null?void 0:a.search,t==null?void 0:t.selectedDevice,t==null?void 0:t.selectedDesign,t==null?void 0:t.selectedMember,t==null?void 0:t.selectedProject,(we=n==null?void 0:n.accountSelectionStore)==null?void 0:we.selectedDevice,(Fe=n==null?void 0:n.accountSelectionStore)==null?void 0:Fe.selectedProject,(_e=n==null?void 0:n.accountSelectionStore)==null?void 0:_e.
52selectedUser,r==null?void 0:r.planName]);if(!e.isOpen)return null;const C=(F,le)=>{e.useAgUI||T||(F.stopPropagation(),d(!0),f(le),m({x:F.clientX,y:F.clientY,width:I.width,height:I.height}))},M=()=>{e.setChatbotMaximized(!T)},P=F=>{k(!1),e.sendMessage(F)},U=()=>{const{currentProgress:F}=e;return typeof F=="string"&&F.trim()?F:F&&typeof F=="object"&&typeof F.message=="string"&&F.message.trim()?F.message:s.formatMessage({id:"chatbot.progress.default"})},W=e.messages.length>0,z=e.useAgUI&&!W&&!e.isTyping&&(e.turnPhase==="idle"||e.turnPhase==="complete"),Q=e.useAgUI?!["idle","complete","error"].includes(e.turnPhase):e.isTyping,ee=s.formatMessage({id:"chatbot.header.title"}),Y=s.formatMessage({id:"chatbot.header.actions.newConversation"}),he=s.formatMessage({id:"chatbot.header.actions.feedback"}),g=s.formatMessage({id:"chatbot.header.actions.export"}),ce=s.formatMessage({id:"chatbot.header.actions.exportDisabled"}),ae=s.formatMessage({id:"chatbot.header.actions.maximize"}),b=s.formatMessage({id:"chatbot.header.actions.restore"}),te=s.formatMessage({id:"chatbot.header.actions.close"}),de=s.formatMessage({id:"chatbot.header.actions.openMenu"}),re=s.formatMessage({id:"chatbot.header.actions.closeMenu"}),Se=s.formatMessage({id:"chatbot.history.open"}),pe=s.formatMessage({id:"chatbot.history.close"}),ge=e.useAgUI&&e.usePlatformAgent&&e.canShowPlatformHistory,ye=typeof e.getExportableMessages=="function"?e.getExportableMessages().length:(e.messages||[]).filter(F=>F.id!=="welcome-msg").length,Pe=(F,le,oe)=>{e.handleMessageFeedbackClick(F,le,oe).catch(()=>{})},Ve=()=>{window.confirm(s.formatMessage({id:"chatbot.header.actions.newConversationConfirm"}))&&(k(!1),e.resetConversation())},Ge=()=>{k(!1),e.openGeneralFeedbackPopup()},$e=()=>{const F=typeof e.buildConversationMarkdown=="function"?e.buildConversationMarkdown():"";if(!F.trim())return;const oe=`worksmanager-chat-${new Date().toISOString().replace(/[:.]/g,"-")}.md`,Re=new Blob([F],{type:"text/markdown;charset=utf-8"});ba.saveAs(Re,oe)},qe=Math.max(400,window.innerHeight-(56+12+24)),xe=e.useAgUI,S={width:ur(xe),height:qe},V=S.width,se=ga(T?S.width:I.width,!1),Ie=xe?{width:`${V}px`}:T?{width:`${S.width}px`,height:`${S.height}px`}:{width:`${Math.min(se,S.width)}px`,height:`${Math.min(I.height,S.height)}px`},ve=()=>{k(!1),e.toggleHistory()};return i.jsx(Go.Provider,{value:{announce:x},children:i.jsxs("div",{ref:c,className:`chatbot ${T&&!xe?"chatbot--maximized":""} ${xe?"chatbot--agui-v2":""}`,style:Ie,role:"complementary","aria-label":ee,children:[i.jsx("div",{className:"chatbot__live-region","aria-live":"polite","aria-atomic":"true",children:w}),!xe&&!T&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"chatbot__resize-handle chatbot__resize-handle--s",onMouseDown:F=>C(F,"s")}),i.jsx("div",{className:"chatbot__resize-handle chatbot__resize-handle--sw",onMouseDown:F=>C(F,"sw")}),i.jsx("div",{className:"chatbot__resize-handle chatbot__resize-handle--w",onMouseDown:F=>C(F,"w")})]}),i.jsxs("div",{className:"chatbot__header",children:[i.jsxs("div",{className:"chatbot__header-leading",children:[ge?i.jsx("button",{type:"button",className:"chatbot__header-btn chatbot__header-btn--menu chatbot__header-btn--leading",onClick:ve,"aria-label":e.historyOpen?pe:Se,"aria-expanded":e.historyOpen,children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[i.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),i.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),i.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18"})]})}):null,i.jsxs("div",{className:"chatbot__header-title",children:[i.jsx("span",{children:ee}),D&&wn(r==null?void 0:r.planName)?i.jsx("span",{className:"chatbot__header-pro","data-testid":"chatbot-pro-badge",children:i.jsx(Ri,{color:"dark",size:"small",type:"counter",children:s.formatMessage({id:"chatbot.header.proBadge"})})}):null]})]}),i.jsxs("div",{className:"chatbot__header-controls",children:[e.useAgUI&&!ge&&i.jsx("button",{type:"button",className:"chatbot__header-btn chatbot__header-btn--menu",onClick:()=>k(F=>!F),"aria-label":y?re:de,"aria-expanded":y,children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[i.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6"}),i.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12"}),i.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18"})]})}),i.jsx("button",{className:"chatbot__header-btn chatbot__header-btn--new",onClick:Ve,"aria-label":Y,title:Y,children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),i.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}),!e.useAgUI&&i.jsx("button",{className:"chatbot__header-btn chatbot__header-btn--feedback",onClick:Ge,"aria-label":he,title:he,children:i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})})}),e.useAgUI&&i.jsx("button",{className:"chatbot__header-btn chatbot__header-btn--export",onClick:$e,disabled:ye===0,"aria-label":g,t
52itle:ye===0?ce:g,children:i.jsx("span",{className:"icon i20 export-active-icon","aria-hidden":"true"})}),!e.useAgUI&&i.jsx("button",{className:"chatbot__header-btn chatbot__header-btn--maximize chatbot__header-btn--desktop-only",onClick:M,"aria-label":T?b:ae,title:T?b:ae,children:T?i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("polyline",{points:"4 14 10 14 10 20"}),i.jsx("polyline",{points:"20 10 14 10 14 4"}),i.jsx("line",{x1:"14",y1:"10",x2:"21",y2:"3"}),i.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]}):i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"})})}),i.jsx("button",{type:"button",className:`chatbot__close-btn ${e.useAgUI?"chatbot__close-btn--v2":""}`,onClick:()=>e.closeChat("panel"),"aria-label":te,title:te,children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]}),e.useAgUI&&!ge&&i.jsx(af,{isOpen:y,onClose:()=>k(!1)}),ge&&e.historyOpen?i.jsx(mf,{}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"chatbot__messages","data-testid":"chatbot-messages-scroll",children:[!e.useAgUI&&e.currentProgress&&i.jsxs("div",{className:"chatbot__progress-banner","aria-live":"polite","aria-busy":"true",children:[i.jsx("div",{className:"chatbot__progress-spinner"}),i.jsx("span",{children:U()})]}),z&&i.jsx(of,{promptDescriptors:B,descriptionMessageId:D?"chatbot.emptyState.descriptionPlatform":"chatbot.emptyState.description",onPromptClick:F=>P(F)}),e.messages.map((F,le)=>{const oe=e.useAgUI&&le===e.messages.length-1&&F.sender==="bot"&&(F.awaitingRunFinish||!F.citationsFinalized);return i.jsx(Yo,{message:F,onFeedback:Pe,feedbackLoading:e.feedbackSubmitting,activeTurnSteps:oe?e.progressHistory:null,activeTurnPhase:oe?e.turnPhase:null},F.id)}),e.isTyping&&i.jsx("div",{className:"chat-message chat-message--bot",children:i.jsx("div",{className:"chat-message__bubble",children:i.jsxs("div",{className:"chat-typing-indicator",children:[i.jsx("span",{className:"chat-typing-indicator__dot"}),i.jsx("span",{className:"chat-typing-indicator__dot"}),i.jsx("span",{className:"chat-typing-indicator__dot"})]})})}),i.jsx("div",{ref:l})]}),i.jsx("div",{className:"chatbot__input-container",children:i.jsx(Jp,{onSend:P,disabled:Q,prefillMessage:e.lastUserMessagePrefill,prefillRevision:e.prefillRevision,onClearPrefill:e.clearRetryPrefill})}),i.jsx("div",{className:"chatbot__footer","data-testid":"chatbot-footer",children:e.useAgUI?D?i.jsx($,{id:"chatbot.footer.disclaimerPlatform",values:{trimbleAi:F=>i.jsx("a",{href:gf,target:"_blank",rel:"noopener noreferrer",className:"chatbot__footer-link",children:F})}}):i.jsx($,{id:"chatbot.footer.disclaimerV2"}):i.jsx($,{id:"chatbot.footer.disclaimer"})})]}),i.jsx(Zp,{}),i.jsx(ef,{})]})})}),yf=Le(()=>{const{chatStore:e}=Me(),t=e.isInitializing;E.useEffect(()=>{(async()=>{try{await e.loadCurrentConversationId(),await e.loadConversationFromSession()}catch{xa(()=>{e.isInitializing=!1})}})()},[]);const n=`chat-container${e.useAgUI?" chat-container--agui-v2":""}${t?" chat-container--loading":""}`;return i.jsx("div",{className:n,children:i.jsx(bf,{})})}),vi="modus-checkbox-wrapper-overrides",Qo=({label:e="",checked:t=!1,onCheckboxClick:n=()=>{},className:r="",disabled:o=!1,size:a="medium",indeterminate:s=!1,shadowLabelFontSize:l=""})=>{const c=E.useRef(null);return E.useEffect(()=>{const u=c.current,d=u==null?void 0:u.shadowRoot;if(!d)return;let h=d.getElementById(vi);h||(h=document.createElement("style"),h.id=vi,d.appendChild(h));const f=l?`label, .label, .label-container, .label-container label, [class*="label"] { 53 font-size: ${l} !important; 54 }`:"";h.textContent=` 55 input[type='checkbox'].checkbox:focus { 56 outline: none !important; 57 } 58 ${f} 59 `},[l]),i.jsx(wa,{ref:c,className:r,disabled:o,label:e,checked:t,onCheckboxClick:n,size:a,indeterminate:s})};Qo.propTypes={label:j.string,disabled:j.bool,checked:j.bool,className:j.string,onCheckboxClick:j.func,size:j.oneOf(["small","medium"]),indeterminate:j.bool,shadowLabelFontSize:j.string};
59const xf=window.appdata,wf=xf.worksmanager_eula_version,Ai=Object.freeze({accepted:Symbol("ACCEPTED"),notAccepted:Symbol("NOT_ACCEPTED"),expired:Symbol("EXPIRED")}),kf=({appStore:e,userStore:t})=>{var I,O,T;const n=E.useMemo(()=>new ka,[]),[r,o]=E.useState(!1),[a,s]=E.useState(!1),[l,c]=E.useState(!0),u=E.useRef(null),d=e.localeMessages["common.continue"]??"",h=e.localeMessages["common.logout"]??"",f=e.localeMessages["common.enduserlicenseagreement"]??"",p=e.localeMessages["common.licenseagreement"]??"",m=e.localeMessages["common.agreementtoproceed"]??"",y=E.useCallback(async L=>{try{await t.addUserEulaStatus(L)}catch{return}},[t]);E.useEffect(()=>{var L;if((L=t.me)!=null&&L.userId&&e.features.eulaModal){const D=t.me.userId,B=t.me.eulaStatus,C=n.get(`eulaversion_${D}`);B===Ai.accepted.description?(o(!1),C&&n.remove(`eulaversion_${D}`,{path:"/"})):B===Ai.notAccepted.description&&C===wf?(o(!1),y(t.me.userId),n.remove(`eulaversion_${D}`,{path:"/"})):o(!0)}},[n,e.features.eulaModal,(I=t.me)==null?void 0:I.userId,(O=t.me)==null?void 0:O.accounts,(T=t.me)==null?void 0:T.eulaStatus,y]);const k=()=>{var L;va(t.me),y((L=t.me)==null?void 0:L.userId),o(!1)},w=()=>{Ca(t.me),Sa.logout()},v=L=>{s(L.target.checked)},x=()=>{const L=u.current;L&&Math.abs(L.scrollHeight-L.scrollTop-L.clientHeight)<5&&c(!1)};return r&&i.jsx(qt,{isOpen:r,headerText:f,acceptButtonText:d,primaryButtonDisabled:!a,declineButtonText:h,backdrop:"static",onDecline:w,onAccept:k,onClose:w,hideClose:!0,children:i.jsxs("div",{className:"eula-modal-container",children:[i.jsxs("div",{className:"eula-modal-content",ref:u,onScroll:x,children:[i.jsxs("div",{className:"content",children:[i.jsx("h1",{className:"content__title",children:"Trimble Offering Terms"}),i.jsx("p",{className:"content__subtitle",children:"(For Software and Subscriptions)"}),i.jsxs("p",{className:"content__subtitle1",children:["Version 3.1 (Last updated: October 7, 2023)",i.jsx("br",{}),i.jsx("a",{href:"https://www.trimble.com/downloads/4k2ZyRPJhe4RJsxTEkbAfU/eeaa8ea61e1911b280a17e14a18610f6/Trimble-Offering-Terms-v3.1-2023-10-7.pdf",target:"_blank",rel:"noreferrer",children:"Trimble Offering Terms v3.1"}),i.jsx("i",{children:"(Last updated: October 7,2023)"})]})]}),i.jsxs("div",{className:"content__body",children:[i.jsxs("p",{children:["These Trimble Offering Terms (the ",i.jsx("b",{children:'"Agreement"'}),") are entered into by and between Trimble and Customer. Certain capitalized terms are defined in Section 1 (Definitions), and others are defined contextually in the Agreement."]}),i.jsx("p",{children:i.jsx("b",{children:"BY INDICATING ACCEPTANCE OF THE AGREEMENT OR INSTALLING, ACCESSING OR USING THE OFFERING, CUSTOMER AGREES TO BE LEGALLY BOUND BY THE TERMS AND CONDITIONS OF THE AGREEMENT. IF CUSTOMER DOES NOT AGREE TO THE AGREEMENT, CUSTOMER MUST NOT INSTALL, ACCESS OR USE THE OFFERINGS."})}),i.jsx("p",{children:i.jsx("b",{children:"Notwithstanding anything to the contrary herein, if Customer has executed a separate signed agreement with Trimble which expressly governs use of the Offering, the terms of that agreement shall supersede the terms of the Agreement, and Customer shall have no rights under the Agreement either during or after the term of such other written agreement."})}),i.jsxs("p",{children:[i.jsx("b",{children:"Purchase from Reseller. IF CUSTOMER (1) HAS ORDERED THE OFFERING THROUGH A RESELLER, (2) HAS NOT SEEN THE AGREEMENT PRIOR TO ORDERING THE OFFERING FROM THE RESELLER, AND (3) NOW DOES NOT AGREE TO THE AGREEMENT, THEN CUSTOMER MAY RETURN THE OFFERING TO THE RESELLER FOR A FULL REFUND, PROVIDED CUSTOMER (A) HAS NOT INSTALLED, ACCESSED, OR USED THE OFFERING AND (B) RETURNS THE OFFERING WITHIN 14 DAYS OF THE INITIAL ORDER."}),"Otherwise, Customer's use of the Offering is governed by the terms of the Agreement as modified by Section 9.3 (Purchase from Reseller) below."]}),i.jsxs("p",{children:[`The Agreement consists of the terms and conditions set forth below, any applicable Supplemental Terms, any applicable Support Terms, and the Order. If Customer is an individual accessing or using the Offer
59ing on behalf of an entity, Customer represents that he or she is authorized to accept the Agreement on behalf of such entity, and all references to "Customer" reference such entity. Any conflict or inconsistency will be resolved in the following order of precedence: (1) the Order, (2) the Supplemental Terms, (3) the Support Terms, and (4) the body of the Agreement. The Agreement will govern Customer's initial Order and as any renewals thereof (unless different terms are`,i.jsx("br",{}),"specified upon renewal)."]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"1. Definitions"}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:'1.1. "Affiliate"'}),` means an entity that, directly or indirectly, owns or controls, is owned or controlled by, or is under common ownership or control with a party, where "ownership" means the direct or indirect ownership of more than fifty percent (50%) of an entity's outstanding voting rights or other equivalent voting interests.`]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.2. "Anonymized Data"'})," means any data collected in connection with the Offering (including Customer Data) that has been aggregated and/or de-identified in such a manner that neither Customer nor any of its Authorized Users or any other individual can be identified from the data when it is shared outside of Trimble or its Affiliates."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.3. "Authorized User"'})," means any employee of Customer or third-party user authorized by Customer to access and use the Offerings on Customer's behalf in accordance with the Agreement, including, without limitation, Section 7.5 (Third-Party Access)."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.4. "Correction Services"'})," means subscription-based services that provide GNSS position correction data."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.5. "Concurrent User"'})," means any type of Authorized User authorized by Customer to access and use the Offering on Customer's behalf simultaneously at a given point in time."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.6. "Customer"'})," is the entity or person that or who has downloaded, accessed, or otherwise procured the Offering."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.7. "Customer Data"'})," means any information, documents, materials, or other data of any type that is input by or on behalf of Customer into the Offering or that is created or generated by Customer through Customer's use of the Offering, including without limitation information or data that is submitted manually by Authorized Users or through a Third-Party Platform. For clarity, Customer Data expressly excludes Usage Data."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.8. "Dispute(s)"'})," means any dispute, claim, or controversy arising from or related to the Agreement."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.9. "Documentation"'})," means Trimble's then-current usage guidelines, standard technical documentation, acceptable use policies, support policies, service level commitments, or other policies referenced in the Agreement."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.10. "High Risk Activities"'})," means any mission critical, hazardous, strict liability, or other activity(ies) where use or failure of the Offering could lead to death, personal injury, or physical or environmental damage. Examples of High Risk Activities include, but are not limited to: aircraft or other modes of human mass transportation, nuclear or chemical facilities, life support systems, implantable medical equipment, motor vehicles, autonomous vehicles, air traffic control, emergency services, or weaponry systems. High Risk Activities do not include utilization of Offering for administrative purposes, to store configuration data, engineering and/or configuration tools, or other non-control applications, the failure of which would not result in death, personal injury, or physical or environmental damage. These non-controlling applications may communicate with the applications that perform the control, but must not be directly or indirectly responsible for the control function."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.11. "Intellectual Property Rights"'})," means any and all right, title and interest in and to any and all trade secrets, patents, copyrights, service marks, trademarks, know-how, trade names, rights in trade dress and packaging, moral rights, rights of privacy, publicity, database r
59ights and similar rights of any type, including any applications, continuations or other registrations with respect to any of the foregoing, under the laws or regulations of any foreign or domestic governmental, regulatory or judicial authority, and the right to sue for, settle and release past, present and future infringement of any of the foregoing."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.12. "Law(s)"'})," means all applicable local, state/provincial, federal and international laws, rules, regulations, directives, ordinances and conventions, including, but not limited to, those related to data privacy and data transfer, international communications and export of technical or personal data."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.13. "License Keys"'})," means electronic passwords, authorization codes, or other enabling mechanisms provided for use with the Offering."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.14. "Licensed Software"'}),` means the object code form of Trimble's proprietary installed software product for deployment on premises or on a device, as well as any Documentation, maintenance releases, and features and functionality enhancements, and application programming interfaces ("APIs"), in each case as as may be made available pursuant to the Order. For clarity, Licensed Software excludes firmware.`]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.15. "Named User"'})," means any type of Authorized User designated by Customer by name or other identifier to access and use the Offering on Customer's behalf."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.16. "Order"'})," means any Trimble-issued entitlement confirmation or online order acknowledgment."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.17. "Offering"'})," means any Software or Subscription."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.18. "Prohibited Data"'})," means any (a) patient, medical, or other protected health information regulated by the Health Insurance Portability and Accountability Act (as amended and supplemented) (",i.jsx("b",{children:'"HIPAA"'}),"); (b) credit, debit, or other payment card data subject to the Payment Card Industry Data Security Standards (PCI DSS); (c) information subject to regulation or protection under the Children's Online Privacy Protection Act or Gramm-Leach Bliley Act; or (d) any other information which is regulated under Laws and is not required for use of the Offering for its intended purpose."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.19. "Provision Date"'})," means the date on which Trimble first provides access to the Offering. For a bundle comprised of multiple Offerings, the Provision Date will be the date on which the entire bundle becomes fully provisioned."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.20. "Reseller"'})," means an authorized dealer, distributor or reseller of Trimble."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.21. "Software"'})," means the Licensed Software and/or Software-as-a-Service specified on an Order."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.22. "Software-as-a-Service"'})," or ",i.jsx("b",{children:'"SaaS"'})," means a Trimble proprietary cloud service, as well as any Documentation, features and functionality enhancements, and application programming interfaces, in each case as may be made available pursuant to the Order."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.23. "Subscription"'})," means access to any Software, Support, Correction Services, content, data, or other information , in each case made available for the applicable Subscription Term(s)."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.24. "Supplemental Terms"'})," means the terms and conditions on Schedule 1, if any."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.25. "Support"'})," means support and/or maintenance for Offering, and as may be further described in the applicable Supplemental Terms, Documentation, or otherwise as specified by Trimble in writing."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.26. "Support Terms"'})," means the terms and conditions on ",i.jsx("u",{children:"Exhibit C."})]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.27. "Term"'})," means the applicable period set forth in the Order."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.28. "Third-Party Materials"'})," means any third-party data, content, or proprietary software. Third-Party Materials are not part of the Offer
59ing."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.29. "Trimble"'})," means (i) for purchases directly from Trimble: (A) Trimble Inc. or its Affiliate identified on the Order or SOW, or (B) if none is specified, the Trimble entity identified in ",i.jsx("u",{children:"Exhibit A"}),` (Trimble Entities; Governing Law and Venue) based on the Customer's location, and (ii) for purchases made through a Reseller located in the United States, "Trimble" means Trimble Inc., and for purchases made through a Reseller located outside the United States, "Trimble" means Trimble Europe B.V.`]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.30. "Trimble IP"'}),' means the Offering, Documentation, and any written and electronic materials, proprietary information, documentation, code, technology, systems, infrastructure, equipment, and trade secrets developed, provided or used by Trimble or its subcontractors to produce and provide the Offering together with all Intellectual Property Rights therein, together with all modifications, improvements, changes thereto or derivative works thereof, including without limitation: (a) proprietary electronic architecture and other non-literal elements of the Offering developed by Trimble, (b) functional and technical specifications and other technical, training, reference or service information, documentation and manuals and updates thereto, (c) APIs, customized applications and computer programs, (d) processes, methods, algorithms, ideas, and other "know how," (e) data and information provided or sourced by Trimble, (f) Offering which Customer has the right to use via a subscription, and (g) network equipment and architecture.']}),i.jsxs("li",{children:[i.jsx("b",{children:'1.31. "Usage Limitations"'}
59)," means Customer's authorized scope of use for the Offering as specified in the applicable Order, Supplemental Terms, or Documentation, which may include any user (e.g., Named User, Concurrent User, etc.), seat, copy, instance, data storage, CPU, computer, field of use, location, project, or other restrictions."]}),i.jsxs("li",{children:[i.jsx("b",{children:'1.32. "Usage Data"'})," means Trimble's technical logs, data, and learnings about Customer's use of the Offering, excluding Customer Data."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"2. Generally."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"2.1. Offerings."}),i.jsx("br",{}),"a) ",i.jsx("u",{children:"Subscriptions (other than Licensed Software)."}),"Customer may access and use the Subscriptions during the Subscription Term only for its internal business purposes in accordance with the Documentation, Usage Limitations, and the Agreement. Unless otherwise specified by Trimble, any Licensed Software provided with a Subscription is subject to the terms applicable to Licensed Software under the Agreement.",i.jsx("br",{}),"b) ",i.jsx("u",{children:"Licensed Software."})," Trimble hereby grants Customer a non-transferable, non-sublicensable, non-exclusive license, during the Term, to install, copy, and use the Licensed Software on systems or devices under Customer's control only for its internal business purposes in accordance with the Documentation, Usage Limitations, and the Agreement. Licensed Software is licensed, not sold. Any Licensed Software deployed through hosting services delivered by Trimble are subject to the terms and conditions applicable to Licensed Software."]}),i.jsxs("li",{children:[i.jsx("b",{children:"2.2."})," ",i.jsx("u",{children:"Authorized Users."})," Only Authorized Users may access or use the Offering. User IDs are granted to individual, named persons, and each Authorized User will keep login credentials confidential and not share them with anyone else. Customer is responsible for its Authorized Users' compliance with the Agreement and actions taken through their accounts. In the event an Authorized User is no longer authorized to use the Offering on Customer's behalf, Customer will promptly de-activate such Authorized User's access. Unless expressly permitted in the Order, Supplemental Terms, or Documentation, Customer may not transfer Authorized User status from one individual to another. Customer will promptly notify Trimble if it becomes aware that any of its Authorized User login credentials have been compromised."]}),i.jsxs("li",{children:[i.jsx("b",{children:"2.3."})," ",i.jsx("u",{children:"Restrictions."})," Customer will not (and will not permit, encourage, or assist anyone else to) do any of the following: (a) provide access to, distribute, sell, or sublicense the Offering to a third party; (b) use the Offering on behalf of, or to provide any product or service to, third parties; (c) use the Offering to develop a similar or competing product or service; (d) reverse engineer, decompile, disassemble, or seek to access the source code or non-public APIs to any element of the Offering, except to the extent expressly permitted by Law (and then only after providing prior written notice to Trimble); (e) modify or create derivative works of the Offering or copy any element of the Offering (other than in connection with making copies of Licensed Software authorized under the Agreement); (f) remove or obscure any proprietary notices in the Offering; (g) publish benchmarks or performance information about the Offering, except to the extent expressly permitted by Law; (h) interfere with the Offering's operation or its use by others, circumvent its access restrictions or, without the prior written permission of Trimble, conduct any security or vulnerability test of the Offering; (i) transmit any viruses or other harmful materials to the Offering; (j) submit to the Offering any information that is inappropriate, defamatory, obscene, salacious, or unlawful, or use the Offering to defame, harass, stalk, threaten, or otherwise violate the rights of others;
59 (k) use the Offering to advertise, offer to sell or buy goods, or otherwise for business promotional purposes; (l) for Licensed Software, unless expressly permitted in the Order, Supplemental Terms, or the Documentation, use or host any Licensed Software in a virtual server environment; or (m) for Corrections Services, re-broadcast the Corrections Services without the prior written consent of Trimble."]}),i.jsxs("li",{children:[i.jsx("b",{children:"2.4."})," ",i.jsx("u",{children:"Free Versions"}),"; ",i.jsx("u",{children:"Trials and Betas."}),i.jsx("b",{children:'"Free Versions"'})," means any Offering made available to Customer for use without a fee. ",i.jsx("b",{children:'"Trials and Betas"'}),"means any Offering or any features thereof made available on a evaluation or trial basis or as an alpha, beta, or early access offering, in any case free or otherwise. Unless otherwise set forth in the Documentation or the Agreement, Customer may only use Free Versions in a non-production environment and for non-commercial purposes, and Trials and Betas may only be used solely for Customer's internal evaluation to determine whether to purchase a license or subscription to the Offering. The evaluation term for Trials and Betas shall be 30 days unless otherwise designated by Trimble in writing. Free Versions and Trials and Betas are optional, and Trimble may cease making available such Offering at any time for any reason. Trials and Betas may be inoperable, incomplete, or include features that Trimble may never release, and their features and performance information are Trimble's Confidential Information.",i.jsx("b",{children:`Notwithstanding anything else in the Agreement: (a) Trimble has no obligation to retain Customer Data used with Free Versions and Trials and Betas; (b) Trimble provides the Free Versions and Trial and Betas "AS-IS" with no warranty, indemnity, service levels, or support; (c) Trimble's liability for Free Versions and Trials and Betas will not exceed US$50, and (d) either party may terminate access to a Free Version or Trial and Beta, for any reason or no reason, immediately upon written notice to the other party.`})]}),i.jsxs("li",{children:[i.jsx("b",{children:"2.5."})," ",i.jsx("u",{children:"Educational Versions."}),' For any version of the Offering designated as "educational," or a similar term, Customer may use the Offering solely for educational purposes - e.g., by an instructor or a student at an educational institution and while engaged in educational work. Such educational versions may not be used (a) by any other person; (b) by any educational institution for any non-educational purposes; or (c) for any for-profit purpose, including professional work or training offered for a fee, or by commercial entities.']}),i.jsxs("li",{children:[i.jsx("b",{children:"2.6."})," ",i.jsx("u",{children:"Delivery."})," Offering and License Keys, if any, will be delivered by electronic means unless otherwise specified on the applicable Order. Delivery is deemed to occur on the date on which the Offering and License Key, if any, are first made available to Customer."]}),i.jsxs("li",{children:[i.jsx("b",{children:"2.7."})," ",i.jsx("u",{children:"Offering Activation and Metering"}),";",i.jsx("u",{children:"Audits."}),i.jsx("br",{}),"(a) Offering may gather and transmit to Trimble license usage, compliance, and activation data. Customer will not disable, modify, or interfere with the operation of any such functionality of the Offering. Trimble may use the foregoing information to validate the authenticity of Authorized Users, to confirm Customer's compliance with the Agreement, to register the Offering, to monitor and validate compliance with Usage Limitations, for license metering, and to protect Trimble against unlicensed or illegal use of the Offering.",i.jsx("br",{}),"(b) Upon Trimble's written request, Customer shall certify in writing that its use of the Offering is in full compliance with the Agreement (including any Usage Limitations). In addition to the other license compliance monitoring rights in the Agreement, Trimble, or its authorized representative, may, upon prior reasonable notice of at least ten (10) days, inspect and audit Customer's records and use of the Offer
59ing to confirm Customer's compliance with the Agreement. All such inspections and audits will be conducted during regular business hours and in a manner that does not unreasonably interfere with Customer's business activities. Customer is responsible for such audit costs only in the event the audit reveals that the use is not in accordance with the Usage Limitations or other licensed scope of use and for unpaid fees. Customer shall promptly pay all unpaid fees."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"3. Data Usage and Ownership."}),i.jsx("ul",{children:i.jsx("li",{children:"(a) Ownership. Except for Trimble's limited rights set forth in the Agreement, as between the parties, Customer retains all Intellectual Property Rights in Customer Data. Trimble owns Intellectual Property Rights in Anonymized Data and Usage Data. (b) Limited Usage Rights. Customer hereby grants to Trimble and its Affiliates the non-exclusive, worldwide, irrevocable, royalty-free right: (i) to use Customer Data during the Term to provide the Offering, Support, and Services to Customer; (ii) to use and disclose Customer Data as otherwise permitted pursuant to the Agreement or any written consent or instructions of Customer; and, (iii) subject to Trimble's confidentiality obligations in Section 15 (Confidentiality) and all applicable Data Protection Legislation, to use Customer Data in perpetuity to develop, maintain, and improve the Offer
59ing and any other products, software, and services of Trimble or its Affiliates, including, without limitation, analytics, model training, and machine learning. (c) Customer will not have access to Customer Data after termination or expiration of the Term, unless otherwise indicated in the Order, Supplemental Terms, or the Documentation, or the parties agree otherwise in writing. (d) In the event of any conflict between the terms of Section 15 (Confidentiality) and this Section 3 (Data Usage and Ownership), the terms of this Section 3 (Data Usage and Ownership) will control."})})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"4."})," ",i.jsx("u",{children:"Personal Information"}),"; ",i.jsx("u",{children:"Data Protection."}),"The following section applies if Customer is an entity.(a) This Section 4 (Personal Information; Data Protection) applies if Customer is a legal person (i.e., a business or legal entity). All Laws relating to the protection of privacy and data protection are referred to as",i.jsx("b",{children:'"Data Protection Legislation". "Personal Information"'})," is defined as in the Applicable Data Protection Legislation, or if no definition is provided, any personally identifiable information which is either (a) provided by Customer or on its behalf, or (b) automatically collected through the Offering on Customer's behalf. ",i.jsx("b",{children:'"Applicable"'}),", in this context, means the Data Protection Legislation applicable to Customer at Customer's principal place of business or to Trimble at Trimble's principal place of business, and such Laws that the parties mutually agree apply.",i.jsxs("ul",{children:[i.jsx("li",{children:"(b) Each party will comply with all Applicable requirements of the Data Protection Legislation. This Section 4 (Personal Information; Data Protection) is in addition to, and does not relieve, remove or replace, a party's obligations or rights under the applicable Data Protection Legislation."}),i.jsx("li",{children:"(c) The parties acknowledge that: (a) when performing its obligations under the Agreement, Trimble processes Personal Information on Customer's behalf, except for user registration and software licensing and usage data, for which Trimble acts as responsible party, and (b) the Personal Information may be transferred or stored, and/or accessed from outside of the country where Customer's principal place of business is located in order to provide the Offering and Trimble's other obligations under the Agreement."}),i.jsx("li",{children:"(d) Customer will ensure that it has all necessary appropriate consents and notices in place to enable (a) lawful transfer of the Personal Information to Trimble for the duration and purposes of the Agreement and (b) Trimble to lawfully use, process and transfer the Personal Information in accordance with the Agreement, including on Customer's behalf."}),i.jsxs("li",{children:["(e) If the processing of Personal Information by Trimble is subject to the General Data Protection Regulation ((EU) 2016/679) or the Data Protection Act 2018 of the United Kingdom, then, in addition, at the written request of Customer, the parties will execute an applicable data processing addendum, available at ",i.jsx("a",{className:"custom-url",href:"https://www.trimble.com/privacy/DPA-TI-EuroSubs",target:"_blank",rel:"noreferrer",children:"https://www.trimble.com/privacy/DPA-TI-EuroSubs"})," (or any successor url). Transfers of Personal Information from Trimble entities located in Europe, acting as data exporter, to Trimble entities in the USA, acting as data importer, are governed, for the benefit of Customer, by the Standard Contractual Clauses available at the same url or upon written request to Trimble."]}),i.jsxs("li",{children:["(f) If the processing of Personal Information by Trimble is subject to US data protection laws, rules or regulations, then the Customer US Data Processing Addendum for Customer Personal Information (available at ",i.jsx("a",{className:"custom-url",href:"https://dl.trimble.com/www/us_dpa_customer.pdf",target:"_blank",rel:"noreferrer",children:"https://dl.trimble.com/www/us_dpa_customer.pdf"}
59),"Â (or any successor url) is herein incorporated by reference."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"5. Customer Obligations."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"5.1."})," ",i.jsx("u",{children:"Dependencies and Compatibilities."}),i.jsx("br",{}),'(a) The Offering may (i) require certain dependencies, including, without limitation, internet connection, electronic communications, hardware, data connections, operating systems, third-party products and services, other Trimble products and services, satellite signals, etc. (collectively, "Dependencies"), and (ii) allow compatibility and/or interoperability with other products or services made available by Trimble, Customer, or a third party (collectively, "Compatibilities").',i.jsx("br",{}),"(b) Dependencies and Compatibilities may require payment of a separate fee and are governed by their respective terms of service, end user license agreement, or other agreement, and not by the Agreement. Unless otherwise expressly agreed upon by the parties in writing, Customer is responsible for all Dependencies and Compatibilities. Trimble may modify the Offering from time to time, and Trimble does not guarantee that the Offer
59ing will continue to operate or be compatible with any Dependencies or Compatibilities. Trimble makes no warranty or guarantee, and will have no liability or obligations under the Agreement, with respect to any Dependencies, Compatibilities, or other factors outside of Trimble's control.",i.jsx("br",{}),"(c) Customer represents and warrants that it shall, and shall require any provider of any Dependencies and Compatibilities to: (i) establish and maintain industry standard technical, organizational, physical, and administrative safeguards designed to ensure the security and integrity of the Offering; and (ii) comply with the security controls, configuration requirements, and access limitations imposed by Trimble, as may be modified by Trimble from time to time.",i.jsx("br",{}),"(d) If Customer enables Dependencies or Compatibilities with the Offering, Trimble may access and exchange Customer Data with the Dependencies or Compatibilities on Customer's behalf. Trimble will have no liability or obligations under the Agreement with respect to how any Dependencies or Compatibilities uses or processes Customer Data. If Trimble hosts any Dependency or Compatibilities at Customer's request, Customer represents and warrants to Trimble that Customer has all rights necessary. Trimble may charge additional fees for such hosting services."]}),i.jsxs("li",{children:[i.jsx("b",{children:"5.2."})," ",i.jsx("u",{children:"No Prohibited Data."})," Customer will not use the Offering with Prohibited Data. Customer acknowledges that the Offer
59ing is not intended to meet any legal obligations for these uses, including HIPAA requirements, and that Trimble is not a Business Associate as defined under HIPAA."]}),i.jsxs("li",{children:[i.jsx("b",{children:"5.3."})," ",i.jsx("u",{children:"Customer Data."})," Customer is responsible for its Customer Data, including its content, accuracy, and compliance with Laws. Customer represents and warrants that it has made all disclosures and has all rights, consents, and permissions necessary to use its Customer Data with the Offering and grant Trimble the rights in Section 3 (Data Usage and Ownership), all without violating or infringing Laws, third-party rights (including intellectual property, publicity, or privacy rights), or any terms or privacy policies that apply to its Customer Data. If Customer utilizes data fields available in the Offering to store data not required for the normal use and operation of the Offering for their intended purpose, Customer agrees that Trimble is not responsible for, and will not be liable in any manner for such data, and Customer assumes all risks associated with, and agrees to hold Trimble harmless from and against any and all claims, losses, damages, liabilities, and expenses (including reasonable attorneys' fees) related to or arising from, Customer's use of data fields to store such data."]}),i.jsxs("li",{children:[i.jsx("b",{children:"5.4."})," ",i.jsx("u",{children:"High Risk Activities."})," Customer will not use the Offering for High Risk Activities. Customer acknowledges that the Offer
59ing is not intended to meet any legal obligations for High Risk Activities. Trimble and its suppliers specifically disclaim any responsibility for, and will not be liable in any manner arising from, any use of the Offering in connection with High Risk Activities."]}),i.jsxs("li",{children:[i.jsx("b",{children:"5.5."})," ",i.jsx("u",{children:"Compliance with Laws."})," Customer shall comply with all Laws in connection with its use or receipt of the Offering."]}),i.jsxs("li",{children:[i.jsx("b",{children:"5.6."})," ",i.jsx("u",{children:"License Compliance."})," Customer shall promptly notify Trimble if Customer become aware of (i) any breach of confidentiality obligations regarding the Offering, or (ii) any infringement (whether actual or alleged) of Trimble's intellectual property rights in the Offering, or (iii) any unauthorized use of the Offering by any person, and provide reasonable assistance to Trimble in connection with any suit or proceeding relating to such events."]}),i.jsxs("li",{children:[i.jsx("b",{children:"5.7."})," ",i.jsx("u",{children:"Usage Limitations."})," Customer will comply with all Usage Limitations. If Customer exceeds the Usage Limitations during the Term, Trimble may invoice Customer for the use that exceeded the applicable Usage Limitations at Trimble's then-current list price, and Customer shall pay in accordance with the Agreement. The parties may also agree on a Usage Limitation adjustment, in which case Customer must sign a new Order and pay the applicable fees."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"6."})," ",i.jsx("u",{children:"Suspension of Access."})," Trimble may suspend Customer's access to Offering, without liability, and in whole or in part, if (a) Customer breaches any Usage Limitations, Section 2.2 (Authorized Users), 2.3 (Restrictions) or Section 5 (Customer Obligations); (b) Customer's account is five (5) business days or more overdue; or (c) immediately if Customer or any of its Authorized Users' acts or omissions threaten the integrity, availability, or security of the Offering or Trimble's systems, products, or infrastru
59cture (provided Trimble will use commercially reasonable efforts to provide Customer with advance notice of such suspension where Trimble determines exigent circumstances do not exist). Trimble will lift such suspension once the related issue or failure is cured to Trimble's reasonable satisfaction. Fees will continue to apply during the suspension period. Customer may be prohibited from entering new Customer Data or processing or accessing existing Customer Data and data reports during the suspension period. If Customer attempts to access or manipulate Customer Data utilizing third-party software during suspension, Trimble disclaims and Customer holds Trimble harmless from any responsibility or liability relating to lost or altered Customer Data or related damages."]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"7. Certain Features."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"7.1."})," ",i.jsx("u",{children:"Third-Party Materials."}),` The Offering may provide Customer with access to Third-Party Materials. To the extent specified by Trimble (including in any Supplemental Terms or Documentation), use of the Third-Party Materials may be subject to additional terms or restrictions ("Third-Party Terms"). Customer is solely responsible for its compliance with any Third-Party Terms, and failure to comply with such terms may result in termination of Customer's right to access any features of the Offering that utilize such Third-Party Materials. If no Third-Party Terms are specified, Customer may use Third-Party Materials solely in support of Customer's authorized use of the Offering in accordance with the Agreement.`]}),i.jsxs("li",{children:[i.jsx("b",{children:"7.2."})," ",i.jsx("u",{children:"Offering Content."}),` "Offering Content" shall be any Trimble IP or Third-Party Materials made available as data or information through the Offering, whether included as part of the Offering or as a separate subscription. Any Offering Content that is Trimble IP will be deemed part of the Offering. Any Offering Content that is Third-Party Materials shall be subject to any applicable Third-Party Terms. If no Third-Party Terms apply, then unless otherwise authorized by Trimble in writing, such Third-Party Materials may only be used solely for Customer's internal purposes during the Term and only when accessed pursuant to a manual Authorized User request. Customer will not: (i) access, extract, or download any Third-Party Materials, or portions thereof, in batch or en masse by any means; (ii) use any device, software, or routine to bypass any hardware or software that prohibits volume requests for information; (iii) sell, offer to sell, rent, sublicense, or transfer any copies of theThird-Party Materials, or portions thereof, to a third party or allow a third party to use the Third-Party Materials; (iv) use the Third-Party Materials to develop services or products for sale or include any portion of the Third-Party Materials in any product or service; (v) use any portion of the Third-Party Materials to create a competitive service, product, or technology; (vi) recreate the Third-Party Materials or create otherwise a separate database or other repository of Third-Party Materials; (vii) use Third-Party Materials to train, augment, or correct another database or information repository; (viii) unless otherwise specified in the Documentation, permit any individual other than an Authorized User to access or use the Offering Content and any derivative thereof, or or (ix) make any portion of the Third-Party Materials available to the public in any manner. Upon notice from Trimble and/or any termination or expiration of the Term, Customer will immediately cease using and delete/destroy all electronic and physical copies of Third-Party Materials.`]}),i.jsxs("li",{children:[i.jsx("b",{children:"7.3."})," ",i.jsx("u",{children:"Open Source."}),' The Offering may incorporate third-party open source software ("Open Source"), as listed in the Documentation or otherwise made available by Trimble. To the extent the terms of the Open Source license prohibit the terms of the Agreement from applying to the Open Source, the terms of the Open Source license will apply to the Open Source on a stand-alone basis instead of the Agreement.']}),i.jsxs("li",{children:[i.jsx("b",{children:"7.4."}),i.jsx("u",{children:"Security for SaaS or Hosting Services for Licensed Software."}),"This Section 7.4 (Security for SaaS or Hosting Services for Licensed Software) applies to Software that are SaaS or hosting services for Licensed Software. During the Term, Trimble or its third party hosting provider(s) will use commercially reasonable efforts to establish and maintain reasonable administrative, physical, and technical safeguards designed to protect (
59a) the security, confidentiality, and integrity of Customer Data; (b) against anticipated threats or hazards to the security, confidentiality, and integrity of Customer Data; (c) against unauthorized access to or use of Customer Data; and (d) against unlawful processing, accidental destruction, or loss of Customer Data. In the event Trimble is not in breach of the foregoing obligations and an unauthorized third party nonetheless gains access to the Customer Data, such disclosure of Customer Data in such circumstances shall not be a breach of Section 15 (Confidentiality). In the event of any conflict between the terms of Section 15 (Confidentiality) and this Section 7.4 (Security for SaaS or Hosting Services for Licensed Software), the terms of this Section 7.4 (Security for SaaS or Hosting Services for Licensed Software) will control."]}),i.jsxs("li",{children:[i.jsx("b",{children:"7.5."})," ",i.jsx("u",{children:"Third-Party Access."}),i.jsx("br",{}),"(a) Contractors and Affiliates. Unless prohibited by Trimble in the Order, Documentation, any Supplemental Terms, or otherwise by Trimble in writing, Authorized Users may include individuals who are contractors or consultants of Customer or employees, contractors, or consultants of its Affiliates.",i.jsx("br",{}),"(b) Other Third-Parties. If expressly authorized by Trimble in the Documentation or any Supplemental Terms, the Offering may allow Customer to invite other third parties to become Authorized Users and/or access Customer Data.",i.jsx("br",{}),"(c) Generally. Customer authorizes Trimble to share Customer Data with such third parties. Customer is solely responsible for any and all acts or omissions of any such third parties. Such third parties are not intended third-party beneficiaries under the Agreement. Trimble shall have no liability for any act or omission of any such third party, including by way of access or use of Customer Data. For clarity, as between Customer and any such third parties, any data or other information uploaded by such third party to the Offering on Customer's behalf will be deemed Customer Data of Customer.",i.jsx("br",{}),'(d) Customer as a Third-Party. In the event that Customer is invited to access Offering as a third party, any data or other information uploaded by Customer on behalf of such third party shall be deemed "Customer Data" of such third party.']})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"8. Support."})," If Customer is eligible for Support and pays any applicable fees, Trimble will make such Support available in accordance with the Support Terms or as Trimble may otherwise expressly provide in writing. Unless otherwise set forth in writing by Trimble, Support is not available for Free Versions or Trials and Betas."]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"9. Certain Commercial Terms."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"9.1."})," ",i.jsx("u",{children:"Payment Terms; Invoicing."}),i.jsx("br",{}),"(a) Fees are as set forth in the Order. Fees for renewal Subscription Terms are at Trimble's then-current rates, regardless of any discounted pricing in a prior Order. Fees do not include applicable sales taxes, value added taxes, goods and services taxes, export or import charges, transportation or insurance charges, customs and duty fees, personal property taxes, surcharges and fees, or similar charges, all of which are Customer's responsibility to pay. Unless Customer provides Trimble with direct payment authority or a valid exemption certificate for the appropriate jurisdiction, Customer will pay Trimble all such taxes, charges, and fees invoiced by Trimble in connection with the Offering. Customer will pay any foreign exchange transaction fees and any foreign exchange profits or losses incurred on such transactions.",i.jsx("br",{}),"(b) Trimble will issue invoices in accordance with the billing frequency stated in the Order. Customer consents to the receipt of invoices electronically at the email address(es) it provided to Trimble for billing purposes, and accepts such invoices as if received by mail. Customer is responsible for maintaining current email address(es) with Trimble. Trimble's transmission of an invoice to the provided billing email address(es) (regardless of whether actually received by Customer) shall be considered delivery of that invoice by Trimble. Trimble's failure to issue an invoice in accordance with this Section 9.1 (Payment Terms; Invoicing) shall not be deemed to be a waiver by Trimble of its right to re
59ceive payment pursuant to the Agreement, but Customer shall not be obligated to make such payment until an invoice for such payment is issued by Trimble to Customer.",i.jsx("br",{}),"(c) Unless otherwise set forth in the Order, payments are due net 30 days from the date of invoice. Customer will make payment in the currency indicated on the Order. Trimble is entitled to offset payments against prior debt balances in Customer's account.",i.jsx("br",{}),"(d) Subject to any Laws to the contrary or as otherwise expressly stated in the Agreement, payments are not refundable. Delinquent payments not subject to a bona fide dispute will bear interest at the lesser of 1.5% per month or the maximum rate permitted by applicable Law. Customer will be liable for all costs of collection of past due amounts (including attorneys' fees)."]}),i.jsxs("li",{children:[i.jsx("b",{children:"9.2."})," ",i.jsx("u",{children:"Third-Party Application Stores."}),i.jsx("br",{}),"(a) ",i.jsx("u",{children:"Purchase from Application Store."}),` If Customer obtained the Offering through a third-party application store, marketplace or other site or service (each, an "Application Store"), such Application Store is considered a "Reseller" under the Agreement, and Customer's use of the Offering is subject to Section 9.3 (Purchase from Reseller) of the Agreement. Except as expressly set forth in Sections 9.3 (Purchase from Reseller) and 9.2(c) (Apple-Specific Terms), all fees are non-refundable once paid. Customer's download of the Offering may be subject to other terms as specified by the operator of the Application Store from which Customer downloaded the Offering.`,i.jsx("br",{}),"(b) ",i.jsx("u",{children:"In App Purchases."}),` The Offering may offer Customer the opportunity to purchase additional functions and/or features from within the application (an "In App Purchase"). All billing and transaction processes are handled by the provider of the Application Store (the "App Store Provider") from whose platform Customer downloaded the Offering and are governed by the App Store Provider's terms and conditions. If Customer has any payment related issues with In-App Purchases, then Customer must contact the App Store Provider directly.`,i.jsx("br",{}),"(c) ",i.jsx("u",{children:"Apple-Specific Terms."}),` If Customer downloaded the Offering from Apple Inc.'s ("Apple") Application Store, the following terms are part of the Agreement. The Agreement is between Customer and Trimble, and not with Apple. However, as required by Apple, Apple and its subsidiaries will be third-party beneficiaries of the Agreement and will have the right (and will be deemed to have accepted the right) to enforce the Agreement against Customer as a third-party beneficiary. To the maximum extent permitted by Law, Apple will have no warranty obligation with respect to the Offering, and, as between Apple and Trimble, any other claims, losses, liabilities, damages, costs, or expenses attributable to a failure to conform to a warranty will be Trimble's responsibility. Apple has no obligation whatsoever to furnish any maintenance or support services with respect to the Offering. As between Trimble and Apple, Trimble is solely responsible for the Offer
59ing and for addressing any claims Customer or any third parties have about the Offering or Customer's possession or use of the Offering, including without limitation (i) product liability claims; (ii) any claim that the Offering fails to conform to any applicable legal or regulatory requirement; and (iii) claims arising under consumer protection or similar legislation. In the event of any third-party claim that the Offering or Customer's possession or use of the Offering infringes that third party's intellectual property rights, Apple will not be responsible for the investigation, defense, settlement, or discharge of such claim.`]}),i.jsxs("li",{children:[i.jsx("b",{children:"9.3."})," ",i.jsx("u",{children:"Purchase from Reseller."})," If Customer obtained the Offering through a Reseller, the terms of this Section 9.3 (Purchase from Reseller) are applicable and will prevail in event of any conflict with any other provisions of the Agreement:",i.jsx("br",{}),"a) The Agreement is between Trimble and Customer and governs all access and use of the Offering by Customer. Resellers are not authorized to modify the Agreement or make any promises or commitments on Trimble's behalf, and Trimble is not bound by any obligations to Customer other than as set forth in the Agreement. Trimble is not party to (or responsible under) any separate agreement between Customer and the Reseller and is not responsible for the Reseller's acts, omissions, products or services. For Subscriptions, the applicable Offering list price for the applicable Subscription Term will be deemed the amount paid or payable by Customer to Trimble under the Agreement for purposes of Section 13 (Limitations of Liability).",i.jsx("br",{}),"b) Instead of paying Trimble, Customer will pay the applicable amounts to the Reseller, as agreed between Customer and the Reseller. If the Reseller fails to pay Trimble the applicable fees for Customer's use of the Offering, Trimble reserves the right to terminate the applicable Term for such Offering and all related rights granted hereunder. Customer may purchase renewal Terms for the Offer
59ing under the Agreement directly from Trimble pursuant to an Order.",i.jsx("br",{}),"c) Customer's order details (e.g., the applicable Offering, the Term, Usage Limitations, Authorized Users, and any additional scope of use restrictions) will be as stated in the entitlement confirmation issued by Trimble, and the Reseller is responsible for the accuracy of any such information as communicated to Trimble. Unless otherwise designated by Trimble, the Reseller is solely responsible for delivering to Customer any Offering, and Trimble has no liability for the Reseller's failure to deliver.",i.jsx("br",{}),"d) The Reseller may fulfill Trimble's warranty obligations under Section 10.1 (Limited Warranty) on behalf of Trimble, to the extent authorized by Trimble in writing. Notwithstanding the foregoing, the Reseller has no authority to make any statements, representations, warranties or commitments on Trimble's behalf, and any such statements, representations, warranties or commitments are null and void. If the Reseller agrees to provide front-line support or professional services to Customer, Trimble has no responsibility for such Reseller-provided support or professional services.",i.jsx("br",{}),"e) In the event Customer is entitled to a refund under the Agreement, Customer must request such refund through the Reseller. Any request sent directly to Trimble may be redirected to the Reseller. Trimble will refund any applicable fees to the Reseller and the Reseller will be solely responsible for refunding such fees to Customer, unless otherwise specified by Trimble. Trimble will have no further liability to Customer in the event the Reseller fails to refund such fees to Customer."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"10. Warranties and Disclaimers."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"10.1."})," ",i.jsx("u",{children:"Limited Warranty."}),' Subject to the Agreement and any mandatory Laws to the contrary, Trimble warrants to Customer that during the Warranty Period, the Offering will perform materially as described in the Documentation. The "Warranty Period" is (a) 90 days for Licensed Software licensed on a perpetual basis, and (b) for the duration of the applicable Subscription Term, for any Subscriptions. Notwithstanding the foregoing, Trimble makes no warranties with respect to Correction Services, which are provided as-is and as-available.']}),i.jsxs("li",{children:[i.jsx("b",{children:"10.2."})," ",i.jsx("u",{children:"Warranty Remedy."}),i.jsx("br",{}),"(a) If the Offering fails to conform to Section 10.1 (Limited Warranty) during the Warranty Period, Customer may make a reasonably detailed warranty claim within 30 days of discovering the issue. For any such claims reported by Customer within such period that Trimble determines are valid, Trimble will correct such non-conformity by issuing corrected instructions, a restriction, or a bypass, or by replacing the Offering, at Trimble's option. Subject to any mandatory Laws to the contrary, these procedures are Customer's exclusive remedy, and Trimble's entire liability, for the failure of the Offering to conform to the warranty in Section 10.1 (Limited Warranty).",i.jsx("br",{}),"(b) The foregoing limited warranty only applies if and to the extent that (i) any Offering associated with the warranty is properly and correctly installed, configured, interfaced, maintained, stored, and operated in accordance with the Documentation, and (ii) any Offering associated with the warranty is not modified or misused. The foregoing limited warranty does not apply to (1) issues caused by unauthorized use or modifications; (2) unsupported or unauthorized versions of any Offering; (3) operating the Offering under any specification other than, or in addition to, the Documentation; (4) issues in or resulting from Dependencies, Compatibilities, or third-party systems, products, or services; or (5) Free Versions, Trials and Betas or other similar versions."]}),i.jsxs("li",{children:[i.jsx("b",{children:"10.3."})," ",i.jsx("u",{children:"Disclaimers."}),i.jsx("br",{}),i.jsx("b",{children:`(a) Generally. THE LIMITED WARRANTY TERMS, IF ANY, EXPRESSLY SET FORTH IN ANY APPLICABLE SUPPLEMENTAL TERMS ARE IN LIEU OF ALL OBLIGATIONS OR LIABILITIES ON TRIMBLE'S PART ARISING OUT OF, OR IN CONNECTION WITH, THE OFFERING, AT ANY TIME EITHER DURING OR AFTER EXPIRATION OF THE APPLICABLE WARRANTY, AND STATE TRIMBLE'S ENTIRE LIABILITY AND CUSTOMER'S EXCLUSIVE REMEDIES RELATING TO THEM. EXCEPT FOR ANY LIMITED WARRANTY TERMS EXPRESSLY PROVIDED IN ANY APPLICABLE SUPPLEMENTAL TERMS, THE OFFERING IS PROVIDED "AS-IS'' AND WITHOUT EXPRESS OR IMPLIED WARRANTY OR CONDITION OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, SATISFACTORY QUALITY, TITLE, AND NONINFRINGEMENT. SUPPLEMENTAL TERMS MAY HAVE ADDITIONAL DISCLAIMERS. SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS ON DURATION OR THE EXCLUSION OF AN IMPLIED WARRANTY, SO THE ABOVE LIMITATION(S) MAY NOT APPLY OR FULLY APPLY TO CUSTOMER.`}),i.jsx("br",{}),i.jsx("b",{children:"(b) Additional Disclaimers. TRIMBLE MAKES NO EXPRESS WARRANTY THAT CUSTOMER'S USE OF THE OFFERING WILL BE UNINTERRUPTED, ERROR-FREE, OR FREE OF VIRUSES OR OTHER MALWARE OR PROGRAM LIMITATIONS; THAT TRIMBLE WILL REVIEW CUSTOMER DATA FOR ACCURACY; OR THAT TRIMBLE WILL MAINTAIN CUSTOMER DATA OR OTHER DATA WITHOUT LOSS. TRIMBLE IS NOT LIABLE FOR DELAYS, FAILURES, OR PROBLEMS INHERENT IN USE OF THE INTERNET, SATELLITES, ELECTRONIC COMMUNICATIONS, OR OTHER
59SYSTEMS OUTSIDE TRIMBLE'S CONTROL. TRIMBLE WILL NOT BE LIABLE IN ANY MANNER FOR THE OUTPUT OBTAINED THROUGH USE OF THE OFFERING OR CUSTOMER'S RELIANCE ON SUCH OUTPUT. CUSTOMER IS RESPONSIBLE FOR THE SUPERVISION, MANAGEMENT, AND CONTROL OF CUSTOMER'S USE OF THE OFFERING. THIS RESPONSIBILITY INCLUDES THE DETERMINATION OF APPROPRIATE USES FOR THE OFFERING AND THE SELECTION OF THE OFFERING TO ACHIEVE INTENDED RESULTS. ANY FORMS, POLICIES, OR OTHER MATERIALS PROVIDED BY TRIMBLE THROUGH THE OFFERING OR DOCUMENTATION ARE NOT INTENDED AND SHOULD NOT BE RELIED UPON AS LEGAL ADVICE OR LEGAL OPINION. CUSTOMER SHOULD CONSULT ITS OWN LEGAL COUNSEL REGARDING THE USE OF ANY SUCH MATERIALS. CUSTOMER IS ALSO RESPONSIBLE FOR ESTABLISHING THE ADEQUACY OF INDEPENDENT PROCEDURES FOR TESTING THE RELIABILITY AND ACCURACY OF ANY OUTPUT OF THE OFFERING. CUSTOMER MAY HAVE OTHER STATUTORY RIGHTS, BUT ANY STATUTORILY REQUIRED WARRANTIES WILL BE LIMITED TO THE SHORTEST LEGALLY PERMITTED PERIOD."}),i.jsx("br",{}),"(c) ",i.jsx("u",{children:"Correction Services Disclaimers."})," Customer acknowledges that the Correction Services and related network access are subject to transmission limitations caused by a variety of factors such as atmospheric conditions, topographical obstructions, limitations or lack of coverage of the underlying carrier service and other natural or manmade conditions. Additionally, motor and ignition noise, metal shielding, and interference by users of the same or adjacent radio channels may limit or interfere with Correction Services. Trimble is not responsible for the operation or failure of operation of GNSS satellites or the availability of GNSS satellite signals.",i.jsx("br",{}),"(d) ",i.jsx("u",{children:"Third-Party Materials."}),' Third-Party Materials are provided "AS IS" and Customer assumes all risk and liability regarding any use of (or results obtained through) Third-Party Materials. Trimble and its suppliers make no warranty or guarantee with respect to any Third-Party Materials, including regarding their accuracy or continued availability or compatibility.',i.jsx("br",{}),"(e) ",i.jsx("u",{children:"Dependencies and Compatibilities."})," Trimble makes no warranty or guarantee with respect to any Dependencies, Compatibilities, or other factors outside of Trimble's control, including their continued availability or compatibility.",i.jsx("br",{}),"(f) ",i.jsx("u",{children:"Prohibited Data."})," Trimble and its suppliers specifically disclaim any responsibility for, and will not be liable in any manner arising from, any use of the Offering in connection with Prohibited Data."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"11. Term and Termination."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"11.1."})," ",i.jsx("u",{children:"Perpetual License."})," If Customer purchases a perpetual license to Licensed Software, Customer's license to the Licensed Software will continue in perpetuity subject to the terms and conditions of the Agreement. Support for Licensed Software is purchased separately unless otherwise indicated by Trimble in writing or on an Order."]}),i.jsxs("li",{children:[i.jsx("b",{children:"11.2."})," ",i.jsx("u",{children:"Subscriptions."}),i.jsx("br",{}),"(a) ",i.jsx("u",{children:"Subscription Term"}),"; ",i.jsx("u",{children:"Renewals."}),' If Customer purchases access to a SaaS or a license to Licensed Software for a limited period of time, the duration of the initial term and any renewals are as set forth in the Order (collectively, the "Subscription Term(s)"). Notwithstanding anything to the contrary in the Order, the start date for each Subscription Term for each Offering will begin on the Provision Date for that Offering. For clarity, each Offering may have a different Provision Date. Unless otherwise set forth in the Order or as provided by Trimble in writing, each Subscription Term will renew for successive periods of the same duration unless either party gives the other party at least 30 days notice of non-renewal before the expiration of the then-current Subscription Term.',i.jsx("br",{}),"(b) ",i.jsx("u",{children:"Additional Subscriptions."}),` If Customer previously purchased one or more Subscriptions for a particular Offering ("Existing Subscription(s)") and subsequently purchases one or more additional Subscriptions (for any Offering)
59while the Existing Subscription(s) is in effect (the "Additional Subscription(s)"), the duration of the Subscription Term for the Additional Subscription will be as set forth in the Order. Unless otherwise set forth by Trimble in writing, all Customer's Subscriptions shall have the same end date and Trimble may invoice all fees for all such Subscriptions on a single invoice.`]}),i.jsxs("li",{children:[i.jsx("b",{children:"11.3."})," ",i.jsx("u",{children:"Termination."})," Either party may terminate the Agreement (including all Orders) if the other party (a) fails to cure a material breach of the Agreement (including a failure to pay fees) within 30 days after notice, (b) ceases operation without a successor or (c) seeks protection under a bankruptcy, receivership, trust deed, creditors' arrangement, composition or comparable proceeding, or if such a proceeding is instituted against that party and not dismissed within 60 days."]}),i.jsxs("li",{children:[i.jsx("b",{children:"11.4."})," ",i.jsx("u",{children:"Effect of Termination."})," Upon expiration or termination of the Agreement or the Order, Customer's right to use the Offering will cease and Customer will immediately cease any and all use of and access to the Offering and will delete (or, upon request, return) all copies of any Offering. At the disclosing party's request upon expiration or termination of the Agreement, the receiving party will delete all of the disclosing party's Confidential Information (excluding Customer Data, which is addressed in Section 3 (Date Usage and Ownership)). Customer Data and other Confidential Information may be retained in the receiving party's standard backups after deletion but will remain subject to the Agreement's confidentiality restrictions."]}),i.jsxs("li",{children:[i.jsx("b",{children:"11.5."})," ",i.jsx("u",{children:"Survival."})," These Sections survive expiration or termination of the Agreement: 1 Definitions, 2.3 (Restrictions), 3 (Data Usage and Ownership), 5 (Customer Obligations), 9.1 (Payments Terms; Invoicing), 10.3 (Disclaimers), 11.4 (Effect of Termination), 11.5 (Survival), 12 (Intellectual Property Rights), 13 (Limitations of Liability), 14 (Indemnification), 15 (Confidentiality), and 16 (General Terms). Except where an exclusive remedy is provided, exercising a remedy under the Agreement, including termination, does not limit other remedies a party may have."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"12. Intellectual Property Rights."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"12.1."})," ",i.jsx("u",{children:"Trimble IP."})," As between the parties, except for any limited usage rights set forth in any Supplemental Terms, Trimble and its suppliers have and will retain all Intellectual Property Rights in and to Trimble IP and all copies, modifications, and derivative works thereof. No Intellectual Property Rights are granted by Trimble to Customer except as expressly provided under the Agreement."]}),i.jsxs("li",{children:[i.jsx("b",{children:"12.2."})," ",i.jsx("u",{children:"Feedback."}),` Customer may from time to time provide suggestions, comments, or other feedback (collectively, "Feedback") to Trimble with respect to the Offering. Both parties agree that all Feedback is and will be given entirely voluntarily, and shall not be considered Confidential Information of Customer. Customer shall not provide any Feedback that is subject to license terms that seek to require any of Customer's products, technology, service, or documentation incorporating or derived from such Feedback, or any of Customer's intellectual property to be licensed or otherwise shared with any third party. Customer hereby grants to Trimble and its Affiliates a nonexclusive, worldwide, perpetual, irrevocable, transferable, sublicensable, royalty-free, fully paid up license to use and otherwise exploit the Feedback.`]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"13. Limitations of Liability."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"13.1. Waiver; Liability Cap."}),i.jsx("br",{}),i.jsx("b",{children:"(a) EXCEPT FOR EXCLUDED CLAIMS, (i) NEITHER PARTY (OR ITS SUPPLIERS) SHALL BE LIABLE FOR DAMAGES FOR LOSS OF PROFIT OR REVENUE, DATA THAT IS
59LOST OR CORRUPTED, FAILURE OF SECURITY MECHANISMS, INTERRUPTION OF BUSINESS, LOSS OF GOODWILL, OR ANY SPECIAL, INCIDENTAL, RELIANCE, INDIRECT, PUNITIVE, OR CONSEQUENTIAL DAMAGES OF ANY KIND; AND (ii) EACH PARTY'S (AND EACH OF ITS SUPPLIER'S) ENTIRE LIABILITY FOR ANY AND ALL DAMAGES ARISING OUT OF OR RELATED TO THE AGREEMENT WILL NOT EXCEED IN AGGREGATE THE AMOUNTS PAID OR PAYABLE BY CUSTOMER TO TRIMBLE DURING THE PRIOR 12 MONTHS UNDER THE AGREEMENT FOR THE APPLICABLE OFFERING(S) GIVING RISE TO THE LIABILITY."}),i.jsx("br",{}),i.jsx("b",{children:`(b) "EXCLUDED CLAIMS" MEANS (i) CUSTOMER'S PAYMENT OBLIGATIONS UNDER THE AGREEMENT, (ii) DAMAGES PAYABLE TO A THIRD PARTY (I.E., NOT AN INDEMNIFIED PARTY) EITHER AWARDED BY A COURT OF COMPETENT JURISDICTION OR INCLUDED IN A SETTLEMENT AGREED TO BY THE INDEMNIFYING PARTY, WHICH DAMAGES ARE SUBJECT TO A PARTY'S INDEMNIFICATION OBLIGATIONS IN SECTION 14 (INDEMNIFICATION), (iii) ANY BREACHES OF SECTIONS 2.2 (AUTHORIZED USERS), 2.3 (RESTRICTIONS) OR SECTION 5 (CUSTOMER OBLIGATIONS), AND (iv) ANY ADDITIONAL "EXCLUDED CLAIMS" EXPRESSLY IDENTIFIED IN ANY APPLICABLE SUPPLEMENTAL TERMS.`}),i.jsx("br",{}),i.jsx("b",{children:"(c) THE ABOVE LIMITATIONS OF LIABILITY WILL APPLY TO THE GREATEST EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF SUCH DAMAGES COULD HAVE BEEN FORESEEN OR IF A PARTY HAS BEEN APPRAISED OF THE POSSIBILITY OF SUCH DAMAGES, AND REGARDLESS OF WHETHER SUCH DAMAGES ARE ARISING IN BREACH OF ANY ONE OR MORE WARRANTIES, NON-CONFORMITY, IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, BREACH OF ANY STATUTORY DUTY, OR OTHERWISE."}),i.jsx("br",{}),i.jsx("b",{children:"(d) SOME JURISDICTIONS DO NOT ALLOW A LIMITATION OF LIABILITY FOR DEATH, PERSONAL INJURY, FRAUDULENT MISREPRESENTATIONS, CERTAIN INTENTIONAL OR NEGLIGENT ACTS, VIOLATION OF SPECIFIC STATUTES, OR THE LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES. IN SUCH AN EVENT, THE FOREGOING LIMITATION(S) WILL NOT APPLY TO THE EXTENT PROHIBITED BY LAW."})]}),i.jsxs("li",{children:[i.jsx("b",{children:"13.2. Nature of Claims and Failure of Essential Purpose."}),"The waivers and limitations in this Section 13 (Limitations of Liability) are agreed-upon allocations of risk constituting in part the consideration for Trimble's performance under the Agreement, and will survive and apply even if any limited remedy in the Agreement fails of its essential purpose."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"14. Indemnification."}),` Customer will defend, indemnify, and hold harmless Trimble from and against any and all third-party claims, costs, damages, losses, liabilities, and expenses (including reasonable attorneys' fees and costs) arising out of or in connection with (a) use or modification of any Offering in breach of the Agreement, or in any manner not authorized by the Agreement, (b) Customer's violation of Laws or the rights of a third party, (c) any Customer Data, Dependencies, or Compatibilities, or (d) Customer's breach of Sections 2.2 (Authorized Users), Sections 2.3 (Restrictions), 5 (Customer Obligations), 7.1 (Third-Party Materials), 7.2 (Offering Content), or 9.2 (Third-Party Application Stores) (each, a "Claim"). Trimble will give Customer prompt written notice of any Claim and will cooperate in relation to the Claim at Customer's expense. Customer will have the exclusive right to control and settle any Claim, except that Customer may not settle a Claim without Trimble's prior written consent (not to be unreasonably withheld) if the settlement requires Trimble to admit any liability, pay any amounts, or take any action or refrain from taking any action (other than ceasing use of infringing materials). Trimble may participate in the defense of any Claim at its expense.`]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"15. Confidentiality."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"15.1."})," ",i.jsx("u",{children:"Definition."}),i.jsx("b",{children:'"Confidential Information"'})," means information disclosed to the receiving party under the Agreement that is designated by the disclosing party as proprietary or confidential or that should be reasonably understood to be proprietary or confidential due to its nature and the circumstances of its disclosure. Trimble's Confidential Information includes, without limitation, the terms and conditions of the Agreement, and any technical or performance information about the Offer
59ing, including the Documentation."]}),i.jsxs("li",{children:[i.jsx("b",{children:"15.2."})," ",i.jsx("u",{children:"Obligations."}),` As a receiving party, each party (a) will protect the confidentiality of the disclosing party's Confidential Information using the same degree of care it uses for its own information of like importance (but not less than reasonable care), (b) will not share the disclosing party's Confidential Information with third parties except as permitted in the Agreement or with the disclosing party's prior written or electronic consent, and (c) will only use Confidential Information to fulfill its obligations and exercise its rights in the Agreement. The receiving party may disclose Confidential Information to its employees, agents, Affiliates, contractors, and other representatives (collectively, "Representatives") having a legitimate need to know (including, for Trimble, its subcontractors), provided (i) the Representatives are subject to confidentiality obligations no less protective than those in this Section 15 (Confidentiality), and (ii) the receiving party is responsible for any breach of this Section 15 (Confidentiality) by the acts or omissions of its Representatives.`]}),i.jsxs("li",{children:[i.jsx("b",{children:"15.3."})," ",i.jsx("u",{children:"Exclusions."})," These confidentiality obligations do not apply to information that the receiving party can document (a) is or becomes public knowledge through no fault of the receiving party or its Representatives, (b) it rightfully knew or possessed on a non-confidential basis prior to receipt under the Agreement, (c) it rightfully received from a third party without obligation of confidentiality, or (d) it independently developed without using the disclosing party's Confidential Information. In addition, see Section 3 (Data Usage and Ownership) and 7.4 (Security for SaaS or Hosting Services for Licensed Software)."]}),i.jsxs("li",{children:[i.jsx("b",{children:"15.4."})," ",i.jsx("u",{children:"Remedies."})," Unauthorized use or disclosure of Confidential Information may cause substantial harm for which remedies at law (e.g., monetary damages) alone are an insufficient remedy. In the event of such actual or threatened breach by a party, the other party may seek injunctive relief, in addition to other available rights and remedies, for breach or threatened breach of this Section 15 (Confidentiality), without proof of actual damages or the requirement of posting a bond or other security"]}),i.jsxs("li",{children:[i.jsx("b",{children:"15.5."})," ",i.jsx("u",{children:"Required Disclosures."})," Nothing in the Agreement prohibits either party from making disclosures if required by Law or government or court order, provided (if permitted by Law) it notifies the other party in advance and reasonably cooperates in any effort by the other party to obtain confidential treatment."]})]})]}),i.jsxs("div",{className:"content__list",children:[i.jsx("b",{children:"16. General Terms."}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("b",{children:"16.1. Assignment."})," Trimble may assign the Agreement upon notice to Customer. Customer may not assign or transfer the Agreement (by operation of law or otherwise) without the prior written consent of Trimble. Any non-permitted assignment is void. The Agreement will bind and inure to the benefit of each party's permitted successors and assigns."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.2. Amendments."})," Trimble may amend the Agreement from time to time with written notice to Customer. Such amendments shall take effect upon the next renewal, if any, of the Agreement, unless Trimble indicates an earlier effective date. If Trimble requires amendments with an earlier effective date and Customer objects in writing, then Trimble may permit such amendments to take effect upon the next renewal; provided, however, if Trimble declines to permit such later effective date, Customer's exclusive remedy is to terminate the Agreement with notice to Trimble, in which case Trimble will provide Customer a refund of any applicable pre-paid fees for the terminated portion of the current Term. To exercise this termination right, Customer must notify Trimble of its objections within thirty (30) days after Trimble's notice of the amended Agreement. Once the amended Agreement takes effect, Customer's continued use of the Offer
59ing constitutes its acceptance of the modifications. Notwithstanding the foregoing, Trimble may modify Documentation upon written notice to Customer to reflect new features or changing practices, provided that the modifications will not materially decrease Trimble's overall obligations with respect to such Offering."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.3. Waiver and Severability."})," No waiver of any provision or breach of the Agreement (a) will be effective unless made in writing, or (b) will operate as or be construed to be a continuing waiver of such provision or breach. In the event any portion of the Agreement is held to be invalid or unenforceable, such portion will be construed as nearly as possible to reflect the original intent of the parties, or if such construction cannot be made, such provision or portion thereof will be severable from the Agreement, provided that the invalidity, illegality, or unenforceability in whole or in part of any provision does not affect the validity of other provisions."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.4. Force Majeure."})," Neither party will be liable for any default, delay, or non-performance of its obligations under the Agreement (except for payment obligations) due to causes beyond its reasonable control, including, without limitation, strikes, blockades, war, terrorism, riot, internet or utility failures, governmental orders or actions, national or regional emergency, pandemics, or natural disasters, provided that such party promptly notifies the other in writing of such occurrence and uses commercially reasonable efforts to resume performance of its affected obligations as soon as feasible. Delays or failures that are excused as provided in this Section 16.4 (Force Majeure) will result in automatic extensions of dates for performance for a period of time equal to the duration of the events excusing such delay or failure."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.5. Notices."})," Any notice or other communication given by either party to the other regarding the Agreement will be deemed given and served when personally delivered or delivered by reputable international courier requiring signature for receipt addressed to the party at its notice address. Notice will be deemed effective upon delivery or refused delivery attempt. Either party may change its notice address by written notice to the other. Customer's notice address will be the address appearing on the Order or SOW. Trimble's notice address will be the applicable address on",i.jsx("u",{children:"Exhibit A"})," (Trimble Entities; Governing Law; Exclusive Venue/Jurisdiction), or if the Trimble entity is not listed there, then on the Order. In addition, any valid notice to Trimble shall include a required copy to: Trimble Inc., Attn: General Counsel - Important Legal Notice, 510 De Guigne Drive, Sunnyvale, CA 94085, USA. Trimble may send operational notices to Customer by email or through the Offering, including, without limitation, modifications of the Agreement or Documentation, suspension, collection, and termination notices related to overdue fees."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.6. Export Control."}
59)," Customer acknowledges that the Offering is subject to export restrictions by the United States government and import restrictions by certain foreign governments. Customer will not, and will not allow any third party to, remove or export from the United States or allow the export or re-export of any part of the Offering or any direct product thereof: (a) into (or to a national or resident of) any embargoed or terrorist-supporting country; (b) to anyone on the U.S. Commerce Department's Table of Denial Orders or U.S. Treasury Department's list of Specially Designated Nationals; (c) to any country to which such export or re-export is restricted or prohibited, or as to which the United States government or any agency thereof requires an export license or other governmental approval at the time of export or re-export without first obtaining such license or approval; or (d) otherwise in violation of any export or import restrictions, Laws of any United States or foreign agency or authority. Customer warrants that it is not located in, under the control of, or a national or resident of any such prohibited country or on any such prohibited party list. The Offering is further restricted from being used for the design or development of nuclear, chemical, or biological weapons or missile technology, or for terrorist activity, without the prior permission of the United States government. Customer will defend, indemnify, and hold Trimble harmless against any liability (including attorneys' fees) arising out of Customer's failure to comply with the terms of this Section. Customer's obligations under this Section 16.6 (Export Control) will survive the termination of the Agreement for any reason whatsoever."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.7. Anti-Corruption Compliance."})," Each party, and any third party acting on its behalf, will comply with all applicable United States and international anti-corruption and anti-bribery laws and regulations, including, without limitation, the U.S. Foreign Corrupt Practices Act, the U.K. Bribery Act, and others (collectively,",i.jsx("b",{children:'"Anti-Corruption Laws"'}),"). Each party, and any third party acting on its behalf, will not directly or indirectly offer, promise, or give any payment or anything of value to a government official, or any other individual or entity, where the intent is to improperly influence any act or decision of the government official, or other individual or entity, to obtain or retain business or some other benefit or commercial advantage for either party. Each party, and any third party acting on its behalf, also will not solicit or accept any sort of payment or anything of value from anyone, where the intent is to improperly influence any acts of a party or any third party acting on its behalf."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.8. Governing Law and Venue."})," The sole and exclusive governing Law, jurisdiction, and venue for the Agreement and all Disputes shall be: (1) as set forth in the Order, if any, or (2) otherwise, as set forth on ",i.jsx("u",{children:"Exhibit A"}),"(Trimble Entities; Governing Law; Exclusive Venue/Jurisdiction), in each case to the exclusion of all others; provided that Trimble may elect to bring action in courts with jurisdiction for Customer's location. The United Nations Convention on Contracts for the International Sale of Goods and any conflicts of laws provisions giving rise to a different result do not apply. No Dispute may be brought by either party more than one (1) year after such Dispute accrued, except that an action for nonpayment may be brought within two (2) years after the due date. Each party hereby waives, to the maximum extent permitted by law, any objection, including any objection based on forum non conveniens, to the bringing of any such proceeding in such jurisdiction."]}),i.jsx("li",{children:i.jsx("b",{children:"16.9. WAIVER OF JURY TRIAL - UNITED STATES CLAIMS. FOR ANY CLAIM BROUGHT IN A STATE, FEDERAL, OR OTHER COURT IN ANY JURISDICTION WITHIN THE UNITED STATES, EACH PARTY IRREVOCABLY AND UNCONDITIONALLY WAIVES, TO THE FULLEST EXTENT PERMITTED BY LAW, ANY RIGHT IT MAY HAVE TO A TRIAL BY JURY IN ANY LEGAL ACTION, PROCEEDING, CAUSE OF ACTION, OR COUNTERCLAIM ARISING OUT OF OR RELATING TO THE AGREEMENT OR THE TRANSACTIONS CONTEMPLATED HEREBY; PROVIDED, HOWEVER, THAT THIS PROVISION SHALL NOT BE ENFORCED OR ENFORCEABLE TO THE EXTENT A WAIVER OF THE RIGHT TO A TRIAL BY JURY IS PROHIBITED BY, OR CONTRARY TO, THE PUBLIC POLICY OF THE STATE IN WHICH SUCH LEGAL ACTION, PROCEEDING, CAUSE OF ACTION, OR COUNTERCLAIM IS FILED."})}),i.jsxs("li",{children:[i.jsx("b",{children:"16.10. Region-Specific Terms."})," Additional terms and conditions for specified regions are as set forth in Exhibit B (Region-Specific Terms)."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.11. Publicity."})," Customer agrees that (a) Trimble may issue a press release in the form approved by the parties regarding the parties' entry into the Agreement, and (b) Trimble may i
59dentify Customer (including through use of its name and logo) as Trimble's customer, including on Trimble's website, and may include Customer in its customer list and marketing materials, but will cease this use upon Customer's written request."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.12. Headings; Language."})," The headings in the Agreement have been inserted for convenience only and shall have no substantive effect. The language of all parts of the Agreement shall in all cases be considered as a whole, according to its fair meaning, and not strictly for or against any of the parties. The parties hereby acknowledge and agree that the language of the Agreement shall be considered jointly drafted."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.13. Subcontractors."})," Trimble may use subcontractors in the performance of its obligations under the Agreement, and will be responsible for the acts and omissions of its subcontractors in their performance of Trimble's obligations in the Agreement."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.14. No Third-Party Beneficiaries."})," Except as may be expressly stated in any Supplemental Terms, there are no third-party beneficiaries under the Agreement."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.15. Official Language."})," The parties have specifically requested that the Agreement be drafted in English. Les parties ont spécifiquement demandé que cette entente soit rédigée en anglais. If there is a conflict between versions of the Agreement in any other language, the English language version controls."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.16. Independent Contractors."})," Each party is an independent contractor of, and is not an employee, agent, fiduciary, or authorized representative of, the other party."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.17. Entire Agreement."})," The Agreement sets forth the entire understanding between the parties in connection with its subject matter, and supersedes all prior or contemporaneous proposals, communications, agreements, negotiations, and representations, whether written or oral, regarding the subject matter thereof. Any additional, contrary, and/or pre-printed terms or conditions appearing on Customer's acceptance, orders, or associated purchase documentation are hereby rejected and will be of no effect."]}),i.jsxs("li",{children:[i.jsx("b",{children:"16.18. Government End-Users."}),` Elements of the Offering are commercial computer software. If the user or licensee of the Offering is an agency, department, or other entity of the United States Government, the use, duplication, reproduction, release, modification, disclosure, or transfer of the Offering or any related documentation of any kind, including technical data and manuals, is restricted by the terms of the Agreement in accordance with Federal Acquisition Regulation 12.212 for civilian purposes and Defense Federal Acquisition Regulation Supplement 227.7202 for military purposes. The Offering was developed fully at private expense. All other use is prohibited. Offering purchased or licensed under Trimble's United States General Services Administration ("GSA") Schedules are subject to all of the pricing and other terms and conditions described in the applicable GSA Schedule.`]})]})]}),i.jsxs("h3",{className:"content__secondary-title",children:["Schedule 1",i.jsx("br",{}),"Supplemental Terms"]}),i.jsx("h4",{className:"content__h4",children:"Exhibit A"}),i.jsxs("p",{children:["Please see any applicable terms at ",i.jsx("a",{className:"custom-url",href:"https://www.trimble.com/en/legal/offering-terms",target:"_blank",rel:"noreferrer",children:"https://www.trimble.com/en/legal/offering-terms"})," or a successor url."]}),i.jsx("div",{children:i.jsxs("table",{className:"content__table",children:[i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Customer Location*"}),i.jsx("th",{children:"Trimble Entity and Notice Address**"}),i.jsx("th",{children:"Governing Law"}),i.jsx("th",{children:"Exclusive Venue/Jurisdiction"})]})}),i.jsxs("tbody",{children:[i.jsxs("tr",{children:[i.jsx("td",{children:"United States"}),i.jsxs("td",{children:["Trimble Inc.",i.jsx("br",{}),"10368 Westmoor Drive",i.jsx("br",{}),"Westminster, CO 80021 USA"]}),i.jsx("td",{children:"State of Delaware"}),i.jsx("td",{children:"State and Federal Courts located in Wilmington, Delaware"})]}),i.jsxs("tr",{children:[i.jsx("td",{children:"Belgium"}),i.jsxs("td",{children:["Trimble Belgium BV,",i.jsx("br",{}),"Geldenaaksebaan 329 3001",i.jsx("br",{}),"Leuven, Belgium"]}),i.jsx("td",{children:"Belgium"}),i.jsx("td",{children:"Courts in Brussels, Belgium"})]}),i.jsxs("tr",{children:[i.jsx("td",{children:"Canada"}),i.jsxs("td",{children:["Trimble Canada Corporation",i.jsx("br",{}),"600-1741 Lower Water Street",i.jsx("br",{}),"Halifax, Nova Scotia B3J 0J2"]}),i.jsx("td",{children:"Province of Ontario, and the federal laws of Canada applicable therein"}),i.jsx("td",{children:"Provincial and federal courts located in Toronto, Ontario"})]}),i.jsxs("tr",{children:[i.jsx("td",{children:"France "}),i.jsx("td",{children:"Trimble France S.A.S. 1 quai Gabriel Péri Joinville-le-Pont, France 94340"}),i.jsx("td",{children:"France "}),i.jsx("td",{children:"Courts of Paris, France"})]}),i.jsxs("tr",{children:[i.jsx("td",{children:"Any other country or geography not specified above"}),i.jsx("td",{children:"Trimble Europe B.V. Industrieweg 187a, 5683 CC Best, The Netherlands"}),i.jsx("td",{children:"The Netherlands "}),i.jsx("td",{children:"Courts of Amsterdam, the Netherlands"})]})]})]})}),i.jsx("p",{children:"* Customer location is Customer's billing address specified on the Order, or if none, then the address provided by Customer to Trimble when registering its online account."}),i.jsx("p",{children:"** Addresses for Trimble entities not listed shall be as set forth on the Order or SOW. See additional required notice address for Trimble in Section 16.5 (Notices)."}),i.jsxs("h4",{className:"content__h4",children:["Exhibit B ",i.jsx("br",{}),"Region-Specific Terms"]}),i.jsxs("div",{className:"content__table-content",children:["Table of Contents",i.jsxs("ul",{children:[i.jsx("li",{children:"Australia"}),i.jsx("li",{children:"France"}),i.jsx("li",{children:"The Netherlands"})]})]}),i.jsxs("div",{className:"content__country",children:[i.jsxs("p",{children:["Australia ",i.jsx("br",{}
59),"For Customer who purchase Offering in Australia, the following provisions apply:"]}),i.jsx("p",{children:'(a) For the purposes of this section, "Australian Consumer Law" means the Australian Consumer Law set out at Schedule 2 to the Competition and Consumer Act 2010 (Cth), as amended from time to time, and "Non-excludable Condition" means the consumer guarantees, warranties, rights, or remedies under the Australian Consumer Law that cannot be limited, excluded, restricted, or modified, and to which Customer may be entitled.'}),i.jsx("p",{children:"(b) To the extent permitted by Law, Trimble's liability in relation to breach of any such Non-excludable Condition shall be limited, at its option, as follows: (i) in the case of the goods, to repairing or replacing the goods, supplying equivalent goods, or paying the costs of repairing or replacing the goods or acquiring equivalent goods; and (ii) in the case of the services, to re-supplying the services or paying the cost of re-supplying the services."}),i.jsx("p",{children:"(c) Nothing in the Agreement excludes, restricts or modifies any Non-excludable Condition."}),i.jsx("p",{children:"(d) Nothing in the Agreement is intended to derogate from Trimble's obligations under the Privacy Act 1988 (Cth) as amended from time to time."}),i.jsx("p",{children:`(e) Where Order(s) are a "Small Business Contract" within the meaning of the Australian Consumer Law: (i) Trimble shall not accelerate Customer's unbilled future fees under any Order(s); (ii) Customer's indemnification obligations under the Agreement are reduced to the extent Trimble's acts or omissions contributed to or caused the claims, costs, damages, losses, liabilities, and expenses suffered by Customer; (iii) Trimble's liability in relation to breach of any Non-excludable Condition will be an Excluded Claim; and (iv) No dispute or legal action arising under the Agreement may be brought by either party more than three years after such cause of action accrued.`})]}),i.jsxs("div",{className:"content__country",children:[i.jsxs("p",{children:["France",i.jsx("br",{}),"Section 9.1(c) is hereby amended and restated to read as follows:"]}),i.jsx("p",{children:"(c) Late payments will bear interest at the rate of 1.5% per month or the minimum rate allowed by Law (currently three (3) times the legal interest rate), whichever is higher, measured from the date on which the sums concerned became due until the date on which full payment is received. Collection fees of a minimum amount of 40 ⬠will be added in accordance with Article L. 441-10.II of the Commercial Code. Customer will be liable for all other costs of collection of past due amounts (including court costs and attorney's fees incurred by Trimble). If the Customer does not dispute an invoice amount in writing by the due date of the invoice, the Customer shall be deemed to have acknowledged the accuracy of such invoice and waived its right to dispute it. A dispute over part of an invoice or amount due shall entitle the Customer to withhold or delay payment of the disputed part only."}),i.jsx("p",{children:"The following is hereby added as Section 13.1 (e ):"}),i.jsx("p",{children:"(e) EACH PARTY HEREBY HAS AN OBLIGATION TO LIMIT THE DAMAGES IT MAY SUFFER IN THE EVENT OF A BREACH OF ITS OBLIGATIONS BY THE OTHER PARTY."})]}),i.jsxs("div",{className:"content__country",children:[i.jsxs("p",{children:["The Netherlands",i.jsx("br",{}),"The provisions of Section 11.3 (Termination) are the sole grounds for the termination of the Agreement, and to the extent permitted by Law, the right of Customer to rescind the Agreement and claim damages on the basis of statutory Law (including but not limited to sec. 6:265 Dutch Civil Code) is excluded."]}),i.jsx("p",{children:"THE LIMITATION OF LIABILITY IN SECTION 13 FOR A PERIOD OF 12 MONTHS EXPRESSLY INCLUDES ANY OBLIGATION TO PAY COMPENSATION UNDER A WARRANTY MENTIONED IN THESE TERMS OR RELATED CONTRACTS OR DOCUMENTS AND THE RESTITUTION OBLIGATIONS (ONDEDAANMAKINGSVERPLICHTINGEN) AND INDEMNIFY FOR DAMAGES. LIABILITY FOR DEATH OR PERSONAL INJURY SHALL NOT EXCEED EUR 1.250.000."}),i.jsx("p",{children:"The applicability of section 6:227b subsection 1 and section 6:227c subsection 1 of the Dutch Civil Code are excluded in any Agreement between Trimble and any person who is not a consumer."})]}),i.jsxs("h4",{className:"content__h4",children:["Exhibit C ",i.jsx("br",{}),"Support Terms"]}),i.jsxs("ul",{className:"content__support-terms",children:[i.jsx("li",{children:'1. Scope Provided that Customer has paid the applicable fees, Trimble shall provide the Support described
59in these Support Terms during the Maintenance Term (as defined below). The "Maintenance Term" shall be: (a) for Subscriptions, the applicable Subscription Term, and (b) for Support for Licensed Software licensed on a perpetual basis, the term specified in the Order, or if not specified, for a period of one (1) year.'}),i.jsx("li",{children:`2. Support During the applicable Maintenance Term, Trimble shall use reasonable efforts to correct or provide a workaround for any reproducible programming error in the Offering attributable to Trimble with a level of effort commensurate with the severity of the error, as reasonably determined by Trimble. Upon identification of any programming error, Customer shall promptly notify Trimble of such error and shall provide Trimble with enough information to reproduce the error, including a listing of output and any other data that Trimble may reasonably request in order to reproduce the error and operating conditions under which the error occurred or was discovered. Trimble shall not be responsible for correcting any errors not attributable to Trimble. For certain Offering, Trimble may provide additional or different support services or procedures as set forth in the applicable Documentation, support handbook, or other written documentation provided by Trimble, if any (collectively, the "Additional Support Documentation"). If there is any conflict between these Support Terms and such Additional Support Documentation with respect to the description of support services, requirements or procedures, the provisions of such Additional Support Documentation will prevail. Customer agrees and acknowledges that Trimble may use third parties to provide Support on its behalf. Customer expressly consents to Trimble permitting such third parties to access Customer's information and data to perform the Support for Customer.`}),i.jsx("li",{children:'3. Licensed Software Updates and Upgrades During the applicable Maintenance Term, Customer shall be entitled to receive all upgrades and updates to the Software that are publicly released by Trimble. The contents and timing of all upgrades and updates will be decided by Trimble in its sole discretion. Any such updates and upgrades will be deemed to be "Software" and licensed under the terms and conditions of the Agreement, including any applicable software end user terms or license agreement. Updates and upgrades exclude (a) new versions of the Software (e.g., a change to the left of the decimal in the version number [e.g., 1.x to 2.x] or otherwise designated by Trimble), and (b) any separate modules and other functionality for which Trimble charges a separate fee.'}),i.jsx("li",{children:"4. Limitations and Exceptions The following matters are not covered (and Trimble will not have any obligations with respect to such matters) pursuant to these Support Terms:"}),i.jsx("li",{children:"4.1. Any Offering for which applicable fees have not been paid;"}),i.jsx("li",{children:"4.2. Any problem resulting from the misuse, improper use, alteration, or damage of the Offering;"}),i.jsx("li",{children:"4.2. Any problem resulting from improper or inadequate installation, maintenance, or storage of the Offering;"}),i.jsx("li",{children:"4.3. Any problem caused by modifications of the Offering not made or authorized by Trimble;"}),i.jsx("li",{children:"4.4. Any problem resulting from any hardware or Offering in either case not developed or supported by by Trimble, including, without limitation: any computers, tablets, disk drives, operating systems, network hardware or software, database, or any other hardware or third-party software;"}),i.jsx("li",{children:"4.5. Any problem resulting from the combination of the Offering with other programming or equipment to the extent that such combination has not been approved by Trimble; and"}),i.jsx("li",{children:"4.6. Errors in any version of the Offering other than the most recent release, provided that Trimble will continue to provide Support for superseded releases for a reasonable period (not to exceed ninety (90) days)."}),i.jsx("li",{children:"Support excludes on-site visits, installation and training, file conversion, optional products and services, directories, consulting services, shipping charges, or any recommended hardware."}),i.jsx("li",{children:"5. Termination or Expiration Support will automatically terminate with respect to any Offering that is no longer licensed for use as a result of expiration or termination of the Agreement, or replacement of the applicable Offering with new releases."})]})]})]}),i.jsxs("div",{className:"eula-checkbox-container",children:[i.jsx(Ta,{text:m,position:"bottom",disabled:!l,children:i.jsx(Qo,{checked:a,disabled:l,onCheckboxClick:v})}),i.jsx("div",{className:"eula-checkbox-text",children:p})]})]})})},Tf=Oi(Ni("appStore","userStore"),Le)(kf),Cf=(e,t)=>
59{if(!e)return!1;const n=hr.utc(e).startOf("day"),r=hr.utc().startOf("day"),o=n.diff(r,"days");return o>=0&&o<=t},mt={PATH_FRAGMENT:"new"},Sf=E.lazy(()=>Xe(()=>import("./index-CTL0BCf5.js"),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43]))),Ei=E.lazy(()=>Xe(()=>import("./index-DMTZw_Ab.js"),__vite__mapDeps([44,1,2,45,10,7,6,8,11,12,13,14,15,46,47,48,49,9,16,23,24,50,18,51,30,39,52,25,26,17,4,53,54,55,56,20,21,22,27,28,29,31,32,33,40,41,42,57]))),vf=E.lazy(()=>Xe(()=>import("./index-s9K2Ix5W.js").then(e=>e.i),__vite__mapDeps([58,1,2,34,35,10,7,6,8,11,12,13,14,15,46,47,59,25,26,60,27,28,61,23,24,51,62,21,22,31,63,64,41,36,37,38,65]))),Af=E.lazy(()=>Xe(()=>import("./index-BWCfCWO8.js"),__vite__mapDeps([66,1,2,34,35,36,10,7,6,8,11,12,13,14,15,37,38,46,47,63,64,61,67,45,48,49,9,16,23,24,50,18,51,30,39,52,25,26,17,4,53,54,55,56,31,42,68]))),Ef=E.lazy(()=>Xe(()=>import("./index-CsuhkiD2.js"),__vite__mapDeps([69,1,2,48,70,6,7,8,9,10,11,12,13,14,15,16,34,35,36,37,38,18,71]))),jf=E.lazy(()=>Xe(()=>import("./index-DXdcnV-u.js"),__vite__mapDeps([72,1,2,34,35,14,11,7,73,74]))),If=E.lazy(()=>Xe(()=>import("./cesiumglobe-Bl2-Yv5N.js"),__vite__mapDeps([75,1,2,17,76,52,73,77,78,79,31,80,67,61,49,70,5,54,59,41,48,81,82])));class _f extends Lt.Component{constructor(t){super(t),this.state={loadGlobe:!1,showSubscriptionExpireAlert:!1,showsubscriptionclose:!1},this.closeAlert=this.closeAlert.bind(this),this.closeSubscriptionAlert=this.closeSubscriptionAlert.bind(this),this.closeButtonTimeout=null}async componentDidMount(){var n,r;this.mapviewerReaction=Ea(this.props.appStore,"mapViewer",o=>{o.newValue&&o.newValue.container&&this.setState({loadGlobe:!0})}),await this.props.userStore.init(),await this.props.featureManagementStore.init(),this.props.userStore.me.language&&this.props.languageProvider.changeLanguage(this.props.userStore.me.language),await this.props.featureManagementStore.setUserContext(this.props.userStore.me);const t=this.props.userStore.me.accounts;(t==null?void 0:t.length)===1?(await this.props.featureManagementStore.setAccountContext(t[0]),dr({email:this.props.userStore.me.email},{id:t[0].accountId,name:t[0].accountName})):dr({email:this.props.userStore.me.email}),await this.props.projectSettingsStore.initialize((r=(n=this.props.userStore.me.accounts)==null?void 0:n[0])==null?void 0:r.accountId),this.props.appStore.mapViewer&&!this.state.loadGlobe&&this.setState({loadGlobe:!0}),this.combinedReaction=ja(()=>this.props.tierManagementStore.endDate,o=>{this.updateAlertVisibility(o)},{fireImmediately:!0})}componentDidUpdate(t){var n,r;if(((n=t.location)==null?void 0:n.pathname)!==((r=this.props.location)==null?void 0:r.pathname)){const o=this.props.tierManagementStore.endDate;this.updateAlertVisibility(o)}}updateAlertVisibility(t){var c;const n=((c=this.props.location)==null?void 0:c.pathname)||window.location.pathname,r=n.startsWith("/user/accounts/"),o=n.endsWith("/details");if(!r||o)return this.hideSubscriptionAlert();const a=n.split("/")[3];if(sessionStorage.getItem(`subscriptionAlertDismissed_${a}`)==="true")return this.hideSubscriptionAlert();const l=Cf(t,3);this.setState({showSubscriptionExpireAlert:l}),l&&this.scheduleCloseButtonVisibility()}hideSubscriptionAlert(){this.setState({showSubscriptionExpireAlert:!1})}scheduleCloseButtonVisibility(){this.closeButtonTimeout&&clearTimeout(this.closeButtonTimeout),this.closeButtonTimeout=setTimeout(()=>{this.setState({showsubscriptionclose:!0})},1e4)}componentWillUnmount(){var t;this.mapviewerReaction(),(t=this.combinedReaction)==null||t.call(this),this.closeButtonTimeout&&clearTimeout(this.closeButtonTimeout)}closeAlert(){this.props.appStore.setAlertMessages()}closeSubscriptionAlert(){const n=window.location.pathname.split("/")[3];n&&sessionStorage.setItem(`subscriptionAlertDismissed_${n}`,"true"),this.setState({showSubscriptionExpireAlert:!1,showsubscriptionclose:!1})}render(){var s;const t=this.props.appStore.alertMessage,n=new Ia(window.navigator.userAgent),r=n.mobile(),o=n.tablet();let a="";return t.message&&t.message!==""&&(a=i.jsx(Li,{show:t.message!=="",type:t.type,icon:t.icon,onClose:this.closeAlert,isAutoClose:t.isAutoClose,children:i.jsx($,{id:t.message,values:t.values})})),i.jsxs(i.Fragment,{children:[this.state.showSubscriptionExpireAlert&&i.jsx(i.Fragment,{children:i.jsxs("div",{className:"subscription-alert",children:[i.jsx("div",{className:"subscription-alert__icon",children:i.jsx(Dt,{name:"info_outlined",size:"24"})}),i.jsxs("div",{children:[i.jsx("p",{className:"subscription-alert__alert__title",children:i.jsx($,{id:"accountpage.alerttitle"})}),i.jsx("p",{className:"subscription-alert__alert__subtitle",children:i.jsx($,{id:"accountpage.alertdesc"})})]}),i.jsx("div",{className:"subscription-alert__close-icon",children:this.state.showsubscriptionclose&&i.jsx(Dt,{name:"close",size:"24",onIconClick:this.closeSubscriptionAlert})})]})}),i.jsxs(Oa,{className:this.props.appStore.isNavPanelMaximized&&(r||o)?"nav-panel-open":"",children:[a,i.jsx(Tf,{}),i.jsx(E.Suspense,{fallback:i.jsx("div",{children:"Loading..."}),children:i.jsxs(_a,{children:[i.jsx(Be,{path:"projects/"+mt.PATH_FRAGMENT+"/:tab",element:i.jsx(Ei,{})}),i.jsx(Be,{path:"projects/"+mt.PATH_FRAGMENT,element:i.jsx(Xt,{to:`/user/projects/${mt.PATH_FRAGMENT}/sms`,replace:!0})}),i.jsx(Be,{path:"projects/:id/*",element:i.jsx(vf,{})}),i.jsx(Be,{path:"projects",element:i.jsx(Sf,{})}),i.jsx(Be,{path:"accounts/:id/projects/"+mt.PATH_FRAGMENT+"/:tab",element:i.jsx(Ei,{})}),i.jsx(Be,{path:"accounts/:id/projects/"+mt.PATH_FRAGMENT,element:i.jsx(Xt,{to:"sms",replace:!0})}),i.jsx(Be,{path:"accounts/:id/*",element:i.jsx(Af,{})}),((s=this.props.userStore.me)==null?void 0:s.hasAdminAccessInAccounts)===!1?"":i.jsx(Be,{exact:!0,path:"accounts",element:i.jsx(Ef,{})}),i.jsx(Be,{path:"remote-client/:deviceName/:remoteAddress",element:i.jsx(jf,{})}),i.jsx(Be,{path:"*",element:i.jsx(Xt,{to:"/user/projects"})})]})}),this.state.loadGlobe?i.jsx(E.Suspense,{fallback:i.jsx("div",{}),children:i.jsx(If,{mapViewer:this.props.appStore.mapViewer})}):"",this.props.featureManagementStore.features.wmchatassistant&&i.jsx(yf,{})]})]})}}const Of=Aa(Oi(Ni("appStore","userStore","devicesLKSStore","accountRootStore","devicesStore","featureManagementStore","tierManagementStore","projectSettingsStore"),Le)(_f)),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:Of},Symbol.toStringTag,{value:"Module"}));
59export{mt as A,qt as M,_p as P,ui as T,Li as a,Qo as b,Cf as c,Rf as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.