@mcpjam/inspector 3.12.1 → 3.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{OAuthDesktopReturnNotice-DrCSUffX.js → OAuthDesktopReturnNotice-C5D90OSm.js} +2 -2
- package/dist/client/assets/OAuthDesktopReturnNotice-C95FI7VH.css +2 -0
- package/dist/client/assets/{app-bootstrap-C0wjVteM.js → app-bootstrap-C1Jn01kP.js} +359 -350
- package/dist/client/assets/{button-DQ9bR46C.js → button-RD2Dghjp.js} +2 -2
- package/dist/client/assets/{chunk-YOKDWASO-Cpy4vQY8.js → chunk-YOKDWASO-DTTU1wSE.js} +5 -5
- package/dist/client/assets/{dead-clicks-autocapture-D3WNuKsf.js → dead-clicks-autocapture-CDkbT21a.js} +2 -2
- package/dist/client/assets/error-reporting-Dg5b1JwS.js +102 -0
- package/dist/client/assets/{error-reporting-DmfwQkBP.js → error-reporting-_SEhX6IL.js} +1 -1
- package/dist/client/assets/{exception-autocapture-D0Qfhhbc.js → exception-autocapture-CtxHwPtn.js} +2 -2
- package/dist/client/assets/{failed-request-tracker-DyZB_Nfp.js → failed-request-tracker-kUaJ-sVM.js} +2 -2
- package/dist/client/assets/{highlighted-body-KPVGNVTW-QEEOJH_y.js → highlighted-body-KPVGNVTW-CBC2hHHb.js} +2 -2
- package/dist/client/assets/{index-pxVGER4l.js → index-yOjxp36p.js} +3 -3
- package/dist/client/assets/{jszip.min-DPr4_u5f.js → jszip.min-B3Qii_az.js} +2 -2
- package/dist/client/assets/{mermaid-HWGCJPDP-DNAzcUbW.js → mermaid-HWGCJPDP-BzT3-9sO.js} +1 -1
- package/dist/client/assets/{posthog-recorder-dQnAa9ak.js → posthog-recorder-B06ULcLl.js} +2 -2
- package/dist/client/assets/{preload-helper-DsxBH8kv.js → preload-helper-DvWwGI6x.js} +2 -2
- package/dist/client/assets/{rolldown-runtime-DeZZUx0l.js → rolldown-runtime-DVMSi0Yr.js} +1 -1
- package/dist/client/assets/{surveys-CdlQJ0hc.js → surveys-D941hgn3.js} +2 -2
- package/dist/client/assets/{trace-timeline-Ix3CoQw4.js → trace-timeline-Bk3hAXNq.js} +1 -1
- package/dist/client/assets/{trace-timeline-2WCodaTP.js → trace-timeline-DVZqlQSW.js} +39 -39
- package/dist/client/assets/{web-vitals-DdK10Etm.js → web-vitals-DZUBt4dL.js} +2 -2
- package/dist/client/index.html +7 -7
- package/dist/server/{chunk-KOQ26LF3.js → chunk-5RE7KJ2M.js} +6 -3
- package/dist/server/{chunk-R5EHY55H.js → chunk-WGJHSGJP.js} +4 -3
- package/dist/server/{consent-lifetime-T4A66FLH.js → consent-lifetime-PTGAZQSU.js} +2 -2
- package/dist/server/harness-install-cli.js +1 -1
- package/dist/server/index.js +85422 -75291
- package/package.json +4 -4
- package/dist/client/assets/OAuthDesktopReturnNotice-BeDakGgb.css +0 -2
- package/dist/client/assets/error-reporting-BHW3WviX.js +0 -102
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-KPVGNVTW-
|
|
2
|
-
import{o as nr,r as Ps,t as _n}from"./rolldown-runtime-DeZZUx0l.js";import{a as Wc,i as Qc,n as Ms,o as Gc,r as Bs,t as Fs}from"./preload-helper-DsxBH8kv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.12.1"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a195a4c5-82d2-4644-80b2-9bdb8697ce6d",e._sentryDebugIdIdentifier="sentry-dbid-a195a4c5-82d2-4644-80b2-9bdb8697ce6d")}catch{}})();var rr=(function(e){if(e==null)return Jc;if(typeof e=="function")return ir(e);if(typeof e=="object")return Array.isArray(e)?Kc(e):Xc(e);if(typeof e=="string")return Zc(e);throw new Error("Expected function, string, or object as test")});function Kc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rr(e[n]);return ir(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Xc(e){const t=e;return ir(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Zc(e){return ir(t);function t(n){return n&&n.type===e}}function ir(e){return t;function t(n,r,i){return!!(eu(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Jc(){return!0}function eu(e){return e!==null&&typeof e=="object"&&"type"in e}var Hs=[];var Mt="skip";function ar(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=rr(i),s=r?-1:1;o(e,void 0,[])();function o(l,u,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Hs,E,C,w;if((!t||a(l,u,h[h.length-1]||void 0))&&(f=tu(n(l,h)),f[0]===!1))return f;if("children"in l&&l.children){const k=l;if(k.children&&f[0]!=="skip")for(C=(r?k.children.length:-1)+s,w=h.concat(k);C>-1&&C<k.children.length;){const I=k.children[C];if(E=o(I,C,w)(),E[0]===!1)return E;C=typeof E[1]=="number"?E[1]:C+s}}return f}}}function tu(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Hs:[e]}function Ye(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),ar(e,a,o,i);function o(l,u){const h=u[u.length-1],d=h?h.children.indexOf(l):void 0;return s(l,d,h)}}var y=nr(Gc(),1),Ut={indicator:"indicator",textOnly:"text-only",remove:"remove"};function nu({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=Ut.indicator,imageBlockPolicy:l=Ut.indicator}){const u=t.length&&!t.every(d=>d==="*"),h=n.length&&!n.every(d=>d==="*");if(!e&&(u||h))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const p=ou(e,t,n,r,i,a,s,o,l);Us(d),Ye(d,p)}}function Xi(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function ru(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}var iu=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),au=new Set(["javascript:","data:","file:","vbscript:"]);function Zi(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const l=e.substring(5);if(l&&l.length>0&&l!=="invalid")return e}}catch{return null}return null}const s=Xi(e,n);if(!s||au.has(s.protocol)||!(iu.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const o=ru(e);return s&&t.some(l=>{const u=Xi(l,n);return!u||u.origin!==s.origin?!1:s.href.startsWith(u.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:o?s.pathname+s.search+s.hash:s.href:null}function Us(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Us(t)}}var _r=Symbol("node-seen");function su(e,t,n){return t===Ut.remove?{type:"remove"}:t===Ut.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function lu(e,t,n){if(t===Ut.remove)return{type:"remove"};if(t===Ut.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}var ou=(e,t,n,r,i,a,s,o,l)=>{const u=(h,d,p)=>{if(h.type!=="element"||h[_r])return!0;if(h.tagName==="a"){const f=Zi(h.properties.href,t,e,!1,!1,i);if(f===null){if(h[_r]=!0,Ye(h,u),p&&typeof d=="number"){const E=su(h,o,s);if(E.type==="remove")return p.children.splice(d,1),[Mt,d];p.children[d]=E.element}return Mt}else return h.properties.href=f,h.properties.target="_blank",h.properties.rel="noopener noreferrer",!0}if(h.tagName==="img"){const f=Zi(h.properties.src,n,e,r,!0,i);if(f===null){if(h[_r]=!0,Ye(h,u),p&&typeof d=="number"){const E=lu(h,l,a);if(E.type==="remove")return p.children.splice(d,1),[Mt,d];p.children[d]=E.element}return Mt}else return h.properties.src=f,!0}return!0};return u},Ji=typeof self=="object"?self:globalThis,cu=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case 0:case-1:return n(s,i);case 1:{const o=n([],i);for(const l of s)o.push(r(l));return o}case 2:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case 3:return n(new Date(s),i);case 4:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case 5:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case 6:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case 7:{const{name:o,message:l}=s;return n(new Ji[o](l),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Ji[a](s),i)};return r},ea=e=>cu(new Map,e)(0),Dt="",{toString:uu}={},{keys:hu}=Object,Jt=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=uu.call(e).slice(8,-1);switch(n){case"Array":return[1,Dt];case"Object":return[2,Dt];case"Date":return[3,Dt];case"RegExp":return[4,Dt];case"Map":return[5,Dt];case"Set":return[6,Dt];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Dn=([e,t])=>e===0&&(t==="function"||t==="symbol"),du=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Jt(s);switch(o){case 0:{let h=s;switch(l){case"bigint":o=8,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return i([-1],s)}return i([o,h],s)}case 1:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),i([l,[...p]],s)}const h=[],d=i([o,h],s);for(const p of s)h.push(a(p));return d}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=i([o,h],s);for(const p of hu(s))(e||!Dn(Jt(s[p])))&&h.push([a(p),a(s[p])]);return d}case 3:return i([o,s.toISOString()],s);case 4:{const{source:h,flags:d}=s;return i([o,{source:h,flags:d}],s)}case 5:{const h=[],d=i([o,h],s);for(const[p,f]of s)(e||!(Dn(Jt(p))||Dn(Jt(f))))&&h.push([a(p),a(f)]);return d}case 6:{const h=[],d=i([o,h],s);for(const p of s)(e||!Dn(Jt(p)))&&h.push(a(p));return d}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},ta=(e,{json:t,lossy:n}={})=>{const r=[];return du(!(t||n),!!t,new Map,r)(e),r},Ct=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ea(ta(e,t)):structuredClone(e):(e,t)=>ea(ta(e,t));var An=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};An.prototype.normal={};An.prototype.property={};An.prototype.space=void 0;function js(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new An(n,r,t)}function En(e){return e.toLowerCase()}var Re=class{constructor(e,t){this.attribute=t,this.property=e}};Re.prototype.attribute="";Re.prototype.booleanish=!1;Re.prototype.boolean=!1;Re.prototype.commaOrSpaceSeparated=!1;Re.prototype.commaSeparated=!1;Re.prototype.defined=!1;Re.prototype.mustUseProperty=!1;Re.prototype.number=!1;Re.prototype.overloadedBoolean=!1;Re.prototype.property="";Re.prototype.spaceSeparated=!1;Re.prototype.space=void 0;var $r=Ps({boolean:()=>Z,booleanish:()=>me,commaOrSpaceSeparated:()=>De,commaSeparated:()=>Ft,number:()=>M,overloadedBoolean:()=>Yr,spaceSeparated:()=>ce}),fu=0,Z=Nt(),me=Nt(),Yr=Nt(),M=Nt(),ce=Nt(),Ft=Nt(),De=Nt();function Nt(){return 2**++fu}var Ar=Object.keys($r),mi=class extends Re{constructor(e,t,n,r){let i=-1;if(super(e,t),na(this,"space",r),typeof n=="number")for(;++i<Ar.length;){const a=Ar[i];na(this,Ar[i],(n&$r[a])===$r[a])}}};mi.prototype.defined=!0;function na(e,t,n){n&&(e[t]=n)}function $t(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new mi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[En(r)]=r,n[En(a.attribute)]=r}return new An(t,n,e.space)}var zs=$t({properties:{ariaActiveDescendant:null,ariaAtomic:me,ariaAutoComplete:null,ariaBusy:me,ariaChecked:me,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:me,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:me,ariaFlowTo:ce,ariaGrabbed:me,ariaHasPopup:null,ariaHidden:me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:M,ariaLive:null,ariaModal:me,ariaMultiLine:me,ariaMultiSelectable:me,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:me,ariaReadOnly:me,ariaRelevant:null,ariaRequired:me,ariaRoleDescription:ce,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:me,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $s(e,t){return t in e?e[t]:t}function Ys(e,t){return $s(e,t.toLowerCase())}var pu=$t({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ft,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:ce,autoFocus:Z,autoPlay:Z,blocking:ce,capture:null,charSet:null,checked:Z,cite:null,className:ce,cols:M,colSpan:null,content:null,contentEditable:me,controls:Z,controlsList:ce,coords:M|Ft,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Yr,draggable:me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:ce,height:M,hidden:Yr,high:M,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:ce,itemRef:ce,itemScope:Z,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:M,pattern:null,ping:ce,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:ce,required:Z,reversed:Z,rows:M,rowSpan:M,sandbox:ce,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:me,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:me,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:Ys}),mu=$t({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:De,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Ft,g2:Ft,glyphName:Ft,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:De,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:De,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:De,rev:De,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:De,requiredFeatures:De,requiredFonts:De,requiredFormats:De,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:De,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:De,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:De,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$s}),qs=$t({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Vs=$t({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ys}),Ws=$t({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),gu={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Eu=/[A-Z]/g,ra=/-[a-z]/g,Tu=/^data[-\w.:]+$/i;function sr(e,t){const n=En(t);let r=t,i=Re;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Tu.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ra,ku);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ra.test(a)){let s=a.replace(Eu,bu);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=mi}return new i(r,t)}function bu(e){return"-"+e.toLowerCase()}function ku(e){return e.charAt(1).toUpperCase()}var yn=js([zs,pu,qs,Vs,Ws],"html"),gt=js([zs,mu,qs,Vs,Ws],"svg");function ia(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Qs(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var aa=/[#.]/g;function _u(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){aa.lastIndex=i;const o=aa.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function sa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gs(e){return e.join(" ").trim()}function Ks(e,t,n){const r=n?xu(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=_u(a,t);const u=l.tagName.toLowerCase(),h=r?r.get(u):void 0;if(l.tagName=h||u,Au(s))o.unshift(s);else for(const[d,p]of Object.entries(s))yu(e,l.properties,d,p)}for(const u of o)qr(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function Au(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function yu(e,t,n,r){const i=sr(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=sa(r):i.commaSeparated?a=ia(r):i.commaOrSpaceSeparated?a=sa(ia(r).join(" ")):a=la(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Cu(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(la(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function qr(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)qr(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?qr(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function la(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||En(n)===En(t)))return!0}return n}function Cu(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function xu(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}var Iu=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Nu=Ks(yn,"div"),Su=Ks(gt,"g",Iu);function vu(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=oa(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=oa(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function oa(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-KPVGNVTW-CBC2hHHb.js","assets/rolldown-runtime-DVMSi0Yr.js","assets/preload-helper-DvWwGI6x.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as nr,r as Ps,t as _n}from"./rolldown-runtime-DVMSi0Yr.js";import{a as Wc,i as Qc,n as Ms,o as Gc,r as Bs,t as Fs}from"./preload-helper-DvWwGI6x.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.12.3"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a195a4c5-82d2-4644-80b2-9bdb8697ce6d",e._sentryDebugIdIdentifier="sentry-dbid-a195a4c5-82d2-4644-80b2-9bdb8697ce6d")}catch{}})();var rr=(function(e){if(e==null)return Jc;if(typeof e=="function")return ir(e);if(typeof e=="object")return Array.isArray(e)?Kc(e):Xc(e);if(typeof e=="string")return Zc(e);throw new Error("Expected function, string, or object as test")});function Kc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rr(e[n]);return ir(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Xc(e){const t=e;return ir(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Zc(e){return ir(t);function t(n){return n&&n.type===e}}function ir(e){return t;function t(n,r,i){return!!(eu(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Jc(){return!0}function eu(e){return e!==null&&typeof e=="object"&&"type"in e}var Hs=[];var Mt="skip";function ar(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=rr(i),s=r?-1:1;o(e,void 0,[])();function o(l,u,h){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=Hs,E,C,w;if((!t||a(l,u,h[h.length-1]||void 0))&&(f=tu(n(l,h)),f[0]===!1))return f;if("children"in l&&l.children){const k=l;if(k.children&&f[0]!=="skip")for(C=(r?k.children.length:-1)+s,w=h.concat(k);C>-1&&C<k.children.length;){const I=k.children[C];if(E=o(I,C,w)(),E[0]===!1)return E;C=typeof E[1]=="number"?E[1]:C+s}}return f}}}function tu(e){return Array.isArray(e)?e:typeof e=="number"?[!0,e]:e==null?Hs:[e]}function Ye(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),ar(e,a,o,i);function o(l,u){const h=u[u.length-1],d=h?h.children.indexOf(l):void 0;return s(l,d,h)}}var y=nr(Gc(),1),Ut={indicator:"indicator",textOnly:"text-only",remove:"remove"};function nu({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=Ut.indicator,imageBlockPolicy:l=Ut.indicator}){const u=t.length&&!t.every(d=>d==="*"),h=n.length&&!n.every(d=>d==="*");if(!e&&(u||h))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const p=ou(e,t,n,r,i,a,s,o,l);Us(d),Ye(d,p)}}function Xi(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function ru(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}var iu=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),au=new Set(["javascript:","data:","file:","vbscript:"]);function Zi(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const l=e.substring(5);if(l&&l.length>0&&l!=="invalid")return e}}catch{return null}return null}const s=Xi(e,n);if(!s||au.has(s.protocol)||!(iu.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const o=ru(e);return s&&t.some(l=>{const u=Xi(l,n);return!u||u.origin!==s.origin?!1:s.href.startsWith(u.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:o?s.pathname+s.search+s.hash:s.href:null}function Us(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Us(t)}}var _r=Symbol("node-seen");function su(e,t,n){return t===Ut.remove?{type:"remove"}:t===Ut.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function lu(e,t,n){if(t===Ut.remove)return{type:"remove"};if(t===Ut.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}var ou=(e,t,n,r,i,a,s,o,l)=>{const u=(h,d,p)=>{if(h.type!=="element"||h[_r])return!0;if(h.tagName==="a"){const f=Zi(h.properties.href,t,e,!1,!1,i);if(f===null){if(h[_r]=!0,Ye(h,u),p&&typeof d=="number"){const E=su(h,o,s);if(E.type==="remove")return p.children.splice(d,1),[Mt,d];p.children[d]=E.element}return Mt}else return h.properties.href=f,h.properties.target="_blank",h.properties.rel="noopener noreferrer",!0}if(h.tagName==="img"){const f=Zi(h.properties.src,n,e,r,!0,i);if(f===null){if(h[_r]=!0,Ye(h,u),p&&typeof d=="number"){const E=lu(h,l,a);if(E.type==="remove")return p.children.splice(d,1),[Mt,d];p.children[d]=E.element}return Mt}else return h.properties.src=f,!0}return!0};return u},Ji=typeof self=="object"?self:globalThis,cu=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case 0:case-1:return n(s,i);case 1:{const o=n([],i);for(const l of s)o.push(r(l));return o}case 2:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case 3:return n(new Date(s),i);case 4:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case 5:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case 6:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case 7:{const{name:o,message:l}=s;return n(new Ji[o](l),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Ji[a](s),i)};return r},ea=e=>cu(new Map,e)(0),Dt="",{toString:uu}={},{keys:hu}=Object,Jt=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=uu.call(e).slice(8,-1);switch(n){case"Array":return[1,Dt];case"Object":return[2,Dt];case"Date":return[3,Dt];case"RegExp":return[4,Dt];case"Map":return[5,Dt];case"Set":return[6,Dt];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Dn=([e,t])=>e===0&&(t==="function"||t==="symbol"),du=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Jt(s);switch(o){case 0:{let h=s;switch(l){case"bigint":o=8,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return i([-1],s)}return i([o,h],s)}case 1:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),i([l,[...p]],s)}const h=[],d=i([o,h],s);for(const p of s)h.push(a(p));return d}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=i([o,h],s);for(const p of hu(s))(e||!Dn(Jt(s[p])))&&h.push([a(p),a(s[p])]);return d}case 3:return i([o,s.toISOString()],s);case 4:{const{source:h,flags:d}=s;return i([o,{source:h,flags:d}],s)}case 5:{const h=[],d=i([o,h],s);for(const[p,f]of s)(e||!(Dn(Jt(p))||Dn(Jt(f))))&&h.push([a(p),a(f)]);return d}case 6:{const h=[],d=i([o,h],s);for(const p of s)(e||!Dn(Jt(p)))&&h.push(a(p));return d}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},ta=(e,{json:t,lossy:n}={})=>{const r=[];return du(!(t||n),!!t,new Map,r)(e),r},Ct=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ea(ta(e,t)):structuredClone(e):(e,t)=>ea(ta(e,t));var An=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};An.prototype.normal={};An.prototype.property={};An.prototype.space=void 0;function js(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new An(n,r,t)}function En(e){return e.toLowerCase()}var Re=class{constructor(e,t){this.attribute=t,this.property=e}};Re.prototype.attribute="";Re.prototype.booleanish=!1;Re.prototype.boolean=!1;Re.prototype.commaOrSpaceSeparated=!1;Re.prototype.commaSeparated=!1;Re.prototype.defined=!1;Re.prototype.mustUseProperty=!1;Re.prototype.number=!1;Re.prototype.overloadedBoolean=!1;Re.prototype.property="";Re.prototype.spaceSeparated=!1;Re.prototype.space=void 0;var $r=Ps({boolean:()=>Z,booleanish:()=>me,commaOrSpaceSeparated:()=>De,commaSeparated:()=>Ft,number:()=>M,overloadedBoolean:()=>Yr,spaceSeparated:()=>ce}),fu=0,Z=Nt(),me=Nt(),Yr=Nt(),M=Nt(),ce=Nt(),Ft=Nt(),De=Nt();function Nt(){return 2**++fu}var Ar=Object.keys($r),mi=class extends Re{constructor(e,t,n,r){let i=-1;if(super(e,t),na(this,"space",r),typeof n=="number")for(;++i<Ar.length;){const a=Ar[i];na(this,Ar[i],(n&$r[a])===$r[a])}}};mi.prototype.defined=!0;function na(e,t,n){n&&(e[t]=n)}function $t(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new mi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[En(r)]=r,n[En(a.attribute)]=r}return new An(t,n,e.space)}var zs=$t({properties:{ariaActiveDescendant:null,ariaAtomic:me,ariaAutoComplete:null,ariaBusy:me,ariaChecked:me,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:me,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:me,ariaFlowTo:ce,ariaGrabbed:me,ariaHasPopup:null,ariaHidden:me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:M,ariaLive:null,ariaModal:me,ariaMultiLine:me,ariaMultiSelectable:me,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:me,ariaReadOnly:me,ariaRelevant:null,ariaRequired:me,ariaRoleDescription:ce,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:me,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $s(e,t){return t in e?e[t]:t}function Ys(e,t){return $s(e,t.toLowerCase())}var pu=$t({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ft,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:ce,autoFocus:Z,autoPlay:Z,blocking:ce,capture:null,charSet:null,checked:Z,cite:null,className:ce,cols:M,colSpan:null,content:null,contentEditable:me,controls:Z,controlsList:ce,coords:M|Ft,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Yr,draggable:me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:ce,height:M,hidden:Yr,high:M,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:ce,itemRef:ce,itemScope:Z,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Z,optimum:M,pattern:null,ping:ce,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:ce,required:Z,reversed:Z,rows:M,rowSpan:M,sandbox:ce,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:me,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:me,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Z,disableRemotePlayback:Z,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:Ys}),mu=$t({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:De,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Ft,g2:Ft,glyphName:Ft,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:De,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:De,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:De,rev:De,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:De,requiredFeatures:De,requiredFonts:De,requiredFormats:De,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:De,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:De,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:De,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$s}),qs=$t({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Vs=$t({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ys}),Ws=$t({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),gu={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Eu=/[A-Z]/g,ra=/-[a-z]/g,Tu=/^data[-\w.:]+$/i;function sr(e,t){const n=En(t);let r=t,i=Re;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Tu.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ra,ku);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ra.test(a)){let s=a.replace(Eu,bu);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=mi}return new i(r,t)}function bu(e){return"-"+e.toLowerCase()}function ku(e){return e.charAt(1).toUpperCase()}var yn=js([zs,pu,qs,Vs,Ws],"html"),gt=js([zs,mu,qs,Vs,Ws],"svg");function ia(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Qs(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var aa=/[#.]/g;function _u(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){aa.lastIndex=i;const o=aa.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function sa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gs(e){return e.join(" ").trim()}function Ks(e,t,n){const r=n?xu(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=_u(a,t);const u=l.tagName.toLowerCase(),h=r?r.get(u):void 0;if(l.tagName=h||u,Au(s))o.unshift(s);else for(const[d,p]of Object.entries(s))yu(e,l.properties,d,p)}for(const u of o)qr(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function Au(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function yu(e,t,n,r){const i=sr(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=sa(r):i.commaSeparated?a=ia(r):i.commaOrSpaceSeparated?a=sa(ia(r).join(" ")):a=la(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Cu(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(la(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function qr(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)qr(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?qr(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function la(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||En(n)===En(t)))return!0}return n}function Cu(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function xu(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}var Iu=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Nu=Ks(yn,"div"),Su=Ks(gt,"g",Iu);function vu(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=oa(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=oa(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function oa(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
3
3
|
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}var At={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xs={}.hasOwnProperty,wu=Object.prototype;function Lu(e,t){const n=t||{};return gi({file:n.file||void 0,location:!1,schema:n.space==="svg"?gt:yn,verbose:n.verbose||!1},e)}function gi(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},zn(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Zs(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=vu(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},zn(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},zn(e,r,n),n}default:return n=Ru(e,t),n}}function Zs(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=gi(e,t[n]);r.push(i)}return r}function Ru(e,t){const n=e.schema;e.schema=t.namespaceURI===At.svg?gt:yn;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],o=(s.prefix?s.prefix+":":"")+s.name;Xs.call(wu,o)||(i[o]=s.value)}const a=(e.schema.space==="svg"?Su:Nu)(t.tagName,i,Zs(e,t.childNodes));if(zn(e,t,a),a.tagName==="template"){const s=t,o=s.sourceCodeLocation,l=o&&o.startTag&&Bt(o.startTag),u=o&&o.endTag&&Bt(o.endTag),h=gi(e,s.content);l&&u&&e.file&&(h.position={start:l.end,end:u.start}),a.content=h}return e.schema=n,a}function zn(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Ou(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ou(e,t,n){const r=Bt(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)Xs.call(n.attrs,s)&&(a[sr(e.schema,s).property]=Bt(n.attrs[s]));n.startTag;const o=Bt(n.startTag),l=n.endTag?Bt(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return r}function Bt(e){const t=ca({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=ca({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function ca(e){return e.line&&e.column?e:void 0}var ua={}.hasOwnProperty;function Js(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&ua.call(i,e)){const l=String(i[e]);s=ua.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Du={},Pu={}.hasOwnProperty,el=Js("type",{handlers:{root:Bu,element:zu,text:Uu,comment:ju,doctype:Hu}});function Mu(e,t){const n=(t||Du).space;return el(e,n==="svg"?gt:yn)}function Bu(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ei(e.children,n,t),Yt(e,n),n}function Fu(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ei(e.children,n,t),Yt(e,n),n}function Hu(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Yt(e,t),t}function Uu(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Yt(e,t),t}function ju(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Yt(e,t),t}function zu(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=gt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Pu.call(e.properties,a)){const l=$u(r,a,e.properties[a]);l&&i.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:At[s],childNodes:[],parentNode:null};return o.childNodes=Ei(e.children,o,r),Yt(e,o),e.tagName==="template"&&e.content&&(o.content=Fu(e.content,r)),o}function $u(e,t,n){const r=sr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Qs(n):Gs(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=At[r.space]}return i}function Ei(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=el(e[r],n);a.parentNode=t,i.push(a)}return i}function Yt(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var Yu=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],qu=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var m;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(m||(m={}));var we={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function tl(e){return e>=55296&&e<=57343}function Vu(e){return e>=56320&&e<=57343}function Wu(e,t){return(e-55296)*1024+9216+t}function nl(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function rl(e){return e>=64976&&e<=65007||qu.has(e)}var L;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(L||(L={}));var Qu=65536,Gu=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Qu,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,a=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(Vu(t))return this.pos++,this._addGap(),Wu(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(L.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==e.charCodeAt(n))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;const n=this.html.charCodeAt(t);return n===m.CARRIAGE_RETURN?m.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;let e=this.html.charCodeAt(this.pos);return e===m.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED):e===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,tl(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===m.LINE_FEED||e===m.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){nl(e)?this._err(L.controlCharacterInInputStream):rl(e)&&this._err(L.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},J;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(J||(J={}));function il(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var Ku=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),yr,Xu=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),By=(yr=String.fromCodePoint)!==null&&yr!==void 0?yr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Zu(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Xu.get(e))!==null&&t!==void 0?t:e}var Ee;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ee||(Ee={}));var Ju=32,pt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(pt||(pt={}));function Vr(e){return e>=Ee.ZERO&&e<=Ee.NINE}function eh(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_F||e>=Ee.LOWER_A&&e<=Ee.LOWER_F}function th(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_Z||e>=Ee.LOWER_A&&e<=Ee.LOWER_Z||Vr(e)}function nh(e){return e===Ee.EQUALS||th(e)}var ge;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ge||(ge={}));var at;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(at||(at={}));var rh=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ge.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=at.Strict}startEntity(e){this.decodeMode=e,this.state=ge.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ge.EntityStart:return e.charCodeAt(t)===Ee.NUM?(this.state=ge.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ge.NamedEntity,this.stateNamedEntity(e,t));case ge.NumericStart:return this.stateNumericStart(e,t);case ge.NumericDecimal:return this.stateNumericDecimal(e,t);case ge.NumericHex:return this.stateNumericHex(e,t);case ge.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Ju)===Ee.LOWER_X?(this.state=ge.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ge.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(Vr(r)||eh(r))t+=1;else return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(Vr(r))t+=1;else return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ee.SEMI)this.consumed+=1;else if(this.decodeMode===at.Strict)return 0;return this.emitCodePoint(Zu(this.result),this.consumed),this.errors&&(e!==Ee.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&pt.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=ih(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===at.Attribute&&(i===0||nh(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&pt.VALUE_LENGTH)>>14,i!==0){if(a===Ee.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==at.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&pt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~pt.VALUE_LENGTH:r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case ge.NamedEntity:return this.result!==0&&(this.decodeMode!==at.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ge.NumericDecimal:return this.emitNumericEntity(0,2);case ge.NumericHex:return this.emitNumericEntity(0,3);case ge.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ge.EntityStart:return 0}}};function ih(e,t,n,r){const i=(t&pt.BRANCH_LENGTH)>>7,a=t&pt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return e[l+i]}return-1}var O;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(O||(O={}));var yt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(yt||(yt={}));var Be;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Be||(Be={}));var N;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(N||(N={}));var c;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(c||(c={}));var ah=new Map([[N.A,c.A],[N.ADDRESS,c.ADDRESS],[N.ANNOTATION_XML,c.ANNOTATION_XML],[N.APPLET,c.APPLET],[N.AREA,c.AREA],[N.ARTICLE,c.ARTICLE],[N.ASIDE,c.ASIDE],[N.B,c.B],[N.BASE,c.BASE],[N.BASEFONT,c.BASEFONT],[N.BGSOUND,c.BGSOUND],[N.BIG,c.BIG],[N.BLOCKQUOTE,c.BLOCKQUOTE],[N.BODY,c.BODY],[N.BR,c.BR],[N.BUTTON,c.BUTTON],[N.CAPTION,c.CAPTION],[N.CENTER,c.CENTER],[N.CODE,c.CODE],[N.COL,c.COL],[N.COLGROUP,c.COLGROUP],[N.DD,c.DD],[N.DESC,c.DESC],[N.DETAILS,c.DETAILS],[N.DIALOG,c.DIALOG],[N.DIR,c.DIR],[N.DIV,c.DIV],[N.DL,c.DL],[N.DT,c.DT],[N.EM,c.EM],[N.EMBED,c.EMBED],[N.FIELDSET,c.FIELDSET],[N.FIGCAPTION,c.FIGCAPTION],[N.FIGURE,c.FIGURE],[N.FONT,c.FONT],[N.FOOTER,c.FOOTER],[N.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[N.FORM,c.FORM],[N.FRAME,c.FRAME],[N.FRAMESET,c.FRAMESET],[N.H1,c.H1],[N.H2,c.H2],[N.H3,c.H3],[N.H4,c.H4],[N.H5,c.H5],[N.H6,c.H6],[N.HEAD,c.HEAD],[N.HEADER,c.HEADER],[N.HGROUP,c.HGROUP],[N.HR,c.HR],[N.HTML,c.HTML],[N.I,c.I],[N.IMG,c.IMG],[N.IMAGE,c.IMAGE],[N.INPUT,c.INPUT],[N.IFRAME,c.IFRAME],[N.KEYGEN,c.KEYGEN],[N.LABEL,c.LABEL],[N.LI,c.LI],[N.LINK,c.LINK],[N.LISTING,c.LISTING],[N.MAIN,c.MAIN],[N.MALIGNMARK,c.MALIGNMARK],[N.MARQUEE,c.MARQUEE],[N.MATH,c.MATH],[N.MENU,c.MENU],[N.META,c.META],[N.MGLYPH,c.MGLYPH],[N.MI,c.MI],[N.MO,c.MO],[N.MN,c.MN],[N.MS,c.MS],[N.MTEXT,c.MTEXT],[N.NAV,c.NAV],[N.NOBR,c.NOBR],[N.NOFRAMES,c.NOFRAMES],[N.NOEMBED,c.NOEMBED],[N.NOSCRIPT,c.NOSCRIPT],[N.OBJECT,c.OBJECT],[N.OL,c.OL],[N.OPTGROUP,c.OPTGROUP],[N.OPTION,c.OPTION],[N.P,c.P],[N.PARAM,c.PARAM],[N.PLAINTEXT,c.PLAINTEXT],[N.PRE,c.PRE],[N.RB,c.RB],[N.RP,c.RP],[N.RT,c.RT],[N.RTC,c.RTC],[N.RUBY,c.RUBY],[N.S,c.S],[N.SCRIPT,c.SCRIPT],[N.SEARCH,c.SEARCH],[N.SECTION,c.SECTION],[N.SELECT,c.SELECT],[N.SOURCE,c.SOURCE],[N.SMALL,c.SMALL],[N.SPAN,c.SPAN],[N.STRIKE,c.STRIKE],[N.STRONG,c.STRONG],[N.STYLE,c.STYLE],[N.SUB,c.SUB],[N.SUMMARY,c.SUMMARY],[N.SUP,c.SUP],[N.TABLE,c.TABLE],[N.TBODY,c.TBODY],[N.TEMPLATE,c.TEMPLATE],[N.TEXTAREA,c.TEXTAREA],[N.TFOOT,c.TFOOT],[N.TD,c.TD],[N.TH,c.TH],[N.THEAD,c.THEAD],[N.TITLE,c.TITLE],[N.TR,c.TR],[N.TRACK,c.TRACK],[N.TT,c.TT],[N.U,c.U],[N.UL,c.UL],[N.SVG,c.SVG],[N.VAR,c.VAR],[N.WBR,c.WBR],[N.XMP,c.XMP]]);function qt(e){var t;return(t=ah.get(e))!==null&&t!==void 0?t:c.UNKNOWN}var P=c,sh={[O.HTML]:new Set([P.ADDRESS,P.APPLET,P.AREA,P.ARTICLE,P.ASIDE,P.BASE,P.BASEFONT,P.BGSOUND,P.BLOCKQUOTE,P.BODY,P.BR,P.BUTTON,P.CAPTION,P.CENTER,P.COL,P.COLGROUP,P.DD,P.DETAILS,P.DIR,P.DIV,P.DL,P.DT,P.EMBED,P.FIELDSET,P.FIGCAPTION,P.FIGURE,P.FOOTER,P.FORM,P.FRAME,P.FRAMESET,P.H1,P.H2,P.H3,P.H4,P.H5,P.H6,P.HEAD,P.HEADER,P.HGROUP,P.HR,P.HTML,P.IFRAME,P.IMG,P.INPUT,P.LI,P.LINK,P.LISTING,P.MAIN,P.MARQUEE,P.MENU,P.META,P.NAV,P.NOEMBED,P.NOFRAMES,P.NOSCRIPT,P.OBJECT,P.OL,P.P,P.PARAM,P.PLAINTEXT,P.PRE,P.SCRIPT,P.SECTION,P.SELECT,P.SOURCE,P.STYLE,P.SUMMARY,P.TABLE,P.TBODY,P.TD,P.TEMPLATE,P.TEXTAREA,P.TFOOT,P.TH,P.THEAD,P.TITLE,P.TR,P.TRACK,P.UL,P.WBR,P.XMP]),[O.MATHML]:new Set([P.MI,P.MO,P.MN,P.MS,P.MTEXT,P.ANNOTATION_XML]),[O.SVG]:new Set([P.TITLE,P.FOREIGN_OBJECT,P.DESC]),[O.XLINK]:new Set,[O.XML]:new Set,[O.XMLNS]:new Set},Wr=new Set([P.H1,P.H2,P.H3,P.H4,P.H5,P.H6]),Fy=new Set([N.STYLE,N.SCRIPT,N.XMP,N.IFRAME,N.NOEMBED,N.NOFRAMES,N.PLAINTEXT]),g;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(g||(g={}));var fe={DATA:g.DATA,RCDATA:g.RCDATA,RAWTEXT:g.RAWTEXT,SCRIPT_DATA:g.SCRIPT_DATA,PLAINTEXT:g.PLAINTEXT,CDATA_SECTION:g.CDATA_SECTION};function lh(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function sn(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function oh(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z}function ht(e){return oh(e)||sn(e)}function ha(e){return ht(e)||lh(e)}function Pn(e){return e+32}function al(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function da(e){return al(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}function ch(e){return e===m.NULL?L.nullCharacterReference:e>1114111?L.characterReferenceOutsideUnicodeRange:tl(e)?L.surrogateCharacterReference:rl(e)?L.noncharacterCharacterReference:nl(e)||e===m.CARRIAGE_RETURN?L.controlCharacterReference:null}var uh=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=g.DATA,this.returnState=g.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Gu(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new rh(Ku,(n,r)=>{this.preprocessor.pos=this.entityStartPos+r-1,this._flushCodePointConsumedAsCharacterReference(n)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(L.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(L.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const r=ch(n);r&&this._err(r,1)}}:void 0)}_err(e,t=0){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:J.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:J.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:J.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:J.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(il(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const r=(e=(t=n.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(L.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=qt(e.tagName),e.type===J.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(L.endTagWithAttributes),e.selfClosing&&this._err(L.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case J.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case J.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case J.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:J.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){const t=al(e)?J.WHITESPACE_CHARACTER:e===m.NULL?J.NULL_CHARACTER:J.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(J.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=g.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?at.Attribute:at.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===g.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===g.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case g.DATA:this._stateData(e);break;case g.RCDATA:this._stateRcdata(e);break;case g.RAWTEXT:this._stateRawtext(e);break;case g.SCRIPT_DATA:this._stateScriptData(e);break;case g.PLAINTEXT:this._statePlaintext(e);break;case g.TAG_OPEN:this._stateTagOpen(e);break;case g.END_TAG_OPEN:this._stateEndTagOpen(e);break;case g.TAG_NAME:this._stateTagName(e);break;case g.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case g.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case g.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case g.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case g.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case g.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case g.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case g.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case g.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case g.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case g.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case g.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case g.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case g.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case g.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case g.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case g.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case g.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case g.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case g.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case g.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case g.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case g.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case g.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case g.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case g.BOGUS_COMMENT:this._stateBogusComment(e);break;case g.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case g.COMMENT_START:this._stateCommentStart(e);break;case g.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case g.COMMENT:this._stateComment(e);break;case g.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case g.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case g.COMMENT_END:this._stateCommentEnd(e);break;case g.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case g.DOCTYPE:this._stateDoctype(e);break;case g.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case g.DOCTYPE_NAME:this._stateDoctypeName(e);break;case g.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case g.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case g.CDATA_SECTION:this._stateCdataSection(e);break;case g.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case g.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case g.CHARACTER_REFERENCE:this._stateCharacterReference();break;case g.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.TAG_OPEN;break;case m.AMPERSAND:this._startCharacterReference();break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitCodePoint(e);break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case m.AMPERSAND:this._startCharacterReference();break;case m.LESS_THAN_SIGN:this.state=g.RCDATA_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.RAWTEXT_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ht(e))this._createStartTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case m.EXCLAMATION_MARK:this.state=g.MARKUP_DECLARATION_OPEN;break;case m.SOLIDUS:this.state=g.END_TAG_OPEN;break;case m.QUESTION_MARK:this._err(L.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e);break;case m.EOF:this._err(L.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(L.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=g.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ht(e))this._createEndTagToken(),this.state=g.TAG_NAME,this._stateTagName(e);else switch(e){case m.GREATER_THAN_SIGN:this._err(L.missingEndTagName),this.state=g.DATA;break;case m.EOF:this._err(L.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(L.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_ATTRIBUTE_NAME;break;case m.SOLIDUS:this.state=g.SELF_CLOSING_START_TAG;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentTagToken();break;case m.NULL:this._err(L.unexpectedNullCharacter),t.tagName+="�";break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(sn(e)?Pn(e):e)}}_stateRcdataLessThanSign(e){e===m.SOLIDUS?this.state=g.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ht(e)?(this.state=g.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=g.BEFORE_ATTRIBUTE_NAME,!1;case m.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=g.SELF_CLOSING_START_TAG,!1;case m.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=g.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===m.SOLIDUS?this.state=g.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ht(e)?(this.state=g.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case m.SOLIDUS:this.state=g.SCRIPT_DATA_END_TAG_OPEN;break;case m.EXCLAMATION_MARK:this.state=g.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=g.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ht(e)?(this.state=g.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===m.HYPHEN_MINUS?(this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=g.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case m.HYPHEN_MINUS:this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case m.GREATER_THAN_SIGN:this.state=g.SCRIPT_DATA,this._emitChars(">");break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===m.SOLIDUS?this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ht(e)?(this._emitChars("<"),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ht(e)?(this.state=g.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(we.SCRIPT,!1)&&da(this.preprocessor.peek(we.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<we.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m.NULL:this._err(L.unexpectedNullCharacter),this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case m.HYPHEN_MINUS:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case m.HYPHEN_MINUS:this._emitChars("-");break;case m.LESS_THAN_SIGN:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case m.GREATER_THAN_SIGN:this.state=g.SCRIPT_DATA,this._emitChars(">");break;case m.NULL:this._err(L.unexpectedNullCharacter),this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case m.EOF:this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===m.SOLIDUS?(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(we.SCRIPT,!1)&&da(this.preprocessor.peek(we.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<we.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=g.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=g.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m.EQUALS_SIGN:this._err(L.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=g.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:case m.SOLIDUS:case m.GREATER_THAN_SIGN:case m.EOF:this._leaveAttrName(),this.state=g.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case m.EQUALS_SIGN:this._leaveAttrName(),this.state=g.BEFORE_ATTRIBUTE_VALUE;break;case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:this._err(L.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(sn(e)?Pn(e):e)}}_stateAfterAttributeName(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:this.state=g.SELF_CLOSING_START_TAG;break;case m.EQUALS_SIGN:this.state=g.BEFORE_ATTRIBUTE_VALUE;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentTagToken();break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=g.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:this.state=g.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case m.APOSTROPHE:this.state=g.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingAttributeValue),this.state=g.DATA,this.emitCurrentTagToken();break;default:this.state=g.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case m.QUOTATION_MARK:this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m.AMPERSAND:this._startCharacterReference();break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.value+="�";break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case m.APOSTROPHE:this.state=g.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case m.AMPERSAND:this._startCharacterReference();break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.value+="�";break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break;case m.AMPERSAND:this._startCharacterReference();break;case m.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break;case m.NULL:this._err(L.unexpectedNullCharacter),this.currentAttr.value+="�";break;case m.QUOTATION_MARK:case m.APOSTROPHE:case m.LESS_THAN_SIGN:case m.EQUALS_SIGN:case m.GRAVE_ACCENT:this._err(L.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this._leaveAttrValue(),this.state=g.BEFORE_ATTRIBUTE_NAME;break;case m.SOLIDUS:this._leaveAttrValue(),this.state=g.SELF_CLOSING_START_TAG;break;case m.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=g.DATA,this.emitCurrentTagToken();break;case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this._err(L.missingWhitespaceBetweenAttributes),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case m.GREATER_THAN_SIGN:{const t=this.currentToken;t.selfClosing=!0,this.state=g.DATA,this.emitCurrentTagToken();break}case m.EOF:this._err(L.eofInTag),this._emitEOFToken();break;default:this._err(L.unexpectedSolidusInTag),this.state=g.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentComment(t);break;case m.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case m.NULL:this._err(L.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(we.DASH_DASH,!0)?(this._createCommentToken(we.DASH_DASH.length+1),this.state=g.COMMENT_START):this._consumeSequenceIfMatch(we.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(we.DOCTYPE.length+1),this.state=g.DOCTYPE):this._consumeSequenceIfMatch(we.CDATA_START,!0)?this.inForeignNode?this.state=g.CDATA_SECTION:(this._err(L.cdataInHtmlContent),this._createCommentToken(we.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=g.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.incorrectlyOpenedComment),this._createCommentToken(2),this.state=g.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_START_DASH;break;case m.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=g.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=g.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_END;break;case m.GREATER_THAN_SIGN:this._err(L.abruptClosingOfEmptyComment),this.state=g.DATA,this.emitCurrentComment(t);break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=g.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_END_DASH;break;case m.LESS_THAN_SIGN:t.data+="<",this.state=g.COMMENT_LESS_THAN_SIGN;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.data+="�";break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case m.EXCLAMATION_MARK:t.data+="!",this.state=g.COMMENT_LESS_THAN_SIGN_BANG;break;case m.LESS_THAN_SIGN:t.data+="<";break;default:this.state=g.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=g.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===m.HYPHEN_MINUS?this.state=g.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=g.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==m.GREATER_THAN_SIGN&&e!==m.EOF&&this._err(L.nestedComment),this.state=g.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:this.state=g.COMMENT_END;break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=g.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentComment(t);break;case m.EXCLAMATION_MARK:this.state=g.COMMENT_END_BANG;break;case m.HYPHEN_MINUS:t.data+="-";break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=g.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case m.HYPHEN_MINUS:t.data+="--!",this.state=g.COMMENT_END_DASH;break;case m.GREATER_THAN_SIGN:this._err(L.incorrectlyClosedComment),this.state=g.DATA,this.emitCurrentComment(t);break;case m.EOF:this._err(L.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=g.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_DOCTYPE_NAME;break;case m.GREATER_THAN_SIGN:this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case m.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBeforeDoctypeName),this.state=g.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(sn(e))this._createDoctypeToken(String.fromCharCode(Pn(e))),this.state=g.DOCTYPE_NAME;else switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.NULL:this._err(L.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=g.DOCTYPE_NAME;break;case m.GREATER_THAN_SIGN:{this._err(L.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break}case m.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=g.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.AFTER_DOCTYPE_NAME;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.NULL:this._err(L.unexpectedNullCharacter),t.name+="�";break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(sn(e)?Pn(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(we.PUBLIC,!1)?this.state=g.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(we.SYSTEM,!1)?this.state=g.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case m.QUOTATION_MARK:this._err(L.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:this._err(L.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:t.publicId="",this.state=g.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m.QUOTATION_MARK:this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.publicId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m.APOSTROPHE:this.state=g.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.publicId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case m.GREATER_THAN_SIGN:this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.QUOTATION_MARK:this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.QUOTATION_MARK:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:this.state=g.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case m.QUOTATION_MARK:this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case m.APOSTROPHE:t.systemId="",this.state=g.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case m.GREATER_THAN_SIGN:this._err(L.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.DATA,this.emitCurrentDoctype(t);break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case m.QUOTATION_MARK:this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.systemId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case m.APOSTROPHE:this.state=g.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case m.NULL:this._err(L.unexpectedNullCharacter),t.systemId+="�";break;case m.GREATER_THAN_SIGN:this._err(L.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.EOF:this._err(L.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(L.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=g.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case m.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=g.DATA;break;case m.NULL:this._err(L.unexpectedNullCharacter);break;case m.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case m.RIGHT_SQUARE_BRACKET:this.state=g.CDATA_SECTION_BRACKET;break;case m.EOF:this._err(L.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===m.RIGHT_SQUARE_BRACKET?this.state=g.CDATA_SECTION_END:(this._emitChars("]"),this.state=g.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case m.GREATER_THAN_SIGN:this.state=g.DATA;break;case m.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=g.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ha(this.preprocessor.peek(1))?g.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ha(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===m.SEMICOLON&&this._err(L.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}},sl=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),fa=new Set([...sl,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),Vn=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),hh=new Set([...Vn,c.OL,c.UL]),dh=new Set([...Vn,c.BUTTON]),pa=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),ma=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),fh=new Set([c.TR,c.TEMPLATE,c.HTML]),ph=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),mh=new Set([c.TABLE,c.TEMPLATE,c.HTML]),gh=new Set([c.TD,c.TH]),Eh=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===O.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==O.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Wr,O.HTML)}popUntilTableCellPopped(){this.popUntilPopped(gh,O.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(mh,O.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ph,O.HTML)}clearBackToTableRowContext(){this.clearBackTo(fh,O.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case O.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case O.SVG:if(ma.has(r))return!1;break;case O.MATHML:if(pa.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Vn)}hasInListItemScope(e){return this.hasInDynamicScope(e,hh)}hasInButtonScope(e){return this.hasInDynamicScope(e,dh)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case O.HTML:if(Wr.has(t))return!0;if(Vn.has(t))return!1;break;case O.SVG:if(ma.has(t))return!1;break;case O.MATHML:if(pa.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===O.HTML)switch(this.tagIDs[e]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===O.HTML)switch(this.tagIDs[t]){case e:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&sl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&fa.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&fa.has(this.currentTagId);)this.pop()}},Cr=3,Xe;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Xe||(Xe={}));var ga={type:Xe.Marker},Th=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let s=0;s<this.entries.length;s++){const o=this.entries[s];if(o.type===Xe.Marker)break;const{element:l}=o;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a){const u=this.treeAdapter.getAttrList(l);u.length===r&&n.push({idx:s,attrs:u})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<Cr)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<Cr)return;const r=new Map(t.map(a=>[a.name,a.value]));let i=0;for(let a=0;a<n.length;a++){const s=n[a];s.attrs.every(o=>r.get(o.name)===o.value)&&(i+=1,i>=Cr&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(ga)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Xe.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Xe.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t!==-1&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(ga);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(n=>n.type===Xe.Marker||this.treeAdapter.getTagName(n.element)===e);return t&&t.type===Xe.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===Xe.Element&&t.element===e)}},dt={createDocument(){return{nodeName:"#document",mode:Be.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};dt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(dt.isTextNode(n)){n.value+=t;return}}dt.appendChild(e,dt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&dt.isTextNode(r)?r.value+=t:dt.insertBefore(e,dt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ll="html",bh="about:legacy-compat",kh="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ol=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],_h=[...ol,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ah=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),cl=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],yh=[...cl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ea(e,t){return t.some(n=>e.startsWith(n))}function Ch(e){return e.name===ll&&e.publicId===null&&(e.systemId===null||e.systemId===bh)}function xh(e){if(e.name!==ll)return Be.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===kh)return Be.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Ah.has(n))return Be.QUIRKS;let r=t===null?_h:ol;if(Ea(n,r))return Be.QUIRKS;if(r=t===null?cl:yh,Ea(n,r))return Be.LIMITED_QUIRKS}return Be.NO_QUIRKS}var Ta={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Ih="definitionurl",Nh="definitionURL",Sh=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),vh=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:O.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:O.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:O.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:O.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:O.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:O.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:O.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:O.XML}],["xml:space",{prefix:"xml",name:"space",namespace:O.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:O.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:O.XMLNS}]]),wh=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Lh=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function Rh(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:n})=>n===yt.COLOR||n===yt.SIZE||n===yt.FACE)||Lh.has(t)}function ul(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Ih){e.attrs[t].name=Nh;break}}function hl(e){for(let t=0;t<e.attrs.length;t++){const n=Sh.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Ti(e){for(let t=0;t<e.attrs.length;t++){const n=vh.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Oh(e){const t=wh.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=qt(e.tagName))}function Dh(e,t){return t===O.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function Ph(e,t,n){if(t===O.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===yt.ENCODING){const i=n[r].value.toLowerCase();return i===Ta.TEXT_HTML||i===Ta.APPLICATION_XML}}return t===O.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Mh(e,t,n,r){return(!r||r===O.HTML)&&Ph(e,t,n)||(!r||r===O.MATHML)&&Dh(e,t)}var Bh="hidden",Fh=8,Hh=3,b;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(b||(b={}));var Uh={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},dl=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),ba={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:dt,onParseError:null},ka=class{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=b.INITIAL,this.originalInsertionMode=b.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...ba,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new uh(this.options,this),this.activeFormattingElements=new Th(this.treeAdapter),this.fragmentContextID=n?qt(this.treeAdapter.getTagName(n)):c.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new Eh(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...ba,...t};e!=null||(e=n.treeAdapter.createElement(N.TEMPLATE,O.HTML,[]));const r=n.treeAdapter.createElement("documentmock",O.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===c.TEMPLATE&&i.tmplInsertionModeStack.unshift(b.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=(r=e.location)!==null&&r!==void 0?r:Uh,a={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(e,t,n){var r,i;(i=(r=this.treeAdapter).onItemPush)===null||i===void 0||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(n=this.treeAdapter).onItemPop)===null||r===void 0||r.call(n,e,this.openElements.current),t){let i,a;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,a=this.fragmentContextID):{current:i,currentTagId:a}=this.openElements,this._setContextModes(i,a)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===O.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&e!==void 0&&t!==void 0&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,O.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=b.TEXT}switchToPlaintextParsing(){this.insertionMode=b.TEXT,this.originalInsertionMode=b.IN_BODY,this.tokenizer.state=fe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===N.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==O.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:this.tokenizer.state=fe.RCDATA;break;case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:this.tokenizer.state=fe.RAWTEXT;break;case c.SCRIPT:this.tokenizer.state=fe.SCRIPT_DATA;break;case c.PLAINTEXT:this.tokenizer.state=fe.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const i=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));i&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,O.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,O.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(N.HTML,O.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,c.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=r[(n?r.lastIndexOf(n):r.length)-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:a,endCol:s,endOffset:o}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:a,endCol:s,endOffset:o})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===J.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,e.tagID===c.SVG&&this.treeAdapter.getTagName(t)===N.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===O.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===c.MGLYPH||e.tagID===c.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,t,O.HTML)}_processToken(e){switch(e.type){case J.CHARACTER:this.onCharacter(e);break;case J.NULL_CHARACTER:this.onNullCharacter(e);break;case J.COMMENT:this.onComment(e);break;case J.DOCTYPE:this.onDoctype(e);break;case J.START_TAG:this._processStartTag(e);break;case J.END_TAG:this.onEndTag(e);break;case J.EOF:this.onEof(e);break;case J.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){const r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return Mh(e,r,i,n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(r=>r.type===Xe.Marker||this.openElements.contains(r.element)),n=t===-1?e-1:t-1;for(let r=n;r>=0;r--){const i=this.activeFormattingElements.entries[r];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=b.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case c.TR:this.insertionMode=b.IN_ROW;return;case c.TBODY:case c.THEAD:case c.TFOOT:this.insertionMode=b.IN_TABLE_BODY;return;case c.CAPTION:this.insertionMode=b.IN_CAPTION;return;case c.COLGROUP:this.insertionMode=b.IN_COLUMN_GROUP;return;case c.TABLE:this.insertionMode=b.IN_TABLE;return;case c.BODY:this.insertionMode=b.IN_BODY;return;case c.FRAMESET:this.insertionMode=b.IN_FRAMESET;return;case c.SELECT:this._resetInsertionModeForSelect(e);return;case c.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case c.HTML:this.insertionMode=this.headElement?b.AFTER_HEAD:b.BEFORE_HEAD;return;case c.TD:case c.TH:if(e>0){this.insertionMode=b.IN_CELL;return}break;case c.HEAD:if(e>0){this.insertionMode=b.IN_HEAD;return}}this.insertionMode=b.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const n=this.openElements.tagIDs[t];if(n===c.TEMPLATE)break;if(n===c.TABLE){this.insertionMode=b.IN_SELECT_IN_TABLE;return}}this.insertionMode=b.IN_SELECT}_isElementCausesFosterParenting(e){return dl.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case c.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===O.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case c.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return sh[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Ef(this,e);return}switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:cn(this,e);break;case b.BEFORE_HEAD:un(this,e);break;case b.IN_HEAD:hn(this,e);break;case b.IN_HEAD_NO_SCRIPT:dn(this,e);break;case b.AFTER_HEAD:fn(this,e);break;case b.IN_BODY:case b.IN_CAPTION:case b.IN_CELL:case b.IN_TEMPLATE:pl(this,e);break;case b.TEXT:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case b.IN_TABLE:case b.IN_TABLE_BODY:case b.IN_ROW:xr(this,e);break;case b.IN_TABLE_TEXT:kl(this,e);break;case b.IN_COLUMN_GROUP:Wn(this,e);break;case b.AFTER_BODY:Qn(this,e);break;case b.AFTER_AFTER_BODY:$n(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gf(this,e);return}switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:cn(this,e);break;case b.BEFORE_HEAD:un(this,e);break;case b.IN_HEAD:hn(this,e);break;case b.IN_HEAD_NO_SCRIPT:dn(this,e);break;case b.AFTER_HEAD:fn(this,e);break;case b.TEXT:this._insertCharacters(e);break;case b.IN_TABLE:case b.IN_TABLE_BODY:case b.IN_ROW:xr(this,e);break;case b.IN_COLUMN_GROUP:Wn(this,e);break;case b.AFTER_BODY:Qn(this,e);break;case b.AFTER_AFTER_BODY:$n(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Qr(this,e);return}switch(this.insertionMode){case b.INITIAL:case b.BEFORE_HTML:case b.BEFORE_HEAD:case b.IN_HEAD:case b.IN_HEAD_NO_SCRIPT:case b.AFTER_HEAD:case b.IN_BODY:case b.IN_TABLE:case b.IN_CAPTION:case b.IN_COLUMN_GROUP:case b.IN_TABLE_BODY:case b.IN_ROW:case b.IN_CELL:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:case b.IN_TEMPLATE:case b.IN_FRAMESET:case b.AFTER_FRAMESET:Qr(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.AFTER_BODY:Wh(this,e);break;case b.AFTER_AFTER_BODY:case b.AFTER_AFTER_FRAMESET:Qh(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case b.INITIAL:Gh(this,e);break;case b.BEFORE_HEAD:case b.IN_HEAD:case b.IN_HEAD_NO_SCRIPT:case b.AFTER_HEAD:this._err(e,L.misplacedDoctype);break;case b.IN_TABLE_TEXT:tn(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,L.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?Tf(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:Kh(this,e);break;case b.BEFORE_HEAD:Zh(this,e);break;case b.IN_HEAD:qe(this,e);break;case b.IN_HEAD_NO_SCRIPT:td(this,e);break;case b.AFTER_HEAD:rd(this,e);break;case b.IN_BODY:Ae(this,e);break;case b.IN_TABLE:jt(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.IN_CAPTION:Jd(this,e);break;case b.IN_COLUMN_GROUP:_i(this,e);break;case b.IN_TABLE_BODY:cr(this,e);break;case b.IN_ROW:ur(this,e);break;case b.IN_CELL:nf(this,e);break;case b.IN_SELECT:yl(this,e);break;case b.IN_SELECT_IN_TABLE:af(this,e);break;case b.IN_TEMPLATE:lf(this,e);break;case b.AFTER_BODY:cf(this,e);break;case b.IN_FRAMESET:uf(this,e);break;case b.AFTER_FRAMESET:df(this,e);break;case b.AFTER_AFTER_BODY:pf(this,e);break;case b.AFTER_AFTER_FRAMESET:mf(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?bf(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:Xh(this,e);break;case b.BEFORE_HEAD:Jh(this,e);break;case b.IN_HEAD:ed(this,e);break;case b.IN_HEAD_NO_SCRIPT:nd(this,e);break;case b.AFTER_HEAD:id(this,e);break;case b.IN_BODY:or(this,e);break;case b.TEXT:$d(this,e);break;case b.IN_TABLE:Tn(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.IN_CAPTION:ef(this,e);break;case b.IN_COLUMN_GROUP:tf(this,e);break;case b.IN_TABLE_BODY:Gr(this,e);break;case b.IN_ROW:Al(this,e);break;case b.IN_CELL:rf(this,e);break;case b.IN_SELECT:Cl(this,e);break;case b.IN_SELECT_IN_TABLE:sf(this,e);break;case b.IN_TEMPLATE:of(this,e);break;case b.AFTER_BODY:Il(this,e);break;case b.IN_FRAMESET:hf(this,e);break;case b.AFTER_FRAMESET:ff(this,e);break;case b.AFTER_AFTER_BODY:$n(this,e)}}onEof(e){switch(this.insertionMode){case b.INITIAL:en(this,e);break;case b.BEFORE_HTML:cn(this,e);break;case b.BEFORE_HEAD:un(this,e);break;case b.IN_HEAD:hn(this,e);break;case b.IN_HEAD_NO_SCRIPT:dn(this,e);break;case b.AFTER_HEAD:fn(this,e);break;case b.IN_BODY:case b.IN_TABLE:case b.IN_CAPTION:case b.IN_COLUMN_GROUP:case b.IN_TABLE_BODY:case b.IN_ROW:case b.IN_CELL:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:Tl(this,e);break;case b.TEXT:Yd(this,e);break;case b.IN_TABLE_TEXT:tn(this,e);break;case b.IN_TEMPLATE:xl(this,e);break;case b.AFTER_BODY:case b.IN_FRAMESET:case b.AFTER_FRAMESET:case b.AFTER_AFTER_BODY:case b.AFTER_AFTER_FRAMESET:ki(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===m.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case b.IN_HEAD:case b.IN_HEAD_NO_SCRIPT:case b.AFTER_HEAD:case b.TEXT:case b.IN_COLUMN_GROUP:case b.IN_SELECT:case b.IN_SELECT_IN_TABLE:case b.IN_FRAMESET:case b.AFTER_FRAMESET:this._insertCharacters(e);break;case b.IN_BODY:case b.IN_CAPTION:case b.IN_CELL:case b.IN_TEMPLATE:case b.AFTER_BODY:case b.AFTER_AFTER_BODY:case b.AFTER_AFTER_FRAMESET:fl(this,e);break;case b.IN_TABLE:case b.IN_TABLE_BODY:case b.IN_ROW:xr(this,e);break;case b.IN_TABLE_TEXT:bl(this,e)}}};function jh(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):El(e,t),n}function zh(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function $h(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=Hh;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Yh(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Yh(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function qh(e,t,n){const r=e.treeAdapter.getTagName(t),i=qt(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&a===O.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Vh(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function bi(e,t){for(let n=0;n<Fh;n++){const r=jh(e,t);if(!r)break;const i=zh(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=$h(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&qh(e,s,a),Vh(e,i,r)}}function Qr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Wh(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Qh(e,t){e._appendCommentNode(t,e.document)}function ki(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Gh(e,t){e._setDocumentType(t);const n=t.forceQuirks?Be.QUIRKS:xh(t);Ch(t)||e._err(t,L.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=b.BEFORE_HTML}function en(e,t){e._err(t,L.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Be.QUIRKS),e.insertionMode=b.BEFORE_HTML,e._processToken(t)}function Kh(e,t){t.tagID===c.HTML?(e._insertElement(t,O.HTML),e.insertionMode=b.BEFORE_HEAD):cn(e,t)}function Xh(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&cn(e,t)}function cn(e,t){e._insertFakeRootElement(),e.insertionMode=b.BEFORE_HEAD,e._processToken(t)}function Zh(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.HEAD:e._insertElement(t,O.HTML),e.headElement=e.openElements.current,e.insertionMode=b.IN_HEAD;break;default:un(e,t)}}function Jh(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?un(e,t):e._err(t,L.endTagWithoutMatchingOpenElement)}function un(e,t){e._insertFakeElement(N.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=b.IN_HEAD,e._processToken(t)}function qe(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.TITLE:e._switchToTextParsing(t,fe.RCDATA);break;case c.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,fe.RAWTEXT):(e._insertElement(t,O.HTML),e.insertionMode=b.IN_HEAD_NO_SCRIPT);break;case c.NOFRAMES:case c.STYLE:e._switchToTextParsing(t,fe.RAWTEXT);break;case c.SCRIPT:e._switchToTextParsing(t,fe.SCRIPT_DATA);break;case c.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=b.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(b.IN_TEMPLATE);break;case c.HEAD:e._err(t,L.misplacedStartTagForHeadElement);break;default:hn(e,t)}}function ed(e,t){switch(t.tagID){case c.HEAD:e.openElements.pop(),e.insertionMode=b.AFTER_HEAD;break;case c.BODY:case c.BR:case c.HTML:hn(e,t);break;case c.TEMPLATE:St(e,t);break;default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function St(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,L.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,L.endTagWithoutMatchingOpenElement)}function hn(e,t){e.openElements.pop(),e.insertionMode=b.AFTER_HEAD,e._processToken(t)}function td(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:qe(e,t);break;case c.NOSCRIPT:e._err(t,L.nestedNoscriptInHead);break;default:dn(e,t)}}function nd(e,t){switch(t.tagID){case c.NOSCRIPT:e.openElements.pop(),e.insertionMode=b.IN_HEAD;break;case c.BR:dn(e,t);break;default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function dn(e,t){const n=t.type===J.EOF?L.openElementsLeftAfterEof:L.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=b.IN_HEAD,e._processToken(t)}function rd(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.BODY:e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=b.IN_BODY;break;case c.FRAMESET:e._insertElement(t,O.HTML),e.insertionMode=b.IN_FRAMESET;break;case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:e._err(t,L.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),qe(e,t),e.openElements.remove(e.headElement);break;case c.HEAD:e._err(t,L.misplacedStartTagForHeadElement);break;default:fn(e,t)}}function id(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:fn(e,t);break;case c.TEMPLATE:St(e,t);break;default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function fn(e,t){e._insertFakeElement(N.BODY,c.BODY),e.insertionMode=b.IN_BODY,lr(e,t)}function lr(e,t){switch(t.type){case J.CHARACTER:pl(e,t);break;case J.WHITESPACE_CHARACTER:fl(e,t);break;case J.COMMENT:Qr(e,t);break;case J.START_TAG:Ae(e,t);break;case J.END_TAG:or(e,t);break;case J.EOF:Tl(e,t)}}function fl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function pl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ad(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function sd(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function ld(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_FRAMESET)}function od(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function cd(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Wr.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,O.HTML)}function ud(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function hd(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),n||(e.formElement=e.openElements.current))}function dd(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===c.LI&&i===c.LI||(n===c.DD||n===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML)}function fd(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.tokenizer.state=fe.PLAINTEXT}function pd(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1}function md(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(N.A);n&&(bi(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function gd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ed(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(bi(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,O.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Td(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function bd(e,t){e.treeAdapter.getDocumentMode(e.document)!==Be.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=b.IN_TABLE}function ml(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gl(e){const t=il(e,yt.TYPE);return t!=null&&t.toLowerCase()===Bh}function kd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,O.HTML),gl(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function _d(e,t){e._appendElement(t,O.HTML),t.ackSelfClosing=!0}function Ad(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,O.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yd(e,t){t.tagName=N.IMG,t.tagID=c.IMG,ml(e,t)}function Cd(e,t){e._insertElement(t,O.HTML),e.skipNextNewLine=!0,e.tokenizer.state=fe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=b.TEXT}function xd(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function Id(e,t){e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function _a(e,t){e._switchToTextParsing(t,fe.RAWTEXT)}function Nd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===b.IN_TABLE||e.insertionMode===b.IN_CAPTION||e.insertionMode===b.IN_TABLE_BODY||e.insertionMode===b.IN_ROW||e.insertionMode===b.IN_CELL?b.IN_SELECT_IN_TABLE:b.IN_SELECT}function Sd(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function vd(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,O.HTML)}function wd(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,O.HTML)}function Ld(e,t){e._reconstructActiveFormattingElements(),ul(t),Ti(t),t.selfClosing?e._appendElement(t,O.MATHML):e._insertElement(t,O.MATHML),t.ackSelfClosing=!0}function Rd(e,t){e._reconstructActiveFormattingElements(),hl(t),Ti(t),t.selfClosing?e._appendElement(t,O.SVG):e._insertElement(t,O.SVG),t.ackSelfClosing=!0}function Aa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,O.HTML)}function Ae(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:gd(e,t);break;case c.A:md(e,t);break;case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:cd(e,t);break;case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:od(e,t);break;case c.LI:case c.DD:case c.DT:dd(e,t);break;case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:ml(e,t);break;case c.HR:Ad(e,t);break;case c.RB:case c.RTC:vd(e,t);break;case c.RT:case c.RP:wd(e,t);break;case c.PRE:case c.LISTING:ud(e,t);break;case c.XMP:xd(e,t);break;case c.SVG:Rd(e,t);break;case c.HTML:ad(e,t);break;case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:qe(e,t);break;case c.BODY:sd(e,t);break;case c.FORM:hd(e,t);break;case c.NOBR:Ed(e,t);break;case c.MATH:Ld(e,t);break;case c.TABLE:bd(e,t);break;case c.INPUT:kd(e,t);break;case c.PARAM:case c.TRACK:case c.SOURCE:_d(e,t);break;case c.IMAGE:yd(e,t);break;case c.BUTTON:pd(e,t);break;case c.APPLET:case c.OBJECT:case c.MARQUEE:Td(e,t);break;case c.IFRAME:Id(e,t);break;case c.SELECT:Nd(e,t);break;case c.OPTION:case c.OPTGROUP:Sd(e,t);break;case c.NOEMBED:case c.NOFRAMES:_a(e,t);break;case c.FRAMESET:ld(e,t);break;case c.TEXTAREA:Cd(e,t);break;case c.NOSCRIPT:e.options.scriptingEnabled?_a(e,t):Aa(e,t);break;case c.PLAINTEXT:fd(e,t);break;case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:Aa(e,t)}}function Od(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=b.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Dd(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=b.AFTER_BODY,Il(e,t))}function Pd(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Md(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function Bd(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(N.P,c.P),e._closePElement()}function Fd(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function Hd(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Ud(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jd(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function zd(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(N.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function El(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function or(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:bi(e,t);break;case c.P:Bd(e);break;case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:Pd(e,t);break;case c.LI:Fd(e);break;case c.DD:case c.DT:Hd(e,t);break;case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:Ud(e);break;case c.BR:zd(e);break;case c.BODY:Od(e,t);break;case c.HTML:Dd(e,t);break;case c.FORM:Md(e);break;case c.APPLET:case c.OBJECT:case c.MARQUEE:jd(e,t);break;case c.TEMPLATE:St(e,t);break;default:El(e,t)}}function Tl(e,t){e.tmplInsertionModeStack.length>0?xl(e,t):ki(e,t)}function $d(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Yd(e,t){e._err(t,L.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function xr(e,t){if(e.openElements.currentTagId!==void 0&&dl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=b.IN_TABLE_TEXT,t.type){case J.CHARACTER:kl(e,t);break;case J.WHITESPACE_CHARACTER:bl(e,t)}else Cn(e,t)}function qd(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_CAPTION}function Vd(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_COLUMN_GROUP}function Wd(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.COLGROUP,c.COLGROUP),e.insertionMode=b.IN_COLUMN_GROUP,_i(e,t)}function Qd(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_TABLE_BODY}function Gd(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.TBODY,c.TBODY),e.insertionMode=b.IN_TABLE_BODY,cr(e,t)}function Kd(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Xd(e,t){gl(t)?e._appendElement(t,O.HTML):Cn(e,t),t.ackSelfClosing=!0}function Zd(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,O.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function jt(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:Gd(e,t);break;case c.STYLE:case c.SCRIPT:case c.TEMPLATE:qe(e,t);break;case c.COL:Wd(e,t);break;case c.FORM:Zd(e,t);break;case c.TABLE:Kd(e,t);break;case c.TBODY:case c.TFOOT:case c.THEAD:Qd(e,t);break;case c.INPUT:Xd(e,t);break;case c.CAPTION:qd(e,t);break;case c.COLGROUP:Vd(e,t);break;default:Cn(e,t)}}function Tn(e,t){switch(t.tagID){case c.TABLE:e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break;case c.TEMPLATE:St(e,t);break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Cn(e,t)}}function Cn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,lr(e,t),e.fosterParentingEnabled=n}function bl(e,t){e.pendingCharacterTokens.push(t)}function kl(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Cn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var _l=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function Jd(e,t){const n=t.tagID;_l.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=b.IN_TABLE,jt(e,t)):Ae(e,t)}function ef(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=b.IN_TABLE,n===c.TABLE&&Tn(e,t));break;case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:or(e,t)}}function _i(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.COL:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.TEMPLATE:qe(e,t);break;default:Wn(e,t)}}function tf(e,t){switch(t.tagID){case c.COLGROUP:e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=b.IN_TABLE);break;case c.TEMPLATE:St(e,t);break;case c.COL:break;default:Wn(e,t)}}function Wn(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=b.IN_TABLE,e._processToken(t))}function cr(e,t){switch(t.tagID){case c.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_ROW;break;case c.TH:case c.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(N.TR,c.TR),e.insertionMode=b.IN_ROW,ur(e,t);break;case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE,jt(e,t));break;default:jt(e,t)}}function Gr(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE);break;case c.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE,Tn(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Tn(e,t)}}function ur(e,t){switch(t.tagID){case c.TH:case c.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,O.HTML),e.insertionMode=b.IN_CELL,e.activeFormattingElements.insertMarker();break;case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY,cr(e,t));break;default:jt(e,t)}}function Al(e,t){switch(t.tagID){case c.TR:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY);break;case c.TABLE:e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY,Gr(e,t));break;case c.TBODY:case c.TFOOT:case c.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=b.IN_TABLE_BODY,Gr(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Tn(e,t)}}function nf(e,t){const n=t.tagID;_l.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),ur(e,t)):Ae(e,t)}function rf(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=b.IN_ROW);break;case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Al(e,t));break;case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:or(e,t)}}function yl(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.OPTION:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,O.HTML);break;case c.OPTGROUP:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,O.HTML);break;case c.HR:e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break;case c.SCRIPT:case c.TEMPLATE:qe(e,t)}}function Cl(e,t){switch(t.tagID){case c.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break;case c.OPTION:e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break;case c.SELECT:e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break;case c.TEMPLATE:St(e,t)}}function af(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):yl(e,t)}function sf(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Cl(e,t)}function lf(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:qe(e,t);break;case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:e.tmplInsertionModeStack[0]=b.IN_TABLE,e.insertionMode=b.IN_TABLE,jt(e,t);break;case c.COL:e.tmplInsertionModeStack[0]=b.IN_COLUMN_GROUP,e.insertionMode=b.IN_COLUMN_GROUP,_i(e,t);break;case c.TR:e.tmplInsertionModeStack[0]=b.IN_TABLE_BODY,e.insertionMode=b.IN_TABLE_BODY,cr(e,t);break;case c.TD:case c.TH:e.tmplInsertionModeStack[0]=b.IN_ROW,e.insertionMode=b.IN_ROW,ur(e,t);break;default:e.tmplInsertionModeStack[0]=b.IN_BODY,e.insertionMode=b.IN_BODY,Ae(e,t)}}function of(e,t){t.tagID===c.TEMPLATE&&St(e,t)}function xl(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ki(e,t)}function cf(e,t){t.tagID===c.HTML?Ae(e,t):Qn(e,t)}function Il(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=b.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Qn(e,t)}function Qn(e,t){e.insertionMode=b.IN_BODY,lr(e,t)}function uf(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.FRAMESET:e._insertElement(t,O.HTML);break;case c.FRAME:e._appendElement(t,O.HTML),t.ackSelfClosing=!0;break;case c.NOFRAMES:qe(e,t)}}function hf(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=b.AFTER_FRAMESET))}function df(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.NOFRAMES:qe(e,t)}}function ff(e,t){t.tagID===c.HTML&&(e.insertionMode=b.AFTER_AFTER_FRAMESET)}function pf(e,t){t.tagID===c.HTML?Ae(e,t):$n(e,t)}function $n(e,t){e.insertionMode=b.IN_BODY,lr(e,t)}function mf(e,t){switch(t.tagID){case c.HTML:Ae(e,t);break;case c.NOFRAMES:qe(e,t)}}function gf(e,t){t.chars="�",e._insertCharacters(t)}function Ef(e,t){e._insertCharacters(t),e.framesetOk=!1}function Nl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==O.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Tf(e,t){if(Rh(t))Nl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===O.MATHML?ul(t):r===O.SVG&&(Oh(t),hl(t)),Ti(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function bf(e,t){if(t.tagID===c.P||t.tagID===c.BR){Nl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===O.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}var Hy=new Set([N.AREA,N.BASE,N.BASEFONT,N.BGSOUND,N.BR,N.COL,N.EMBED,N.FRAME,N.HR,N.IMG,N.INPUT,N.KEYGEN,N.LINK,N.META,N.PARAM,N.SOURCE,N.TRACK,N.WBR]),hr=Sl("end"),Ze=Sl("start");function Sl(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 vl(e){const t=Ze(e),n=hr(e);if(t&&n)return{start:t,end:n}}var kf=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,_f=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ya={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wl(e,t){const n=Lf(e),r=Js("type",{handlers:{root:Af,element:yf,text:Cf,comment:Rl,doctype:xf,raw:Nf},unknown:Sf}),i={parser:n?new ka(ya):ka.getFragmentParser(void 0,ya),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),Vt(i,Ze());const a=n?i.parser.document:i.parser.getFragment(),s=Lu(a,{file:i.options.file});return i.stitches&&Ye(s,"comment",function(o,l,u){const h=o;if(h.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=h.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Ll(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Af(e,t){Ll(e.children,t)}function yf(e,t){vf(e,t),Ll(e.children,t),wf(e,t)}function Cf(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:J.CHARACTER,chars:e.value,location:xn(e)};Vt(t,Ze(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function xf(e,t){const n={type:J.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xn(e)};Vt(t,Ze(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function If(e,t){t.stitches=!0;const n=Rf(e);"children"in e&&"children"in n&&(n.children=wl({type:"root",children:e.children},t.options).children),Rl({type:"comment",value:{stitch:n}},t)}function Rl(e,t){const n=e.value,r={type:J.COMMENT,data:n,location:xn(e)};Vt(t,Ze(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Nf(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ol(t,Ze(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(kf,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Sf(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))If(n,t);else{let r="";throw _f.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Vt(e,t){Ol(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=fe.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ol(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function vf(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===fe.PLAINTEXT)return;Vt(t,Ze(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:At.html;i===At.html&&n==="svg"&&(i=At.svg);const a=Mu({...e,children:[]},{space:i===At.svg?"svg":"html"}),s={type:J.START_TAG,tagName:n,tagID:qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:xn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function wf(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Yu.includes(n)||t.parser.tokenizer.state===fe.PLAINTEXT)return;Vt(t,hr(e));const r={type:J.END_TAG,tagName:n,tagID:qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===fe.RCDATA||t.parser.tokenizer.state===fe.RAWTEXT||t.parser.tokenizer.state===fe.SCRIPT_DATA)&&(t.parser.tokenizer.state=fe.DATA)}function Lf(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function xn(e){const t=Ze(e)||{line:void 0,column:void 0,offset:void 0},n=hr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Rf(e){return"children"in e?Ct({...e,children:[]}):Ct(e)}function Kr(e){return function(t,n){return wl(t,{...e,file:n})}}var Tt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],kt={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Tt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Tt],h2:[["className","sr-only"]],img:[...Tt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Tt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Tt],table:[...Tt],ul:[...Tt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},ft={}.hasOwnProperty;function Of(e,t){let n={type:"root",children:[]};const r=Dl({schema:t?{...kt,...t}:kt,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function Dl(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return Df(e,n);case"doctype":return Pf(e,n);case"element":return Mf(e,n);case"root":return Bf(e,n);case"text":return Ff(e,n)}}}function Df(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),i={type:"comment",value:r<0?n:n.slice(0,r)};return In(i,t),i}}function Pf(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return In(n,t),n}}function Mf(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=Pl(e,t.children),i=Hf(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&ft.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(a=!1;++l<o.length;)e.stack.includes(o[l])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return In(s,t),s}function Bf(e,t){const n={type:"root",children:Pl(e,t.children)};return In(n,t),n}function Ff(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return In(n,t),n}function Pl(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=Dl(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function Hf(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&ft.call(r,n)?r[n]:void 0,s=r&&ft.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(ft.call(o,u)){const h=o[u];let d=Ca(e,xa(a,u),u,h);d==null&&(d=Ca(e,xa(s,u),u,h)),d!=null&&(l[u]=d)}if(i&&ft.call(i,n)){const h=i[n];for(u in h)ft.call(h,u)&&!ft.call(l,u)&&(l[u]=h[u])}return l}function Ca(e,t,n,r){return t?Array.isArray(r)?Uf(e,t,n,r):Ml(e,t,n,r):void 0}function Uf(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=Ml(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function Ml(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&jf(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function jf(e,t,n){const r=e.schema.protocols&&ft.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u<r.length;){const h=r[u];if(a===h.length&&i.slice(0,h.length)===h)return!0}return!1}function In(e,t){const n=vl(t);t.data&&(e.data=Ct(t.data)),n&&(e.position=n)}function xa(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function Bl(e){return function(t){return Of(t,e)}}function Ia(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Ie=Et(/[A-Za-z]/),_e=Et(/[\dA-Za-z]/),zf=Et(/[#-'*+\--9=?A-Z^-~]/);function Gn(e){return e!==null&&(e<32||e===127)}var Xr=Et(/\d/),$f=Et(/[\dA-Fa-f]/),Yf=Et(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function oe(e){return e!==null&&(e<0||e===32)}function te(e){return e===-2||e===-1||e===32}var dr=Et(new RegExp("\\p{P}|\\p{S}","u")),xt=Et(/\s/);function Et(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function qf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Vf(e,t,n){const r=rr((n||{}).ignore||[]),i=Wf(t);let a=-1;for(;++a<i.length;)ar(e,"text",s);function s(l,u){let h=-1,d;for(;++h<u.length;){const p=u[h],f=d?d.children:void 0;if(r(p,f?f.indexOf(p):void 0,d))return;d=p}if(d)return o(l,u)}function o(l,u){const h=u[u.length-1],d=i[a][0],p=i[a][1];let f=0;const E=h.children.indexOf(l);let C=!1,w=[];d.lastIndex=0;let k=d.exec(l.value);for(;k;){const I=k.index,x={index:k.index,input:k.input,stack:[...u,l]};let D=p(...k,x);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?d.lastIndex=I+1:(f!==I&&w.push({type:"text",value:l.value.slice(f,I)}),Array.isArray(D)?w.push(...D):D&&w.push(D),f=I+k[0].length,C=!0),!d.global)break;k=d.exec(l.value)}return C?(f<l.value.length&&w.push({type:"text",value:l.value.slice(f)}),h.children.splice(E,1,...w)):w=[l],E+w.length}}function Wf(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 i=n[r];t.push([Qf(i[0]),Gf(i[1])])}return t}function Qf(e){return typeof e=="string"?new RegExp(qf(e),"g"):e}function Gf(e){return typeof e=="function"?e:function(){return e}}var Ir="phrasing",Nr=["autolink","link","image","label"];function Kf(){return{transforms:[rp],enter:{literalAutolink:Zf,literalAutolinkEmail:Sr,literalAutolinkHttp:Sr,literalAutolinkWww:Sr},exit:{literalAutolink:np,literalAutolinkEmail:tp,literalAutolinkHttp:Jf,literalAutolinkWww:ep}}}function Xf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ir,notInConstruct:Nr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ir,notInConstruct:Nr},{character:":",before:"[ps]",after:"\\/",inConstruct:Ir,notInConstruct:Nr}]}}function Zf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Sr(e){this.config.enter.autolinkProtocol.call(this,e)}function Jf(e){this.config.exit.autolinkProtocol.call(this,e)}function ep(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 tp(e){this.config.exit.autolinkEmail.call(this,e)}function np(e){this.exit(e)}function rp(e){Vf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ip],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ap]],{ignore:["link","linkReference"]})}function ip(e,t,n,r,i){let a="";if(!Fl(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!sp(n)))return!1;const s=lp(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function ap(e,t,n,r){return!Fl(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function sp(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 lp(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 i=Ia(e,"(");let a=Ia(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Fl(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||xt(n)||dr(n))&&(!t||n!==47)}function $e(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Hl.peek=gp;function op(){this.buffer()}function cp(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function up(){this.buffer()}function hp(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function dp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=$e(this.sliceSerialize(e)).toLowerCase(),n.label=t}function fp(e){this.exit(e)}function pp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=$e(this.sliceSerialize(e)).toLowerCase(),n.label=t}function mp(e){this.exit(e)}function gp(){return"["}function Hl(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function Ep(){return{enter:{gfmFootnoteCallString:op,gfmFootnoteCall:cp,gfmFootnoteDefinitionLabelString:up,gfmFootnoteDefinition:hp},exit:{gfmFootnoteCallString:dp,gfmFootnoteCall:fp,gfmFootnoteDefinitionLabelString:pp,gfmFootnoteDefinition:mp}}}function Tp(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Hl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),h=a.enter("label");return l+=o.move(a.safe(a.associationId(r),{before:l,after:"]"})),h(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
4
4
|
`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Ul:bp))),u(),l}}function bp(e,t,n){return t===0?e:Ul(e,t,n)}function Ul(e,t,n){return(n?"":" ")+e}var kp=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jl.peek=xp;function _p(){return{canContainEols:["delete"],enter:{strikethrough:yp},exit:{strikethrough:Cp}}}function Ap(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kp}],handlers:{delete:jl}}}function yp(e){this.enter({type:"delete",children:[]},e)}function Cp(e){this.exit(e)}function jl(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function xp(){return"~"}function Ip(e){return e.length}function Np(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ip,a=[],s=[],o=[],l=[];let u=0,h=-1;for(;++h<e.length;){const C=[],w=[];let k=-1;for(e[h].length>u&&(u=e[h].length);++k<e[h].length;){const I=Sp(e[h][k]);if(n.alignDelimiters!==!1){const x=i(I);w[k]=x,(l[k]===void 0||x>l[k])&&(l[k]=x)}C.push(I)}s[h]=C,o[h]=w}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)a[d]=Na(r[d]);else{const C=Na(r);for(;++d<u;)a[d]=C}d=-1;const p=[],f=[];for(;++d<u;){const C=a[d];let w="",k="";C===99?(w=":",k=":"):C===108?w=":":C===114&&(k=":");let I=n.alignDelimiters===!1?1:Math.max(1,l[d]-w.length-k.length);const x=w+"-".repeat(I)+k;n.alignDelimiters!==!1&&(I=w.length+I+k.length,I>l[d]&&(l[d]=I),f[d]=I),p[d]=x}s.splice(1,0,p),o.splice(1,0,f),h=-1;const E=[];for(;++h<s.length;){const C=s[h],w=o[h];d=-1;const k=[];for(;++d<u;){const I=C[d]||"";let x="",D="";if(n.alignDelimiters!==!1){const B=l[d]-(w[d]||0),v=a[d];v===114?x=" ".repeat(B):v===99?B%2?(x=" ".repeat(B/2+.5),D=" ".repeat(B/2-.5)):(x=" ".repeat(B/2),D=x):D=" ".repeat(B)}n.delimiterStart!==!1&&!d&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||d)&&k.push(" "),n.alignDelimiters!==!1&&k.push(x),k.push(I),n.alignDelimiters!==!1&&k.push(D),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&k.push("|")}E.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return E.join(`
|
|
5
5
|
`)}function Sp(e){return e==null?"":String(e)}function Na(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 vp(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),wp);return i(),s}function wp(e,t,n){return">"+(n?"":" ")+e}function Lp(e,t){return Sa(e,t.inConstruct,!0)&&!Sa(e,t.notInConstruct,!1)}function Sa(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 va(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
@@ -108,7 +108,7 @@ ${e}</tr>
|
|
|
108
108
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ge(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=fs(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+Ge(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=fs(e);if(i===null)return Ge(n);e=i;let a=`<img src="${e}" alt="${Ge(n)}"`;return t&&(a+=` title="${Ge(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ge(e.text)}},zi=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ze=class si{options;renderer;textRenderer;constructor(t){this.options=t||wt,this.options.renderer=this.options.renderer||new er,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new zi}static parse(t,n){return new si(n).parse(t)}static parseInline(t,n){return new si(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let s=i,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=o||"";continue}}let a=i;switch(a.type){case"space":n+=this.renderer.space(a);break;case"hr":n+=this.renderer.hr(a);break;case"heading":n+=this.renderer.heading(a);break;case"code":n+=this.renderer.code(a);break;case"table":n+=this.renderer.table(a);break;case"blockquote":n+=this.renderer.blockquote(a);break;case"list":n+=this.renderer.list(a);break;case"checkbox":n+=this.renderer.checkbox(a);break;case"html":n+=this.renderer.html(a);break;case"def":n+=this.renderer.def(a);break;case"paragraph":n+=this.renderer.paragraph(a);break;case"text":n+=this.renderer.text(a);break;default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=o||"";continue}}let s=a;switch(s.type){case"escape":r+=n.text(s);break;case"html":r+=n.html(s);break;case"link":r+=n.link(s);break;case"image":r+=n.image(s);break;case"checkbox":r+=n.checkbox(s);break;case"strong":r+=n.strong(s);break;case"em":r+=n.em(s);break;case"codespan":r+=n.codespan(s);break;case"br":r+=n.br(s);break;case"del":r+=n.del(s);break;case"text":r+=n.text(s);break;default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},ln=class{options;block;constructor(e){this.options=e||wt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?He.lex:He.lexInline}provideParser(e=this.block){return e?ze.parse:ze.parseInline}},D_=class{defaults=Di();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ze;Renderer=er;TextRenderer=zi;Lexer=He;Tokenizer=Jn;Hooks=ln;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let s of a)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let o=i.renderer.apply(this,s);return o===!1&&(o=a.apply(this,s)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new er(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,o=n.renderer[s],l=i[s];i[s]=(...u)=>{let h=o.apply(i,u);return h===!1&&(h=l.apply(i,u)),h||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Jn(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,o=n.tokenizer[s],l=i[s];i[s]=(...u)=>{let h=o.apply(i,u);return h===!1&&(h=l.apply(i,u)),h}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new ln;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,o=n.hooks[s],l=i[s];ln.passThroughHooks.has(a)?i[s]=u=>{if(this.defaults.async&&ln.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await o.call(i,u);return l.call(i,d)})();let h=o.call(i,u);return l.call(i,h)}:i[s]=(...u)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(i,u);return d===!1&&(d=await l.apply(i,u)),d})();let h=o.apply(i,u);return h===!1&&(h=l.apply(i,u)),h}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(s){let o=[];return o.push(a.call(this,s)),i&&(o=o.concat(i.call(this,s))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return He.lex(e,t??this.defaults)}parser(e,t){return ze.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer(e):e?He.lex:He.lexInline)(s,i),l=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser(e):e?ze.parse:ze.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer(e):e?He.lex:He.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let o=(i.hooks?i.hooks.provideParser(e):e?ze.parse:ze.parseInline)(s,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(s){return a(s)}}}onError(e,t){return n=>{if(n.message+=`
|
|
109
109
|
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Ge(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},It=new D_;function le(e,t){return It.parse(e,t)}le.options=le.setOptions=function(e){return It.setOptions(e),le.defaults=It.defaults,Ho(le.defaults),le};le.getDefaults=Di;le.defaults=wt;le.use=function(...e){return It.use(...e),le.defaults=It.defaults,Ho(le.defaults),le};le.walkTokens=function(e,t){return It.walkTokens(e,t)};le.parseInline=It.parseInline;le.Parser=ze;le.parser=ze.parse;le.Renderer=er;le.TextRenderer=zi;le.Lexer=He;le.lexer=He.lex;le.Tokenizer=Jn;le.Hooks=ln;le.parse=le;var Uy=le.options,jy=le.setOptions,zy=le.use,$y=le.walkTokens,Yy=le.parseInline,qy=ze.parse,Vy=He.lex,P_=300,M_="300px",B_=500;function F_(e={}){let{immediate:t=!1,debounceDelay:n=P_,rootMargin:r=M_,idleTimeout:i=B_}=e,[a,s]=(0,y.useState)(!1),o=(0,y.useRef)(null),l=(0,y.useRef)(null),u=(0,y.useRef)(null),h=(0,y.useMemo)(()=>f=>{let E=Date.now();return window.setTimeout(()=>{f({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-E))})},1)},[]),d=(0,y.useMemo)(()=>typeof window<"u"&&window.requestIdleCallback?(f,E)=>window.requestIdleCallback(f,E):h,[h]),p=(0,y.useMemo)(()=>typeof window<"u"&&window.cancelIdleCallback?f=>window.cancelIdleCallback(f):f=>{clearTimeout(f)},[]);return(0,y.useEffect)(()=>{if(t){s(!0);return}let f=o.current;if(!f)return;l.current&&(clearTimeout(l.current),l.current=null),u.current&&(p(u.current),u.current=null);let E=()=>{l.current&&(clearTimeout(l.current),l.current=null),u.current&&(p(u.current),u.current=null)},C=x=>{u.current=d(D=>{D.timeRemaining()>0||D.didTimeout?(s(!0),x.disconnect()):u.current=d(()=>{s(!0),x.disconnect()},{timeout:i/2})},{timeout:i})},w=x=>{E(),l.current=window.setTimeout(()=>{var D,B;let v=x.takeRecords();(v.length===0||(B=(D=v.at(-1))==null?void 0:D.isIntersecting)!=null&&B)&&C(x)},n)},k=(x,D)=>{x.isIntersecting?w(D):E()},I=new IntersectionObserver(x=>{for(let D of x)k(D,I)},{rootMargin:r,threshold:0});return I.observe(f),()=>{l.current&&clearTimeout(l.current),u.current&&p(u.current),I.disconnect()}},[t,n,r,i,p,d]),{shouldRender:a,containerRef:o}}var H_=320,U_=4,Qo=()=>typeof performance>"u"?Date.now():performance.now();function gs(e){var t,n;let r=(t=e?.now)!=null?t:Qo,i=(n=e?.maxBacklogMs)!=null?n:H_,a=0,s=0;return{now:r,beginPass(o){s=Math.min(Math.max(a,o),o+i)},mark(){return s},rewind(o){s=o},take(o,l,u){if(o<=0)return{baseDelay:0,step:Math.max(0,l)};let h=Math.max(0,l),d=h===0?0:Math.min(h,U_),p=Math.max(s,u),f=u+i,E=p+Math.max(0,o-1)*h,C=h;if(E>f&&o>1)if(p<f){let k=f-p;C=Math.max(d,k/(o-1))}else C=d;let w=Math.max(0,Math.round(p-u));return s=p+o*C,{baseDelay:w,step:C}},commitPass(){a=s}}}var Go=/\s/,$i=/^\s+$/,j_=new Set(["pre","svg","math","annotation"]),z_=new Set(["img","hr"]),wn=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",Yi=e=>e.some(t=>wn(t)&&j_.has(t.tagName)),$_=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(wn(n)&&n.tagName==="li")return n}},Y_=(e,t,n,r)=>{e.properties??={},e.properties["data-sd-animate-marker"]=!0;let i=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${i}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${r}`},q_=new Set(["ul","ol","li"]),Ko=e=>{for(let t of e.children)if(wn(t)){if(t.tagName==="input")return t;if(q_.has(t.tagName))continue;let n=Ko(t);if(n)return n}},Xo=(e,t,n,r)=>{e.properties??={},e.properties["data-sd-animate"]=!0;let i=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${i}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(r)}ms`},V_=(e,t,n,r)=>{let i=Ko(e);i&&Xo(i,t,n,r)},W_=(e,t,n,r,i,a)=>{if(Yi(t))return;let s=r.prevContentLength,o=i.count;i.count+=1;let l=s>0&&o<s,u=l?0:a.baseDelay+i.newIndex++*a.step;Xo(e,n,l?0:n.duration,u)},Q_=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let r=e[n];if(wn(r)){if((t=r.properties)!=null&&t["data-sd-animated"])break;r.properties={...r.properties,"data-sd-animated":!0}}}},Zo=e=>{let t=[],n="",r=!1;for(let i of e){let a=Go.test(i);if(a!==r&&n){if(a){n+=i,r=!0;continue}t.push(n),n=""}n+=i,r=a}return n&&t.push(n),t},Jo=e=>{let t=[],n="";for(let r of e)Go.test(r)?t.length>0&&!$i.test(t.at(-1))?t[t.length-1]+=r:n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},G_=(e,t,n,r,i,a)=>{let s=`--sd-animation:sd-${t};--sd-duration:${i?0:n}ms;--sd-easing:${r}`;return a&&(s+=`;--sd-delay:${Math.round(a)}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},Es=(e,t)=>!(e>0&&t<e),li=e=>wn(e)&&z_.has(e.tagName),K_=(e,t,n)=>{let r=0,i=0;return ar(e,a=>a.type==="text"||li(a),(a,s)=>{if(Yi(s))return Mt;if(li(a)){Es(n,i)&&(r+=1),i+=1;return}let o=a.value;if(!o.trim()){i+=o.length;return}let l=t.sep==="char"?Jo(o):Zo(o);for(let u of l){let h=i;i+=u.length,!$i.test(u)&&Es(n,h)&&(r+=1)}}),r},X_=(e,t,n,r,i,a)=>{var s;let o=t.at(-1);if(!(o&&"children"in o))return;if(Yi(t))return Mt;let l=o,u=l.children.indexOf(e);if(u===-1)return;let h=e.value;if(!h.trim()){i.count+=h.length;return}let d=n.sep==="char"?Jo(h):Zo(h),p=r.prevContentLength,f=!1,E=$_(t),C=!!(E&&!((s=E.properties)!=null&&s["data-sd-animate-marker"])),w=!1,k=d.map(I=>{let x=i.count;if(i.count+=I.length,$i.test(I))return{type:"text",value:I};let D=p>0&&x<p,B=D?0:a.baseDelay+i.newIndex++*a.step;if(f=!0,E&&C&&!w){let v=D?0:n.duration;Y_(E,v,B,n.easing),V_(E,n,v,B),w=!0}return G_(I,n.animation,n.duration,n.easing,D,B)});return f&&Q_(t),l.children.splice(u,1,...k),u+k.length},Z_=0;function ec(e){var t,n,r,i,a;let s={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(r=e?.easing)!=null?r:"ease",sep:(i=e?.sep)!=null?i:"word",stagger:(a=e?.stagger)!=null?a:40,timeline:e?.timeline},o={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},l=Z_++,u=()=>h=>{var d;let p={count:0,newIndex:0};o.prevContentLength=o.committedCharCount;let f=s.timeline,E=(d=f?.now())!=null?d:Qo();f&&(o.pendingMark===null?o.pendingMark=f.mark():f.rewind(o.pendingMark));let C=f?f.take(K_(h,s,o.prevContentLength),s.stagger,E):{baseDelay:0,step:s.stagger};ar(h,w=>w.type==="text"||li(w),(w,k)=>{if(w.type==="text")return X_(w,k,s,o,p,C);W_(w,k,s,o,p,C)}),o.lastRenderCharCount=p.count,o.prevContentLength=0};return Object.defineProperty(u,"name",{value:`rehypeAnimate$${l}`}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(h){o.committedCharCount=h,o.prevContentLength=h},getLastRenderCharCount(){return o.lastRenderCharCount},commit(){o.committedCharCount=o.lastRenderCharCount,o.pendingMark=null}}}ec();var tc=(0,y.createContext)(!1),J_=()=>(0,y.useContext)(tc),Er=(...e)=>Ms(Bs(e)),eA=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(r=>r.startsWith(n)?r:`${e}:${r}`).join(" ")},tA=e=>e?(...t)=>eA(e,Ms(Bs(t))):Er,Ht=(e,t,n)=>{let r=typeof t=="string"&&n.startsWith("text/csv")?"\uFEFF":"",i=typeof t=="string"?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},oi=(0,y.createContext)(Er),ee=()=>(0,y.useContext)(oi),nA=8,nc=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},rc=(e,t,n)=>{let r=(0,y.useRef)(null),i=(0,y.useRef)(!0),a=(0,y.useRef)(!1);return(0,y.useEffect)(()=>{let s=r.current;if(!(s&&t))return;let o=()=>{let l=s.scrollHeight-s.scrollTop-s.clientHeight<nA;i.current=l};return s.addEventListener("scroll",o,{passive:!0}),()=>s.removeEventListener("scroll",o)},[t]),(0,y.useEffect)(()=>{e&&!a.current&&(i.current=!0),e||(i.current=!0),a.current=e},[e]),(0,y.useEffect)(()=>{let s=r.current;s&&t&&e&&i.current&&s.scrollTo({top:s.scrollHeight,behavior:"instant"})},[e,t,n]),r},rA=Er("block"),iA=Er("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),aA=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let i=n.slice(0,r).trim(),a=n.slice(r+1).trim();i&&a&&(t[i]=a)}}return t},sA=(0,y.memo)(({children:e,result:t,language:n,className:r,maxHeight:i,startLine:a,lineNumbers:s=!0,...o})=>{let l=ee(),{isAnimating:u}=(0,y.useContext)(ke),h=nc(i),d=rc(u,!!h,t),p=(0,y.useMemo)(()=>l(iA),[l]),f=(0,y.useMemo)(()=>l(rA),[l]),E=(0,y.useMemo)(()=>{let C={};return t.bg&&(C["--sdm-bg"]=t.bg),t.fg&&(C["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(C,aA(t.rootStyle)),C},[t.bg,t.fg,t.rootStyle]);return(0,T.jsx)("div",{className:l(r,h?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",ref:d,style:h?{maxHeight:h}:void 0,...o,children:(0,T.jsx)("pre",{className:l(r,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:E,children:(0,T.jsx)("code",{className:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:t.tokens.map((C,w)=>(0,T.jsx)("span",{className:s?p:f,children:C.length===0||C.length===1&&C[0].content===""?`
|
|
110
110
|
`:C.map((k,I)=>{let x={},D=!!k.bgColor;if(k.color&&(x["--sdm-c"]=k.color),k.bgColor&&(x["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[B,v]of Object.entries(k.htmlStyle))B==="color"?x["--sdm-c"]=v:B==="background-color"?(x["--sdm-tbg"]=v,D=!0):x[B]=v;return(0,T.jsx)("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",D&&"bg-[var(--sdm-tbg)]",D&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:x,...k.htmlAttrs,children:k.content},I)})},w))})})})}),lA=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let a=ee();return(0,T.jsx)("div",{className:a("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i})},ic=(0,y.createContext)({code:""}),ac=()=>(0,y.useContext)(ic),oA=({language:e})=>{let t=ee();return(0,T.jsx)("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:(0,T.jsx)("span",{className:t("ml-1 font-mono lowercase"),children:e})})},cA=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
111
|
-
`;)t--;return e.slice(0,t)},uA=(0,y.lazy)(()=>Fs(()=>import("./highlighted-body-KPVGNVTW-
|
|
111
|
+
`;)t--;return e.slice(0,t)},uA=(0,y.lazy)(()=>Fs(()=>import("./highlighted-body-KPVGNVTW-CBC2hHHb.js").then(e=>({default:e.HighlightedCodeBlockBody})),__vite__mapDeps([0,1,2]))),hA=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,startLine:a,lineNumbers:s,...o})=>{let l=ee(),{codeBlockMaxHeight:u}=(0,y.useContext)(ke),h=(0,y.useMemo)(()=>cA(e),[e]),d=(0,y.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:h.split(`
|
|
112
112
|
`).map(p=>[{content:p,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[h]);return(0,T.jsx)(ic.Provider,{value:{code:e},children:(0,T.jsxs)(lA,{dir:"ltr",isIncomplete:i,language:t,children:[(0,T.jsx)(oA,{language:t}),r?(0,T.jsx)("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,T.jsx)("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:r})}):null,(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(sA,{className:n,language:t,lineNumbers:s,maxHeight:u,result:d,startLine:a,...o}),children:(0,T.jsx)(uA,{className:n,code:h,language:t,lineNumbers:s,maxHeight:u,raw:d,startLine:a,...o})})]})})},dA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),fA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),pA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),mA=e=>(0,T.jsxs)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,T.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,T.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),gA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),EA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),TA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),bA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),kA=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),_A=e=>(0,T.jsx)("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,T.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),on={CheckIcon:dA,CopyIcon:fA,DownloadIcon:pA,ExternalLinkIcon:bA,Loader2Icon:mA,Maximize2Icon:gA,RotateCcwIcon:EA,XIcon:TA,ZoomInIcon:kA,ZoomOutIcon:_A},sc=(0,y.createContext)(on),AA=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>e[i]===t[i])},Ts=({icons:e,children:t})=>{let n=(0,y.useRef)(e),r=(0,y.useRef)(e?{...on,...e}:on);AA(n.current,e)||(n.current=e,r.current=e?{...on,...e}:on);let i=r.current;return(0,T.jsx)(sc.Provider,{value:i,children:t})},Ve=()=>(0,y.useContext)(sc),lc={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},ci=(0,y.createContext)(lc),et=()=>(0,y.useContext)(ci),ui=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let o=ee(),[l,u]=(0,y.useState)(!1),h=(0,y.useRef)(0),{code:d}=ac(),{isAnimating:p}=(0,y.useContext)(ke),f=et(),E=a??d,C=async()=>{var I;if(typeof window>"u"||!((I=navigator?.clipboard)!=null&&I.writeText)){t?.(new Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(E),u(!0),e?.(),h.current=window.setTimeout(()=>u(!1),n))}catch(x){t?.(x)}};(0,y.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let w=Ve(),k=l?w.CheckIcon:w.CopyIcon;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{"aria-label":f.copyCode,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:p,onClick:C,title:f.copyCode,type:"button",...s,children:r??(0,T.jsx)(k,{"aria-hidden":"true",size:14})}),l&&(0,T.jsx)("output",{"aria-live":"polite",className:"sr-only",children:f.copied})]})},qi=(e,t,n)=>{if(typeof e=="boolean")return n;let r=e[t];if(typeof r!="object")return n;let i=r.download;return typeof i!="object"?n:i.filename||n},bs={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},yA=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let o=ee(),{code:l}=ac(),{isAnimating:u,controls:h}=(0,y.useContext)(ke),d=et(),p=Ve(),f=a??l,E=n&&n in bs?bs[n]:"txt",C=`${qi(h,"code","file")}.${E}`,w="text/plain",k=()=>{try{Ht(C,f,w),e?.()}catch(I){t?.(I)}};return(0,T.jsx)("button",{"aria-label":d.downloadFile,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:u,onClick:k,title:d.downloadFile,type:"button",...s,children:r??(0,T.jsx)(p.DownloadIcon,{size:14})})},ks=()=>{let{Loader2Icon:e}=Ve(),t=ee();return(0,T.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,T.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,T.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,T.jsx)(e,{className:t("size-4 animate-spin")})})]})},CA=/\.[^/.]+$/,xA=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,showControls:s=!0,showDownloadControl:o=!0,...l})=>{let{DownloadIcon:u}=Ve(),h=ee(),d=(0,y.useRef)(null),[p,f]=(0,y.useState)(!1),[E,C]=(0,y.useState)(!1),w=et(),k=l.width!=null||l.height!=null,I=(p||k)&&!E&&s&&o,x=E&&!k;(0,y.useEffect)(()=>{let U=d.current;if(U!=null&&U.complete){let $=U.naturalWidth>0;f($),C(!$)}},[]);let D=(0,y.useCallback)(U=>{f(!0),C(!1),i?.(U)},[i]),B=(0,y.useCallback)(U=>{f(!1),C(!0),a?.(U)},[a]),v=async()=>{if(n)try{let U=await(await fetch(n)).blob(),$=new URL(n,window.location.origin).pathname.split("/").pop()||"",q=$.split(".").pop(),S=$.includes(".")&&q!==void 0&&q.length<=4,j="";if(S)j=$;else{let z=U.type,Q="png";z.includes("jpeg")||z.includes("jpg")?Q="jpg":z.includes("png")?Q="png":z.includes("svg")?Q="svg":z.includes("gif")?Q="gif":z.includes("webp")&&(Q="webp"),j=`${(r||$||"image").replace(CA,"")}.${Q}`}Ht(j,U,U.type)}catch{window.open(n,"_blank")}};return n?(0,T.jsxs)("div",{className:h("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,T.jsx)("img",{alt:r,className:h("max-w-full rounded-lg",x&&"hidden",t),"data-streamdown":"image",onError:B,onLoad:D,ref:d,src:n,...l}),x&&(0,T.jsx)("span",{className:h("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:w.imageNotAvailable}),s&&(0,T.jsx)("div",{className:h("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),I&&(0,T.jsx)("button",{className:h("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:v,title:w.downloadImage,type:"button",children:(0,T.jsx)(u,{size:14})})]}):null},gn=0,Vi=()=>{gn+=1,gn===1&&(document.body.style.overflow="hidden")},Wi=()=>{gn=Math.max(0,gn-1),gn===0&&(document.body.style.overflow="")},IA=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:s,XIcon:o}=Ve(),l=ee(),[u,h]=(0,y.useState)(!1),d=et(),p=(0,y.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),h(!0),setTimeout(()=>h(!1),2e3)}catch{}},[e]),f=(0,y.useCallback)(()=>{r(),n()},[r,n]);if((0,y.useEffect)(()=>{if(t){Vi();let C=w=>{w.key==="Escape"&&n()};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C),Wi()}}},[t,n]),!t||typeof document>"u")return null;let E=(0,T.jsx)("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:C=>{C.key==="Escape"&&n()},role:"button",tabIndex:0,children:(0,T.jsxs)("div",{className:l("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:C=>C.stopPropagation(),onKeyDown:C=>C.stopPropagation(),role:"presentation",children:[(0,T.jsx)("button",{className:l("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:d.close,type:"button",children:(0,T.jsx)(o,{size:16})}),(0,T.jsxs)("div",{className:l("flex flex-col gap-2"),children:[(0,T.jsxs)("div",{className:l("flex items-center gap-2 font-semibold text-lg"),children:[(0,T.jsx)(s,{size:20}),(0,T.jsx)("span",{children:d.openExternalLink})]}),(0,T.jsx)("p",{className:l("text-muted-foreground text-sm"),children:d.externalLinkWarning})]}),(0,T.jsx)("div",{className:l("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),(0,T.jsxs)("div",{className:l("flex gap-2"),children:[(0,T.jsx)("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:u?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(i,{size:14}),(0,T.jsx)("span",{children:d.copied})]}):(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(a,{size:14}),(0,T.jsx)("span",{children:d.copyLink})]})}),(0,T.jsxs)("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[(0,T.jsx)(s,{size:14}),(0,T.jsx)("span",{children:d.openLink})]})]})]})});return(0,Oi.createPortal)(E,document.body)},hi=(0,y.createContext)(null),Qi=()=>(0,y.useContext)(hi),Wy=()=>{var e;let t=Qi();return(e=t?.code)!=null?e:null},Gi=()=>{var e;let t=Qi();return(e=t?.mermaid)!=null?e:null},NA=e=>{var t;let n=Qi();return n!=null&&n.renderers&&e&&(t=n.renderers.find(r=>Array.isArray(r.language)?r.language.includes(e):r.language===e))!=null?t:null},SA=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},vA=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let l=document.createElement("canvas"),u=o.width*r,h=o.height*r;l.width=u,l.height=h;let d=l.getContext("2d");if(!d){a(new Error("Failed to create 2D canvas context for PNG export"));return}d.drawImage(o,0,0,u,h),l.toBlob(p=>{if(!p){a(new Error("Failed to create PNG blob"));return}i(p)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},oc=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let s=ee(),[o,l]=(0,y.useState)(!1),u=(0,y.useRef)(null),{isAnimating:h,controls:d}=(0,y.useContext)(ke),p=Ve(),f=Gi(),E=et(),C=qi(d,"mermaid","diagram"),w=async k=>{try{if(k==="mmd"){Ht(`${C}.mmd`,e,"text/plain"),l(!1),r?.(k);return}if(!f){a?.(new Error("Mermaid plugin not available"));return}let I=f.getMermaid(i),x=e.split("").reduce((U,$)=>(U<<5)-U+$.charCodeAt(0)|0,0),D=`mermaid-${Math.abs(x)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:B}=await I.render(D,e);if(!B){a?.(new Error("SVG not found. Please wait for the diagram to render."));return}let v=SA(B);if(k==="svg"){Ht(`${C}.svg`,v,"image/svg+xml"),l(!1),r?.(k);return}if(k==="png"){let U=await vA(v);Ht(`${C}.png`,U,"image/png"),r?.(k),l(!1);return}}catch(I){a?.(I)}};return(0,y.useEffect)(()=>{let k=I=>{let x=I.composedPath();u.current&&!x.includes(u.current)&&l(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),(0,T.jsxs)("div",{className:s("relative"),ref:u,children:[(0,T.jsx)("button",{"aria-label":E.downloadDiagram,className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:h,onClick:()=>l(!o),title:E.downloadDiagram,type:"button",children:t??(0,T.jsx)(p.DownloadIcon,{"aria-hidden":"true",size:14})}),o?(0,T.jsxs)("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{"aria-label":E.downloadDiagramAsSvg,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("svg"),title:E.downloadDiagramAsSvg,type:"button",children:E.mermaidFormatSvg}),(0,T.jsx)("button",{"aria-label":E.downloadDiagramAsPng,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("png"),title:E.downloadDiagramAsPng,type:"button",children:E.mermaidFormatPng}),(0,T.jsx)("button",{"aria-label":E.downloadDiagramAsMmd,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("mmd"),title:E.downloadDiagramAsMmd,type:"button",children:E.mermaidFormatMmd})]}):null]})},wA=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let{Maximize2Icon:s,XIcon:o}=Ve(),l=ee(),[u,h]=(0,y.useState)(!1),{isAnimating:d,controls:p}=(0,y.useContext)(ke),f=et(),E=(()=>{if(typeof p=="boolean")return p;let I=p.mermaid;return I===!1?!1:I===!0||I===void 0?!0:I.panZoom!==!1})(),C=(()=>{if(typeof p=="boolean")return p;let I=p.mermaid;return I===!1?!1:I===!0||I===void 0?!0:I.download!==!1})(),w=(()=>{if(typeof p=="boolean")return p;let I=p.mermaid;return I===!1?!1:I===!0||I===void 0?!0:I.copy!==!1})(),k=()=>{h(!u)};return(0,y.useEffect)(()=>{if(u){Vi();let I=x=>{x.key==="Escape"&&h(!1)};return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I),Wi()}}},[u]),(0,y.useEffect)(()=>{u?n?.():r&&r()},[u,n,r]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:d,onClick:k,title:f.viewFullscreen,type:"button",...a,"aria-label":f.viewFullscreen,children:(0,T.jsx)(s,{"aria-hidden":"true",size:14})}),u?(0,Oi.createPortal)((0,T.jsxs)("div",{"aria-label":f.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:k,onKeyDown:I=>{I.key==="Escape"&&k()},role:"dialog",children:[(0,T.jsxs)("div",{className:l("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:I=>I.stopPropagation(),onKeyDown:I=>I.stopPropagation(),role:"presentation",children:[C?(0,T.jsx)(oc,{chart:e,config:t}):null,w?(0,T.jsx)(ui,{code:e}):null,(0,T.jsx)("button",{"aria-label":f.exitFullscreen,className:l("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:k,title:f.exitFullscreen,type:"button",children:(0,T.jsx)(o,{"aria-hidden":"true",size:20})})]}),(0,T.jsx)("div",{className:l("flex size-full items-center justify-center p-4"),onClick:I=>I.stopPropagation(),onKeyDown:I=>I.stopPropagation(),role:"presentation",children:(0,T.jsx)(Dy,{chart:e,className:l("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:E})})]}),document.body):null]})};function di(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let n=e;return n.tagName==="BR"?`
|
|
113
113
|
`:Array.from(n.childNodes).map(di).join("")}var cc=e=>{let t=[],n=[],r=e.querySelectorAll("thead th");for(let a of r)t.push(di(a).trim());let i=e.querySelectorAll("tbody tr");for(let a of i){let s=[],o=a.querySelectorAll("td");for(let l of o)s.push(di(l).trim());n.push(s)}return{headers:t,rows:n}},uc=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},hc=(e,t=",")=>{let n;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?n=";":n=",":n=t;let{headers:r,rows:i}=e,a=u=>{let h=!1;for(let d of u)if(d===n||d==='"'||d===`
|
|
114
114
|
`||d==="\r"){h=!0;break}return h?`"${u.replace(/"/g,'""')}"`:u},s=r.length>0?i.length+1:i.length,o=new Array(s),l=0;r.length>0&&(o[l]=r.map(a).join(n),l+=1);for(let u of i)o[l]=u.map(a).join(n),l+=1;return o.join(`
|
|
@@ -118,7 +118,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error
|
|
|
118
118
|
`)},jr=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"||r===`
|
|
119
119
|
`){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):r===`
|
|
120
120
|
`?n.push("<br>"):n.push(r);return n.join("")},dc=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,a=t.map(o=>jr(o));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";r[i]=`| ${s.join(" | ")} |`,i+=1;for(let o of n)if(o.length<t.length){let l=new Array(t.length);for(let u=0;u<t.length;u+=1)l[u]=u<o.length?jr(o[u]):"";r[i]=`| ${l.join(" | ")} |`,i+=1}else{let l=o.map(u=>jr(u));r[i]=`| ${l.join(" | ")} |`,i+=1}return r.join(`
|
|
121
|
-
`)},fc=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=ee(),[s,o]=(0,y.useState)(!1),[l,u]=(0,y.useState)(!1),h=(0,y.useRef)(null),d=(0,y.useRef)(0),{isAnimating:p,controls:f}=(0,y.useContext)(ke),E=et(),C=uc(f),w=async x=>{var D,B;if(typeof window>"u"||!((D=navigator?.clipboard)!=null&&D.write)){r?.(new Error("Clipboard API not available"));return}try{let v=(B=h.current)==null?void 0:B.closest('[data-streamdown="table-wrapper"]'),U=v?.querySelector("table");if(!U){r?.(new Error("Table not found"));return}let $=cc(U),q="";x==="csv"?q=hc($,C):x==="tsv"?q=LA($):q=dc($);let S=new ClipboardItem({"text/plain":new Blob([q],{type:"text/plain"}),"text/html":new Blob([U.outerHTML],{type:"text/html"})});await navigator.clipboard.write([S]),u(!0),o(!1),n?.(x),d.current=window.setTimeout(()=>u(!1),i)}catch(v){r?.(v)}};(0,y.useEffect)(()=>{let x=D=>{let B=D.composedPath();h.current&&!B.includes(h.current)&&o(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x),window.clearTimeout(d.current)}},[]);let k=Ve(),I=l?k.CheckIcon:k.CopyIcon;return(0,T.jsxs)("div",{className:a("relative"),ref:h,children:[(0,T.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>o(!s),title:E.copyTable,type:"button",children:e??(0,T.jsx)(I,{height:14,width:14})}),s?(0,T.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("md"),title:E.copyTableAsMarkdown,type:"button",children:E.tableFormatMarkdown}),(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("csv"),title:E.copyTableAsCsv,type:"button",children:E.tableFormatCsv}),(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("tsv"),title:E.copyTableAsTsv,type:"button",children:E.tableFormatTsv})]}):null]})},pc=({children:e,className:t,onDownload:n,onError:r})=>{let i=ee(),[a,s]=(0,y.useState)(!1),o=(0,y.useRef)(null),{isAnimating:l,controls:u}=(0,y.useContext)(ke),h=et(),d=Ve(),p=uc(u),f=E=>{var C;try{let w=(C=o.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),k=w?.querySelector("table");if(!k){r?.(new Error("Table not found"));return}let I=cc(k),x=E==="csv"?hc(I,p):dc(I),D=E==="csv"?"csv":"md";Ht(`${qi(u,"table","table")}.${D}`,x,E==="csv"?"text/csv":"text/markdown"),s(!1),n?.(E)}catch(w){r?.(w)}};return(0,y.useEffect)(()=>{let E=C=>{let w=C.composedPath();o.current&&!w.includes(o.current)&&s(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[]),(0,T.jsxs)("div",{className:i("relative"),ref:o,children:[(0,T.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>s(!a),title:h.downloadTable,type:"button",children:e??(0,T.jsx)(d.DownloadIcon,{size:14})}),a?(0,T.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:h.downloadTableAsCsv,type:"button",children:h.tableFormatCsv}),(0,T.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("markdown"),title:h.downloadTableAsMarkdown,type:"button",children:h.tableFormatMarkdown})]}):null]})},RA=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=Ve(),s=ee(),[o,l]=(0,y.useState)(!1),{isAnimating:u}=(0,y.useContext)(ke),h=et(),d=()=>{l(!0)},p=()=>{l(!1)};return(0,y.useEffect)(()=>{if(o){Vi();let f=E=>{E.key==="Escape"&&l(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),Wi()}}},[o]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:d,title:h.viewFullscreen,type:"button",children:(0,T.jsx)(i,{size:14})}),o?(0,Oi.createPortal)((0,T.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:f=>{f.key==="Escape"&&p()},role:"dialog",children:(0,T.jsxs)("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:[(0,T.jsxs)("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[n?(0,T.jsx)(fc,{}):null,r?(0,T.jsx)(pc,{}):null,(0,T.jsx)("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:(0,T.jsx)(a,{size:20})})]}),(0,T.jsx)("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,T.jsx)("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},OA=({children:e,className:t,maxHeight:n,showControls:r,showCopy:i=!0,showDownload:a=!0,showFullscreen:s=!0,...o})=>{let l=ee(),{isAnimating:u}=(0,y.useContext)(ke),h=nc(n),d=rc(u,!!h,e),p=r&&i,f=r&&a,E=r&&s,C=p||f||E;return(0,T.jsxs)("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[C?(0,T.jsxs)("div",{className:l("flex items-center justify-end gap-1"),children:[p?(0,T.jsx)(fc,{}):null,f?(0,T.jsx)(pc,{}):null,E?(0,T.jsx)(RA,{showCopy:p,showDownload:f,children:e}):null]}):null,(0,T.jsx)("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:d,style:h?{maxHeight:h}:void 0,children:(0,T.jsx)("table",{className:l("w-full divide-y divide-border",t),"data-streamdown":"table",...o,children:e})})]})},DA=/startLine=(\d+)/,PA=/\bnoLineNumbers\b/,MA=(0,y.lazy)(()=>Fs(()=>import("./mermaid-HWGCJPDP-DNAzcUbW.js").then(e=>({default:e.Mermaid})),[])),BA=/language-([^\s]+)/,FA="node";function de(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let r=e,i=t;for(let a of n)if(a!==FA&&!Object.is(r[a],i[a]))return!1;return!0}function HA(e,t){var n,r;return((n=e?.properties)==null?void 0:n.metastring)===((r=t?.properties)==null?void 0:r.metastring)}var tr=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,zr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},_s=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Un=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},UA=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Ki=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>de(e,t));Ki.displayName="MarkdownOl";var mc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>de(e,t));mc.displayName="MarkdownLi";var gc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>de(e,t));gc.displayName="MarkdownUl";var Ec=(0,y.memo)(({className:e,node:t,...n})=>{let r=ee();return(0,T.jsx)("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>de(e,t));Ec.displayName="MarkdownHr";var Tc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>de(e,t));Tc.displayName="MarkdownStrong";var jA=({children:e,className:t,href:n,node:r,...i})=>{let a=ee(),{linkSafety:s}=(0,y.useContext)(ke),[o,l]=(0,y.useState)(!1),u=n==="streamdown:incomplete-link",h=(0,y.useCallback)(async E=>{if(!(!(s!=null&&s.enabled&&n)||u)){if(E.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}l(!0)}},[s,n,u]),d=(0,y.useCallback)(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p=(0,y.useCallback)(()=>{l(!1)},[]),f={url:n??"",isOpen:o,onClose:p,onConfirm:d};return s!=null&&s.enabled&&n?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:a("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:h,type:"button",children:e}),s.renderModal?s.renderModal(f):(0,T.jsx)(IA,{...f})]}):(0,T.jsx)("a",{className:a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},bc=(0,y.memo)(jA,(e,t)=>de(e,t));bc.displayName="MarkdownA";var kc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>de(e,t));kc.displayName="MarkdownH1";var _c=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>de(e,t));_c.displayName="MarkdownH2";var Ac=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>de(e,t));Ac.displayName="MarkdownH3";var yc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>de(e,t));yc.displayName="MarkdownH4";var Cc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>de(e,t));Cc.displayName="MarkdownH5";var xc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>de(e,t));xc.displayName="MarkdownH6";var Ic=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i,tableMaxHeight:a}=(0,y.useContext)(ke),s=tr(i,"table"),o=zr(i,"copy"),l=zr(i,"download"),u=zr(i,"fullscreen");return(0,T.jsx)(OA,{className:t,maxHeight:a,showControls:s,showCopy:o,showDownload:l,showFullscreen:u,...r,children:e})},(e,t)=>de(e,t));Ic.displayName="MarkdownTable";var Nc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>de(e,t));Nc.displayName="MarkdownThead";var Sc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>de(e,t));Sc.displayName="MarkdownTbody";var vc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>de(e,t));vc.displayName="MarkdownTr";var wc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>de(e,t));wc.displayName="MarkdownTh";var Lc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>de(e,t));Lc.displayName="MarkdownTd";var Rc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>de(e,t));Rc.displayName="MarkdownBlockquote";var Oc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>de(e,t));Oc.displayName="MarkdownSup";var Dc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>de(e,t));Dc.displayName="MarkdownSub";var Pc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var o,l;if(!(0,y.isValidElement)(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let p of u)if(p){if(typeof p=="string")p.trim()!==""&&(h=!0);else if((0,y.isValidElement)(p))if(((o=p.props)==null?void 0:o["data-footnote-backref"])!==void 0)d=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let E of f){if(typeof E=="string"&&E.trim()!==""){h=!0;break}if((0,y.isValidElement)(E)&&((l=E.props)==null?void 0:l["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},a=Array.isArray(e)?e.map(s=>{if(!(0,y.isValidElement)(s))return s;if(s.type===Ki){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!i(l));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?(0,T.jsx)("section",{className:t,...r,children:a}):null}return(0,T.jsx)("section",{className:t,...r,children:e})},(e,t)=>de(e,t));Pc.displayName="MarkdownSection";var zA=({node:e,className:t,children:n,...r})=>{var i,a;let s=ee(),o=!("data-block"in r),{mermaid:l,controls:u,lineNumbers:h}=(0,y.useContext)(ke),d=Gi(),p=J_(),f=t?.match(BA),E=(i=f?.at(1))!=null?i:"",C=NA(E);if(o)return(0,T.jsx)("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let w=(a=e?.properties)==null?void 0:a.metastring,k=w?.match(DA),I=k?Number.parseInt(k[1],10):void 0,x=I!==void 0&&I>=1?I:void 0,D=!(w&&PA.test(w))&&h!==!1,B="";if((0,y.isValidElement)(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?B=n.props.children:typeof n=="string"&&(B=n),C){let j=C.component;return(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(ks,{}),children:(0,T.jsx)(j,{code:B,isIncomplete:p,language:E,meta:w})})}if(E==="mermaid"&&d){let j=tr(u,"mermaid"),z=Un(u,"download"),Q=Un(u,"copy"),ie=Un(u,"fullscreen"),G=Un(u,"panZoom"),Y=j&&(z||Q||ie);return(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(ks,{}),children:(0,T.jsxs)("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[(0,T.jsx)("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:(0,T.jsx)("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),Y?(0,T.jsx)("div",{className:s("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,T.jsxs)("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[z?(0,T.jsx)(oc,{chart:B,config:l?.config}):null,Q?(0,T.jsx)(ui,{code:B}):null,ie?(0,T.jsx)(wA,{chart:B,config:l?.config}):null]})}):null,(0,T.jsx)("div",{className:s("rounded-md border border-border bg-background"),children:(0,T.jsx)(MA,{chart:B,config:l?.config,showControls:G})})]})})}let v=tr(u,"code"),U=_s(u,"download"),$=_s(u,"copy"),{"data-block":q,...S}=r;return(0,T.jsx)(hA,{className:t,code:B,isIncomplete:p,language:E,lineNumbers:D,startLine:x,...S,children:v?(0,T.jsxs)(T.Fragment,{children:[U?(0,T.jsx)(yA,{code:B,language:E}):null,$?(0,T.jsx)(ui,{}):null]}):null})},Mc=(0,y.memo)(zA,(e,t)=>de(e,t)&&HA(e.node,t.node));Mc.displayName="MarkdownCode";var $A=({node:e,className:t,...n})=>{let{controls:r}=(0,y.useContext)(ke),i=tr(r,"image"),a=i&&UA(r,"download");return(0,T.jsx)(xA,{className:t,node:e,showControls:i,showDownloadControl:a,...n})},Bc=(0,y.memo)($A,(e,t)=>de(e,t));Bc.displayName="MarkdownImg";var Fc=(0,y.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(r.length===1&&(0,y.isValidElement)(r[0])){let i=r[0].props.node,a=i?.tagName;if(a==="img")return(0,T.jsx)(T.Fragment,{children:e});if(a==="code"&&"data-block"in r[0].props)return(0,T.jsx)(T.Fragment,{children:e})}return(0,T.jsx)("p",{...n,children:e})},(e,t)=>de(e,t));Fc.displayName="MarkdownParagraph";var YA={ol:Ki,li:mc,ul:gc,hr:Ec,strong:Tc,a:bc,h1:kc,h2:_c,h3:Ac,h4:yc,h5:Cc,h6:xc,table:Ic,thead:Nc,tbody:Sc,tr:vc,th:wc,td:Lc,blockquote:Rc,code:Mc,img:Bc,pre:({children:e})=>(0,y.isValidElement)(e)?(0,y.cloneElement)(e,{"data-block":"true"}):e,sup:Oc,sub:Dc,p:Fc,section:Pc},qA=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,VA=new RegExp("\\p{L}","u");function Hc(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,r=0,i=0;for(let a of t){if(qA.test(a)){n??="rtl",i+=1;continue}VA.test(a)&&(n??="ltr",r+=1)}return i>r?"rtl":r>i?"ltr":n??"ltr"}var WA=/^[ \t]{0,3}(`{3,}|~{3,})/,QA=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,As=e=>{let t=e.split(`
|
|
121
|
+
`)},fc=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=ee(),[s,o]=(0,y.useState)(!1),[l,u]=(0,y.useState)(!1),h=(0,y.useRef)(null),d=(0,y.useRef)(0),{isAnimating:p,controls:f}=(0,y.useContext)(ke),E=et(),C=uc(f),w=async x=>{var D,B;if(typeof window>"u"||!((D=navigator?.clipboard)!=null&&D.write)){r?.(new Error("Clipboard API not available"));return}try{let v=(B=h.current)==null?void 0:B.closest('[data-streamdown="table-wrapper"]'),U=v?.querySelector("table");if(!U){r?.(new Error("Table not found"));return}let $=cc(U),q="";x==="csv"?q=hc($,C):x==="tsv"?q=LA($):q=dc($);let S=new ClipboardItem({"text/plain":new Blob([q],{type:"text/plain"}),"text/html":new Blob([U.outerHTML],{type:"text/html"})});await navigator.clipboard.write([S]),u(!0),o(!1),n?.(x),d.current=window.setTimeout(()=>u(!1),i)}catch(v){r?.(v)}};(0,y.useEffect)(()=>{let x=D=>{let B=D.composedPath();h.current&&!B.includes(h.current)&&o(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x),window.clearTimeout(d.current)}},[]);let k=Ve(),I=l?k.CheckIcon:k.CopyIcon;return(0,T.jsxs)("div",{className:a("relative"),ref:h,children:[(0,T.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>o(!s),title:E.copyTable,type:"button",children:e??(0,T.jsx)(I,{height:14,width:14})}),s?(0,T.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("md"),title:E.copyTableAsMarkdown,type:"button",children:E.tableFormatMarkdown}),(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("csv"),title:E.copyTableAsCsv,type:"button",children:E.tableFormatCsv}),(0,T.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("tsv"),title:E.copyTableAsTsv,type:"button",children:E.tableFormatTsv})]}):null]})},pc=({children:e,className:t,onDownload:n,onError:r})=>{let i=ee(),[a,s]=(0,y.useState)(!1),o=(0,y.useRef)(null),{isAnimating:l,controls:u}=(0,y.useContext)(ke),h=et(),d=Ve(),p=uc(u),f=E=>{var C;try{let w=(C=o.current)==null?void 0:C.closest('[data-streamdown="table-wrapper"]'),k=w?.querySelector("table");if(!k){r?.(new Error("Table not found"));return}let I=cc(k),x=E==="csv"?hc(I,p):dc(I),D=E==="csv"?"csv":"md";Ht(`${qi(u,"table","table")}.${D}`,x,E==="csv"?"text/csv":"text/markdown"),s(!1),n?.(E)}catch(w){r?.(w)}};return(0,y.useEffect)(()=>{let E=C=>{let w=C.composedPath();o.current&&!w.includes(o.current)&&s(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E)}},[]),(0,T.jsxs)("div",{className:i("relative"),ref:o,children:[(0,T.jsx)("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>s(!a),title:h.downloadTable,type:"button",children:e??(0,T.jsx)(d.DownloadIcon,{size:14})}),a?(0,T.jsxs)("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,T.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:h.downloadTableAsCsv,type:"button",children:h.tableFormatCsv}),(0,T.jsx)("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("markdown"),title:h.downloadTableAsMarkdown,type:"button",children:h.tableFormatMarkdown})]}):null]})},RA=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=Ve(),s=ee(),[o,l]=(0,y.useState)(!1),{isAnimating:u}=(0,y.useContext)(ke),h=et(),d=()=>{l(!0)},p=()=>{l(!1)};return(0,y.useEffect)(()=>{if(o){Vi();let f=E=>{E.key==="Escape"&&l(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),Wi()}}},[o]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:d,title:h.viewFullscreen,type:"button",children:(0,T.jsx)(i,{size:14})}),o?(0,Oi.createPortal)((0,T.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:f=>{f.key==="Escape"&&p()},role:"dialog",children:(0,T.jsxs)("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:[(0,T.jsxs)("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[n?(0,T.jsx)(fc,{}):null,r?(0,T.jsx)(pc,{}):null,(0,T.jsx)("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:(0,T.jsx)(a,{size:20})})]}),(0,T.jsx)("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,T.jsx)("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},OA=({children:e,className:t,maxHeight:n,showControls:r,showCopy:i=!0,showDownload:a=!0,showFullscreen:s=!0,...o})=>{let l=ee(),{isAnimating:u}=(0,y.useContext)(ke),h=nc(n),d=rc(u,!!h,e),p=r&&i,f=r&&a,E=r&&s,C=p||f||E;return(0,T.jsxs)("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[C?(0,T.jsxs)("div",{className:l("flex items-center justify-end gap-1"),children:[p?(0,T.jsx)(fc,{}):null,f?(0,T.jsx)(pc,{}):null,E?(0,T.jsx)(RA,{showCopy:p,showDownload:f,children:e}):null]}):null,(0,T.jsx)("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:d,style:h?{maxHeight:h}:void 0,children:(0,T.jsx)("table",{className:l("w-full divide-y divide-border",t),"data-streamdown":"table",...o,children:e})})]})},DA=/startLine=(\d+)/,PA=/\bnoLineNumbers\b/,MA=(0,y.lazy)(()=>Fs(()=>import("./mermaid-HWGCJPDP-BzT3-9sO.js").then(e=>({default:e.Mermaid})),[])),BA=/language-([^\s]+)/,FA="node";function de(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let r=e,i=t;for(let a of n)if(a!==FA&&!Object.is(r[a],i[a]))return!1;return!0}function HA(e,t){var n,r;return((n=e?.properties)==null?void 0:n.metastring)===((r=t?.properties)==null?void 0:r.metastring)}var tr=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,zr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},_s=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Un=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},UA=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Ki=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>de(e,t));Ki.displayName="MarkdownOl";var mc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>de(e,t));mc.displayName="MarkdownLi";var gc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>de(e,t));gc.displayName="MarkdownUl";var Ec=(0,y.memo)(({className:e,node:t,...n})=>{let r=ee();return(0,T.jsx)("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>de(e,t));Ec.displayName="MarkdownHr";var Tc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>de(e,t));Tc.displayName="MarkdownStrong";var jA=({children:e,className:t,href:n,node:r,...i})=>{let a=ee(),{linkSafety:s}=(0,y.useContext)(ke),[o,l]=(0,y.useState)(!1),u=n==="streamdown:incomplete-link",h=(0,y.useCallback)(async E=>{if(!(!(s!=null&&s.enabled&&n)||u)){if(E.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}l(!0)}},[s,n,u]),d=(0,y.useCallback)(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p=(0,y.useCallback)(()=>{l(!1)},[]),f={url:n??"",isOpen:o,onClose:p,onConfirm:d};return s!=null&&s.enabled&&n?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("button",{className:a("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:h,type:"button",children:e}),s.renderModal?s.renderModal(f):(0,T.jsx)(IA,{...f})]}):(0,T.jsx)("a",{className:a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},bc=(0,y.memo)(jA,(e,t)=>de(e,t));bc.displayName="MarkdownA";var kc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>de(e,t));kc.displayName="MarkdownH1";var _c=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>de(e,t));_c.displayName="MarkdownH2";var Ac=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>de(e,t));Ac.displayName="MarkdownH3";var yc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>de(e,t));yc.displayName="MarkdownH4";var Cc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>de(e,t));Cc.displayName="MarkdownH5";var xc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>de(e,t));xc.displayName="MarkdownH6";var Ic=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let{controls:i,tableMaxHeight:a}=(0,y.useContext)(ke),s=tr(i,"table"),o=zr(i,"copy"),l=zr(i,"download"),u=zr(i,"fullscreen");return(0,T.jsx)(OA,{className:t,maxHeight:a,showControls:s,showCopy:o,showDownload:l,showFullscreen:u,...r,children:e})},(e,t)=>de(e,t));Ic.displayName="MarkdownTable";var Nc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>de(e,t));Nc.displayName="MarkdownThead";var Sc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>de(e,t));Sc.displayName="MarkdownTbody";var vc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>de(e,t));vc.displayName="MarkdownTr";var wc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>de(e,t));wc.displayName="MarkdownTh";var Lc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>de(e,t));Lc.displayName="MarkdownTd";var Rc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>de(e,t));Rc.displayName="MarkdownBlockquote";var Oc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>de(e,t));Oc.displayName="MarkdownSup";var Dc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{let i=ee();return(0,T.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>de(e,t));Dc.displayName="MarkdownSub";var Pc=(0,y.memo)(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var o,l;if(!(0,y.isValidElement)(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let p of u)if(p){if(typeof p=="string")p.trim()!==""&&(h=!0);else if((0,y.isValidElement)(p))if(((o=p.props)==null?void 0:o["data-footnote-backref"])!==void 0)d=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let E of f){if(typeof E=="string"&&E.trim()!==""){h=!0;break}if((0,y.isValidElement)(E)&&((l=E.props)==null?void 0:l["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},a=Array.isArray(e)?e.map(s=>{if(!(0,y.isValidElement)(s))return s;if(s.type===Ki){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!i(l));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?(0,T.jsx)("section",{className:t,...r,children:a}):null}return(0,T.jsx)("section",{className:t,...r,children:e})},(e,t)=>de(e,t));Pc.displayName="MarkdownSection";var zA=({node:e,className:t,children:n,...r})=>{var i,a;let s=ee(),o=!("data-block"in r),{mermaid:l,controls:u,lineNumbers:h}=(0,y.useContext)(ke),d=Gi(),p=J_(),f=t?.match(BA),E=(i=f?.at(1))!=null?i:"",C=NA(E);if(o)return(0,T.jsx)("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let w=(a=e?.properties)==null?void 0:a.metastring,k=w?.match(DA),I=k?Number.parseInt(k[1],10):void 0,x=I!==void 0&&I>=1?I:void 0,D=!(w&&PA.test(w))&&h!==!1,B="";if((0,y.isValidElement)(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?B=n.props.children:typeof n=="string"&&(B=n),C){let j=C.component;return(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(ks,{}),children:(0,T.jsx)(j,{code:B,isIncomplete:p,language:E,meta:w})})}if(E==="mermaid"&&d){let j=tr(u,"mermaid"),z=Un(u,"download"),Q=Un(u,"copy"),ie=Un(u,"fullscreen"),G=Un(u,"panZoom"),Y=j&&(z||Q||ie);return(0,T.jsx)(y.Suspense,{fallback:(0,T.jsx)(ks,{}),children:(0,T.jsxs)("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[(0,T.jsx)("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:(0,T.jsx)("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),Y?(0,T.jsx)("div",{className:s("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,T.jsxs)("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[z?(0,T.jsx)(oc,{chart:B,config:l?.config}):null,Q?(0,T.jsx)(ui,{code:B}):null,ie?(0,T.jsx)(wA,{chart:B,config:l?.config}):null]})}):null,(0,T.jsx)("div",{className:s("rounded-md border border-border bg-background"),children:(0,T.jsx)(MA,{chart:B,config:l?.config,showControls:G})})]})})}let v=tr(u,"code"),U=_s(u,"download"),$=_s(u,"copy"),{"data-block":q,...S}=r;return(0,T.jsx)(hA,{className:t,code:B,isIncomplete:p,language:E,lineNumbers:D,startLine:x,...S,children:v?(0,T.jsxs)(T.Fragment,{children:[U?(0,T.jsx)(yA,{code:B,language:E}):null,$?(0,T.jsx)(ui,{}):null]}):null})},Mc=(0,y.memo)(zA,(e,t)=>de(e,t)&&HA(e.node,t.node));Mc.displayName="MarkdownCode";var $A=({node:e,className:t,...n})=>{let{controls:r}=(0,y.useContext)(ke),i=tr(r,"image"),a=i&&UA(r,"download");return(0,T.jsx)(xA,{className:t,node:e,showControls:i,showDownloadControl:a,...n})},Bc=(0,y.memo)($A,(e,t)=>de(e,t));Bc.displayName="MarkdownImg";var Fc=(0,y.memo)(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(r.length===1&&(0,y.isValidElement)(r[0])){let i=r[0].props.node,a=i?.tagName;if(a==="img")return(0,T.jsx)(T.Fragment,{children:e});if(a==="code"&&"data-block"in r[0].props)return(0,T.jsx)(T.Fragment,{children:e})}return(0,T.jsx)("p",{...n,children:e})},(e,t)=>de(e,t));Fc.displayName="MarkdownParagraph";var YA={ol:Ki,li:mc,ul:gc,hr:Ec,strong:Tc,a:bc,h1:kc,h2:_c,h3:Ac,h4:yc,h5:Cc,h6:xc,table:Ic,thead:Nc,tbody:Sc,tr:vc,th:wc,td:Lc,blockquote:Rc,code:Mc,img:Bc,pre:({children:e})=>(0,y.isValidElement)(e)?(0,y.cloneElement)(e,{"data-block":"true"}):e,sup:Oc,sub:Dc,p:Fc,section:Pc},qA=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,VA=new RegExp("\\p{L}","u");function Hc(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,r=0,i=0;for(let a of t){if(qA.test(a)){n??="rtl",i+=1;continue}VA.test(a)&&(n??="ltr",r+=1)}return i>r?"rtl":r>i?"ltr":n??"ltr"}var WA=/^[ \t]{0,3}(`{3,}|~{3,})/,QA=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,As=e=>{let t=e.split(`
|
|
122
122
|
`),n=null,r=0;for(let i of t){let a=WA.exec(i);if(n===null){if(a){let s=a[1];n=s[0],r=s.length}}else if(a){let s=a[1],o=s[0],l=s.length;o===n&&l>=r&&(n=null,r=0)}}return n!==null},GA=e=>{let t=e.split(`
|
|
123
123
|
`);for(let n of t){let r=n.trim();if(r.length>0&&r.includes("|")&&QA.test(r))return!0}return!1},KA=()=>e=>{Ye(e,"html",(t,n,r)=>{!r||typeof n!="number"||(r.children[n]={type:"text",value:t.value})})},ys=[],Cs={allowDangerousHtml:!0},jn=new WeakMap,XA=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let l="default";return this.keyCache.set(e,l),l}let a=l=>{if(!l||l.length===0)return"";let u="";for(let h=0;h<l.length;h+=1){let d=l[h];if(h>0&&(u+=","),Array.isArray(d)){let[p,f]=d;if(typeof p=="function"){let E=jn.get(p);E||(E=p.name,jn.set(p,E)),u+=E}else u+=String(p);u+=":",u+=JSON.stringify(f)}else if(typeof d=="function"){let p=jn.get(d);p||(p=d.name,jn.set(d,p)),u+=p}else u+=String(d)}return u},s=a(n),o=`${a(r)}::${s}::${i?JSON.stringify(i):""}`;return this.keyCache.set(e,o),o}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},xs=new XA,Uc=e=>{let t=ZA(e),n=e.children||"";return ay(t.runSync(t.parse(n),n),e)},ZA=e=>{let t=xs.get(e);if(t)return t;let n=ey(e);return xs.set(e,n),n},JA=e=>e.some(t=>Array.isArray(t)?t[0]===Kr:t===Kr),ey=e=>{let t=e.rehypePlugins||ys,n=e.remarkPlugins||ys,r=JA(t)?n:[...n,KA],i=e.remarkRehypeOptions?{...Cs,...e.remarkRehypeOptions}:Cs;return Vk().use(qb).use(r).use(Nk,i).use(t)},ty=e=>e,ny=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},ry=(e,t)=>{var n;for(let r in Or)if(Object.hasOwn(Or,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=Or[r];(a===null||a.includes(e.tagName))&&(e.properties[r]=(n=t(String(i||""),r,e))!=null?n:void 0)}},iy=(e,t,n,r,i,a)=>{let s=!1;return r?s=!r.includes(e.tagName):i&&(s=i.includes(e.tagName)),!s&&a&&typeof t=="number"&&(s=!a(e,t,n)),s},ay=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:s,urlTransform:o}=t;if(n||r||i||a||o){let l=o||ty;Ye(e,(u,h,d)=>{if(u.type==="raw"&&d&&typeof h=="number")return ny(d,h,a,u.value),h;if(u.type==="element"&&(ry(u,l),iy(u,h,d,r,i,n)&&d&&typeof h=="number"))return s&&u.children?d.children.splice(h,1,...u.children):d.children.splice(h,1),h})}return JT(e,{Fragment:T.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0})},sy=/\[\^[\w-]{1,200}\](?!:)/,ly=/\[\^[\w-]{1,200}\]:/,oy=/<([A-Za-z][\w:-]*)[\s>/]/,cy=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Is=new Map,Ns=new Map,uy=e=>{let t=e.toLowerCase(),n=Is.get(t);if(n)return n;let r=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return Is.set(t,r),r},hy=e=>{let t=e.toLowerCase(),n=Ns.get(t);if(n)return n;let r=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return Ns.set(t,r),r},Ss=(e,t)=>{if(cy.has(t.toLowerCase()))return 0;let n=e.match(uy(t));if(!n)return 0;let r=0;for(let i of n)i.trimEnd().endsWith("/>")||(r+=1);return r},vs=(e,t)=>{let n=e.match(hy(t));return n?n.length:0},dy=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},fy=e=>{let t=sy.test(e),n=ly.test(e);if(t||n)return[e];let r=He.lex(e,{gfm:!0}),i=[],a=[],s=!1;for(let o of r){let l=o.raw,u=i.length;if(a.length>0){i[u-1]+=l;let h=a.at(-1),d=Ss(l,h),p=vs(l,h);for(let f=0;f<d;f+=1)a.push(h);for(let f=0;f<p;f+=1)a.length>0&&a.at(-1)===h&&a.pop();continue}if(o.type==="html"&&o.block){let h=l.match(oy);if(h){let d=h[1];Ss(l,d)>vs(l,d)&&a.push(d)}}if(u>0&&!s){let h=i[u-1];if(dy(h)%2===1){i[u-1]=h+l;continue}}i.push(l),o.type!=="space"&&(s=o.type==="code")}return i},py=/^\n*/,my=/\n*$/,fi=/\n\n/g,gy=(e,t,n)=>t.includes(`
|
|
124
124
|
`)?`${e}${t.replace(fi,`
|
|
@@ -142,4 +142,4 @@ ${p}`,i=e.length;break}if(!u.startsWith(`
|
|
|
142
142
|
|
|
143
143
|
${d}`,i=e.length;break}return i===0?e:r+e.slice(i)},Ty=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,l)=>gy(s,o,l)),n=Ey(n,r)}return n},by=/([\\`*_~[\]|])/g,ky=e=>e.replace(by,"\\$1"),_y=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,l)=>s+ky(o).replace(/\n\n/g," ")+l)}return n},Ay=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),jc=new Set(["code","kbd","pre","samp","var"]);function zc(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!jc.has(t.tagName)?zc(t):"").join("")}function yy(){return e=>{Ye(e,"element",t=>{if(jc.has(t.tagName)){t.properties??={},t.properties.dir="ltr";return}Ay.has(t.tagName)&&(t.properties??={},typeof t.properties.dir!="string"&&(t.properties.dir=Hc(zc(t))))})}}var $c=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map($c).join(""):"",Cy=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(r=>r.toLowerCase()));Ye(t,"element",r=>{if(n.has(r.tagName.toLowerCase())){let i=$c(r);r.children=i?[{type:"text",value:i}]:[]}})},xy=()=>e=>{Ye(e,"code",t=>{var n,r;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(r=t.data.hProperties)!=null?r:{},metastring:t.meta})})},Iy=/^[ \t]*<[\w!/?-]/,Ny=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Sy=e=>typeof e!="string"||e.length===0||!Iy.test(e)?e:e.replace(Ny,"$1"),ws,Ls,Rs,Os,qn={...kt,clobberPrefix:"",protocols:{...kt.protocols,href:[...(Ls=(ws=kt.protocols)==null?void 0:ws.href)!=null?Ls:[],"tel","streamdown"]},attributes:{...kt.attributes,code:[...(Os=(Rs=kt.attributes)==null?void 0:Rs.code)!=null?Os:[],"metastring"]}},pi={raw:Kr,sanitize:[Bl,qn],harden:[nu,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},vy={gfm:[_E,{}],codeMeta:xy},Ds=Object.values(pi),wy=Object.values(vy),Ly={block:" ▋",circle:" ●"},Yc=["github-light","github-dark"],qc={enabled:!0},ke=(0,y.createContext)({codeBlockMaxHeight:400,shikiTheme:Yc,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:qc,tableMaxHeight:300}),Vc=(0,y.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:s,...o})=>{(0,y.useLayoutEffect)(()=>{s?.commit()});let l=typeof e=="string"&&n?Sy(e):e,u=(0,T.jsx)(Uc,{...o,children:l});return(0,T.jsx)(tc.Provider,{value:i,children:a?(0,T.jsx)("div",{dir:a,style:{display:"contents"},children:u}):u})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});Vc.displayName="Block";var Ry=(0,y.memo)(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:i=!1,components:a,rehypePlugins:s=Ds,remarkPlugins:o=wy,className:l,shikiTheme:u,mermaid:h,codeBlockMaxHeight:d=400,controls:p=!0,isAnimating:f=!1,tableMaxHeight:E=300,animated:C,BlockComponent:w=Vc,parseMarkdownIntoBlocksFn:k=fy,caret:I,plugins:x,remend:D,linkSafety:B=qc,lineNumbers:v=!0,allowedTags:U,literalTagContent:$,translations:q,icons:S,prefix:j,onAnimationStart:z,onAnimationEnd:Q,...ie})=>{let G=(0,y.useId)(),Y=(0,y.useMemo)(()=>tA(j),[j]),F=(0,y.useRef)(null),X=(0,y.useRef)(z),Te=(0,y.useRef)(Q);X.current=z,Te.current=Q,(0,y.useEffect)(()=>{var W,ae,Ce;if(t==="static")return;let je=F.current;if(F.current=f,je===null){f&&((W=X.current)==null||W.call(X));return}f&&!je?(ae=X.current)==null||ae.call(X):!f&&je&&((Ce=Te.current)==null||Ce.call(Te))},[f,t]);let _=(0,y.useMemo)(()=>U?Object.keys(U):[],[U]),Me=(0,y.useMemo)(()=>{if(typeof e!="string")return"";let W=t==="streaming"&&r?FT(e,D):e;return $&&$.length>0&&(W=_y(W,$)),_.length>0&&(W=Ty(W,_)),W},[e,t,r,D,_,$]),pe=(0,y.useMemo)(()=>k(Me),[Me,k]),A=(0,y.useMemo)(()=>n==="auto"?pe.map(Hc):void 0,[pe,n]),We=(0,y.useMemo)(()=>pe.map((W,ae)=>`${G}-${ae}`),[pe.length,G]),ve=(0,y.useMemo)(()=>C===!0?"true":C?JSON.stringify(C):"",[C]),se=(0,y.useRef)(null),Ue=(0,y.useRef)([]),be=(0,y.useRef)([]),tt=(0,y.useRef)(null),Qe=(0,y.useRef)("");ve?(Qe.current!==ve?(Qe.current=ve,se.current=gs({maxBacklogMs:ve!=="true"?C.maxBacklogMs:void 0}),Ue.current=[],be.current=[]):se.current||(se.current=gs()),f&&se.current&&se.current.beginPass(se.current.now())):(se.current=null,Ue.current=[],be.current=[],Qe.current=""),(0,y.useLayoutEffect)(()=>{var W;f&&((W=se.current)==null||W.commitPass())});let Gt=(0,y.useMemo)(()=>{var W,ae;return{codeBlockMaxHeight:d,shikiTheme:(ae=u??((W=x?.code)==null?void 0:W.getThemes()))!=null?ae:Yc,controls:p,isAnimating:f,lineNumbers:v,mode:t,mermaid:h,linkSafety:B,tableMaxHeight:E}},[d,u,p,f,v,t,h,B,x?.code,E]),Tr=(0,y.useMemo)(()=>q?JSON.stringify(q):"",[q]),Ln=(0,y.useMemo)(()=>({...lc,...q}),[Tr]),Rn=(0,y.useMemo)(()=>{let{inlineCode:W,...ae}=a??{},Ce={...YA,...ae};if(W){let je=Ce.code;Ce.code=nt=>"data-block"in nt?je?(0,y.createElement)(je,nt):null:(0,y.createElement)(W,nt)}return Ce},[a]),Kt=(0,y.useMemo)(()=>{let W=[];return x!=null&&x.cjk&&(W=[...W,...x.cjk.remarkPluginsBefore]),W=[...W,...o],x!=null&&x.cjk&&(W=[...W,...x.cjk.remarkPluginsAfter]),x!=null&&x.math&&(W=[...W,x.math.remarkPlugin]),W},[o,x?.math,x?.cjk]),ot=(0,y.useMemo)(()=>{var W;let ae=s;if(U&&Object.keys(U).length>0&&s===Ds){let Ce={...qn,tagNames:[...(W=qn.tagNames)!=null?W:[],...Object.keys(U)],attributes:{...qn.attributes,...U}};ae=[pi.raw,[Bl,Ce],pi.harden]}return $&&$.length>0&&(ae=[...ae,[Cy,$]]),x!=null&&x.math&&(ae=[...ae,x.math.rehypePlugin]),n==="auto"&&t==="static"&&(ae=[...ae,yy]),ae},[s,x?.math,U,$,n,t]),Lt=(0,y.useMemo)(()=>{if(!f||pe.length===0)return!1;let W=pe.at(-1);return As(W)||GA(W)},[f,pe]),br=(0,y.useMemo)(()=>I&&f&&!Lt?{"--streamdown-caret":`"${Ly[I]}"`}:void 0,[I,f,Lt]),On=W=>{let ae=null;if(se.current&&f){if(!Ue.current[W]){let{maxBacklogMs:je,...nt}=ve&&ve!=="true"?C:{};Ue.current[W]=ec({...nt,timeline:se.current})}ae=Ue.current[W]}tt.current!==ot&&(be.current=[],tt.current=ot),ae&&!be.current[W]&&(be.current[W]=[...ot,ae.rehypePlugin]);let Ce=ae&&be.current[W]?be.current[W]:ot;return{blockAnimatePlugin:ae,blockRehypePlugins:Ce}};return t==="static"?(0,T.jsx)(ci.Provider,{value:Ln,children:(0,T.jsx)(hi.Provider,{value:x??null,children:(0,T.jsx)(ke.Provider,{value:Gt,children:(0,T.jsx)(Ts,{icons:S,children:(0,T.jsx)(oi.Provider,{value:Y,children:(0,T.jsx)("div",{className:Y("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",l),dir:n==="auto"?void 0:n,children:(0,T.jsx)(Uc,{components:Rn,rehypePlugins:ot,remarkPlugins:Kt,...ie,children:Me})})})})})})}):(0,T.jsx)(ci.Provider,{value:Ln,children:(0,T.jsx)(hi.Provider,{value:x??null,children:(0,T.jsx)(ke.Provider,{value:Gt,children:(0,T.jsx)(Ts,{icons:S,children:(0,T.jsx)(oi.Provider,{value:Y,children:(0,T.jsxs)("div",{className:Y("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",I&&!Lt?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,l),style:br,children:[pe.length===0&&I&&f&&(0,T.jsx)("span",{}),pe.map((W,ae)=>{var Ce;let je=ae===pe.length-1,nt=f&&je&&As(W),{blockAnimatePlugin:kr,blockRehypePlugins:R}=On(ae);return(0,T.jsx)(w,{animatePlugin:kr,components:Rn,content:W,dir:(Ce=A?.[ae])!=null?Ce:n!=="auto"?n:void 0,index:ae,isIncomplete:nt,rehypePlugins:R,remarkPlugins:Kt,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:r,...ie},We[ae])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Ry.displayName="Streamdown";var Oy=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let{RotateCcwIcon:l,ZoomInIcon:u,ZoomOutIcon:h}=Ve(),d=ee(),p=et(),f=(0,y.useRef)(null),E=(0,y.useRef)(null),[C,w]=(0,y.useState)(s),[k,I]=(0,y.useState)({x:0,y:0}),[x,D]=(0,y.useState)(!1),[B,v]=(0,y.useState)({x:0,y:0}),[U,$]=(0,y.useState)({x:0,y:0}),q=(0,y.useCallback)(F=>{w(X=>Math.max(n,Math.min(r,X+F)))},[n,r]),S=(0,y.useCallback)(()=>{q(i)},[q,i]),j=(0,y.useCallback)(()=>{q(-i)},[q,i]),z=(0,y.useCallback)(()=>{w(s),I({x:0,y:0})},[s]),Q=(0,y.useCallback)(F=>{F.preventDefault();let X=F.deltaY>0?-i:i;q(X)},[q,i]),ie=(0,y.useCallback)(F=>{if(F.button!==0||F.isPrimary===!1)return;D(!0),v({x:F.clientX,y:F.clientY}),$(k);let X=F.currentTarget;X instanceof HTMLElement&&X.setPointerCapture(F.pointerId)},[k]),G=(0,y.useCallback)(F=>{if(!x)return;F.preventDefault();let X=F.clientX-B.x,Te=F.clientY-B.y;I({x:U.x+X,y:U.y+Te})},[x,B,U]),Y=(0,y.useCallback)(F=>{D(!1);let X=F.currentTarget;X instanceof HTMLElement&&X.releasePointerCapture(F.pointerId)},[]);return(0,y.useEffect)(()=>{let F=f.current;if(F)return F.addEventListener("wheel",Q,{passive:!1}),()=>{F.removeEventListener("wheel",Q)}},[Q]),(0,y.useEffect)(()=>{let F=E.current;if(F&&x)return document.body.style.userSelect="none",F.addEventListener("pointermove",G,{passive:!1}),F.addEventListener("pointerup",Y),F.addEventListener("pointercancel",Y),()=>{document.body.style.userSelect="",F.removeEventListener("pointermove",G),F.removeEventListener("pointerup",Y),F.removeEventListener("pointercancel",Y)}},[x,G,Y]),(0,T.jsxs)("div",{className:d("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:f,style:{cursor:x?"grabbing":"grab"},children:[a?(0,T.jsxs)("div",{className:d("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,T.jsx)("button",{"aria-label":p.zoomIn,className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:C>=r,onClick:S,title:p.zoomIn,type:"button",children:(0,T.jsx)(u,{"aria-hidden":"true",size:16})}),(0,T.jsx)("button",{"aria-label":p.zoomOut,className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:C<=n,onClick:j,title:p.zoomOut,type:"button",children:(0,T.jsx)(h,{"aria-hidden":"true",size:16})}),(0,T.jsx)("button",{"aria-label":p.resetView,className:d("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:z,title:p.resetView,type:"button",children:(0,T.jsx)(l,{"aria-hidden":"true",size:16})})]}):null,(0,T.jsx)("div",{className:d("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:ie,ref:E,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${C})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Dy=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let a=ee(),[s,o]=(0,y.useState)(null),[l,u]=(0,y.useState)(!1),[h,d]=(0,y.useState)(""),[p,f]=(0,y.useState)(""),[E,C]=(0,y.useState)(0),{mermaid:w}=(0,y.useContext)(ke),k=Gi(),I=w?.errorComponent,{shouldRender:x,containerRef:D}=F_({immediate:r});if((0,y.useEffect)(()=>{if(x){if(!k){o("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{o(null),u(!0);let v=k.getMermaid(n),U=e.split("").reduce((S,j)=>(S<<5)-S+j.charCodeAt(0)|0,0),$=`mermaid-${Math.abs(U)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:q}=await v.render($,e);d(q),f(q)}catch(v){if(!(p||h)){let U=v instanceof Error?v.message:"Failed to render Mermaid chart";o(U)}}finally{u(!1)}})()}},[e,n,E,x,k]),!(x||h||p))return(0,T.jsx)("div",{className:a("my-4 min-h-[200px]",t),ref:D});if(l&&!h&&!p)return(0,T.jsx)("div",{className:a("my-4 flex justify-center p-4",t),ref:D,children:(0,T.jsxs)("div",{className:a("flex items-center space-x-2 text-muted-foreground"),children:[(0,T.jsx)("div",{className:a("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,T.jsx)("span",{className:a("text-sm"),children:"Loading diagram..."})]})});if(s&&!h&&!p){let v=()=>C(U=>U+1);return I?(0,T.jsx)("div",{ref:D,children:(0,T.jsx)(I,{chart:e,error:s,retry:v})}):(0,T.jsxs)("div",{className:a("rounded-md bg-red-50 p-4",t),ref:D,children:[(0,T.jsxs)("p",{className:a("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),(0,T.jsxs)("details",{className:a("mt-2"),children:[(0,T.jsx)("summary",{className:a("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,T.jsx)("pre",{className:a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let B=h||p;return(0,T.jsx)("div",{className:a("size-full",t),"data-streamdown":"mermaid",ref:D,children:(0,T.jsx)(Oy,{className:a(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:(0,T.jsx)("div",{"aria-label":"Mermaid chart",className:a("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:B},role:"img"})})})};export{Ry as a,Dy as i,ty as n,sA as o,ke as r,Wy as t};
|
|
144
144
|
|
|
145
|
-
//# sourceMappingURL=chunk-YOKDWASO-
|
|
145
|
+
//# sourceMappingURL=chunk-YOKDWASO-DTTU1wSE.js.map
|