PageSourceSearch

https://dokodemo.world/_nuxt/BGXSIS78.js

js dokodemo.world collected 2026-09-24 11:14:08 UTC 505,417 bytes, 148 lines download raw bytes

1import{_ as uh}from"./CPRNNsC0.js";import{d as xe,dL as et,bo as Vn,i as S,a4 as de,o as Ce,c$ as gt,r as Ae,C as Je,bU as oe,F as Gn,b2 as ch,c0 as dn,dM as lh,bI as Dr,dN as hh,dO as dh,dB as Wr,h as or,s as fh,m as Ua,j as qa,k as ph,B as Jt}from"./CCFi5x9s.js";var mh=Object.defineProperty,gh=(e,t,n)=>t in e?mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ie=(e,t,n)=>(gh(e,typeof t!="symbol"?t+"":t,n),n),ea=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},C=(e,t,n)=>(ea(e,t,"read from private field"),n?n.call(e):t.get(e)),se=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},J=(e,t,n,r)=>(ea(e,t,"write to private field"),t.set(e,n),n),wi=(e,t,n,r)=>({set _(s){J(e,t,s)},get _(){return C(e,t,r)}}),K=(e,t,n)=>(ea(e,t,"access private method"),n);const D="md-editor",Eh="md-editor-v3",bh="https://at.alicdn.com/t/c/font_2605852_u82y61ve02.js",me="https://cdnjs.cloudflare.com/ajax/libs",Th=`${me}/highlight.js/11.7.0/highlight.min.js`,$a={main:`${me}/prettier/2.8.0/standalone.js`,markdown:`${me}/prettier/2.8.0/parser-markdown.js`},za={css:`${me}/cropperjs/1.5.13/cropper.min.css`,js:`${me}/cropperjs/1.5.13/cropper.min.js`},_h=`${me}/screenfull.js/5.2.0/screenfull.min.js`,hc=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","htmlPreview","catalog","github"],dc=["markdownTotal","=","scrollSwitch"],Ya={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Img Link",upload:"Upload Img",clip2upload:"Clip Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Word Count",scrollAuto:"Scroll Auto"}}},Ah=`${me}/mermaid/9.4.0/mermaid.min.js`,ja={js:`${me}/KaTeX/0.16.3/katex.min.js`,css:`${me}/KaTeX/0.16.3/katex.min.css`},Va={a11y:{light:`${me}/highlight.js/11.7.0/styles/a11y-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/a11y-dark.min.css`},atom:{light:`${me}/highlight.js/11.7.0/styles/atom-one-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/atom-one-dark.min.css`},github:{light:`${me}/highlight.js/11.7.0/styles/github.min.css`,dark:`${me}/highlight.js/11.7.0/styles/github-dark.min.css`},gradient:{light:`${me}/highlight.js/11.7.0/styles/gradient-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/gradient-dark.min.css`},kimbie:{light:`${me}/highlight.js/11.7.0/styles/kimbie-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/kimbie-dark.min.css`},paraiso:{light:`${me}/highlight.js/11.7.0/styles/paraiso-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/paraiso-dark.min.css`},qtcreator:{light:`${me}/highlight.js/11.7.0/styles/qtcreator-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${me}/highlight.js/11.7.0/styles/stackoverflow-light.min.css`,dark:`${me}/highlight.js/11.7.0/styles/stackoverflow-dark.min.css`}},Se={markedRenderer:e=>e,markedExtensions:[],markedOptions:{},editorExtensions:{},editorConfig:{}},Ch=e=>{if(e)for(const t in e){const n=e[t];n&&(Se[t]=n)}};class kh{constructor(){Ie(this,"pools",{})}remove(t,n,r){const s=this.pools[t]&&this.pools[t][n];s&&(this.pools[t][n]=s.filter(i=>i!==r))}clear(t){this.pools[t]={}}on(t,n){return this.pools[t]||(this.pools[t]={}),this.pools[t][n.name]||(this.pools[t][n.name]=[]),this.pools[t][n.name].push(n.callback),this.pools[t][n.name].includes(n.callback)}emit(t,n,...r){this.pools[t]||(this.pools[t]={});const s=this.pools[t][n];
1s&&s.forEach(i=>{try{i(...r)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const z=new kh,Ct=(e,t=0,n=t)=>new Promise((r,s)=>{e.setSelectionRange?setTimeout(()=>{e.setSelectionRange(t,n),e.focus(),r(!0)},0):(console.error("Can not reset position!"),s())}),Oi=(e,t,n)=>{const{deviationStart:r=0,deviationEnd:s=0,direct:i=!1,select:a=!1}=n;let o="";if(e.selectionStart||e.selectionStart===0){const c=e.selectionStart,l=e.selectionEnd||0,{prefixVal:h=e.value.substring(0,c),subfixVal:d=e.value.substring(l,e.value.length)}=n;o=h+t+d,Ct(e,a?c+r:c+t.length+s,c+t.length+s)}else o+=t;return i&&(e.value=o),o},xh=(e,t={newWindow:!0,nofollow:!0})=>{const n=document.createElement("a");n.href=e,n.style.display="none",t.newWindow&&(n.target="_blank"),t.nofollow&&(n.rel="noopener noreferrer"),document.body.appendChild(n),n.click(),document.body.removeChild(n)},Ga=(e,t)=>{const n=Qr(()=>{e.removeEventListener("scroll",r),e.addEventListener("scroll",r),t.removeEventListener("scroll",r),t.addEventListener("scroll",r)},50),r=s=>{const i=e.clientHeight,a=t.clientHeight,o=e.scrollHeight,c=t.scrollHeight,l=(o-i)/(c-a);s.target===e?(t.removeEventListener("scroll",r),t.scrollTo({top:e.scrollTop/l}),n()):(e.removeEventListener("scroll",r),e.scrollTo({top:t.scrollTop*l}),n())};return[()=>{n().finally(()=>{e.dispatchEvent(new Event("scroll"))})},()=>{e.removeEventListener("scroll",r),t.removeEventListener("scroll",r)}]},vh=(e,t="image.png")=>{const n=e.split(","),r=n[0].match(/:(.*?);/);if(r){const s=r[1],i=atob(n[1]);let a=i.length;const o=new Uint8Array(a);for(;a--;)o[a]=i.charCodeAt(a);return new File([o],t,{type:s})}return null},Wa=e=>{if(!e)return e;const t=e.split(`
2`),n=['<span rn-wrapper aria-hidden="true">'];return t.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="code-block">${e}</span>${n.join("")}`},Qr=(e,t=200)=>{let n=0;return(...r)=>new Promise(s=>{n&&(clearTimeout(n),s("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,s("done")},t)})},Sh=(e,t=200)=>{let n=0,r=null;return(...s)=>{const i=a=>{n===0&&(n=a),a-n>=t?(e.apply(void 0,r),r=null,n=0):window.requestAnimationFrame(i)};r===null&&window.requestAnimationFrame(i),r=s}},Qa=(e,t="$")=>{const n=e.split(t);let r=t,s="";for(let i=1;i<n.length;i++)if(/\\$/.test(n[i]))r+=n[i]+"$",s+=n[i]+"$";else{r+=n[i]+t,s+=n[i];break}return[r,s]},yh=e=>{var t;return navigator.userAgent.indexOf("Firefox")>-1?e.value.substring(e.selectionStart,e.selectionEnd):((t=window.getSelection())==null?void 0:t.toString())||""},Ih=(e,t)=>{const n=e?.getBoundingClientRect();if(t===document.documentElement)return n.top-t.clientTop;const r=t?.getBoundingClientRect();return n.top-r.top},Nh=(e,t)=>{const n={...e};return t.forEach(r=>{Reflect.deleteProperty(n,r)}),n},Dh=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,Ka=(e,t)=>{const n=r=>{const s=e.parentElement||document.body,i=s.offsetWidth,a=s.offsetHeight,{clientWidth:o}=document.documentElement,{clientHeight:c}=document.documentElement,l=r.offsetX,h=r.offsetY,d=f=>{let g=f.x+document.body.scrollLeft-document.body.clientLeft-l,v=f.y+document.body.scrollTop-document.body.clientTop-h;g=g<1?1:g<o-i-1?g:o-i-1,v=v<1?1:v<c-a-1?v:c-a-1,t?t(g,v):(s.style.left=`${g}px`,s.style.top=`${v}px`)};document.addEventListener("mousemove",d);const p=()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",p)};document.addEventListener("mouseup",p)};return e.addEventListener("mousedown",n),()=>{e.removeEventListener("mousedown",n)}},nt=(e,t="")=>{const n=document.getElementById(e.id),r=e.onload;e.onload=null;const s=function(i){typeof r=="function"&&r.bind(this)(i),e.removeEventListener("load",s)};n?t!==""&&(n.addEventListener("load",s),Reflect.get(window,t)&&n.dispatchEvent(new Event("load"))):(e.addEventListener("load",s),document.head.appendChild(e))},Rh=Qr((e,t,n)=>{const r=document.getElementById(e);r&&r.setAttribute(t,n)},10),Rr="onSave",ta="changeCatalogVisible",fc="changeFullscreen",Xa="pageFullscreenChanged",Za="fullscreenChanged",Mi="previewChanged",Ja="htmlPreviewChanged",eo="catalogVisibleChanged",pc="textareaFocus",Lh=(e,t)=>{const{editorId:n,noPrettier:r,previewOnly:s}=e,i=et({buildFinished:!1,html:""}),a=o=>{if(o.target===document.querySelector(`#${e.editorId}-textarea`))if(z.emit(n,"selectTextChange"),o.ctrlKey||o.metaKey)switch(o.code){case"KeyS":{o.shiftKey?z.emit(n,"replace","strikeThrough"):(z.emit(n,Rr,e.modelValue),o.preventDefault());break}case"KeyB":{z.emit(n,"replace","bold"),o.preventDefault();break}case"KeyU":{o.shiftKey?(z.emit(n,"replace","unorderedList"),o.preventDefault()):(z.emit(n,"replace","underline"),o.preventDefault());break}case"KeyI":{o.shiftKey?(z.emit(n,"openModals","image"),o.preventDefault()):(z.emit(n,"replace","italic"),o.preventDefault());break}case"Digit1":{z.emit(n,"replace","h1"),o.preventDefault();break}case"Digit2":{z.emit(n,"replace","h2"),o.preventDefault();break}case"Digit3":{z.emit(n,"replace","h3"),o.preventDefault();break}case"Digit4":{z.emit(n,"replace","h4"),o.preventDefault();break}case"Digit5":{z.emit(n,"replace","h5"),o.preventDefault();break}case"Digit6":{z.emit(n,"replace","h6"),o.preventDefault();break}case"ArrowUp":{z.emit(n,"replace","sup"),o.preventDefault();break}case"ArrowDown":{z.emit(n,"replace","sub"),o.preventDefault();break}case"KeyQ":{if(o.key==="a"){o.target.select();return}z.emit(n,"replace","quote"),o.preventDefault();break}case"KeyA":if(o.key==="q"){z.emit(n,"replace","quote"),o.preventDefault();break}else return;case"KeyO":{z.emit(n,"replace","orderedList"),o.preventDefault();break}
2case"KeyC":{if(o.shiftKey)z.emit(n,"replace","code"),o.preventDefault();else if(o.altKey)z.emit(n,"replace","codeRow"),o.preventDefault();else{o.preventDefault(),z.emit(n,"replace","ctrlC");break}break}case"KeyL":{z.emit(n,"openModals","link"),o.preventDefault();break}case"KeyZ":{if(o.key==="w")return;o.shiftKey?(z.emit(n,"ctrlShiftZ"),o.preventDefault()):(z.emit(n,"ctrlZ"),o.preventDefault());break}case"KeyW":if(o.key==="z"){o.shiftKey?(z.emit(n,"ctrlShiftZ"),o.preventDefault()):(z.emit(n,"ctrlZ"),o.preventDefault());break}else return;case"KeyF":{o.shiftKey&&(r||(z.emit(n,"replace","prettier"),o.preventDefault()));break}case"KeyT":{o.altKey&&o.shiftKey&&(z.emit(n,"replace","table"),o.preventDefault());break}case"KeyX":{z.emit(n,"replace","ctrlX"),o.preventDefault();break}case"KeyD":{o.preventDefault(),z.emit(n,"replace","ctrlD");break}}else o.code==="Tab"&&(o.preventDefault(),o.shiftKey?z.emit(n,"replace","shiftTab"):z.emit(n,"replace","tab"))};de(()=>e.modelValue,()=>{i.buildFinished=!1}),Ce(()=>{s||(window.addEventListener("keydown",a),z.on(n,{name:"buildFinished",callback(o){i.buildFinished=!0,i.html=o}}),z.on(n,{name:Rr,callback(){const o=new Promise(c=>{if(i.buildFinished)c(i.html);else{const l=h=>{c(h),z.remove(n,"buildFinished",l)};z.on(n,{name:"buildFinished",callback:l})}});e.onSave?e.onSave(e.modelValue,o):t.emit("onSave",e.modelValue,o)}}))}),Vn(()=>{s||window.removeEventListener("keydown",a)})},wh=e=>{var t;const{editorId:n,previewOnly:r}=e,s=(t=Se?.editorExtensions)==null?void 0:t.highlight;gt("editorId",n),gt("tabWidth",e.tabWidth),gt("theme",Je(()=>e.theme)),gt("highlight",Je(()=>{const a={...Va,...s?.css},o=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme;return{js:s?.js||Th,css:a[e.codeTheme]?a[e.codeTheme][o]:Va.atom[o]}})),gt("historyLength",e.historyLength),gt("previewOnly",r),gt("showCodeRowNumber",e.showCodeRowNumber);const i=Je(()=>{var a;const o={...Ya,...(a=Se?.editorConfig)==null?void 0:a.languageUserDefined};return o[e.language]?o[e.language]:Ya["zh-CN"]});gt("usedLanguageText",i),gt("previewTheme",Je(()=>e.previewTheme))},Oh=e=>{var t,n,r,s,i,a;const{noPrettier:o,previewOnly:c,noIconfont:l,noUploadImg:h}=e,{editorExtensions:d}=Se,p=o||!!((n=(t=Se.editorExtensions)==null?void 0:t.prettier)!=null&&n.prettierInstance),f=o||!!((s=(r=Se.editorExtensions)==null?void 0:r.prettier)!=null&&s.parserMarkdownInstance),g=h||!!((a=(i=Se.editorExtensions)==null?void 0:i.cropper)!=null&&a.instance);Ce(()=>{var v,x,E,_;const T=document.createElement("script");T.src=d?.iconfont||bh,T.id=`${D}-icon`;const A=document.createElement("script"),I=document.createElement("script");A.src=((v=d?.prettier)==null?void 0:v.standaloneJs)||$a.main,A.id=`${D}-prettier`,I.src=((x=d?.prettier)==null?void 0:x.parserMarkdownJs)||$a.markdown,I.id=`${D}-prettierMD`;const N=document.createElement("link");N.rel="stylesheet",N.href=((E=d?.cropper)==null?void 0:E.css)||za.css,N.id=`${D}-cropperCss`;const O=document.createElement("script");O.src=((_=d?.cropper)==null?void 0:_.js)||za.js,O.id=`${D}-cropper`,l||nt(T),c||(g||(nt(N),nt(O)),p||nt(A),f||nt(I))})},Mh=(e,t)=>{const{editorId:n,previewOnly:r}=e,s=et({pageFullscreen:e.pageFullscreen,fullscreen:!1,preview:e.preview,htmlPreview:e.preview?!1:e.htmlPreview}),i=(c,l)=>{s[c]=l===void 0?!s[c]:l,c==="preview"&&s.preview?s.htmlPreview=!1:c==="htmlPreview"&&s.htmlPreview&&(s.preview=!1)};let a="";const o=()=>{s.pageFullscreen||s.fullscreen?document.body.style.overflow="hidden":document.body.style.overflow=a};return de(()=>[s.pageFullscreen,s.fullscreen],o),Ce(()=>{r||z.on(n,{name:"uploadImage",callback(c,l){const h=d=>{z.emit(n,"replace","image",{desc:"",urls:d}),l&&l()};e.onUploadImg?e.onUploadImg(c,h):t.emit("onUploadImg",c,h)}}),a=document.body.style.overflow,o()}),[s,i]},Ph=e=>{const{editorId:t}=e,n=Ae(!1);Ce(()=>{z.on(t,{name:ta,callback:s=>{s===void 0?n.value=!n.value:n.value=s}})});const r=Je(()=>!e.toolbarsExclude.includes("catalog")&&e.toolbars.includes("catalog"));return[n,r]},Fh=(e,t,n,r,s)=>{const{editorId:i}=e;de(()=>r.pageFullscreen,o=>{z.emit(i,Xa,o)}),de(()=>r.fullscreen,o=>{z.emit(i,Za,o)}),de(()=>r.preview,o=>{z.emit(i,Mi,o)}),de(()=>r.htmlPreview,o=>{z.emit(i,Ja,o)}),de(n,o=>{z.emit(i,eo,o)});const a={on(o,c){switch(o){case"pageFullscreen":{z.on(i,{name:Xa,callback(l){c(l)}});break}case"fullscreen":{z.on(i,{name:Za,callback(l){c(l)}});break}case"preview":{z.on(i,{name:Mi,callback(l){c(l)}});break}case"htmlPreview":{z.on(i,{name:Ja,callback(l){c(l)}});break}case"catalog":{z.on(i,{name:eo,callback(l){c(l)}});break}}},togglePageFullscreen(o){s("pageFullscreen",o)},toggleFullscreen(o){z.emit(i,fc,o)},togglePreview(o){s("preview",o)},toggleHtmlPreview(o){s("htmlPreview",o)},toggleCatalog(o){z.emit(i,ta,o)},triggerSave(){z.emit(i,Rr)},insert(o){z.emit(i,"replace","universal",{generate:o})},focus(){z.emit(i,pc)}};t.expose(a)},Bh=xe({setup(){return()=>S("div",{class:`${D}-divider`},null)}}),rt=({instance:e,ctx:t,props:n={}},r="default")=>{const s=e?.$slots[r]||t?.slots[r];return(s?s(e):"")||n[r]},Hh=()=>({trigger:{type:String,default:"hover"},overlay:{type:[String,Object],default:""},visible:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}},relative:{type:String,default:"html"}}),rn=xe({props:Hh(),setup(e,t){const n=`${D}-dropdown-hidden`,r=et({overlayClass:[n],overlayStyle:{},triggerHover:!1,overlayHover:!1}
2),s=Ae(),i=Ae(),a=()=>{var d;e.trigger==="hover"&&(r.triggerHover=!0);const p=s.value,f=i.value,g=p.getBoundingClientRect(),v=p.offsetTop,x=p.offsetLeft,E=g.height,_=g.width,T=((d=document.querySelector(e.relative))==null?void 0:d.scrollLeft)||0;r.overlayStyle={...r.overlayStyle,top:v+E+"px",left:x-f.offsetWidth/2+_/2-T+"px"},e.onChange(!0)},o=()=>{r.overlayHover=!0};de(()=>e.visible,d=>{d?r.overlayClass=r.overlayClass.filter(p=>p!==n):r.overlayClass.push(n)});const c=d=>{const p=s.value,f=i.value;!p.contains(d.target)&&!f.contains(d.target)&&e.onChange(!1)};let l=-1;const h=d=>{s.value===d.target?r.triggerHover=!1:r.overlayHover=!1,clearTimeout(l),l=window.setTimeout(()=>{!r.overlayHover&&!r.triggerHover&&e.onChange(!1)},10)};return Ce(()=>{e.trigger==="click"?(s.value.addEventListener("click",a),document.addEventListener("click",c)):(s.value.addEventListener("mouseenter",a),s.value.addEventListener("mouseleave",h),i.value.addEventListener("mouseenter",o),i.value.addEventListener("mouseleave",h))}),Vn(()=>{e.trigger==="click"?(s.value.removeEventListener("click",a),document.removeEventListener("click",c)):(s.value.removeEventListener("mouseenter",a),s.value.removeEventListener("mouseleave",h),i.value.removeEventListener("mouseenter",o),i.value.removeEventListener("mouseleave",h))}),()=>{const d=rt({ctx:t}),p=rt({props:e,ctx:t},"overlay"),f=lh(d instanceof Array?d[0]:d,{ref:s}),g=S("div",{class:[`${D}-dropdown`,r.overlayClass],style:r.overlayStyle,ref:i},[S("div",{class:`${D}-dropdown-overlay`},[p instanceof Array?p[0]:p])]);return[f,g]}}}),Uh=()=>({title:{type:String,default:""},visible:{type:Boolean,default:!1},width:{type:String,default:"auto"},height:{type:String,default:"auto"},onClose:{type:Function,default:()=>{}},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function,default:()=>{}},class:{type:String}}),na=xe({props:Uh(),setup(e,t){const n=Ae(e.visible),r=Ae([`${D}-modal`]),s=Ae(),i=Ae();let a=()=>{};const o=et({initPos:{left:"0px",top:"0px"},historyPos:{left:"0px",top:"0px"}}),c=Je(()=>e.isFullscreen?{width:"100%",height:"100%"}:{width:e.width,height:e.height});return Ce(()=>{a=Ka(i.value,(l,h)=>{o.initPos.left=l+"px",o.initPos.top=h+"px"})}),Vn(()=>{a()}),de(()=>e.isFullscreen,l=>{l?a():a=Ka(i.value,(h,d)=>{o.initPos.left=h+"px",o.initPos.top=d+"px"})}),de(()=>e.visible,l=>{l?(r.value.push("zoom-in"),n.value=l,dn(()=>{const h=s.value.offsetWidth/2,d=s.value.offsetHeight/2,p=document.documentElement.clientWidth/2,f=document.documentElement.clientHeight/2;o.initPos.left=p-h+"px",o.initPos.top=f-d+"px"}),setTimeout(()=>{r.value=r.value.filter(h=>h!=="zoom-in")},140)):(r.value.push("zoom-out"),setTimeout(()=>{r.value=r.value.filter(h=>h!=="zoom-out"),n.value=l},130))}),()=>{const l=rt({ctx:t}),h=rt({props:e,ctx:t},"title");return S("div",{class:[e.class],style:{display:n.value?"block":"none"}},[S("div",{class:`${D}-modal-mask`,onClick:e.onClose},null),S("div",{class:r.value,style:{...o.initPos,...c.value},ref:s},[S("div",{class:`${D}-modal-header`,ref:i},[h||""]),S("div",{class:`${D}-modal-body`},[l]),S("div",{class:`${D}-modal-func`},[e.showAdjust&&S("div",{class:`${D}-modal-adjust`,onClick:d=>{d.stopPropagation(),e.isFullscreen?o.initPos=o.historyPos:(o.historyPos=o.initPos,o.initPos={left:"0",top:"0"}),e.onAdjust(!e.isFullscreen)}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":`#md-editor-icon-${e.isFullscreen?"suoxiao":"fangda"}`},null)])]),S("div",{class:`${D}-modal-close`,onClick:d=>{d.stopPropagation(),e.onClose&&e.onClose()}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-close"},null)])])])])])}}}),qh=()=>({type:{type:String,default:"link"},visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}}),$h=xe({props:qh(),setup(e){const t=oe("usedLanguageText"),n=oe("editorId"),r=Je(()=>{var i,a;switch(e.type){case"link":return(i=t.value.linkModalTips)==null?void 0:i.linkTitle;case"image":return(a=t.value.linkModalTips)==null?void 0:a.imageTitle;default:return""}}),s=et({desc:"",url:""});return de(()=>e.visible,i=>{i||setTimeout(()=>{s.desc="",s.url=""},200)}),()=>S(na,{title:r.value,visible:e.visible,onClose:e.onCancel},{default:()=>{var i,a,o,c,l;return[S("div",{class:`${D}-form-item`},[S("label",{class:`${D}-label`,for:`link-desc-${n}`},[(i=t.value.linkModalTips)==null?void 0:i.descLabel]),S("input",{placeholder:(a=t.value.linkModalTips)==null?void 0:a.descLabelPlaceHolder,class:`${D}-input`,id:`link-desc-${n}`,type:"text",value:s.desc,onChange:h=>{s.desc=h.target.value},autocomplete:"off"},null)]),S("div",{class:`${D}-form-item`},[S("label",{class:`${D}-label`,for:`link-url-${n}`},[(o=t.value.linkModalTips)==null?void 0:o.urlLabel]),S("input",{placeholder:(c=t.value.linkModalTips)==null?void 0:c.urlLabelPlaceHolder,class:`${D}-input`,id:`link-url-${n}`,type:"text",value:s.url,onChange:h=>{s.url=h.target.value},autocomplete:"off"},null)]),S("div",{class:`${D}-form-item`},[S("button",{class:[`${D}-btn`,`${D}-btn-row`],type:"button",onClick:()=>{e.onOk(s),s.desc="",s.url=""}},[(l=t.value.linkModalTips)==null?void 0:l.buttonOK])])]}})}}),zh=()=>({visible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}}),Yh=xe({props:zh(),setup(e){var t,n;const r=oe("usedLanguageText"),s=oe("editorId");let i=(n=(t=Se?.editorExtensions)==null?void 0:t.cropper)==null?void 0:n.instance;const a=Ae(),o=Ae(),c=Ae(),l=et({cropperInited:!1,imgSelected:!1,imgSrc:"",isFullscreen:!1});let h=null;de(()=>e.visible,()=>{e.visible&&!l.cropperInited&&(i=i||window.Cropper,a.value.onchange=()=>{if(!i){z.emit(s,"errorCatcher",{name:"Cropper",message:"Cropper is undefined"});return}const p=a.value.files||[];
2if(l.imgSelected=!0,p?.length>0){const f=new FileReader;f.onload=g=>{l.imgSrc=g.target.result,dn(()=>{h=new i(o.value,{viewMode:2,preview:`.${D}-clip-preview-target`})})},f.readAsDataURL(p[0])}})}),de(()=>[l.imgSelected],()=>{c.value.style=""}),de(()=>l.isFullscreen,()=>{dn(()=>{h?.destroy(),c.value.style="",o.value&&(h=new i(o.value,{viewMode:2,preview:`.${D}-clip-preview-target`}))})});const d=()=>{h.clear(),h.destroy(),h=null,a.value.value="",l.imgSelected=!1};return()=>{var p;return S(na,{class:`${D}-modal-clip`,title:(p=r.value.clipModalTips)==null?void 0:p.title,visible:e.visible,onClose:e.onCancel,showAdjust:!0,isFullscreen:l.isFullscreen,onAdjust:f=>{l.isFullscreen=f},width:"668px",height:"421px"},{default:()=>{var f,g;return[S("div",{class:`${D}-form-item ${D}-clip`},[S("div",{class:`${D}-clip-main`},[l.imgSelected?S("div",{class:`${D}-clip-cropper`},[S("img",{src:l.imgSrc,ref:o,style:{display:"none"},alt:""},null),S("div",{class:`${D}-clip-delete`,onClick:d},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-delete"},null)])])]):S("div",{class:`${D}-clip-upload`,onClick:()=>{a.value.click()}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-upload"},null)])])]),S("div",{class:`${D}-clip-preview`},[S("div",{class:`${D}-clip-preview-target`,ref:c},null)])]),S("div",{class:`${D}-form-item`},[S("button",{class:`${D}-btn`,type:"button",onClick:()=>{if(h){const v=h.getCroppedCanvas();z.emit(s,"uploadImage",[vh(v.toDataURL("image/png"))],e.onOk),d()}}},[((f=r.value.clipModalTips)==null?void 0:f.buttonUpload)||((g=r.value.linkModalTips)==null?void 0:g.buttonOK)])]),S("input",{ref:a,accept:"image/*",type:"file",multiple:!1,style:{display:"none"}},null)]}})}}}),jh=()=>({type:{type:String,default:"link"},linkVisible:{type:Boolean,default:!1},clipVisible:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onOk:{type:Function,default:()=>{}}}),Vh=xe({props:jh(),setup(e){return()=>S(Gn,null,[S($h,{type:e.type,visible:e.linkVisible,onOk:e.onOk,onCancel:e.onCancel},null),S(Yh,{visible:e.clipVisible,onOk:e.onOk,onCancel:e.onCancel},null)])}}),Gh=e=>{var t,n,r,s;const i=oe("editorId");let a=(n=(t=Se.editorExtensions)==null?void 0:t.screenfull)==null?void 0:n.instance;const o=(s=(r=Se.editorExtensions)==null?void 0:r.screenfull)==null?void 0:s.js,c=Ae(!1),l=p=>{if(!a){z.emit(i,"errorCatcher",{name:"fullscreen",message:"fullscreen is undefined"});return}a.isEnabled?(c.value=!0,(p===void 0?!a.isFullscreen:p)?a.request():a.exit()):console.error("browser does not support screenfull!")},h=()=>{a&&a.isEnabled&&a.on("change",()=>{(c.value||e.setting.fullscreen)&&(c.value=!1,e.updateSetting("fullscreen"))})},d=()=>{a=window.screenfull,h()};return Ce(()=>{if(h(),!a){const p=document.createElement("script");p.src=o||_h,p.onload=d,p.id=`${D}-screenfull`,nt(p,"screenfull")}}),Ce(()=>{z.on(i,{name:fc,callback:l})}),{fullscreenHandler:l}},Wh=()=>({tableShape:{type:Array,default:()=>[6,4]},onSelected:{type:Function,default:()=>{}}}),Qh=xe({name:"TableShape",props:Wh(),setup(e){const t=et({x:-1,y:-1});return()=>S("div",{class:`${D}-table-shape`,onMouseleave:()=>{t.x=-1,t.y=-1}},[new Array(e.tableShape[1]).fill("").map((n,r)=>S("div",{class:`${D}-table-shape-row`,key:`table-shape-row-${r}`},[new Array(e.tableShape[0]).fill("").map((s,i)=>S("div",{class:`${D}-table-shape-col`,key:`table-shape-col-${i}`,onMouseenter:()=>{t.x=r,t.y=i},onClick:()=>{e.onSelected(t)}},[S("div",{class:[`${D}-table-shape-col-default`,r<=t.x&&i<=t.y&&`${D}-table-shape-col-include`]},null)]))]))])}}),Kh=()=>({noPrettier:{type:Boolean},toolbars:{type:Array,default:()=>[]},toolbarsExclude:{type:Array,default:()=>[]},setting:{type:Object,default:()=>({})},screenfull:{type:Object,default:null},screenfullJs:{type:String,default:""},updateSetting:{type:Function,default:()=>{}},tableShape:{type:Array,default:()=>[6,4]},defToolbars:{type:Object},noUploadImg:{type:Boolean}}),Xh=xe({name:"MDEditorToolbar",props:Kh(),setup(e){const t=oe("editorId"),n=oe("usedLanguageText"),{fullscreenHandler:r}=Gh(e),s=`${t}-toolbar-wrapper`,i=et({title:!1,catalog:!1,image:!1,table:!1,mermaid:!1,katex:!1}),a=(f,g)=>{z.emit(t,"replace",f,g)}
2,o=et({type:"link",linkVisible:!1,clipVisible:!1}),c=Ae();Ce(()=>{z.on(t,{name:"openModals",callback(f){o.type=f,o.linkVisible=!0}})});const l=Je(()=>{const f=e.toolbars.filter(E=>!e.toolbarsExclude.includes(E)),g=f.indexOf("="),v=g===-1?f:f.slice(0,g+1),x=g===-1?[]:f.slice(g,Number.MAX_SAFE_INTEGER);return[v,x]}),h=Ae(),d=()=>{z.emit(t,"uploadImage",Array.from(h.value.files||[])),h.value.value=""};Ce(()=>{h.value.addEventListener("change",d)});const p=f=>{var g,v,x,E,_,T,A,I,N,O,y,U,F,P,$,j,w,H,Y,te,ce,ne,Q,Fe,He,Oe,Jn,er,Ft,tr,nr,Kt,Xt,rr,sr,Zt,ir,ar,Tn,Pa,Fa,Ba,Ha;if(hc.includes(f))switch(f){case"-":return S(Bh,null,null);case"bold":return S("div",{class:`${D}-toolbar-item`,title:(g=n.value.toolbarTips)==null?void 0:g.bold,onClick:()=>{a("bold")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-bold"},null)])]);case"underline":return S("div",{class:`${D}-toolbar-item`,title:(v=n.value.toolbarTips)==null?void 0:v.underline,onClick:()=>{a("underline")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-underline"},null)])]);case"italic":return S("div",{class:`${D}-toolbar-item`,title:(x=n.value.toolbarTips)==null?void 0:x.italic,onClick:()=>{a("italic")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-italic"},null)])]);case"strikeThrough":return S("div",{class:`${D}-toolbar-item`,title:(E=n.value.toolbarTips)==null?void 0:E.strikeThrough,onClick:()=>{a("strikeThrough")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-strike-through"},null)])]);case"title":return S(rn,{relative:`#${s}`,visible:i.title,onChange:pe=>{i.title=pe},overlay:S("ul",{class:`${D}-menu`,onClick:()=>{i.title=!1}},[S("li",{class:`${D}-menu-item`,onClick:()=>{a("h1")}},[(_=n.value.titleItem)==null?void 0:_.h1]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("h2")}},[(T=n.value.titleItem)==null?void 0:T.h2]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("h3")}},[(A=n.value.titleItem)==null?void 0:A.h3]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("h4")}},[(I=n.value.titleItem)==null?void 0:I.h4]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("h5")}},[(N=n.value.titleItem)==null?void 0:N.h5]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("h6")}},[(O=n.value.titleItem)==null?void 0:O.h6])])},{default:()=>{var pe;return[S("div",{class:`${D}-toolbar-item`,title:(pe=n.value.toolbarTips)==null?void 0:pe.title},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-title"},null)])])]}});case"sub":return S("div",{class:`${D}-toolbar-item`,title:(y=n.value.toolbarTips)==null?void 0:y.sub,onClick:()=>{a("sub")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-sub"},null)])]);case"sup":return S("div",{class:`${D}-toolbar-item`,title:(U=n.value.toolbarTips)==null?void 0:U.sup,onClick:()=>{a("sup")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-sup"},null)])]);case"quote":return S("div",{class:`${D}-toolbar-item`,title:(F=n.value.toolbarTips)==null?void 0:F.quote,onClick:()=>{a("quote")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-quote"},null)])]);case"unorderedList":return S("div",{class:`${D}-toolbar-item`,title:(P=n.value.toolbarTips)==null?void 0:P.unorderedList,onClick:()=>{a("unorderedList")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-unordered-list"},null)])]);case"orderedList":return S("div",{class:`${D}-toolbar-item`,title:($=n.value.toolbarTips)==null?void 0:$.orderedList,onClick:()=>{a("orderedList")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-ordered-list"},null)])]);case"task":return S("div",{class:`${D}-toolbar-item`,title:(j=n.value.toolbarTips)==null?void 0:j.task,onClick:()=>{a("task")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-task"},null)])]);case"codeRow":return S("div",{class:`${D}-toolbar-item`,title:(w=n.value.toolbarTips)==null?void 0:w.codeRow,onClick:()=>{a("codeRow")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-code-row"},null)])]);case"code":return S("div",{class:`${D}-toolbar-item`,title:(H=n.value.toolbarTips)==null?void 0:H.code,onClick:()=>{a("code")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-code"},null)])]);case"link":return S("div",{class:`${D}-toolbar-item`,title:(Y=n.value.toolbarTips)==null?void 0:Y.link,onClick:()=>{o.type="link",o.linkVisible=!0}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-link"},null)])]);case"image":return e.noUploadImg?S("div",{class:`${D}-toolbar-item`,title:(te=n.value.toolbarTips)==null?void 0:te.image,onClick:()=>{o.type="image",o.linkVisible=!0}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-image"},null)])]):S(rn,{relative:`#${s}`,visible:i.image,onChange:pe=>{i.image=pe},overlay:S("ul",{class:`${D}-menu`,onClick:()=>{i.title=!1}},[S("li",{class:`${D}-menu-item`,onClick:()=>{o.type="image",o.linkVisible=!0}},[(ce=n.value.imgTitleItem)==null?void 0:ce.link]),S("li",{class:`${D}-menu-item`,onClick:()=>{h.value.click()}},[(ne=n.value.imgTitleItem)==null?void 0:ne.upload]),S("li",{class:`${D}-menu-item`,onClick:()=>{o.clipVisible=!0}},[(Q=n.value.imgTitleItem)==null?void 0:Q.clip2upload])])},{default:()=>{var pe;return[S("div",{class:`${D}-toolbar-item`,title:(pe=n.value.toolbarTips)==null?void 0:pe.image},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-image"},null)])])]}});case"table":return S(rn,{relative:`#${s}`,visible:i.table,onChange:pe=>{i.table=pe},key:"bar-table",overlay:S(Qh,{tableShape:e.tableShape,onSelected:pe=>{a("table",{selectedShape:pe})}},null)},{default:()=>{var pe;return[S("div",{class:`${D}-toolbar-item`,title:(pe=n.value.toolbarTips)==null?void 0:pe.table},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-table"},null)])])]}});case"revoke":return S("div",{class:`${D}-toolbar-item`,title:(Fe=n.value.toolbarTips)==null?void 0:Fe.revoke,onClick:()=>{z.emit(t,"ctrlZ")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-revoke"},null)])]);case"next":return S("div",{class:`${D}-toolbar-item`,title:(He=n.value.toolbarTips)==null?void 0:He.next,onClick:()=>{z.emit(t,"ctrlShiftZ")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-next"},null)])]);case"save":return S("div",{class:`${D}-toolbar-item`,title:(Oe=n.value.toolbarTips)==null?void 0:Oe.save,onClick:()=>{z.emit(t,Rr)}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-baocun"},null)])]);case"prettier":return e.noPrettier?"":S("div",{class:`${D}-toolbar-item`,title:(Jn=n.value.toolbarTips)==null?void 0:Jn.prettier,onClick:()=>{a("prettier")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-prettier"},null)])]);case"pageFullscreen":return!e.setting.fullscreen&&S("div",{class:`${D}-toolbar-item`,title:(er=n.value.toolbarTips)==null?void 0:er.pageFullscreen,onClick:()=>{e.updateSetting("pageFullscreen")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":`#md-editor-icon-${e.setting.pageFullscreen?"suoxiao":"fangda"}`},null)])]);case"fullscreen":return S("div",{class:`${D}-toolbar-item`,title:(Ft=n.value.toolbarTips)==null?void 0:Ft.fullscreen,onClick:()=>{r()}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":`#md-editor-icon-${e.setting.fullscreen?"fullscreen-exit":"fullscreen"}`},null)])]);case"preview":return S("div",{class:`${D}-toolbar-item`,title:(tr=n.value.toolbarTips)==null?void 0:tr.preview,onClick:()=>{e.updateSetting("preview")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-preview"},null)])]);case"htmlPreview":return S("div",{class:`${D}-toolbar-item`,title:(nr=n.value.toolbarTips)==null?void 0:nr.htmlPreview,onClick:()=>{e.updateSetting("htmlPreview")}},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-coding"},null)])]);case"catalog":return S("div",{class:`${D}-toolbar-item`,title:(Kt=n.value.toolbarTips)==null?void 0:Kt.catalog,onClick:()=>{z.emit(t,ta)},key:"bar-catalog"},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-catalog"},null)])]);case"github":return S("div",{class:`${D}-toolbar-item`,title:(Xt=n.value.toolbarTips)==null?void 0:Xt.github,onClick:()=>xh("https://github.com/imzbf/md-editor-v3")},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-github"},null)])]);case"mermaid":return S(rn,{relative:`#${s}`,visible:i.mermaid,onChange:pe=>{i.mermaid=pe},overlay:S("ul",{class:`${D}-menu`,onClick:()=>{i.mermaid=!1}},[S("li",{class:`${D}-menu-item`,onClick:()=>{a("flow")}},[(rr=n.value.mermaid)==null?void 0:rr.flow]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("sequence")}},[(sr=n.value.mermaid)==null?void 0:sr.sequence]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("gantt")}},[(Zt=n.value.mermaid)==null?void 0:Zt.gantt]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("class")}},[(ir=n.value.mermaid)==null?void 0:ir.class]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("state")}},[(ar=n.value.mermaid)==null?void 0:ar.state]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("pie")}},[(Tn=n.value.mermaid)==null?void 0:Tn.pie]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("relationship")}},[(Pa=n.value.mermaid)==null?void 0:Pa.relationship]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("journey")}},[(Fa=n.value.mermaid)==null?void 0:Fa.journey])]),key:"bar-mermaid"},{default:()=>{var pe;return[S("div",{class:`${D}-toolbar-item`,title:(pe=n.value.toolbarTips)==null?void 0:pe.mermaid},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-mermaid"},null)])])]}});case"katex":return S(rn,{relative:`#${s}`,visible:i.katex,onChange:pe=>{i.katex=pe},overlay:S("ul",{class:`${D}-menu`,onClick:()=>{i.katex=!1}},[S("li",{class:`${D}-menu-item`,onClick:()=>{a("katexInline")}},[(Ba=n.value.katex)==null?void 0:Ba.inline]),S("li",{class:`${D}-menu-item`,onClick:()=>{a("katexBlock")}},[(Ha=n.value.katex)==null?void 0:Ha.block])]),key:"bar-katex"},{default:()=>{var pe;return[S("div",{class:`${D}-toolbar-item`,title:(pe=n.value.toolbarTips)==null?void 0:pe.katex},[S("svg",{class:`${D}-icon`,"aria-hidden":"true"},[S("use",{"xlink:href":"#md-editor-icon-formula"},null)])])]}})}else return e.defToolbars instanceof Array?e.defToolbars[f]||"":e.defToolbars&&e.defToolbars.children instanceof Array&&e.defToolbars.children[f]||""};return()=>{const f=l.value[0].map(v=>p(v)),g=l.value[1].map(v=>p(v));return S(Gn,null,[e.toolbars.length>0&&S("div",{class:`${D}-toolbar-wrapper`,id:s},[S("div",{class:`${D}-toolbar`},[S("div",{class:`${D}-toolbar-left`,ref:c},[f]),S("div",{class:`${D}-toolbar-right`},[g])])]),S("input",{ref:h,accept:"image/*",type:"file",multiple:!0,style:{display:"none"}},null),S(Vh,{linkVisible:o.linkVisible,clipVisible:o.clipVisible,type:o.type,onCancel:()=>{o.linkVisible=!1,o.clipVisible=!1},onOk:v=>{v&&a(o.type,{desc:v.desc,url:v.url}),o.linkVisible=!1,o.clipVisible=!1}},null)])}}});function mc(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let mn=mc();function Zh(e){mn=e}const gc=/[&<>"']/,Jh=new RegExp(gc.source,"g"),Ec=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ed=new RegExp(Ec.source,"g"),td={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},to=e=>td[e];function Le(e,t){if(t){if(gc.test(e))return e.replace(Jh,to)}else if(Ec.test(e))return e.replace(ed,to);return e}const nd=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function bc(e){return e.replace(nd,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const rd=/(^|[^\[])\^/g;function fe(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,s)=>(s=s.source||s,s=s.replace(rd,"$1"),e=e.replace(r,s),n),getRegex:()=>new RegExp(e,t)};return n}
2const sd=/[^\w:]/g,id=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function no(e,t,n){if(e){let r;try{r=decodeURIComponent(bc(n)).replace(sd,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}t&&!id.test(n)&&(n=cd(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const ur={},ad=/^[^:]+:\/*[^/]*$/,od=/^([^:]+:)[\s\S]*$/,ud=/^([^:]+:\/*[^/]*)[\s\S]*$/;function cd(e,t){ur[" "+e]||(ad.test(e)?ur[" "+e]=e+"/":ur[" "+e]=Tr(e,"/",!0)),e=ur[" "+e];const n=e.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:e.replace(od,"$1")+t:t.charAt(0)==="/"?n?t:e.replace(ud,"$1")+t:e+t}const Lr={exec:function(){}};function st(e){let t=1,n,r;for(;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}function ro(e,t){const n=e.replace(/\|/g,(i,a,o)=>{let c=!1,l=a;for(;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}),r=n.split(/ \|/);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}function Tr(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r;){const i=e.charAt(r-s-1);if(i===t&&!n)s++;else if(i!==t&&n)s++;else break}return e.slice(0,r-s)}function ld(e,t){if(e.indexOf(t[1])===-1)return-1;const n=e.length;let r=0,s=0;for(;s<n;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])r++;else if(e[s]===t[1]&&(r--,r<0))return s;return-1}function Tc(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function so(e,t){if(t<1)return"";let n="";for(;t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function io(e,t,n,r){const s=t.href,i=t.title?Le(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:s,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:s,title:i,text:Le(a)}}function hd(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
3`).map(s=>{const i=s.match(/^\s+/);if(i===null)return s;const[a]=i;return a.length>=r.length?s.slice(r.length):s}).join(`
4`)}class ra{constructor(t){this.options=t||mn}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Tr(r,`
5`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=hd(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:s}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const s=Tr(r,"#");(this.options.pedantic||!s||/ $/.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=n[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r,s,i,a,o,c,l,h,d,p,f,g,v=n[1].trim();const x=v.length>1,E={type:"list",raw:"",ordered:x,start:x?+v.slice(0,-1):"",loose:!1,items:[]};v=x?`\\d{1,9}\\${v.slice(-1)}`:`\\${v}`,this.options.pedantic&&(v=x?v:"[*+-]");const _=new RegExp(`^( {0,3}${v})((?:[	 ][^\\n]*)?(?:\\n|$))`);for(;t&&(g=!1,!(!(n=_.exec(t))||this.rules.block.hr.test(t)));){if(r=n[0],t=t.substring(r.length),h=n[2].split(`
6`,1)[0].replace(/^\t+/,A=>" ".repeat(3*A.length)),d=t.split(`
7`,1)[0],this.options.pedantic?(a=2,f=h.trimLeft()):(a=n[2].search(/[^ ]/),a=a>4?1:a,f=h.slice(a),a+=n[1].length),c=!1,!h&&/^ *$/.test(d)&&(r+=d+`
8`,t=t.substring(d.length+1),g=!0),!g){const A=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),I=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),N=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),O=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;t&&(p=t.split(`
9`,1)[0],d=p,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(N.test(d)||O.test(d)||A.test(d)||I.test(t)));){if(d.search(/[^ ]/)>=a||!d.trim())f+=`
10`+d.slice(a);else{if(c||h.search(/[^ ]/)>=4||N.test(h)||O.test(h)||I.test(h))break;f+=`
11`+d}!c&&!d.trim()&&(c=!0),r+=p+`
12`,t=t.substring(p.length+1),h=d.slice(a)}}E.loose||(l?E.loose=!0:/\n *\n *$/.test(r)&&(l=!0)),this.options.gfm&&(s=/^\[[ xX]\] /.exec(f),s&&(i=s[0]!=="[ ] ",f=f.replace(/^\[[ xX]\] +/,""))),E.items.push({type:"list_item",raw:r,task:!!s,checked:i,loose:!1,text:f}),E.raw+=r}E.items[E.items.length-1].raw=r.trimRight(),E.items[E.items.length-1].text=f.trimRight(),E.raw=E.raw.trimRight();const T=E.items.length;for(o=0;o<T;o++)if(this.lexer.state.top=!1,E.items[o].tokens=this.lexer.blockTokens(E.items[o].text,[]),!E.loose){const A=E.items[o].tokens.filter(N=>N.type==="space"),I=A.length>0&&A.some(N=>/\n.*\n/.test(N.raw));E.loose=I}if(E.loose)for(o=0;o<T;o++)E.items[o].loose=!0;return E}}html(t){const n=this.rules.block.html.exec(t);if(n){const r={type:"html",raw:n[0],pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:n[0]};if(this.options.sanitize){const s=this.options.sanitizer?this.options.sanitizer(n[0]):Le(n[0]);r.type="paragraph",r.text=s,r.tokens=this.lexer.inline(s)}return r}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),s=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(n){const r={type:"table",header:ro(n[1]).map(s=>({text:s})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
13`):[]};if(r.header.length===r.align.length){r.raw=n[0];let s=r.align.length,i,a,o,c;for(i=0;i<s;i++)/^ *-+: *$/.test(r.align[i])?r.align[i]="right":/^ *:-+: *$/.test(r.align[i])?r.align[i]="center"
13:/^ *:-+ *$/.test(r.align[i])?r.align[i]="left":r.align[i]=null;for(s=r.rows.length,i=0;i<s;i++)r.rows[i]=ro(r.rows[i],r.header.length).map(l=>({text:l}));for(s=r.header.length,a=0;a<s;a++)r.header[a].tokens=this.lexer.inline(r.header[a].text);for(s=r.rows.length,a=0;a<s;a++)for(c=r.rows[a],o=0;o<c.length;o++)c[o].tokens=this.lexer.inline(c[o].text);return r}}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
14`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Le(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Le(n[0]):n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const a=Tr(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{const a=ld(n[2],"()");if(a>-1){const o=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,o).trim(),n[3]=""}}let s=n[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);a&&(s=a[1],i=a[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(r)?s=s.slice(1):s=s.slice(1,-1)),io(n,{href:s&&s.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let s=(r[2]||r[1]).replace(/\s+/g," ");if(s=n[s.toLowerCase()],!s){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return io(r,s,r[0],this.lexer)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrong.lDelim.exec(t);if(!s||s[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=s[1]||s[2]||"";if(!i||i&&(r===""||this.rules.inline.punctuation.exec(r))){const a=s[0].length-1;let o,c,l=a,h=0;const d=s[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+a);(s=d.exec(n))!=null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(c=o.length,s[3]||s[4]){l+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){h+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l+h);const p=t.slice(0,a+s.index+(s[0].length-o.length)+c);if(Math.min(a,c)%2){const g=p.slice(1,-1);return{type:"em",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}const f=p.slice(2,-2);return{type:"strong",raw:p,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const s=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return s&&i&&(r=r.substring(1,r.length-1)),r=Le(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t,n){const r=this.rules.inline.autolink.exec(t);if(r){let s,i;return r[2]==="@"?(s=Le(this.options.mangle?n(r[1]):r[1]),i="mailto:"+s):(s=Le(r[1]),i=s),{type:"link",raw:r[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(t,n){let r;if(r=this.rules.inline.url.exec(t)){let s,i;if(r[2]==="@")s=Le(this.options.mangle?n(r[0]):r[0]),i="mailto:"+s;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(a!==r[0]);s=Le(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t,n){const r=this.rules.inline.text.exec(t);if(r){let s;return this.lexer.state.inRawBlock?s=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Le(r[0]):r[0]:s=Le(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:s}}}}const Z={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
14)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Lr,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Z._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Z.def=fe(Z.def).replace("label",Z._label).replace("title",Z._title).getRegex();Z.bullet=/(?:[*+-]|\d{1,9}[.)])/;Z.listItemStart=fe(/^( *)(bull) */).replace("bull",Z.bullet).getRegex();Z.list=fe(Z.list).replace(/bull/g,Z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Z.def.source+")").getRegex();Z._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Z.html=fe(Z.html,"i").replace("comment",Z._comment).replace("tag",Z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Z.paragraph=fe(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex();Z.blockquote=fe(Z.blockquote).replace("paragraph",Z.paragraph).getRegex();Z.normal=st({},Z);Z.gfm=st({},Z.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});Z.gfm.table=fe(Z.gfm.table).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex();Z.gfm.paragraph=fe(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Z.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex();Z.pedantic=st({},Z.normal,{html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Lr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(Z.normal._paragraph).replace("hr",Z.hr).replace("heading",` *#{1,6} *[^
15]`).replace("lheading",Z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const G={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Lr,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Lr,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};G._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";G.punctuation=fe(G.punctuation).replace(/punctuation/g,G._punctuation).getRegex();G.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;G.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;G._comment=fe(Z._comment).replace("(?:-->|$)","-->").getRegex();G.emStrong.lDelim=fe(G.emStrong.lDelim).replace(/punct/g,G._punctuation).getRegex();G.emStrong.rDelimAst=fe(G.emStrong.rDelimAst,"g").replace(/punct/g,G._punctuation).getRegex();G.emStrong.rDelimUnd=fe(G.emStrong.rDelimUnd,"g").replace(/punct/g,G._punctuation).getRegex();G._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;G._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;G._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;G.autolink=fe(G.autolink).replace("scheme",G._scheme).replace("email",G._email).getRegex();G._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;G.tag=fe(G.tag).replace("comment",G._comment).replace("attribute",G._attribute).getRegex();G._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;G._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;G._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;G.link=fe(G.link).replace("label",G._label).replace("href",G._href).replace("title",G._title).getRegex();G.reflink=fe(G.reflink).replace("label",G._label).replace("ref",Z._label).getRegex();G.nolink=fe(G.nolink).replace("ref",Z._label).getRegex();G.reflinkSearch=fe(G.reflinkSearch,"g").replace("reflink",G.reflink).replace("nolink",G.nolink).getRegex();G.normal=st({},G);G.pedantic=st({},G.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",G._label).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",G._label).getRegex()});G.gfm=st({},G.normal,{escape:fe(G.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});G.gfm.url=fe(G.gfm.url,"i").replace("email",G.gfm._extended_email).getRegex();G.breaks=st({},G.gfm,{br:fe(G.br).replace("{2,}","*").getRegex(),text:fe(G.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function dd(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function ao(e){let t="",n,r;const s=e.length;for(n=0;n<s;n++)r=e.charCodeAt(n),Math.random()>.5&&(r="x"+r.toString(16)),t+="&#"+r+";";return t}class vt{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||mn,this.options.tokenizer=this.options.tokenizer||new ra,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Z.normal,inline:G.normal};this.options.pedantic?(n.block=Z.pedantic,n.inline=G.pedantic):this.options.gfm&&(n.block=Z.gfm,this.options.breaks?n.inline=G.breaks:n.inl
15ine=G.gfm),this.tokenizer.rules=n}static get rules(){return{block:Z,inline:G}}static lex(t,n){return new vt(n).lex(t)}static lexInline(t,n){return new vt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
16`),this.blockTokens(t,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(o,c,l)=>c+"    ".repeat(l.length));let r,s,i,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
17`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
18`+r.raw,s.text+=`
19`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
20`+r.raw,s.text+=`
21`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const c=t.slice(1);let l;this.options.extensions.startBlock.forEach(function(h){l=h.call({lexer:this},c),typeof l=="number"&&l>=0&&(o=Math.min(o,l))}),o<1/0&&o>=0&&(i=t.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){s=n[n.length-1],a&&s.type==="paragraph"?(s.raw+=`
22`+r.raw,s.text+=`
23`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r),a=i.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
24`+r.raw,s.text+=`
25`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(r);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,s,i,a=t,o,c,l;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+so("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+so("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,o.index+o[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(r=h.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),s=n[n.length-1],s&&r.type==="text"&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,a,l)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t,ao)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t,ao))){t=t.substring(r.raw.length),n.push(r);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const d=t.slice(1);let p;this.options.extensions.startInline.forEach(function(f){p=f.call({lexer:this},d),typeof p=="number"&&p>=0&&(h=Math.min(h,p))}),h<1/0&&h>=0&&(i=t.substring(0,h+1))}if(r=this.tokenizer.inlineText(i,dd)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(l=r.raw.slice(-1)),c=!0,s=n[n.length-1],s&&s.type==="text"?(s.raw+=r.raw,s.text+=r.text):n.push(r);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return n}}class sa{constructor(t){this.options=t||mn}code(t,n,r){const s=(n||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(t,s);i!=null&&i!==t&&(r=!0,t=i)}return t=t.replace(/\n$/,"")+`
26`,s?'<pre><code class="'+this.options.langPrefix+Le(s)+'">'+(r?t:Le(t,!0))+`</code></pre>
27`:"<pre><code>"+(r?t:Le(t,!0))+`</code></pre>
28`}blockquote(t){return`<blockquote>
29${t}</blockquote>
30`}html(t){return t}heading(t,n,r,s){if(this.options.headerIds){const i=this.options.headerPrefix+s.slug(r);return`<h${n} id="${i}">${t}</h${n}>
31`}return`<h${n}>${t}</h${n}>
32`}hr(){return this.options.xhtml?`<hr/>
33`:`<hr>
34`}list(t,n,r){const s=n?"ol":"ul",i=n&&r!==1?' start="'+r+'"':"";return"<"+s+i+`>
35`+t+"</"+s+`>
36`}listitem(t){return`<li>${t}</li>
37`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p>
38`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
39<thead>
40`+t+`</thead>
41`+n+`</table>
42`}tablerow(t){return`<tr>
43${t}</tr>
44`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}>
45`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){if(t=no(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let s='<a href="'+t+'"';return n&&(s+=' title="'+n+'"'),s+=">"+r+"</a>",s}image(t,n,r){if(t=no(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${n}"`),s+=this.options.xhtml?"/>":">",s}text(t){return t}}class _c{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class Ac{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}
45getNextSafeSlug(t,n){let r=t,s=0;if(this.seen.hasOwnProperty(r)){s=this.seen[t];do s++,r=t+"-"+s;while(this.seen.hasOwnProperty(r))}return n||(this.seen[t]=s,this.seen[r]=0),r}slug(t,n={}){const r=this.serialize(t);return this.getNextSafeSlug(r,n.dryrun)}}class ft{constructor(t){this.options=t||mn,this.options.renderer=this.options.renderer||new sa,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _c,this.slugger=new Ac}static parse(t,n){return new ft(n).parse(t)}static parseInline(t,n){return new ft(n).parseInline(t)}parse(t,n=!0){let r="",s,i,a,o,c,l,h,d,p,f,g,v,x,E,_,T,A,I,N;const O=t.length;for(s=0;s<O;s++){if(f=t[s],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[f.type]&&(N=this.options.extensions.renderers[f.type].call({parser:this},f),N!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type))){r+=N||"";continue}switch(f.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(f.tokens),f.depth,bc(this.parseInline(f.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(f.text,f.lang,f.escaped);continue}case"table":{for(d="",h="",o=f.header.length,i=0;i<o;i++)h+=this.renderer.tablecell(this.parseInline(f.header[i].tokens),{header:!0,align:f.align[i]});for(d+=this.renderer.tablerow(h),p="",o=f.rows.length,i=0;i<o;i++){for(l=f.rows[i],h="",c=l.length,a=0;a<c;a++)h+=this.renderer.tablecell(this.parseInline(l[a].tokens),{header:!1,align:f.align[a]});p+=this.renderer.tablerow(h)}r+=this.renderer.table(d,p);continue}case"blockquote":{p=this.parse(f.tokens),r+=this.renderer.blockquote(p);continue}case"list":{for(g=f.ordered,v=f.start,x=f.loose,o=f.items.length,p="",i=0;i<o;i++)_=f.items[i],T=_.checked,A=_.task,E="",_.task&&(I=this.renderer.checkbox(T),x?_.tokens.length>0&&_.tokens[0].type==="paragraph"?(_.tokens[0].text=I+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&_.tokens[0].tokens[0].type==="text"&&(_.tokens[0].tokens[0].text=I+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:I}):E+=I),E+=this.parse(_.tokens,x),p+=this.renderer.listitem(E,A,T);r+=this.renderer.list(p,g,v);continue}case"html":{r+=this.renderer.html(f.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(f.tokens));continue}case"text":{for(p=f.tokens?this.parseInline(f.tokens):f.text;s+1<O&&t[s+1].type==="text";)f=t[++s],p+=`
46`+(f.tokens?this.parseInline(f.tokens):f.text);r+=n?this.renderer.paragraph(p):p;continue}default:{const y='Token with "'+f.type+'" type was not found.';if(this.options.silent){console.error(y);return}else throw new Error(y)}}}return r}parseInline(t,n){n=n||this.renderer;let r="",s,i,a;const o=t.length;for(s=0;s<o;s++){if(i=t[s],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(a=this.options.extensions.renderers[i.type].call({parser:this},i),a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){r+=a||"";continue}switch(i.type){case"escape":{r+=n.text(i.text);break}case"html":{r+=n.html(i.text);break}case"link":{r+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{r+=n.image(i.href,i.title,i.text);break}case"strong":{r+=n.strong(this.parseInline(i.tokens,n));break}case"em":{r+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{r+=n.codespan(i.text);break}case"br":{r+=n.br();break}case"del":{r+=n.del(this.parseInline(i.tokens,n));break}case"text":{r+=n.text(i.text);break}default:{const c='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(c);return}else throw new Error(c)}}}return r}}function W(e,t,n){if(typeof e>"u"||e===null)throw new Error("marked(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(typeof t=="function"&&(n=t,t=null),t=st({},W.defaults,t||{}),Tc(t),n){const s=t.highlight;let i;try{i=vt.lex(e,t)}catch(c){return n(c)}const a=function(c){let l;if(!c)try{t.walkTokens&&W.walkTokens(i,t.walkTokens),l=ft.parse(i,t)}catch(h){c=h}return t.highlight=s,c?n(c):n(null,l)};if(!s||s.length<3||(delete t.highlight,!i.length))return a();let o=0;W.walkTokens(i,function(c){c.type==="code"&&(o++,setTimeout(()=>{s(c.text,c.lang,function(l,h){if(l)return a(l);h!=null&&h!==c.text&&(c.text=h,c.escaped=!0),o--,o===0&&a()})}
46,0))}),o===0&&a();return}function r(s){if(s.message+=`
47Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+Le(s.message+"",!0)+"</pre>";throw s}try{const s=vt.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(W.walkTokens(s,t.walkTokens)).then(()=>ft.parse(s,t)).catch(r);W.walkTokens(s,t.walkTokens)}return ft.parse(s,t)}catch(s){r(s)}}W.options=W.setOptions=function(e){return st(W.defaults,e),Zh(W.defaults),W};W.getDefaults=mc;W.defaults=mn;W.use=function(...e){const t=W.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(n=>{const r=st({},n);if(r.async=W.defaults.async||r.async,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const i=t.renderers[s.name];i?t.renderers[s.name]=function(...a){let o=s.renderer.apply(this,a);return o===!1&&(o=i.apply(this,a)),o}:t.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[s.level]?t[s.level].unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){const s=W.defaults.renderer||new sa;for(const i in n.renderer){const a=s[i];s[i]=(...o)=>{let c=n.renderer[i].apply(s,o);return c===!1&&(c=a.apply(s,o)),c}}r.renderer=s}if(n.tokenizer){const s=W.defaults.tokenizer||new ra;for(const i in n.tokenizer){const a=s[i];s[i]=(...o)=>{let c=n.tokenizer[i].apply(s,o);return c===!1&&(c=a.apply(s,o)),c}}r.tokenizer=s}if(n.walkTokens){const s=W.defaults.walkTokens;r.walkTokens=function(i){let a=[];return a.push(n.walkTokens.call(this,i)),s&&(a=a.concat(s.call(this,i))),a}}W.setOptions(r)})};W.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(W,r)),r.type){case"table":{for(const s of r.header)n=n.concat(W.walkTokens(s.tokens,t));for(const s of r.rows)for(const i of s)n=n.concat(W.walkTokens(i.tokens,t));break}case"list":{n=n.concat(W.walkTokens(r.items,t));break}default:W.defaults.extensions&&W.defaults.extensions.childTokens&&W.defaults.extensions.childTokens[r.type]?W.defaults.extensions.childTokens[r.type].forEach(function(s){n=n.concat(W.walkTokens(r[s],t))}):r.tokens&&(n=n.concat(W.walkTokens(r.tokens,t)))}return n};W.parseInline=function(e,t){if(typeof e>"u"||e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=st({},W.defaults,t||{}),Tc(t);try{const n=vt.lexInline(e,t);return t.walkTokens&&W.walkTokens(n,t.walkTokens),ft.parseInline(n,t)}catch(n){if(n.message+=`
48Please report this to https://github.com/markedjs/marked.`,t.silent)return"<p>An error occurred:</p><pre>"+Le(n.message+"",!0)+"</pre>";throw n}};W.Parser=ft;W.parser=ft.parse;W.Renderer=sa;W.TextRenderer=_c;W.Lexer=vt;W.lexer=vt.lex;W.Tokenizer=ra;W.Slugger=Ac;W.parse=W;W.options;W.setOptions;W.use;W.walkTokens;W.parseInline;ft.parse;vt.lex;var fd=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(s){e.addRange(s)}),t&&t.focus()}},pd=fd,oo={"text/plain":"Text","text/html":"Url",default:"Text"},md="Copy to clipboard: #{key}, Enter";function gd(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Ed(e,t){var n,r,s,i,a,o,c=!1;t||(t={}),n=t.debug||!1;try{s=pd(),i=document.createRange(),a=document.getSelection(),o=document.createElement("span"),o.textContent=e,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=oo[t.format]||oo.default;window.clipboardData.setData(d,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),a.addRange(i);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");c=!0}catch(h){n&&console.error("unable to copy using execCommand: ",h),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=gd("message"in t?t.message:md),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),o&&document.body.removeChild(o),s()}return c}var _r=Ed;var Ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr=function(e){return e.tagName==="IMG"},bd=function(e){return NodeList.prototype.isPrototypeOf(e)},Ar=function(e){return e&&e.nodeType===1},uo=function(e){var t=e.currentSrc||e.src;return t.substr(-4).toLowerCase()===".svg"},co=function(e){try{return Array.isArray(e)?e.filter(cr):bd(e)?[].slice.call(e).filter(cr):Ar(e)?[e].filter(cr):typeof e=="string"?[].slice.call(document.querySelectorAll(e)).filter(cr):[]}
48catch{throw new TypeError(`The provided selector is invalid.
49Expects a CSS selector, a Node element, a NodeList or an array.
50See: https://github.com/francoischalifour/medium-zoom`)}},Td=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t},_d=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,s=t.width,i=t.height,a=e.cloneNode(),o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=n+o+"px",a.style.left=r+c+"px",a.style.width=s+"px",a.style.height=i+"px",a.style.transform="",a},en=function(e,t){var n=Ut({bubbles:!1,cancelable:!1,detail:void 0},t);if(typeof window.CustomEvent=="function")return new CustomEvent(e,n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r},Ad=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(P){function $(){}P($,$)},s=function(P){var $=P.target;if($===U){g();return}T.indexOf($)!==-1&&v({target:$})},i=function(){if(!(I||!y.original)){var P=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(N-P)>O.scrollOffset&&setTimeout(g,150)}},a=function(P){var $=P.key||P.keyCode;($==="Escape"||$==="Esc"||$===27)&&g()},o=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=P;if(P.background&&(U.style.background=P.background),P.container&&P.container instanceof Object&&($.container=Ut({},O.container,P.container)),P.template){var j=Ar(P.template)?P.template:document.querySelector(P.template);$.template=j}return O=Ut({},O,$),T.forEach(function(w){w.dispatchEvent(en("medium-zoom:update",{detail:{zoom:F}}))}),F},c=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(Ut({},O,P))},l=function(){for(var P=arguments.length,$=Array(P),j=0;j<P;j++)$[j]=arguments[j];var w=$.reduce(function(H,Y){return[].concat(H,co(Y))},[]);return w.filter(function(H){return T.indexOf(H)===-1}).forEach(function(H){T.push(H),H.classList.add("medium-zoom-image")}),A.forEach(function(H){var Y=H.type,te=H.listener,ce=H.options;w.forEach(function(ne){ne.addEventListener(Y,te,ce)})}),F},h=function(){for(var P=arguments.length,$=Array(P),j=0;j<P;j++)$[j]=arguments[j];y.zoomed&&g();var w=$.length>0?$.reduce(function(H,Y){return[].concat(H,co(Y))},[]):T;return w.forEach(function(H){H.classList.remove("medium-zoom-image"),H.dispatchEvent(en("medium-zoom:detach",{detail:{zoom:F}}))}),T=T.filter(function(H){return w.indexOf(H)===-1}),F},d=function(P,$){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return T.forEach(function(w){w.addEventListener("medium-zoom:"+P,$,j)}),A.push({type:"medium-zoom:"+P,listener:$,options:j}),F},p=function(P,$){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return T.forEach(function(w){w.removeEventListener("medium-zoom:"+P,$,j)}),A=A.filter(function(w){return!(w.type==="medium-zoom:"+P&&w.listener.toString()===$.toString())}),F},f=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=P.target,j=function(){var w={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},H=void 0,Y=void 0;if(O.container)if(O.container instanceof Object)w=Ut({},w,O.container),H=w.width-w.left-w.right-O.margin*2,Y=w.height-w.top-w.bottom-O.margin*2;else{var te=Ar(O.container)?O.container:document.querySelector(O.container),ce=te.getBoundingClientRect(),ne=ce.width,Q=ce.height,Fe=ce.left,He=ce.top;w=Ut({},w,{width:ne,height:Q,left:Fe,top:He})}H=H||w.width-O.margin*2,Y=Y||w.height-O.margin*2;var Oe=y.zoomedHd||y.original,Jn=uo(Oe)?H:Oe.naturalWidth||H,er=uo(Oe)?Y:Oe.naturalHeight||Y,Ft=Oe.getBoundingClientRect(),tr=Ft.top,nr=Ft.left,Kt=Ft.width,Xt=Ft.height,rr=Math.min(Math.max(Kt,Jn),H)/Kt,sr=Math.min(Math.max(Xt,er),Y)/Xt,Zt=Math.min(rr,sr),ir=(-nr+(H-Kt)/2+O.margin+w.left)/Zt,ar=(-tr+(Y-Xt)/2+O.margin+w.top)/Zt,Tn="scale("+Zt+") translate3d("+ir+"px, "+ar+"px, 0)";y.zoomed.style.transform=Tn,y.zoomedHd&&(y.zoomedHd.style.transform=Tn)};return new r(function(w){if($&&T.indexOf($)===-1){w(F);return}var H=function Q(){I=!1,y.zoomed.removeEventListener("transitionend",Q),y.original.dispatchEvent(en("medium-zoom:opened",{detail:{zoom:F}})),w(F)};if(y.zoomed){w(F);return}if($)y.original=$;else if(T.length>0){var Y=T;y.original=Y[0]}else{w(F);return}if(y.original.dispatchEvent(en("medium-zoom:open",{detail:{zoom:F}})),N=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,I=!0,y.zoomed=_d(y.original),document.body.appendChild(U),O.template){var te=Ar(O.template)?O.template:document.querySelector(O.template);y.template=document.createElement("div"),y.template.appendChild(te.content.cloneNode(!0)),document.body.appendChild(y.template)}if(y.original.parentElement&&y.original.parentElement.tagName==="PICTURE"&&y.original.currentSrc&&(y.zoomed.src=y.original.currentSrc),document.body.appendChild(y.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),y.original.classList.add("medium-zoom-image--hidden"),y.zoomed.classList.add("medium-zoom-image--opened"),y.zoomed.addEventListener("click",g),y.zoomed.addEventListener("transitionend",H),y.original.getAttribute("data-zoom-src")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("srcset"),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading"),y.zoomedHd.src=y.zoomed.getAttribute("data-zoom-src"),y.zoomedHd.onerror=function(){clearInterval(ce),console.warn("Unable to reach the zoom image target "+y.zoomedHd.src),y.zoomedHd=null,j()};var ce=setInterval(function(){y.zoomedHd.complete&&(clearInterval(ce),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",g),document.body.appendChild(y.zoomedHd),j())},10)}else if(y.original.hasAttribute("srcset")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading");var ne=y.zoomedHd.addEventListener("load",function(){y.zoomedHd.removeEventListener("load",ne),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",g),document.body.appendChild(y.zoomedHd),j()})}else j()})},g=function(){return new r(function(P){if(I||!y.original){P(F);return}var $=function j(){y.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(y.zoomed),y.zoomedHd&&document.body.removeChild(y.zoomedHd),document.body.removeChild(U),y.zoomed.classList.remove("medium-zoom-image--opened"),y.template&&document.body.removeChild(y.template),I=!1,y.zoomed.removeEventListener("transitionend",j),y.original.dispatchEvent(en("medium-zoom:closed",{detail:{zoom:F}})),y.original=null,y.zoomed=null,y.zoomedHd=null,y.template=null,P(F)};I=!0,document.body.classList.remove("medium-zoom--opened"),y.zoomed.style.transform="",y.zoomedHd&&(y.zoomedHd.style.transform=""),y.template&&(y.template.style.transition="opacity 150ms",y.template.style.opacity=0),y.original.dispatchEvent(en("medium-zoom:close",{detail:{zoom:F}})),y.zoomed.addEventListener("transitionend",$)})},v=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=P.target;return y.original?g():f({target:$})},x=function(){return O},E=function(){return T},_=function(){return y.original},T=[],A=[],I=!1,N=0,O=n,y={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?O=t:(t||typeof t=="string")&&l(t),O=Ut({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},O);var U=Td(O.background);
50document.addEventListener("click",s),document.addEventListener("keyup",a),document.addEventListener("scroll",i),window.addEventListener("resize",g);var F={open:f,close:g,toggle:v,update:o,clone:c,attach:l,detach:h,on:d,off:p,getOptions:x,getImages:E,getZoomedImage:_};return F};function Cd(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",n==="top"&&r.firstChild?r.insertBefore(s,r.firstChild):r.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}var kd=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";Cd(kd);const xd=Ad,Nn=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Cc=new Set,vd=(e,t,n,r)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},Sd=e=>!Cc.has(e),wt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),kc=e=>wt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Cr:null:null;class Cr extends Array{constructor(t){super(t),this.fill(0)}}var Dn;const vn=class{constructor(e,t){if(Ie(this,"heap"),Ie(this,"length"),!C(vn,Dn))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){const t=kc(e);if(!t)return[];J(vn,Dn,!0);const n=new vn(e,t);return J(vn,Dn,!1),n}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};let xc=vn;Dn=new WeakMap,se(xc,Dn,!1);var ct,We,_t,at,Rn,Ne,Qe,De,be,re,$e,Ke,Be,we,ut,Me,Nt,Dt,ot,kt,Yt,Ve,kr,Pi,an,Rt,wr,Xe,Fi,vc,un,Ln,Or,Et,St,bt,yt,xr,os,wn,Mr,Sn,vr,Ee,Te,Sr,us,sn,yn;const Sc=class{constructor(e){se(this,kr),se(this,Fi),se(this,Et),se(this,bt),se(this,xr),se(this,wn),se(this,Sn),se(this,Ee),se(this,Sr),se(this,sn),se(this,ct,void 0),se(this,We,void 0),se(this,_t,void 0),se(this,at,void 0),se(this,Rn,void 0),Ie(this,"ttl"),Ie(this,"ttlResolution"),Ie(this,"ttlAutopurge"),Ie(this,"updateAgeOnGet"),Ie(this,"updateAgeOnHas"),Ie(this,"allowStale"),Ie(this,"noDisposeOnSet"),Ie(this,"noUpdateTTL"),Ie(this,"maxEntrySize"),Ie(this,"sizeCalculation"),Ie(this,"noDeleteOnFetchRejection"),Ie(this,"noDeleteOnStaleGet"),Ie(this,"allowStaleOnFetchAbort"),Ie(this,"allowStaleOnFetchRejection"),Ie(this,"ignoreFetchAbort"),se(this,Ne,void 0),se(this,Qe,void 0),se(this,De,void 0),se(this,be,void 0),se(this,re,void 0),se(this,$e,void 0),se(this,Ke,void 0),se(this,Be,void 0),se(this,we,void 0),se(this,ut,void 0),se(this,Me,void 0),se(this,Nt,void 0),se(this,Dt,void 0),se(this,ot,void 0),se(this,kt,void 0),se(this,Yt,void 0),se(this,Ve,void 0),se(this,an,()=>{}),se(this,Rt,()=>{}),se(this,wr,()=>{}),se(this,Xe,()=>!1),se(this,un,N=>{}),se(this,Ln,(N,O,y)=>{}),se(this,Or,(N,O,y,U)=>{if(y||U)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:s,updateAgeOnGet:i,updateAgeOnHas:a,allowStale:o,dispose:c,disposeAfter:l,noDisposeOnSet:h,noUpdateTTL:d,maxSize:p=0,maxEntrySize:f=0,sizeCalculation:g,fetchMethod:v,noDeleteOnFetchRejection:x,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:_,allowStaleOnFetchAbort:T,ignoreFetchAbort:A}=e;if(t!==0&&!wt(t))throw new TypeError("max option must be a nonnegative integer");const I=t?kc(t):Array;if(!I)throw new Error("invalid max value: "+t);if(J(this,ct,t),J(this,We,p),this.maxEntrySize=f||C(this,We),this.sizeCalculation=g,this.sizeCalculation){if(!C(this,We)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(J(this,Rn,v),J(this,Yt,!!v),J(this,De,new Map),J(this,be,new Array(t).fill(void 0)),J(this,re,new Array(t).fill(void 0)),J(this,$e,new I(t)),J(this,Ke,new I(t)),J(this,Be,0),J(this,we,0),J(this,ut,xc.create(t)),J(this,Ne,0),J(this,Qe,0),typeof c=="function"&&J(this,_t,c),typeof l=="function"?(J(this,at,l),J(this,Me,[])):(J(this,at,void 0),J(this,Me,void 0)),J(this,kt,!!C(this,_t)),J(this,Ve,!!C(this,at)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!x,this.allowStaleOnFetchRejection=!!_,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!A,this.maxEntrySize!==0){if(C(this,We)!==0&&!wt(C(this,We)))throw new TypeError("maxSize must be a positive integer if specified");if(!wt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");K(this,Fi,vc).call(this)}if(this.allowStale=!!o,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!a,this.ttlResolution=wt(r)||r===0?r:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!wt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");K(this,kr,Pi).call(this)}if(C(this,ct)===0&&this.ttl===0&&C(this,We)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!C(this,ct)&&!C(this,We)){const N="LRU_CACHE_UNBOUNDED";Sd(N)&&(Cc.add(N),vd("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",N,Sc))}}static unsafeExposeInternals(e){return{starts:C(e,Dt),ttls:C(e,ot),sizes:C(e,Nt),keyMap:C(e,De),keyList:C(e,be),valList:C(e,re),next:C(e,$e),prev:C(e,Ke),get head(){return C(e,Be)},get tail(){return C(e,we)}
50,free:C(e,ut),isBackgroundFetch:t=>{var n;return K(n=e,Ee,Te).call(n,t)},backgroundFetch:(t,n,r,s)=>{var i;return K(i=e,Sn,vr).call(i,t,n,r,s)},moveToTail:t=>{var n;return K(n=e,sn,yn).call(n,t)},indexes:t=>{var n;return K(n=e,Et,St).call(n,t)},rindexes:t=>{var n;return K(n=e,bt,yt).call(n,t)},isStale:t=>{var n;return C(n=e,Xe).call(n,t)}}}get max(){return C(this,ct)}get maxSize(){return C(this,We)}get calculatedSize(){return C(this,Qe)}get size(){return C(this,Ne)}get fetchMethod(){return C(this,Rn)}get dispose(){return C(this,_t)}get disposeAfter(){return C(this,at)}getRemainingTTL(e){return C(this,De).has(e)?1/0:0}*entries(){for(const e of K(this,Et,St).call(this))C(this,re)[e]!==void 0&&C(this,be)[e]!==void 0&&!K(this,Ee,Te).call(this,C(this,re)[e])&&(yield[C(this,be)[e],C(this,re)[e]])}*rentries(){for(const e of K(this,bt,yt).call(this))C(this,re)[e]!==void 0&&C(this,be)[e]!==void 0&&!K(this,Ee,Te).call(this,C(this,re)[e])&&(yield[C(this,be)[e],C(this,re)[e]])}*keys(){for(const e of K(this,Et,St).call(this)){const t=C(this,be)[e];t!==void 0&&!K(this,Ee,Te).call(this,C(this,re)[e])&&(yield t)}}*rkeys(){for(const e of K(this,bt,yt).call(this)){const t=C(this,be)[e];t!==void 0&&!K(this,Ee,Te).call(this,C(this,re)[e])&&(yield t)}}*values(){for(const e of K(this,Et,St).call(this))C(this,re)[e]!==void 0&&!K(this,Ee,Te).call(this,C(this,re)[e])&&(yield C(this,re)[e])}*rvalues(){for(const e of K(this,bt,yt).call(this))C(this,re)[e]!==void 0&&!K(this,Ee,Te).call(this,C(this,re)[e])&&(yield C(this,re)[e])}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const n of K(this,Et,St).call(this)){const r=C(this,re)[n],s=K(this,Ee,Te).call(this,r)?r.__staleWhileFetching:r;if(s!==void 0&&e(s,C(this,be)[n],this))return this.get(C(this,be)[n],t)}}forEach(e,t=this){for(const n of K(this,Et,St).call(this)){const r=C(this,re)[n],s=K(this,Ee,Te).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,C(this,be)[n],this)}}rforEach(e,t=this){for(const n of K(this,bt,yt).call(this)){const r=C(this,re)[n],s=K(this,Ee,Te).call(this,r)?r.__staleWhileFetching:r;s!==void 0&&e.call(t,s,C(this,be)[n],this)}}purgeStale(){let e=!1;for(const t of K(this,bt,yt).call(this,{allowStale:!0}))C(this,Xe).call(this,t)&&(this.delete(C(this,be)[t]),e=!0);return e}dump(){const e=[];for(const t of K(this,Et,St).call(this,{allowStale:!0})){const n=C(this,be)[t],r=C(this,re)[t],s=K(this,Ee,Te).call(this,r)?r.__staleWhileFetching:r;if(s===void 0||n===void 0)continue;const i={value:s};if(C(this,ot)&&C(this,Dt)){i.ttl=C(this,ot)[t];const a=Nn.now()-C(this,Dt)[t];i.start=Math.floor(Date.now()-a)}C(this,Nt)&&(i.size=C(this,Nt)[t]),e.unshift([n,i])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const r=Date.now()-n.start;n.start=Nn.now()-r}this.set(t,n.value,n)}}set(e,t,n={}){var r,s,i;const{ttl:a=this.ttl,start:o,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:h}=n;let{noUpdateTTL:d=this.noUpdateTTL}=n;const p=C(this,Or).call(this,e,t,n.size||0,l);if(this.maxEntrySize&&p>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.delete(e),this;let f=C(this,Ne)===0?void 0:C(this,De).get(e);if(f===void 0)f=C(this,Ne)===0?C(this,we):C(this,ut).length!==0?C(this,ut).pop():C(this,Ne)===C(this,ct)?K(this,wn,Mr).call(this,!1):C(this,Ne),C(this,be)[f]=e,C(this,re)[f]=t,C(this,De).set(e,f),C(this,$e)[C(this,we)]=f,C(this,Ke)[f]=C(this,we),J(this,we,f),wi(this,Ne)._++,C(this,Ln).call(this,f,p,h),h&&(h.set="add"),d=!1;else{K(this,sn,yn).call(this,f);const g=C(this,re)[f];
50if(t!==g){if(C(this,Yt)&&K(this,Ee,Te).call(this,g)?g.__abortController.abort(new Error("replaced")):c||(C(this,kt)&&((r=C(this,_t))==null||r.call(this,g,e,"set")),C(this,Ve)&&((s=C(this,Me))==null||s.push([g,e,"set"]))),C(this,un).call(this,f),C(this,Ln).call(this,f,p,h),C(this,re)[f]=t,h){h.set="replace";const v=g&&K(this,Ee,Te).call(this,g)?g.__staleWhileFetching:g;v!==void 0&&(h.oldValue=v)}}else h&&(h.set="update")}if(a!==0&&!C(this,ot)&&K(this,kr,Pi).call(this),C(this,ot)&&(d||C(this,wr).call(this,f,a,o),h&&C(this,Rt).call(this,h,f)),!c&&C(this,Ve)&&C(this,Me)){const g=C(this,Me);let v;for(;v=g?.shift();)(i=C(this,at))==null||i.call(this,...v)}return this}pop(){var e;try{for(;C(this,Ne);){const t=C(this,re)[C(this,Be)];if(K(this,wn,Mr).call(this,!0),K(this,Ee,Te).call(this,t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(C(this,Ve)&&C(this,Me)){const t=C(this,Me);let n;for(;n=t?.shift();)(e=C(this,at))==null||e.call(this,...n)}}}has(e,t={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,s=C(this,De).get(e);if(s!==void 0)if(C(this,Xe).call(this,s))r&&(r.has="stale",C(this,Rt).call(this,r,s));else return n&&C(this,an).call(this,s),r&&(r.has="hit",C(this,Rt).call(this,r,s)),!0;else r&&(r.has="miss");return!1}peek(e,t={}){const{allowStale:n=this.allowStale}=t,r=C(this,De).get(e);if(r!==void 0&&(n||!C(this,Xe).call(this,r))){const s=C(this,re)[r];return K(this,Ee,Te).call(this,s)?s.__staleWhileFetching:s}}async fetch(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:o=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:g,forceRefresh:v=!1,status:x,signal:E}=t;if(!C(this,Yt))return x&&(x.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,status:x});const _={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:s,ttl:i,noDisposeOnSet:a,size:o,sizeCalculation:c,noUpdateTTL:l,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:f,ignoreFetchAbort:p,status:x,signal:E};let T=C(this,De).get(e);if(T===void 0){x&&(x.fetch="miss");const A=K(this,Sn,vr).call(this,e,T,_,g);return A.__returned=A}else{const A=C(this,re)[T];if(K(this,Ee,Te).call(this,A)){const y=n&&A.__staleWhileFetching!==void 0;return x&&(x.fetch="inflight",y&&(x.returnedStale=!0)),y?A.__staleWhileFetching:A.__returned=A}const I=C(this,Xe).call(this,T);if(!v&&!I)return x&&(x.fetch="hit"),K(this,sn,yn).call(this,T),r&&C(this,an).call(this,T),x&&C(this,Rt).call(this,x,T),A;const N=K(this,Sn,vr).call(this,e,T,_,g),O=N.__staleWhileFetching!==void 0&&n;return x&&(x.fetch=I?"stale":"refresh",O&&I&&(x.returnedStale=!0)),O?N.__staleWhileFetching:N.__returned=N}}get(e,t={}){const{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:i}=t,a=C(this,De).get(e);if(a!==void 0){const o=C(this,re)[a],c=K(this,Ee,Te).call(this,o);return i&&C(this,Rt).call(this,i,a),C(this,Xe).call(this,a)?(i&&(i.get="stale"),c?(i&&n&&o.__staleWhileFetching!==void 0&&(i.returnedStale=!0),n?o.__staleWhileFetching:void 0):(s||this.delete(e),i&&n&&(i.returnedStale=!0),n?o:void 0)):(i&&(i.get="hit"),c?o.__staleWhileFetching:(K(this,sn,yn).call(this,a),r&&C(this,an).call(this,a),o))}else i&&(i.get="miss")}delete(e){var t,n,r,s;let i=!1;if(C(this,Ne)!==0){const a=C(this,De).get(e);if(a!==void 0)if(i=!0,C(this,Ne)===1)this.clear();else{C(this,un).call(this,a);const o=C(this,re)[a];K(this,Ee,Te).call(this,o)?o.__abortController.abort(new Error("deleted")):(C(this,kt)||C(this,Ve))&&(C(this,kt)&&((t=C(this,_t))==null||t.call(this,o,e,"delete")),C(this,Ve)&&((n=C(this,Me))==null||n.push([o,e,"delete"]))),C(this,De).delete(e),C(this,be)[a]=void 0,C(this,re)[a]=void 0,a===C(this,we)?J(this,we,C(this,Ke)[a]):a===C(this,Be)?J(this,Be,C(this,$e)[a]
50):(C(this,$e)[C(this,Ke)[a]]=C(this,$e)[a],C(this,Ke)[C(this,$e)[a]]=C(this,Ke)[a]),wi(this,Ne)._--,C(this,ut).push(a)}}if(C(this,Ve)&&(r=C(this,Me))!=null&&r.length){const a=C(this,Me);let o;for(;o=a?.shift();)(s=C(this,at))==null||s.call(this,...o)}return i}clear(){var e,t,n;for(const r of K(this,bt,yt).call(this,{allowStale:!0})){const s=C(this,re)[r];if(K(this,Ee,Te).call(this,s))s.__abortController.abort(new Error("deleted"));else{const i=C(this,be)[r];C(this,kt)&&((e=C(this,_t))==null||e.call(this,s,i,"delete")),C(this,Ve)&&((t=C(this,Me))==null||t.push([s,i,"delete"]))}}if(C(this,De).clear(),C(this,re).fill(void 0),C(this,be).fill(void 0),C(this,ot)&&C(this,Dt)&&(C(this,ot).fill(0),C(this,Dt).fill(0)),C(this,Nt)&&C(this,Nt).fill(0),J(this,Be,0),J(this,we,0),C(this,ut).length=0,J(this,Qe,0),J(this,Ne,0),C(this,Ve)&&C(this,Me)){const r=C(this,Me);let s;for(;s=r?.shift();)(n=C(this,at))==null||n.call(this,...s)}}};let yd=Sc;ct=new WeakMap,We=new WeakMap,_t=new WeakMap,at=new WeakMap,Rn=new WeakMap,Ne=new WeakMap,Qe=new WeakMap,De=new WeakMap,be=new WeakMap,re=new WeakMap,$e=new WeakMap,Ke=new WeakMap,Be=new WeakMap,we=new WeakMap,ut=new WeakMap,Me=new WeakMap,Nt=new WeakMap,Dt=new WeakMap,ot=new WeakMap,kt=new WeakMap,Yt=new WeakMap,Ve=new WeakMap,kr=new WeakSet,Pi=function(){const e=new Cr(C(this,ct)),t=new Cr(C(this,ct));J(this,ot,e),J(this,Dt,t),J(this,wr,(s,i,a=Nn.now())=>{if(t[s]=i!==0?a:0,e[s]=i,i!==0&&this.ttlAutopurge){const o=setTimeout(()=>{C(this,Xe).call(this,s)&&this.delete(C(this,be)[s])},i+1);o.unref&&o.unref()}}),J(this,an,s=>{t[s]=e[s]!==0?Nn.now():0}),J(this,Rt,(s,i)=>{if(e[i]){const a=e[i],o=t[i];s.ttl=a,s.start=o,s.now=n||r(),s.remainingTTL=s.now+a-o}});let n=0;const r=()=>{const s=Nn.now();if(this.ttlResolution>0){n=s;const i=setTimeout(()=>n=0,this.ttlResolution);i.unref&&i.unref()}return s};this.getRemainingTTL=s=>{const i=C(this,De).get(s);return i===void 0?0:e[i]===0||t[i]===0?1/0:t[i]+e[i]-(n||r())},J(this,Xe,s=>e[s]!==0&&t[s]!==0&&(n||r())-t[s]>e[s])},an=new WeakMap,Rt=new WeakMap,wr=new WeakMap,Xe=new WeakMap,Fi=new WeakSet,vc=function(){const e=new Cr(C(this,ct));J(this,Qe,0),J(this,Nt,e),J(this,un,t=>{J(this,Qe,C(this,Qe)-e[t]),e[t]=0}),J(this,Or,(t,n,r,s)=>{if(K(this,Ee,Te).call(this,n))return 0;if(!wt(r))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(r=s(n,t),!wt(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r}),J(this,Ln,(t,n,r)=>{if(e[t]=n,C(this,We)){const s=C(this,We)-e[t];for(;C(this,Qe)>s;)K(this,wn,Mr).call(this,!0)}J(this,Qe,C(this,Qe)+e[t]),r&&(r.entrySize=n,r.totalCalculatedSize=C(this,Qe))})},un=new WeakMap,Ln=new WeakMap,Or=new WeakMap,Et=new WeakSet,St=function*({allowStale:e=this.allowStale}={}){if(C(this,Ne))for(let t=C(this,we);!(!K(this,xr,os).call(this,t)||((e||!C(this,Xe).call(this,t))&&(yield t),t===C(this,Be)));)t=C(this,Ke)[t]},bt=new WeakSet,yt=function*({allowStale:e=this.allowStale}={}){if(C(this,Ne))for(let t=C(this,Be);!(!K(this,xr,os).call(this,t)||((e||!C(this,Xe).call(this,t))&&(yield t),t===C(this,we)));)t=C(this,$e)[t]},xr=new WeakSet,os=function(e){return e!==void 0&&C(this,De).get(C(this,be)[e])===e},wn=new WeakSet,Mr=function(e){var t,n;const r=C(this,Be),s=C(this,be)[r],i=C(this,re)[r];return C(this,Yt)&&K(this,Ee,Te).call(this,i)?i.__abortController.abort(new Error("evicted")):(C(this,kt)||C(this,Ve))&&(C(this,kt)&&((t=C(this,_t))==null||t.call(this,i,s,"evict")),C(this,Ve)&&((n=C(this,Me))==null||n.push([i,s,"evict"]))),C(this,un).call(this,r),e&&(C(this,be)[r]=void 0,C(this,re)[r]=void 0,C(this,ut).push(r)),C(this,Ne)===1?(J(this,Be,J(this,we,0)),C(this,ut).length=0):J(this,Be,C(this,$e)[r]),C(this,De).delete(s),wi(this,Ne)._--,r},Sn=new WeakSet,vr=function(e,t,n,r){const s=t===void 0?void 0:C(this,re)[t];if(K(this,Ee,Te).call(this,s))return s;const i=new AbortController,{signal:a}=n;a?.addEventListener("abort",()=>i.abort(a.reason),{signal:i.signal});const o={signal:i.signal,options:n,context:r},c=(g,v=!1)=>{const{aborted:x}=i.signal,E=n.ignoreFetchAbort&&g!==void 0;if(n.status&&(x&&!v?(n.status.fetchAborted=!0,n.status.fetchError=i.signal.reason,E&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),x&&!E&&!v)return h(i.signal.reason);const _=p;return C(this,re)[t]===p&&(g===void 0?_.__staleWhileFetching?C(this,re)[t]=_.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,g,o.options))),g},l=g=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=g),h(g)),h=g=>{const{aborted:v}=i.signal,x=v&&n.allowStaleOnFetchAbort,E=x||n.allowStaleOnFetchRejection,_=E||n.noDeleteOnFetchRejection,T=p;if(C(this,re)[t]===p&&(!_||T.__staleWhileFetching===void 0?this.delete(e):x||(C(this,re)[t]=T.__staleWhileFetching)),E)return n.status&&T.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),T.__staleWhileFetching;if(T.__returned===T)throw g},d=(g,v)=>{var x;const E=(x=C(this,Rn))==null?void 0:x.call(this,e,s,o);E&&E instanceof Promise&&E.then(_=>g(_),v),i.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(g(),n.allowStaleOnFetchAbort&&(g=_=>c(_,!0)))})};
50n.status&&(n.status.fetchDispatched=!0);const p=new Promise(d).then(c,l),f=Object.assign(p,{__abortController:i,__staleWhileFetching:s,__returned:void 0});return t===void 0?(this.set(e,f,{...o.options,status:void 0}),t=C(this,De).get(e)):C(this,re)[t]=f,f},Ee=new WeakSet,Te=function(e){if(!C(this,Yt))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AbortController},Sr=new WeakSet,us=function(e,t){C(this,Ke)[t]=e,C(this,$e)[e]=t},sn=new WeakSet,yn=function(e){e!==C(this,we)&&(e===C(this,Be)?J(this,Be,C(this,$e)[e]):K(this,Sr,us).call(this,C(this,Ke)[e],C(this,$e)[e]),K(this,Sr,us).call(this,C(this,we),e),J(this,we,e))};const Id=yd,_n=e=>{const t=e.value,n=t.substring(0,e.selectionStart),r=t.substring(e.selectionEnd,t.length),s=n.lastIndexOf(`
51`),i=n.substring(0,s+1),a=r.indexOf(`
52`),o=r.substring(a===-1?r.length:a,r.length),c=n.substring(s+1,n.length),l=r.substring(0,a);return{prefixStr:n,subfixStr:r,prefixStrEndRow:i,subfixStrEndRow:o,prefixSupply:c,subfixSupply:l}},Nd=(e,t="",n,r)=>{var s,i,a,o,c,l;let h="",d=0,p=0,f=!1,g,v;const x=(s=Se.editorConfig)==null?void 0:s.mermaidTemplate;if(/^h[1-6]{1}$/.test(e)){const E=e.replace(/^h(\d)/,(_,T)=>new Array(Number(T)).fill("#",0,T).join(""));h=`${E} ${t}`,d=E.length+1}else if(e==="prettier"){const E=window.prettier||((a=(i=Se.editorExtensions)==null?void 0:i.prettier)==null?void 0:a.prettierInstance),_=[((o=window.prettierPlugins)==null?void 0:o.markdown)||((l=(c=Se.editorExtensions)==null?void 0:c.prettier)==null?void 0:l.parserMarkdownInstance)];return!E||_[0]===void 0?(z.emit(r.editorId,"errorCatcher",{name:"prettier",message:"prettier is undefined"}),n.value):E.format(n.value,{parser:"markdown",plugins:_})}else switch(e){case"bold":{h=`**${t}**`,d=2,p=-2;break}case"underline":{h=`<u>${t}</u>`,d=3,p=-4;break}case"italic":{h=`*${t}*`,d=1,p=-1;break}case"strikeThrough":{h=`~~${t}~~`,d=2,p=-2;break}case"sub":{h=`<sub>${t}</sub>`,d=5,p=-6;break}case"sup":{h=`<sup>${t}</sup>`,d=5,p=-6;break}case"codeRow":{h="`"+t+"`",d=1,p=-1;break}case"quote":{h=`> ${t}`,d=2;break}case"orderedList":{h=`1. ${t}`,d=3;break}case"unorderedList":{h=`- ${t}`,d=2;break}case"task":{h=`- [ ] ${t}`,d=6,f=!0;break}case"code":{const E=r.text||t||"",_=r.mode||"language";h=`\`\`\`${_}
53${E}
54\`\`\`
55`,d=3,p=3+_.length-h.length,f=!0;break}case"table":{h="|";const{selectedShape:E={x:1,y:1}}=r,{x:_,y:T}=E;for(let A=0;A<=T;A++)h+=" col |";h+=`
56|`;for(let A=0;A<=T;A++)h+=" - |";for(let A=0;A<=_;A++){h+=`
57|`;for(let I=0;I<=T;I++)h+=" content |"}d=2,p=5-h.length,f=!0;break}case"link":{const{desc:E,url:_}=r;h=`[${E}](${_})`;break}case"image":{const{desc:E,url:_,urls:T}=r;T instanceof Array?h=T.reduce((A,I)=>A+`![${E}](${I})
58`,""):h=`![${E}](${_})
59`;break}case"tab":{const{tabWidth:E=2}=r,_=new Array(E).fill(" ").join("");if(t==="")h=_;else if(/\n/.test(t)){const{prefixStr:T,subfixStr:A,prefixSupply:I,subfixSupply:N}=_n(n);h=`${I}${t}${N}`.split(`
60`).map(O=>`${_}${O}`).join(`
61`),g=T.substring(0,T.length-I.length),v=A.substring(N.length,A.length),f=!0,d=E,p=-I.length-N.length}else{const T=n.value.substring(0,n.selectionStart);/\n$/.test(T)||T===""?(h=`${_}${t}`,f=!0):h=_}break}case"shiftTab":{const{tabWidth:E=2}=r,{prefixStr:_,prefixStrEndRow:T,subfixStrEndRow:A,prefixSupply:I,subfixSupply:N}=_n(n),O=new RegExp(`^\\s{${E}}`),y=(U=!1,F=!1)=>{const P=`${I}${t}${N}`;if(O.test(P)){const $=_.length-(F?0:E),j=U?$+t.length-E:$;return Ct(n,$,j),`${T}${P.replace(O,"")}${A}`}else if(/^\s/.test(P)){const $=P.replace(/^\s/,""),j=P.length-$.length,w=n.selectionStart-(F?0:j),H=U?w+t.length-j:w;return Ct(n,w,H),`${T}${$}${A}`}else h=t};if(t===""){const U=y();if(U)return U}else if(/\n/.test(t)){const U=`${I}${t}${N}`.split(`
62`);let[F,P]=[0,0];const $=U.map((j,w)=>{if(O.test(j))return w===0&&(F=E),P+=E,j.replace(O,"");if(/^\s/.test(j)){const H=j.replace(/^\s/,"");return P+=j.length-H.length,H}return j}).join(`
63`);return Ct(n,n.selectionStart-F,n.selectionEnd-P),`${T}${$}${A}`}else{const U=y(!0,!0);if(U)return U}break}case"ctrlC":{const{prefixSupply:E,subfixSupply:_}=_n(n);return _r(t===""?`${E}${_}`:t),n.value}case"ctrlX":{const{prefixStrEndRow:E,subfixStrEndRow:_,prefixStr:T,subfixStr:A,prefixSupply:I,subfixSupply:N}=_n(n);return t===""?(_r(`${I}${N}`),Ct(n,E.length),`${E}${_.replace(/^\n/,"")}`):(_r(t),Ct(n,T.length),`${T}${A}`)}case"ctrlD":{const{prefixStrEndRow:E,subfixStrEndRow:_}=_n(n);return Ct(n,E.length),`${E}${_.replace(/^\n/,"")}`}case"flow":{h=`\`\`\`mermaid
64${x?.flow||`flowchart TD 
65  Start --> Stop`}
66\`\`\`
67`,d=2;break}case"sequence":{h=`\`\`\`mermaid
68${x?.sequence||`sequenceDiagram
69  A->>B: hello!
70  B-->>A: hi!
71  A-)B: bye!`}
72\`\`\`
73`,d=2;break}case"gantt":{h=`\`\`\`mermaid
74${x?.gantt||`gantt
75title A Gantt Diagram
76dateFormat  YYYY-MM-DD
77section Section
78A task  :a1, 2014-01-01, 30d
79Another task  :after a1, 20d`}
80\`\`\`
81`,d=2;break}case"class":{h=`\`\`\`mermaid
82${x?.class||`classDiagram
83  class Animal
84  Vehicle <|-- Car`}
85\`\`\`
86`,d=2;break}case"state":{h=`\`\`\`mermaid
87${x?.state||`stateDiagram-v2
88  s1 --> s2`}
89\`\`\`
90`,d=2;break}case"pie":{h=`\`\`\`mermaid
91${x?.pie||`pie title Pets adopted by volunteers
92  "Dogs" : 386
93  "Cats" : 85
94  "Rats" : 15`}
95\`\`\`
96`,d=2;break}case"relationship":{h=`\`\`\`mermaid
97${x?.relationship||`erDiagram
98  CAR ||--o{ NAMED-DRIVER : allows
99  PERSON ||--o{ NAMED-DRIVER : is`}
100\`\`\`
101`,d=2;break}case"journey":{h=`\`\`\`mermaid
102${x?.journey||`journey
103  title My working day
104  section Go to work
105    Make tea: 5: Me
106    Go upstairs: 3: Me
107    Do work: 1: Me, Cat
108  section Go home
109    Go downstairs: 5: Me
110    Sit down: 5: Me`}
111\`\`\`
112`,d=2;break}case"katexInline":{h="$$",d=1,p=-1;break}case"katexBlock":{h=`$$
113
114$$
115`,d=1,p=-4;break}case"universal":{const{generate:E}=r,_=E(t);h=_.targetValue,f=_.select,d=_.deviationStart,p=_.deviationEnd}}return Oi(n,h,{deviationStart:d,deviationEnd:p,select:f,prefixVal:g,subfixVal:v})},lo={block(e,t){return{name:"KaTexBlockExtension",level:"block",start:n=>{var r;return(r=n.match(/\n\$\$/))==null?void 0:r.index}
115,tokenizer(n){if(/^\$\$/.test(n)&&n.split("$$").length>2){const r=Qa(n,"$$");return{type:"KaTexBlockExtension",raw:r[0],text:r[1].trim(),tokens:[]}}},renderer(n){const r=t||typeof window<"u"&&window.katex;if(r){const s=r.renderToString(n.text,{throwOnError:!1,displayMode:!0});return`<p class="${e}-katex-block" data-processed>${s}</p>`}else return`<p class="${e}-katex-block">${n.text}</p>`}}},inline(e,t){return{name:"KaTexInlineExtension",level:"inline",start:n=>{var r;return(r=n.match(/\$[^\n]*/))==null?void 0:r.index},tokenizer(n){if(/^\$[^\n]*\$/.test(n)){const r=Qa(n);return{type:"KaTexInlineExtension",raw:r[0],text:r[1].trim(),tokens:[]}}},renderer(n){const r=t||typeof window<"u"&&window.katex;if(r){const s=r.renderToString(n.text,{throwOnError:!1});return`<span class="${e}-katex-inline" data-processed>${s}</span>`}else return`<span class="${e}-katex-inline">${n.text}</span>`}}}},yc=["abstract","attention","bug","caution","danger","error","example","failure","hint","info","note","question","quote","success","tip","warning"],cs=new RegExp(`^!!!\\s*(${yc.join("|")})\\s*(.*)$`),Dd=/^!!!\s*$/,Rd={name:"alert",level:"block",start(e){var t;return(t=e.match(new RegExp(`(^|[\\r\\n])!!!\\s*(${yc.join("|")})\\s*(.*)`)))==null?void 0:t.index},tokenizer(e){const t=e.split(/\n/);if(cs.test(t[0])){const n={x:-1,y:-1},r=[];for(let s=0,i=t.length;s<i;s++)cs.test(t[s])?n.x=s:Dd.test(t[s])&&(n.y=s,n.x>=0&&(r.push({...n}),n.x=-1,n.y=-1));if(r.length){const s=r[0],[i,a,o]=cs.exec(t[s.x])||[],c=t.slice(s.x+1,s.y).join(`
116`),l={type:"alert",raw:t.slice(s.x,s.y+1).join(`
117`),icon:a,title:o,text:c,titleTokens:[],tokens:[],childTokens:["title","text"]};return this.lexer.inlineTokens(l.title,l.titleTokens),this.lexer.blockTokens(l.text,l.tokens),l}}},renderer(e){return`<div class="md-editor-alert md-editor-alert-${e.icon}">
118     <p class="md-editor-alert-title">${this.parser.parseInline(e.titleTokens,null)}</p>
119     ${this.parser.parse(e.tokens)}
120     </div>`}},Ld=typeof window>"u",wd=(e,t,n)=>{var r,s;const i=oe("previewOnly"),a=oe("historyLength"),o=oe("editorId");if(i)return;let c=-1;const l={list:[{content:e.value,startPos:((r=t.value)==null?void 0:r.selectionStart)||0,endPos:((s=t.value)==null?void 0:s.selectionEnd)||0}],userUpdated:!0,curr:0},h=[0,0];let d=h;const p=v=>{var x,E;const _=((x=t.value)==null?void 0:x.selectionStart)||0,T=((E=t.value)==null?void 0:E.selectionEnd)||0;l.list[l.curr].startPos=_,l.list[l.curr].endPos=T,l.userUpdated=!1,l.curr=v;const A=l.list[l.curr];d=[A.startPos,A.endPos],e.onChange(A.content),Ct(t.value,A.startPos,A.endPos).then(()=>{z.emit(o,"selectTextChange")})},f=v=>{var x,E;clearTimeout(c);const _=((x=t.value)==null?void 0:x.selectionStart)||0,T=((E=t.value)==null?void 0:E.selectionEnd)||0;c=setTimeout(()=>{if(l.userUpdated){l.curr<l.list.length-1&&(l.list=l.list.slice(0,l.curr+1)),l.list.length>a&&l.list.shift();const A=l.list.pop()||{startPos:0,endPos:0,content:v};A.startPos=d[0],A.endPos=d[1],d=h,Array.prototype.push.call(l.list,A,{content:v,startPos:_,endPos:T}),l.curr=l.list.length-1}else l.userUpdated=!0},150)},g=v=>{var x,E;(d===h||v)&&(d=[(x=t.value)==null?void 0:x.selectionStart,(E=t.value)==null?void 0:E.selectionEnd])};de([Dr(e,"value"),n],()=>{n.value&&f(e.value)}),de(()=>e.value,()=>{z.emit(o,"selectTextChange")},{flush:"post"}),Ce(()=>{z.on(o,{name:"ctrlZ",callback(){p(l.curr-1<0?0:l.curr-1)}}),z.on(o,{name:"ctrlShiftZ",callback(){p(l.curr+1===l.list.length?l.curr:l.curr+1)}}),z.on(o,{name:"saveHistoryPos",callback:g})})},Od=(e,t)=>{var n;const r=(n=Se.editorExtensions)==null?void 0:n.katex,s=r?.instance,i=Ae(!!s);return e.noKatex||t.use({extensions:[lo.inline(D,s),lo.block(D,s)]}),Ce(()=>{if(!e.noKatex&&!s){const a=document.createElement("script");a.src=r?.js||ja.js,a.onload=()=>{i.value=!0},a.id=`${D}-katex`;const o=document.createElement("link");o.rel="stylesheet",o.href=r?.css||ja.css,o.id=`${D}-katexCss`,nt(a,"katex"),nt(o)}}),i},Md=e=>{var t,n;const{markedRenderer:r,markedExtensions:s,markedOptions:i,editorExtensions:a,editorConfig:o}=Se,c=oe("showCodeRowNumber"),l=oe("editorId"),h=oe("highlight"),d=oe("previewOnly"),p=oe("theme"),f=(t=a?.highlight)==null?void 0:t.instance,g=(n=a?.mermaid)==null?void 0:n.instance,v=Ae(!!f),x=Ae([]);let E=[],_=[];const T=new Id({max:1e3,ttl:6e5}),A=Bd(e),I=Od(e,W),N=Je(()=>(e.noMermaid||A.mermaidInited)&&v.value&&(e.noKatex||I.value));let O=new W.Renderer;O.image=(H,Y,te)=>`<span class="figure"><img src="${H}" title="${Y||""}" alt="${te||""}" zoom><span class="figcaption">${te||""}</span></span>`,O.listitem=(H,Y)=>Y?`<li class="li-task">${H}</li>`:`<li>${H}</li>`,r instanceof Function&&(O=r(O));const y=O.code;O.code=(H,Y,te)=>{if(!e.noMermaid&&Y==="mermaid"){const ce=Dh();try{if(Ld)return`<p class="${D}-mermaid">${H}</p>`;{const Q=T.get(H);if(Q)return`<p class="${D}-mermaid" data-processed>${Q}</p>`;const Fe=g||window.mermaid;if(A.mermaidInited){const He=(Fe.renderAsync||Fe.render)(ce,H);He.then(Oe=>{T.set(H,typeof Oe=="string"?Oe:Oe.svg)}),E.push(He)}else return`<p class="${D}-mermaid">${H}</p>`}const ne=`<script type="text/tmplate">${ce}<\/script>`;return _.push(ne),ne}catch(ne){return`<p class="${D}-mermaid-error">Error: ${ne?.message||""}</p>`}}
120return y.call(O,H,Y,te).replace(/^<pre><code\sclass="language-([^>]*)">/,'<pre><code class="language-$1" language="$1">')};const U=O.heading,F=U!==new W.Renderer().heading;O.heading=(H,Y,te,ce)=>{x.value.push({text:te,level:Y});const ne=e.markedHeadingId(te,Y,x.value.length);return F?U.call(O,H,Y,te,ce,x.value.length,ne):H!==te?`<h${Y} id="${ne}">${H}</h${Y}>`:`<h${Y} id="${ne}"><a href="#${ne}">${te}</a></h${Y}>`},f&&W.setOptions({highlight:(H,Y)=>{let te;const ce=f.getLanguage(Y);return Y&&ce?te=f.highlight(H,{language:Y,ignoreIllegals:!0}).value:te=f.highlightAuto(H).value,c?Wa(te.trim()):`<span class="code-block">${te.trim()}</span>`}}),W.setOptions({breaks:!0,...i}),s instanceof Array&&s.length>0&&W.use({extensions:s}),W.use({extensions:[Rd]});const P=Ae(e.sanitize(W(e.value||"",{renderer:O}))),$=async H=>{let Y=e.sanitize(W(H,{renderer:O}));const te=[...E],ce=[..._];return _=[],E=[],(await Promise.allSettled(te)).forEach((ne,Q)=>{ne.status==="fulfilled"?Y=Y.replace(ce[Q],`<p class="${D}-mermaid" data-processed>${typeof ne.value=="string"?ne.value:ne.value.svg}</p>`):Y=Y.replace(ce[Q],`<p class="${D}-mermaid-error">${ne.reason||""}</p>`)}),Y},j=Qr(async()=>{x.value=[];const H=await $(e.value||"");P.value=H,z.emit(l,"buildFinished",P.value),e.onHtmlChanged(P.value)},o?.renderDelay!==void 0?o?.renderDelay:d?0:500);de([N,Dr(A,"reRender"),Dr(e,"value")],j),de([p],()=>{T.clear()});const w=()=>{W.setOptions({highlight:(H,Y)=>{let te;const ce=window.hljs.getLanguage(Y);return Y&&ce?te=window.hljs.highlight(H,{language:Y,ignoreIllegals:!0}).value:te=window.hljs.highlightAuto(H).value,c?Wa(te.trim()):`<span class="code-block">${te.trim()}</span>`}}),v.value=!0};return de(()=>x.value,H=>{e.onGetCatalog(H),z.emit(l,"catalogChanged",H)}),Ce(()=>{if(!f){const H=document.createElement("script");H.src=h.value.js,H.onload=w,H.id=`${D}-hljs`,nt(H,"hljs");const Y=document.createElement("link");Y.rel="stylesheet",Y.href=h.value.css,Y.id=`${D}-hlCss`,nt(Y)}}),de(()=>h.value.css,H=>{Rh(`${D}-hlCss`,"href",H)}),Ce(()=>{z.on(l,{name:"pushCatalog",callback(){z.emit(l,"catalogChanged",x.value)}})}),P},Pd=(e,t,n,r,s)=>{const i=oe("previewOnly"),a=oe("usedLanguageText"),o=oe("editorId");let c=()=>{},l=()=>{};const h=()=>{document.querySelectorAll(`#${o}-preview pre`).forEach(f=>{var g,v;let x=-1;(g=f.querySelector(".copy-button"))==null||g.remove();const E=((v=a.value.copyCode)==null?void 0:v.text)||"复制代码",_=document.createElement("span");_.setAttribute("class","copy-button"),_.dataset.tips=E,_.innerHTML=`<svg class="${D}-icon" aria-hidden="true"><use xlink:href="#${D}-icon-copy"></use></svg>`,_.addEventListener("click",()=>{var T,A;clearTimeout(x);const I=f.querySelector("code").innerText,N=_r(e.formatCopiedText(I)),O=((T=a.value.copyCode)==null?void 0:T.successTips)||"已复制!",y=((A=a.value.copyCode)==null?void 0:A.failTips)||"已复制!";_.dataset.tips=N?O:y,x=window.setTimeout(()=>{_.dataset.tips=E},1500)}),f.appendChild(_)})},d=()=>{dn(()=>{e.setting.preview&&!i&&e.scrollAuto&&(c(),l()),h()})},p=f=>{f&&!i&&dn(()=>{c(),[l,c]=Ga(n.value,r.value||s.value),l(),h()})};de(()=>t.value,d),de(()=>a.value,h),de(()=>e.setting.preview,p),de(()=>e.setting.htmlPreview,p),de(()=>e.scrollAuto,f=>{f?l():c()}),Ce(()=>{h(),!i&&(r.value||s.value)&&([l,c]=Ga(n.value,r.value||s.value)),e.scrollAuto&&l()})},Fd=(e,t)=>{const n=oe("previewOnly"),r=oe("tabWidth"),s=oe("editorId"),i=Ae("");Ce(()=>{var a;n||((a=t.value)==null||a.addEventListener("keypress",o=>{var c,l,h;if(o.key==="Enter"){const d=(c=t.value)==null?void 0:c.selectionStart,p=(l=t.value)==null?void 0:l.value.substring(0,d),f=(h=t.value)==null?void 0:h.value.substring(d),g=p?.lastIndexOf(`
121`),v=p?.substring(g+1,d);if(/^\d+\.\s|^-\s/.test(v))if(o.cancelBubble=!0,o.preventDefault(),o.stopPropagation(),/^(\d+\.|-)\s+(\[[x\s]\]\s+)?$/.test(v)){const x=p?.replace(/(\d+\.|-)\s+(\[[x\s]\]\s+)?$/,"");e.onChange(x+f),Ct(t.value,x?.length)}else if(/^-\s+.+/.test(v)){const x=/^-\s+\[[x\s]\]/.test(v)?`
122- [ ] `:`
123- `;e.onChange(Oi(t.value,x,{}))}else{const x=v?.match(/\d+(?=\.)/),E=x&&Number(x[0])+1||1,_=/^\d\.\s+\[[x\s]\]/.test(v)?`
124${E}. [ ] `:`
125${E}. `;e.onChange(Oi(t.value,_,{}))}}}),z.on(s,{name:"replace",callback(o,c={}){e.onChange(Nd(o,i.value,t.value,{...c,tabWidth:r,editorId:s}))}}),z.on(s,{name:"selectTextChange",callback(){i.value=yh(t.value)}}))}),de(()=>e.value,()=>{i.value=""})},Bd=e=>{const t=oe("theme"),{editorExtensions:n}=Se,r=n?.mermaid,s=et({reRender:!1,mermaidInited:!!(r!=null&&r.instance)}),i=()=>{const a=r?.instance||window.mermaid;!e.noMermaid&&a&&(a.initialize({startOnLoad:!1,theme:t.value==="dark"?"dark":"default"}),s.reRender=!s.reRender)};return de(()=>t.value,i),Ce(()=>{if(!e.noMermaid)if(r!=null&&r.instance)i(),s.mermaidInited=!0;else{const a=document.createElement("script");a.id=`${D}-mermaid`;const o=r?.js||Ah;/\.mjs/.test(o)?(a.setAttribute("type","module"),a.innerHTML=`import mermaid from "${o}";window.mermaid=mermaid;document.getElementById('${D}-mermaid').dispatchEvent(new Event('load'));`):a.src=o,a.onload=()=>{i(),s.mermaidInited=!0},nt(a,"mermaid")}}),s},Hd=(e,t)=>{const n=oe("editorId"),r=oe("previewOnly"),s=i=>{if(i.clipboardData){if(i.clipboardData.files.length>0){const{files:a}=i.clipboardData;z.emit(n,"uploadImage",Array.from(a).filter(o=>/image\/.*/.test(o.type))),i.preventDefault()}if(e.autoDetectCode&&i.clipboardData.types.includes("vscode-editor-data")){const a=JSON.parse(i.clipboardData.getData("vscode-editor-data"));z.emit(n,"replace","code",{mode:a.mode,text:i.clipboardData.getData("text/plain")}),i.preventDefault()}}};Ce(()=>{r||t.value.addEventListener("paste",s)}),Vn(()=>{r||t.value.removeEventListener("paste",s)})},Ud=(e,t)=>{const n=oe("editorId"),r=Qr(()=>{const s=document.querySelectorAll(`#${n}-preview img[zoom]`);s.length!==0&&xd(s,{background:"#00000073"})});Ce(r),de([t,Dr(e.setting,"preview")],r)},qd=e=>{const t=oe("editorId");Ce(()=>{z.on(t,{name:pc,callback(){var n;(n=e.value)==null||n.focus()}})})},$d=()=>({value:{type:String,default:""},onChange:{type:Function,default:()=>{}},setting:{type:Object,default:()=>({})},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},markedHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},scrollAuto:{type:Boolean},formatCopiedText:{type:Function,default:e=>e},autofocus:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},maxlength:{type:Number},autoDetectCode:{type:Boolean},onBlur:{type:Function,default:()=>{}},onFocus:{type:Function,default:()=>{}}}),zd=xe({name:"MDEditorContent",props:$d(),setup(e){const t=Ae(!0),n=oe("previewOnly"),r=oe("showCodeRowNumber"),s=oe("previewTheme"),i=oe("editorId"),a=Ae(),o=Ae(),c=Ae(),l=Md(e);return Pd(e,l,a,o,c),Fd(e,a),wd(e,a,t),Hd(e,a),Ud(e,l),qd(a),()=>{const h=Nh(e,["formatCopiedText","markedHeadingId","noKatex","noMermaid","onChange","onGetCatalog","onHtmlChanged","sanitize","scrollAuto","setting","autoDetectCode","onBlur","onFocus"]);return S(Gn,null,[S("div",{class:`${D}-content`},[!n&&S("div",{class:`${D}-input-wrapper`},[S("textarea",ch(h,{id:`${i}-textarea`,class:[e.setting.preview||e.setting.htmlPreview?"":"textarea-only"],ref:a,onBlur:d=>{z.emit(i,"selectTextChange"),e.onBlur(d)},onFocus:e.onFocus,onKeydown:()=>{z.emit(i,"saveHistoryPos",!0)},onCompositionstart:()=>{t.value=!1},onInput:d=>{e.onChange(d.target.value)},onCompositionend:()=>{t.value=!0}}),null)]),e.setting.preview&&S("div",{id:`${i}-preview-wrapper`,class:`${D}
125-preview-wrapper`,ref:o,key:"content-preview-wrapper"},[S("article",{id:`${i}-preview`,class:[`${D}-preview`,`${s?.value}-theme`,r&&`${D}-scrn`],innerHTML:l.value},null)]),e.setting.htmlPreview&&S("div",{class:`${D}-preview-wrapper`,ref:c,key:"html-preview-wrapper"},[S("div",{class:`${D}-html`},[l.value])])])])}}}),Yd=xe({props:{modelValue:{type:String,default:""}},setup(e){const t=oe("usedLanguageText");return()=>{var n,r;return S("div",{class:`${D}-footer-item`},[S("label",{class:`${D}-footer-label`},[`${(n=t.value.footer)==null?void 0:n.markdownTotal}:`]),S("span",null,[((r=e.modelValue)==null?void 0:r.length)||0])])}}}),jd=()=>({checked:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}}}),Vd=xe({props:jd(),setup(e){return()=>S("div",{class:[`${D}-checkbox`,e.checked&&`${D}-checkbox-checked`],onClick:()=>{e.onChange(!e.checked)}},null)}}),Gd=()=>({scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}}}),Wd=xe({props:Gd(),setup(e){const t=oe("usedLanguageText");return()=>{var n;return S("div",{class:`${D}-footer-item`},[S("label",{class:`${D}-footer-label`,onClick:()=>{e.onScrollAutoChange(!e.scrollAuto)}},[(n=t.value.footer)==null?void 0:n.scrollAuto]),S(Vd,{checked:e.scrollAuto,onChange:e.onScrollAutoChange},null)])}}}),Qd=()=>({modelValue:{type:String,default:""},footers:{type:Array,default:[]},scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}},defFooters:{type:Object}}),Kd=xe({name:"MDEditorFooter",props:Qd(),setup(e){const t=Je(()=>{const r=e.footers.indexOf("="),s=r===-1?e.footers:e.footers.slice(0,r),i=r===-1?[]:e.footers.slice(r,Number.MAX_SAFE_INTEGER);return[s,i]}),n=r=>{if(dc.includes(r))switch(r){case"markdownTotal":return S(Yd,{modelValue:e.modelValue},null);case"scrollSwitch":return S(Wd,{scrollAuto:e.scrollAuto,onScrollAutoChange:e.onScrollAutoChange},null)}else return e.defFooters instanceof Array?e.defFooters[r]||"":e.defFooters&&e.defFooters.children instanceof Array&&e.defFooters.children[r]||""};return()=>{const r=t.value[0].map(i=>n(i)),s=t.value[1].map(i=>n(i));return S("div",{class:`${D}-footer`},[S("div",{class:`${D}-footer-left`},[r]),S("div",{class:`${D}-footer-right`},[s])])}}}),Xd=()=>({tocItem:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:()=>{}},scrollElement:{type:[String,Object],default:""},onClick:{type:Function,default:()=>{}},scrollElementOffsetTop:{type:Number,default:0}}),Ic=xe({props:Xd(),setup(e){return()=>{const{tocItem:t,markedHeadingId:n,scrollElement:r,onClick:s,scrollElementOffsetTop:i}=e;return S("div",{class:[`${D}-catalog-link`,t.active&&`${D}-catalog-active`],onClick:a=>{s(a,t),a.stopPropagation();const o=n(t.text,t.level,t.index),c=document.getElementById(o),l=r instanceof Element?r:document.querySelector(r);if(c&&l){let h=c.offsetParent,d=c.offsetTop;if(l.contains(h))for(;h&&l!=h;)d+=h?.offsetTop,h=h?.offsetParent;l?.scrollTo({top:d-i,behavior:"smooth"})}}},[S("span",{title:t.text},[t.text]),S("div",{class:`${D}-catalog-wrapper`},[t.children&&t.children.map(a=>S(Ic,{markedHeadingId:n,key:`${t.text}-link-${a.level}-${a.text}`,tocItem:a,scrollElement:r,onClick:s,scrollElementOffsetTop:i},null))])])}}}),Zd=()=>({editorId:{type:String},class:{type:String,default:""},markedHeadingId:{type:Function,default:e=>e},scrollElement:{type:[String,Object]},theme:{type:String,default:"light"},offsetTop:{type:Number,default:20},scrollElementOffsetTop:{type:Number,default:0},onClick:{type:Function}}),Pr=xe({name:"MdCatalog",props:Zd(),emits:["onClick"],setup(e,t){const n=e.editorId,r=et({list:[],show:!1,scrollElement:e.scrollElement||`#${n}-preview-wrapper`}),s=Je(()=>{const a=[];return r.list.forEach(({text:o,level:c,active:l},h)=>{const d={level:c,text:o,index:h+1,active:!!l};if(a.length===0)a.push(d);else{let p=a[a.length-1];if(d.level>p.level)for(let f=p.level+1;f<=6;f++){const{children:g}=p;if(!g){p.children=[d];break}if(p=g[g.length-1],d.level<=p.level){g.push(d);break}}else a.push(d)}}),a});Ce(()=>{z.on(n,{name:"catalogChanged",callback:a=>{r.list=a.map((o,c)=>c===0?{...o,active:!0}:{...o})}}),z.emit(n,"pushCatalog")});const i=()=>{var a;const o=r.scrollElement instanceof HTMLElement?r.scrollElement:document.querySelector(r.scrollElement);(a=o===document.documentElement?window:o)==null||a.addEventListener("scroll",Sh(()=>
125{if(r.list.length===0)return!1;const{activeHead:c}=r.list.reduce((l,h,d)=>{const p=document.getElementById(e.markedHeadingId(h.text,h.level,d+1));if(p instanceof HTMLElement){const f=Ih(p,o);if(f<e.offsetTop&&f>l.minTop)return{activeHead:h,minTop:f}}return l},{activeHead:r.list[0],minTop:Number.MIN_SAFE_INTEGER});r.list=r.list.map(l=>l===c?{...l,active:!0}:{...l,active:!1})}))};return Ce(()=>{i(),z.on(n,{name:Mi,callback(a){a&&dn(i)}})}),()=>S("div",{class:`${D}-catalog${e.theme==="dark"?"-dark":""} ${e.class}`},[s.value.map(a=>S(Ic,{markedHeadingId:e.markedHeadingId,tocItem:a,key:`link-${a.level}-${a.text}`,scrollElement:r.scrollElement,onClick:(o,c)=>{e.onClick?e.onClick(o,c):t.emit("onClick",o,c)},scrollElementOffsetTop:e.scrollElementOffsetTop},null))])}}),Jd=e=>e,ef={modelValue:{type:String,default:""},theme:{type:String,default:"light"},class:{type:String,default:""},historyLength:{type:Number,default:10},onChange:{type:Function},onSave:{type:Function},onUploadImg:{type:Function},pageFullscreen:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},htmlPreview:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},language:{type:String,default:"zh-CN"},toolbars:{type:Array,default:hc},toolbarsExclude:{type:Array,default:[]},noPrettier:{type:Boolean,default:!1},onHtmlChanged:{type:Function},onGetCatalog:{type:Function},editorId:{type:String,default:Eh},tabWidth:{type:Number,default:2},showCodeRowNumber:{type:Boolean,default:!1},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},markedHeadingId:{type:Function,default:Jd},tableShape:{type:Array,default:()=>[6,4]},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},placeholder:{type:String,default:""},noKatex:{type:Boolean,default:!1},defToolbars:{type:[String,Object]},onError:{type:Function},codeTheme:{type:String,default:"atom"},footers:{type:Array,default:dc},scrollAuto:{type:Boolean,default:!0},defFooters:{type:[String,Object]},noIconfont:{type:Boolean},formatCopiedText:{type:Function,default:e=>e},noUploadImg:{type:Boolean},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},autoFocus:{type:Boolean},disabled:{type:Boolean},readOnly:{type:Boolean},maxLength:{type:Number},autoDetectCode:{type:Boolean},onBlur:{type:Function},onFocus:{type:Function}},tf=["onChange","onSave","onUploadImg","onHtmlChanged","onGetCatalog","onError","update:modelValue","onBlur","onFocus"],xt=xe({name:"MdEditorV3",props:ef,emits:tf,setup(e,t){const{editorId:n,previewOnly:r,noKatex:s,noMermaid:i,noPrettier:a,noUploadImg:o}=e,c=et({scrollAuto:e.scrollAuto});Lh(e,t),wh(e),Oh(e);const[l,h]=Mh(e,t),[d,p]=Ph(e);return Vn(()=>{z.clear(n)}),Fh(e,t,d,l,h),()=>{var f;const g=rt({props:e,ctx:t},"defToolbars"),v=rt({props:e,ctx:t},"defFooters");return S("div",{id:n,class:[D,e.class,e.theme==="dark"&&`${D}-dark`,l.fullscreen||l.pageFullscreen?`${D}-fullscreen`:"",r&&`${D}-previewOnly`],style:e.style},[!r&&S(Xh,{noPrettier:a,toolbars:e.toolbars,toolbarsExclude:e.toolbarsExclude,setting:l,updateSetting:h,tableShape:e.tableShape,defToolbars:g,noUploadImg:o},null),S(zd,{value:e.modelValue,setting:l,markedHeadingId:e.markedHeadingId,noMermaid:i,sanitize:e.sanitize,placeholder:e.placeholder,noKatex:s,scrollAuto:c.scrollAuto,formatCopiedText:e.formatCopiedText,autofocus:e.autoFocus,disabled:e.disabled,readonly:e.readOnly,maxlength:e.maxLength,autoDetectCode:e.autoDetectCode,onChange:x=>{z.emit(n,"saveHistoryPos"),e.onChange?e.onChange(x):(t.emit("update:modelValue",x),t.emit("onChange",x))},onHtmlChanged:x=>{e.onHtmlChanged?e.onHtmlChanged(x):t.emit("onHtmlChanged",x)},onGetCatalog:x=>{e.onGetCatalog?e.onGetCatalog(x):t.emit("onGetCatalog",x)},onBlur:x=>{e.onBlur?e.onBlur(x):t.emit("onBlur",x)},onFocus:x=>{e.onFocus?e.onFocus(x):t.emit("onFocus",x)}},null),!r&&((f=e.footers)==null?void 0:f.length)>0&&S(Kd,{modelValue:e.modelValue,footers:e.footers,defFooters:v,scrollAuto:c.scrollAuto,onScrollAutoChange:x=>c.scrollAuto=x},null),p.value&&!r&&S(Pr,{theme:e.theme,style:{display:d.value?"block":"none"},class:`${D}-catalog-editor`,editorId:n,markedHeadingId:e.markedHeadingId},null)])}}}),nf=()=>({title:{type:String,default:""},trigger:{type:[String,Object]},onClick:{type:Function}}),Bi=xe({name:"NormalToolbar",props:nf(),emits:["onClick"],setup(e,t){return()=>{const n=rt({props:e,ctx:t},"trigger");return S("div",{class:`${D}-toolbar-item`,title:e.title,onClick:r=>{e.onClick instanceof Function?e.onClick(r):t.emit("onClick",r)}},[n])}}}),rf=()=>({title:{type:String,default:""},visible:{type:Boolean},trigger:{type:[String,Object]},onChange:{type:Function},overlay:{type:[String,Object]}}),Hi=xe({name:"DropdownToolbar",props:rf(),emits:["onChange"],setup(e,t){const n=oe("editorId");return()=>{const r=rt({props:e,ctx:t},"trigger"),s=rt({props:e,ctx:t},"overlay");return S(rn,{relative:`#${n}-toolbar-wrapper`,visible:e.visible,onChange:i=>{e.onChange instanceof Function?e.onChange(i):t.emit("onChange",i
125)},overlay:s},{default:()=>[S("div",{class:`${D}-toolbar-item`,title:e.title||""},[r])]})}}});function sf(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!hh(e)}const af=()=>({title:{type:String,default:""},modalTitle:{type:String,default:""},visible:{type:Boolean},width:{type:String,default:"auto"},height:{type:String,default:"auto"},trigger:{type:[String,Object]},onClick:{type:Function},onClose:{type:Function},showAdjust:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},onAdjust:{type:Function}}),Ui=xe({name:"ModalToolbar",props:af(),emits:["onClick","onClose","onAdjust"],setup(e,t){return()=>{const n=rt({props:e,ctx:t},"trigger"),r=rt({props:e,ctx:t},"default");return S(Gn,null,[S("div",{class:`${D}-toolbar-item`,title:e.title,onClick:()=>{e.onClick instanceof Function?e.onClick():t.emit("onClick")}},[n]),S(na,{width:e.width,height:e.height,title:e.modalTitle,visible:e.visible,onClose:()=>{e.onClose instanceof Function?e.onClose():t.emit("onClose")},showAdjust:e.showAdjust,isFullscreen:e.isFullscreen,onAdjust:s=>{e.onAdjust instanceof Function?e.onAdjust(s):t.emit("onAdjust",s)}},sf(r)?r:{default:()=>[r]})])}}});xt.install=e=>(e.component(xt.name,xt),e.component(Bi.name,Bi),e.component(Hi.name,Hi),e.component(Pr.name,Pr),e.component(Ui.name,Ui),e);xt.NormalToolbar=Bi;xt.DropdownToolbar=Hi;xt.MdCatalog=Pr;xt.ModalToolbar=Ui;xt.config=Ch;var ls={};const of="Á",uf="á",cf="Ă",lf="ă",hf="∾",df="∿",ff="∾̳",pf="Â",mf="â",gf="´",Ef="А",bf="а",Tf="Æ",_f="æ",Af="⁡",Cf="𝔄",kf="𝔞",xf="À",vf="à",Sf="ℵ",yf="ℵ",If="Α",Nf="α",Df="Ā",Rf="ā",Lf="⨿",wf="&",Of="&",Mf="⩕",Pf="⩓",Ff="∧",Bf="⩜",Hf="⩘",Uf="⩚",qf="∠",$f="⦤",zf="∠",Yf="⦨",jf="⦩",Vf="⦪",Gf="⦫",Wf="⦬",Qf="⦭",Kf="⦮",Xf="⦯",Zf="∡",Jf="∟",e0="⊾",t0="⦝",n0="∢",r0="Å",s0="⍼",i0="Ą",a0="ą",o0="𝔸",u0="𝕒",c0="⩯",l0="≈",h0="⩰",d0="≊",f0="≋",p0="'",m0="⁡",g0="≈",E0="≊",b0="Å",T0="å",_0="𝒜",A0="𝒶",C0="≔",k0="*",x0="≈",v0="≍",S0="Ã",y0="ã",I0="Ä",N0="ä",D0="∳",R0="⨑",L0="≌",w0="϶",O0="‵",M0="∽",P0="⋍",F0="∖",B0="⫧",H0="⊽",U0="⌅",q0="⌆",$0="⌅",z0="⎵",Y0="⎶",j0="≌",V0="Б",G0="б",W0="„",Q0="∵",K0="∵",X0="∵",Z0="⦰",J0="϶",ep="ℬ",tp="ℬ",np="Β",rp="β",sp="ℶ",ip="≬",ap="𝔅",op="𝔟",up="⋂",cp="◯",lp="⋃",hp="⨀",dp="⨁",fp="⨂",pp="⨆",mp="★",gp="▽",Ep="△",bp="⨄",Tp="⋁",_p="⋀",Ap="⤍",Cp="⧫",kp="▪",xp="▴",vp="▾",Sp="◂",yp="▸",Ip="␣",Np="▒",Dp="░",Rp="▓",Lp="█",wp="=⃥",Op="≡⃥",Mp="⫭",Pp="⌐",Fp="𝔹",Bp="𝕓",Hp="⊥",Up="⊥",qp="⋈",$p="⧉",zp="┐",Yp="╕",jp="╖",Vp="╗",Gp="┌",Wp="╒",Qp="╓",Kp="╔",Xp="─",Zp="═",Jp="┬",em="╤",tm="╥",nm="╦",rm="┴",sm="╧",im="╨",am="╩",om="⊟",um="⊞",cm="⊠",lm="┘",hm="╛",dm="╜",fm="╝",pm="└",mm="╘",gm="╙",Em="╚",bm="│",Tm="║",_m="┼",Am="╪",Cm="╫",km="╬",xm="┤",vm="╡",Sm="╢",ym="╣",Im="├",Nm="╞",Dm="╟",Rm="╠",Lm="‵",wm="˘",Om="˘",Mm="¦",Pm="𝒷",Fm="ℬ",Bm="⁏",Hm="∽",Um="⋍",qm="⧅",$m="\\",zm="⟈",Ym="•",jm="•",Vm="≎",Gm="⪮",Wm="≏",Qm="≎",Km="≏",Xm="Ć",Zm="ć",Jm="⩄",eg="⩉",tg="⩋",ng="∩",rg="⋒",sg="⩇",ig="⩀",ag="ⅅ",og="∩︀",ug="⁁",cg="ˇ",lg="ℭ",hg="⩍",dg="Č",fg="č",pg="Ç",mg="ç",gg="Ĉ",Eg="ĉ",bg="∰",Tg="⩌",_g="⩐",Ag="Ċ",Cg="ċ",kg="¸",xg="¸",vg="⦲",Sg="¢",yg="·",Ig="·",Ng="𝔠",Dg="ℭ",Rg="Ч",Lg="ч",wg="✓",Og="✓",Mg="Χ",Pg="χ",Fg="ˆ",Bg="≗",Hg="↺",Ug="↻",qg="⊛",$g="⊚",zg="⊝",Yg="⊙",jg="®",Vg="Ⓢ",Gg="⊖",Wg="⊕",Qg="⊗",Kg="○",Xg="⧃",Zg="≗",Jg="⨐",eE="⫯",tE="⧂",nE="∲",rE="”",sE="’",iE="♣",aE="♣",oE=":",uE="∷",cE="⩴",lE="≔",hE="≔",dE=",",fE="@",pE="∁",mE="∘",gE="∁",EE="ℂ",bE="≅",TE="⩭",_E="≡",AE="∮",CE="∯",kE="∮",xE="𝕔",vE="ℂ",SE="∐",yE="∐",IE="©",NE="©",DE="℗",RE="∳",LE="↵",wE="✗",OE="⨯",ME="𝒞",PE="𝒸",FE="⫏",BE="⫑",HE="⫐",UE="⫒",qE="⋯",$E="⤸",zE="⤵",YE="⋞",jE="⋟",VE="↶",G
125E="⤽",WE="⩈",QE="⩆",KE="≍",XE="∪",ZE="⋓",JE="⩊",e1="⊍",t1="⩅",n1="∪︀",r1="↷",s1="⤼",i1="⋞",a1="⋟",o1="⋎",u1="⋏",c1="¤",l1="↶",h1="↷",d1="⋎",f1="⋏",p1="∲",m1="∱",g1="⌭",E1="†",b1="‡",T1="ℸ",_1="↓",A1="↡",C1="⇓",k1="‐",x1="⫤",v1="⊣",S1="⤏",y1="˝",I1="Ď",N1="ď",D1="Д",R1="д",L1="‡",w1="⇊",O1="ⅅ",M1="ⅆ",P1="⤑",F1="⩷",B1="°",H1="∇",U1="Δ",q1="δ",$1="⦱",z1="⥿",Y1="𝔇",j1="𝔡",V1="⥥",G1="⇃",W1="⇂",Q1="´",K1="˙",X1="˝",Z1="`",J1="˜",eb="⋄",tb="⋄",nb="⋄",rb="♦",sb="♦",ib="¨",ab="ⅆ",ob="ϝ",ub="⋲",cb="÷",lb="÷",hb="⋇",db="⋇",fb="Ђ",pb="ђ",mb="⌞",gb="⌍",Eb="$",bb="𝔻",Tb="𝕕",_b="¨",Ab="˙",Cb="⃜",kb="≐",xb="≑",vb="≐",Sb="∸",yb="∔",Ib="⊡",Nb="⌆",Db="∯",Rb="¨",Lb="⇓",wb="⇐",Ob="⇔",Mb="⫤",Pb="⟸",Fb="⟺",Bb="⟹",Hb="⇒",Ub="⊨",qb="⇑",$b="⇕",zb="∥",Yb="⤓",jb="↓",Vb="↓",Gb="⇓",Wb="⇵",Qb="̑",Kb="⇊",Xb="⇃",Zb="⇂",Jb="⥐",eT="⥞",tT="⥖",nT="↽",rT="⥟",sT="⥗",iT="⇁",aT="↧",oT="⊤",uT="⤐",cT="⌟",lT="⌌",hT="𝒟",dT="𝒹",fT="Ѕ",pT="ѕ",mT="⧶",gT="Đ",ET="đ",bT="⋱",TT="▿",_T="▾",AT="⇵",CT="⥯",kT="⦦",xT="Џ",vT="џ",ST="⟿",yT="É",IT="é",NT="⩮",DT="Ě",RT="ě",LT="Ê",wT="ê",OT="≖",MT="≕",PT="Э",FT="э",BT="⩷",HT="Ė",UT="ė",qT="≑",$T="ⅇ",zT="≒",YT="𝔈",jT="𝔢",VT="⪚",GT="È",WT="è",QT="⪖",KT="⪘",XT="⪙",ZT="∈",JT="⏧",e_="ℓ",t_="⪕",n_="⪗",r_="Ē",s_="ē",i_="∅",a_="∅",o_="◻",u_="∅",c_="▫",l_=" ",h_=" ",d_=" ",f_="Ŋ",p_="ŋ",m_=" ",g_="Ę",E_="ę",b_="𝔼",T_="𝕖",__="⋕",A_="⧣",C_="⩱",k_="ε",x_="Ε",v_="ε",S_="ϵ",y_="≖",I_="≕",N_="≂",D_="⪖",R_="⪕",L_="⩵",w_="=",O_="≂",M_="≟",P_="⇌",F_="≡",B_="⩸",H_="⧥",U_="⥱",q_="≓",$_="ℯ",z_="ℰ",Y_="≐",j_="⩳",V_="≂",G_="Η",W_="η",Q_="Ð",K_="ð",X_="Ë",Z_="ë",J_="€",eA="!",tA="∃",nA="∃",rA="ℰ",sA="ⅇ",iA="ⅇ",aA="≒",oA="Ф",uA="ф",cA="♀",lA="ffi",hA="ff",dA="ffl",fA="𝔉",pA="𝔣",mA="fi",gA="◼",EA="▪",bA="fj",TA="♭",_A="fl",AA="▱",CA="ƒ",kA="𝔽",xA="𝕗",vA="∀",SA="∀",yA="⋔",IA="⫙",NA="ℱ",DA="⨍",RA="½",LA="⅓",wA="¼",OA="⅕",MA="⅙",PA="⅛",FA="⅔",BA="⅖",HA="¾",UA="⅗",qA="⅜",$A="⅘",zA="⅚",YA="⅝",jA="⅞",VA="⁄",GA="⌢",WA="𝒻",QA="ℱ",KA="ǵ",XA="Γ",ZA="γ",JA="Ϝ",e2="ϝ",t2="⪆",n2="Ğ",r2="ğ",s2="Ģ",i2="Ĝ",a2="ĝ",o2="Г",u2="г",c2="Ġ",l2="ġ",h2="≥",d2="≧",f2="⪌",p2="⋛",m2="≥",g2="≧",E2="⩾",b2="⪩",T2="⩾",_2="⪀",A2="⪂",C2="⪄",k2="⋛︀",x2="⪔",v2="𝔊",S2="𝔤",y2="≫",I2="⋙",N2="⋙",D2="ℷ",R2="Ѓ",L2="ѓ",w2="⪥",O2="≷",M2="⪒",P2="⪤",F2="⪊",B2="⪊",H2="⪈",U2="≩",q2="⪈",$2="≩",z2="⋧",Y2="𝔾",j2="𝕘",V2="`",G2="≥",W2="⋛",Q2="≧",K2="⪢",X2="≷",Z2="⩾",J2="≳",eC="𝒢",tC="ℊ",nC="≳",rC="⪎",sC="⪐",iC="⪧",aC="⩺",oC=">",uC=">",cC="≫",lC="⋗",hC="⦕",dC="⩼",fC="⪆",pC="⥸",mC="⋗",gC="⋛",EC="⪌",bC="≷",TC="≳",_C="≩︀",AC="≩︀",CC="ˇ",kC=" ",xC="½",vC="ℋ",SC="Ъ",yC="ъ",IC="⥈",NC="↔",DC="⇔",RC="↭",LC="^",wC="ℏ",OC="Ĥ",MC="ĥ",PC="♥",FC="♥",BC="…",HC="⊹",UC="𝔥",qC="ℌ",$C="ℋ",zC="⤥",YC="⤦",jC="⇿",VC="∻",GC="↩",WC="↪",QC="𝕙",KC="ℍ",XC="―",ZC="─",JC="𝒽",ek="ℋ",tk="ℏ",nk="Ħ",rk="ħ",sk="≎",ik="≏",ak="⁃",ok="‐",uk="Í",ck="í",lk="⁣",hk="Î",dk="î",fk="И",pk="и",mk="İ",gk="Е",Ek="е",bk="¡",Tk="⇔",_k="𝔦",Ak="ℑ",Ck="Ì",kk="ì",xk="ⅈ",vk="⨌",Sk="∭",yk="⧜",Ik="℩",Nk="IJ",Dk="ij",Rk="Ī",Lk="ī",wk="ℑ",Ok="ⅈ",Mk="ℐ",Pk="ℑ",Fk="ı",Bk="ℑ",Hk="⊷",Uk="Ƶ",qk="⇒",$k="℅",zk="∞",Yk="⧝",jk="ı",Vk="⊺",Gk="∫",Wk="∬",Qk="ℤ",Kk="∫",Xk="⊺",Zk="⋂",Jk="⨗",ex="⨼",tx="⁣",nx="⁢",rx="Ё",sx="ё",ix="Į",ax="į",ox="𝕀",ux="𝕚",cx="Ι",lx="ι",hx="⨼",dx="¿",fx="𝒾",px="ℐ",mx="∈",gx="⋵",Ex="⋹",bx="⋴",Tx="⋳",_x="∈",Ax="⁢",Cx="Ĩ",kx="ĩ",xx="І",vx="і",Sx="Ï",yx="ï",Ix="Ĵ",Nx="ĵ",Dx="Й",Rx="й",Lx="𝔍",wx="𝔧",Ox="ȷ",Mx="𝕁",Px="𝕛",Fx="𝒥",Bx="𝒿",Hx="Ј",Ux="ј",qx="Є",$x="є",zx="Κ",Yx="κ",jx="ϰ",Vx="Ķ",Gx="ķ",Wx="К",Qx="к",Kx="𝔎",Xx="𝔨",Zx="ĸ",Jx="Х",ev="х",tv="Ќ",nv="ќ",rv="𝕂",sv="𝕜",iv="𝒦",av="𝓀",ov="⇚",uv="Ĺ",cv="ĺ",lv="⦴",hv="ℒ",dv="Λ",fv="λ",pv="⟨",mv="⟪",gv="⦑",Ev="⟨",bv="⪅",Tv="ℒ",_v="«",Av="⇤",Cv="⤟",kv="←",xv="↞",vv="⇐",Sv="⤝",yv="↩",Iv="↫",Nv="⤹",Dv="⥳",Rv="↢",Lv="⤙",wv="⤛",Ov="⪫",Mv="⪭",Pv="⪭︀",Fv="⤌",Bv="⤎",Hv="❲",Uv="{",qv="[",$v="⦋",zv="⦏",Yv="⦍",jv="Ľ",Vv="ľ",Gv="Ļ",Wv="ļ",Qv="⌈",Kv="{",Xv="Л",Zv="л",Jv="⤶",e3="“",t3="„",n3="⥧",r3="⥋",s3="↲",i3="≤",a3="≦",o3="⟨",u3="⇤",c3="←",l3="←",h3="⇐",d3="⇆",f3="↢",p3="⌈",m3="⟦",g3="⥡",E3="⥙",b3="⇃",T3="⌊",_3="↽",A3="↼",C3="⇇",k3="↔",x3
125="↔",v3="⇔",S3="⇆",y3="⇋",I3="↭",N3="⥎",D3="↤",R3="⊣",L3="⥚",w3="⋋",O3="⧏",M3="⊲",P3="⊴",F3="⥑",B3="⥠",H3="⥘",U3="↿",q3="⥒",$3="↼",z3="⪋",Y3="⋚",j3="≤",V3="≦",G3="⩽",W3="⪨",Q3="⩽",K3="⩿",X3="⪁",Z3="⪃",J3="⋚︀",eS="⪓",tS="⪅",nS="⋖",rS="⋚",sS="⪋",iS="⋚",aS="≦",oS="≶",uS="≶",cS="⪡",lS="≲",hS="⩽",dS="≲",fS="⥼",pS="⌊",mS="𝔏",gS="𝔩",ES="≶",bS="⪑",TS="⥢",_S="↽",AS="↼",CS="⥪",kS="▄",xS="Љ",vS="љ",SS="⇇",yS="≪",IS="⋘",NS="⌞",DS="⇚",RS="⥫",LS="◺",wS="Ŀ",OS="ŀ",MS="⎰",PS="⎰",FS="⪉",BS="⪉",HS="⪇",US="≨",qS="⪇",$S="≨",zS="⋦",YS="⟬",jS="⇽",VS="⟦",GS="⟵",WS="⟵",QS="⟸",KS="⟷",XS="⟷",ZS="⟺",JS="⟼",ey="⟶",ty="⟶",ny="⟹",ry="↫",sy="↬",iy="⦅",ay="𝕃",oy="𝕝",uy="⨭",cy="⨴",ly="∗",hy="_",dy="↙",fy="↘",py="◊",my="◊",gy="⧫",Ey="(",by="⦓",Ty="⇆",_y="⌟",Ay="⇋",Cy="⥭",ky="‎",xy="⊿",vy="‹",Sy="𝓁",yy="ℒ",Iy="↰",Ny="↰",Dy="≲",Ry="⪍",Ly="⪏",wy="[",Oy="‘",My="‚",Py="Ł",Fy="ł",By="⪦",Hy="⩹",Uy="<",qy="<",$y="≪",zy="⋖",Yy="⋋",jy="⋉",Vy="⥶",Gy="⩻",Wy="◃",Qy="⊴",Ky="◂",Xy="⦖",Zy="⥊",Jy="⥦",eI="≨︀",tI="≨︀",nI="¯",rI="♂",sI="✠",iI="✠",aI="↦",oI="↦",uI="↧",cI="↤",lI="↥",hI="▮",dI="⨩",fI="М",pI="м",mI="—",gI="∺",EI="∡",bI=" ",TI="ℳ",_I="𝔐",AI="𝔪",CI="℧",kI="µ",xI="*",vI="⫰",SI="∣",yI="·",II="⊟",NI="−",DI="∸",RI="⨪",LI="∓",wI="⫛",OI="…",MI="∓",PI="⊧",FI="𝕄",BI="𝕞",HI="∓",UI="𝓂",qI="ℳ",$I="∾",zI="Μ",YI="μ",jI="⊸",VI="⊸",GI="∇",WI="Ń",QI="ń",KI="∠⃒",XI="≉",ZI="⩰̸",JI="≋̸",eN="ʼn",tN="≉",nN="♮",rN="ℕ",sN="♮",iN=" ",aN="≎̸",oN="≏̸",uN="⩃",cN="Ň",lN="ň",hN="Ņ",dN="ņ",fN="≇",pN="⩭̸",mN="⩂",gN="Н",EN="н",bN="–",TN="⤤",_N="↗",AN="⇗",CN="↗",kN="≠",xN="≐̸",vN="​",SN="​",yN="​",IN="​",NN="≢",DN="⤨",RN="≂̸",LN="≫",wN="≪",ON=`
126`,MN="∄",PN="∄",FN="𝔑",BN="𝔫",HN="≧̸",UN="≱",qN="≱",$N="≧̸",zN="⩾̸",YN="⩾̸",jN="⋙̸",VN="≵",GN="≫⃒",WN="≯",QN="≯",KN="≫̸",XN="↮",ZN="⇎",JN="⫲",e6="∋",t6="⋼",n6="⋺",r6="∋",s6="Њ",i6="њ",a6="↚",o6="⇍",u6="‥",c6="≦̸",l6="≰",h6="↚",d6="⇍",f6="↮",p6="⇎",m6="≰",g6="≦̸",E6="⩽̸",b6="⩽̸",T6="≮",_6="⋘̸",A6="≴",C6="≪⃒",k6="≮",x6="⋪",v6="⋬",S6="≪̸",y6="∤",I6="⁠",N6=" ",D6="𝕟",R6="ℕ",L6="⫬",w6="¬",O6="≢",M6="≭",P6="∦",F6="∉",B6="≠",H6="≂̸",U6="∄",q6="≯",$6="≱",z6="≧̸",Y6="≫̸",j6="≹",V6="⩾̸",G6="≵",W6="≎̸",Q6="≏̸",K6="∉",X6="⋵̸",Z6="⋹̸",J6="∉",eD="⋷",tD="⋶",nD="⧏̸",rD="⋪",sD="⋬",iD="≮",aD="≰",oD="≸",uD="≪̸",cD="⩽̸",lD="≴",hD="⪢̸",dD="⪡̸",fD="∌",pD="∌",mD="⋾",gD="⋽",ED="⊀",bD="⪯̸",TD="⋠",_D="∌",AD="⧐̸",CD="⋫",kD="⋭",xD="⊏̸",vD="⋢",SD="⊐̸",yD="⋣",ID="⊂⃒",ND="⊈",DD="⊁",RD="⪰̸",LD="⋡",wD="≿̸",OD="⊃⃒",MD="⊉",PD="≁",FD="≄",BD="≇",HD="≉",UD="∤",qD="∦",$D="∦",zD="⫽⃥",YD="∂̸",jD="⨔",VD="⊀",GD="⋠",WD="⊀",QD="⪯̸",KD="⪯̸",XD="⤳̸",ZD="↛",JD="⇏",eR="↝̸",tR="↛",nR="⇏",rR="⋫",sR="⋭",iR="⊁",aR="⋡",oR="⪰̸",uR="𝒩",cR="𝓃",lR="∤",hR="∦",dR="≁",fR="≄",pR="≄",mR="∤",gR="∦",ER="⋢",bR="⋣",TR="⊄",_R="⫅̸",AR="⊈",CR="⊂⃒",kR="⊈",xR="⫅̸",vR="⊁",SR="⪰̸",yR="⊅",IR="⫆̸",NR="⊉",DR="⊃⃒",RR="⊉",LR="⫆̸",wR="≹",OR="Ñ",MR="ñ",PR="≸",FR="⋪",BR="⋬",HR="⋫",UR="⋭",qR="Ν",$R="ν",zR="#",YR="№",jR=" ",VR="≍⃒",GR="⊬",WR="⊭",QR="⊮",KR="⊯",XR="≥⃒",ZR=">⃒",JR="⤄",eL="⧞",tL="⤂",nL="≤⃒",rL="<⃒",sL="⊴⃒",iL="⤃",aL="⊵⃒",oL="∼⃒",uL="⤣",cL="↖",lL="⇖",hL="↖",dL="⤧",fL="Ó",pL="ó",mL="⊛",gL="Ô",EL="ô",bL="⊚",TL="О",_L="о",AL="⊝",CL="Ő",kL="ő",xL="⨸",vL="⊙",SL="⦼",yL="Œ",IL="œ",NL="⦿",DL="𝔒",RL="𝔬",LL="˛",wL="Ò",OL="ò",ML="⧁",PL="⦵",FL="Ω",BL="∮",HL="↺",UL="⦾",qL="⦻",$L="‾",zL="⧀",YL="Ō",jL="ō",VL="Ω",GL="ω",WL="Ο",QL="ο",KL="⦶",XL="⊖",ZL="𝕆",JL="𝕠",ew="⦷",tw="“",nw="‘",rw="⦹",sw="⊕",iw="↻",aw="⩔",ow="∨",uw="⩝",cw="ℴ",lw="ℴ",hw="ª",dw="º",fw="⊶",pw="⩖",mw="⩗",gw="⩛",Ew="Ⓢ",bw="𝒪",Tw="ℴ",_w="Ø",Aw="ø",Cw="⊘",kw="Õ",xw="õ",vw="⨶",Sw="⨷",yw="⊗",Iw="Ö",Nw="ö",Dw="⌽",Rw="‾",Lw="⏞",ww="⎴",Ow="⏜",Mw="¶",Pw="∥",Fw="∥",Bw="⫳",Hw="⫽",Uw="∂",qw="∂",$w="П",zw="п",Yw="%",jw=".",Vw="‰",Gw="⊥",Ww="‱",Qw="𝔓",Kw="𝔭",Xw="Φ",Zw="φ",Jw="ϕ",eO="ℳ",tO="☎",nO="Π",rO="π",sO="⋔",iO="ϖ",aO="ℏ",oO="ℎ",uO="ℏ",cO="⨣",lO="⊞",hO="⨢",dO="+",fO="∔",pO="⨥",mO="⩲",gO="±",EO="±",bO="⨦",TO="⨧",_O="±",AO="ℌ",CO="⨕",kO="𝕡",xO="ℙ",vO="£",SO="⪷",yO="⪻",IO="≺",NO="≼",DO="⪷",RO="≺",LO="≼",wO="≺",OO="⪯",MO="≼",PO="≾",FO="⪯",BO="⪹",HO="⪵",UO="⋨",qO="⪯",$O="⪳",zO="≾",YO="′",jO="″",VO="ℙ",GO="⪹",WO="⪵",QO="⋨",KO="∏",XO="∏",ZO="⌮",JO="⌒",e4="⌓",t4="∝",n4="∝",r4="∷",s4="∝",i4="≾",a4="⊰",o4="𝒫",u4="𝓅",c4="Ψ",l4="ψ",h4=" ",d4="𝔔",f4="𝔮",p4="⨌",m4="𝕢",g4="ℚ",E4="⁗",b4="𝒬",T4="𝓆",_4="ℍ",A4="⨖",C4="?",k4="≟",x4='"',v4='"',S4="⇛",y4="∽̱",I4="Ŕ",N4="ŕ",D4="√",R4="⦳",L4="⟩",w4="⟫",O4="⦒",M4="⦥",P4="⟩",F4="»",B4="⥵",H4="⇥",U4="⤠",q4="⤳",$4="→",z4="↠",Y4="⇒",j4="⤞",V4="↪",G4="↬",W4="⥅",Q4="⥴",K4="⤖",X4="↣",Z4="↝",J4="⤚",e8="⤜",t8="∶",n8="ℚ",r8="⤍",s8="⤏",i8="â¤
126",a8="❳",o8="}",u8="]",c8="⦌",l8="⦎",h8="⦐",d8="Ř",f8="ř",p8="Ŗ",m8="ŗ",g8="⌉",E8="}",b8="Р",T8="р",_8="⤷",A8="⥩",C8="”",k8="”",x8="↳",v8="ℜ",S8="ℛ",y8="ℜ",I8="ℝ",N8="ℜ",D8="▭",R8="®",L8="®",w8="∋",O8="⇋",M8="⥯",P8="⥽",F8="⌋",B8="𝔯",H8="ℜ",U8="⥤",q8="⇁",$8="⇀",z8="⥬",Y8="Ρ",j8="ρ",V8="ϱ",G8="⟩",W8="⇥",Q8="→",K8="→",X8="⇒",Z8="⇄",J8="↣",e5="⌉",t5="⟧",n5="⥝",r5="⥕",s5="⇂",i5="⌋",a5="⇁",o5="⇀",u5="⇄",c5="⇌",l5="⇉",h5="↝",d5="↦",f5="⊢",p5="⥛",m5="⋌",g5="⧐",E5="⊳",b5="⊵",T5="⥏",_5="⥜",A5="⥔",C5="↾",k5="⥓",x5="⇀",v5="˚",S5="≓",y5="⇄",I5="⇌",N5="‏",D5="⎱",R5="⎱",L5="â«®",w5="⟭",O5="⇾",M5="⟧",P5="⦆",F5="𝕣",B5="ℝ",H5="⨮",U5="⨵",q5="⥰",$5=")",z5="⦔",Y5="⨒",j5="⇉",V5="⇛",G5="›",W5="𝓇",Q5="ℛ",K5="↱",X5="↱",Z5="]",J5="’",eM="’",tM="⋌",nM="⋊",rM="▹",sM="⊵",iM="▸",aM="⧎",oM="â§´",uM="⥨",cM="℞",lM="Ś",hM="ś",dM="‚",fM="⪸",pM="Å ",mM="Å¡",gM="⪼",EM="≻",bM="≽",TM="⪰",_M="⪴",AM="Ş",CM="ş",kM="Ŝ",xM="ŝ",vM="⪺",SM="⪶",yM="⋩",IM="⨓",NM="≿",DM="С",RM="с",LM="⊡",wM="⋅",OM="⩦",MM="⤥",PM="↘",FM="⇘",BM="↘",HM="§",UM=";",qM="⤩",$M="∖",zM="∖",YM="✶",jM="𝔖",VM="𝔰",GM="⌢",WM="♯",QM="Щ",KM="щ",XM="Ш",ZM="ш",JM="↓",eP="←",tP="∣",nP="∥",rP="→",sP="↑",iP="­",aP="Σ",oP="σ",uP="ς",cP="ς",lP="∼",hP="⩪",dP="≃",fP="≃",pP="⪞",mP="⪠",gP="⪝",EP="⪟",bP="≆",TP="⨤",_P="⥲",AP="←",CP="∘",kP="∖",xP="⨳",vP="⧤",SP="∣",yP="⌣",IP="⪪",NP="⪬",DP="⪬︀",RP="Ь",LP="ь",wP="⌿",OP="⧄",MP="/",PP="𝕊",FP="𝕤",BP="♠",HP="♠",UP="∥",qP="⊓",$P="⊓︀",zP="⊔",YP="⊔︀",jP="√",VP="⊏",GP="⊑",WP="⊏",QP="⊑",KP="⊐",XP="⊒",ZP="⊐",JP="⊒",eF="□",tF="□",nF="⊓",rF="⊏",sF="⊑",iF="⊐",aF="⊒",oF="⊔",uF="▪",cF="□",lF="▪",hF="→",dF="𝒮",fF="𝓈",pF="∖",mF="⌣",gF="⋆",EF="⋆",bF="☆",TF="★",_F="ϵ",AF="ϕ",CF="¯",kF="⊂",xF="⋐",vF="⪽",SF="⫅",yF="⊆",IF="⫃",NF="⫁",DF="⫋",RF="⊊",LF="⪿",wF="⥹",OF="⊂",MF="⋐",PF="⊆",FF="⫅",BF="⊆",HF="⊊",UF="⫋",qF="⫇",$F="⫕",zF="⫓",YF="⪸",jF="≻",VF="≽",GF="≻",WF="⪰",QF="≽",KF="≿",XF="⪰",ZF="⪺",JF="⪶",e9="⋩",t9="≿",n9="∋",r9="∑",s9="∑",i9="♪",a9="¹",o9="²",u9="³",c9="⊃",l9="⋑",h9="⪾",d9="⫘",f9="⫆",p9="⊇",m9="⫄",g9="⊃",E9="⊇",b9="⟉",T9="⫗",_9="⥻",A9="⫂",C9="⫌",k9="⊋",x9="⫀",v9="⊃",S9="⋑",y9="⊇",I9="⫆",N9="⊋",D9="⫌",R9="⫈",L9="⫔",w9="⫖",O9="⤦",M9="↙",P9="⇙",F9="↙",B9="⤪",H9="ß",U9="	",q9="⌖",$9="Τ",z9="τ",Y9="⎴",j9="Ť",V9="Å¥",G9="Å¢",W9="Å£",Q9="Т",K9="т",X9="⃛",Z9="⌕",J9="𝔗",eB="𝔱",tB="∴",nB="∴",rB="∴",sB="Θ",iB="θ",aB="ϑ",oB="ϑ",uB="≈",cB="∼",lB="  ",hB=" ",dB=" ",fB="≈",pB="∼",mB="Þ",gB="þ",EB="˜",bB="∼",TB="≃",_B="≅",AB="≈",CB="⨱",kB="⊠",xB="×",vB="⨰",SB="∭",yB="⤨",IB="⌶",NB="⫱",DB="⊤",RB="𝕋",LB="𝕥",wB="⫚",OB="⤩",MB="‴",PB="™",FB="™",BB="▵",HB="▿",UB="◃",qB="⊴",$B="≜",zB="▹",YB="⊵",jB="◬",VB="≜",GB="⨺",WB="⃛",QB="⨹",KB="⧍",XB="⨻",ZB="⏢",JB="𝒯",e7="𝓉",t7="Ц",n7="ц",r7="Ћ",s7="ћ",i7="Ŧ",a7="ŧ",o7="≬",u7="↞",c7="↠",l7="Ú",h7="ú",d7="↑",f7="↟",p7="⇑",m7="⥉",g7="Ў",E7="ў",b7="Ŭ",T7="Å­",_7="Û",A7="û",C7="У",k7="у",x7="⇅",v7="Ű",S7="ű",y7="⥮",I7="⥾",N7="𝔘",D7="𝔲",R7="Ù",L7="ù",w7="⥣",O7="↿",M7="↾",P7="▀",F7="⌜",B7="⌜",H7="⌏",U7="◸",q7="Ū",$7="Å«",z7="¨",Y7="_",j7="⏟",V7="⎵",G7="⏝",W7="⋃",Q7="⊎",K7="Ų",X7="ų",Z7="𝕌",J7="𝕦",eH="⤒",tH="↑",nH="↑",rH="⇑",sH="⇅",iH="↕",aH="↕",oH="⇕",uH="⥮",cH="↿",lH="↾",hH="⊎",dH="↖",fH="↗",pH="υ",mH="ϒ",gH="ϒ",EH="Î¥",bH="υ",TH="↥",_H="⊥",AH="⇈",CH="⌝",kH="⌝",xH="⌎",vH="Å®",SH="ů",yH="◹",IH="𝒰",NH="𝓊",DH="⋰",RH="Ũ",LH="Å©",wH="▵",OH="▴",MH="⇈",PH="Ü",FH="ü",BH="⦧",HH="⦜",UH="ϵ",qH="ϰ",$H="∅",zH="ϕ",YH="ϖ",jH="∝",VH="↕",GH="⇕",WH="ϱ",QH="ς",KH="⊊︀",XH="⫋︀",ZH="⊋︀",JH="⫌︀",eU="ϑ",tU="⊲",nU="⊳",rU="⫨",sU="â««",iU="â«©",aU="В",oU="в",uU="⊢",cU="⊨",lU="⊩",hU="⊫",dU="⫦",fU="⊻",pU="∨",mU="⋁",gU="≚",EU="⋮",bU="|",TU="‖",_U="|",AU="‖",CU="∣",kU="|",xU="❘",vU="≀",SU=" ",yU="𝔙",IU="𝔳",NU="⊲",DU="⊂⃒",RU="⊃⃒",LU="𝕍",wU="𝕧",O
126U="∝",MU="⊳",PU="𝒱",FU="𝓋",BU="⫋︀",HU="⊊︀",UU="⫌︀",qU="⊋︀",$U="⊪",zU="⦚",YU="Ŵ",jU="ŵ",VU="⩟",GU="∧",WU="⋀",QU="≙",KU="℘",XU="𝔚",ZU="𝔴",JU="𝕎",eq="𝕨",tq="℘",nq="≀",rq="≀",sq="𝒲",iq="𝓌",aq="⋂",oq="◯",uq="⋃",cq="▽",lq="𝔛",hq="𝔵",dq="⟷",fq="⟺",pq="Ξ",mq="ξ",gq="⟵",Eq="⟸",bq="⟼",Tq="⋻",_q="⨀",Aq="𝕏",Cq="𝕩",kq="⨁",xq="⨂",vq="⟶",Sq="⟹",yq="𝒳",Iq="𝓍",Nq="⨆",Dq="⨄",Rq="△",Lq="⋁",wq="⋀",Oq="Ý",Mq="ý",Pq="Я",Fq="я",Bq="Ŷ",Hq="ŷ",Uq="Ы",qq="ы",$q="¥",zq="𝔜",Yq="𝔶",jq="Ї",Vq="ї",Gq="𝕐",Wq="𝕪",Qq="𝒴",Kq="𝓎",Xq="Ю",Zq="ю",Jq="ÿ",e$="Ÿ",t$="Ź",n$="ź",r$="Ž",s$="ž",i$="З",a$="з",o$="Ż",u$="ż",c$="ℨ",l$="​",h$="Ζ",d$="ζ",f$="𝔷",p$="ℨ",m$="Ж",g$="ж",E$="⇝",b$="𝕫",T$="ℤ",_$="𝒵",A$="𝓏",C$="‍",k$="‌",x$={Aacute:of,aacute:uf,Abreve:cf,abreve:lf,ac:hf,acd:df,acE:ff,Acirc:pf,acirc:mf,acute:gf,Acy:Ef,acy:bf,AElig:Tf,aelig:_f,af:Af,Afr:Cf,afr:kf,Agrave:xf,agrave:vf,alefsym:Sf,aleph:yf,Alpha:If,alpha:Nf,Amacr:Df,amacr:Rf,amalg:Lf,amp:wf,AMP:Of,andand:Mf,And:Pf,and:Ff,andd:Bf,andslope:Hf,andv:Uf,ang:qf,ange:$f,angle:zf,angmsdaa:Yf,angmsdab:jf,angmsdac:Vf,angmsdad:Gf,angmsdae:Wf,angmsdaf:Qf,angmsdag:Kf,angmsdah:Xf,angmsd:Zf,angrt:Jf,angrtvb:e0,angrtvbd:t0,angsph:n0,angst:r0,angzarr:s0,Aogon:i0,aogon:a0,Aopf:o0,aopf:u0,apacir:c0,ap:l0,apE:h0,ape:d0,apid:f0,apos:p0,ApplyFunction:m0,approx:g0,approxeq:E0,Aring:b0,aring:T0,Ascr:_0,ascr:A0,Assign:C0,ast:k0,asymp:x0,asympeq:v0,Atilde:S0,atilde:y0,Auml:I0,auml:N0,awconint:D0,awint:R0,backcong:L0,backepsilon:w0,backprime:O0,backsim:M0,backsimeq:P0,Backslash:F0,Barv:B0,barvee:H0,barwed:U0,Barwed:q0,barwedge:$0,bbrk:z0,bbrktbrk:Y0,bcong:j0,Bcy:V0,bcy:G0,bdquo:W0,becaus:Q0,because:K0,Because:X0,bemptyv:Z0,bepsi:J0,bernou:ep,Bernoullis:tp,Beta:np,beta:rp,beth:sp,between:ip,Bfr:ap,bfr:op,bigcap:up,bigcirc:cp,bigcup:lp,bigodot:hp,bigoplus:dp,bigotimes:fp,bigsqcup:pp,bigstar:mp,bigtriangledown:gp,bigtriangleup:Ep,biguplus:bp,bigvee:Tp,bigwedge:_p,bkarow:Ap,blacklozenge:Cp,blacksquare:kp,blacktriangle:xp,blacktriangledown:vp,blacktriangleleft:Sp,blacktriangleright:yp,blank:Ip,blk12:Np,blk14:Dp,blk34:Rp,block:Lp,bne:wp,bnequiv:Op,bNot:Mp,bnot:Pp,Bopf:Fp,bopf:Bp,bot:Hp,bottom:Up,bowtie:qp,boxbox:$p,boxdl:zp,boxdL:Yp,boxDl:jp,boxDL:Vp,boxdr:Gp,boxdR:Wp,boxDr:Qp,boxDR:Kp,boxh:Xp,boxH:Zp,boxhd:Jp,boxHd:em,boxhD:tm,boxHD:nm,boxhu:rm,boxHu:sm,boxhU:im,boxHU:am,boxminus:om,boxplus:um,boxtimes:cm,boxul:lm,boxuL:hm,boxUl:dm,boxUL:fm,boxur:pm,boxuR:mm,boxUr:gm,boxUR:Em,boxv:bm,boxV:Tm,boxvh:_m,boxvH:Am,boxVh:Cm,boxVH:km,boxvl:xm,boxvL:vm,boxVl:Sm,boxVL:ym,boxvr:Im,boxvR:Nm,boxVr:Dm,boxVR:Rm,bprime:Lm,breve:wm,Breve:Om,brvbar:Mm,bscr:Pm,Bscr:Fm,bsemi:Bm,bsim:Hm,bsime:Um,bsolb:qm,bsol:$m,bsolhsub:zm,bull:Ym,bullet:jm,bump:Vm,bumpE:Gm,bumpe:Wm,Bumpeq:Qm,bumpeq:Km,Cacute:Xm,cacute:Zm,capand:Jm,capbrcup:eg,capcap:tg,cap:ng,Cap:rg,capcup:sg,capdot:ig,CapitalDifferentialD:ag,caps:og,caret:ug,caron:cg,Cayleys:lg,ccaps:hg,Ccaron:dg,ccaron:fg,Ccedil:pg,ccedil:mg,Ccirc:gg,ccirc:Eg,Cconint:bg,ccups:Tg,ccupssm:_g,Cdot:Ag,cdot:Cg,cedil:kg,Cedilla:xg,cemptyv:vg,cent:Sg,centerdot:yg,CenterDot:Ig,cfr:Ng,Cfr:Dg,CHcy:Rg,chcy:Lg,check:wg,checkmark:Og,Chi:Mg,chi:Pg,circ:Fg,circeq:Bg,circlearrowleft:Hg,circlearrowright:Ug,circledast:qg,circledcirc:$g,circleddash:zg,CircleDot:Yg,circledR:jg,circledS:Vg,CircleMinus:Gg,CirclePlus:Wg,CircleTimes:Qg,cir:Kg,cirE:Xg,cire:Zg,cirfnint:Jg,cirmid:eE,cirscir:tE,ClockwiseContourIntegral:nE,CloseCurlyDoubleQuote:rE,CloseCurlyQuote:sE,clubs:iE,clubsuit:aE,colon:oE,Colon:uE,Colone:cE,colone:lE,coloneq:hE,comma:dE,commat:fE,comp:pE,compfn:mE,complement:gE,complexes:EE,cong:bE,congdot:TE,Congruent:_E,conint:AE,Conint:CE,ContourIntegral:kE,copf:xE,Copf:vE,coprod:SE,Coproduct:yE,copy:IE,COPY:NE,copysr:DE,CounterClockwiseContourIntegral:RE,crarr:LE,cross:wE,Cross:OE,Cscr:ME,cscr:PE,csub:FE,csube:BE,csup:HE,csupe:UE,ctdot:qE,cudarrl:$E,cudarrr:zE,cuepr:YE,cuesc:jE,cularr:VE,cularrp:GE,cupbrcap:WE,cupcap:QE,CupCap:KE,cup:XE,Cup:ZE,cupcup:JE,cupdot:e1,cupor:t1,cups:n1,curarr:r1,curarrm:s1,curlyeqprec:i1,curlyeqsucc:a1,curlyvee:o1,curlywedge:u1,curren:c1,curvearrowleft:l1,curvearrowright:h1,cuvee:d1,cuwed:f1,cwconint:p1,cwint:m1,cylcty:g1,dagger:E1,Dagger:b1,daleth:T1,darr:_1,Darr:A1,dArr:C1,dash:k1,Dashv:x1,dashv:v1,dbkarow:S1,dblac:y1,Dcaron:I1,dcaron:N1,Dcy:D1,dcy:R1,ddagger:L1,ddarr:w1,DD:O1,dd:M1,DDotrahd:P1,ddotseq:F1,deg:B1,Del:H1,Delta:U1,delta:q1,demptyv:$1,dfisht:z1,Dfr:Y1,dfr:j1,dHar:V1,dharl:G1,dharr:W1,DiacriticalAcute:Q1,DiacriticalDot:K1,DiacriticalDoubleAcute:X1,DiacriticalGrave:Z1,DiacriticalTilde:J1,diam:eb,diamond:tb,Diamond:nb,diamondsuit:rb,diams:sb,die:ib,DifferentialD:ab,digamma:ob,disin:ub,div:cb,divide:lb,divideontimes:hb,divonx:db,DJcy:fb,djcy:
126pb,dlcorn:mb,dlcrop:gb,dollar:Eb,Dopf:bb,dopf:Tb,Dot:_b,dot:Ab,DotDot:Cb,doteq:kb,doteqdot:xb,DotEqual:vb,dotminus:Sb,dotplus:yb,dotsquare:Ib,doublebarwedge:Nb,DoubleContourIntegral:Db,DoubleDot:Rb,DoubleDownArrow:Lb,DoubleLeftArrow:wb,DoubleLeftRightArrow:Ob,DoubleLeftTee:Mb,DoubleLongLeftArrow:Pb,DoubleLongLeftRightArrow:Fb,DoubleLongRightArrow:Bb,DoubleRightArrow:Hb,DoubleRightTee:Ub,DoubleUpArrow:qb,DoubleUpDownArrow:$b,DoubleVerticalBar:zb,DownArrowBar:Yb,downarrow:jb,DownArrow:Vb,Downarrow:Gb,DownArrowUpArrow:Wb,DownBreve:Qb,downdownarrows:Kb,downharpoonleft:Xb,downharpoonright:Zb,DownLeftRightVector:Jb,DownLeftTeeVector:eT,DownLeftVectorBar:tT,DownLeftVector:nT,DownRightTeeVector:rT,DownRightVectorBar:sT,DownRightVector:iT,DownTeeArrow:aT,DownTee:oT,drbkarow:uT,drcorn:cT,drcrop:lT,Dscr:hT,dscr:dT,DScy:fT,dscy:pT,dsol:mT,Dstrok:gT,dstrok:ET,dtdot:bT,dtri:TT,dtrif:_T,duarr:AT,duhar:CT,dwangle:kT,DZcy:xT,dzcy:vT,dzigrarr:ST,Eacute:yT,eacute:IT,easter:NT,Ecaron:DT,ecaron:RT,Ecirc:LT,ecirc:wT,ecir:OT,ecolon:MT,Ecy:PT,ecy:FT,eDDot:BT,Edot:HT,edot:UT,eDot:qT,ee:$T,efDot:zT,Efr:YT,efr:jT,eg:VT,Egrave:GT,egrave:WT,egs:QT,egsdot:KT,el:XT,Element:ZT,elinters:JT,ell:e_,els:t_,elsdot:n_,Emacr:r_,emacr:s_,empty:i_,emptyset:a_,EmptySmallSquare:o_,emptyv:u_,EmptyVerySmallSquare:c_,emsp13:l_,emsp14:h_,emsp:d_,ENG:f_,eng:p_,ensp:m_,Eogon:g_,eogon:E_,Eopf:b_,eopf:T_,epar:__,eparsl:A_,eplus:C_,epsi:k_,Epsilon:x_,epsilon:v_,epsiv:S_,eqcirc:y_,eqcolon:I_,eqsim:N_,eqslantgtr:D_,eqslantless:R_,Equal:L_,equals:w_,EqualTilde:O_,equest:M_,Equilibrium:P_,equiv:F_,equivDD:B_,eqvparsl:H_,erarr:U_,erDot:q_,escr:$_,Escr:z_,esdot:Y_,Esim:j_,esim:V_,Eta:G_,eta:W_,ETH:Q_,eth:K_,Euml:X_,euml:Z_,euro:J_,excl:eA,exist:tA,Exists:nA,expectation:rA,exponentiale:sA,ExponentialE:iA,fallingdotseq:aA,Fcy:oA,fcy:uA,female:cA,ffilig:lA,fflig:hA,ffllig:dA,Ffr:fA,ffr:pA,filig:mA,FilledSmallSquare:gA,FilledVerySmallSquare:EA,fjlig:bA,flat:TA,fllig:_A,fltns:AA,fnof:CA,Fopf:kA,fopf:xA,forall:vA,ForAll:SA,fork:yA,forkv:IA,Fouriertrf:NA,fpartint:DA,frac12:RA,frac13:LA,frac14:wA,frac15:OA,frac16:MA,frac18:PA,frac23:FA,frac25:BA,frac34:HA,frac35:UA,frac38:qA,frac45:$A,frac56:zA,frac58:YA,frac78:jA,frasl:VA,frown:GA,fscr:WA,Fscr:QA,gacute:KA,Gamma:XA,gamma:ZA,Gammad:JA,gammad:e2,gap:t2,Gbreve:n2,gbreve:r2,Gcedil:s2,Gcirc:i2,gcirc:a2,Gcy:o2,gcy:u2,Gdot:c2,gdot:l2,ge:h2,gE:d2,gEl:f2,gel:p2,geq:m2,geqq:g2,geqslant:E2,gescc:b2,ges:T2,gesdot:_2,gesdoto:A2,gesdotol:C2,gesl:k2,gesles:x2,Gfr:v2,gfr:S2,gg:y2,Gg:I2,ggg:N2,gimel:D2,GJcy:R2,gjcy:L2,gla:w2,gl:O2,glE:M2,glj:P2,gnap:F2,gnapprox:B2,gne:H2,gnE:U2,gneq:q2,gneqq:$2,gnsim:z2,Gopf:Y2,gopf:j2,grave:V2,GreaterEqual:G2,GreaterEqualLess:W2,GreaterFullEqual:Q2,GreaterGreater:K2,GreaterLess:X2,GreaterSlantEqual:Z2,GreaterTilde:J2,Gscr:eC,gscr:tC,gsim:nC,gsime:rC,gsiml:sC,gtcc:iC,gtcir:aC,gt:oC,GT:uC,Gt:cC,gtdot:lC,gtlPar:hC,gtquest:dC,gtrapprox:fC,gtrarr:pC,gtrdot:mC,gtreqless:gC,gtreqqless:EC,gtrless:bC,gtrsim:TC,gvertneqq:_C,gvnE:AC,Hacek:CC,hairsp:kC,half:xC,hamilt:vC,HARDcy:SC,hardcy:yC,harrcir:IC,harr:NC,hArr:DC,harrw:RC,Hat:LC,hbar:wC,Hcirc:OC,hcirc:MC,hearts:PC,heartsuit:FC,hellip:BC,hercon:HC,hfr:UC,Hfr:qC,HilbertSpace:$C,hksearow:zC,hkswarow:YC,hoarr:jC,homtht:VC,hookleftarrow:GC,hookrightarrow:WC,hopf:QC,Hopf:KC,horbar:XC,HorizontalLine:ZC,hscr:JC,Hscr:ek,hslash:tk,Hstrok:nk,hstrok:rk,HumpDownHump:sk,HumpEqual:ik,hybull:ak,hyphen:ok,Iacute:uk,iacute:ck,ic:lk,Icirc:hk,icirc:dk,Icy:fk,icy:pk,Idot:mk,IEcy:gk,iecy:Ek,iexcl:bk,iff:Tk,ifr:_k,Ifr:Ak,Igrave:Ck,igrave:kk,ii:xk,iiiint:vk,iiint:Sk,iinfin:yk,iiota:Ik,IJlig:Nk,ijlig:Dk,Imacr:Rk,imacr:Lk,image:wk,ImaginaryI:Ok,imagline:Mk,imagpart:Pk,imath:Fk,Im:Bk,imof:Hk,imped:Uk,Implies:qk,incare:$k,in:"∈",infin:zk,infintie:Yk,inodot:jk,intcal:Vk,int:Gk,Int:Wk,integers:Qk,Integral:Kk,intercal:Xk,Intersection:Zk,intlarhk:Jk,intprod:ex,InvisibleComma:tx,InvisibleTimes:nx,IOcy:rx,iocy:sx,Iogon:ix,iogon:ax,Iopf:ox,iopf:ux,Iota:cx,iota:lx,iprod:hx,iquest:dx,iscr:fx,Iscr:px,isin:mx,isindot:gx,isinE:Ex,isins:bx,isinsv:Tx,isinv:_x,it:Ax,Itilde:Cx,itilde:kx,Iukcy:xx,iukcy:vx,Iuml:Sx,iuml:yx,Jcirc:Ix,jcirc:Nx,Jcy:Dx,jcy:Rx,Jfr:Lx,jfr:wx,jmath:Ox,Jopf:Mx,jopf:Px,Jscr:Fx,jscr:Bx,Jsercy:Hx,jsercy:Ux,Jukcy:qx,jukcy:$x,Kappa:zx,kappa:Yx,kappav:jx,Kcedil
126:Vx,kcedil:Gx,Kcy:Wx,kcy:Qx,Kfr:Kx,kfr:Xx,kgreen:Zx,KHcy:Jx,khcy:ev,KJcy:tv,kjcy:nv,Kopf:rv,kopf:sv,Kscr:iv,kscr:av,lAarr:ov,Lacute:uv,lacute:cv,laemptyv:lv,lagran:hv,Lambda:dv,lambda:fv,lang:pv,Lang:mv,langd:gv,langle:Ev,lap:bv,Laplacetrf:Tv,laquo:_v,larrb:Av,larrbfs:Cv,larr:kv,Larr:xv,lArr:vv,larrfs:Sv,larrhk:yv,larrlp:Iv,larrpl:Nv,larrsim:Dv,larrtl:Rv,latail:Lv,lAtail:wv,lat:Ov,late:Mv,lates:Pv,lbarr:Fv,lBarr:Bv,lbbrk:Hv,lbrace:Uv,lbrack:qv,lbrke:$v,lbrksld:zv,lbrkslu:Yv,Lcaron:jv,lcaron:Vv,Lcedil:Gv,lcedil:Wv,lceil:Qv,lcub:Kv,Lcy:Xv,lcy:Zv,ldca:Jv,ldquo:e3,ldquor:t3,ldrdhar:n3,ldrushar:r3,ldsh:s3,le:i3,lE:a3,LeftAngleBracket:o3,LeftArrowBar:u3,leftarrow:c3,LeftArrow:l3,Leftarrow:h3,LeftArrowRightArrow:d3,leftarrowtail:f3,LeftCeiling:p3,LeftDoubleBracket:m3,LeftDownTeeVector:g3,LeftDownVectorBar:E3,LeftDownVector:b3,LeftFloor:T3,leftharpoondown:_3,leftharpoonup:A3,leftleftarrows:C3,leftrightarrow:k3,LeftRightArrow:x3,Leftrightarrow:v3,leftrightarrows:S3,leftrightharpoons:y3,leftrightsquigarrow:I3,LeftRightVector:N3,LeftTeeArrow:D3,LeftTee:R3,LeftTeeVector:L3,leftthreetimes:w3,LeftTriangleBar:O3,LeftTriangle:M3,LeftTriangleEqual:P3,LeftUpDownVector:F3,LeftUpTeeVector:B3,LeftUpVectorBar:H3,LeftUpVector:U3,LeftVectorBar:q3,LeftVector:$3,lEg:z3,leg:Y3,leq:j3,leqq:V3,leqslant:G3,lescc:W3,les:Q3,lesdot:K3,lesdoto:X3,lesdotor:Z3,lesg:J3,lesges:eS,lessapprox:tS,lessdot:nS,lesseqgtr:rS,lesseqqgtr:sS,LessEqualGreater:iS,LessFullEqual:aS,LessGreater:oS,lessgtr:uS,LessLess:cS,lesssim:lS,LessSlantEqual:hS,LessTilde:dS,lfisht:fS,lfloor:pS,Lfr:mS,lfr:gS,lg:ES,lgE:bS,lHar:TS,lhard:_S,lharu:AS,lharul:CS,lhblk:kS,LJcy:xS,ljcy:vS,llarr:SS,ll:yS,Ll:IS,llcorner:NS,Lleftarrow:DS,llhard:RS,lltri:LS,Lmidot:wS,lmidot:OS,lmoustache:MS,lmoust:PS,lnap:FS,lnapprox:BS,lne:HS,lnE:US,lneq:qS,lneqq:$S,lnsim:zS,loang:YS,loarr:jS,lobrk:VS,longleftarrow:GS,LongLeftArrow:WS,Longleftarrow:QS,longleftrightarrow:KS,LongLeftRightArrow:XS,Longleftrightarrow:ZS,longmapsto:JS,longrightarrow:ey,LongRightArrow:ty,Longrightarrow:ny,looparrowleft:ry,looparrowright:sy,lopar:iy,Lopf:ay,lopf:oy,loplus:uy,lotimes:cy,lowast:ly,lowbar:hy,LowerLeftArrow:dy,LowerRightArrow:fy,loz:py,lozenge:my,lozf:gy,lpar:Ey,lparlt:by,lrarr:Ty,lrcorner:_y,lrhar:Ay,lrhard:Cy,lrm:ky,lrtri:xy,lsaquo:vy,lscr:Sy,Lscr:yy,lsh:Iy,Lsh:Ny,lsim:Dy,lsime:Ry,lsimg:Ly,lsqb:wy,lsquo:Oy,lsquor:My,Lstrok:Py,lstrok:Fy,ltcc:By,ltcir:Hy,lt:Uy,LT:qy,Lt:$y,ltdot:zy,lthree:Yy,ltimes:jy,ltlarr:Vy,ltquest:Gy,ltri:Wy,ltrie:Qy,ltrif:Ky,ltrPar:Xy,lurdshar:Zy,luruhar:Jy,lvertneqq:eI,lvnE:tI,macr:nI,male:rI,malt:sI,maltese:iI,Map:"⤅",map:aI,mapsto:oI,mapstodown:uI,mapstoleft:cI,mapstoup:lI,marker:hI,mcomma:dI,Mcy:fI,mcy:pI,mdash:mI,mDDot:gI,measuredangle:EI,MediumSpace:bI,Mellintrf:TI,Mfr:_I,mfr:AI,mho:CI,micro:kI,midast:xI,midcir:vI,mid:SI,middot:yI,minusb:II,minus:NI,minusd:DI,minusdu:RI,MinusPlus:LI,mlcp:wI,mldr:OI,mnplus:MI,models:PI,Mopf:FI,mopf:BI,mp:HI,mscr:UI,Mscr:qI,mstpos:$I,Mu:zI,mu:YI,multimap:jI,mumap:VI,nabla:GI,Nacute:WI,nacute:QI,nang:KI,nap:XI,napE:ZI,napid:JI,napos:eN,napprox:tN,natural:nN,naturals:rN,natur:sN,nbsp:iN,nbump:aN,nbumpe:oN,ncap:uN,Ncaron:cN,ncaron:lN,Ncedil:hN,ncedil:dN,ncong:fN,ncongdot:pN,ncup:mN,Ncy:gN,ncy:EN,ndash:bN,nearhk:TN,nearr:_N,neArr:AN,nearrow:CN,ne:kN,nedot:xN,NegativeMediumSpace:vN,NegativeThickSpace:SN,NegativeThinSpace:yN,NegativeVeryThinSpace:IN,nequiv:NN,nesear:DN,nesim:RN,NestedGreaterGreater:LN,NestedLessLess:wN,NewLine:ON,nexist:MN,nexists:PN,Nfr:FN,nfr:BN,ngE:HN,nge:UN,ngeq:qN,ngeqq:$N,ngeqslant:zN,nges:YN,nGg:jN,ngsim:VN,nGt:GN,ngt:WN,ngtr:QN,nGtv:KN,nharr:XN,nhArr:ZN,nhpar:JN,ni:e6,nis:t6,nisd:n6,niv:r6,NJcy:s6,njcy:i6,nlarr:a6,nlArr:o6,nldr:u6,nlE:c6,nle:l6,nleftarrow:h6,nLeftarrow:d6,nleftrightarrow:f6,nLeftrightarrow:p6,nleq:m6,nleqq:g6,nleqslant:E6,nles:b6,nless:T6,nLl:_6,nlsim:A6,nLt:C6,nlt:k6,nltri:x6,nltrie:v6,nLtv:S6,nmid:y6,NoBreak:I6,NonBreakingSpace:N6,nopf:D6,Nopf:R6,Not:L6,not:w6,NotCongruent:O6,NotCupCap:M6,NotDoubleVerticalBar:P6,NotElement:F6,NotEqual:B6,NotEqualTilde:H6,NotExists:U6,NotGreater:q6,NotGreaterEqual:$6,NotGreaterFullEqual:z6,NotGreaterGreater:Y6,NotGreaterLess:j6,NotGreaterSlantEqual:V6,NotGreaterTilde:G6,NotHumpDownHump:W6,NotHumpEqual:Q6,notin:K6,notindot:X6,notinE:Z6,notinva:J6,notinvb:eD,notinvc:tD,NotLeftTriangleBar:nD,NotLeftTriangle:rD,NotLeftTriangleEqual:sD,NotLess:iD,NotLessEqual:aD,NotLessGreater:oD,NotLessLess:uD,NotLessSlantEqual:cD,NotLessTilde:lD,NotNestedGreaterGreater:hD,NotNestedLessLess:dD,notni:fD,notniva:pD,notnivb:mD,notnivc:gD,NotPrecedes:ED,NotPrecedesEqual:bD,NotPrecedesSlantEqual:TD,NotReverseElement:_D,NotRightTriangleBar:AD,NotRightTriangle:CD,NotRightTriangleEqual:kD,NotSquareSubset:xD,NotSquareSubsetEqual:vD,NotSquareSuperset:SD,NotSquareSupersetEqual:yD,NotSubset:ID,NotSubsetEqual:ND,NotSucceeds:DD,NotSucceedsEqual:RD,NotSucceedsSlantEqual:LD,NotSucceedsTilde:wD,NotSuperset:OD,NotSupersetEqual:MD,NotTilde:PD,NotTildeEqual:FD,NotTildeFullEqual:BD,NotTildeTilde:HD,NotVerticalBar:UD,nparallel:qD,npar:$D,nparsl:zD,npart:YD,npolint:jD,npr:VD,nprcue:GD,nprec:WD,npreceq:QD,npre:KD,nrarrc:XD,nrarr:ZD,nrArr:JD,nrarrw:eR,nrightarrow:tR,nRightarrow:nR,nrtri:rR,nrtrie:sR,nsc:iR,nsccue:aR,nsce:oR,Nscr:uR,nscr:cR,nshortmid:lR,nshortparallel:hR,nsim:dR,nsime:fR,nsimeq:pR,nsmid:mR,nspar:gR,nsqsube:ER,nsqsupe:bR,nsub:TR,nsubE:_R,nsube:AR,nsubset:CR,nsubseteq:kR,nsubseteqq:xR,nsucc:vR,nsucceq:SR,nsup:yR,nsupE:IR,nsupe:NR,nsupset:DR,nsupseteq:RR,nsupseteqq:LR,ntgl:wR,Ntilde:OR,ntilde:MR,ntlg:PR,ntriangleleft:FR,ntrianglelefteq:BR,ntriangleright:HR,ntrianglerighteq:UR,Nu:qR,nu:$R,num:zR,numero:YR,numsp:jR,nvap:VR,nvdash:GR,nvDash:WR,nVdash:QR,nVDash:KR,nvge:XR,nvgt:ZR,nvHarr:JR,nvinfin:eL,nvlArr:tL,nvle:nL,nvlt:rL,nvltrie:sL,nvrArr:iL,nvrtrie:aL,nvsim:oL,nwarhk:uL,nwarr:cL,nwArr:lL,nwarrow:hL,nwnear:dL,Oacute:fL,oacute:pL,oast:mL,Ocirc:gL,ocirc:EL,ocir:bL,Ocy:TL,ocy:_L,odash:AL,Odblac:CL,odblac:kL,odiv:xL,odot:vL,odsold:SL,OElig:yL,oelig:IL,ofcir:NL,Ofr:DL,ofr:RL,ogon:LL,Ograve:wL,ograve:OL,ogt:ML,ohbar:PL,ohm:FL,oint:BL,olarr:HL,olcir:UL,olcross:qL,oline:$L,olt:zL,Omacr:YL,omacr:jL,Omega:VL,omega:GL,Omicron:WL,omicron:QL,omi
126d:KL,ominus:XL,Oopf:ZL,oopf:JL,opar:ew,OpenCurlyDoubleQuote:tw,OpenCurlyQuote:nw,operp:rw,oplus:sw,orarr:iw,Or:aw,or:ow,ord:uw,order:cw,orderof:lw,ordf:hw,ordm:dw,origof:fw,oror:pw,orslope:mw,orv:gw,oS:Ew,Oscr:bw,oscr:Tw,Oslash:_w,oslash:Aw,osol:Cw,Otilde:kw,otilde:xw,otimesas:vw,Otimes:Sw,otimes:yw,Ouml:Iw,ouml:Nw,ovbar:Dw,OverBar:Rw,OverBrace:Lw,OverBracket:ww,OverParenthesis:Ow,para:Mw,parallel:Pw,par:Fw,parsim:Bw,parsl:Hw,part:Uw,PartialD:qw,Pcy:$w,pcy:zw,percnt:Yw,period:jw,permil:Vw,perp:Gw,pertenk:Ww,Pfr:Qw,pfr:Kw,Phi:Xw,phi:Zw,phiv:Jw,phmmat:eO,phone:tO,Pi:nO,pi:rO,pitchfork:sO,piv:iO,planck:aO,planckh:oO,plankv:uO,plusacir:cO,plusb:lO,pluscir:hO,plus:dO,plusdo:fO,plusdu:pO,pluse:mO,PlusMinus:gO,plusmn:EO,plussim:bO,plustwo:TO,pm:_O,Poincareplane:AO,pointint:CO,popf:kO,Popf:xO,pound:vO,prap:SO,Pr:yO,pr:IO,prcue:NO,precapprox:DO,prec:RO,preccurlyeq:LO,Precedes:wO,PrecedesEqual:OO,PrecedesSlantEqual:MO,PrecedesTilde:PO,preceq:FO,precnapprox:BO,precneqq:HO,precnsim:UO,pre:qO,prE:$O,precsim:zO,prime:YO,Prime:jO,primes:VO,prnap:GO,prnE:WO,prnsim:QO,prod:KO,Product:XO,profalar:ZO,profline:JO,profsurf:e4,prop:t4,Proportional:n4,Proportion:r4,propto:s4,prsim:i4,prurel:a4,Pscr:o4,pscr:u4,Psi:c4,psi:l4,puncsp:h4,Qfr:d4,qfr:f4,qint:p4,qopf:m4,Qopf:g4,qprime:E4,Qscr:b4,qscr:T4,quaternions:_4,quatint:A4,quest:C4,questeq:k4,quot:x4,QUOT:v4,rAarr:S4,race:y4,Racute:I4,racute:N4,radic:D4,raemptyv:R4,rang:L4,Rang:w4,rangd:O4,range:M4,rangle:P4,raquo:F4,rarrap:B4,rarrb:H4,rarrbfs:U4,rarrc:q4,rarr:$4,Rarr:z4,rArr:Y4,rarrfs:j4,rarrhk:V4,rarrlp:G4,rarrpl:W4,rarrsim:Q4,Rarrtl:K4,rarrtl:X4,rarrw:Z4,ratail:J4,rAtail:e8,ratio:t8,rationals:n8,rbarr:r8,rBarr:s8,RBarr:i8,rbbrk:a8,rbrace:o8,rbrack:u8,rbrke:c8,rbrksld:l8,rbrkslu:h8,Rcaron:d8,rcaron:f8,Rcedil:p8,rcedil:m8,rceil:g8,rcub:E8,Rcy:b8,rcy:T8,rdca:_8,rdldhar:A8,rdquo:C8,rdquor:k8,rdsh:x8,real:v8,realine:S8,realpart:y8,reals:I8,Re:N8,rect:D8,reg:R8,REG:L8,ReverseElement:w8,ReverseEquilibrium:O8,ReverseUpEquilibrium:M8,rfisht:P8,rfloor:F8,rfr:B8,Rfr:H8,rHar:U8,rhard:q8,rharu:$8,rharul:z8,Rho:Y8,rho:j8,rhov:V8,RightAngleBracket:G8,RightArrowBar:W8,rightarrow:Q8,RightArrow:K8,Rightarrow:X8,RightArrowLeftArrow:Z8,rightarrowtail:J8,RightCeiling:e5,RightDoubleBracket:t5,RightDownTeeVector:n5,RightDownVectorBar:r5,RightDownVector:s5,RightFloor:i5,rightharpoondown:a5,rightharpoonup:o5,rightleftarrows:u5,rightleftharpoons:c5,rightrightarrows:l5,rightsquigarrow:h5,RightTeeArrow:d5,RightTee:f5,RightTeeVector:p5,rightthreetimes:m5,RightTriangleBar:g5,RightTriangle:E5,RightTriangleEqual:b5,RightUpDownVector:T5,RightUpTeeVector:_5,RightUpVectorBar:A5,RightUpVector:C5,RightVectorBar:k5,RightVector:x5,ring:v5,risingdotseq:S5,rlarr:y5,rlhar:I5,rlm:N5,rmoustache:D5,rmoust:R5,rnmid:L5,roang:w5,roarr:O5,robrk:M5,ropar:P5,ropf:F5,Ropf:B5,roplus:H5,rotimes:U5,RoundImplies:q5,rpar:$5,rpargt:z5,rppolint:Y5,rrarr:j5,Rrightarrow:V5,rsaquo:G5,rscr:W5,Rscr:Q5,rsh:K5,Rsh:X5,rsqb:Z5,rsquo:J5,rsquor:eM,rthree:tM,rtimes:nM,rtri:rM,rtrie:sM,rtrif:iM,rtriltri:aM,RuleDelayed:oM,ruluhar:uM,rx:cM,Sacute:lM,sacute:hM,sbquo:dM,scap:fM,Scaron:pM,scaron:mM,Sc:gM,sc:EM,sccue:bM,sce:TM,scE:_M,Scedil:AM,scedil
126:CM,Scirc:kM,scirc:xM,scnap:vM,scnE:SM,scnsim:yM,scpolint:IM,scsim:NM,Scy:DM,scy:RM,sdotb:LM,sdot:wM,sdote:OM,searhk:MM,searr:PM,seArr:FM,searrow:BM,sect:HM,semi:UM,seswar:qM,setminus:$M,setmn:zM,sext:YM,Sfr:jM,sfr:VM,sfrown:GM,sharp:WM,SHCHcy:QM,shchcy:KM,SHcy:XM,shcy:ZM,ShortDownArrow:JM,ShortLeftArrow:eP,shortmid:tP,shortparallel:nP,ShortRightArrow:rP,ShortUpArrow:sP,shy:iP,Sigma:aP,sigma:oP,sigmaf:uP,sigmav:cP,sim:lP,simdot:hP,sime:dP,simeq:fP,simg:pP,simgE:mP,siml:gP,simlE:EP,simne:bP,simplus:TP,simrarr:_P,slarr:AP,SmallCircle:CP,smallsetminus:kP,smashp:xP,smeparsl:vP,smid:SP,smile:yP,smt:IP,smte:NP,smtes:DP,SOFTcy:RP,softcy:LP,solbar:wP,solb:OP,sol:MP,Sopf:PP,sopf:FP,spades:BP,spadesuit:HP,spar:UP,sqcap:qP,sqcaps:$P,sqcup:zP,sqcups:YP,Sqrt:jP,sqsub:VP,sqsube:GP,sqsubset:WP,sqsubseteq:QP,sqsup:KP,sqsupe:XP,sqsupset:ZP,sqsupseteq:JP,square:eF,Square:tF,SquareIntersection:nF,SquareSubset:rF,SquareSubsetEqual:sF,SquareSuperset:iF,SquareSupersetEqual:aF,SquareUnion:oF,squarf:uF,squ:cF,squf:lF,srarr:hF,Sscr:dF,sscr:fF,ssetmn:pF,ssmile:mF,sstarf:gF,Star:EF,star:bF,starf:TF,straightepsilon:_F,straightphi:AF,strns:CF,sub:kF,Sub:xF,subdot:vF,subE:SF,sube:yF,subedot:IF,submult:NF,subnE:DF,subne:RF,subplus:LF,subrarr:wF,subset:OF,Subset:MF,subseteq:PF,subseteqq:FF,SubsetEqual:BF,subsetneq:HF,subsetneqq:UF,subsim:qF,subsub:$F,subsup:zF,succapprox:YF,succ:jF,succcurlyeq:VF,Succeeds:GF,SucceedsEqual:WF,SucceedsSlantEqual:QF,SucceedsTilde:KF,succeq:XF,succnapprox:ZF,succneqq:JF,succnsim:e9,succsim:t9,SuchThat:n9,sum:r9,Sum:s9,sung:i9,sup1:a9,sup2:o9,sup3:u9,sup:c9,Sup:l9,supdot:h9,supdsub:d9,supE:f9,supe:p9,supedot:m9,Superset:g9,SupersetEqual:E9,suphsol:b9,suphsub:T9,suplarr:_9,supmult:A9,supnE:C9,supne:k9,supplus:x9,supset:v9,Supset:S9,supseteq:y9,supseteqq:I9,supsetneq:N9,supsetneqq:D9,supsim:R9,supsub:L9,supsup:w9,swarhk:O9,swarr:M9,swArr:P9,swarrow:F9,swnwar:B9,szlig:H9,Tab:U9,target:q9,Tau:$9,tau:z9,tbrk:Y9,Tcaron:j9,tcaron:V9,Tcedil:G9,tcedil:W9,Tcy:Q9,tcy:K9,tdot:X9,telrec:Z9,Tfr:J9,tfr:eB,there4:tB,therefore:nB,Therefore:rB,Theta:sB,theta:iB,thetasym:aB,thetav:oB,thickapprox:uB,thicksim:cB,ThickSpace:lB,ThinSpace:hB,thinsp:dB,thkap:fB,thksim:pB,THORN:mB,thorn:gB,tilde:EB,Tilde:bB,TildeEqual:TB,TildeFullEqual:_B,TildeTilde:AB,timesbar:CB,timesb:kB,times:xB,timesd:vB,tint:SB,toea:yB,topbot:IB,topcir:NB,top:DB,Topf:RB,topf:LB,topfork:wB,tosa:OB,tprime:MB,trade:PB,TRADE:FB,triangle:BB,triangledown:HB,triangleleft:UB,trianglelefteq:qB,triangleq:$B,triangleright:zB,trianglerighteq:YB,tridot:jB,trie:VB,triminus:GB,TripleDot:WB,triplus:QB,trisb:KB,tritime:XB,trpezium:ZB,Tscr:JB,tscr:e7,TScy:t7,tscy:n7,TSHcy:r7,tshcy:s7,Tstrok:i7,tstrok:a7,twixt:o7,twoheadleftarrow:u7,twoheadrightarrow:c7,Uacute:l7,uacute:h7,uarr:d7,Uarr:f7,uArr:p7,Uarrocir:m7,Ubrcy:g7,ubrcy:E7,Ubreve:b7,ubreve:T7,Ucirc:_7,ucirc:A7,Ucy:C7,ucy:k7,udarr:x7,Udblac:v7,udblac:S7,udhar:y7,ufisht:I7,Ufr:N7,ufr:D7,Ugrave:R7,ugrave:L7,uHar:w7,uharl:O7,uharr:M7,uhblk:P7,ulcorn:F7,ulcorner:B7,ulcrop:H7,ultri:U7,Umacr:q7,umacr:$7,uml:z7,UnderBar:Y7,UnderBrace:j7,UnderBracket:V7,UnderParenthesis:G7,Union:W7,UnionPlus:Q7,Uogon:K7,uogon:X7,Uopf:Z7,uopf:J7,UpArrowBar:eH,uparrow:tH,UpArrow:nH,Uparrow:rH,UpArrowDownArrow:sH,updownarrow:iH,UpDownArrow:aH,Updownarrow:oH,UpEquilibrium:uH,upharpoonleft:cH,upharpoonright:lH,uplus:hH,UpperLeftArrow:dH,UpperRightArrow:fH,upsi:pH,Upsi:mH,upsih:gH,Upsilon:EH,upsilon:bH,UpTeeArrow:TH,UpTee:_H,upuparrows:AH,urcorn:CH,urcorner:kH,urcrop:xH,Uring:vH,uring:SH,urtri:yH,Uscr:IH,uscr:NH,utdot:DH,Utilde:RH,utilde:LH,utri:wH,utrif:OH,uuarr:MH,Uuml:PH,uuml:FH,uwangle:BH,vangrt:HH,varepsilon:UH,varkappa:qH,varnothing:$H,varphi:zH,varpi:YH,varpropto:jH,varr:VH,vArr:GH,varrho:WH,varsigma:QH,varsubsetneq:KH,varsubsetneqq:XH,varsupsetneq:ZH,varsupsetneqq:JH,vartheta:eU,vartriangleleft:tU,vartriangleright:nU,vBar:rU,Vbar:sU,vBarv:iU,Vcy:aU,vcy:oU,vdash:uU,vDash:cU,Vdash:lU,VDash:hU,Vdashl:dU,veebar:fU,vee:pU,Vee:mU,veeeq:gU,vellip:EU,verbar:bU,Verbar:TU,vert:_U,Vert:AU,VerticalBar:CU,VerticalLine:kU,VerticalSeparator:xU,VerticalTilde:vU,VeryThinSpace:SU,Vfr:yU,vfr:IU,vltri:NU,vnsub:DU,vnsup:RU,Vopf:LU,vopf:wU,vprop:OU,vrtri:MU,Vscr:PU,vscr:FU,vsubnE:BU,vsubne:HU,vsupnE:UU,vsupne:qU,Vvdash:$U,vzigzag:zU,Wcirc:YU,wcirc:jU,wedbar:VU,wedge:GU,Wedge:WU,wedgeq:QU,weierp:KU,Wfr:XU,wfr:ZU,Wopf:JU,wopf:eq,wp:tq,wr:nq,wreath:rq,Wscr:sq,wscr:iq,xcap:aq,xcirc:oq,xcup:uq,xdtri:cq,Xfr:lq,xfr:hq,xharr:dq,xhArr:fq,Xi:pq,xi:mq,xlarr:gq,xlArr:Eq,xmap:bq,xnis:Tq,xodot:_q,Xopf:Aq,xopf:Cq,xoplus:kq,xotime:xq,xrarr:vq,xrArr:Sq,Xscr:yq,xscr:Iq,xsqcup:Nq,xuplus:Dq,xutri:Rq,xvee:Lq,xwedge:wq,Yacute:Oq,yacute:Mq,YAcy:Pq,yacy:Fq,Ycirc:Bq,ycirc:Hq,Ycy:Uq,ycy:qq,yen:$q,Yfr:zq,yfr:Yq,YIcy:jq,yicy:Vq,Yopf:Gq,yopf:Wq,Yscr:Qq,yscr:Kq,YUcy:Xq,yucy:Zq,yuml:Jq,Yuml:e$,Zacute:t$,zacute:n$,Zcaron:r$,zcaron:s$,Zcy:i$,zcy:a$,Zdot:o$,zdot:u$,zeetrf:c$,ZeroWidthSpace:l$,Zeta:h$,zeta:d$,zfr:f$,Zfr:p$,ZHcy:m$,zhcy:g$,zigrarr:E$,zopf:b$,Zopf:T$,Zscr:_$,zscr:A$,zwj:C$,zwnj:k$};var hs,ho;function Nc(){return ho||(ho=1,hs=x$),hs}var ds,fo;function ia(){return fo||(fo=1,ds=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),ds}var tn={},fs,po;
126function v$(){if(po)return fs;po=1;var e={};function t(r){var s,i,a=e[r];if(a)return a;for(a=e[r]=[],s=0;s<128;s++)i=String.fromCharCode(s),/^[0-9a-z]$/i.test(i)?a.push(i):a.push("%"+("0"+s.toString(16).toUpperCase()).slice(-2));for(s=0;s<r.length;s++)a[r.charCodeAt(s)]=r[s];return a}function n(r,s,i){var a,o,c,l,h,d="";for(typeof s!="string"&&(i=s,s=n.defaultChars),typeof i>"u"&&(i=!0),h=t(s),a=0,o=r.length;a<o;a++){if(c=r.charCodeAt(a),i&&c===37&&a+2<o&&/^[0-9a-f]{2}$/i.test(r.slice(a+1,a+3))){d+=r.slice(a,a+3),a+=2;continue}if(c<128){d+=h[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&a+1<o&&(l=r.charCodeAt(a+1),l>=56320&&l<=57343)){d+=encodeURIComponent(r[a]+r[a+1]),a++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(r[a])}return d}return n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",fs=n,fs}var ps,mo;function S$(){if(mo)return ps;mo=1;var e={};function t(r){var s,i,a=e[r];if(a)return a;for(a=e[r]=[],s=0;s<128;s++)i=String.fromCharCode(s),a.push(i);for(s=0;s<r.length;s++)i=r.charCodeAt(s),a[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2);return a}function n(r,s){var i;return typeof s!="string"&&(s=n.defaultChars),i=t(s),r.replace(/(%[a-f0-9]{2})+/gi,function(a){var o,c,l,h,d,p,f,g="";for(o=0,c=a.length;o<c;o+=3){if(l=parseInt(a.slice(o+1,o+3),16),l<128){g+=i[l];continue}if((l&224)===192&&o+3<c&&(h=parseInt(a.slice(o+4,o+6),16),(h&192)===128)){f=l<<6&1984|h&63,f<128?g+="��":g+=String.fromCharCode(f),o+=3;continue}if((l&240)===224&&o+6<c&&(h=parseInt(a.slice(o+4,o+6),16),d=parseInt(a.slice(o+7,o+9),16),(h&192)===128&&(d&192)===128)){f=l<<12&61440|h<<6&4032|d&63,f<2048||f>=55296&&f<=57343?g+="���":g+=String.fromCharCode(f),o+=6;continue}if((l&248)===240&&o+9<c&&(h=parseInt(a.slice(o+4,o+6),16),d=parseInt(a.slice(o+7,o+9),16),p=parseInt(a.slice(o+10,o+12),16),(h&192)===128&&(d&192)===128&&(p&192)===128)){f=l<<18&1835008|h<<12&258048|d<<6&4032|p&63,f<65536||f>1114111?g+="����":(f-=65536,g+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),o+=9;continue}g+="�"}return g})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",ps=n,ps}var ms,go;function y$(){return go||(go=1,ms=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}),ms}var gs,Eo;function I$(){if(Eo)return gs;Eo=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r",`
127`,"	"],i=["{","}","|","\\","^","`"].concat(s),a=["'"].concat(i),o=["%","/","?",";","#"].concat(a),c=["/","?","#"],l=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function g(v,x){if(v&&v instanceof e)return v;var E=new e;return E.parse(v,x),E}return e.prototype.parse=function(v,x){var E,_,T,A,I,N=v;if(N=N.trim(),!x&&v.split("#").length===1){var O=r.exec(N);if(O)return this.pathname=O[1],O[2]&&(this.search=O[2]),this}var y=t.exec(N);if(y&&(y=y[0],T=y.toLowerCase(),this.protocol=y,N=N.substr(y.length)),(x||y||N.match(/^\/\/[^@\/]+@[^@\/]+/))&&(I=N.substr(0,2)==="//",I&&!(y&&p[y])&&(N=N.substr(2),this.slashes=!0)),!p[y]&&(I||y&&!f[y])){var U=-1;for(E=0;E<c.length;E++)A=N.indexOf(c[E]),A!==-1&&(U===-1||A<U)&&(U=A);var F,P;for(U===-1?P=N.lastIndexOf("@"):P=N.lastIndexOf("@",U),P!==-1&&(F=N.slice(0,P),N=N.slice(P+1),this.auth=F),U=-1,E=0;E<o.length;E++)A=N.indexOf(o[E]),A!==-1&&(U===-1||A<U)&&(U=A);U===-1&&(U=N.length),N[U-1]===":"&&U--;var $=N.slice(0,U);N=N.slice(U),this.parseHost($),this.hostname=this.hostname||"";var j=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!j){var w=this.hostname.split(/\./);for(E=0,_=w.length;E<_;E++){var H=w[E];if(H&&!H.match(h)){for(var Y="",te=0,ce=H.length;te<ce;
127te++)H.charCodeAt(te)>127?Y+="x":Y+=H[te];if(!Y.match(h)){var ne=w.slice(0,E),Q=w.slice(E+1),Fe=H.match(d);Fe&&(ne.push(Fe[1]),Q.unshift(Fe[2])),Q.length&&(N=Q.join(".")+N),this.hostname=ne.join(".");break}}}}this.hostname.length>l&&(this.hostname=""),j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var He=N.indexOf("#");He!==-1&&(this.hash=N.substr(He),N=N.slice(0,He));var Oe=N.indexOf("?");return Oe!==-1&&(this.search=N.substr(Oe),N=N.slice(0,Oe)),N&&(this.pathname=N),f[T]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(v){var x=n.exec(v);x&&(x=x[0],x!==":"&&(this.port=x.substr(1)),v=v.substr(0,v.length-x.length)),v&&(this.hostname=v)},gs=g,gs}var bo;function Dc(){return bo||(bo=1,tn.encode=v$(),tn.decode=S$(),tn.format=y$(),tn.parse=I$()),tn}var Bt={},Es,To;function Rc(){return To||(To=1,Es=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Es}var bs,_o;function Lc(){return _o||(_o=1,bs=/[\0-\x1F\x7F-\x9F]/),bs}var Ts,Ao;function N$(){return Ao||(Ao=1,Ts=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Ts}var _s,Co;function wc(){return Co||(Co=1,_s=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),_s}var ko;function D$(){return ko||(ko=1,Bt.Any=Rc(),Bt.Cc=Lc(),Bt.Cf=N$(),Bt.P=ia(),Bt.Z=wc()),Bt}var xo;function le(){return xo||(xo=1,(function(e){function t(w){return Object.prototype.toString.call(w)}function n(w){return t(w)==="[object String]"}var r=Object.prototype.hasOwnProperty;function s(w,H){return r.call(w,H)}function i(w){var H=Array.prototype.slice.call(arguments,1);return H.forEach(function(Y){if(Y){if(typeof Y!="object")throw new TypeError(Y+"must be object");Object.keys(Y).forEach(function(te){w[te]=Y[te]})}}),w}function a(w,H,Y){return[].concat(w.slice(0,H),Y,w.slice(H+1))}function o(w){return!(w>=55296&&w<=57343||w>=64976&&w<=65007||(w&65535)===65535||(w&65535)===65534||w>=0&&w<=8||w===11||w>=14&&w<=31||w>=127&&w<=159||w>1114111)}function c(w){if(w>65535){w-=65536;var H=55296+(w>>10),Y=56320+(w&1023);return String.fromCharCode(H,Y)}return String.fromCharCode(w)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,h=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(l.source+"|"+h.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,f=Nc();function g(w,H){var Y;return s(f,H)?f[H]:H.charCodeAt(0)===35&&p.test(H)&&(Y=H[1].toLowerCase()==="x"?parseInt(H.slice(2),16):parseInt(H.slice(1),10),o(Y))?c(Y):w}function v(w){return w.indexOf("\\")<0?w:w.replace(l,"$1")}function x(w){return w.indexOf("\\")<0&&w.indexOf("&")<0?w:w.replace(d,function(H,Y,te){return Y||g(H,te)})}var E=/[&<>"]/,_=/[&<>"]/g,T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function A(w){return T[w]}function I(w){return E.test(w)?w.replace(_,A):w}var N=/[.?*+^$[\]\\(){}|-]/g;function O(w){return w.replace(N,"\\$&")}function y(w){switch(w){case 9:case 32:return!0}return!1}function U(w){if(w>=8192&&w<=8202)return!0;switch(w){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var F=ia();function P(w){return F.test(w)}function $(w){switch(w){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function j(w){return w=w.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(w=w.replace(/ẞ/g,"ß")),w.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Dc(),e.lib.ucmicro=D$(),e.assign=i,e.isString=n,e.has=s,e.unescapeMd=v,e.unescapeAll=x,e.isValidEntityCode=o,e.fromCodePoint=c,e.escapeHtml=I,e.arrayReplaceAt=a,e.isSpace=y,e.isWhiteSpace=U,e.isMdAsciiPunct=$,e.isPunctChar=P,e.escapeRE=O,e.normalizeReference=j})(ls)),ls}var An={},As,vo;function R$(){return vo||(vo=1,As=function(t,n,r){var s,i,a,o,c=-1,l=t.posMax,h=t.pos;for(t.pos=n+1,s=1;t.pos<l;
127){if(a=t.src.charCodeAt(t.pos),a===93&&(s--,s===0)){i=!0;break}if(o=t.pos,t.md.inline.skipToken(t),a===91){if(o===t.pos-1)s++;else if(r)return t.pos=h,-1}}return i&&(c=t.pos),t.pos=h,c}),As}var Cs,So;function L$(){if(So)return Cs;So=1;var e=le().unescapeAll;return Cs=function(n,r,s){var i,a,o=r,c={ok:!1,pos:0,lines:0,str:""};if(n.charCodeAt(o)===60){for(o++;o<s;){if(i=n.charCodeAt(o),i===10||i===60)return c;if(i===62)return c.pos=o+1,c.str=e(n.slice(r+1,o)),c.ok=!0,c;if(i===92&&o+1<s){o+=2;continue}o++}return c}for(a=0;o<s&&(i=n.charCodeAt(o),!(i===32||i<32||i===127));){if(i===92&&o+1<s){if(n.charCodeAt(o+1)===32)break;o+=2;continue}if(i===40&&(a++,a>32))return c;if(i===41){if(a===0)break;a--}o++}return r===o||a!==0||(c.str=e(n.slice(r,o)),c.pos=o,c.ok=!0),c},Cs}var ks,yo;function w$(){if(yo)return ks;yo=1;var e=le().unescapeAll;return ks=function(n,r,s){var i,a,o=0,c=r,l={ok:!1,pos:0,lines:0,str:""};if(c>=s||(a=n.charCodeAt(c),a!==34&&a!==39&&a!==40))return l;for(c++,a===40&&(a=41);c<s;){if(i=n.charCodeAt(c),i===a)return l.pos=c+1,l.lines=o,l.str=e(n.slice(r+1,c)),l.ok=!0,l;if(i===40&&a===41)return l;i===10?o++:i===92&&c+1<s&&(c++,n.charCodeAt(c)===10&&o++),c++}return l},ks}var Io;function O$(){return Io||(Io=1,An.parseLinkLabel=R$(),An.parseLinkDestination=L$(),An.parseLinkTitle=w$()),An}var xs,No;function M$(){if(No)return xs;No=1;var e=le().assign,t=le().unescapeAll,n=le().escapeHtml,r={};r.code_inline=function(i,a,o,c,l){var h=i[a];return"<code"+l.renderAttrs(h)+">"+n(h.content)+"</code>"},r.code_block=function(i,a,o,c,l){var h=i[a];return"<pre"+l.renderAttrs(h)+"><code>"+n(i[a].content)+`</code></pre>
128`},r.fence=function(i,a,o,c,l){var h=i[a],d=h.info?t(h.info).trim():"",p="",f="",g,v,x,E,_;return d&&(x=d.split(/(\s+)/g),p=x[0],f=x.slice(2).join("")),o.highlight?g=o.highlight(h.content,p,f)||n(h.content):g=n(h.content),g.indexOf("<pre")===0?g+`
129`:d?(v=h.attrIndex("class"),E=h.attrs?h.attrs.slice():[],v<0?E.push(["class",o.langPrefix+p]):(E[v]=E[v].slice(),E[v][1]+=" "+o.langPrefix+p),_={attrs:E},"<pre><code"+l.renderAttrs(_)+">"+g+`</code></pre>
130`):"<pre><code"+l.renderAttrs(h)+">"+g+`</code></pre>
131`},r.image=function(i,a,o,c,l){var h=i[a];return h.attrs[h.attrIndex("alt")][1]=l.renderInlineAsText(h.children,o,c),l.renderToken(i,a,o)},r.hardbreak=function(i,a,o){return o.xhtmlOut?`<br />
132`:`<br>
133`},r.softbreak=function(i,a,o){return o.breaks?o.xhtmlOut?`<br />
134`:`<br>
135`:`
136`},r.text=function(i,a){return n(i[a].content)},r.html_block=function(i,a){return i[a].content},r.html_inline=function(i,a){return i[a].content};function s(){this.rules=e({},r)}return s.prototype.renderAttrs=function(a){var o,c,l;if(!a.attrs)return"";for(l="",o=0,c=a.attrs.length;o<c;o++)l+=" "+n(a.attrs[o][0])+'="'+n(a.attrs[o][1])+'"';return l},s.prototype.renderToken=function(a,o,c){var l,h="",d=!1,p=a[o];return p.hidden?"":(p.block&&p.nesting!==-1&&o&&a[o-1].hidden&&(h+=`
137`),h+=(p.nesting===-1?"</":"<")+p.tag,h+=this.renderAttrs(p),p.nesting===0&&c.xhtmlOut&&(h+=" /"),p.block&&(d=!0,p.nesting===1&&o+1<a.length&&(l=a[o+1],(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===p.tag)&&(d=!1))),h+=d?`>
138`:">",h)},s.prototype.renderInline=function(i,a,o){for(var c,l="",h=this.rules,d=0,p=i.length;d<p;d++)c=i[d].type,typeof h[c]<"u"?l+=h[c](i,d,a,o,this):l+=this.renderToken(i,d,a);return l},s.prototype.renderInlineAsText=function(i,a,o){for(var c="",l=0,h=i.length;l<h;l++)i[l].type==="text"?c+=i[l].content:i[l].type==="image"?c+=this.renderInlineAsText(i[l].children,a,o):i[l].type==="softbreak"&&(c+=`
139`);return c},s.prototype.render=function(i,a,o){var c,l,h,d="",p=this.rules;for(c=0,l=i.length;c<l;c++)h=i[c].type,h==="inline"?d+=this.renderInline(i[c].children,a,o):typeof p[h]<"u"?d+=p[h](i,c,a,o,this):d+=this.renderToken(i,c,a,o);return d},xs=s,xs}var vs,Do;function aa(){if(Do)return vs;Do=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},e.prototype.__compile__=function(){var t=this,n=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(s){n.indexOf(s)<0&&n.push(s)})}),t.__cache__={}
139,n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(s){s.enabled&&(r&&s.alt.indexOf(r)<0||t.__cache__[r].push(s.fn))})})},e.prototype.at=function(t,n,r){var s=this.__find__(t),i=r||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__[s].fn=n,this.__rules__[s].alt=i.alt||[],this.__cache__=null},e.prototype.before=function(t,n,r,s){var i=this.__find__(t),a=s||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:n,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},e.prototype.after=function(t,n,r,s){var i=this.__find__(t),a=s||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:n,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},e.prototype.push=function(t,n,r){var s=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(s){var i=this.__find__(s);if(i<0){if(n)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[i].enabled=!0,r.push(s)},this),this.__cache__=null,r},e.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)},e.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(s){var i=this.__find__(s);if(i<0){if(n)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[i].enabled=!1,r.push(s)},this),this.__cache__=null,r},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},vs=e,vs}var Ss,Ro;function P$(){if(Ro)return Ss;Ro=1;var e=/\r\n?|\n/g,t=/\0/g;return Ss=function(r){var s;s=r.src.replace(e,`
140`),s=s.replace(t,"�"),r.src=s},Ss}var ys,Lo;function F$(){return Lo||(Lo=1,ys=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}),ys}var Is,wo;function B$(){return wo||(wo=1,Is=function(t){var n=t.tokens,r,s,i;for(s=0,i=n.length;s<i;s++)r=n[s],r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}),Is}var Ns,Oo;function H$(){if(Oo)return Ns;Oo=1;var e=le().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return Ns=function(s){var i,a,o,c,l,h,d,p,f,g,v,x,E,_,T,A,I=s.tokens,N;if(s.md.options.linkify){for(a=0,o=I.length;a<o;a++)if(!(I[a].type!=="inline"||!s.md.linkify.pretest(I[a].content)))for(c=I[a].children,E=0,i=c.length-1;i>=0;i--){if(h=c[i],h.type==="link_close"){for(i--;c[i].level!==h.level&&c[i].type!=="link_open";)i--;continue}if(h.type==="html_inline"&&(t(h.content)&&E>0&&E--,n(h.content)&&E++),!(E>0)&&h.type==="text"&&s.md.linkify.test(h.content)){for(f=h.content,N=s.md.linkify.match(f),d=[],x=h.level,v=0,N.length>0&&N[0].index===0&&i>0&&c[i-1].type==="text_special"&&(N=N.slice(1)),p=0;p<N.length;p++)_=N[p].url,T=s.md.normalizeLink(_),s.md.validateLink(T)&&(A=N[p].text,N[p].schema?N[p].schema==="mailto:"&&!/^mailto:/i.test(A)?A=s.md.normalizeLinkText("mailto:"+A).replace(/^mailto:/,""):A=s.md.normalizeLinkText(A):A=s.md.normalizeLinkText("http://"+A).replace(/^http:\/\//,""),g=N[p].index,g>v&&(l=new s.Token("text","",0),l.content=f.slice(v,g),l.level=x,d.push(l)),l=new s.Token("link_open","a",1),l.attrs=[["href",T]],l.level=x++,l.markup="linkify",l.info="auto",d.push(l),l=new s.Token("text","",0),l.content=A,l.level=x,d.push(l),l=new s.Token("link_close","a",-1),l.level=--x,l.markup="linkify",l.info="auto",d.push(l),v=N[p].lastIndex);v<f.length&&(l=new s.Token("text","",0),l.content=f.slice(v),l.level=x,d.push(l)),I[a].children=c=e(c,i,d)}}}},Ns}var Ds,Mo;function U$(){if(Mo)return Ds;Mo=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r)\)/i,n=/\((c|tm|r)\)/ig,r={c:"©",r:"®",tm:"™"};function s(o,c){return r[c.toLowerCase()]}function i(o){var c,l,h=0;for(c=o.length-1;c>=0;c--)l=o[c],l.type==="text"&&!h&&(l.content=l.content.replace(n,s)),l.type==="link_open"&&l.info==="auto"&&h--,l.type==="link_close"&&l.info==="auto"&&h++}function a(o){var c,l,h=0;for(c=o.length-1;c>=0;c--)l=o[c],l.type==="text"&&!h&&e.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),l.type==="link_open"&&l.info==="auto"&&h--,l.type==="link_close"&&l.info==="auto"&&h++}return Ds=function(c){var l;if(c.md.options.typographer)for(l=c.tokens.length-1;l>=0;l--)c.tokens[l].type==="inline"&&(t.test(c.tokens[l].content)&&i(c.tokens[l].children),e.test(c.tokens[l].content)&&a(c.tokens[l].children))},Ds}var Rs,Po;function q$(){if(Po)return Rs;Po=1;var e=le().isWhiteSpace,t=le().isPunctChar,n=le().isMdAsciiPunct,r=/['"]/,s=/['"]/g,i="’";function a(c,l,h){return c.slice(0,l)+h+c.slice(l+1)}function o(c,l){var h,d,p,f,g,v,x,E,_,T,A,I,N,O,y,U,F,P,$,j,w;for($=[],h=0;h<c.length;h++){for(d=c[h],x=c[h].level,F=$.length-1;F>=0&&!($[F].level<=x);F--);if($.length=F+1,d.type==="text"){p=d.content,g=0,v=p.length;e:for(;g<v&&(s.lastIndex=g,f=s.exec(p),!!f);){if(y=U=!0,g=f.index+1,P=f[0]==="'",_=32,f.index-1>
vendor: 10,071 bytes, lines 140-141
140=0)_=p.charCodeAt(f.index-1);else for(F=h-1;F>=0&&!(c[F].type==="softbreak"||c[F].type==="hardbreak");F--)if(c[F].content){_=c[F].content.charCodeAt(c[F].content.length-1);break}if(T=32,g<v)T=p.charCodeAt(g);else for(F=h+1;F<c.length&&!(c[F].type==="softbreak"||c[F].type==="hardbreak");F++)if(c[F].content){T=c[F].content.charCodeAt(0);break}if(A=n(_)||t(String.fromCharCode(_)),I=n(T)||t(String.fromCharCode(T)),N=e(_),O=e(T),O?y=!1:I&&(N||A||(y=!1)),N?U=!1:A&&(O||I||(U=!1)),T===34&&f[0]==='"'&&_>=48&&_<=57&&(U=y=!1),y&&U&&(y=A,U=I),!y&&!U){P&&(d.content=a(d.content,f.index,i));continue}if(U){for(F=$.length-1;F>=0&&(E=$[F],!($[F].level<x));F--)if(E.single===P&&$[F].level===x){E=$[F],P?(j=l.md.options.quotes[2],w=l.md.options.quotes[3]):(j=l.md.options.quotes[0],w=l.md.options.quotes[1]),d.content=a(d.content,f.index,w),c[E.token].content=a(c[E.token].content,E.pos,j),g+=w.length-1,E.token===h&&(g+=j.length-1),p=d.content,v=p.length,$.length=F;continue e}}y?$.push({token:h,pos:f.index,single:P,level:x}):U&&P&&(d.content=a(d.content,f.index,i))}}}}return Rs=function(l){var h;if(l.md.options.typographer)for(h=l.tokens.length-1;h>=0;h--)l.tokens[h].type!=="inline"||!r.test(l.tokens[h].content)||o(l.tokens[h].children,l)},Rs}var Ls,Fo;function $$(){return Fo||(Fo=1,Ls=function(t){var n,r,s,i,a,o,c=t.tokens;for(n=0,r=c.length;n<r;n++)if(c[n].type==="inline"){for(s=c[n].children,a=s.length,i=0;i<a;i++)s[i].type==="text_special"&&(s[i].type="text");for(i=o=0;i<a;i++)s[i].type==="text"&&i+1<a&&s[i+1].type==="text"?s[i+1].content=s[i].content+s[i+1].content:(i!==o&&(s[o]=s[i]),o++);i!==o&&(s.length=o)}}),Ls}var ws,Bo;function oa(){if(Bo)return ws;Bo=1;function e(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(n){var r,s,i;if(!this.attrs)return-1;for(r=this.attrs,s=0,i=r.length;s<i;s++)if(r[s][0]===n)return s;return-1},e.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]},e.prototype.attrSet=function(n,r){var s=this.attrIndex(n),i=[n,r];s<0?this.attrPush(i):this.attrs[s]=i},e.prototype.attrGet=function(n){var r=this.attrIndex(n),s=null;return r>=0&&(s=this.attrs[r][1]),s},e.prototype.attrJoin=function(n,r){var s=this.attrIndex(n);s<0?this.attrPush([n,r]):this.attrs[s][1]=this.attrs[s][1]+" "+r},ws=e,ws}var Os,Ho;function z$(){if(Ho)return Os;Ho=1;var e=oa();function t(n,r,s){this.src=n,this.env=s,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,Os=t,Os}var Ms,Uo;function Y$(){if(Uo)return Ms;Uo=1;var e=aa(),t=[["normalize",P$()],["block",F$()],["inline",B$()],["linkify",H$()],["replacements",U$()],["smartquotes",q$()],["text_join",$$()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1])}return n.prototype.process=function(r){var s,i,a;for(a=this.ruler.getRules(""),s=0,i=a.length;s<i;s++)a[s](r)},n.prototype.State=z$(),Ms=n,Ms}var Ps,qo;function j$(){if(qo)return Ps;qo=1;var e=le().isSpace;function t(r,s){var i=r.bMarks[s]+r.tShift[s],a=r.eMarks[s];return r.src.slice(i,a)}function n(r){var s=[],i=0,a=r.length,o,c=!1,l=0,h="";for(o=r.charCodeAt(i);i<a;)o===124&&(c?(h+=r.substring(l,i-1),l=i):(s.push(h+r.substring(l,i)),h="",l=i+1)),c=o===92,i++,o=r.charCodeAt(i);return s.push(h+r.substring(l)),s}return Ps=function(s,i,a,o){var c,l,h,d,p,f,g,v,x,E,_,T,A,I,N,O,y,U;if(i+2>a||(f=i+1,s.sCount[f]<s.blkIndent)||s.sCount[f]-s.blkIndent>=4||(h=s.bMarks[f]+s.tShift[f],h>=s.eMarks[f])||(y=s.src.charCodeAt(h++),y!==124&&y!==45&&y!==58)||h>=s.eMarks[f]||(U=s.src.charCodeAt(h++),U!==124&&U!==45&&U!==58&&!e(U))||y===45&&e(U))return!1;for(;h<s.eMarks[f];){if(c=s.src.charCodeAt(h),c!==124&&c!==45&&c!==58&&!e(c))return!1;h++}for(l=t(s,i+1),g=l.split("|"),E=[],d=0;d<g.length;d++){if(_=g[d].trim(),!_){if(d===0||d===g.length-1)continue;return!1}if(!/^:?-+:?$/.test(_))return!1;_.charCodeAt(_.length-1)===58?E.push(_.charCodeAt(0)===58?"center":"right"):_.charCodeAt(0)===58?E.push("left"):E.push("")}if(l=t(s,i).trim(),l.indexOf("|")===-1||s.sCount[i]-s.blkIndent>=4||(g=n(l),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),v=g.length,v===0||v!==E.length))return!1;if(o)return!0;for(I=s.parentType,s.parentType="table",O=s.md.block.ruler.getRules("blockquote"),x=s.push("table_open","table",1),x.map=T=[i,0],x=s.push("thead_open","thead",1),x.map=[i,i+1],x=s.push("tr_open","tr",1),x.map=[i,i+1],d=0;d<g.length;d++)x=s.push("th_open","th",1),E[d]&&(x.attrs=[["style","text-align:"+E[d]]]),x=s.push("inline","",0),x.content=g[d].trim(),x.children=[],x=s.push("th_close","th",-1);for(x=s.push("tr_close","tr",-1),x=s.push("thead_close","thead",-1),f=i+2;f<a&&!(s.sCount[f]<s.blkIndent);f++){for(N=!1,d=0,p=O.length;d<p;d++)if(O[d](s,f,a,!0)){N=!0;break}if(N||(l=t(s,f).trim(),!l)||s.sCount[f]-s.blkIndent>=4)break;for(g=n(l),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),f===i+2&&(x=s.push("tbody_open","tbody",1),x.map=A=[i+2,0]),x=s.push("tr_open","tr",1),x.map=[f,f+1],d=0;d<v;d++)x=s.push("td_open","td",1),E[d]&&(x.attrs=[["style","text-align:"+E[d]]]),x=s.push("inline","",0),x.content=g[d]?g[d].trim():"",x.children=[],x=s.push("td_close","td",-1);x=s.push("tr_close","tr",-1)}return A&&(x=s.push("tbody_close","tbody",-1),A[1]=f),x=s.push("table_close","table",-1),T[1]=f,s.parentType=I,s.line=f,!0},Ps}var Fs,$o;function V$(){return $o||($o=1,Fs=function(t,n,r){var s,i,a;if(t.sCount[n]-t.blkIndent<4)return!1;for(i=s=n+1;s<r;){if(t.isEmpty(s)){s++;continue}if(t.sCount[s]-t.blkIndent>=4){s++,i=s;continue}break}return t.line=i,a=t.push("code_block","code",0),a.content=t.getLines(n,i,4+t.blkIndent,!1)+`
141`,a.map=[n,t.line],!0}),Fs}var Bs,zo;function G$(){return zo||(zo=1,Bs=function(t,n,r,s){var i,a,o,c,l,h,d,p=!1,f=t.bMarks[n]+t.tShift[n],g=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||f+3>g||(i=t.src.charCodeAt(f),i!==126&&i!==96)||(l=f,f=t.skipChars(f,i),a=f-l,a<3)||(d=t.src.slice(l,f),o=t.src.slice(f,g),i===96&&o.indexOf(String.fromCharCode(i))>=0))return!1;if(s)return!0;for(c=n;c++,!(c>=r||(f=l=t.bMarks[c]+t.tShift[c],g=t.eMarks[c],f<g&&t.sCount[c]<t.blkIndent));)if(t.src.charCodeAt(f)===i&&!(t.sCount[c]-t.blkIndent>=4)&&(f=t.skipChars(f,i),!(f-l<a)&&(f=t.skipSpaces(f),!(f<g)))){p=!0;break}return a=t.sCount[n],t.line=c+(p?1:0),h=t.push("fence","code",0),h.info=o,h.content=t.getLines(n+1,c,a,!0),h.markup=d,h.map=[n,t.line],!0}),Bs}var Hs,Yo;function W$(){if(Yo)return Hs;Yo=1;var e=le().isSpace;return Hs=function(n,r,s,i){var a,o,c,l,h,d,p,f,g,v,x,E,_,T,A,I,N,O,y,U,F=n.lineMax,P=n.bMarks[r]+n.tShift[r],$=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(P)!==62)return!1;if(i)return!0;for(v=[],x=[],T=[],A=[],O=n.md.block.ruler.getRules("blockquote"),_=n.parentType,n.parentType="blockquote",f=r;f<s&&(U=n.sCount[f]<n.blkIndent,P=n.bMarks[f]+n.tShift[f],$=n.eMarks[f],!(P>=$));f++){if(n.src.charCodeAt(P++)===62&&!U){for(l=n.sCount[f]+1,n.src.charCodeAt(P)===32?(P++,l++,a=!1,I=!0):n.src.charCodeAt(P)===9?(I=!0,(n.bsCount[f]+l)%4===3?(P++,l++,a=!1):a=!0):I=!1,g=l,v.push(n.bMarks[f]),n.bMarks[f]=P;P<$&&(o=n.src.charCodeAt(P),e(o));){o===9?g+=4-(g+n.bsCount[f]+(a?1:0))%4:g++;P++}d=P>=$,x.push(n.bsCount[f]),n.bsCount[f]=n.sCount[f]+1+(I?1:0),T.push(n.sCount[f]),n.sCount[f]=g-l,A.push(n.tShift[f]),n.tShift[f]=P-n.bMarks[f];continue}if(d)break;for(N=!1,c=0,h=O.length;c<h;c++)if(O[c](n,f,s,!0)){N=!0;break}if(N){n.lineMax=f,n.blkIndent!==0&&(v.push(n.bMarks[f]),x.push(n.bsCount[f]),A.push(n.tShift[f]),T.push(n.sCount[f]),n.sCount[f]-=n.blkIndent);break}v.push(n.bMarks[f]),x.push(n.bsCount[f]),A.push(n.tShift[f]),T.push(n.sCount[f]),n.sCount[f]=-1}for(E=n.blkIndent,n.blkIndent=0,y=n.push("blockquote_open","blockquote",1),y.markup=">",y.map=p=[r,0],n.md.block.tokenize(n,r,f),y=n.push("blockquote_close","blockquote",-1),y.markup=">",n.lineMax=F,n.parentType=_,p[1]=n.line,c=0;c<A.length;c++)n.bMarks[c+r]=v[c],n.tShift[c+r]=A[c],n.sCount[c+r]=T[c],n.bsCount[c+r]=x[c];return n.blkIndent=E,!0},Hs}var Us,jo;function Q$(){if(jo)return Us;jo=1;var e=le().isSpace;return Us=function(n,r,s,i){var a,o,c,l,h=n.bMarks[r]+n.tShift[r],d=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(a=n.src.charCodeAt(h++),a!==42&&a!==45&&a!==95))return!1;for(o=1;h<d;){if(c=n.src.charCodeAt(h++),c!==a&&!e(c))return!1;c===a&&o++}return o<3?!1:(i||(n.line=r+1,l=n.push("hr","hr",0),l.map=[r,n.line],l.markup=Array(o+1).join(String.fromCharCode(a))),!0)},Us}var qs,Vo;function K$(){if(Vo)return qs;Vo=1;var e=le().isSpace;function t(s,i){var a,o,c,l;return o=s.bMarks[i]+s.tShift[i],c=s.eMarks[i],a=s.src.charCodeAt(o++),a!==42&&a!==45&&a!==43||o<c&&(l=s.src.charCodeAt(o),!e(l))?-1:o}function n(s,i){var a,o=s.bMarks[i]+s.tShift[i],c=o,l=s.eMarks[i];if(c+1>=l||(a=s.src.charCodeAt(c++),a<48||a>57))return-1;for(;;){if(c>=l)return-1;if(a=s.src.charCodeAt(c++),a>=48&&a<=57){if(c-o>=10)return-1;continue}if(a===41||a===46)break;return-1}return c<l&&(a=s.src.charCodeAt(c),!e(a))?-1:c}function r(s,i){var a,o,c=s.level+2;for(a=i+2,o=s.tokens.length-2;a<o;a++)s.tokens[a].level===c&&s.tokens[a].type==="paragraph_open"&&(s.tokens[a+2].hidden=!0,s.tokens[a].hidden=!0,a+=2)}return qs=function(i,a,o,c){var l,h,d,p,f,g,v,x,E,_,T,A,I,N,O,y,U,F,P,$,j,w,H,Y,te,ce,ne,Q=a,Fe=!1,He=!0;if(i.sCount[Q]-i.blkIndent>=4||i.listIndent>=0&&i.sCount[Q]-i.listIndent>=4&&i.sCount[Q]<i.blkIndent)return!1;if(c&&i.parentType==="paragraph"&&i.sCount[Q]>=i.blkIndent&&(Fe=!0),(w=n(i,Q))>=0){if(v=!0,Y=i.bMarks[Q]+i.tShift[Q],I=Number(i.src.slice(Y,w-1)),Fe&&I!==1)return!1}else if((w=t(i,Q))>=0)v=!1;else return!1;if(Fe&&i.skipSpaces(w)>=i.eMarks[Q])return!1;if(c)return!0;for(A=i.src.charCodeAt(w-1),T=i.tokens.length,v?(ne=i.push("ordered_list_open","ol",1),I!==1&&(ne.attrs=[["start",I]])):ne=i.push("bullet_list_open","ul",1),ne.map=_=[Q,0],ne.markup=String.fromCharCode(A),H=!1,ce=i.md.block.ruler.getRules("list"),U=i.parentType,i.parentType="list";Q<o;){for(j=w,N=i.eMarks[Q],g=O=i.sCount[Q]+w-(i.bMarks[Q]+i.tShift[Q]);j<N;
141){if(l=i.src.charCodeAt(j),l===9)O+=4-(O+i.bsCount[Q])%4;else if(l===32)O++;else break;j++}if(h=j,h>=N?f=1:f=O-g,f>4&&(f=1),p=g+f,ne=i.push("list_item_open","li",1),ne.markup=String.fromCharCode(A),ne.map=x=[Q,0],v&&(ne.info=i.src.slice(Y,w-1)),$=i.tight,P=i.tShift[Q],F=i.sCount[Q],y=i.listIndent,i.listIndent=i.blkIndent,i.blkIndent=p,i.tight=!0,i.tShift[Q]=h-i.bMarks[Q],i.sCount[Q]=O,h>=N&&i.isEmpty(Q+1)?i.line=Math.min(i.line+2,o):i.md.block.tokenize(i,Q,o,!0),(!i.tight||H)&&(He=!1),H=i.line-Q>1&&i.isEmpty(i.line-1),i.blkIndent=i.listIndent,i.listIndent=y,i.tShift[Q]=P,i.sCount[Q]=F,i.tight=$,ne=i.push("list_item_close","li",-1),ne.markup=String.fromCharCode(A),Q=i.line,x[1]=Q,Q>=o||i.sCount[Q]<i.blkIndent||i.sCount[Q]-i.blkIndent>=4)break;for(te=!1,d=0,E=ce.length;d<E;d++)if(ce[d](i,Q,o,!0)){te=!0;break}if(te)break;if(v){if(w=n(i,Q),w<0)break;Y=i.bMarks[Q]+i.tShift[Q]}else if(w=t(i,Q),w<0)break;if(A!==i.src.charCodeAt(w-1))break}return v?ne=i.push("ordered_list_close","ol",-1):ne=i.push("bullet_list_close","ul",-1),ne.markup=String.fromCharCode(A),_[1]=Q,i.line=Q,i.parentType=U,He&&r(i,T),!0},qs}var $s,Go;function X$(){if(Go)return $s;Go=1;var e=le().normalizeReference,t=le().isSpace;return $s=function(r,s,i,a){var o,c,l,h,d,p,f,g,v,x,E,_,T,A,I,N,O=0,y=r.bMarks[s]+r.tShift[s],U=r.eMarks[s],F=s+1;if(r.sCount[s]-r.blkIndent>=4||r.src.charCodeAt(y)!==91)return!1;for(;++y<U;)if(r.src.charCodeAt(y)===93&&r.src.charCodeAt(y-1)!==92){if(y+1===U||r.src.charCodeAt(y+1)!==58)return!1;break}for(h=r.lineMax,I=r.md.block.ruler.getRules("reference"),x=r.parentType,r.parentType="reference";F<h&&!r.isEmpty(F);F++)if(!(r.sCount[F]-r.blkIndent>3)&&!(r.sCount[F]<0)){for(A=!1,p=0,f=I.length;p<f;p++)if(I[p](r,F,h,!0)){A=!0;break}if(A)break}for(T=r.getLines(s,F,r.blkIndent,!1).trim(),U=T.length,y=1;y<U;y++){if(o=T.charCodeAt(y),o===91)return!1;if(o===93){v=y;break}else o===10?O++:o===92&&(y++,y<U&&T.charCodeAt(y)===10&&O++)}if(v<0||T.charCodeAt(v+1)!==58)return!1;for(y=v+2;y<U;y++)if(o=T.charCodeAt(y),o===10)O++;else if(!t(o))break;if(E=r.md.helpers.parseLinkDestination(T,y,U),!E.ok||(d=r.md.normalizeLink(E.str),!r.md.validateLink(d)))return!1;for(y=E.pos,O+=E.lines,c=y,l=O,_=y;y<U;y++)if(o=T.charCodeAt(y),o===10)O++;else if(!t(o))break;for(E=r.md.helpers.parseLinkTitle(T,y,U),y<U&&_!==y&&E.ok?(N=E.str,y=E.pos,O+=E.lines):(N="",y=c,O=l);y<U&&(o=T.charCodeAt(y),!!t(o));)y++;if(y<U&&T.charCodeAt(y)!==10&&N)for(N="",y=c,O=l;y<U&&(o=T.charCodeAt(y),!!t(o));)y++;return y<U&&T.charCodeAt(y)!==10||(g=e(T.slice(1,v)),!g)?!1:(a||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[g]>"u"&&(r.env.references[g]={title:N,href:d}),r.parentType=x,r.line=s+O+1),!0)},$s}var zs,Wo;function Z$(){return Wo||(Wo=1,zs=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),zs}var lr={},Qo;function Oc(){if(Qo)return lr;Qo=1;var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",t="[^\"'=<>`\\x00-\\x20]+",n="'[^']*'",r='"[^"]*"',s="(?:"+t+"|"+n+"|"+r+")",i="(?:\\s+"+e+"(?:\\s*=\\s*"+s+")?)",a="<[A-Za-z][A-Za-z0-9\\-]*"+i+"*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",c="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",l="<[?][\\s\\S]*?[?]>",h="<![A-Z]+\\s+[^>]*>",d="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",p=new RegExp("^(?:"+a+"|"+o+"|"+c+"|"+l+"|"+h+"|"+d+")"),f=new RegExp("^(?:"+a+"|"+o+")");return lr.HTML_TAG_RE=p,lr.HTML_OPEN_CLOSE_TAG_RE=f,lr}var Ys,Ko;function J$(){if(Ko)return Ys;Ko=1;var e=Z$(),t=Oc().HTML_OPEN_CLOSE_TAG_RE,n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];return Ys=function(s,i,a,o){var c,l,h,d,p=s.bMarks[i]+s.tShift[i],f=s.eMarks[i];if(s.sCount[i]-s.blkIndent>
vendor: 4,135 bytes, line 141
141=4||!s.md.options.html||s.src.charCodeAt(p)!==60)return!1;for(d=s.src.slice(p,f),c=0;c<n.length&&!n[c][0].test(d);c++);if(c===n.length)return!1;if(o)return n[c][2];if(l=i+1,!n[c][1].test(d)){for(;l<a&&!(s.sCount[l]<s.blkIndent);l++)if(p=s.bMarks[l]+s.tShift[l],f=s.eMarks[l],d=s.src.slice(p,f),n[c][1].test(d)){d.length!==0&&l++;break}}return s.line=l,h=s.push("html_block","",0),h.map=[i,l],h.content=s.getLines(i,l,s.blkIndent,!0),!0},Ys}var js,Xo;function ez(){if(Xo)return js;Xo=1;var e=le().isSpace;return js=function(n,r,s,i){var a,o,c,l,h=n.bMarks[r]+n.tShift[r],d=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(a=n.src.charCodeAt(h),a!==35||h>=d))return!1;for(o=1,a=n.src.charCodeAt(++h);a===35&&h<d&&o<=6;)o++,a=n.src.charCodeAt(++h);return o>6||h<d&&!e(a)?!1:(i||(d=n.skipSpacesBack(d,h),c=n.skipCharsBack(d,35,h),c>h&&e(n.src.charCodeAt(c-1))&&(d=c),n.line=r+1,l=n.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[r,n.line],l=n.push("inline","",0),l.content=n.src.slice(h,d).trim(),l.map=[r,n.line],l.children=[],l=n.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)},js}var Vs,Zo;function tz(){return Zo||(Zo=1,Vs=function(t,n,r){var s,i,a,o,c,l,h,d,p,f=n+1,g,v=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(g=t.parentType,t.parentType="paragraph";f<r&&!t.isEmpty(f);f++)if(!(t.sCount[f]-t.blkIndent>3)){if(t.sCount[f]>=t.blkIndent&&(l=t.bMarks[f]+t.tShift[f],h=t.eMarks[f],l<h&&(p=t.src.charCodeAt(l),(p===45||p===61)&&(l=t.skipChars(l,p),l=t.skipSpaces(l),l>=h)))){d=p===61?1:2;break}if(!(t.sCount[f]<0)){for(i=!1,a=0,o=v.length;a<o;a++)if(v[a](t,f,r,!0)){i=!0;break}if(i)break}}return d?(s=t.getLines(n,f,t.blkIndent,!1).trim(),t.line=f+1,c=t.push("heading_open","h"+String(d),1),c.markup=String.fromCharCode(p),c.map=[n,t.line],c=t.push("inline","",0),c.content=s,c.map=[n,t.line-1],c.children=[],c=t.push("heading_close","h"+String(d),-1),c.markup=String.fromCharCode(p),t.parentType=g,!0):!1}),Vs}var Gs,Jo;function nz(){return Jo||(Jo=1,Gs=function(t,n,r){var s,i,a,o,c,l,h=n+1,d=t.md.block.ruler.getRules("paragraph");for(l=t.parentType,t.parentType="paragraph";h<r&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)&&!(t.sCount[h]<0)){for(i=!1,a=0,o=d.length;a<o;a++)if(d[a](t,h,r,!0)){i=!0;break}if(i)break}return s=t.getLines(n,h,t.blkIndent,!1).trim(),t.line=h,c=t.push("paragraph_open","p",1),c.map=[n,t.line],c=t.push("inline","",0),c.content=s,c.map=[n,t.line],c.children=[],c=t.push("paragraph_close","p",-1),t.parentType=l,!0}),Gs}var Ws,eu;function rz(){if(eu)return Ws;eu=1;var e=oa(),t=le().isSpace;function n(r,s,i,a){var o,c,l,h,d,p,f,g;for(this.src=r,this.md=s,this.env=i,this.tokens=a,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",c=this.src,g=!1,l=h=p=f=0,d=c.length;h<d;h++){if(o=c.charCodeAt(h),!g)if(t(o)){p++,o===9?f+=4-f%4:f++;continue}else g=!0;(o===10||h===d-1)&&(o!==10&&h++,this.bMarks.push(l),this.eMarks.push(h),this.tShift.push(p),this.sCount.push(f),this.bsCount.push(0),g=!1,p=0,f=0,l=h+1)}this.bMarks.push(c.length),this.eMarks.push(c.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return n.prototype.push=function(r,s,i){var a=new e(r,s,i);return a.block=!0,i<0&&this.level--,a.level=this.level,i>0&&this.level++,this.tokens.push(a),a},n.prototype.isEmpty=function(s){return this.bMarks[s]+this.tShift[s]>=this.eMarks[s]},n.prototype.skipEmptyLines=function(s){for(var i=this.lineMax;s<i&&!(this.bMarks[s]+this.tShift[s]<this.eMarks[s]);s++);return s},n.prototype.skipSpaces=function(s){for(var i,a=this.src.length;s<a&&(i=this.src.charCodeAt(s),!!t(i));s++);return s},n.prototype.skipSpacesBack=function(s,i){if(s<=i)return s;for(;s>i;)if(!t(this.src.charCodeAt(--s)))return s+1;return s},n.prototype.skipChars=function(s,i){for(var a=this.src.length;s<a&&this.src.charCodeAt(s)===i;s++);return s},n.prototype.skipCharsBack=function(s,i,a){if(s<=a)return s;for(;s>a;
141)if(i!==this.src.charCodeAt(--s))return s+1;return s},n.prototype.getLines=function(s,i,a,o){var c,l,h,d,p,f,g,v=s;if(s>=i)return"";for(f=new Array(i-s),c=0;v<i;v++,c++){for(l=0,g=d=this.bMarks[v],v+1<i||o?p=this.eMarks[v]+1:p=this.eMarks[v];d<p&&l<a;){if(h=this.src.charCodeAt(d),t(h))h===9?l+=4-(l+this.bsCount[v])%4:l++;else if(d-g<this.tShift[v])l++;else break;d++}l>a?f[c]=new Array(l-a+1).join(" ")+this.src.slice(d,p):f[c]=this.src.slice(d,p)}return f.join("")},n.prototype.Token=e,Ws=n,Ws}var Qs,tu;function sz(){if(tu)return Qs;tu=1;var e=aa(),t=[["table",j$(),["paragraph","reference"]],["code",V$()],["fence",G$(),["paragraph","reference","blockquote","list"]],["blockquote",W$(),["paragraph","reference","blockquote","list"]],["hr",Q$(),["paragraph","reference","blockquote","list"]],["list",K$(),["paragraph","reference","blockquote"]],["reference",X$()],["html_block",J$(),["paragraph","reference","blockquote"]],["heading",ez(),["paragraph","reference","blockquote"]],["lheading",tz()],["paragraph",nz()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1],{alt:(t[r][2]||[]).slice()})}return n.prototype.tokenize=function(r,s,i){for(var a,o,c,l=this.ruler.getRules(""),h=l.length,d=s,p=!1,f=r.md.options.maxNesting;d<i&&(r.line=d=r.skipEmptyLines(d),!(d>=i||r.sCount[d]<r.blkIndent));){if(r.level>=f){r.line=i;break}for(c=r.line,o=0;o<h;o++)if(a=l[o](r,d,i,!1),a){if(c>=r.line)throw new Error("block rule didn't increment state.line");break}if(!a)throw new Error("none of the block rules matched");r.tight=!p,r.isEmpty(r.line-1)&&(p=!0),d=r.line,d<i&&r.isEmpty(d)&&(p=!0,d++,r.line=d)}},n.prototype.parse=function(r,s,i,a){var o;r&&(o=new this.State(r,s,i,a),this.tokenize(o,o.line,o.lineMax))},n.prototype.State=rz(),Qs=n,Qs}var Ks,nu;function iz(){if(nu)return Ks;nu=1;function e(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}return Ks=function(n,r){for(var s=n.pos;s<n.posMax&&!e(n.src.charCodeAt(s));)s++;return s===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,s)),n.pos=s,!0)},Ks}var Xs,ru;function az(){if(ru)return Xs;ru=1;var e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;return Xs=function(n,r){var s,i,a,o,c,l,h,d;return!n.md.options.linkify||n.linkLevel>0||(s=n.pos,i=n.posMax,s+3>i)||n.src.charCodeAt(s)!==58||n.src.charCodeAt(s+1)!==47||n.src.charCodeAt(s+2)!==47||(a=n.pending.match(e),!a)||(o=a[1],c=n.md.linkify.matchAtStart(n.src.slice(s-o.length)),!c)||(l=c.url,l.length<=o.length)||(l=l.replace(/\*+$/,""),h=n.md.normalizeLink(l),!n.md.validateLink(h))?!1:(r||(n.pending=n.pending.slice(0,-o.length),d=n.push("link_open","a",1),d.attrs=[["href",h]],d.markup="linkify",d.info="auto",d=n.push("text","",0),d.content=n.md.normalizeLinkText(l),d=n.push("link_close","a",-1),d.markup="linkify",d.info="auto"),n.pos+=l.length-o.length,!0)},Xs}var Zs,su;function oz(){if(su)return Zs;su=1;var e=le().isSpace;return Zs=function(n,r){var s,i,a,o=n.pos;if(n.src.charCodeAt(o)!==10)return!1;if(s=n.pending.length-1,i=n.posMax,!r)if(s>=0&&n.pending.charCodeAt(s)===32)if(s>=1&&n.pending.charCodeAt(s-1)===32){for(a=s-1;a>=1&&n.pending.charCodeAt(a-1)===32;)a--;n.pending=n.pending.slice(0,a),n.push("hardbreak","br",0)}else n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0);else n.push("softbreak","br",0);for(o++;o<i&&e(n.src.charCodeAt(o));)o++;return n.pos=o,!0},Zs}var Js,iu;function uz(){if(iu)return Js;iu=1;for(var e=le().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),Js=function(s,i){var a,o,c,l,h,d=s.pos,p=s.posMax;if(s.src.charCodeAt(d)!==92||(d++,d>=p))return!1;if(a=s.src.charCodeAt(d),a===10){for(i||s.push("hardbreak","br",0),d++;d<p&&(a=s.src.charCodeAt(d),!!e(a));)d++;return s.pos=d,!0}return l=s.src[d],a>=55296&&a<=56319&&d+1<p&&(o=s.src.charCodeAt(d+1),o>=56320&&o<=57343&&(l+=s.src[d+1],d++)),c="\\"+l,i||(h=s.push("text_special","",0),a<256&&t[a]!==0?h.content=l:h.content=c,h.markup=c,h.info="escape"),s.pos=d+1,!0},Js}var ei,au;function cz(){return au||(au=1,ei=function(t,n){var r,s,i,a,o,c,l,h,d=t.pos,p=t.src.charCo
141deAt(d);if(p!==96)return!1;for(r=d,d++,s=t.posMax;d<s&&t.src.charCodeAt(d)===96;)d++;if(i=t.src.slice(r,d),l=i.length,t.backticksScanned&&(t.backticks[l]||0)<=r)return n||(t.pending+=i),t.pos+=l,!0;for(c=d;(o=t.src.indexOf("`",c))!==-1;){for(c=o+1;c<s&&t.src.charCodeAt(c)===96;)c++;if(h=c-o,h===l)return n||(a=t.push("code_inline","code",0),a.markup=i,a.content=t.src.slice(d,o).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=c,!0;t.backticks[h]=o}return t.backticksScanned=!0,n||(t.pending+=i),t.pos+=l,!0}),ei}var hr={},ou;function uu(){if(ou)return hr;ou=1,hr.tokenize=function(n,r){var s,i,a,o,c,l=n.pos,h=n.src.charCodeAt(l);if(r||h!==126||(i=n.scanDelims(n.pos,!0),o=i.length,c=String.fromCharCode(h),o<2))return!1;for(o%2&&(a=n.push("text","",0),a.content=c,o--),s=0;s<o;s+=2)a=n.push("text","",0),a.content=c+c,n.delimiters.push({marker:h,length:0,token:n.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return n.pos+=i.length,!0};function e(t,n){var r,s,i,a,o,c=[],l=n.length;for(r=0;r<l;r++)i=n[r],i.marker===126&&i.end!==-1&&(a=n[i.end],o=t.tokens[i.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=t.tokens[a.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&c.push(a.token-1));for(;c.length;){for(r=c.pop(),s=r+1;s<t.tokens.length&&t.tokens[s].type==="s_close";)s++;s--,r!==s&&(o=t.tokens[s],t.tokens[s]=t.tokens[r],t.tokens[r]=o)}}return hr.postProcess=function(n){var r,s=n.tokens_meta,i=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<i;r++)s[r]&&s[r].delimiters&&e(n,s[r].delimiters)},hr}var dr={},cu;function lu(){if(cu)return dr;cu=1,dr.tokenize=function(n,r){var s,i,a,o=n.pos,c=n.src.charCodeAt(o);if(r||c!==95&&c!==42)return!1;for(i=n.scanDelims(n.pos,c===42),s=0;s<i.length;s++)a=n.push("text","",0),a.content=String.fromCharCode(c),n.delimiters.push({marker:c,length:i.length,token:n.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return n.pos+=i.length,!0};function e(t,n){var r,s,i,a,o,c,l=n.length;for(r=l-1;r>=0;r--)s=n[r],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(i=n[s.end],c=r>0&&n[r-1].end===s.end+1&&n[r-1].marker===s.marker&&n[r-1].token===s.token-1&&n[s.end+1].token===i.token+1,o=String.fromCharCode(s.marker),a=t.tokens[s.token],a.type=c?"strong_open":"em_open",a.tag=c?"strong":"em",a.nesting=1,a.markup=c?o+o:o,a.content="",a=t.tokens[i.token],a.type=c?"strong_close":"em_close",a.tag=c?"strong":"em",a.nesting=-1,a.markup=c?o+o:o,a.content="",c&&(t.tokens[n[r-1].token].content="",t.tokens[n[s.end+1].token].content="",r--))}return dr.postProcess=function(n){var r,s=n.tokens_meta,i=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<i;r++)s[r]&&s[r].delimiters&&e(n,s[r].delimiters)},dr}var ti,hu;function lz(){if(hu)return ti;hu=1;var e=le().normalizeReference,t=le().isSpace;return ti=function(r,s){var i,a,o,c,l,h,d,p,f,g="",v="",x=r.pos,E=r.posMax,_=r.pos,T=!0;if(r.src.charCodeAt(r.pos)!==91||(l=r.pos+1,c=r.md.helpers.parseLinkLabel(r,r.pos,!0),c<0))return!1;if(h=c+1,h<E&&r.src.charCodeAt(h)===40){for(T=!1,h++;h<E&&(a=r.src.charCodeAt(h),!(!t(a)&&a!==10));h++);if(h>=E)return!1;if(_=h,d=r.md.helpers.parseLinkDestination(r.src,h,r.posMax),d.ok){for(g=r.md.normalizeLink(d.str),r.md.validateLink(g)?h=d.pos:g="",_=h;h<E&&(a=r.src.charCodeAt(h),!(!t(a)&&a!==10));h++);if(d=r.md.helpers.parseLinkTitle(r.src,h,r.posMax),h<E&&_!==h&&d.ok)for(v=d.str,h=d.pos;h<E&&(a=r.src.charCodeAt(h),!(!t(a)&&a!==10));h++);}(h>=E||r.src.charCodeAt(h)!==41)&&(T=!0),h++}if(T){if(typeof r.env.references>"u")return!1;if(h<E&&r.src.charCodeAt(h)===91?(_=h+1,h=r.md.helpers.parseLinkLabel(r,h),h>=0?o=r.src.slice(_,h++):h=c+1):h=c+1,o||(o=r.src.slice(l,c)),p=r.env.references[e(o)],!p)return r.pos=x,!1;g=p.href,v=p.title}return s||(r.pos=l,r.posMax=c,f=r.push("link_open","a",1),f.attrs=i=[["href",g]],v&&i.push(["title",v]),r.linkLevel++,r.md.inline.tokenize(r),r.linkLevel--,f=r.push("link_close","a",-1)),r.pos=h,r.posMax=E,!0},ti}var ni,du;function hz(){if(du)return ni;du=1;var e=le().normalizeReference,t=le().isSpace;return ni=function(r,s){var i,a,o,c,l,h,d,p,f,g,v,x,E,_="",T=r.pos,A=r.posMax;
141if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(h=r.pos+2,l=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),l<0))return!1;if(d=l+1,d<A&&r.src.charCodeAt(d)===40){for(d++;d<A&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);if(d>=A)return!1;for(E=d,f=r.md.helpers.parseLinkDestination(r.src,d,r.posMax),f.ok&&(_=r.md.normalizeLink(f.str),r.md.validateLink(_)?d=f.pos:_=""),E=d;d<A&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);if(f=r.md.helpers.parseLinkTitle(r.src,d,r.posMax),d<A&&E!==d&&f.ok)for(g=f.str,d=f.pos;d<A&&(a=r.src.charCodeAt(d),!(!t(a)&&a!==10));d++);else g="";if(d>=A||r.src.charCodeAt(d)!==41)return r.pos=T,!1;d++}else{if(typeof r.env.references>"u")return!1;if(d<A&&r.src.charCodeAt(d)===91?(E=d+1,d=r.md.helpers.parseLinkLabel(r,d),d>=0?c=r.src.slice(E,d++):d=l+1):d=l+1,c||(c=r.src.slice(h,l)),p=r.env.references[e(c)],!p)return r.pos=T,!1;_=p.href,g=p.title}return s||(o=r.src.slice(h,l),r.md.inline.parse(o,r.md,r.env,x=[]),v=r.push("image","img",0),v.attrs=i=[["src",_],["alt",""]],v.children=x,v.content=o,g&&i.push(["title",g])),r.pos=d,r.posMax=A,!0},ni}var ri,fu;function dz(){if(fu)return ri;fu=1;var e=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,t=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;return ri=function(r,s){var i,a,o,c,l,h,d=r.pos;if(r.src.charCodeAt(d)!==60)return!1;for(l=r.pos,h=r.posMax;;){if(++d>=h||(c=r.src.charCodeAt(d),c===60))return!1;if(c===62)break}return i=r.src.slice(l+1,d),t.test(i)?(a=r.md.normalizeLink(i),r.md.validateLink(a)?(s||(o=r.push("link_open","a",1),o.attrs=[["href",a]],o.markup="autolink",o.info="auto",o=r.push("text","",0),o.content=r.md.normalizeLinkText(i),o=r.push("link_close","a",-1),o.markup="autolink",o.info="auto"),r.pos+=i.length+2,!0):!1):e.test(i)?(a=r.md.normalizeLink("mailto:"+i),r.md.validateLink(a)?(s||(o=r.push("link_open","a",1),o.attrs=[["href",a]],o.markup="autolink",o.info="auto",o=r.push("text","",0),o.content=r.md.normalizeLinkText(i),o=r.push("link_close","a",-1),o.markup="autolink",o.info="auto"),r.pos+=i.length+2,!0):!1):!1},ri}var si,pu;function fz(){if(pu)return si;pu=1;var e=Oc().HTML_TAG_RE;function t(s){return/^<a[>\s]/i.test(s)}function n(s){return/^<\/a\s*>/i.test(s)}function r(s){var i=s|32;return i>=97&&i<=122}return si=function(i,a){var o,c,l,h,d=i.pos;return!i.md.options.html||(l=i.posMax,i.src.charCodeAt(d)!==60||d+2>=l)||(o=i.src.charCodeAt(d+1),o!==33&&o!==63&&o!==47&&!r(o))||(c=i.src.slice(d).match(e),!c)?!1:(a||(h=i.push("html_inline","",0),h.content=c[0],t(h.content)&&i.linkLevel++,n(h.content)&&i.linkLevel--),i.pos+=c[0].length,!0)},si}var ii,mu;function pz(){if(mu)return ii;mu=1;var e=Nc(),t=le().has,n=le().isValidEntityCode,r=le().fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,i=/^&([a-z][a-z0-9]{1,31});/i;return ii=function(o,c){var l,h,d,p,f=o.pos,g=o.posMax;if(o.src.charCodeAt(f)!==38||f+1>=g)return!1;if(l=o.src.charCodeAt(f+1),l===35){if(d=o.src.slice(f).match(s),d)return c||(h=d[1][0].toLowerCase()==="x"?parseInt(d[1].slice(1),16):parseInt(d[1],10),p=o.push("text_special","",0),p.content=n(h)?r(h):r(65533),p.markup=d[0],p.info="entity"),o.pos+=d[0].length,!0}else if(d=o.src.slice(f).match(i),d&&t(e,d[1]))return c||(p=o.push("text_special","",0),p.content=e[d[1]],p.markup=d[0],p.info="entity"),o.pos+=d[0].length,!0;return!1},ii}var ai,gu;function mz(){if(gu)return ai;gu=1;function e(t){var n,r,s,i,a,o,c,l,h={},d=t.length;if(d){var p=0,f=-2,g=[];for(n=0;n<d;n++)if(s=t[n],g.push(0),(t[p].marker!==s.marker||f!==s.token-1)&&(p=n),f=s.token,s.length=s.length||0,!!s.close){for(h.hasOwnProperty(s.marker)||(h[s.marker]=[-1,-1,-1,-1,-1,-1]),a=h[s.marker][(s.open?3:0)+s.length%3],r=p-g[p]-1,o=r;r>a;r-=g[r]+1)if(i=t[r],i.marker===s.marker&&i.open&&i.end<0&&(c=!1,(i.close||s.open)&&(i.length+s.length)%3===0&&(i.length%3!==0||s.length%3!==0)&&(c=!0),!c)){l=r>0&&!t[r-1].open?g[r-1]+1:0,g[n]=n-r+l,g[r]=l,s.open=!1,i.end=n,i.close=!1,o=-1,f=-2;break}o!==-1&&(h[s.marker][(s.open?3:0)+(s.length||0)%3]=o)}}}return ai=function(n){var r,s=n.tokens_meta,i=n.tokens_meta.length;for(e(n.delimiters),r=0;r<i;r++)s[r]&&s[r].delimiters&&e(s[r].delimiters)},ai}var oi,Eu;function gz(){return Eu||(Eu=1,oi=function(t){var n,r,s=0,i=t.tokens,a=t.tokens.length;for(n=r=0;n<a;n++)i[n].nesting<0&&s--,i[n].level=s,i[n].nesting>0&&s++,i[n].type==="text"&&n+1<a&&i[n+1].type==="text"?i[n+1].content=i[n].content+i[n+1].content:(n!==r&&(i[r]=i[n]),r++);n!==r&&(i.length=r)}),oi}var ui,bu;function Ez(){if(bu)return ui;bu=1;var e=oa(),t=le().isWhiteSpace,n=le().isPunctChar,r=le().isMdAsciiPunct;function s(i,a,o,c){this.src=i,this.env=o,this.md=a,this.tokens=c,this.tokens_meta=Array(c.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}return s.prototype.pushPending=function(){var i=new e("text","",0);return i.content=this.pending,i.level=this.pendingLevel,this.tokens.push(i),this.pending="",i},s.prototype.push=function(i,a,o){this.pending&&this.pushPending();var c=new e(i,a,o),l=null;return o<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),c.level=this.level,o>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],l={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(c),this.tokens_meta.push(l),c},s.prototype.scanDelims=function(i,a){var o=i,c,l,h,d,p,f,g,v,x,E=!0,_=!0,T=this.posMax,A=this.src.charCo
141deAt(i);for(c=i>0?this.src.charCodeAt(i-1):32;o<T&&this.src.charCodeAt(o)===A;)o++;return h=o-i,l=o<T?this.src.charCodeAt(o):32,g=r(c)||n(String.fromCharCode(c)),x=r(l)||n(String.fromCharCode(l)),f=t(c),v=t(l),v?E=!1:x&&(f||g||(E=!1)),f?_=!1:g&&(v||x||(_=!1)),a?(d=E,p=_):(d=E&&(!_||g),p=_&&(!E||x)),{can_open:d,can_close:p,length:h}},s.prototype.Token=e,ui=s,ui}var ci,Tu;function bz(){if(Tu)return ci;Tu=1;var e=aa(),t=[["text",iz()],["linkify",az()],["newline",oz()],["escape",uz()],["backticks",cz()],["strikethrough",uu().tokenize],["emphasis",lu().tokenize],["link",lz()],["image",hz()],["autolink",dz()],["html_inline",fz()],["entity",pz()]],n=[["balance_pairs",mz()],["strikethrough",uu().postProcess],["emphasis",lu().postProcess],["fragments_join",gz()]];function r(){var s;for(this.ruler=new e,s=0;s<t.length;s++)this.ruler.push(t[s][0],t[s][1]);for(this.ruler2=new e,s=0;s<n.length;s++)this.ruler2.push(n[s][0],n[s][1])}return r.prototype.skipToken=function(s){var i,a,o=s.pos,c=this.ruler.getRules(""),l=c.length,h=s.md.options.maxNesting,d=s.cache;if(typeof d[o]<"u"){s.pos=d[o];return}if(s.level<h){for(a=0;a<l;a++)if(s.level++,i=c[a](s,!0),s.level--,i){if(o>=s.pos)throw new Error("inline rule didn't increment state.pos");break}}else s.pos=s.posMax;i||s.pos++,d[o]=s.pos},r.prototype.tokenize=function(s){for(var i,a,o,c=this.ruler.getRules(""),l=c.length,h=s.posMax,d=s.md.options.maxNesting;s.pos<h;){if(o=s.pos,s.level<d){for(a=0;a<l;a++)if(i=c[a](s,!1),i){if(o>=s.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(s.pos>=h)break;continue}s.pending+=s.src[s.pos++]}s.pending&&s.pushPending()},r.prototype.parse=function(s,i,a,o){var c,l,h,d=new this.State(s,i,a,o);for(this.tokenize(d),l=this.ruler2.getRules(""),h=l.length,c=0;c<h;c++)l[c](d)},r.prototype.State=Ez(),ci=r,ci}var li,_u;function Tz(){return _u||(_u=1,li=function(e){var t={};e=e||{},t.src_Any=Rc().source,t.src_Cc=Lc().source,t.src_Z=wc().source,t.src_P=ia().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:
141/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),li}var hi,Au;function _z(){if(Au)return hi;Au=1;function e(T){var A=Array.prototype.slice.call(arguments,1);return A.forEach(function(I){I&&Object.keys(I).forEach(function(N){T[N]=I[N]})}),T}function t(T){return Object.prototype.toString.call(T)}function n(T){return t(T)==="[object String]"}function r(T){return t(T)==="[object Object]"}function s(T){return t(T)==="[object RegExp]"}function i(T){return t(T)==="[object Function]"}function a(T){return T.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function c(T){return Object.keys(T||{}).reduce(function(A,I){return A||o.hasOwnProperty(I)},!1)}var l={"http:":{validate:function(T,A,I){var N=T.slice(A);return I.re.http||(I.re.http=new RegExp("^\\/\\/"+I.re.src_auth+I.re.src_host_port_strict+I.re.src_path,"i")),I.re.http.test(N)?N.match(I.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(T,A,I){var N=T.slice(A);return I.re.no_http||(I.re.no_http=new RegExp("^"+I.re.src_auth+"(?:localhost|(?:(?:"+I.re.src_domain+")\\.)+"+I.re.src_domain_root+")"+I.re.src_port+I.re.src_host_terminator+I.re.src_path,"i")),I.re.no_http.test(N)?A>=3&&T[A-3]===":"||A>=3&&T[A-3]==="/"?0:N.match(I.re.no_http)[0].length:0}},"mailto:":{validate:function(T,A,I){var N=T.slice(A);return I.re.mailto||(I.re.mailto=new RegExp("^"+I.re.src_email_name+"@"+I.re.src_host_strict,"i")),I.re.mailto.test(N)?N.match(I.re.mailto)[0].length:0}}},h="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",d="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(T){T.__index__=-1,T.__text_cache__=""}function f(T){return function(A,I){var N=A.slice(I);return T.test(N)?N.match(T)[0].length:0}}function g(){return function(T,A){A.normalize(T)}}function v(T){var A=T.re=Tz()(T.__opts__),I=T.__tlds__.slice();T.onCompile(),T.__tlds_replaced__||I.push(h),I.push(A.src_xn),A.src_tlds=I.join("|");function N(F){return F.replace("%TLDS%",A.src_tlds)}A.email_fuzzy=RegExp(N(A.tpl_email_fuzzy),"i"),A.link_fuzzy=RegExp(N(A.tpl_link_fuzzy),"i"),A.link_no_ip_fuzzy=RegExp(N(A.tpl_link_no_ip_fuzzy),"i"),A.host_fuzzy_test=RegExp(N(A.tpl_host_fuzzy_test),"i");var O=[];T.__compiled__={};function y(F,P){throw new Error('(LinkifyIt) Invalid schema "'+F+'": '+P)}Object.keys(T.__schemas__).forEach(function(F){var P=T.__schemas__[F];if(P!==null){var $={validate:null,link:null};if(T.__compiled__[F]=$,r(P)){s(P.validate)?$.validate=f(P.validate):i(P.validate)?$.validate=P.validate:y(F,P),i(P.normalize)?$.normalize=P.normalize:P.normalize?y(F,P):$.normalize=g();return}if(n(P)){O.push(F);return}y(F,P)}}),O.forEach(function(F){T.__compiled__[T.__schemas__[F]]&&(T.__compiled__[F].validate=T.__compiled__[T.__schemas__[F]].validate,T.__compiled__[F].normalize=T.__compiled__[T.__schemas__[F]].normalize)}),T.__compiled__[""]={validate:null,normalize:g()};var U=Object.keys(T.__compiled__).filter(function(F){return F.length>0&&T.__compiled__[F]}).map(a).join("|");T.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+U+")","i"),T.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+U+")","ig"),T.re.schema_at_start=RegExp("^"+T.re.schema_search.source,"i"),T.re.pretest=RegExp("("+T.re.schema_test.source+")|("+T.re.host_fuzzy_test.source+")|@","i"),p(T)}function x(T,A){var I=T.__index__,N=T.__last_index__,O=T.__text_cache__.slice(I,N);this.schema=T.__schema__.toLowerCase(),this.index=I+A,this.lastIndex=N+A,this.raw=O,this.text=O,this.url=O}function E(T,A){var I=new x(T,A);return T.__compiled__[I.schema].normalize(I,T),I}function _(T,A){if(!(this instanceof _))return new _(T,A);A||c(T)&&(A=T,T={}),this.__opts__=e({},o,A),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},l,T),this.__compiled__={},this.__tlds__=d,this.__tlds_replaced__=!1,this.re={},v(this)}return _.prototype.add=function(A,I){return this.__schemas__[A]=I,v(this),this},_.prototype.set=function(A){return this.__opts__=e(this.__opts__,A),this},_.prototype.test=function(A){if(this.__text_cache__=A,this.__index__=-1,!A.length)return!1;var I,N,O,y,U,F,P,$,j;if(this.re.schema_test.test(A)){for(P=this.re.schema_search,P.lastIndex=0;
141(I=P.exec(A))!==null;)if(y=this.testSchemaAt(A,I[2],P.lastIndex),y){this.__schema__=I[2],this.__index__=I.index+I[1].length,this.__last_index__=I.index+I[0].length+y;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&($=A.search(this.re.host_fuzzy_test),$>=0&&(this.__index__<0||$<this.__index__)&&(N=A.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(U=N.index+N[1].length,(this.__index__<0||U<this.__index__)&&(this.__schema__="",this.__index__=U,this.__last_index__=N.index+N[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(j=A.indexOf("@"),j>=0&&(O=A.match(this.re.email_fuzzy))!==null&&(U=O.index+O[1].length,F=O.index+O[0].length,(this.__index__<0||U<this.__index__||U===this.__index__&&F>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=U,this.__last_index__=F))),this.__index__>=0},_.prototype.pretest=function(A){return this.re.pretest.test(A)},_.prototype.testSchemaAt=function(A,I,N){return this.__compiled__[I.toLowerCase()]?this.__compiled__[I.toLowerCase()].validate(A,N,this):0},_.prototype.match=function(A){var I=0,N=[];this.__index__>=0&&this.__text_cache__===A&&(N.push(E(this,I)),I=this.__last_index__);for(var O=I?A.slice(I):A;this.test(O);)N.push(E(this,I)),O=O.slice(this.__last_index__),I+=this.__last_index__;return N.length?N:null},_.prototype.matchAtStart=function(A){if(this.__text_cache__=A,this.__index__=-1,!A.length)return null;var I=this.re.schema_at_start.exec(A);if(!I)return null;var N=this.testSchemaAt(A,I[2],I[0].length);return N?(this.__schema__=I[2],this.__index__=I.index+I[1].length,this.__last_index__=I.index+I[0].length+N,E(this,0)):null},_.prototype.tlds=function(A,I){return A=Array.isArray(A)?A:[A],I?(this.__tlds__=this.__tlds__.concat(A).sort().filter(function(N,O,y){return N!==y[O-1]}).reverse(),v(this),this):(this.__tlds__=A.slice(),this.__tlds_replaced__=!0,v(this),this)},_.prototype.normalize=function(A){A.schema||(A.url="http://"+A.url),A.schema==="mailto:"&&!/^mailto:/i.test(A.url)&&(A.url="mailto:"+A.url)},_.prototype.onCompile=function(){},hi=_,hi}const cn=2147483647,ht=36,ua=1,qn=26,Az=38,Cz=700,Mc=72,Pc=128,Fc="-",kz=/^xn--/,xz=/[^\0-\x7F]/,vz=/[\x2E\u3002\uFF0E\uFF61]/g,Sz={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},di=ht-ua,dt=Math.floor,fi=String.fromCharCode;function Lt(e){throw new RangeError(Sz[e])}function yz(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Bc(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(vz,".");const s=e.split("."),i=yz(s,t).join(".");return r+i}function ca(e){const t=[];let n=0;const r=e.length;for(;n<r;){const s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((s&1023)<<10)+(i&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}const Hc=e=>String.fromCodePoint(...e),Iz=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ht},Cu=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Uc=function(e,t,n){let r=0;for(e=n?dt(e/Cz):e>>1,e+=dt(e/t);e>di*qn>>1;r+=ht)e=dt(e/di);return dt(r+(di+1)*e/(e+Az))},la=function(e){const t=[],n=e.length;let r=0,s=Pc,i=Mc,a=e.lastIndexOf(Fc);a<0&&(a=0);for(let o=0;o<a;++o)e.charCodeAt(o)>=128&&Lt("not-basic"),t.push(e.charCodeAt(o));for(let o=a>0?a+1:0;o<n;){const c=r;for(let h=1,d=ht;;d+=ht){o>=n&&Lt("invalid-input");const p=Iz(e.charCodeAt(o++));p>=ht&&Lt("invalid-input"),p>dt((cn-r)/h)&&Lt("overflow"),r+=p*h;const f=d<=i?ua:d>=i+qn?qn:d-i;if(p<f)break;const g=ht-f;h>dt(cn/g)&&Lt("overflow"),h*=g}const l=t.length+1;i=Uc(r-c,l,c==0),dt(r/l)>cn-s&&Lt("overflow"),s+=dt(r/l),r%=l,t.splice(r++,0,s)}return String.fromCodePoint(...t)},ha=function(e){const t=[];e=ca(e);const n=e.length;let r=Pc,s=0,i=Mc;for(const c of e)c<128&&t.push(fi(c));const a=t.length;let o=a;
141for(a&&t.push(Fc);o<n;){let c=cn;for(const h of e)h>=r&&h<c&&(c=h);const l=o+1;c-r>dt((cn-s)/l)&&Lt("overflow"),s+=(c-r)*l,r=c;for(const h of e)if(h<r&&++s>cn&&Lt("overflow"),h===r){let d=s;for(let p=ht;;p+=ht){const f=p<=i?ua:p>=i+qn?qn:p-i;if(d<f)break;const g=d-f,v=ht-f;t.push(fi(Cu(f+g%v,0))),d=dt(g/v)}t.push(fi(Cu(d,0))),i=Uc(s,l,o===a),s=0,++o}++s,++r}return t.join("")},qc=function(e){return Bc(e,function(t){return kz.test(t)?la(t.slice(4).toLowerCase()):t})},$c=function(e){return Bc(e,function(t){return xz.test(t)?"xn--"+ha(t):t})},Nz={version:"2.1.0",ucs2:{decode:ca,encode:Hc},decode:la,encode:ha,toASCII:$c,toUnicode:qc},Dz=Object.freeze(Object.defineProperty({__proto__:null,decode:la,default:Nz,encode:ha,toASCII:$c,toUnicode:qc,ucs2decode:ca,ucs2encode:Hc},Symbol.toStringTag,{value:"Module"})),Rz=dh(Dz);var pi,ku;function Lz(){return ku||(ku=1,pi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),pi}var mi,xu;function wz(){return xu||(xu=1,mi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}),mi}var gi,vu;function Oz(){return vu||(vu=1,gi={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}),gi}var Ei,Su;function Mz(){if(Su)return Ei;Su=1;var e=le(),t=O$(),n=M$(),r=Y$(),s=sz(),i=bz(),a=_z(),o=Dc(),c=Rz,l={default:Lz(),zero:wz(),commonmark:Oz()},h=/^(vbscript|javascript|file|data):/,d=/^data:image\/(gif|png|jpeg|webp);/;function p(E){var _=E.trim().toLowerCase();return h.test(_)?!!d.test(_):!0}var f=["http:","https:","mailto:"];function g(E){var _=o.parse(E,!0);if(_.hostname&&(!_.protocol||f.indexOf(_.protocol)>=0))try{_.hostname=c.toASCII(_.hostname)}catch{}return o.encode(o.format(_))}function v(E){var _=o.parse(E,!0);if(_.hostname&&(!_.protocol||f.indexOf(_.protocol)>=0))try{_.hostname=c.toUnicode(_.hostname)}catch{}return o.decode(o.format(_),o.decode.defaultChars+"%")}function x(E,_){if(!(this instanceof x))return new x(E,_);_||e.isString(E)||(_=E||{},E="default"),this.inline=new i,this.block=new s,this.core=new r,this.renderer=new n,this.linkify=new a,this.validateLink=p,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(E),_&&this.set(_)}return x.prototype.set=function(E){return e.assign(this.options,E),this},x.prototype.configure=function(E){var _=this,T;if(e.isString(E)&&(T=E,E=l[T],!E))throw new Error('Wrong `markdown-it` preset "'+T+'", check name');if(!E)throw new Error("Wrong `markdown-it` preset, can't be empty");return E.options&&_.set(E.options),E.components&&Object.keys(E.components).forEach(function(A){E.components[A].rules&&_[A].ruler.enableOnly(E.components[A].rules),E.components[A].rules2&&_[A].ruler2.enableO
141nly(E.components[A].rules2)}),this},x.prototype.enable=function(E,_){var T=[];Array.isArray(E)||(E=[E]),["core","block","inline"].forEach(function(I){T=T.concat(this[I].ruler.enable(E,!0))},this),T=T.concat(this.inline.ruler2.enable(E,!0));var A=E.filter(function(I){return T.indexOf(I)<0});if(A.length&&!_)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+A);return this},x.prototype.disable=function(E,_){var T=[];Array.isArray(E)||(E=[E]),["core","block","inline"].forEach(function(I){T=T.concat(this[I].ruler.disable(E,!0))},this),T=T.concat(this.inline.ruler2.disable(E,!0));var A=E.filter(function(I){return T.indexOf(I)<0});if(A.length&&!_)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+A);return this},x.prototype.use=function(E){var _=[this].concat(Array.prototype.slice.call(arguments,1));return E.apply(E,_),this},x.prototype.parse=function(E,_){if(typeof E!="string")throw new Error("Input data should be a String");var T=new this.core.State(E,this,_);return this.core.process(T),T.tokens},x.prototype.render=function(E,_){return _=_||{},this.renderer.render(this.parse(E,_),this.options,_)},x.prototype.parseInline=function(E,_){var T=new this.core.State(E,this,_);return T.inlineMode=!0,this.core.process(T),T.tokens},x.prototype.renderInline=function(E,_){return _=_||{},this.renderer.render(this.parseInline(E,_),this.options,_)},Ei=x,Ei}var bi,yu;function Pz(){return yu||(yu=1,bi=Mz()),bi}var Fz=Pz();const Bz=Wr(Fz);var Ti,Iu;function Hz(){return Iu||(Iu=1,Ti=function(t){var n=t.utils.isSpace;function r(a,o){var c,l,h=a.bMarks[o]+a.tShift[o],d=a.eMarks[o];return h>=d||(l=a.src.charCodeAt(h++),l!==126&&l!==58)||(c=a.skipSpaces(h),h===c)||c>=d?-1:h}function s(a,o){var c,l,h=a.level+2;for(c=o+2,l=a.tokens.length-2;c<l;c++)a.tokens[c].level===h&&a.tokens[c].type==="paragraph_open"&&(a.tokens[c+2].hidden=!0,a.tokens[c].hidden=!0,c+=2)}function i(a,o,c,l){var h,d,p,f,g,v,x,E,_,T,A,I,N,O,y,U,F,P,$,j;if(l)return a.ddIndent<0?!1:r(a,o)>=0;if(_=o+1,_>=c||a.isEmpty(_)&&(_++,_>=c)||a.sCount[_]<a.blkIndent||(d=r(a,_),d<0))return!1;x=a.tokens.length,$=!0,j=a.push("dl_open","dl",1),j.map=v=[o,0],f=o,p=_;e:for(;;){for(P=!1,j=a.push("dt_open","dt",1),j.map=[f,f],j=a.push("inline","",0),j.map=[f,f],j.content=a.getLines(f,f+1,a.blkIndent,!1).trim(),j.children=[],j=a.push("dt_close","dt",-1);;){for(j=a.push("dd_open","dd",1),j.map=g=[_,0],F=d,E=a.eMarks[p],T=a.sCount[p]+d-(a.bMarks[p]+a.tShift[p]);F<E&&(h=a.src.charCodeAt(F),n(h));){h===9?T+=4-T%4:T++;F++}if(d=F,U=a.tight,A=a.ddIndent,I=a.blkIndent,y=a.tShift[p],O=a.sCount[p],N=a.parentType,a.blkIndent=a.ddIndent=a.sCount[p]+2,a.tShift[p]=d-a.bMarks[p],a.sCount[p]=T,a.tight=!0,a.parentType="deflist",a.md.block.tokenize(a,p,c,!0),(!a.tight||P)&&($=!1),P=a.line-p>1&&a.isEmpty(a.line-1),a.tShift[p]=y,a.sCount[p]=O,a.tight=U,a.parentType=N,a.blkIndent=I,a.ddIndent=A,j=a.push("dd_close","dd",-1),g[1]=_=a.line,_>=c||a.sCount[_]<a.blkIndent)break e;if(d=r(a,_),d<0)break;p=_}if(_>=c||(f=_,a.isEmpty(f))||a.sCount[f]<a.blkIndent||(p=f+1,p>=c)||(a.isEmpty(p)&&p++,p>=c)||a.sCount[p]<a.blkIndent||(d=r(a,p),d<0))break}return j=a.push("dl_close","dl",-1),v[1]=_,a.line=_,$&&s(a,x),!0}t.block.ruler.before("paragraph","deflist",i,{alt:["paragraph","reference","blockquote"]})}),Ti}var Uz=Hz();const qz=Wr(Uz);var _i,Nu;function $z(){return Nu||(Nu=1,_i=function(t,n,r){function s(f){return f.trim().split(" ",2)[0]===n}function i(f,g,v,x,E){return f[g].nesting===1&&f[g].attrJoin("class",n),E.renderToken(f,g,v,x,E)}r=r||{};var a=3,o=r.marker||":",c=o.charCodeAt(0),l=o.length,h=r.validate||s,d=r.render||i;function p(f,g,v,x){var E,_,T,A,I,N,O,y,U=!1,F=f.bMarks[g]+f.tShift[g],P=f.eMarks[g];if(c!==f.src.charCodeAt(F))return!1;for(E=F+1;E<=P&&o[(E-F)%l]===f.src[E];E++);if(T=Math.floor((E-F)/l),T<a||(E-=(E-F)%l,A=f.src.slice(F,E),I=f.src.slice(E,P),!h(I,A)))return!1;if(x)return!0;for(_=g;_++,!(_>=v||(F=f.bMarks[_]+f.tShift[_],P=f.eMarks[_],F<P&&f.sCount[_]<f.blkIndent));)if(c===f.src.charCodeAt(F)&&!(f.sCount[_]-f.blkIndent>=4)){for(E=F+1;E<=P&&o[(E-F)%l]===f.src[E];E++);if(!(Math.floor((E-F)/l)<T)&&(E-=(E-F)%l,E=f.skipSpaces(E),!(E<P))){U=!0;break}}return O=f.parentType,y=f.lineMax,f.parentType="container",f.lineMax=_,N=f.push("container_"+n+"_open","div",1),N.markup=A,N.block=!0,N.info=I,N.map=[g,_],f.md.block.tokenize(f,g+1,_),N=f.push("container_"+n+"_close","div",-1),N.markup=f.src.slice(F,E),N.block=!0,f.parentType=O,f.lineMax=y,f.line=_+(U?1:0),!0}t.block.ruler.before("fence","container_"+n,p,{alt:["paragraph","reference","blockquote","list"]}),t.renderer.rules["container_"+n+"_open"]=d,t.renderer.rules["container_"+n+"_close"]=d}),_i}var zz=$z();const fr=Wr(zz);
141function Yz(e){function t(r,s){const i=r.pos,a=r.src.charCodeAt(i);if(s||a!==43)return!1;const o=r.scanDelims(r.pos,!0);let c=o.length;const l=String.fromCharCode(a);if(c<2)return!1;if(c%2){const h=r.push("text","",0);h.content=l,c--}for(let h=0;h<c;h+=2){const d=r.push("text","",0);d.content=l+l,!(!o.can_open&&!o.can_close)&&r.delimiters.push({marker:a,length:0,jump:h/2,token:r.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return r.pos+=o.length,!0}function n(r,s){let i;const a=[],o=s.length;for(let c=0;c<o;c++){const l=s[c];if(l.marker!==43||l.end===-1)continue;const h=s[l.end];i=r.tokens[l.token],i.type="ins_open",i.tag="ins",i.nesting=1,i.markup="++",i.content="",i=r.tokens[h.token],i.type="ins_close",i.tag="ins",i.nesting=-1,i.markup="++",i.content="",r.tokens[h.token-1].type==="text"&&r.tokens[h.token-1].content==="+"&&a.push(h.token-1)}for(;a.length;){const c=a.pop();let l=c+1;for(;l<r.tokens.length&&r.tokens[l].type==="ins_close";)l++;l--,c!==l&&(i=r.tokens[l],r.tokens[l]=r.tokens[c],r.tokens[c]=i)}}e.inline.ruler.before("emphasis","ins",t),e.inline.ruler2.before("emphasis","ins",function(r){const s=r.tokens_meta,i=(r.tokens_meta||[]).length;n(r,r.delimiters);for(let a=0;a<i;a++)s[a]&&s[a].delimiters&&n(r,s[a].delimiters)})}function jz(e){function t(r,s){const i=r.pos,a=r.src.charCodeAt(i);if(s||a!==61)return!1;const o=r.scanDelims(r.pos,!0);let c=o.length;const l=String.fromCharCode(a);if(c<2)return!1;if(c%2){const h=r.push("text","",0);h.content=l,c--}for(let h=0;h<c;h+=2){const d=r.push("text","",0);d.content=l+l,!(!o.can_open&&!o.can_close)&&r.delimiters.push({marker:a,length:0,jump:h/2,token:r.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return r.pos+=o.length,!0}function n(r,s){const i=[],a=s.length;for(let o=0;o<a;o++){const c=s[o];if(c.marker!==61||c.end===-1)continue;const l=s[c.end],h=r.tokens[c.token];h.type="mark_open",h.tag="mark",h.nesting=1,h.markup="==",h.content="";const d=r.tokens[l.token];d.type="mark_close",d.tag="mark",d.nesting=-1,d.markup="==",d.content="",r.tokens[l.token-1].type==="text"&&r.tokens[l.token-1].content==="="&&i.push(l.token-1)}for(;i.length;){const o=i.pop();let c=o+1;for(;c<r.tokens.length&&r.tokens[c].type==="mark_close";)c++;if(c--,o!==c){const l=r.tokens[c];r.tokens[c]=r.tokens[o],r.tokens[o]=l}}}e.inline.ruler.before("emphasis","mark",t),e.inline.ruler2.before("emphasis","mark",function(r){let s;const i=r.tokens_meta,a=(r.tokens_meta||[]).length;for(n(r,r.delimiters),s=0;s<a;s++)i[s]&&i[s].delimiters&&n(r,i[s].delimiters)})}const da={xml:!1,decodeEntities:!0},Du={_useHtmlParser2:!0,xmlMode:!0};function qi(e){return e?.xml?typeof e.xml=="boolean"?Du:{...Du,...e.xml}:e??void 0}var ue;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(ue||(ue={}));function Vz(e){return e.type===ue.Tag||e.type===ue.Script||e.type===ue.Style}const Gz=ue.Root,Wz=ue.Text,Qz=ue.Directive,Kz=ue.Comment,Xz=ue.Script,Zz=ue.Style,Jz=ue.Tag,eY=ue.CDATA,tY=ue.Doctype;class zc{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Fr(this,t)}}class fa extends zc{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class $n extends fa{constructor(){super(...arguments),this.type=ue.Text}get nodeType(){return 3}}class pa extends fa{constructor(){super(...arguments),this.type=ue.Comment}get nodeType(){return 8}}class ma extends fa{constructor(t,n){super(n),this.name=t,this.type=ue.Directive}get nodeType(){return 1}}class ga extends zc{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class Yc extends ga{constructor(){super(...arguments),this.type=ue.CDATA}get nodeType(){return 4}}class jt extends ga{constructor(){super(...arguments),this.type=ue.Root}get nodeType(){return 9}}let Ea=class extends ga{constructor(t,n,r=[],s=t==="script"?ue.Script:t==="style"?ue.Style:ue.Tag){super(r),this.name=t,this.attribs=n,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var n,r;return{name:t,value:this.attribs[t],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}};function ee(e){return Vz(e)}
141function Kr(e){return e.type===ue.CDATA}function pt(e){return e.type===ue.Text}function Xr(e){return e.type===ue.Comment}function $i(e){return e.type===ue.Directive}function Gt(e){return e.type===ue.Root}function ke(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Fr(e,t=!1){let n;if(pt(e))n=new $n(e.data);else if(Xr(e))n=new pa(e.data);else if(ee(e)){const r=t?Ai(e.children):[],s=new Ea(e.name,{...e.attribs},r);r.forEach(i=>i.parent=s),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=s}else if(Kr(e)){const r=t?Ai(e.children):[],s=new Yc(r);r.forEach(i=>i.parent=s),n=s}else if(Gt(e)){const r=t?Ai(e.children):[],s=new jt(r);r.forEach(i=>i.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if($i(e)){const r=new ma(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),n=r}else throw new Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function Ai(e){const t=e.map(n=>Fr(n,!0));for(let n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}const Ru={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class nY{constructor(t,n,r){this.dom=[],this.root=new jt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=Ru),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??Ru,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new jt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,n){const r=this.options.xmlMode?ue.Tag:void 0,s=new Ea(t,n,void 0,r);this.addNode(s),this.tagStack.push(s)}ontext(t){const{lastNode:n}=this;if(n&&n.type===ue.Text)n.data+=t,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const r=new $n(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===ue.Comment){this.lastNode.data+=t;return}const n=new pa(t);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const t=new $n(""),n=new Yc([t]);this.addNode(n),t.parent=n,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,n){const r=new ma(t,n);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const n=this.tagStack[this.tagStack.length-1],r=n.children[n.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),n.children.push(t),r&&(t.prev=r,r.next=t),t.parent=n,this.lastNode=null}}const At=new Uint16Array(
vendor: 8,302 bytes, line 141
141'ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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;
vendor: 18,348 bytes, line 141
141쀀𝔚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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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(
141e=>e.charCodeAt(0))),jc=new Uint16Array("Ȁaglq	��\x1BÉ­�\0\0�p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ci;const rY=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]]),zi=(Ci=String.fromCodePoint)!==null&&Ci!==void 0?Ci: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 Vc(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=rY.get(e))!==null&&t!==void 0?t:e}var Re;(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"})(Re||(Re={}));const sY=32;var Ge;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ge||(Ge={}));function Yi(e){return e>=Re.ZERO&&e<=Re.NINE}function iY(e){return e>=Re.UPPER_A&&e<=Re.UPPER_F||e>=Re.LOWER_A&&e<=Re.LOWER_F}function aY(e){return e>=Re.UPPER_A&&e<=Re.UPPER_Z||e>=Re.LOWER_A&&e<=Re.LOWER_Z||Yi(e)}function oY(e){return e===Re.EQUALS||aY(e)}var ye;(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"})(ye||(ye={}));var qt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(qt||(qt={}));class uY{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ye.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=qt.Strict}startEntity(t){this.decodeMode=t,this.state=ye.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ye.EntityStart:return t.charCodeAt(n)===Re.NUM?(this.state=ye.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ye.NamedEntity,this.stateNamedEntity(t,n));case ye.NumericStart:return this.stateNumericStart(t,n);case ye.NumericDecimal:return this.stateNumericDecimal(t,n);case ye.NumericHex:return this.stateNumericHex(t,n);case ye.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|sY)===Re.LOWER_X?(this.state=ye.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ye.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,s){if(n!==r){const i=r-n;this.result=this.result*Math.pow(s,i)+parseInt(t.substr(n,i),s),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(Yi(s)||iY(s))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(Yi(s))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Re.SEMI)this.consumed+=1;else if(this.decodeMode===qt.Strict)return 0;return this.emitCodePoint(Vc(this.result),this.consumed),this.errors&&(t!==Re.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let s=r[this.treeIndex],i=(s&Ge.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=ba(r,s,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===qt.Attribute&&(i===0||oY(a))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],i=(s&Ge.VALUE_LENGTH)>>14,i!==0){if(a===Re.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==qt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,s=(r[n]&Ge.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~Ge.VALUE_LENGTH:s[t+1],r),n===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case ye.NamedEntity:return this.result!==0&&(this.decodeMode!==qt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ye.NumericDecimal:return this.emitNumericEntity(0,2);case ye.NumericHex:return this.emitNumericEntity(0,3);case ye.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ye.EntityStart:return 0}}}function Gc(e){let t="";const n=new uY(e,r=>t+=zi(r));return function(s,i){let a=0,o=0;for(;(o=s.indexOf("&",o))>=0;){t+=s.slice(a,o),n.startEntity(i);const l=n.write(s,o+1);if(l<0){a=o+n.end();break}a=o+l,o=l===0?a+1:a}const c=t+s.slice(a);return t="",c}}function ba(e,t,n,r){const s=(t&Ge.BRANCH_LENGTH)>>7,i=t&Ge.JUMP_TABLE;if(s===0)return i!==0&&r===i?n:-1;if(i){const c=r-i;return c<0||c>=s?-1:e[n+c]-1}let a=n,o=a+s-1;for(;a<=o;){const c=a+o>>>1,l=e[c];if(l<r)a=c+1;else if(l>r)o=c-1;else return e[c+s]}return-1}Gc(At);Gc(jc);const Lu=/["&'<>$\x80-\uFFFF]/g,cY=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),lY=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Wc(e){let t="",n=0,r;for(;(r=Lu.exec(e))!==null;){const s=r.index,i=e.charCodeAt(s),a=cY.get(i);a!==void 0?(t+=e.substring(n,s)+a,n=s+1):(t+=`${e.substring(n,s)}&#x${lY(e,s).toString(16)};`,n=Lu.lastIndex+=+((i&64512)===55296))}return t+e.substr(n)}function Qc(e,t){return function(r){let s,i=0,a="";for(;s=e.exec(r);
141)i!==s.index&&(a+=r.substring(i,s.index)),a+=t.get(s[0].charCodeAt(0)),i=s.index+1;return a+r.substring(i)}}const Kc=Qc(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Xc=Qc(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),hY=new Map(["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","textPath"].map(e=>[e.toLowerCase(),e])),dY=new Map(["definitionURL","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])),fY=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function pY(e){return e.replace(/"/g,"&quot;")}function mY(e,t){var n;if(!e)return;const r=((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1?pY:t.xmlMode||t.encodeEntities!=="utf8"?Wc:Kc;return Object.keys(e).map(s=>{var i,a;const o=(i=e[s])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(s=(a=dY.get(s))!==null&&a!==void 0?a:s),!t.emptyAttrs&&!t.xmlMode&&o===""?s:`${s}="${r(o)}"`}).join(" ")}const wu=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Zr(e,t={}){const n="length"in e?e:[e];let r="";for(let s=0;s<n.length;s++)r+=gY(n[s],t);return r}function gY(e,t){switch(e.type){case Gz:return Zr(e.children,t);case tY:case Qz:return _Y(e);case Kz:return kY(e);case eY:return CY(e);case Xz:case Zz:case Jz:return TY(e,t);case Wz:return AY(e,t)}}const EY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),bY=new Set(["svg","math"]);function TY(e,t){var n;t.xmlMode==="foreign"&&(e.name=(n=hY.get(e.name))!==null&&n!==void 0?n:e.name,e.parent&&EY.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&bY.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const s=mY(e.attribs,t);return s&&(r+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&wu.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=Zr(e.children,t)),(t.xmlMode||!wu.has(e.name))&&(r+=`</${e.name}>`)),r}function _Y(e){return`<${e.data}>`}function AY(e,t){var n;let r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&fY.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?Wc(r):Xc(r)),r}function CY(e){return`<![CDATA[${e.children[0].data}]]>`}function kY(e){return`<!--${e.data}-->`}function Zc(e,t){return Zr(e,t)}function xY(e,t){return ke(e)?e.children.map(n=>Zc(n,t)).join(""):""}function yr(e){return Array.isArray(e)?e.map(yr).join(""):ee(e)?e.name==="br"?`
142`:yr(e.children):Kr(e)?yr(e.children):pt(e)?e.data:""}function fn(e){return Array.isArray(e)?e.map(fn).join(""):ke(e)&&!Xr(e)?fn(e.children):pt(e)?e.data:""}function Br(e){return Array.isArray(e)?e.map(Br).join(""):ke(e)&&(e.type===ue.Tag||Kr(e))?Br(e.children):pt(e)?e.data:""}function Jr(e){return ke(e)?e.children:[]}
142function Jc(e){return e.parent||null}function el(e){const t=Jc(e);if(t!=null)return Jr(t);const n=[e];let{prev:r,next:s}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;s!=null;)n.push(s),{next:s}=s;return n}function vY(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function SY(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function yY(e){return e.name}function Ta(e){let{next:t}=e;for(;t!==null&&!ee(t);)({next:t}=t);return t}function _a(e){let{prev:t}=e;for(;t!==null&&!ee(t);)({prev:t}=t);return t}function Wt(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function IY(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const s=t.parent=e.parent;if(s){const i=s.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function NY(e,t){if(Wt(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function DY(e,t){Wt(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const s=n.children;s.splice(s.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function RY(e,t){if(Wt(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const n=e.children[1];n.prev=t,t.next=n}else t.next=null}function LY(e,t){Wt(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function Wn(e,t,n=!0,r=1/0){return Aa(e,Array.isArray(t)?t:[t],n,r)}function Aa(e,t,n,r){const s=[],i=[Array.isArray(t)?t:[t]],a=[0];for(;;){if(a[0]>=i[0].length){if(a.length===1)return s;i.shift(),a.shift();continue}const o=i[0][a[0]++];if(e(o)&&(s.push(o),--r<=0))return s;n&&ke(o)&&o.children.length>0&&(a.unshift(0),i.unshift(o.children))}}function wY(e,t){return t.find(e)}function Ca(e,t,n=!0){const r=Array.isArray(t)?t:[t];for(let s=0;s<r.length;s++){const i=r[s];if(ee(i)&&e(i))return i;if(n&&ke(i)&&i.children.length>0){const a=Ca(e,i.children,!0);if(a)return a}}return null}function tl(e,t){return(Array.isArray(t)?t:[t]).some(n=>ee(n)&&e(n)||ke(n)&&tl(e,n.children))}function OY(e,t){const n=[],r=[Array.isArray(t)?t:[t]],s=[0];for(;;){if(s[0]>=r[0].length){if(r.length===1)return n;r.shift(),s.shift();continue}const i=r[0][s[0]++];ee(i)&&e(i)&&n.push(i),ke(i)&&i.children.length>0&&(s.unshift(0),r.unshift(i.children))}}const Hr={tag_name(e){return typeof e=="function"?t=>ee(t)&&e(t.name):e==="*"?ee:t=>ee(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>pt(t)&&e(t.data):t=>pt(t)&&t.data===e}};function ka(e,t){return typeof t=="function"?n=>ee(n)&&t(n.attribs[e]):n=>ee(n)&&n.attribs[e]===t}function MY(e,t){return n=>e(n)||t(n)}function nl(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(Hr,n)?Hr[n](r):ka(n,r)});return t.length===0?null:t.reduce(MY)}function PY(e,t){const n=nl(e);return n?n(t):!0}function FY(e,t,n,r=1/0){const s=nl(e);return s?Wn(s,t,n,r):[]}function BY(e,t,n=!0){return Array.isArray(t)||(t=[t]),Ca(ka("id",e),t,n)}function gn(e,t,n=!0,r=1/0){return Wn(Hr.tag_name(e),t,n,r)}function HY(e,t,n=!0,r=1/0){return Wn(ka("class",e),t,n,r)}function UY(e,t,n=!0,r=1/0){return Wn(Hr.tag_type(e),t,n,r)}function qY(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Ze;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Ze||(Ze={}));function rl(e,t){const n=[],r=[];if(e===t)return 0;let s=ke(e)?e:e.parent;for(;s;)n.unshift(s),s=s.parent;for(s=ke(t)?t:t.parent;s;)r.unshift(s),s=s.parent;const i=Math.min(n.length,r.length);let a=0;for(;a<i&&n[a]===r[a];)a++;if(a===0)return Ze.DISCONNECTED;const o=n[a-1],c=o.children,l=n[a],h=r[a];return c.indexOf(l)>c.indexOf(h)?o===t?Ze.FOLLOWING|Ze.CONTAINED_BY:Ze.FOLLOWING:o===e?Ze.PRECEDING|Ze.CONTAINS:Ze.PRECEDING}
142function En(e){return e=e.filter((t,n,r)=>!r.includes(t,n+1)),e.sort((t,n)=>{const r=rl(t,n);return r&Ze.PRECEDING?-1:r&Ze.FOLLOWING?1:0}),e}function $Y(e){const t=Ur(GY,e);return t?t.name==="feed"?zY(t):YY(t):null}function zY(e){var t;const n=e.children,r={type:"atom",items:gn("entry",n).map(a=>{var o;const{children:c}=a,l={media:sl(c)};ze(l,"id","id",c),ze(l,"title","title",c);const h=(o=Ur("link",c))===null||o===void 0?void 0:o.attribs.href;h&&(l.link=h);const d=Ot("summary",c)||Ot("content",c);d&&(l.description=d);const p=Ot("updated",c);return p&&(l.pubDate=new Date(p)),l})};ze(r,"id","id",n),ze(r,"title","title",n);const s=(t=Ur("link",n))===null||t===void 0?void 0:t.attribs.href;s&&(r.link=s),ze(r,"description","subtitle",n);const i=Ot("updated",n);return i&&(r.updated=new Date(i)),ze(r,"author","email",n,!0),r}function YY(e){var t,n;const r=(n=(t=Ur("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],s={type:e.name.substr(0,3),id:"",items:gn("item",e.children).map(a=>{const{children:o}=a,c={media:sl(o)};ze(c,"id","guid",o),ze(c,"title","title",o),ze(c,"link","link",o),ze(c,"description","description",o);const l=Ot("pubDate",o)||Ot("dc:date",o);return l&&(c.pubDate=new Date(l)),c})};ze(s,"title","title",r),ze(s,"link","link",r),ze(s,"description","description",r);const i=Ot("lastBuildDate",r);return i&&(s.updated=new Date(i)),ze(s,"author","managingEditor",r,!0),s}const jY=["url","type","lang"],VY=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function sl(e){return gn("media:content",e).map(t=>{const{attribs:n}=t,r={medium:n.medium,isDefault:!!n.isDefault};for(const s of jY)n[s]&&(r[s]=n[s]);for(const s of VY)n[s]&&(r[s]=parseInt(n[s],10));return n.expression&&(r.expression=n.expression),r})}function Ur(e,t){return gn(e,t,!0,1)[0]}function Ot(e,t,n=!1){return fn(gn(e,t,n,1)).trim()}function ze(e,t,n,r,s=!1){const i=Ot(n,r,s);i&&(e[t]=i)}function GY(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const es=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Ze},append:DY,appendChild:NY,compareDocumentPosition:rl,existsOne:tl,filter:Wn,find:Aa,findAll:OY,findOne:Ca,findOneChild:wY,getAttributeValue:vY,getChildren:Jr,getElementById:BY,getElements:FY,getElementsByClassName:HY,getElementsByTagName:gn,getElementsByTagType:UY,getFeed:$Y,getInnerHTML:xY,getName:yY,getOuterHTML:Zc,getParent:Jc,getSiblings:el,getText:yr,hasAttrib:SY,hasChildren:ke,innerText:Br,isCDATA:Kr,isComment:Xr,isDocument:Gt,isTag:ee,isText:pt,nextElementSibling:Ta,prepend:LY,prependChild:RY,prevElementSibling:_a,removeElement:Wt,removeSubsets:qY,replaceElement:IY,testElement:PY,textContent:fn,uniqueSort:En},Symbol.toStringTag,{value:"Module"}));function il(e,t,n){return e?e(t??e._root.children,null,void 0,n).toString():""}function WY(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function QY(e,t){const n=WY(e)?(t=e,void 0):e,r={...da,...this===null||this===void 0?void 0:this._options,...qi(t??{})};return il(this,n,r)}function KY(e){const t={...this._options,xmlMode:!0};return il(this,e,t)}function zn(e){const t=e||(this?this.root():[]);let n="";for(let r=0;r<t.length;r++)n+=fn(t[r]);return n}function XY(e,t,n=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t);const r=this.load(e,da,!1);return n||r("script").remove(),r.root()[0].children.slice()}function ZY(){return this(this._root)}function al(e,t){if(t===e)return!1;let n=t;for(;n&&n!==n.parent;)if(n=n.parent,n===e)return!0;return!1}function JY(e,t){if(!Ou(e)||!Ou(t))return;let n=e.length;const r=+t.length;for(let s=0;s<r;s++)e[n++]=t[s];return e.length=n,e}function Ou(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const ej=Object.freeze(Object.defineProperty({__proto__:null,contains:al,html:QY,merge:JY,parseHTML:XY,root:ZY,text:zn,xml:KY},Symbol.toStringTag,{value:"Module"}));function mt(e){return e.cheerio!=null}function tj(e){return e.replace(/[_.-](\w|$)/g,(t,n)=>n.toUpperCase())}function nj(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function _e(e,t){const n=e.length;for(let r=0;r<n;r++)t(e[r],r);return e}function ji(e){const t="length"in e?Array.prototype.map.call(e,r=>Fr(r,!0)):[Fr(e,!0)],n=new jt(t);return t.forEach(r=>{r.parent=n}),t}var $t;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})($t||($t={}));function Vi(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const n=e.charCodeAt(t+1);return(n>=$t.LowerA&&n<=$t.LowerZ||n>=$t.UpperA&&n<=$t.UpperZ||n===$t.Exclamation)&&e.includes(">",t+2)}const ln=Object.prototype.hasOwnProperty,Yn=/\s+/,ki="data-",Mu={null:null,true:!0,false:!1},xa=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rj=/^{[^]*}$|^\[[^]*]$/;function qr(e,t,n){var r;if(!(!e||!ee(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(ln.call(e.attribs,t))return!n&&xa.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return zn(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function hn(e,t,n){n===null?ol(e,t):e.attribs[t]=`${n}`}function sj(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return _e(this,(n,r)=>{ee(n)&&hn(n,e,t.call(n,r,n.attribs[e]))})}return _e(this,n=>{ee(n)&&(typeof e=="object"?Object.keys(e).forEach(r=>{const s=e[r];hn(n,r,s)}):hn(n,e,t))})}return arguments.length>1?this:qr(this[0],e,this.options.xmlMode)}function Pu(e,t,n){return t in e?e[t]:!n&&xa.test(t)?qr(e,t,!1)!==void 0:qr(e,t,n)}function xi(e,t,n,r){t in e?e[t]=n:hn(e,t,!r&&xa.test(t)?n?"":null:`${n}`)}function ij(e,t){var n;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r||!ee(r))return;switch(e){case"style":{const s=this.css(),i=Object.keys(s);
142return i.forEach((a,o)=>{s[o]=a}),s.length=i.length,s}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{const s=(n=r.attribs)===null||n===void 0?void 0:n[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.name==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return Br(r);case"textContent":return fn(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return Pu(r,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return _e(this,(r,s)=>{ee(r)&&xi(r,e,t.call(r,s,Pu(r,e,this.options.xmlMode)),this.options.xmlMode)})}return _e(this,r=>{ee(r)&&(typeof e=="object"?Object.keys(e).forEach(s=>{const i=e[s];xi(r,s,i,this.options.xmlMode)}):xi(r,e,t,this.options.xmlMode))})}}function Fu(e,t,n){var r;const s=e;(r=s.data)!==null&&r!==void 0||(s.data={}),typeof t=="object"?Object.assign(s.data,t):typeof t=="string"&&n!==void 0&&(s.data[t]=n)}function Bu(e,t){let n,r,s;t==null?(n=Object.keys(e.attribs).filter(i=>i.startsWith(ki)),r=n.map(i=>tj(i.slice(ki.length)))):(n=[ki+nj(t)],r=[t]);for(let i=0;i<n.length;++i){const a=n[i],o=r[i];if(ln.call(e.attribs,a)&&!ln.call(e.data,o)){if(s=e.attribs[a],ln.call(Mu,s))s=Mu[s];else if(s===String(Number(s)))s=Number(s);else if(rj.test(s))try{s=JSON.parse(s)}catch{}e.data[o]=s}}return t==null?e.data:s}function aj(e,t){var n;const r=this[0];if(!r||!ee(r))return;const s=r;return(n=s.data)!==null&&n!==void 0||(s.data={}),e?typeof e=="object"||t!==void 0?(_e(this,i=>{ee(i)&&(typeof e=="object"?Fu(i,e):Fu(i,e,t))}),this):ln.call(s.data,e)?s.data[e]:Bu(s,e):Bu(s)}function oj(e){const t=arguments.length===0,n=this[0];if(!n||!ee(n))return t?void 0:this;switch(n.name){case"textarea":return this.text(e);case"select":{const r=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const s=typeof e!="object"?[e]:e;for(let i=0;i<s.length;i++)this.find(`option[value="${s[i]}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(s=>zn(s.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function ol(e,t){!e.attribs||!ln.call(e.attribs,t)||delete e.attribs[t]}function $r(e){return e?e.trim().split(Yn):[]}function uj(e){const t=$r(e);for(let n=0;n<t.length;n++)_e(this,r=>{ee(r)&&ol(r,t[n])});return this}function cj(e){return this.toArray().some(t=>{const n=ee(t)&&t.attribs.class;let r=-1;if(n&&e.length)for(;(r=n.indexOf(e,r+1))>-1;){const s=r+e.length;if((r===0||Yn.test(n[r-1]))&&(s===n.length||Yn.test(n[s])))return!0}return!1})}function ul(e){if(typeof e=="function")return _e(this,(r,s)=>{if(ee(r)){const i=r.attribs.class||"";ul.call([r],e.call(r,s,i))}});if(!e||typeof e!="string")return this;const t=e.split(Yn),n=this.length;for(let r=0;r<n;r++){const s=this[r];if(!ee(s))continue;const i=qr(s,"class",!1);if(!i)hn(s,"class",t.join(" ").trim());else{let a=` ${i} `;for(let o=0;o<t.length;o++){const c=`${t[o]} `;a.includes(` ${c}`)||(a+=c)}hn(s,"class",a.trim())}}return this}function cl(e){if(typeof e=="function")return _e(this,(s,i)=>{ee(s)&&cl.call([s],e.call(s,i,s.attribs.class||""))});const t=$r(e),n=t.length,r=arguments.length===0;return _e(this,s=>{if(ee(s))if(r)s.attribs.class="";else{const i=$r(s.attribs.class);let a=!1;for(let o=0;o<n;o++){const c=i.indexOf(t[o]);c>=0&&(i.splice(c,1),a=!0,o--)}a&&(s.attribs.class=i.join(" "))}})}function ll(e,t){if(typeof e=="function")return _e(this,(a,o)=>{ee(a)&&ll.call([a],e.call(a,o,a.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const n=e.split(Yn),r=n.length,s=typeof t=="boolean"?t?1:-1:0,i=this.length;for(let a=0;a<i;a++){const o=this[a];if(!ee(o))continue;const c=$r(o.attribs.class);for(let l=0;l<r;l++){const h=c.indexOf(n[l]);s>=0&&h<0?c.push(n[l]):s<=0&&h>=0&&c.splice(h,1)}o.attribs.class=c.join(" ")}return this}const lj=Object.freeze(Object.defineProperty({__proto__:null,addClass:ul,attr:sj,data:aj,hasClass:cj,prop:ij,removeAttr:uj,removeClass:cl,toggleClass:ll,val:oj},Symbol.toStringTag,{value:"Module"}));var X;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Desce
142ndant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(X||(X={}));var ve;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(ve||(ve={}));const Hu=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,hj=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,dj=new Map([[126,ve.Element],[94,ve.Start],[36,ve.End],[42,ve.Any],[33,ve.Not],[124,ve.Hyphen]]),fj=new Set(["has","not","matches","is","where","host","host-context"]);function On(e){switch(e.type){case X.Adjacent:case X.Child:case X.Descendant:case X.Parent:case X.Sibling:case X.ColumnCombinator:return!0;default:return!1}}const pj=new Set(["contains","icontains"]);function mj(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Cn(e){return e.replace(hj,mj)}function vi(e){return e===39||e===34}function Uu(e){return e===32||e===9||e===10||e===12||e===13}function ts(e){const t=[],n=hl(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function hl(e,t,n){let r=[];function s(p){const f=t.slice(n+p).match(Hu);if(!f)throw new Error(`Expected name, found ${t.slice(n)}`);const[g]=f;return n+=p+g.length,Cn(g)}function i(p){for(n+=p;n<t.length&&Uu(t.charCodeAt(n));)n++}function a(){n+=1;const p=n;let f=1;for(;f>0&&n<t.length;n++)t.charCodeAt(n)===40&&!o(n)?f++:t.charCodeAt(n)===41&&!o(n)&&f--;if(f)throw new Error("Parenthesis not matched");return Cn(t.slice(p,n-1))}function o(p){let f=0;for(;t.charCodeAt(--p)===92;)f++;return(f&1)===1}function c(){if(r.length>0&&On(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function l(p){if(r.length>0&&r[r.length-1].type===X.Descendant){r[r.length-1].type=p;return}c(),r.push({type:p})}function h(p,f){r.push({type:X.Attribute,name:p,action:f,value:s(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===X.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(i(0),t.length===n)return n;e:for(;n<t.length;){const p=t.charCodeAt(n);switch(p){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==X.Descendant)&&(c(),r.push({type:X.Descendant})),i(1);break}case 62:{l(X.Child),i(1);break}case 60:{l(X.Parent),i(1);break}case 126:{l(X.Sibling),i(1);break}case 43:{l(X.Adjacent),i(1);break}case 46:{h("class",ve.Element);break}case 35:{h("id",ve.Equals);break}case 91:{i(1);let f,g=null;t.charCodeAt(n)===124?f=s(1):t.startsWith("*|",n)?(g="*",f=s(2)):(f=s(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(g=f,f=s(1))),i(0);let v=ve.Exists;const x=dj.get(t.charCodeAt(n));if(x){if(v=x,t.charCodeAt(n+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(n)===61&&(v=ve.Equals,i(1));let E="",_=null;if(v!=="exists"){if(vi(t.charCodeAt(n))){const I=t.charCodeAt(n);let N=n+1;for(;N<t.length&&(t.charCodeAt(N)!==I||o(N));)N+=1;if(t.charCodeAt(N)!==I)throw new Error("Attribute value didn't end");E=Cn(t.slice(n+1,N)),n=N+1}else{const I=n;for(;n<t.length&&(!Uu(t.charCodeAt(n))&&t.charCodeAt(n)!==93||o(n));)n+=1;E=Cn(t.slice(I,n))}i(0);const A=t.charCodeAt(n)|32;A===115?(_=!1,i(1)):A===105&&(_=!0,i(1))}if(t.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const T={type:X.Attribute,name:f,action:v,value:E,namespace:g,ignoreCase:_};r.push(T);break}case 58:{if(t.charCodeAt(n+1)===58){r.push({type:X.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(n)===40?a():null});continue}const f=s(1).toLowerCase();let g=null;if(t.charCodeAt(n)===40)if(fj.has(f)){if(vi(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${f} cannot be quoted`);if(g=[],n=hl(g,t,n+1),t.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${f} (${t})`);n+=1}else{if(g=a(),pj.has(f)){const v=g.charCodeAt(0);v===g.charCodeAt(g.length-1)&&vi(v)&&(g=g.slice(1,-1))}g=Cn(g)}r.push({type:X.Pseudo,name:f,data:g});break}case 44:{d(),r=[],i(1);break}default:{if(t.startsWith("/*",n)){const v=t.indexOf("*/",n+2);if(v<0)throw new Error("Comment was not terminated");n=v+2,r.length===0&&i(0);break}let f=null,g;if(p===42)n+=1,g="*";else if(p===124){if(g="",t.charCodeAt(n+1)===124){l(X.ColumnCombinator),i(2);break}}else if(Hu.test(t.slice(n)))g=s(0);else break e;t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(f=g,t.charCodeAt(n+1)===42?(g="*",n+=2):g=s(1)),r.push(g==="*"?{type:X.Universal,namespace:f}:{type:X.Tag,name:g,namespace:f})}}}return d(),n}var Si,qu;function gj(){return qu||(qu=1,Si={trueFunc:function(){return!0},falseFunc:function(){return!1}}),Si}var zr=gj();const ie=Wr(zr),dl=new Map([[X.Universal,50],[X.Tag,30],[X.Attribute,1],[X.Pseudo,0]]);function va(e){return!dl.has(e.type)}const Ej=new Map([[ve.Exists,10],[ve.Equals,8],[ve.Not,7],[ve.Start,6],[ve.End,6],[ve.Any,5]]);function bj(e){const t=e.map(fl);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let s=n-1;s>=0&&r<t[s];s--){const i=e[s+1];e[s+1]=e[s],e[s]=i,t[s+1]=t[s],t[s]=r}}}function fl(e){var t,n;let r=(t=dl.get(e.type))!==null&&t!==void 0?t:-1;return e.type===X.Attribute?(r=(n=Ej.get(e.action))!==null&&n!==void 0?n:4,e.action===ve.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===X.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(s=>Math.min(...s.map(fl)))),r<0&&(r=0)):r=2:r=3),r}const Tj=/[-[\]{}()*+?.,\\^$|#\s]/g;function $u(e){return e.replace(Tj,"\\$&")}const _j=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ht(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&_j.has(e.name)}const Aj={equals(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;return Ht(t,n)?(i=i.toLowerCase(),a=>{const o=r.getAttributeValue(a,s);return o!=null&&o.length===i.length&&o.toLowerCase()===i&&e(a)}):a=>r.getAttributeValue(a,s)===i&&e(a)},hyphen(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const a=i.length;return Ht(t,n)?(i=i.toLowerCase(),function(c){const l=r.getAttributeValue(c,s);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a).toLowerCase()===i&&e(c)}):function(c){const l=r.getAttributeValue(c,s);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a)===i&&e(c)}}
142,element(e,t,n){const{adapter:r}=n,{name:s,value:i}=t;if(/\s/.test(i))return ie.falseFunc;const a=new RegExp(`(?:^|\\s)${$u(i)}(?:$|\\s)`,Ht(t,n)?"i":"");return function(c){const l=r.getAttributeValue(c,s);return l!=null&&l.length>=i.length&&a.test(l)&&e(c)}},exists(e,{name:t},{adapter:n}){return r=>n.hasAttrib(r,t)&&e(r)},start(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const a=i.length;return a===0?ie.falseFunc:Ht(t,n)?(i=i.toLowerCase(),o=>{const c=r.getAttributeValue(o,s);return c!=null&&c.length>=a&&c.substr(0,a).toLowerCase()===i&&e(o)}):o=>{var c;return!!(!((c=r.getAttributeValue(o,s))===null||c===void 0)&&c.startsWith(i))&&e(o)}},end(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const a=-i.length;return a===0?ie.falseFunc:Ht(t,n)?(i=i.toLowerCase(),o=>{var c;return((c=r.getAttributeValue(o,s))===null||c===void 0?void 0:c.substr(a).toLowerCase())===i&&e(o)}):o=>{var c;return!!(!((c=r.getAttributeValue(o,s))===null||c===void 0)&&c.endsWith(i))&&e(o)}},any(e,t,n){const{adapter:r}=n,{name:s,value:i}=t;if(i==="")return ie.falseFunc;if(Ht(t,n)){const a=new RegExp($u(i),"i");return function(c){const l=r.getAttributeValue(c,s);return l!=null&&l.length>=i.length&&a.test(l)&&e(c)}}return a=>{var o;return!!(!((o=r.getAttributeValue(a,s))===null||o===void 0)&&o.includes(i))&&e(a)}},not(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;return i===""?a=>!!r.getAttributeValue(a,s)&&e(a):Ht(t,n)?(i=i.toLowerCase(),a=>{const o=r.getAttributeValue(a,s);return(o==null||o.length!==i.length||o.toLowerCase()!==i)&&e(a)}):a=>r.getAttributeValue(a,s)!==i&&e(a)}},Cj=new Set([9,10,12,13,32]),zu=48,kj=57;function xj(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=i(),s=a();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(s??1),o(),t<e.length?(r=i(),o(),s=a()):r=s=0),s===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*s];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function a(){const c=t;let l=0;for(;t<e.length&&e.charCodeAt(t)>=zu&&e.charCodeAt(t)<=kj;)l=l*10+(e.charCodeAt(t)-zu),t++;return t===c?null:l}function o(){for(;t<e.length&&Cj.has(e.charCodeAt(t));)t++}}function vj(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return ie.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?ie.trueFunc:i=>i>=n;const r=Math.abs(t),s=(n%r+r)%r;return t>1?i=>i>=n&&i%r===s:i=>i<=n&&i%r===s}function pr(e){return vj(xj(e))}function mr(e,t){return n=>{const r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const Gi={contains(e,t,{adapter:n}){return function(s){return e(s)&&n.getText(s).includes(t)}},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(i){return e(i)&&n.getText(i).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const s=pr(t);return s===ie.falseFunc?ie.falseFunc:s===ie.trueFunc?mr(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=0;l<o.length&&!r(a,o[l]);l++)n.isTag(o[l])&&c++;return s(c)&&e(a)}},"nth-last-child"(e,t,{adapter:n,equals:r}){const s=pr(t);return s===ie.falseFunc?ie.falseFunc:s===ie.trueFunc?mr(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=o.length-1;l>=0&&!r(a,o[l]);l--)n.isTag(o[l])&&c++;return s(c)&&e(a)}},"nth-of-type"(e,t,{adapter:n,equals:r}){const s=pr(t);return s===ie.falseFunc?ie.falseFunc:s===ie.trueFunc?mr(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=0;l<o.length;l++){const h=o[l];if(r(a,h))break;n.isTag(h)&&n.getName(h)===n.getName(a)&&c++}return s(c)&&e(a)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){const s=pr(t);return s===ie.falseFunc?ie.falseFunc:s===ie.trueFunc?mr(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=o.length-1;l>=0;l--){const h=o[l];if(r(a,h))break;n.isTag(h)&&n.getName(h)===n.getName(a)&&c++}return s(c)&&e(a)}},root(e,t,{adapter:n}){return r=>{const s=n.getParent(r);return(s==null||!n.isTag(s))&&e(r)}},scope(e,t,n,r){const{equals:s}=n;return!r||r.length===0?Gi.root(e,t,n):r.length===1?i=>s(r[0],i)&&e(i):i=>r.includes(i)&&e(i)},hover:yi("isHovered"),visited:yi("isVisited"),active:yi("isActive")};function yi(e){return function(n,r,{adapter:s}){const i=s[e];return typeof i!="function"?ie.falseFunc:function(o){return i(o)&&n(o)}}}const Yu={empty(e,{adapter:t}){return!t.getChildren(e).some(n=>t.isTag(n)||t.getText(n)!=="")},"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const r=t.getSiblings(e).find(s=>t.isTag(s));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let s=r.length-1;s>=0;s--){if(n(e,r[s]))return!0;
142if(t.isTag(r[s]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),s=t.getName(e);for(let i=0;i<r.length;i++){const a=r[i];if(n(e,a))return!0;if(t.isTag(a)&&t.getName(a)===s)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),s=t.getName(e);for(let i=r.length-1;i>=0;i--){const a=r[i];if(n(e,a))return!0;if(t.isTag(a)&&t.getName(a)===s)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(s=>n(e,s)||!t.isTag(s)||t.getName(s)!==r)},"only-child"(e,{adapter:t,equals:n}){return t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))}};function ju(e,t,n,r){if(n===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const Sj={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
143        :is(button, input, select, textarea, optgroup, option)[disabled],
144        optgroup[disabled] > option,
145        fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
146    )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},pl={};function yj(e,t){return e===ie.falseFunc?ie.falseFunc:n=>t.isTag(n)&&e(n)}function ml(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function Wi(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Ii=(e,t,n,r,s)=>{const i=s(t,Wi(n),r);return i===ie.trueFunc?e:i===ie.falseFunc?ie.falseFunc:a=>i(a)&&e(a)},Ni={is:Ii,matches:Ii,where:Ii,not(e,t,n,r,s){const i=s(t,Wi(n),r);return i===ie.falseFunc?e:i===ie.trueFunc?ie.falseFunc:a=>!i(a)&&e(a)},has(e,t,n,r,s){const{adapter:i}=n,a=Wi(n);a.relativeSelector=!0;const o=t.some(h=>h.some(va))?[pl]:void 0,c=s(t,a,o);if(c===ie.falseFunc)return ie.falseFunc;const l=yj(c,i);if(o&&c!==ie.trueFunc){const{shouldTestNextSiblings:h=!1}=c;return d=>{if(!e(d))return!1;o[0]=d;const p=i.getChildren(d),f=h?[...p,...ml(d,i)]:p;return i.existsOne(l,f)}}return h=>e(h)&&i.existsOne(l,i.getChildren(h))}};function Ij(e,t,n,r,s){var i;const{name:a,data:o}=t;if(Array.isArray(o)){if(!(a in Ni))throw new Error(`Unknown pseudo-class :${a}(${o})`);return Ni[a](e,o,n,r,s)}const c=(i=n.pseudos)===null||i===void 0?void 0:i[a],l=typeof c=="string"?c:Sj[a];if(typeof l=="string"){if(o!=null)throw new Error(`Pseudo ${a} doesn't have any arguments`);const h=ts(l);return Ni.is(e,h,n,r,s)}if(typeof c=="function")return ju(c,a,o,1),h=>c(h,o)&&e(h);if(a in Gi)return Gi[a](e,o,n,r);if(a in Yu){const h=Yu[a];return ju(h,a,o,2),d=>h(d,n,o)&&e(d)}throw new Error(`Unknown pseudo-class :${a}`)}function Di(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function Nj(e,t,n,r,s){const{adapter:i,equals:a}=n;switch(t.type){case X.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case X.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case X.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Aj[t.action](e,t,n)}case X.Pseudo:return Ij(e,t,n,r,s);case X.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=t;return(!n.xmlMode||n.lowerCaseTags)&&(o=o.toLowerCase()),function(l){return i.getName(l)===o&&e(l)}}case X.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(l){let h=l;for(;h=Di(h,i);)if(e(h))return!0;return!1};const o=new WeakSet;return function(l){let h=l;for(;h=Di(h,i);)if(!o.has(h)){if(i.isTag(h)&&e(h))return!0;o.add(h)}return!1}}case"_flexibleDescendant":return function(c){let l=c;do if(e(l))return!0;while(l=Di(l,i));return!1};case X.Parent:return function(c){return i.getChildren(c).some(l=>i.isTag(l)&&e(l))};case X.Child:return function(c){const l=i.getParent(c);return l!=null&&i.isTag(l)&&e(l)};case X.Sibling:return function(c){const l=i.getSiblings(c);for(let h=0;h<l.length;h++){const d=l[h];if(a(c,d))break;if(i.isTag(d)&&e(d))return!0}return!1};case X.Adjacent:return i.prevElementSibling?function(c){const l=i.prevElementSibling(c);return l!=null&&e(l)}:function(c){const l=i.getSiblings(c);let h;for(let d=0;d<l.length;d++){const p=l[d];if(a(c,p))break;i.isTag(p)&&(h=p)}return!!h&&e(h)};case X.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function gl(e){return e.type===X.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(gl)))}const Dj={type:X.Descendant},Rj={type:"_flexibleDescendant"},Lj={type:X.Pseudo,name:"scope",data:null};function wj(e,{adapter:t},n){const r=!!n?.every(s=>{const i=t.isTag(s)&&t.getParent(s);return s===pl||i&&t.isTag(i)});for(const s of e){if(!(s.length>0&&va(s[0])&&s[0].type!==X.Descendant))if(r&&!s.some(gl))s.unshift(Dj);else continue;s.unshift(Lj)}}function El(e,t,n){var r;e.forEach(bj),n=(r=t.context)!==null&&r!==void 0?r:n;const s=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(t.relativeSelector!==!1)wj(e,t,i);else if(e.some(c=>
146c.length>0&&va(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let a=!1;const o=e.map(c=>{if(c.length>=2){const[l,h]=c;l.type!==X.Pseudo||l.name!=="scope"||(s&&h.type===X.Descendant?c[1]=Rj:(h.type===X.Adjacent||h.type===X.Sibling)&&(a=!0))}return Oj(c,t,i)}).reduce(Mj,ie.falseFunc);return o.shouldTestNextSiblings=a,o}function Oj(e,t,n){var r;return e.reduce((s,i)=>s===ie.falseFunc?ie.falseFunc:Nj(s,i,t,n,El),(r=t.rootFunc)!==null&&r!==void 0?r:ie.trueFunc)}function Mj(e,t){return t===ie.falseFunc||e===ie.trueFunc?e:e===ie.falseFunc||t===ie.trueFunc?t:function(r){return e(r)||t(r)}}const bl=(e,t)=>e===t,Pj={adapter:es,equals:bl};function Fj(e){var t,n,r,s;const i=e??Pj;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=es),(n=i.equals)!==null&&n!==void 0||(i.equals=(s=(r=i.adapter)===null||r===void 0?void 0:r.equals)!==null&&s!==void 0?s:bl),i}function Bj(e){return function(n,r,s){const i=Fj(r);return e(n,i,s)}}const Sa=Bj(El);function Tl(e,t,n=!1){return n&&(e=Hj(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function Hj(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let s=0;s<r;s++){const i=ml(n[s],t);n.push(...i)}return n}const Uj=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Yr(e){return e.type!=="pseudo"?!1:Uj.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Yr)):!1}function qj(e,t,n){const r=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}function $j(e){for(;e.parent;)e=e.parent;return e}function ya(e){const t=[],n=[];for(const r of e)r.some(Yr)?t.push(r):n.push(r);return[n,t]}const zj={type:X.Universal,namespace:null},Yj={type:X.Pseudo,name:"scope",data:null};function _l(e,t,n={}){return Al([e],t,n)}function Al(e,t,n={}){if(typeof t=="function")return e.some(t);const[r,s]=ya(ts(t));return r.length>0&&e.some(Sa(r,n))||s.some(i=>xl(i,e,n).length>0)}function jj(e,t,n,r){const s=typeof n=="string"?parseInt(n,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(s)&&Math.abs(s)<t.length?[s<0?t[t.length+s]:t[s]]:[];case"gt":return isFinite(s)?t.slice(s+1):[];case"even":return t.filter((i,a)=>a%2===0);case"odd":return t.filter((i,a)=>a%2===1);case"not":{const i=new Set(kl(n,t,r));return t.filter(a=>!i.has(a))}}}function Cl(e,t,n={}){return kl(ts(e),t,n)}function kl(e,t,n){if(t.length===0)return[];const[r,s]=ya(e);let i;if(r.length){const a=Ki(t,r,n);if(s.length===0)return a;a.length&&(i=new Set(a))}for(let a=0;a<s.length&&i?.size!==t.length;a++){const o=s[a];if((i?t.filter(h=>ee(h)&&!i.has(h)):t).length===0)break;const l=xl(o,t,n);if(l.length)if(i)l.forEach(h=>i.add(h));else{if(a===s.length-1)return l;i=new Set(l)}}return typeof i<"u"?i.size===t.length?t:t.filter(a=>i.has(a)):[]}function xl(e,t,n){var r;if(e.some(On)){const s=(r=n.root)!==null&&r!==void 0?r:$j(t[0]),i={...n,context:t,relativeSelector:!1};return e.push(Yj),jr(s,e,i,!0,t.length)}return jr(t,e,n,!1,t.length)}function Vj(e,t,n={},r=1/0){if(typeof e=="function")return vl(t,e);const[s,i]=ya(ts(e)),a=i.map(o=>jr(t,o,n,!0,r));return s.length&&a.push(Qi(t,s,n,r)),a.length===0?[]:a.length===1?a[0]:En(a.reduce((o,c)=>[...o,...c]))}function jr(e,t,n,r,s){const i=t.findIndex(Yr),a=t.slice(0,i),o=t[i],c=t.length-1===i?s:1/0,l=qj(o.name,o.data,c);if(l===0)return[];const d=(a.length===0&&!Array.isArray(e)?Jr(e).filter(ee):a.length===0?(Array.isArray(e)?e:[e]).filter(ee):r||a.some(On)?Qi(e,[a],n,l):Ki(e,[a],n)).slice(0,l);let p=jj(o.name,d,o.data,n);if(p.length===0||t.length===i+1)return p;const f=t.slice(i+1),g=f.some(On);if(g){if(On(f[0])){const{type:v}=f[0];(v===X.Sibling||v===X.Adjacent)&&(p=Tl(p,es,!0)),f.unshift(zj)}n={...n,relativeSelector:!1,rootFunc:v=>p.includes(v)}}else n.rootFunc&&n.rootFunc!==zr.trueFunc&&(n={...n,rootFunc:zr.trueFunc});return f.some(Yr)?jr(p,f,n,!1,s):g?Qi(p,[f],n,s):Ki(p,[f],n)}
146function Qi(e,t,n,r){const s=Sa(t,n,e);return vl(e,s,r)}function vl(e,t,n=1/0){const r=Tl(e,es,t.shouldTestNextSiblings);return Aa(s=>ee(s)&&t(s),r,!0,n)}function Ki(e,t,n){const r=(Array.isArray(e)?e:[e]).filter(ee);if(r.length===0)return r;const s=Sa(t,n);return s===zr.trueFunc?r:r.filter(s)}const Gj=/^\s*[~+]/;function Wj(e){var t;if(!e)return this._make([]);const n=this.toArray();if(typeof e!="string"){const i=mt(e)?e.toArray():[e];return this._make(i.filter(a=>n.some(o=>al(o,a))))}const r=Gj.test(e)?n:this.children().toArray(),s={context:n,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Vj(e,r,s))}function Ia(e){return function(t,...n){return function(r){var s;let i=e(t,this);return r&&(i=Ra(i,r,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&i.length>1?n.reduce((a,o)=>o(a),i):i)}}}const Qn=Ia((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const s=e(t[r]);n.push(s)}return new Array().concat(...n)}),Na=Ia((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const s=e(t[r]);s!==null&&n.push(s)}return n});function Da(e,...t){let n=null;const r=Ia((s,i)=>{const a=[];return _e(i,o=>{for(let c;(c=s(o))&&!n?.(c,a.length);o=c)a.push(c)}),a})(e,...t);return function(s,i){n=typeof s=="string"?o=>_l(o,s,this.options):s?Kn(s):null;const a=r.call(this,i);return n=null,a}}function bn(e){return Array.from(new Set(e))}const Qj=Na(({parent:e})=>e&&!Gt(e)?e:null,bn),Kj=Qn(e=>{const t=[];for(;e.parent&&!Gt(e.parent);)t.push(e.parent),e=e.parent;return t},En,e=>e.reverse()),Xj=Da(({parent:e})=>e&&!Gt(e)?e:null,En,e=>e.reverse());function Zj(e){var t;const n=[];if(!e)return this._make(n);const r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},s=typeof e=="string"?i=>_l(i,e,r):Kn(e);return _e(this,i=>{for(;i&&ee(i);){if(s(i,0)){n.includes(i)||n.push(i);break}i=i.parent}}),this._make(n)}const Jj=Na(e=>Ta(e)),eV=Qn(e=>{const t=[];for(;e.next;)e=e.next,ee(e)&&t.push(e);return t},bn),tV=Da(e=>Ta(e),bn),nV=Na(e=>_a(e)),rV=Qn(e=>{const t=[];for(;e.prev;)e=e.prev,ee(e)&&t.push(e);return t},bn),sV=Da(e=>_a(e),bn),iV=Qn(e=>el(e).filter(t=>ee(t)&&t!==e),En),aV=Qn(e=>Jr(e).filter(ee),bn);function oV(){const e=this.toArray().reduce((t,n)=>ke(n)?t.concat(n.children):t,[]);return this._make(e)}function uV(e){let t=0;const n=this.length;for(;t<n&&e.call(this[t],t,this[t])!==!1;)++t;return this}function cV(e){let t=[];for(let n=0;n<this.length;n++){const r=this[n],s=e.call(r,n,r);s!=null&&(t=t.concat(s))}return this._make(t)}function Kn(e){return typeof e=="function"?(t,n)=>e.call(t,n,t):mt(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function lV(e){var t;return this._make(Ra(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function Ra(e,t,n,r){return typeof t=="string"?Cl(t,e,{xmlMode:n,root:r}):e.filter(Kn(t))}function hV(e){const t=this.toArray();return typeof e=="string"?Al(t.filter(ee),e,this.options):e?t.some(Kn(e)):!1}function dV(e){let t=this.toArray();if(typeof e=="string"){const n=new Set(Cl(e,t,this.options));t=t.filter(r=>!n.has(r))}else{const n=Kn(e);t=t.filter((r,s)=>!n(r,s))}return this._make(t)}function fV(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,n)=>this._make(n).find(e).length>0)}function pV(){return this.length>1?this._make(this[0]):this}function mV(){return this.length>0?this._make(this[this.length-1]):this}function gV(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function EV(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function bV(){return Array.prototype.slice.call(this)}function TV(e){let t,n;return e==null?(t=this.parent().children(),n=this[0]):typeof e=="string"?(t=this._make(e),n=this[0]):(t=this,n=mt(e)?e[0]:e),Array.prototype.indexOf.call(t,n)}function _V(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function AV(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function CV(e,t){const n=this._make(e,t),r=En([...this.get(),...n.get()]);return this._make(r)}function kV(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const xV=Object.freeze(Object.defineProperty({__proto__:null,add:CV,addBack:kV,children:aV,closest:Zj,contents:oV,each:uV,end:AV,eq:gV,filter:lV,filterArray:Ra,find:Wj,first:pV,get:EV,has:fV,index:TV,is:hV,last:mV,map:cV,next:Jj,nextAll:eV,nextUntil:tV,not:dV,parent:Qj,parents:Kj,parentsUntil:Xj,prev:nV,prevAll:rV,prevUntil:sV,siblings:iV,slice:_V,toArray:bV},Symbol.toStringTag,{value:"Module"}));function vV(e){return function(n,r,s,i){if(typeof Buffer<"u"&&Buffer.isBuffer(n)&&(n=n.toString()),typeof n=="string")return e(n,r,s,i);const a=n;if(!Array.isArray(a)&&Gt(a))return a;const o=new jt([]);return Vt(a,o),o}}function Vt(e,t){const n=Array.isArray(e)?e:[e];t?t.children=n:t=null;for(let r=0;r<n.length;r++){const s=n[r];s.parent&&s.parent.children!==n&&Wt(s),t?(s.prev=n[r-1]||null,s.next=n[r+1
146]||null):s.prev=s.next=null,s.parent=t}return t}function SV(e,t){return e==null?[]:mt(e)?t?ji(e.get()):e.get():Array.isArray(e)?e.reduce((n,r)=>n.concat(this._makeDomArray(r,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?ji([e]):[e]}function Sl(e){return function(...t){const n=this.length-1;return _e(this,(r,s)=>{if(!ke(r))return;const i=typeof t[0]=="function"?t[0].call(r,s,this._render(r.children)):t,a=this._makeDomArray(i,s<n);e(a,r.children,r)})}}function Pt(e,t,n,r,s){var i,a;const o=[t,n,...r],c=t===0?null:e[t-1],l=t+n>=e.length?null:e[t+n];for(let h=0;h<r.length;++h){const d=r[h],p=d.parent;if(p){const g=p.children.indexOf(d);g>-1&&(p.children.splice(g,1),s===p&&t>g&&o[0]--)}d.parent=s,d.prev&&(d.prev.next=(i=d.next)!==null&&i!==void 0?i:null),d.next&&(d.next.prev=(a=d.prev)!==null&&a!==void 0?a:null),d.prev=h===0?c:r[h-1],d.next=h===r.length-1?l:r[h+1]}return c&&(c.next=r[0]),l&&(l.prev=r[r.length-1]),e.splice(...o)}function yV(e){return(mt(e)?e:this._make(e)).append(this),this}function IV(e){return(mt(e)?e:this._make(e)).prepend(this),this}const NV=Sl((e,t,n)=>{Pt(t,t.length,0,e,n)}),DV=Sl((e,t,n)=>{Pt(t,0,0,e,n)});function yl(e){return function(t){const n=this.length-1,r=this.parents().last();for(let s=0;s<this.length;s++){const i=this[s],a=typeof t=="function"?t.call(i,s,i):typeof t=="string"&&!Vi(t)?r.find(t).clone():t,[o]=this._makeDomArray(a,s<n);if(!o||!ke(o))continue;let c=o,l=0;for(;l<c.children.length;){const h=c.children[l];ee(h)?(c=h,l=0):l++}e(i,c,[o])}return this}}const RV=yl((e,t,n)=>{const{parent:r}=e;if(!r)return;const s=r.children,i=s.indexOf(e);Vt([e],t),Pt(s,i,0,n,r)}),LV=yl((e,t,n)=>{ke(e)&&(Vt(e.children,t),Vt(n,e))});function wV(e){return this.parent(e).not("body").each((t,n)=>{this._make(n).replaceWith(n.children)}),this}function OV(e){const t=this[0];if(t){const n=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let r;for(let i=0;i<n.length;i++)n[i].type==="tag"&&(r=n[i]);let s=0;for(;r&&s<r.children.length;){const i=r.children[s];i.type==="tag"?(r=i,s=0):s++}r&&this._make(r).append(this)}return this}function MV(...e){const t=this.length-1;return _e(this,(n,r)=>{const{parent:s}=n;if(!ke(n)||!s)return;const i=s.children,a=i.indexOf(n);if(a<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,c=this._makeDomArray(o,r<t);Pt(i,a+1,0,c,s)})}function PV(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];return this._makeDomArray(e).forEach(n=>{const r=this.clone().toArray(),{parent:s}=n;if(!s)return;const i=s.children,a=i.indexOf(n);a<0||(Pt(i,a+1,0,r,s),t.push(...r))}),this._make(t)}function FV(...e){const t=this.length-1;return _e(this,(n,r)=>{const{parent:s}=n;if(!ke(n)||!s)return;const i=s.children,a=i.indexOf(n);if(a<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,c=this._makeDomArray(o,r<t);Pt(i,a,0,c,s)})}function BV(e){const t=this._make(e);this.remove();const n=[];return _e(t,r=>{const s=this.clone().toArray(),{parent:i}=r;if(!i)return;const a=i.children,o=a.indexOf(r);o<0||(Pt(a,o,0,s,i),n.push(...s))}),this._make(n)}function HV(e){const t=e?this.filter(e):this;return _e(t,n=>{Wt(n),n.prev=n.next=n.parent=null}),this}function UV(e){return _e(this,(t,n)=>{const{parent:r}=t;if(!r)return;const s=r.children,i=typeof e=="function"?e.call(t,n,t):e,a=this._makeDomArray(i);Vt(a,null);const o=s.indexOf(t);Pt(s,o,1,a,r),a.includes(t)||(t.parent=t.prev=t.next=null)})}function qV(){return _e(this,e=>{ke(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function $V(e){if(e===void 0){const t=this[0];return!t||!ke(t)?null:this._render(t.children)}return _e(this,t=>{if(!ke(t))return;t.children.forEach(r=>{r.next=r.prev=r.parent=null});const n=mt(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Vt(n,t)})}function zV(){return this._render(this)}function YV(e){return e===void 0?zn(this):typeof e=="function"?_e(this,(t,n)=>this._make(t).text(e.call(t,n,zn([t])))):_e(this,t=>{if(!ke(t))return;t.children.forEach(r=>{r.next=r.prev=r.parent=null});const n=new $n(`${e}`);Vt(n,t)})}function jV(){return this._make(ji(this.get()))}const VV=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:SV,after:MV,append:NV,appendTo:yV,before:FV,clone:jV,empty:qV,html:$V,insertAfter:PV,insertBefore:BV,prepend:DV,prependTo:IV,remove:HV,replaceWith:UV,text:YV,toString:zV,unwrap:wV,wrap:RV,wrapAll:OV,wrapInner:LV},Symbol.toStringTag,{value:"Module"}));function GV(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return _e(this,(n,r)=>{ee(n)&&Il(n,e,t,r)});if(this.length!==0)return Nl(this[0],e)}function Il(e,t,n,r){if(typeof t=="string"){const s=Nl(e),i=typeof n=="function"?n.call(e,r,s[t]):n;i===""?delete s[t]:i!=null&&(s[t]=i),e.attribs.style=WV(s)}else typeof t=="object"&&Object.keys(t).forEach((s,i)=>{Il(e,s,t[s],i)})}function Nl(e,t){if(!e||!ee(e))return;const n=QV(e.attribs.style);if(typeof t=="string")return n[t];
146if(Array.isArray(t)){const r={};return t.forEach(s=>{n[s]!=null&&(r[s]=n[s])}),r}return n}function WV(e){return Object.keys(e).reduce((t,n)=>`${t}${t?" ":""}${n}: ${e[n]};`,"")}function QV(e){if(e=(e||"").trim(),!e)return{};const t={};let n;for(const r of e.split(";")){const s=r.indexOf(":");if(s<1||s===r.length-1){const i=r.trimEnd();i.length>0&&n!==void 0&&(t[n]+=`;${i}`)}else n=r.slice(0,s).trim(),t[n]=r.slice(s+1).trim()}return t}const KV=Object.freeze(Object.defineProperty({__proto__:null,css:GV},Symbol.toStringTag,{value:"Module"})),Vu="input,select,textarea,keygen",XV=/%20/g,Gu=/\r?\n/g;function ZV(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(XV,"+")}function JV(){return this.map((e,t)=>{const n=this._make(t);return ee(t)&&t.name==="form"?n.find(Vu).toArray():n.filter(Vu).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var n;const r=this._make(t),s=r.attr("name"),i=(n=r.val())!==null&&n!==void 0?n:"";return Array.isArray(i)?i.map(a=>({name:s,value:a.replace(Gu,`\r
147`)})):{name:s,value:i.replace(Gu,`\r
148`)}}).toArray()}const eG=Object.freeze(Object.defineProperty({__proto__:null,serialize:ZV,serializeArray:JV},Symbol.toStringTag,{value:"Module"}));class Xn{constructor(t,n,r){if(this.length=0,this.options=r,this._root=n,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}}Xn.prototype.cheerio="[cheerio object]";Xn.prototype.splice=Array.prototype.splice;Xn.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Xn.prototype,lj,xV,VV,KV,eG);function tG(e,t){return function n(r,s,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");const a={...da,...qi(s)},o=e(r,a,i,null);class c extends Xn{_make(d,p){const f=l(d,p);return f.prevObject=this,f}_parse(d,p,f,g){return e(d,p,f,g)}_render(d){return t(d,this.options)}}function l(h,d,p=o,f){if(h&&mt(h))return h;const g={...a,...qi(f)},v=typeof p=="string"?[e(p,g,!1,null)]:"length"in p?p:[p],x=mt(v)?v:new c(v,null,g);if(x._root=x,!h)return new c(void 0,x,g);const E=typeof h=="string"&&Vi(h)?e(h,g,!1,null).children:nG(h)?[h]:Array.isArray(h)?h:void 0,_=new c(E,x,g);if(E)return _;if(typeof h!="string")throw new Error("Unexpected type of selector");let T=h;const A=d?typeof d=="string"?Vi(d)?new c([e(d,g,!1,null)],x,g):(T=`${d} ${T}`,x):mt(d)?d:new c(Array.isArray(d)?d:[d],x,g):x;return A?A.find(T):_}return Object.assign(l,ej,{load:n,_root:o,_options:a,fn:c.prototype,prototype:c.prototype}),l}}function nG(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}const rG=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]),ge="�";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.NUMBER_SIGN=35]="NUMBER_SIGN",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_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",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_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(m=m||(m={}));const Ue={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Dl(e){return e>=55296&&e<=57343}function sG(e){return e>=56320&&e<=57343}function iG(e,t){return(e-55296)*1024+9216+t}function Rl(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ll(e){return e>=64976&&e<=65007||rG.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.invali
148dFirstCharacterOfTagName="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||(L={}));const aG=65536;class oG{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=aG,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(t){const{line:n,col:r,offset:s}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(sG(n))return this.pos++,this._addGap(),iG(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,m.EOF;return this._err(L.surrogateInInputStream),t}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(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,m.EOF;const r=this.html.charCodeAt(n);return r===m.CARRIAGE_RETURN?m.LINE_FEED:r}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 t=this.html.charCodeAt(this.pos);return t===m.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,m.LINE_FEED):t===m.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Dl(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===m.LINE_FEED||t===m.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Rl(t)?this._err(L.controlCharacterInInputStream):Ll(t)&&this._err(L.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ae;(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"})(ae=ae||(ae={}));function wl(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 M;(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/"})(M=M||(M={}));var Mt;(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"})(Mt=Mt||(Mt={}));var Ye;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ye=Ye||(Ye={}));var R;(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.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="str
148ike",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"})(R=R||(R={}));var u;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(u=u||(u={}));const uG=new Map([[R.A,u.A],[R.ADDRESS,u.ADDRESS],[R.ANNOTATION_XML,u.ANNOTATION_XML],[R.APPLET,u.APPLET],[R.AREA,u.AREA],[R.ARTICLE,u.ARTICLE],[R.ASIDE,u.ASIDE],[R.B,u.B],[R.BASE,u.BASE],[R.BASEFONT,u.BASEFONT],[R.BGSOUND,u.BGSOUND],[R.BIG,u.BIG],[R.BLOCKQUOTE,u.BLOCKQUOTE],[R.BODY,u.BODY],[R.BR,u.BR],[R.BUTTON,u.BUTTON],[R.CAPTION,u.CAPTION],[R.CENTER,u.CENTER],[R.CODE,u.CODE],[R.COL,u.COL],[R.COLGROUP,u.COLGROUP],[R.DD,u.DD],[R.DESC,u.DESC],[R.DETAILS,u.DETAILS],[R.DIALOG,u.DIALOG],[R.DIR,u.DIR],[R.DIV,u.DIV],[R.DL,u.DL],[R.DT,u.DT],[R.EM,u.EM],[R.EMBED,u.EMBED],[R.FIELDSET,u.FIELDSET],[R.FIGCAPTION,u.FIGCAPTION],[R.FIGURE,u.FIGURE],[R.FONT,u.FONT],[R.FOOTER,u.FOOTER],[R.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[R.FORM,u.FORM],[R.FRAME,u.FRAME],[R.FRAMESET,u.FRAMESET],[R.H1,u.H1],[R.H2,u.H2],[R.H3,u.H3],[R.H4,u.H4],[R.H5,u.H5],[R.H6,u.H6],[R.HEAD,u.HEAD],[R.HEADER,u.HEADER],[R.HGROUP,u.HGROUP],[R.HR,u.HR],[R.HTML,u.HTML],[R.I,u.I],[R.IMG,u.IMG],[R.IMAGE,u.IMAGE],[R.INPUT,u.INPUT],[R.IFRAME,u.IFRAME],[R.KEYGEN,u.KEYGEN],[R.LABEL,u.LABEL],[R.LI,u.LI],[R.LINK,u.LINK],[R.LISTING,u.LISTING],[R.MAIN,u.MAIN],[R.MALIGNMARK,u.MALIGNMARK],[R.MARQUEE,u.MARQUEE],[R.MATH,u.MATH],[R.MENU,u.MENU],[R.META,u.META],[R.MGLYPH,u.MGLYPH],[R.MI,u.MI],[R.MO,u.MO],[R.MN,u.MN],[R.MS,u.MS],[R.MTEXT,u.MTEXT],[R.NAV,u.NAV],[R.NOBR,u.NOBR],[R.NOFRAMES,u.NOFRAMES],[R.NOEMBED,u.NOEMBED],[R.NOSCRIPT,u.NOSCRIPT],[R.OBJECT,u.OBJECT],[R.OL,u.OL],[R.OPTGROUP,u.OPTGROUP],[R.OPTION,u.OPTION],[R.P,u.P],[R.PARAM,u.PARAM],[R.PLAINTEXT,u.PLAINTEXT],[R.PRE,u.PRE],[R.RB,u.RB],[R.RP,u.RP],[R.RT,u.RT],[R.RTC,u.RTC],[R.RUBY,u.RUBY],[R.S,u.S],[R.SCRIPT,u.SCRIPT],[R.SECTION,u.SECTION],[R.SELECT,u.SELECT],[R.SOURCE,u.SOURCE],[R.SMALL,u.SMALL],[R.SPAN,u.SPAN],[R.STRIKE,u.STRIKE],[R.STRONG,u.STRONG],[R.STYLE,u.STYLE],[R.SUB,u.SUB],[R.SUMMARY,u.SUMMARY],[R.SUP,u.SUP],[R.TABLE,u.TABLE],[R.TBODY,u.TBODY],[R.TEMPLATE,u.TEMPLATE],[R.TEXTAREA,u.TEXTAREA],[R.TFOOT,u.TFOOT],[R.TD,u.TD],[R.TH,u.TH],[R.THEAD,u.THEAD],[R.TITLE,u.TITLE],[R.TR,u.TR],[R.TRACK,u.TRACK],[R.TT,u.TT],[R.U,u.U],[R.UL,u.UL],[R.SVG,u.SVG],[R.VAR,u.VAR],[R.WBR,u.WBR],[R.XMP,u.XMP]]);function ns(e){var t;return(t=uG.get(e))!==null&&t!==void 0?t:u.UNKNOWN}const q=u,cG={[M.HTML]:new Set([q.ADDRESS,q.APPLET,q.AREA,q.ARTICLE,q.ASIDE,q.BASE,q.BASEFONT,q.BGSOUND,q.BLOCKQUOTE,q.BODY,q.BR,q.BUTTON,q.CAPTION,q.CENTER,q.COL,q.COLGROUP,q.DD,q.DETAILS,q.DIR,q.DIV,q.DL,q.DT,q.EMBED,q.FIELDSET,q.FIGCAPTION,q.FIGURE,q.FOOTER,q.FORM,q.FRAME,q.FRAMESET,q.H1,q.H2,q.H3,q.H4,q.H5,q.H6,q.HEAD,q.HEADER,q.HGROUP,q.HR,q.HTML,q.IFRAME,q.IMG,q.INPUT,q.LI,q.LINK,q.LISTING,q.MAIN,q.MARQUEE,q.MENU,q.META,q.NAV,q.NOEMBED,q.NOFRAMES,q.NOSCRIPT,q.OBJECT,q.OL,q.P,q.PARAM,q.PLAINTEXT,q.PRE,q.SCRIPT,q.SECTION,q.SELECT,q.SOURCE,q.STYLE,q.SUMMARY,q.TABLE,q.TBODY,q.TD,q.TEMPLATE,q.TEXTAREA,q.TFOOT,q.TH,q.THEAD,q.TITLE,q.TR,q.TRACK,q.UL,q.WBR,q.XMP]),[M.MATHML]:new Set([q.MI,q.MO,q.MN,q.MS,q.MTEXT,q.ANNOTATION_XML]),[M.SVG]:new Set([q.TITLE,q.FOREIGN_OBJECT,q.DESC]),[M.XLINK]:new Set,[M.XML]:new Set,[M.XMLNS]:new Set};function Ol(e){return e===q.H1||e===q.H2||e===q.H3||e===q.H4||e===q.H5||e===q.H6}const lG=new Set([R.STYLE,R.SCRIPT,R.XMP,R.IFRAME,R.NOEMBED,R.NOFRAMES,R.PLAINTEXT]);function hG(e,t){return lG.has(e)||t&&e===R.NOSCRIPT}const dG=new Map([[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]]);var b;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECI
148MAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(b||(b={}));const je={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function Mn(e){return e>=m.DIGIT_0&&e<=m.DIGIT_9}function In(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_Z}function fG(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_Z}function It(e){return fG(e)||In(e)}function Xi(e){return It(e)||Mn(e)}function Ml(e){return e>=m.LATIN_CAPITAL_A&&e<=m.LATIN_CAPITAL_F}function Pl(e){return e>=m.LATIN_SMALL_A&&e<=m.LATIN_SMALL_F}function pG(e){return Mn(e)||Ml(e)||Pl(e)}function gr(e){return e+32}function Fl(e){return e===m.SPACE||e===m.LINE_FEED||e===m.TABULATION||e===m.FORM_FEED}function mG(e){return e===m.EQUALS_SIGN||Xi(e)}function Wu(e){return Fl(e)||e===m.SOLIDUS||e===m.GREATER_THAN_SIGN}let gG=class{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new oG(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ae.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ae.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ae.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ae.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(wl(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const s=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[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(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ns(t.tagName),t.type===ae.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(L.endTagWithAttributes),t.selfClosing&&this._err(L.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ae.CHARACTER:{this.handler.onCh
148aracter(this.currentCharacterToken);break}case ae.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ae.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ae.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Fl(t)?ae.WHITESPACE_CHARACTER:t===m.NULL?ae.NULL_CHARACTER:ae.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ae.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,s=!1;for(let i=0,a=At[0];i>=0&&(i=ba(At,a,i+1,t),!(i<0));t=this._consume()){r+=1,a=At[i];const o=a&Ge.VALUE_LENGTH;if(o){const c=(o>>14)-1;if(t!==m.SEMICOLON&&this._isCharacterReferenceInAttribute()&&mG(this.preprocessor.peek(1))?(n=[m.AMPERSAND],i+=c):(n=c===0?[At[i]&~Ge.VALUE_LENGTH]:c===1?[At[++i]]:[At[++i],At[++i]],r=0,s=t!==m.SEMICOLON),c===0){this._consume();break}}}return this._unconsume(r),s&&!this.preprocessor.endOfChunkHit&&this._err(L.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case b.DATA:{this._stateData(t);break}case b.RCDATA:{this._stateRcdata(t);break}case b.RAWTEXT:{this._stateRawtext(t);break}case b.SCRIPT_DATA:{this._stateScriptData(t);break}case b.PLAINTEXT:{this._statePlaintext(t);break}case b.TAG_OPEN:{this._stateTagOpen(t);break}case b.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case b.TAG_NAME:{this._stateTagName(t);break}case b.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case b.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case b.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case b.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case b.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case b.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case b.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case b.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case b.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case b.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case b.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case b.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case b.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case b.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case b.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case b.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case b.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case b.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case b.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case b.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case b.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case b.BOGUS_COMMENT:{this._stateBogusComment(t);break}case b.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case b.COMMENT_START:{this._stateCommentStart(t);break}case b.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case b.COMMENT:{this._stateComment(t);break}case b.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case b.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case b.COMMENT_END:{this._stateCommentEnd(t);break}case b.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case b.DOCTYPE:{this._stateDoctype(t);break}case b.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case b.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case b.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctype
148SystemIdentifier(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case b.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case b.CDATA_SECTION:{this._stateCdataSection(t);break}case b.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case b.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case b.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case b.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case b.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case b.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case b.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case b.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case b.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case b.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case m.LESS_THAN_SIGN:{this.state=b.TAG_OPEN;break}case m.AMPERSAND:{this.returnState=b.DATA,this.state=b.CHARACTER_REFERENCE;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this._emitCodePoint(t);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case m.AMPERSAND:{this.returnState=b.RCDATA,this.state=b.CHARACTER_REFERENCE;break}case m.LESS_THAN_SIGN:{this.state=b.RCDATA_LESS_THAN_SIGN;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ge);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case m.LESS_THAN_SIGN:{this.state=b.RAWTEXT_LESS_THAN_SIGN;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ge);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case m.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ge);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case m.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ge);break}case m.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(It(t))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case m.EXCLAMATION_MARK:{this.state=b.MARKUP_DECLARATION_OPEN;break}case m.SOLIDUS:{this.state=b.END_TAG_OPEN;break}case m.QUESTION_MARK:{this._err(L.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t);break}case m.EOF:{this._err(L.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(It(t))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case m.GREATER_THAN_SIGN:{this._err(L.missingEndTagName),this.state=b.DATA;break}case m.EOF:{this._err(L.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(L.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=b.BEFORE_ATTRIBUTE_NAME;break}case m.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case m.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.tagName+=ge;break}case m.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(In(t)?gr(t):t)}}_stateRcdataLessThanSign(t){t===m.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){It(t)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.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=b.BEFORE_ATTRIBUTE_NAME,
148!1;case m.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case m.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===m.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){It(t)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case m.SOLIDUS:{this.state=b.SCRIPT_DATA_END_TAG_OPEN;break}case m.EXCLAMATION_MARK:{this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){It(t)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===m.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===m.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case m.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ge);break}case m.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case m.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(ge);break}case m.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case m.HYPHEN_MINUS:{this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case m.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(ge);break}case m.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===m.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:It(t)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){It(t)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ue.SCRIPT,!1)&&Wu(this.preprocessor.peek(Ue.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ue.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case m.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.NULL:{this._err(L.unexpectedNullCharacter),this._emitChars(ge);break}case m.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case m.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ge);break}case m.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case m.HYPHEN_MINUS:{this._emitChars("-");break}case m.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case m.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ge);break}case m.EOF:{this._err(L.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===m.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ue.SCRIPT,!1)&&Wu(this.preprocessor.peek(Ue.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ue.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){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=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.EQUALS_SIGN:{this._err(L.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){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=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case m.EQUALS_SIGN:{this._leaveAttrName(),this.state=b.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(t);break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.name+=ge;break}default:this.currentAttr.name+=String.fromCodePoint(In(t)?gr(t):t)}}_stateAfterAttributeName(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case m.EQUALS_SIGN:{this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case m.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(L.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break}default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case m.QUOTATION_MARK:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.AMPERSAND:{this.returnState=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=b.CHARACTER_REFERENCE;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=ge;break}case m.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case m.APOSTROPHE:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case m.AMPERSAND:{this.returnState=b.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=b.CHARACTER_REFERENCE;break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=ge;break}case m.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case m.AMPERSAND:{this.returnState=b.ATTRIBUTE_VALUE_UNQUOTED,this.state=b.CHARACTER_REFERENCE;break}case m.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case m.NULL:{this._err(L.unexpectedNullCharacter),this.currentAttr.value+=ge;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(t);break}case m.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case m.SOLIDUS:{this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break}case m.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case m.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case m.EOF:{this._err(L.eofInTag),this._emitEOFToken();break}default:this._err(L.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case m.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.data+=ge;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ue.DASH_DASH,!0)?(this._createCommentToken(Ue.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch(Ue.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ue.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch(Ue.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(L.cdataInHtmlContent),this._createCommentToken(Ue.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(L.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case m.HYPHEN_MINUS:{this.state=b.COMMENT_START_DASH;break}case m.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=b.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case m.GREATER_THAN_SIGN:{this._err(L.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(n);break}case m.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=b.COMMENT_END_DASH;break}case m.LESS_THAN_SIGN:{n.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.data+=ge;break}case m.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case m.EXCLAMATION_MARK:{n.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break}case m.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===m.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===m.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==m.GREATER_THAN_SIGN&&t!==m.EOF&&this._err(L.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case m.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case m.EXCLAMATION_MARK:{this.state=b.COMMENT_END_BANG;break}case m.HYPHEN_MINUS:{n.data+="-";break}case m.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case m.HYPHEN_MINUS:{n.data+="--!",this.state=b.COMMENT_END_DASH;break}case m.GREATER_THAN_SIGN:{this._err(L.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(n);break}case m.EOF:{this._err(L.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=b.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case m.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(In(t))this._createDoctypeToken(String.fromCharCode(gr(t))),this.state=b.DOCTYPE_NAME;else switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.NULL:{this._err(L.unexpectedNullCharacter),this._createDoctypeToken(ge),this.state=b.DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this._err(L.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.EOF:{this._err(L.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=b.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=b.AFTER_DOCTYPE_NAME;break}case m.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.name+=ge;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(In(t)?gr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED
148:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ue.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ue.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(L.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(L.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case m.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=ge;break}case m.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case m.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.publicId+=ge;break}case m.GREATER_THAN_SIGN:{this._err(L.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case m.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case m.QUOTATION_MARK:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(L.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}
148default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.QUOTATION_MARK:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{this._err(L.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case m.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case m.GREATER_THAN_SIGN:{this._err(L.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case m.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=ge;break}case m.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case m.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case m.NULL:{this._err(L.unexpectedNullCharacter),n.systemId+=ge;break}case m.GREATER_THAN_SIGN:{this._err(L.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case m.SPACE:case m.LINE_FEED:case m.TABULATION:case m.FORM_FEED:break;case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.EOF:{this._err(L.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(L.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case m.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case m.NULL:{this._err(L.unexpectedNullCharacter);break}case m.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case m.RIGHT_SQUARE_BRACKET:{this.state=b.CDATA_SECTION_BRACKET;break}case m.EOF:{this._err(L.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===m.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case m.GREATER_THAN_SIGN:{this.state=b.DATA;break}case m.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===m.NUMBER_SIGN?this.state=b.NUMERIC_CHARACTER_REFERENCE:Xi(t)?(this.state=b.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){const n=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(n){for(let r=0;r<n.length;r++)this._flushCodePointConsumedAsCharacterReference(n[r]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this.state=b.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){Xi(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===m.SEMICOLON&&this._err(L.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===m.LATIN_SMALL_X||t===m.LATIN_CAPITAL_X?this.state=b.HEXADEMICAL_CHARACTER_REFERENCE_START:Mn(t)?(this.state=b.DECI
148MAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(L.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(m.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){pG(t)?(this.state=b.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(L.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(m.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(m.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){Ml(t)?this.charRefCode=this.charRefCode*16+t-55:Pl(t)?this.charRefCode=this.charRefCode*16+t-87:Mn(t)?this.charRefCode=this.charRefCode*16+t-48:t===m.SEMICOLON?this.state=b.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.missingSemicolonAfterCharacterReference),this.state=b.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){Mn(t)?this.charRefCode=this.charRefCode*10+t-48:t===m.SEMICOLON?this.state=b.NUMERIC_CHARACTER_REFERENCE_END:(this._err(L.missingSemicolonAfterCharacterReference),this.state=b.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===m.NULL)this._err(L.nullCharacterReference),this.charRefCode=m.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(L.characterReferenceOutsideUnicodeRange),this.charRefCode=m.REPLACEMENT_CHARACTER;else if(Dl(this.charRefCode))this._err(L.surrogateCharacterReference),this.charRefCode=m.REPLACEMENT_CHARACTER;else if(Ll(this.charRefCode))this._err(L.noncharacterCharacterReference);else if(Rl(this.charRefCode)||this.charRefCode===m.CARRIAGE_RETURN){this._err(L.controlCharacterReference);const n=dG.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};const Bl=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),Qu=new Set([...Bl,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),Er=new Map([[u.APPLET,M.HTML],[u.CAPTION,M.HTML],[u.HTML,M.HTML],[u.MARQUEE,M.HTML],[u.OBJECT,M.HTML],[u.TABLE,M.HTML],[u.TD,M.HTML],[u.TEMPLATE,M.HTML],[u.TH,M.HTML],[u.ANNOTATION_XML,M.MATHML],[u.MI,M.MATHML],[u.MN,M.MATHML],[u.MO,M.MATHML],[u.MS,M.MATHML],[u.MTEXT,M.MATHML],[u.DESC,M.SVG],[u.FOREIGN_OBJECT,M.SVG],[u.TITLE,M.SVG]]),EG=[u.H1,u.H2,u.H3,u.H4,u.H5,u.H6],bG=[u.TR,u.TEMPLATE,u.HTML],TG=[u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML],_G=[u.TABLE,u.TEMPLATE,u.HTML],AG=[u.TD,u.TH];class CG{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===M.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,r),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==M.HTML);
148this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(EG,M.HTML)}popUntilTableCellPopped(){this.popUntilPopped(AG,M.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(_G,M.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TG,M.HTML)}clearBackToTableRowContext(){this.clearBackTo(bG,M.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===u.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],s=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&s===M.HTML)return!0;if(Er.get(r)===s)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(Ol(n)&&r===M.HTML)return!0;if(Er.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],s=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&s===M.HTML)return!0;if((r===u.UL||r===u.OL)&&s===M.HTML||Er.get(r)===s)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],s=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&s===M.HTML)return!0;if(r===u.BUTTON&&s===M.HTML||Er.get(r)===s)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===M.HTML){if(r===t)return!0;if(r===u.TABLE||r===u.TEMPLATE||r===u.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===M.HTML){if(n===u.TBODY||n===u.THEAD||n===u.TFOOT)return!0;if(n===u.TABLE||n===u.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===M.HTML){if(r===t)return!0;if(r!==u.OPTION&&r!==u.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Bl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Qu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Qu.has(this.currentTagId);)this.pop()}}const Ri=3;var tt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(tt=tt||(tt={}));const Ku={type:tt.Marker};class kG{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],s=n.length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===tt.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a){const h=this.treeAdapter.getAttrList(l);h.length===s&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Ri)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Ri)return;const s=new Map(n.map(a=>[a.name,a.value]));let i=0;for(let a=0;a<r.length;a++){const o=r[a];o.attrs.every(c=>s.get(c.name)===c.value)&&(i+=1,i>=Ri&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Ku)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:tt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:tt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Ku);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===tt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===tt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===tt.Element&&n.element===t)}}function Xu(e){return{nodeName:"#text",value:e,parentNode:null}}const zt={createDocument(){return{nodeName:"#document",mode:Ye.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}},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 s=e.childNodes.find(i=>i.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};zt.appendChild(e,i)}},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(zt.isTextNode(n)){n.value+=t;return}}zt.appendChild(e,Xu(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&zt.isTextNode(r)?r.value+=t:zt.insertBefore(e,Xu(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}
vendor: 4,984 bytes, line 148
148,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}}},Hl="html",xG="about:legacy-compat",vG="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ul=["+//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//"],SG=[...Ul,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],yG=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ql=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],IG=[...ql,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Zu(e,t){return t.some(n=>e.startsWith(n))}function NG(e){return e.name===Hl&&e.publicId===null&&(e.systemId===null||e.systemId===xG)}function DG(e){if(e.name!==Hl)return Ye.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===vG)return Ye.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),yG.has(n))return Ye.QUIRKS;let r=t===null?SG:Ul;if(Zu(n,r))return Ye.QUIRKS;if(r=t===null?ql:IG,Zu(n,r))return Ye.LIMITED_QUIRKS}return Ye.NO_QUIRKS}const Ju={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},RG="definitionurl",LG="definitionURL",wG=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])),OG=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:M.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:M.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:M.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:M.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:M.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:M.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:M.XLINK}
148],["xml:base",{prefix:"xml",name:"base",namespace:M.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:M.XML}],["xml:space",{prefix:"xml",name:"space",namespace:M.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:M.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:M.XMLNS}]]),MG=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])),PG=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR]);function FG(e){const t=e.tagID;return t===u.FONT&&e.attrs.some(({name:r})=>r===Mt.COLOR||r===Mt.SIZE||r===Mt.FACE)||PG.has(t)}function $l(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===RG){e.attrs[t].name=LG;break}}function zl(e){for(let t=0;t<e.attrs.length;t++){const n=wG.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function La(e){for(let t=0;t<e.attrs.length;t++){const n=OG.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 BG(e){const t=MG.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ns(e.tagName))}function HG(e,t){return t===M.MATHML&&(e===u.MI||e===u.MO||e===u.MN||e===u.MS||e===u.MTEXT)}function UG(e,t,n){if(t===M.MATHML&&e===u.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Mt.ENCODING){const s=n[r].value.toLowerCase();return s===Ju.TEXT_HTML||s===Ju.APPLICATION_XML}}return t===M.SVG&&(e===u.FOREIGN_OBJECT||e===u.DESC||e===u.TITLE)}function qG(e,t,n,r){return(!r||r===M.HTML)&&UG(e,t,n)||(!r||r===M.MATHML)&&HG(e,t)}const $G="hidden",zG=8,YG=3;var k;(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"})(k||(k={}));const jG={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Yl=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),ec={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:zt,onParseError:null};let jl=class{constructor(t,n,r=null,s=null){this.fragmentContext=r,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.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={...ec,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new gG(this.options,this),this.activeFormattingElements=new kG(this.treeAdapter),this.fragmentContextID=r?ns(this.treeAdapter.getTagName(r)):u.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new CG(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...ec,...n};t??(t=r.treeAdapter.createElement(R.TEMPLATE,M.HTML,[]));const s=r.treeAdapter.createElement("documentmock",M.HTML,[]),i=new this(r,s,t);return i.fragmentContextID===u.TEMPLATE&&i.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var s;if(!this.onParseError)return;const i=(s=t.location)!==null&&s!==void 0?s:jG,a={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(t,n,r){var s,i;(i=(s=this.treeAdapter).onItemPush)===null||i===void 0||i.call(s,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(r=this.treeAdapter).onItemPop)===null||s===void 0||s.call(r,t,this.openElements.current),n){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(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===M.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,M.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=je.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;
148for(;t;){if(this.treeAdapter.getTagName(t)===R.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==M.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=je.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=je.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=je.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=je.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,s),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,M.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,M.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(R.HTML,M.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,u.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),i=r?s.lastIndexOf(r):s.length,a=s[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:c,endCol:l,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:c,endCol:l,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,s=this.treeAdapter.getTagName(t),i=n.type===ae.END_TAG&&s===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===u.SVG&&this.treeAdapter.getTagName(n)===R.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===M.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===u.MGLYPH||t.tagID===u.MALIGNMARK)&&!this._isIntegrationPoint(r,n,M.HTML)}_processToken(t){switch(t.type){case ae.CHARACTER:{this.onCharacter(t);break}case ae.NULL_CHARACTER:{this.onNullCharacter(t);break}case ae.COMMENT:{this.onComment(t);break}case ae.DOCTYPE:{this.onDoctype(t);break}case ae.START_TAG:{this._processStartTag(t);break}case ae.END_TAG:{this.onEndTag(t);break}case ae.EOF:{this.onEof(t);break}case ae.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const s=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return qG(t,s,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===tt.Marker||this.openElements.contains(s.element)),r=n<0?t-1:n-1;for(let s=r;s>=0;s--){const i=this.activeFormattingElements.entries[s];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=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case u.TR:{this.insertionMode=k.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=k.IN_TABLE;return}case u.BODY:{this.insertionMode=k.IN_BODY;return}case u.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(t);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case u.TD:case u.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case u.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===u.TEMPLATE)break;if(r===u.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return Yl.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===M.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case u.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return cG[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){AQ(this,t);return}switch(this.insertionMode){case k.INITIAL:{kn(this,t);break}case k.BEFORE_HTML:{Pn(this,t);break}case k.BEFORE_HEAD:{Fn(this,t);break}case k.IN_HEAD:{Bn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Hn(this,t);break}case k.AFTER_HEAD:{Un(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{Gl(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Li(this,t);break}case k.IN_TABLE_TEXT:{Jl(this,t);break}case k.IN_COLUMN_GROUP:{Vr(this,t);break}case k.AFTER_BODY:{Gr(this,t);break}
148case k.AFTER_AFTER_BODY:{Ir(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){_Q(this,t);return}switch(this.insertionMode){case k.INITIAL:{kn(this,t);break}case k.BEFORE_HTML:{Pn(this,t);break}case k.BEFORE_HEAD:{Fn(this,t);break}case k.IN_HEAD:{Bn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Hn(this,t);break}case k.AFTER_HEAD:{Un(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Li(this,t);break}case k.IN_COLUMN_GROUP:{Vr(this,t);break}case k.AFTER_BODY:{Gr(this,t);break}case k.AFTER_AFTER_BODY:{Ir(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zi(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{Zi(this,t);break}case k.IN_TABLE_TEXT:{xn(this,t);break}case k.AFTER_BODY:{ZG(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{JG(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{eW(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,L.misplacedDoctype);break}case k.IN_TABLE_TEXT:{xn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,L.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?CQ(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{kn(this,t);break}case k.BEFORE_HTML:{tW(this,t);break}case k.BEFORE_HEAD:{rW(this,t);break}case k.IN_HEAD:{it(this,t);break}case k.IN_HEAD_NO_SCRIPT:{aW(this,t);break}case k.AFTER_HEAD:{uW(this,t);break}case k.IN_BODY:{Pe(this,t);break}case k.IN_TABLE:{pn(this,t);break}case k.IN_TABLE_TEXT:{xn(this,t);break}case k.IN_CAPTION:{sQ(this,t);break}case k.IN_COLUMN_GROUP:{Ma(this,t);break}case k.IN_TABLE_BODY:{is(this,t);break}case k.IN_ROW:{as(this,t);break}case k.IN_CELL:{oQ(this,t);break}case k.IN_SELECT:{nh(this,t);break}case k.IN_SELECT_IN_TABLE:{cQ(this,t);break}case k.IN_TEMPLATE:{hQ(this,t);break}case k.AFTER_BODY:{fQ(this,t);break}case k.IN_FRAMESET:{pQ(this,t);break}case k.AFTER_FRAMESET:{gQ(this,t);break}case k.AFTER_AFTER_BODY:{bQ(this,t);break}case k.AFTER_AFTER_FRAMESET:{TQ(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?kQ(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{kn(this,t);break}case k.BEFORE_HTML:{nW(this,t);break}case k.BEFORE_HEAD:{sW(this,t);break}case k.IN_HEAD:{iW(this,t);break}case k.IN_HEAD_NO_SCRIPT:{oW(this,t);break}case k.AFTER_HEAD:{cW(this,t);break}case k.IN_BODY:{ss(this,t);break}case k.TEXT:{WW(this,t);break}case k.IN_TABLE:{jn(this,t);break}case k.IN_TABLE_TEXT:{xn(this,t);break}case k.IN_CAPTION:{iQ(this,t);break}case k.IN_COLUMN_GROUP:{aQ(this,t);break}case k.IN_TABLE_BODY:{Ji(this,t);break}case k.IN_ROW:{th(this,t);break}case k.IN_CELL:{uQ(this,t);break}case k.IN_SELECT:{rh(this,t);break}case k.IN_SELECT_IN_TABLE:{lQ(this,t);break}case k.IN_TEMPLATE:{dQ(this,t);break}case k.AFTER_BODY:{ih(this,t);break}case k.IN_FRAMESET:{mQ(this,t);break}case k.AFTER_FRAMESET:{EQ(this,t);break}case k.AFTER_AFTER_BODY:{Ir(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{kn(this,t);break}case k.BEFORE_HTML:{Pn(this,t);break}case k.BEFORE_HEAD:{Fn(this,t);break}case k.IN_HEAD:{Bn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Hn(this,t);break}case k.AFTER_HEAD:{Un(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{Xl(this,t);break}case k.TEXT:{QW(this,t);break}case k.IN_TABLE_TEXT:{xn(this,t);break}case k.IN_TEMPLATE:{sh(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Oa(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCo
148deAt(0)===m.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Vl(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{Li(this,t);break}case k.IN_TABLE_TEXT:{Zl(this,t);break}}}};function VG(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):Kl(e,t),n}function GG(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const s=e.openElements.items[r];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[r])&&(n=s)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function WG(e,t,n){let r=t,s=e.openElements.getCommonAncestor(t);for(let i=0,a=s;a!==n;i++,a=s){s=e.openElements.getCommonAncestor(a);const o=e.activeFormattingElements.getElementEntry(a),c=o&&i>=YG;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(a)):(a=QG(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function QG(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 KG(e,t,n){const r=e.treeAdapter.getTagName(t),s=ns(r);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);s===u.TEMPLATE&&i===M.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function XG(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,i=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,s.tagID)}function wa(e,t){for(let n=0;n<zG;n++){const r=VG(e,t);if(!r)break;const s=GG(e,r);if(!s)break;e.activeFormattingElements.bookmark=r;const i=WG(e,s,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),a&&KG(e,a,i),XG(e,s,r)}}function Zi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ZG(e,t){e._appendCommentNode(t,e.openElements.items[0])}function JG(e,t){e._appendCommentNode(t,e.document)}function Oa(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],s=e.treeAdapter.getNodeSourceCodeLocation(r);if(s&&!s.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(i);a&&!a.endTag&&e._setEndLocation(i,t)}}}}function eW(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ye.QUIRKS:DG(t);NG(t)||e._err(t,L.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}function kn(e,t){e._err(t,L.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ye.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function tW(e,t){t.tagID===u.HTML?(e._insertElement(t,M.HTML),e.insertionMode=k.BEFORE_HEAD):Pn(e,t)}function nW(e,t){const n=t.tagID;(n===u.HTML||n===u.HEAD||n===u.BODY||n===u.BR)&&Pn(e,t)}function Pn(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function rW(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.HEAD:{e._insertElement(t,M.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:Fn(e,t)}}function sW(e,t){const n=t.tagID;n===u.HEAD||n===u.BODY||n===u.HTML||n===u.BR?Fn(e,t):e._err(t,L.endTagWithoutMatchingOpenElement)}function Fn(e,t){e._insertFakeElement(R.HEAD,u.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function it(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break}case u.TITLE:{e._switchToTextParsing(t,je.RCDATA);break}case u.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,je.RAWTEXT):(e._insertElement(t,M.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{e._switchToTextParsing(t,je.RAWTEXT);break}case u.SCRIPT:{e._switchToTextParsing(t,je.SCRIPT_DATA);break}case u.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case u.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:Bn(e,t)}}function iW(e,t){switch(t.tagID){case u.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{Bn(e,t);break}case u.TEMPLATE:{Qt(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Qt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u.TEMPLATE&&e._err(t,L.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,L.endTagWithoutMatchingOpenElement)}function Bn(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function aW(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{it(e,t);break}case u.NOSCRIPT:{e._err(t,L.nestedNoscriptInHead);break}default:Hn(e,t)}}function oW(e,t){switch(t.tagID){case u.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case u.BR:{Hn(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Hn(e,t){const n=t.type===ae.EOF?L.openElementsLeftAfterEof:L.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function uW(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.BODY:{e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case u.FRAMESET:{e._insertElement(t,M.HTML),e.insertionMode=k.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{e._err(t,L.abandonedHeadElementChild),e.openElements.push(e.headElement,u.HEAD),it(e,t),e.openElements.remove(e.headElement);break}case u.HEAD:{e._err(t,L.misplacedStartTagForHeadElement);break}default:Un(e,t)}}function cW(e,t){switch(t.tagID){case u.BODY:case u.HTML:case u.BR:{Un(e,t);break}case u.TEMPLATE:{Qt(e,t);break}default:e._err(t,L.endTagWithoutMatchingOpenElement)}}function Un(e,t){e._insertFakeElement(R.BODY,u.BODY),e.insertionMode=k.IN_BODY,rs(e,t)}function rs(e,t){switch(t.type){case ae.CHARACTER:{Gl(e,t);break}case ae.WHITESPACE_CHARACTER:{Vl(e,t);break}case ae.COMMENT:{Zi(e,t);break}case ae.START_TAG:{Pe(e,t);break}case ae.END_TAG:{ss(e,t);break}case ae.EOF:{Xl(e,t);break}}}function Vl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function lW(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function hW(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function dW(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();
148e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_FRAMESET)}function fW(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,M.HTML)}function pW(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),Ol(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,M.HTML)}function mW(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function gW(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,M.HTML),n||(e.formElement=e.openElements.current))}function EW(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const s=e.openElements.tagIDs[r];if(n===u.LI&&s===u.LI||(n===u.DD||n===u.DT)&&(s===u.DD||s===u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==u.ADDRESS&&s!==u.DIV&&s!==u.P&&e._isSpecialElement(e.openElements.items[r],s))break}e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,M.HTML)}function bW(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.tokenizer.state=je.PLAINTEXT}function TW(e,t){e.openElements.hasInScope(u.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.framesetOk=!1}function _W(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);n&&(wa(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function AW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CW(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u.NOBR)&&(wa(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function kW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function xW(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ye.QUIRKS&&e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}function Wl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,M.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ql(e){const t=wl(e,Mt.TYPE);return t!=null&&t.toLowerCase()===$G}function vW(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,M.HTML),Ql(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function SW(e,t){e._appendElement(t,M.HTML),t.ackSelfClosing=!0}function yW(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._appendElement(t,M.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function IW(e,t){t.tagName=R.IMG,t.tagID=u.IMG,Wl(e,t)}function NW(e,t){e._insertElement(t,M.HTML),e.skipNextNewLine=!0,e.tokenizer.state=je.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}function DW(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,je.RAWTEXT)}function RW(e,t){e.framesetOk=!1,e._switchToTextParsing(t,je.RAWTEXT)}function tc(e,t){e._switchToTextParsing(t,je.RAWTEXT)}function LW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function wW(e,t){e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML)}function OW(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,M.HTML)}function MW(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u.RTC),e._insertElement(t,M.HTML)}function PW(e,t){e._reconstructActiveFormattingElements(),$l(t),La(t),t.selfClosing?e._appendElement(t,M.MATHML):e._insertElement(t,M.MATHML),t.ackSelfClosing=!0}function FW(e,t){e._reconstructActiveFormattingElements(),zl(t),La(t),t.selfClosing?e._appendElement(t,M.SVG):e._insertElement(t,M.SVG),t.ackSelfClosing=!0}function nc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML)}function Pe(e,t){switch(t.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{AW(e,t);break}case u.A:{_W(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{pW(e,t);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{fW(e,t);break}case u.LI:case u.DD:case u.DT:{EW(e,t);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{Wl(e,t);break}case u.HR:{yW(e,t);break}case u.RB:case u.RTC:{OW(e,t);break}case u.RT:case u.RP:{MW(e,t);break}case u.PRE:case u.LISTING:{mW(e,t);break}case u.XMP:{DW(e,t);break}case u.SVG:{FW(e,t);break}case u.HTML:{lW(e,t);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{it(e,t);break}case u.BODY:{hW(e,t);break}case u.FORM:{gW(e,t);break}case u.NOBR:{CW(e,t);break}case u.MATH:{PW(e,t);break}case u.TABLE:{xW(e,t);break}case u.INPUT:{vW(e,t);break}case u.PARAM:case u.TRACK:case u.SOURCE:{SW(e,t);break}case u.IMAGE:{IW(e,t);break}case u.BUTTON:{TW(e,t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{kW(e,t);break}case u.IFRAME:{RW(e,t);break}case u.SELECT:{LW(e,t);break}case u.OPTION:case u.OPTGROUP:{wW(e,t);break}case u.NOEMBED:{tc(e,t);break}case u.FRAMESET:{dW(e,t);break}case u.TEXTAREA:{NW(e,t);break}case u.NOSCRIPT:{e.options.scriptingEnabled?tc(e,t):nc(e,t);break}case u.PLAINTEXT:{bW(e,t);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:nc(e,t)}}function BW(e,t){if(e.openElements.hasInScope(u.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function HW(e,t){e.openElements.hasInScope(u.BODY)&&(e.insertionMode=k.AFTER_BODY,ih(e,t))}function UW(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function qW(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(u.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(u.FORM):n&&e.openElements.remove(n))}function $W(e){e.openElements.hasInButtonScope(u.P)||e._insertFakeElement(R.P,u.P),e._closePElement()}function zW(e){e.openElements.hasInListItemScope(u.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u.LI),e.openElements.popUntilTagNamePopped(u.LI))}function YW(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function jW(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function VW(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function GW(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(R.BR,u.BR),e.openElements.pop(),e.framesetOk=!1}function Kl(e,t){const n=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const i=e.openElements.items[s],a=e.openElements.tagIDs[s];if(r===a&&(r!==u.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>
148=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(i,a))break}}function ss(e,t){switch(t.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{wa(e,t);break}case u.P:{$W(e);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{UW(e,t);break}case u.LI:{zW(e);break}case u.DD:case u.DT:{YW(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{jW(e);break}case u.BR:{GW(e);break}case u.BODY:{BW(e,t);break}case u.HTML:{HW(e,t);break}case u.FORM:{qW(e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{VW(e,t);break}case u.TEMPLATE:{Qt(e,t);break}default:Kl(e,t)}}function Xl(e,t){e.tmplInsertionModeStack.length>0?sh(e,t):Oa(e,t)}function WW(e,t){var n;t.tagID===u.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function QW(e,t){e._err(t,L.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Li(e,t){if(Yl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case ae.CHARACTER:{Jl(e,t);break}case ae.WHITESPACE_CHARACTER:{Zl(e,t);break}}else Zn(e,t)}function KW(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_CAPTION}function XW(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_COLUMN_GROUP}function ZW(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.COLGROUP,u.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,Ma(e,t)}function JW(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_TABLE_BODY}function eQ(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(R.TBODY,u.TBODY),e.insertionMode=k.IN_TABLE_BODY,is(e,t)}function tQ(e,t){e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function nQ(e,t){Ql(t)?e._appendElement(t,M.HTML):Zn(e,t),t.ackSelfClosing=!0}function rQ(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,M.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function pn(e,t){switch(t.tagID){case u.TD:case u.TH:case u.TR:{eQ(e,t);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{it(e,t);break}case u.COL:{ZW(e,t);break}case u.FORM:{rQ(e,t);break}case u.TABLE:{tQ(e,t);break}case u.TBODY:case u.TFOOT:case u.THEAD:{JW(e,t);break}case u.INPUT:{nQ(e,t);break}case u.CAPTION:{KW(e,t);break}case u.COLGROUP:{XW(e,t);break}default:Zn(e,t)}}function jn(e,t){switch(t.tagID){case u.TABLE:{e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode());break}case u.TEMPLATE:{Qt(e,t);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Zn(e,t)}}function Zn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,rs(e,t),e.fosterParentingEnabled=n}function Zl(e,t){e.pendingCharacterTokens.push(t)}function Jl(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function xn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Zn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const eh=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]);function sQ(e,t){const n=t.tagID;eh.has(n)?e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,pn(e,t)):Pe(e,t)}function iQ(e,t){const n=t.tagID;switch(n){case u.CAPTION:case u.TABLE:{e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,n===u.TABLE&&jn(e,t));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:ss(e,t)}}function Ma(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.COL:{e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break}case u.TEMPLATE:{it(e,t);break}default:Vr(e,t)}}function aQ(e,t){switch(t.tagID){case u.COLGROUP:{e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case u.TEMPLATE:{Qt(e,t);break}case u.COL:break;default:Vr(e,t)}}function Vr(e,t){e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE,e._processToken(t))}function is(e,t){switch(t.tagID){case u.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_ROW;break}case u.TH:case u.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(R.TR,u.TR),e.insertionMode=k.IN_ROW,as(e,t);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,pn(e,t));break}default:pn(e,t)}}function Ji(e,t){const n=t.tagID;switch(t.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case u.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,jn(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:jn(e,t)}}function as(e,t){switch(t.tagID){case u.TH:case u.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_CELL,e.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,is(e,t));break}default:pn(e,t)}}function th(e,t){switch(t.tagID){case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY);break}case u.TABLE:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,Ji(e,t));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,Ji(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:jn(e,t)}}function oQ(e,t){const n=t.tagID;eh.has(n)?(e.openElements.hasInTableScope(u.TD)||e.openElements.hasInTableScope(u.TH))&&(e._closeTableCell(),as(e,t)):Pe(e,t)}function uQ(e,t){const n=t.tagID;switch(n){case u.TD:case u.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),th(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:ss(e,t)}}function nh(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._insertElement(t,M.HTML);break}case u.OPTGROUP:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._insertElement(t,M.HTML);break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),t.tagID!==u.SELECT&&e._processStartTag(t));break}case u.SCRIPT:case u.TEMPLATE:{it(e,t);break}}}function rh(e,t){switch(t.tagID){case u.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop();break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop();break}case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode());break}case u.TEMPLATE:{Qt(e,t);break}}}function cQ(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e._processStartTag(t)):nh(e,t)}function lQ(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e.onEndTag(t)):rh(e,t)}function hQ(e,t){switch(t.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{it(e,t);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,pn(e,t);break}case u.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,Ma(e,t);break}case u.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,is(e,t);break}case u.TD:case u.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,as(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,Pe(e,t)}}function dQ(e,t){t.tagID===u.TEMPLATE&&Qt(e,t)}function sh(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Oa(e,t)}function fQ(e,t){t.tagID===u.HTML?Pe(e,t):Gr(e,t)}function ih(e,t){var n;if(t.tagID===u.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u.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 Gr(e,t)}function Gr(e,t){e.insertionMode=k.IN_BODY,rs(e,t)}function pQ(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.FRAMESET:{e._insertElement(t,M.HTML);break}case u.FRAME:{e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break}case u.NOFRAMES:{it(e,t);break}}}function mQ(e,t){t.tagID===u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==u.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}function gQ(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.NOFRAMES:{it(e,t);break}}}function EQ(e,t){t.tagID===u.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}function bQ(e,t){t.tagID===u.HTML?Pe(e,t):Ir(e,t)}function Ir(e,t){e.insertionMode=k.IN_BODY,rs(e,t)}function TQ(e,t){switch(t.tagID){case u.HTML:{Pe(e,t);break}case u.NOFRAMES:{it(e,t);break}}}function _Q(e,t){t.chars=ge,e._insertCharacters(t)}function AQ(e,t){e._insertCharacters(t),e.framesetOk=!1}function ah(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==M.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
148penElements.current);)e.openElements.pop()}function CQ(e,t){if(FG(t))ah(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===M.MATHML?$l(t):r===M.SVG&&(BG(t),zl(t)),La(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function kQ(e,t){if(t.tagID===u.P||t.tagID===u.BR){ah(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)===M.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}const xQ=new Set([R.AREA,R.BASE,R.BASEFONT,R.BGSOUND,R.BR,R.COL,R.EMBED,R.FRAME,R.HR,R.IMG,R.INPUT,R.KEYGEN,R.LINK,R.META,R.PARAM,R.SOURCE,R.TRACK,R.WBR]);function vQ(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===M.HTML&&xQ.has(t.treeAdapter.getTagName(e))}const SQ={treeAdapter:zt,scriptingEnabled:!0};function yQ(e,t){const n={...SQ,...t};return oh(e,n)}function IQ(e,t){let n="";const r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===R.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===M.HTML?t.treeAdapter.getTemplateContent(e):e,s=t.treeAdapter.getChildNodes(r);if(s)for(const i of s)n+=oh(i,t);return n}function oh(e,t){return t.treeAdapter.isElementNode(e)?NQ(e,t):t.treeAdapter.isTextNode(e)?RQ(e,t):t.treeAdapter.isCommentNode(e)?LQ(e,t):t.treeAdapter.isDocumentTypeNode(e)?wQ(e,t):""}function NQ(e,t){const n=t.treeAdapter.getTagName(e);return`<${n}${DQ(e,t)}>${vQ(e,t)?"":`${IQ(e,t)}</${n}>`}`}function DQ(e,{treeAdapter:t}){let n="";for(const r of t.getAttrList(e)){if(n+=" ",!r.namespace)n+=r.name;else switch(r.namespace){case M.XML:{n+=`xml:${r.name}`;break}case M.XMLNS:{r.name!=="xmlns"&&(n+="xmlns:"),n+=r.name;break}case M.XLINK:{n+=`xlink:${r.name}`;break}default:n+=`${r.prefix}:${r.name}`}n+=`="${Kc(r.value)}"`}return n}function RQ(e,t){const{treeAdapter:n}=t,r=n.getTextNodeContent(e),s=n.getParentNode(e),i=s&&n.isElementNode(s)&&n.getTagName(s);return i&&n.getNamespaceURI(s)===M.HTML&&hG(i,t.scriptingEnabled)?r:Xc(r)}function LQ(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function wQ(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function OQ(e,t){return jl.parse(e,t)}function MQ(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=jl.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function rc(e){return new $n(e)}function sc(e){const t=e.includes('"')?"'":'"';return t+e+t}function PQ(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${sc(t)}`:n&&(r+=" SYSTEM"),n&&(r+=` ${sc(n)}`),r}const on={isCommentNode:Xr,isElementNode:ee,isTextNode:pt,createDocument(){const e=new jt([]);return e["x-mode"]=Ye.NO_QUIRKS,e},createDocumentFragment(){return new jt([])},createElement(e,t,n){const r=Object.create(null),s=Object.create(null),i=Object.create(null);for(let o=0;o<n.length;o++){const c=n[o].name;r[c]=n[o].value,s[c]=n[o].namespace,i[c]=n[o].prefix}const a=new Ea(e,r,[]);return a.namespace=t,a["x-attribsNamespace"]=s,a["x-attribsPrefix"]=i,a},createCommentNode(e){return new pa(e)},appendChild(e,t){const n=e.children[e.children.length-1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},insertBefore(e,t,n){const r=e.children.indexOf(n),{prev:s}=n;s&&(s.next=t,t.prev=s),n.prev=t,t.next=n,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){on.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,n,r){const s=PQ(t,n,r);let i=e.children.find(a=>$i(a)&&a.name==="!doctype");i?i.data=s??null:(i=new ma("!doctype",s),on.appendChild(e,i)),i["x-name"]=t??void 0,i["x-publicId"]=n??void 0,i["x-systemId"]=r??void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:n,next:r}=e;e.prev=null,e.next=null,n&&(n.next=r),r&&(r.prev=n),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const n=e.children[e.children.length-1];n&&pt(n)?n.data+=t:on.appendChild(e,rc(t))},insertTextBefore(e,t,n){const r=e.children[e.children.indexOf(n)-1];r&&pt(r)?r.data+=t:on.insertBefore(e,rc(t),n)},adoptAttributes(e,t){for(let n=0;n<t.length;n++){const r=t[n].name;typeof e.attribs[r]>"u"&&(e.attribs[r]=t[n].value,e["x-attribsNamespace"][r]=t[n].namespace,e["x-attribsPrefix"][r]=t[n].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return $i(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function FQ(e,t,n,r){const s={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:on,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return n?OQ(e,s):MQ(r,e,s)}const BQ={treeAdapter:on};function HQ(e){const t="length"in e?e:[e];for(let r=0;r<t.length;r+=1){const s=t[r];Gt(s)&&Array.prototype.splice.call(t,r,1,...s.children)}let n="";for(let r=0;r<t.length;r+=1){const s=t[r];n+=yQ(s,BQ)}return n}var V;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(V||(V={}));var B;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(B||(B={}));function Tt(e){return e===V.Space||e===V.NewLine||e===V.Tab||e===V.FormFeed||e===V.CarriageReturn}function br(e){return e===V.Slash||e===V.Gt||Tt(e)}function ic(e){return e>=V.Zero&&e<=V.Nine}function UQ(e){return e>=V.LowerA&&e<=V.LowerZ||e>=V.UpperA&&e<=V.UpperZ}function qQ(e){return e>=V.UpperA&&e<=V.UpperF||e>=V.LowerA&&e<=V.LowerF}var lt;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(lt||(lt={}));const qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class $Q{constructor({xmlMode:t=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=B.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=B.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=n,this.entityTrie=t?jc:At}reset(){this.state=B.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=B.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===V.Lt||!this.decodeEntities&&this.fastForwardTo(V.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=B.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===V.Amp&&(this.state=B.BeforeEntity)}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?br(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=B.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===V.Gt||Tt(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.isSpecial=!1,this.sectionStart=n+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===qe.TitleEnd?this.decodeEntities&&t===V.Amp&&(this.state=B.BeforeEntity):this.fastForwardTo(V.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===V.Lt)}stateCDATASequence(t){t===qe.Cdata[this.sequenceIndex]?++this.sequenceIndex===qe.Cdata.length&&(this.state=B.InCommentLike,this.currentSequence=qe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=B.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=B.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!br(t):UQ(t)}startSpecial(t,n){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=n,this.state=B.SpecialStartSequence}stateBeforeTagName(t){if(t===V.ExclamationMark)this.state=B.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===V.Questionmark)this.state=B.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const n=t|32;this.sectionStart=this.index,!this.xmlMode&&n===qe.TitleEnd[2]?this.startSpecial(qe.TitleEnd,3):this.state=!this.xmlMode&&n===qe.ScriptEnd[2]?B.BeforeSpecialS:B.InTagName}else t===V.Slash?this.state=B.BeforeClosingTagName:(this.state=B.Text,this.stateText(t))}stateInTagName(t){br(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=B.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Tt(t)||(t===V.Gt?this.state=B.Text:(this.state=this.isTagStartChar(t)?B.InClosingTagName:B.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===V.Gt||Tt(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=B.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===V.Gt||this.fastForwardTo(V.Gt))&&(this.state=B.Text,this.baseState=B.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===V.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=B.InSpecialTag,this.sequenceIndex=0):this.state=B.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===V.Slash?this.state=B.InSelfClosingTag:Tt(t)||(this.state=B.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===V.Gt?(this.cbs.onselfclosingtag(this.index),this.state=B.Text,this.baseState=B.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Tt(t)||(this.state=B.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===V.Eq||br(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=B.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===V.Eq?this.state=B.BeforeAttributeValue:t===V.Slash||t===V.Gt?(this.cbs.onattribend(lt.NoValue,this.index),this.state=B.BeforeAttributeName,this.stateBeforeAttributeName(t)):Tt(t)||(this.cbs.onattribend(lt.NoValue,this.index),this.state=B.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===V.DoubleQuote?(this.state=B.InAttributeValueDq,this.sectionStart=this.index+1):t===V.SingleQuote?(this.state=B.InAttributeValueSq,this.sectionStart=this.index+1):Tt(t)||(this.sectionStart=this.index,this.state=B.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,n){t===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===V.DoubleQuote?lt.Double:lt.Single,this.index),this.state=B.BeforeAttributeName):this.decodeEntities&&t===V.Amp&&(this.baseState=this.state,this.state=B.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,V.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,V.SingleQuote)}stateInAttributeValueNoQuotes(t){Tt(t)||t===V.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(lt.Unquoted,this.index),this.state=B.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===V.Amp&&(this.baseState=this.state,this.state=B.BeforeEntity)}stateBeforeDeclaration(t){t===V.OpeningSquareBracket?(this.state=B.CDATASequence,this.sequenceIndex=0):this.state=t===V.Dash?B.BeforeComment:B.InDeclaration}stateInDeclaration(t){(t===V.Gt||this.fastForwardTo(V.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=B.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===V.Gt||this.fastForwardTo(V.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=B.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===V.Dash?(this.state=B.InCommentLike,this.currentSequence=qe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=B.InDeclaration}stateInSpecialComment(t){(t===V.Gt||this.fastForwardTo(V.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=B.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const n=t|32;n===qe.ScriptEnd[3]?this.startSpecial(qe.ScriptEnd,4):n===qe.StyleEnd[3]?this.startSpecial(qe.StyleEnd,4):(this.state=B.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===V.Number?this.state=B.BeforeNumericEntity:t===V.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=B.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=ba(this.entityTrie,this.trieCurrent,this.tr
148ieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const n=this.trieCurrent&Ge.VALUE_LENGTH;if(n){const r=(n>>14)-1;if(!this.allowLegacyEntity()&&t!==V.Semi)this.trieIndex+=r;else{const s=this.index-this.entityExcess+1;s>this.sectionStart&&this.emitPartial(this.sectionStart,s),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,r===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&Ge.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Ge.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===V.LowerX?(this.entityExcess++,this.state=B.InHexEntity):(this.state=B.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){const n=this.index-this.entityExcess-1;n+2+ +(this.state===B.InHexEntity)!==this.index&&(n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.sectionStart=this.index+Number(t),this.emitCodePoint(Vc(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===V.Semi?this.emitNumericEntity(!0):ic(t)?(this.entityResult=this.entityResult*10+(t-V.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===V.Semi?this.emitNumericEntity(!0):ic(t)?(this.entityResult=this.entityResult*16+(t-V.Zero),this.entityExcess++):qQ(t)?(this.entityResult=this.entityResult*16+((t|32)-V.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===B.Text||this.baseState===B.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===B.Text||this.state===B.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===B.InAttributeValueDq||this.state===B.InAttributeValueSq||this.state===B.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case B.Text:{this.stateText(t);break}case B.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case B.InSpecialTag:{this.stateInSpecialTag(t);break}case B.CDATASequence:{this.stateCDATASequence(t);break}case B.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case B.InAttributeName:{this.stateInAttributeName(t);break}case B.InCommentLike:{this.stateInCommentLike(t);break}case B.InSpecialComment:{this.stateInSpecialComment(t);break}case B.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case B.InTagName:{this.stateInTagName(t);break}case B.InClosingTagName:{this.stateInClosingTagName(t);break}case B.BeforeTagName:{this.stateBeforeTagName(t);break}case B.AfterAttributeName:{this.stateAfterAttributeName(t);break}case B.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case B.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case B.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case B.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case B.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case B.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case B.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case B.InDeclaration:{this.stateInDeclaration(t);break}case B.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case B.BeforeComment:{this.stateBeforeComment(t);break}case B.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case B.InNamedEntity:{this.stateInNamedEntity(t);break}case B.BeforeEntity:{this.stateBeforeEntity(t);break}case B.InHexEntity:{this.stateInHexEntity(t);break}case B.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===B.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.state===B.InCommentLike?this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===B.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===B.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===B.InTagName||this.state===B.BeforeAttributeName||this.state===B.BeforeAttributeValue||this.state===B.AfterAttributeName||this.state===B.InAttributeName||this.state===B.InAttributeValueSq||this.state===B.InAttributeValueDq||this.state===B.InAttributeValueNq||this.state===B.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,n){this.baseState!==B.Text&&this.baseState!==B.InSpecialTag?this.cbs.onattribdata(t,n):this.cbs.ontext(t,n)}emitCodePoint(t){this.baseState!==B.Text&&this.baseState!==B.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}}const nn=new Set(["input","option","optgroup","select","button","datalist","textarea"]),he=new Set(["p"]),ac=new Set(["thead","tbody"]),oc=new Set(["dd","dt"]),uc=new Set(["rt","rp"]),zQ=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",he],["h1",he],["h2",he],["h3",he],["h4",he],["h5",he],["h6",he],["select",nn],["input",nn],["output",nn],["button",nn],["datalist",nn],["textarea",
148nn],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",oc],["dt",oc],["address",he],["article",he],["aside",he],["blockquote",he],["details",he],["div",he],["dl",he],["fieldset",he],["figcaption",he],["figure",he],["footer",he],["form",he],["header",he],["hr",he],["main",he],["nav",he],["ol",he],["pre",he],["section",he],["table",he],["ul",he],["rt",uc],["rp",uc],["tbody",ac],["tfoot",ac]]),YQ=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),cc=new Set(["math","svg"]),lc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),jQ=/\s|\//;class VQ{constructor(t,n={}){var r,s,i,a,o;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:!n.xmlMode,this.lowerCaseAttributeNames=(s=n.lowerCaseAttributeNames)!==null&&s!==void 0?s:!n.xmlMode,this.tokenizer=new((i=n.Tokenizer)!==null&&i!==void 0?i:$Q)(this.options,this),(o=(a=this.cbs).onparserinit)===null||o===void 0||o.call(a,this)}ontext(t,n){var r,s;const i=this.getSlice(t,n);this.endIndex=n-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,i),this.startIndex=n}ontextentity(t){var n,r;const s=this.tokenizer.getSectionStart();this.endIndex=s-1,(r=(n=this.cbs).ontext)===null||r===void 0||r.call(n,zi(t)),this.startIndex=s}isVoidElement(t){return!this.options.xmlMode&&YQ.has(t)}onopentagname(t,n){this.endIndex=n;let r=this.getSlice(t,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var n,r,s,i;this.openTagStart=this.startIndex,this.tagname=t;const a=!this.options.xmlMode&&zQ.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){const o=this.stack.pop();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,o,!0)}this.isVoidElement(t)||(this.stack.push(t),cc.has(t)?this.foreignContext.push(!0):lc.has(t)&&this.foreignContext.push(!1)),(i=(s=this.cbs).onopentagname)===null||i===void 0||i.call(s,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,n){var r,s,i,a,o,c;this.endIndex=n;let l=this.getSlice(t,n);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(cc.has(l)||lc.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((s=(r=this.cbs).onopentagname)===null||s===void 0||s.call(r,"br"),(a=(i=this.cbs).onopentag)===null||a===void 0||a.call(i,"br",{},!0),(c=(o=this.cbs).onclosetag)===null||c===void 0||c.call(o,"br",!1));else{const h=this.stack.lastIndexOf(l);if(h!==-1)if(this.cbs.onclosetag){let d=this.stack.length-h;for(;d--;)this.cbs.onclosetag(this.stack.pop(),d!==0)}else this.stack.length=h;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,r;const s=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===s&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,s,!t),this.stack.pop())}onattribname(t,n){this.startIndex=t;const r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,n){this.attribvalue+=this.getSlice(t,n)}onattribentity(t){this.attribvalue+=zi(t)}onattribend(t,n){var r,s;this.endIndex=n,(s=(r=this.cbs).onattribute)===null||s===void 0||s.call(r,this.attribname,this.attribvalue,t===lt.Double?'"':t===lt.Single?"'":t===lt.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const n=t.search(jQ);let r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${s}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${s}`,`?${r}`)}this.startIndex=n+1}oncomment(t,n,r){var s,i,a,o;this.endIndex=n,(i=(s=this.cbs).oncomment)===null||i===void 0||i.call(s,this.get
148Slice(t,n-r)),(o=(a=this.cbs).oncommentend)===null||o===void 0||o.call(a),this.startIndex=n+1}oncdata(t,n,r){var s,i,a,o,c,l,h,d,p,f;this.endIndex=n;const g=this.getSlice(t,n-r);this.options.xmlMode||this.options.recognizeCDATA?((i=(s=this.cbs).oncdatastart)===null||i===void 0||i.call(s),(o=(a=this.cbs).ontext)===null||o===void 0||o.call(a,g),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((d=(h=this.cbs).oncomment)===null||d===void 0||d.call(h,`[CDATA[${g}]]`),(f=(p=this.cbs).oncommentend)===null||f===void 0||f.call(p)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)}reset(){var t,n,r,s;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(r=this.cbs).onparserinit)===null||s===void 0||s.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}function GQ(e,t){const n=new nY(void 0,t);return new VQ(n,t).end(e),n.root}const WQ=vV((e,t,n,r)=>t.xmlMode||t._useHtmlParser2?GQ(e,t):FQ(e,t,n,r)),Nr=tG(WQ,(e,t)=>t.xmlMode||t._useHtmlParser2?Zr(e,t):HQ(e));Nr([]);const QQ={key:0},tK=xe({__name:"Preview",props:{markdown:{}},setup(e){const t=e,n=a=>{const o=/<div\s+[^>]*data-format=["'](?:list|single)["'][^>]*>(?:<\/div>)?|<div\s+[^>]*data-format=["'](?:list|single)["'][^>]*\/>/g,c=[];let l=0;for(const d of a.matchAll(o)){const p=a.slice(l,d.index);p.trim()&&c.push({type:"markdown",content:p});const f=d[0],v=Nr(f)("div"),x={};if(v[0]?.attribs)for(const[E,_]of Object.entries(v[0].attribs))x[E]=_;c.push({type:"list",attrs:x}),l=(d.index??0)+f.length}const h=a.slice(l);return h.trim()&&c.push({type:"markdown",content:h}),c},r=a=>{if(!a)return"";if(typeof window<"u"&&typeof window.DOMParser<"u")try{const l=new DOMParser().parseFromString(a,"text/html"),h=new Set(["p","br","strong","em","ul","ol","li","a","h1","h2","h3","h4","h5","h6","blockquote","code","pre","table","thead","tbody","tr","th","td","hr","img","span","div","dl","dt","dd"]),d=new Set(["href","src","alt","target","rel","class","id","style"]);return l.querySelectorAll("script, iframe, object, embed, form, meta, link, base, style").forEach(f=>f.remove()),Array.from(l.body.querySelectorAll("*")).forEach(f=>{const g=f.tagName.toLowerCase();if(!h.has(g)){f.remove();return}Array.from(f.attributes).forEach(v=>{const x=v.name.toLowerCase(),E=v.value.trim().toLowerCase();if(x.startsWith("on")||!d.has(x)){f.removeAttribute(v.name);return}(x==="href"||x==="src")&&(E.startsWith("javascript:")||E.startsWith("vbscript:"))&&f.removeAttribute(v.name)})}),l.body.innerHTML}catch{}const o=Nr(a,null,!1);return o("script, iframe, object, embed, form, meta, link, base, style").remove(),o("*").each((c,l)=>{const h=l.attribs||{};Object.keys(h).forEach(d=>{d.toLowerCase().startsWith("on")&&o(l).removeAttr(d)}),["href","src"].forEach(d=>{const p=o(l).attr(d);p&&p.trim().toLowerCase().startsWith("javascript:")&&o(l).removeAttr(d)})}),o.html()},s=a=>r(a),i=Je(()=>{const a=(t.markdown||"").replace(/&lt;/g,"<").replace(/&gt;/g,">"),o=n(a),c=new Bz({html:!0,breaks:!0,linkify:!0}).use(qz).use(Yz).use(jz).use(fr).use(fr,"hljs-left").use(fr,"hljs-center").use(fr,"hljs-right");return o.map(l=>{if(l.type==="markdown"){const h=c.render(l.content||""),d=Nr(h);
148return d("a").toArray().forEach(f=>{f.attribs.href&&(f.attribs.href.startsWith("#")||(f.attribs.href.startsWith("%25")?f.attribs.href=f.attribs.href.replace("%25",""):f.attribs={...f.attribs,target:"_blank",rel:"noopener noreferrer"}))}),{type:l.type,html:d.html()}}else return{...l}})});return(a,o)=>{const c=uh;return Jt(),or("div",null,[(Jt(!0),or(Gn,null,fh(Ua(i),(l,h)=>(Jt(),or("div",{key:h},[l.type==="list"?(Jt(),or("div",QQ,[l.attrs?(Jt(),qa(c,{key:0,attrs:l.attrs},null,8,["attrs"])):ph("",!0)])):(Jt(),qa(Ua(xt),{key:1,"model-value":l.html,sanitize:s,class:"a-markdown-preview","preview-only":""},null,8,["model-value"]))]))),128))])}}});export{tK as _};

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