| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450 |
- /* empty css */import{R as Result}from"./index-BpMQFZ1R.js";import{S as Space}from"./index-B8JS8Mq-.js";import{d as defineComponent,c as createElementBlock,o as openBlock,q as createCommentVNode,b as normalizeClass,J as toDisplayString,m as renderSlot,p as resolveComponent,a as createBaseVNode,s as createBlock,C as mergeProps,D as createVNode,_ as createSlots,A as withCtx,n as normalizeStyle,u as toRefs,i as inject,j as ref,e as computed,r as reactive,a2 as watchEffect,H as withModifiers,a3 as useTemplateRef,x as onMounted,y as onBeforeUnmount,I as createTextVNode,F as Fragment$1,Z as renderList,W as createApp,X as unref,w as watch,g as getCurrentInstance,L as nextTick,N as onUnmounted,a4 as onUpdated,a0 as useRoute,Y as useRouter,a5 as onBeforeRouteUpdate,a6 as onBeforeUpdate}from"./vue-vendor-BdC0yijC.js";import LayoutExperience from"./LayoutExperience-CVHXx-21.js";import ContentContainer from"./ContentContainer-CVCTsrMO.js";import{C as ChatAsideMenu}from"./ChatAsideMenu-DC89QNoZ.js";import{S as Spin}from"./index-BbfaA9Cm.js";import{a as _export_sfc,c as getPrefixCls,i as isUndefined,d as isNumber$2,Q as IconLoading,R as IconImageClose,S as useI18n,T as isBoolean,o as omit,U as isServerRendering,s as setGlobalConfig,j as getComponentPrefix,_ as _export_sfc$1,B as Button,V as formatStaticAssetsUrl,W as createI18n,X as installArcoVue,g as getConfigField,k as getDefaultExportFromCjs$1,G as commonjsGlobal,H as ajax,M as Modal,J as kuky_Authorization,Y as formatStaticAssetsUrl_Dify,O as jsonParse,K as jsonStringify,Z as Editor,u as useI18n$1}from"./index-BMSRmnY-.js";import{T as Timer,l as loadPdfjs,r as renderDocxByBlob,g as getFileSuffix,D as Drawer,M as Marked,V as ViewerPDFFromUrl,a as ViewerDocxFromUrl,d as dispatch,t as timer,n as now}from"./ViewerDocxFromUrl-BNrJbhJR.js";import{M as Message}from"./index-B7oSasPC.js";import"./index-BlOhlrJS.js";/* empty css */import"./index-EXJlrQ0p.js";/* empty css */import{T as Tooltip}from"./index-BhyN-7F-.js";import{I as ImagePreview,P as PreviewGroupInjectionKey,u as useImageLoadStatus,a as ImagePreviewGroup,b as ImagePreviewAction,U as Upload}from"./index-wljS7gG-.js";import{u as useMergeState}from"./use-merge-state-DaPNS4zK.js";import{P as Popover}from"./index-BE6qAVq3.js";import{S as Scrollbar,E as Empty}from"./index-CBcwFEy_.js";import{T as Textarea}from"./index-KZTKKJji.js";import"./index-Z62w38q3.js";import{O as Option,S as Select}from"./index-CdAnxpqz.js";/* empty css */import"./index-BThPtpAI.js";import{g as getKnowledgeList}from"./knowledge-DbxZ3HNR.js";import{a as FormItem,F as Form}from"./index-dyYzlH8m.js";import"./index-D87t7oOd.js";import"./jszip.min-Dc_b0vsS.js";import{I as Input}from"./index-BktvgnBW.js";import{L as Link}from"./index-AQvm-Jve.js";import{g as getIconIntelligent}from"./icon-map-MpRwWyE4.js";import{u as useAllAgentStore}from"./use-all-agents-aBy6YLOH.js";import"./index-h8MzgEpB.js";import"./Header-C42VqsNh.js";import"./use-platform-information-CCFvVYoR.js";/* empty css */import"./use-logout-BEMTbvle.js";import"./use-current-user-Cufd4BZn.js";import"./login-CrpL8Uqm.js";import"./index.es-BW_FzNZC.js";import"./render-function-CV4zhQl4.js";import"./resize-observer-u-K5j5Xs.js";import"./index-B3z4cY-J.js";import"./get-value-by-path-XIoWXWxv.js";import"./responsive-observe-4ACH6YSC.js";const _sfc_main$O=defineComponent({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:getPrefixCls("image-footer")}}}),_hoisted_1$E=["title"],_hoisted_2$s=["title"];function _sfc_render$2(e,t,n,r,i,s){return openBlock(),createElementBlock("div",{class:normalizeClass(e.prefixCls)},[e.title||e.description?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(`${e.prefixCls}-caption`)},[e.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(`${e.prefixCls}-caption-title`),title:e.title},toDisplayString(e.title),11,_hoisted_1$E)):createCommentVNode("v-if",!0),e.description?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(`${e.prefixCls}-caption-description`),title:e.description},toDisplayString(e.description),11,_hoisted_2$s)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),e.$slots.extra?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(`${e.prefixCls}-extra`)},[renderSlot(e.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2)}var ImageFooter=_export_sfc(_sfc_main$O,[["render",_sfc_render$2]]);function normalizeImageSizeProp(e){if(isUndefined(e))return;if(!isNumber$2(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return isNumber$2(t)?`${t}px`:void 0}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e};let uuid=0;const _sfc_main$N=defineComponent({name:"Image",components:{IconImageClose,IconLoading,ImageFooter,ImagePreview},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},src:{type:String},width:{type:[String,Number]},height:{type:[String,Number]},title:{type:String},description:{type:String},fit:{type:String},alt:{type:String},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{type:String,default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{type:Object},footerClass:{type:[String,Array,Object]}},emits:["preview-visible-change","update:previewVisible"],setup(e,{attrs:t,slots:n,emit:r}){const{t:i}=useI18n(),{height:s,width:o,hideFooter:l,title:d,description:f,src:m,footerPosition:g,defaultPreviewVisible:E,previewVisible:w,preview:C,previewProps:I}=toRefs(e),D=inject(PreviewGroupInjectionKey,void 0),L=getPrefixCls("image"),Y=ref(),{isLoaded:G,isError:z,isLoading:K,setLoadStatus:X}=useImageLoadStatus(),ye=computed(()=>({width:normalizeImageSizeProp(o==null?void 0:o.value),height:normalizeImageSizeProp(s==null?void 0:s.value)})),be=computed(()=>e.fit?{objectFit:e.fit}:{}),Ce=computed(()=>[`${L}`,{[`${L}-loading`]:K.value,[`${L}-loading-error`]:z.value,[`${L}-with-footer-inner`]:G&&He&&g.value==="inner",[`${L}-with-footer-outer`]:G&&He&&g.value==="outer"},t.class]),Ne=computed(()=>[ye.value,t.style]),He=computed(()=>d!=null&&d.value||f!=null&&f.value||n.extra?isBoolean(l.value)?!l.value&&G.value:l.value==="never":!1),Fe=computed(()=>omit(t,["class","style"])),[Xe,Ee]=useMergeState(E.value,reactive({value:w})),$e=computed(()=>!(D!=null&&D.preview)&&C.value);watchEffect(()=>{isServerRendering||!Y.value||(Y.value.src=m==null?void 0:m.value,X("loading"))});const Ie=uuid++;watchEffect(Oe=>{var fe,Te,Re;const Ve=(Re=D==null?void 0:D.registerImageUrl)==null?void 0:Re.call(D,Ie,((Te=(fe=I==null?void 0:I.value)==null?void 0:fe.src)!=null?Te:m==null?void 0:m.value)||"",C.value);Oe(()=>{Ve==null||Ve()})});function we(){X("loaded")}function De(){X("error")}function qe(){C.value&&(D!=null&&D.preview?D.preview(Ie):(r("preview-visible-change",!0),Ee(!0)))}function Ge(){r("preview-visible-change",!1),Ee(!1)}return{t:i,refImg:Y,prefixCls:L,wrapperClassNames:Ce,wrapperStyles:Ne,showFooter:He,imgProps:Fe,imgStyle:ye,isLoaded:G,isError:z,isLoading:K,mergedPreviewVisible:Xe,mergePreview:$e,onImgLoaded:we,onImgLoadError:De,onImgClick:qe,onPreviewClose:Ge,fitStyle:be}}}),_hoisted_1$D=["title","alt"];function _sfc_render$1(e,t,n,r,i,s){const o=resolveComponent("IconImageClose"),l=resolveComponent("IconLoading"),d=resolveComponent("ImageFooter"),f=resolveComponent("ImagePreview");return openBlock(),createElementBlock("div",{class:normalizeClass(e.wrapperClassNames),style:normalizeStyle(e.wrapperStyles)},[createBaseVNode("img",mergeProps({ref:"refImg",class:`${e.prefixCls}-img`},e.imgProps,{style:__spreadValues(__spreadValues({},e.imgStyle),e.fitStyle),title:e.title,alt:e.alt,onLoad:t[0]||(t[0]=(...m)=>e.onImgLoaded&&e.onImgLoaded(...m)),onError:t[1]||(t[1]=(...m)=>e.onImgLoadError&&e.onImgLoadError(...m)),onClick:t[2]||(t[2]=(...m)=>e.onImgClick&&e.onImgClick(...m))}),null,16,_hoisted_1$D),e.isLoaded?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(`${e.prefixCls}-overlay`)},[e.isError?renderSlot(e.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(`${e.prefixCls}-error`)},[createBaseVNode("div",{class:normalizeClass(`${e.prefixCls}-error-icon`)},[renderSlot(e.$slots,"error-icon",{},()=>[createVNode(o)])],2),e.alt||e.description?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(`${e.prefixCls}-error-alt`)},toDisplayString(e.alt||e.description),3)):createCommentVNode("v-if",!0)],2)]):createCommentVNode("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?renderSlot(e.$slots,"loader",{key:1},()=>[createBaseVNode("div",{class:normalizeClass([`${e.prefixCls}-loader`])},[createBaseVNode("div",{class:normalizeClass(`${e.prefixCls}-loader-spin`)},[createVNode(l),createBaseVNode("div",{class:normalizeClass(`${e.prefixCls}-loader-spin-text`)},toDisplayString(e.t("image.loading")),3)],2)],2)]):createCommentVNode("v-if",!0)],2)),e.showFooter?(openBlock(),createBlock(d,{key:1,class:normalizeClass(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},createSlots({_:2},[e.$slots.extra?{name:"extra",fn:withCtx(()=>[renderSlot(e.$slots,"extra")])}:void 0]),1032,["class","prefix-cls","title","description"])):createCommentVNode("v-if",!0),e.isLoaded&&e.mergePreview?(openBlock(),createBlock(f,mergeProps({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:withCtx(()=>[renderSlot(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):createCommentVNode("v-if",!0)],6)}var _Image=_export_sfc(_sfc_main$N,[["render",_sfc_render$1]]);const Image$1=Object.assign(_Image,{Preview:ImagePreview,PreviewGroup:ImagePreviewGroup,install:(e,t)=>{setGlobalConfig(e,t);const n=getComponentPrefix(t);e.component(n+_Image.name,_Image),e.component(n+ImagePreview.name,ImagePreview),e.component(n+ImagePreviewGroup.name,ImagePreviewGroup),e.component(n+ImagePreviewAction.name,ImagePreviewAction)}});function timeout(e,t,n){var r=new Timer;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}/**
- * filesize
- *
- * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
- * @license BSD-3-Clause
- * @version 10.1.6
- */const ARRAY="array",BIT="bit",BITS="bits",BYTE="byte",BYTES="bytes",EMPTY="",EXPONENT="exponent",FUNCTION="function",IEC="iec",INVALID_NUMBER="Invalid number",INVALID_ROUND="Invalid rounding method",JEDEC="jedec",OBJECT="object",PERIOD=".",ROUND="round",S="s",SI="si",SI_KBIT="kbit",SI_KBYTE="kB",SPACE=" ",STRING="string",ZERO$1="0",STRINGS={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function filesize(e,{bits:t=!1,pad:n=!1,base:r=-1,round:i=2,locale:s=EMPTY,localeOptions:o={},separator:l=EMPTY,spacer:d=SPACE,symbols:f={},standard:m=EMPTY,output:g=STRING,fullform:E=!1,fullforms:w=[],exponent:C=-1,roundingMethod:I=ROUND,precision:D=0}={}){let L=C,Y=Number(e),G=[],z=0,K=EMPTY;m===SI?(r=10,m=JEDEC):m===IEC||m===JEDEC?r=2:r===2?m=IEC:(r=10,m=JEDEC);const X=r===10?1e3:1024,ye=E===!0,be=Y<0,Ce=Math[I];if(typeof e!="bigint"&&isNaN(e))throw new TypeError(INVALID_NUMBER);if(typeof Ce!==FUNCTION)throw new TypeError(INVALID_ROUND);if(be&&(Y=-Y),(L===-1||isNaN(L))&&(L=Math.floor(Math.log(Y)/Math.log(X)),L<0&&(L=0)),L>8&&(D>0&&(D+=8-L),L=8),g===EXPONENT)return L;if(Y===0)G[0]=0,K=G[1]=STRINGS.symbol[m][t?BITS:BYTES][L];else{z=Y/(r===2?Math.pow(2,L*10):Math.pow(1e3,L)),t&&(z=z*8,z>=X&&L<8&&(z=z/X,L++));const Ne=Math.pow(10,L>0?i:0);G[0]=Ce(z*Ne)/Ne,G[0]===X&&L<8&&C===-1&&(G[0]=1,L++),K=G[1]=r===10&&L===1?t?SI_KBIT:SI_KBYTE:STRINGS.symbol[m][t?BITS:BYTES][L]}if(be&&(G[0]=-G[0]),D>0&&(G[0]=G[0].toPrecision(D)),G[1]=f[G[1]]||G[1],s===!0?G[0]=G[0].toLocaleString():s.length>0?G[0]=G[0].toLocaleString(s,o):l.length>0&&(G[0]=G[0].toString().replace(PERIOD,l)),n&&i>0){const Ne=G[0].toString(),He=l||(Ne.match(/(\D)/g)||[]).pop()||PERIOD,Fe=Ne.toString().split(He),Xe=Fe[1]||EMPTY,Ee=Xe.length,$e=i-Ee;G[0]=`${Fe[0]}${He}${Xe.padEnd(Ee+$e,ZERO$1)}`}return ye&&(G[1]=w[L]?w[L]:STRINGS.fullform[m][L]+(t?BIT:BYTE)+(G[0]===1?EMPTY:S)),g===ARRAY?G:g===OBJECT?{value:G[0],symbol:G[1],exponent:L,unit:K}:G.join(d)}function getFileSize(e){return filesize(e,{standard:"jedec"})}const question_icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABRCAYAAABFTSEIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAc7SURBVHgB7ZzpbhNXFMfPvWM7IaGK3SzCS8tYKqnaorK0AlWtqNMXoDxB4QlongDyBIQnIG/Q8K1UbWOqLgK1SpBIUUMlDw2JUZzWg0qskNhzuWfiCV5jz3avHfsnEcce40n+Oeee5S4AfVxBQCKZTCashN5IBQhRGYFTBPgjgLp3lak1b9eBEY0Q0BkwzTCMJ0AhXdx+sZRMJnWQhFABLcG4CClK6MUGIjlF4//SJYPdLu38nxYpqBABV1dzKSWoXGWMpfjTMPjPHIr5dnxsHnzGNwHR2gYHw1cNML4GMaI1QmMlNqMou+loNKqBD3guYIcIV4tGgc5Fo5EZ8BhPBXya3bzMA8E12A8EHYdpkYnE2Bx4hCcCZrNZHj0HbvHomIIugBAyT9jLaS/cmoJLnj3Lc3cNLXaLeAgPZl/iz/z06eZlcIljC8SxbmAgfI0Rc6zrWnhKNRs7NjoNDnEkILpsyQjME0pPwWGAkSVKXl5y4tK2BUTxuPkvQOcGCqfwSL0zZVdEWwIeYvEsbIvYtoA9IJ6FLRHbErCHxLNoW8S20hgMGNA74iGqwQa+yWTyLSuplgKur+dvHJpoawfCTg8cMa61fNtBF8ul2S3oYQiD6VhsdLbp9WYXyuPeInROQ0AWOh8PzzQbD5u6MCMDN6AvHhLGOr/ZxYYCoutivQh9TLDOb1Y3N3Thtey/GeitqNsO2s42PZNMRqqmC+osMJvNd3I/TyZqIFSsa5xUWWAnJMy7u7u806OBrj+Hra2C+VowGIREIgYTE2MwNDQMEtG5FSYrrTBQebUEwRSRJB4Kt7LyN6z89dj8vpb1tXXz8cTkCTh58j1TVAmEy1Z43XqhygJljX1oaemFu/sW14rh4SGY+uKCLGvU49HRiPVkfwz8Z20To64KgkFrsyMegu9d+PGnhpYqgPBqNpeynuwLSClISVsWFx/YEs8C/8/Dh49ABgpRrlrfmwJi0cxLtq9AMCiClnkCTnm88liKFeICAavRYAqohEopkICmaeCWFS6iBMKhsmamgLLcd2NjE9ySzz8HGRgMUvhoCsjd93OQQGFrC9zyXJezMIsq5KL5WPZlFfrYRUXtaCBQPA2S8CIZHhqWV5ngOEi5E6dAEhMT4+CWSGQEZMGIoVJcFQqSiMdj4JZYzP1nOIUQ5RTlHAdJjHMLHHdhhbF4zBMrdgrvE6qUEbld53PnPnY0FmI9fPbshyAT9F7K02oVJGI2BqYu2BIR3/vpZ5/Ibm2ZEN6BYdABYFn3y8+/mn3Ag0CXP3/+o44QD+kYAS02NnK8xHsCOq8w9HKSjFaKwqnqcaljXiM6TsBuIwAdwBYv6ey2tIKhIETC8mddUUANJJRy6KrLy4+4q+quWlLo2snkcdO9JaAT0W18tLT793+HHBfQS6S0+QksYSWigSAwKHx353vPxUPwD3Pn2x/2A48IeGNVp+amPQHspSm/+dpBxs/GuZJCwX2brB3Q+CgQYwkEsLz8p6O5D7ugiPfu/QEiQOOjBqMa+Az+Um7mPuyCQ4SQuRIKaVraUdLgM/m8+K6xiHsWtwNLtLxMQYM+dtFQO3NOxCix2+AjkYj4hPfo0SHwmTR+MQXkLa00+Ah2T8YF1rDYJ/Q9HzT2jM4UsDwO+jpoOO372QXvIaJPuFOOHaaA6MsGY3fBR5z0/eyCny2oGpmzlri9XmBJ2Cz4TJiPhSgiiuk1VikXFtFgMF7HjNrlbXkQsLAcE2pMrL3KDScn34EPTr4vas2gFo+OJq0nVQKuruWu80mmlptLvMISEhNfu1UKWhx2YCbfPSF0sSUrsSuVRwZUCYgz7aFBA7szwvMOTHwLhQLkcpvw4sVWXSWBgoVCIRgZGTGX+g7LmVDHwyumotGIZr1Qt0pftBV2EwYYM29Fx69XvlYnYNkKcYeSCn0qqRr7LOq2OWB45hPGnp+v0u3gcSmNXm+6V249+99CN53E4SuEzcePjV1qdKnpXjneLLwCPlcnXYJOmdL0VI+mAmKkYQx63pW5605XRt1aDtxwnYiNzvJOzU3oUXh5e7PVMVEtz0wwo/IRtsBnUKQtxJQBM4wHifh4y9+55ZZ/s2nICA6gGvQOmkIDbS28t3HsSV7liWSPHHtSXW0chM2Ddw69iLbEQxwc/XRoRbQtHmL7+Du8Ad4ICBEynywCDBhOxEMcnR+IN4ofe/PMYUhxMFXZ3QmknIiHOD4/0KJ8tkw3nvChM1aaScQmXHXiXQuI4LhYZKVZSva2P3U6vMZPK6BccWp1lXgioEX/EFqPWM3ypixQ3H+sQmeg88zhZnE7MFt7bIlbfBEQQbcuQSkl2SJ9E87CNwErwfMYcE+yoF3xOu/fpTG68vZ7GnxGiIAW2JjA3fFlMXGPsgreoHHBbvP2WxpXWfhlbY0QKmAtKGhgsHiaz9akcM8eA6ISwsI8TKpQnxZp+IW/RyPANMLgQZExTbRgtbwCF5AxaWnhdBAAAAAASUVORK5CYII=",getIcon4Question=()=>question_icon,getIcon4Answer=e=>{var r;const t=((r=e==null?void 0:e.agent)==null?void 0:r.icon)||"";return getIconIntelligent(t)},_hoisted_1$C={class:"dialog-header"},_sfc_main$M={__name:"DialogHeader",props:{agent_name:String},setup(e){return(t,n)=>(openBlock(),createElementBlock("div",_hoisted_1$C,[createBaseVNode("div",null,toDisplayString(e.agent_name),1)]))}},DialogHeader=_export_sfc$1(_sfc_main$M,[["__scopeId","data-v-dd4d0515"]]),_hoisted_1$B={class:"dialog-welcome-content"},_hoisted_2$r={class:"dialog-welcome-content-header"},_sfc_main$L={__name:"DialogWelcome",setup(e){return(t,n)=>(openBlock(),createElementBlock("div",_hoisted_1$B,[createBaseVNode("p",_hoisted_2$r,toDisplayString(t.$t("conversation.welcome")),1)]))}},DialogWelcome=_export_sfc$1(_sfc_main$L,[["__scopeId","data-v-74b247d7"]]),_hoisted_1$A={class:"dialog-item-select question-select"},_sfc_main$K={__name:"BtnSelectItem",props:{is_selected:Boolean},emits:["change"],setup(e,{emit:t}){return(n,r)=>(openBlock(),createElementBlock("div",_hoisted_1$A))}},BtnSelectItem=_export_sfc$1(_sfc_main$K,[["__scopeId","data-v-ff7b75cf"]]),_hoisted_1$z={class:"btn-text"},_sfc_main$J={__name:"DialogWebPage",props:{is_internet_search:Boolean,internet_search:Array},emits:["toSearchPage"],setup(e,{emit:t}){const n=e,r=t,i=computed(()=>n.internet_search.length),s=ref(!1),o=computed(()=>s.value?"打开网页详情":`已阅读${i.value}个网页`),l=()=>{r("toSearchPage")};return(d,f)=>{const m=resolveComponent("icon-check-circle"),g=Button;return i.value?(openBlock(),createBlock(g,{key:0,class:"btn",onMouseenter:f[0]||(f[0]=E=>s.value=!0),onMouseleave:f[1]||(f[1]=E=>s.value=!1),onClick:l},{default:withCtx(()=>[createVNode(m,{class:"icon"}),createBaseVNode("span",_hoisted_1$z,toDisplayString(o.value),1)]),_:1})):createCommentVNode("",!0)}}},DialogWebPage=_export_sfc$1(_sfc_main$J,[["__scopeId","data-v-59a4d22b"]]),_hoisted_1$y={class:"think"},_hoisted_2$q={key:1,class:"think_content"},_hoisted_3$i={class:"content-title-left"},_hoisted_4$b=["innerHTML"],_sfc_main$I={__name:"DialogThinkContent",props:{deep_loading:Boolean,deep_answer:String},setup(e){const t=e,n=ref(!0),r=computed(()=>t.deep_loading?"思考中...":"已完成推理"),i=()=>{n.value=!n.value};return(s,o)=>{const l=resolveComponent("icon-robot"),d=resolveComponent("icon-down"),f=Button,m=resolveComponent("icon-up");return openBlock(),createElementBlock("div",_hoisted_1$y,[n.value?(openBlock(),createElementBlock("div",_hoisted_2$q,[createBaseVNode("div",{class:"content-title",onClick:i},[createBaseVNode("div",_hoisted_3$i,[createVNode(l,{class:"robot"}),createBaseVNode("span",null,toDisplayString(r.value),1)]),createVNode(m,{class:"down"})]),createBaseVNode("div",{class:"content-text",innerHTML:e.deep_answer},null,8,_hoisted_4$b)])):(openBlock(),createBlock(f,{key:0,class:"think-select",onClick:i},{default:withCtx(()=>[createVNode(l,{class:"robot"}),createBaseVNode("span",null,toDisplayString(r.value),1),createVNode(d,{class:"down"})]),_:1}))])}}},DialogThinkContent=_export_sfc$1(_sfc_main$I,[["__scopeId","data-v-4c512053"]]),_hoisted_1$x={key:2},_hoisted_2$p=["innerHTML"],_sfc_main$H={__name:"DialogContent",props:{type:String,content:String,is_loading:Boolean,max_width:Number,is_think:Boolean,is_internet_search:Boolean,internet_search:Array,deep_answer:String,deep_loading:Boolean},emits:["toSearchPage"],setup(e,{emit:t}){const n=e,r=t,i=computed(()=>n.max_width?`max-width: ${n.max_width-40}px;`:""),s=()=>{r("toSearchPage")};return(o,l)=>{const d=Spin;return openBlock(),createElementBlock("div",{class:"dialog-chat-answer-content",style:normalizeStyle(i.value)},[e.is_internet_search?(openBlock(),createBlock(DialogWebPage,{key:0,internet_search:e.internet_search,onToSearchPage:s},null,8,["internet_search"])):createCommentVNode("",!0),e.is_think&&e.deep_answer?(openBlock(),createBlock(DialogThinkContent,{key:1,deep_loading:e.deep_loading,deep_answer:e.deep_answer},null,8,["deep_loading","deep_answer"])):createCommentVNode("",!0),e.is_loading?(openBlock(),createElementBlock("div",_hoisted_1$x,[createVNode(d)])):createCommentVNode("",!0),e.content.length!==0&&!e.is_loading?(openBlock(),createElementBlock("div",{key:3,innerHTML:e.content,class:"answer-content-text"},null,8,_hoisted_2$p)):createCommentVNode("",!0),renderSlot(o.$slots,"default",{},void 0,!0)],4)}}},DialogContent=_export_sfc$1(_sfc_main$H,[["__scopeId","data-v-87d9ccb2"]]),code$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAtgSURBVHgB7Z1tbBTHGcefPfNmDA7hxUa8KMYSJCU1uEpbmX5onOBGFaBCpaIqSElRJVpCq4A/pk2FUWn5iNsPQIWqhiBSVeVDjQqpKgL0RcJRlAhCAAGJ7Qjbig1+SWxjx/bdZv5zrL03N7s7e7tn7x7zkyz77nZn5+a/zzPPzOw8NiggW355s9ZMJqtNSjzLXlYbZFbQI8YLtWsb9v7YOEBTgEE5smn39Z2GYfyEyKylR5zvPbuWDIOmRDTfgqUtytyvhZoEgoGpEC3h5+Ate27sNZOpi1osOaZJDX/4G27m/KEs2KY9N/ebptlIGlfyLZqSYBDLMFMNpFEin6J5CsaDCy2Wb/Ilmqtg23bfrEgY5mHS5EQ+RHMVbCyR2m+SsYA0ORO2aI6CwbrIpJ2kCUyYojkKBusiTWiEJZqzSzSpljShEoZoUsG27blezX5VkEaJ4ZEx5WODiiYVLGkmK0ijTH//kK/jg4gmFcw0iqpJo0xXzyD5JVfR5IKZj94SSRD6mIWNjSfJL7mI5mvyVyNnnIl1+5MuygW/omnBQqLzs37q7OqnXPAjmhYsRG593EUDgyOUC6qiacFCBK6x+f0W+uTTe5QLKqJpwfJAS9s9+v+7d6j7/gD5xUu0GaTJCxhMX71+l4rnzKR58+ZQackcmsP+VqThlYOdnx99fVnWgrEWLM9AOPzc82ttBq2Xva1dYszQgsWMghasZG6CqlbPpUKiYPuwmvXz6fWfr+R/N13opeOnP6NCoGAtrG7DY9K/407BCla5vHji75a7X1KhUJCClRQXUdmiyTFPS/swFQqx6MPKWePve2k5/33qbDe90/y56/FVq0syXre0yy1s63MLacfmMurqHaXf/ekuW9dSXzmeLiJvYRDp0L4Kqlozl1vNz7Yv9TyncuXsjNet7fIJ2R2bl/BIsnLFHH6N8kXKMxHTRqQFs8Syu7ehB94LhXYLGxpOMguTC4bPLMoeXivqokVWMJlY3T2j9Frjp57nVq6YtDC3gANloUyLOIgWScHcxPLqZ+DeSuYWTbx2CzhQVtxEi5xgQcQCZQtnZby+dts9QoybaJESLKhYAMGJndYO75A+TqJFSrCgYgG4RPv5que6iRYlIiOYONgFl68O+h4b2S2spcPf8xW4Fq5pB3VC6B8VIlMThNjnL2c+dbT1+YV8rKSK3bqA3ykpXAvXtNN0oYcNJVIUFSLlEhtPdmaJhkZUFU1cSrl2W/0Ratl1UJfjp3N73jBfRC5KDCLaqpWChSm6RCexUJeoEclxWK6i2V0iZjdUXFmcxAKRnelwEk3sYywQtGREiL2j5EXcxAKRnkt0Ek2GOOF77fYD8gKz9XaiLhaI/Gy9KJrT5G/lcjFC9O6/unonhwxxEAvEYj0MDfnRnQcsqJhNZy70So+pelKIEO94WxjWwH7AXCz6urfO5vZ49VQTm4dwzjczK2t2/tz+SICKOwQYKB//e7TCdi8K5hGBkuLJr1JIjwSIFIxgB5l7QygP6zpzsZcKlYJ5LhF91qu/b6FCRz+qHTO0YDFDCxYztGAxQwsWM7RgMUMLFjO0YDFDCxYztGAxQwsWM7RgMUMLFjO0YDFDCxYztGAxQwsWM7RgMUMLFjN0vkQJ4iY+5KlyykQw1eRVMGz/qVpTwp95tz/3Pjic5A9vNl8doOYPv4hcQhNx2639EbrpJi+CQShkmBG/uEUZpXda4vNd28v5o2mNJztikYlmugldsF0/Wuq4w8QJCPfn367mj0vH5ZHp6SJUW9/30jLfYtnBzhSUoXEmNAuDZdVtyP7vi3B3Yl9l9Wk7Ni+mskWZeTVQRmvHCE9KqckmFMHqahZILQvRlazhEXHhBxsc+MbzTUsmstfguXgIrJETimCyTXaH3+zwTJMHICis8NC+J7iAb52757rVNZ3Ht4TKF87if0P4bma5fsJuexkAN4nK9iQnkHwF5WEXqFUe9lfnI/tAYMGstHh2EDioiGWBxn71UItrlOgVeUK0U/y67v+whm+7fW5RVu4N1fP91Ak34F9ZmWFGv4EF21iT3W/5+dIWbl9KZUM6bpr6l5fxxoMrlt3dCGhk/az9fNVURSrRMLqKdczyrJ01YRA4ShSTmYQ9EPaTpwOgkeolkSbKcBJLPE7lGNVomKc/qn8iq51yJbCFBc0+4wbudrEBsce56WIv38M8NJLk/ZAYbdasL+UNagU8snIAXFbzlQHHcmSko9vMstBnYScn+kG42g3rSpkFlk8EUujbkJL9p7+5Q0EJfeAcpnW9KDSMLFnYNXrAGmqIfs0axH7zoFEtwV5UCIpQDgT0cnX4XFYnywXjN8qBC/zjryonjoOl1TAh4YGCENnZetyVdUL/eOrsfekNgfewwVw830plJHoBNKhTUIT+z57RLatMIcA4/GantL+0hi126r5TSkEJbGFwUfYMoEjf+g4FR8y7geRhbsEMRMPwwN6gmHiGmxIFO+MxKD/PxJS5ULFOYCPrFzc69I3lQrJNMdt3LgQWDCnG7Y1UuaKYwkD8sip9I+5qe13ghmRRn1fE5nQtsU6grsY7kLGwxmlBCOwS0X/YQYNN1z+osWfJDlTOyDhFlcAWhmkk0X1gMPlaYxv5AXcqxLf6qEGhX5C5IxHxGAyGByX9C6zOLTgSs+pYiGXhBjko9J35JgSXOCLpO+ZyEVWXSqyxFhp4In2DYLlWEOE0hVT+MArLqBtzbWhUlGufjcFg361uTn2SrE5kUqBpLb+EEiVi8VHMAcWXSjxmDqykzJaFolERCiOsRkOLGW3qX17uWJ4YbvPzP06ng70sTCajfKeBLOri9JmsTvAmTuBfYu3zMXuigrQXXPOtPduIjGpSZGg4RWPjJj2zdl7G+/jiW59fxH8/XjqTHn9sBq1YOpsdN592bitnq81LpV/m7f/1UXvXKE+hZ+/UEY1uYIPiQXY9fDZrpkFPVRRzIZ95OvPap//dQx/cSFvE2Hgqo5xZMxP03W+W8jqPjZk0yj5HOTu2LOH1FUF02v0wkZhYJ9QfkfGttmHeDul6Jmj7C4tp59ZyempVMZ9hwbVutfrI0GPQlTvvHWkS3w5t4IxBKlyELBzGnYYfFTCgtZZXcDejXPtA1przI3Je6MQ4quliz8Rra03OXgfUVbRKFVAWMr/Zp7kws4IfK/q0VhLs10KqP9Qh6MRCqANn9AsHj911HHi6wWcMDrdlDWid1tRcy7HNPFhggKtSL5V+F3mAZWt21sJs9krAKOub20OZBZK6xCe//Qu4w1rKAbiy5g8HeEe/cumsjEG1DPR9cF+HT3byc2V8cGOQlwfX41SevZy+L7LDe7gk1Avny/oonH+iqZuXIXoJu0u0yvrv++kppnKeJt27Tt0+xTIMarr93pFLWe/LDt60+/pOdsJfKAQQMSI1XtniGRMDRx653R/nUZffZYf0OK9kIupDWa0sGrzM5uhUFwzFMnD++Xf7Js4Xp5+88gfXrJvP8zXavx8mlYMsYqbI+OHbR9f+Q3xfKtj3d9+sKDJSraSZNkxj5jfOHVlzRXzfcDphyysf9ZlkqM+7aELEaDt7dO0q2SfOQYdJJ0gzPRjmJaePHAUbp6JG0kwLyVTigNNnjoL969jX2piZaSubagx6I932clzHYUmzqMEg0/8TNZqcYAFFv5t1AVfBoDSb23QtQBMeJpkH3KwLeM50nD369UbDTGnR8gzaGG3teRwpsmX3tQbTSOwnTehArH8eq2pQOpZ8oEXLB2a9imVZ+BIMpGdBzIvsQhWkyR22fGKkUvXMsi75Oy1HMN+YSNBe0yTldTMNGty4lDLME+eOPP0G5UDOglls2nW92phh1hqU2Mqc8QItoIjRxoZGV1gE+B/DNK/4tSiRrwCslKkKoX6S+QAAAABJRU5ErkJggg==",html$2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAb9SURBVHgB7Z1PbFRFHMd/8xY0pGiQROAC2YohUYj0oE3Eg60HYwxq/RM5Qk1MPEjQeOAmxRsHYxO8mVCqJy5IDBc92HKphxpTEggeIK0aDSWhIFEw0n3DfHd52dfd97ZvZue9neH9Pslml+37s8xn5/ebN29mVlCXvPONHAplOEAkXpSS1DNVqWS8ukOMvf+8OEoFIMiQka+XDwgK9pOkISo5r+xQJUFUiDRtYahRNSmPsKgmEAaKkBbobPz2pDxUC+UUy0omVMK++kl9mXMks7C3JuWRkOQ4MR3JW1omYZAlSY4Rk4k8pa0qDI0LlqVPXtI6ChuZkFUhgy+IMSIPaR2FBRXCyTYQY4xtaanCULuklAeI6Rqb0lKF3a9djCVsSUsVpmrXEDFWsSEtUZgKh6XsEzTlznL2bbuVliissqZWJSYzS7el1vbdSEsUJkMxQExmrv1D2phKSxbG4VCLpdtEyyFpYyJNq/OXSeauKvlL1/TCYoSuNBZmiT9vNR4m6EhjYRb5VdWyW/+REVmlsTCLIDTO/C7p8vX8wiMLy4HL14nOzctcWo9riMmFO3eJfvlL0rq1RI8+TPSIeqxbm3lExthH39X+Hn+90nbDmIXlDMThsVivbdlDpRC0O+l9DomewcI8g4V5BgvzDO+EDW8nOrhHUP9jZEz/xsYxcCzf8KqVuG+3UI/G68Ftgj44Lenf/0mLvoeIPntZ1J+HnxS0aT3RqfNmF7q9wJsaFpcFUOAmYL/4vjgmju0LXghrlQVQK3RrF0DvQ2uN8kma88LSZJ06T8ZgX1+lOS0sD1nN4/gpzVlhecpqHs8/aU4KK0JW87h+SXNOWJGymsf3R5pTwnohq3keP6Q5IwzXRq2yzl4qRlYEzoVzxsFnMr3mywNnhOGaqvUO7eDWRk9EUeBcOGccfCaT6728cCokHptaeTGMAkQ3UhHSks4FWZ/+4Fa3lVPC5m+oAvq+eGmdZJmMy8gT51qJRUvzSRZw8jqsKGm+yQLO9nTkLc1HWcDpvsS8pPkqCzjfW99Jmim+ygJe3A9Lk2ZSy1r380kW8OaOcyQtKtj5JbOJdNjnwtXma59kAa/GdNSlqQJGVxGEmYJj7NrSOIZLvRhZ8G6otq3aENUy3+BxiZ7BwjyDhXkGC/MMFuYZLMwzWJhnsDDPYGGewcI8g4V5BgvzDBbmGSzMM1iYZ7Awz2BhnsHCPIOFeQYL8wwW5hlGo6awRlN8MObFq0QXFjPvTrs2E+3c0vw3hpqdvUT19aMGt1FX4DgYBrepT+8zZWV4u6CpK+2zNONMXaHcxjoaChP1cX0Rp0hqFQ5kxecO4z+HqarVjd3PKY4K8/CwoE/O2h0k2r+xIQdC4rR+5ouL+Q1OfWBDImrZh3vsTShHRDk81PsJ6g90DkMUGH3WTiFDfpHzrdNwauTvxcXkOcU7N7eHnbS5xwhF8YJ97Wmi2T+6y2c4dzwF9BKnhKGwk2L/433t7+kMte4mn+3a0t6o6CWlaNYjn5nkH9RUm3nQBqW5DkMLTzefQbILeStOqS6ckc8Gt2bbdp/KW5DsGlZyWH3Fmr7s21d7WBAHX1g9n0GqS3krjhVh+Ca6+G1MIspnaGUmTeZDCHzvOV4v0Snw5Xr3mWQpRS2VZEpphLWGQOSzl1rWrUfeapXl2vxnKyER/YDodM3K3qfwKDbsfDkj66EwvpTeqAp9F+73+6FDuzVvRX2cLoVIKzUsWjov66MXE8Fx3onZlb0j0Y8O9Cd0OuMzpuW5XlKqHPbjlfYFLBECP9/bHgqxOikvDuYAWHV0tSUjcItGJ8QXSemEIcQdm04PdahVJ2bJWUrZrE/6OY8IF/NWnNL+BiZC3qb1ckVr9cSsnbyFa7zhJ7Jte3xGb4naUv9oKfIZuqHQ4LCZt3TunR2fIS1KPWoqarqjEeJy3oqTWMNUkFjw5yfQugMhEJ3BziHpt6S3E4WFIlgQMv0/MfGzXNFjoBv3MeoII4siVkvyaUMH0ohqThzT3NR67qTPmsdS6SIM5pLeT85hNZruFCy7WfoOpA0FsLU9CtXWam1Zzp3HynA1FeWS3k/tJHtzMryhnjYQ0wsWvt0f9Cf9oUM9kpPE9AQh5HTa31KFyTAYJ6YnhLXgaNrfUoWdGRULXMuKR9Wuk42yT6bjdZiqZWPq6SYxRXGzU+0CHYXBtAxlxwMw9kBZd6pdYNWejjOjlXGWlj+SIKuyarsh873vkYnamAjEEWKsU5e1vzKWZVutwQoszT4qen2cpWZFaI8uGZmQVRHIKfWySkw3zMlQKFliWmcn4+FAStwBJe6QejlATHYETYtaOHl6dM1JMqDr8VtK3EBA4ZCsiDdUMEZXFgtcyYIQNEc1eS6kYE63RrVyDwbpL6ydQwmlAAAAAElFTkSuQmCC",json="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsjSURBVHgB7Z1RbBTHGce/PSACnGAnDYYqGJk+BCSMamgf0rghbikR5CGIPJS4fcgBJX1JYiGF5KUtR9OHNo3UKOlLW6U5HlyThyYNDzhSRKEijkBqgqUaFCcNONgk4NjBEIxRILeZ/5o59uZm92b3du9mN/OTrLvb291bz39n5vu+mfnWoipZ3PuLTtsutFOG7ifbbrdtaqVvGA/+6IFc/ttde6gGWBSShT3bspmM/SgTqJO+4Tx4/0+IMpmaiBZYMKdG0Ve7jVA3cQQDNRAtE2TnRfu2dxfsrw4ZsTwoFHLZT3t3U4woC9bcu223XSi8QAZ/YhZNSTCIxQyKHBnUiFG0ioLBuDBihSAm0XwFW9ybbbXI/hMZwhGDaL6CFSizm9mRTWQIT8SieQqG2sWawiwZqidC0TwFc2qXIToiEs27SbTtTjJESwSiSQVb2JNtZy+tZFBi+upV9Z2rFE0qmGXNaiWDMhOTnwfavxrR5E0ii7qTQZmxic8oMCFFkwtm2a1kUGZi8gJdv36dAhNCtEDBX4Oca0yskx99QKEIKJoRLCJGz31CZ89/SqEIIJoRLEJO/n+Ivrj8BYVCUTQjWISgaTzy7jH68ONTFAoF0YxgMfDh8Ck6dKyfzo+PUWAqiCadItD8j6159vIoacK9zctp45I1zmvjLfNpZGqcfv1eLw1eGKEwtN2+lJ5d8wi1NNzpnAt/f/zffuc1aubNnUeNt95KtzXcRvPnzlU+7tLU1M5ja3NlA8azSXOeXdNFjy1fX7INBZ2/7wn6/v6nKQz5+x53zsHPBbYs+yH97YO36Ffv9lKUTF+ddv7OjQf01Szru7LNWjeJMrGi4OK1K9LtO+5eTy/es410RlvBtizrKBMLTdY7Y+9T3+h7lD3yZwpL99GXnfPgT2wGUdM23rWadEXbJvGR73SUfH5+8A3Wz7xBUYC+b/PB54qfn2rbRLtWbSp+fmzFeuo7e5x0RNsadm/ziuL7vtHjkYklAzcDapv7txfMmU86oqVg3BDgDF44Q3HTf36o5DOsUR0xfljC0N6sDwr6IhgrF7+8Qq+e7o+1Ka0HqaphsCxhQKD/QbOK99iWJlIlmGhZAkRH0kSqBDtzeaJs26Vr05QmUiUYzHO3I4z3fx16i9KElkZH2+0tFAYIBIcYxzeyfuwA898ueYShkopWgsG6g5UnOq1Boug8+p5WtGkS4agi2CsT652xIao1G5esLnPgdUAbweA3yZovCIjv4ubEZGk0BTfPfx96riTGqANaGR2bD/7BicS7Qc2TmetRg3ilrCnlfp0uaNWHIYqOYZOVTUvp3xtzxe1BCgyjydxZhoWo2p+h+ZM1gTheJ8NFSysxbAGhwA9uyBU/Q7h1b+aURBMjIojeIyCM8JZOpMoPwzwNN2hOw45YP3n072V+nQ6kPlq/YM48ShOpEgyGQ9pJ1fAK729gVbpHrNNE6ppEiIb+J62ksg9zxyJHpiYoTaROMJj2iFJwxAhG0klEH6Y6IWbDXavppR9sLzraMMnTZohoWcPE6AICsSrRDhgbfD8crzrZFMe4w1+IXeoa8de2hu071V90etHMIVSFGbtnWJ/kFSiGo4vvTkyOOMf7RUx4GKqtqYWeYgFed1hKjGfqhLaCIQ7orjEo0NfWPVP8XjYTGLHI7mOVLURxpq8biPz84H7SFW2NDjRJfitJsHAhLL9c4X0sflPnAVCtrUT4VFhSJCtA99TqoMhmEuN8GN7RLdgror2VCLEgGnyrNjbswjlQhfWHeR8wZBpvNLeDzPQPuziw1iQmNIUCjbJQk2rum7n1CcMIljCMYAnDCJYwjGAJwwiWMIxgCcMIljCMYAnDCJYwjGAJwwiWMIxgCcMIljCMYAkjtvEw5MdwT5fGXAmvFf1ixlHAZy5h3ApLZoMM22OwE+db2dTirBfj8HPifF4L+ESwDCno74vHuyf4nGCj3dVkiotRsBUlE11kKRgwwWbv2sel8+BbGmYW56Hgwaun366Y5hWC4ze95tW7z4nJpirnnFlz1kVbj7xE/SHWWovz/PedersqwerWJEIsTF1TXbSAxJN+2UIxE+r1dc8EWgSBc6qsY0atx4wtHdIg1U0wzDmULVFF0+l1x2OuoYwX79le1eJxv2lvUf5OFNRtToe40BwiPemkdr3Z7KAv2nH3A9SxaLkz00k2o8krAdhMqtnjJX0Vzof107uEiaP8POjjKmXOwX6gXlni6iIYCk0ssG5BLDAzMfRlz3wZ2C6745EiXVbwfCIPhJfVKvRrKsYIjkUzGXUGbhXq0iQ23lK+jPWMz7Igr+w2sj7NSywRrxzCqlm1MZEV6dRrnRJCGz9s16qHAv3zqF2igQELLEgyMDHXLwiS7xfW5uvrnq5pxpy6CIbFCiKw2GA1in6LF7J+K8yceFktC5LIBW5CLUWri2Do3GVTrfFPwxKDqY2myS9/PAwRN7Ic9CrInGI43F7IVs7gumslWt2aRKxD9itg1Lj82icc8WS1aYGwyK+aWcFiRu1Vdyz13Bdi/bivPFkLT+oSNnWgKnUTjOc2rFQreK1DjXP3LY1CP1NNAjGxxlTqw7yuHZbjwQ17YnWw62p08IUO8L8qCYcahzCWLnDRBiVrqON0sLWwEvmyoiyL1/mtfoQF53X3tjR8i8IiHqvaF2K/h5losmtWjZ4ERavhFTitWJcM8WC9yZa8cgtO7Hc6FoVPpOKO6IMg/SGaYlyzzJ2AaOK5q6VmggXJ0IY7Fz4SOnfxuJU31oiJ6RzQ13WESHkucyPCLBaEwy5zEaJ2rGMTTLSWwhgFEO4v75feuXy8DM2oKOZvXfk5VEBhis0WflOsvapE+QQmL2IRDHcsH8fiiM0M9lGxpkRRuPB4PTBSOq6E5ifIA9t+972ustrVV2UmbogWZ4wxlGAYKITPIXMUcdcixibyptAxw9Hk5rqXw4lzifkO3U3hb473lhWu47+5Hpkogzu64g0TVZ57PJoRBlQcmUwDR+vdjzmEU4tR274bd3rbHUulfYLTzLgi8eiM3c+exB8sLdzdo2xfPPIQ65l3SMbM3GNiqGVwCfA8TDeo3fjDOZ1IxuVxpymFs421zV6DnDAeosoggP8Fi9xxbVFGQAIJhhoh3pW8wL3AXeZ+Gp6YdYbDC9kPFKY4JoaCgWi4tjDn5NeIZizq55TxJwFGGbYK1CTCEgqSJYaL5b5r+Tav0WMvuKMqAyLibg5TO/h540r3oBrRUUUumG0NyzZzn0MlMgHTGGa57K7FsRiYhL+lIhyGTWTxu9LfG1KOmgBcFyw6HBP3EwBxPUgWPRgks1yBPpZtlj54e2HPtqxl2a9QBfhUNh4puPjlNI1eGa+Y50kEzQUfvnef6yT7B8M+PwXnw7UtmX9nccCUXx9uJlXneCY9+s1ICK6lmkAzykzlSRezZ9mbP9mS/5e4XSrY4t5sa8G2TpOhbsyZba8++9P8gLjd8jqguWfrBfZtExlqDhNl+PzPXlkm+87T6LCJ9pKhLtiWddjrO0/BZmXsF8hQFzJU2OP9nQfnuvLDZGpZ7bGs/I2yl+Lrh2UsO8faxkky1AZW1n61C/gKBqWZee97AkN0oKz9aheYRRWY+ufA0YaH2y12tk4yxIdt7xn7ef73lXarKBiYem3gsBEtRmbEyqnsqiQYMKLFg0X2TpWadXP/gCAKYtvWIeantZKhGgaYUbeT9VmHgxwUWDAOEy7Lwlfd7G07GZSxLDrMatVeJlSeQhBaMM7Cnmx7xqJOdiWbbNsJZRkBXTCBhlmLNGBR4T/s/UDQGiXyNXm2ik6i7/ngAAAAAElFTkSuQmCC",pdf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAg3SURBVHgB7Z0/aBRLHMd/c3fJe6KFKFgnvfDSWb5gL7nSTlGwVFIKghGElBHLQEALQbC5aK++0soUloLRSgR9Foposjvv9x13783N7d7t7u3tzkzmA4e5vcsJ+8lv/vzmN3OCZuSg31+NiFaElH/z0xV+LNERY/HKlQ2xtnaHGqBHFfnR71/uSnkplnJV0BFHyg25u0tNSCstDBElpbzNj1VJgSENSeuUefOvfv8GR9QLFrVKgXF+S7tNc6SwMI4sRNU9CkxmztIKCYMsjqwNChRjjtKmCsPgIsiqwJykTRTGspY6Um5RoBpzkDZRGMvCf3aSAtWpWVquMEQX/3OZArNTo7RcYUl0BeqiJmmTmsRVCtRLDdIyhfEE+UjmBKsiv30r8ebZpGUKk0FWKeTHj6XeP4u0vCZxhQKFid+/p9JUlJYnbIkChYk5wuSvX1SaCtJKJX8DObCs6NUrqkRJaUFYTcRv31LEj0qUkOalMHHmDLUBoiz+8oUqUVCaV8I6Fy7QwqNHtLC9rR5dft4o3DQe8iJm9Po1VaKANG+Edc6fp97VqySOH1fPEWVdft45e5aaJtrbo4MnTyj+8IFKM0VaZjnGz37/Af/iJXIFlrSwtZXZFMZv3tDhrVvUFuLECRKnTpE4fVr9XJTo8+f1xc3NsQXjykU4NoEoSmXJT5+UoB4Essj0NVxvA2RBVCakZLQJIf7Kuu5Fkyi0Zi9+/lzJ0QW1NQiZB34IS/otMBT1/Tv5iBfCpCZHLC+Tz/gh7N274c+psBFxHkWbH8J4JJjSgSh+DJtJlhVrQl3HD2H6IINF9XhOluKTLODNxBmjw5SOluGQQZid6M3iyPWqWXRL8SfCWFhsSEMzGeeIdBWvkr96swikZ7KAX8KM5q+tdNQ88Wt55dy5kedqeUXLgviAV8K6Fy+OXmBZY9ccx6v1sGHGXstsIMraWBObF94I0yMpfvZspD/rXr/uTdPohTBMlPX1MIwWD+/fH0YaXuvdvEk+4L4wlAJomY3o8ePfo0OWFW1uDq+jWUTJgOs4v+Lc46bQjC48V9l6rDSzuDQRDLFmYY6KQn4oyZzGUhNwi7MjbgtjIR0t0Ysbj6opUaK/Uu/lh5LOUYjmFfIiblJtzJK42yQiK2/0S0JfVpkB1efdvTv6x2AJ7kUYbiYGGRjG58hBM6ey9Gji0NQlyy+YWJvzsggjSjSjKNjBZ2oFPSibO+DPsCnj744wRBTqDHP+6tO+B/nDvBsc4TrL7KDf0/o1iMRgBSPLNLqUNEy8+XVctwUnhKFf6Wo3WSctayuaN4ySOdpQCiVNIM/VJP8fMhGfDk6EZZNuu4UhqvhGmjlCneEwvgR4/8G1aypau9ooU40ujQiWltWD2CuMb96CFgUATZ1eXIO+x1xSKYP6fY6mtG/LrBzmiLQJO4VlyEJThv6nmwjDXz6ia2ZQpJOIV1XC6aAD17EbxbKhvX3CUCevyVJidnbUjVvc3h6+DX/5da93KTmWL3paJ0ztQNEiKx1QYLNDiprY1hFdDmLXxNnIXCCy0G/pEhFxbe5GaRurhPX0JRLuU9BvYTCgS4wrjAp9wq4IM0aAZmYCAiPLRm1NY1Ufpk+MRZKITVGZ+CPab+lYFWF6U6dnNobZDE+3EJXBKmFZEVQ29eQ7dgnDfmReJVabG5IJ7eH6epClYd08TGUXPKuHr5NwEo5jBGGOEYQ5RhDmGEGYYwRhjhGEOUYQ5hhBmGMEYY4RhDlGEOYYzSV/sY9ryuYCtd6VbPnJJSmfnvo5WPBEaXaJTL++7bYM6RmNTdCYsA6EFdwgrjYzcMb+EOtjxo0QJTeaq5r7ggWnEFZlP7Sq529ImJVNYrqTBPWJNONpohCAcm+csj3rZ9mA1X2YSCqAqaY9X4tbWxPr9F2g1QXMsfrC5WXVP+n9iEj6vknVUoc7O6rvU0Au6hv5s8a2JiWbKw5QclBgzxeauiIFq03uH2tV2NjgIulvzCPNBaJiUnlbxkAlxu/xzVZn1+tRlezcPFhfn3pSqY2Hi9nXJKKW3pDTqXiOryrg2dykyBhwCOPkAZewsw8zR1wz9mGq5Nv4zCCsRsyBwczHwGZELSVfQuAa9lRN4QYmA4WxwUINnbqahxkHq6jNgRP6KJFMCaaRbolqglaFLQ4GU99T58Y9NIsjg5kpfWPWFtos1PanhoRZn0vEASd1ZRF8KEi1do8zhtPp/rDA/7Q7D8vI78XpgShzmP+YTeC0zRWoQG6qqStKu5mOJg8sQX9kTA+mRm96aJhFHJn1sKx5l4unbh8NYRmZjbjBJZE68V9YmvE3mOVAljbx4isV81B7pI1jJMCsJ+i0iR/fgYmTBvTmDQdW4kSbnMPEXD7jw5svLS2CD9tvvW4SdRBV6rgjxze25wnbJw/AJBzFPC6KkkTvs65nCuPV2v26h4+4eXUcOVTk6KL0GPSykmIcQpb1jbXtsJd1MS/CXlLd4FSAOiaqdX1OBjZ9/aLIaeVE3i/8XFv7l/85SYE22P9jdzdz7Se35ZNCPKRAKwghXua9li+M6B4FWiEiupP3Wq6wY4PBfhyirHE4uh7g3ue9Pm0wuMGPrxRoiq+TogtMFAbT3JdN/IBAfeBeT4ouMHW69edgcC8O0uZOLOUd3Otp7xNUkB/9/kZHytsUqB3IOvb06UaR9xYWBoK0+uFmcL1IZKWUEgZY2hJLe8E/LlGgMnzj9yKWxX3Wy5K/Vw0Wd7lLdENKuUKBwiST4oeLg8EDqkBlYSnf+v0VTkiu8uhljZ+eDALH2GdLe5yI+Icfe2UjyuQ/ceojoXHdwtYAAAAASUVORK5CYII=",txt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAewSURBVHgB7Z1PbBRVGMC/t7v8M1S4FWOC9UA9mEAlsWxMKD1xgFQvajXRQKAnMUFOYix2S8uBk/WAp5KAmihwg8hBDpTtwdoYICSadHuQ+ie7PYjFNmltu/N835alu7NvZmdmZ7bv236/pPzZnW1257fvve9975s3AmokObDUKYVsi8nYASlEG0jZAuuMw23x1Jku0Q91QEBAkmeXj6pXH1H/7IR1jhKGf9VFmm9h2KLUy/qART3liTAkcmkxPwfvG8ifVLJuA8tyIjVwQ/ZBhHgWlhzI9wmQQ8BUI1JpnoShLACZAsYrkUmrKqwQXLCsIEQizVVYMiVbpIDPgQlK6NLcW1gCxy3YDkwthCrNURi2LpBwFJgwCE2acwtL5CMNT9choUhz6RJFJzBhU7M0rbDXzi2uy5xgUOYXpZ/Da5KmFSatWAswnvl7zpcwJLA0vTCQbcB4ZvoxBCGQNIcxjLtDP2ALW85DEHxL85X8ZfQsKVm//GVBQHxJY2Eh8ecjWfgJiGdpLCxEflWt7N/5aKWxsBDBrnF0woLJXHTSEmAgz20PXLkQOnMLALML/gRkchb88Qjg5edj0LzN92dBaeC0cm2UMBR14b2Y+huM4sTXFtyd8idtfhHg598s2LIRYNsWAc9uAXhmo2d5qXe/zD/+9oN4xYKxUcJe2QnGyUK624VvYUVQHGZCcoW5mo/fIWCP7mGjxrBcsAlo5GSmwRiMamH4LT4ynIf9reaMYbkZgO8fBA4iQse4oCOTwx9zTpBpcFhPDBZGDBZGDCMnzk2bBXS0AuxwCfFn1YR2NAOQnVlf451xwvxMnk8dBPhuXMIXP+gz5bt2COjZL2DrZghMVk01LqalMV8M44T5zXS8oya1uRkBV8YrT+j5N8PLmgxeN0OYUWNYx0si0Anubtd/jFpalqkY1cK2bir/P+bwsg7Zj48O4ji3MsF2kjx4w4LjHQKaNkFgVrrEwIuToWNk0FEk+xjHDv1zGHRUu7wtPSELP40Eh/XEYGHEYGHEYGHEMDroqJVixqQWsETgToaXVzzR2xUvRIo69u5cjRDnFvSv//R1AQdCWFsbUpkU3cR8LTBKWNr2Td77Av5Z/YQ7tYBSqbWAE3pThBk1hmFLwbydH3Ce5jSxvRrSSb76E3eJjgyrk59VucFDe1Saapv7sWmVrb8ybjlOrvF33cnUlumYnJZPJulmYOQYhjUUYdVRTDZYuQGH9cRgYcRgYcRgYcQwrra+t0uo+Zc5haQYgZ6+ZkFmmudhFexqBqNkIbg4iougpmDcxNlEsgbV/BtXWz943XItb6s3+CUyJS2FGDdxNunCAxPhKJEYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYLIwYka8449YLuEFkLYxOQKFqCa8iwUKdUvCCh2q171iNdWh3+WP3plZKEnTP+eXmA+eL58MmcmFNSlhPR20NOTtjFTaZxAsT8JqxppL9N1qbJXx8zX1bBnvpHJ7cmw9W7gyAF1zU+v7uTVl12ymHVJeIJ/rqeLkcbHVupXGHdlc+fzFt1a1FhA25MWw4LSuKOnu7YmWtrgh2d/bWE+aVMWtB5F0iji+4o42OC++Xn0y8NHVSs7/upE3Q4A0JX/Wsthos9jymxNg3CcMC0NJdcmYXKi/+Q/m694dj7/m3yt8fluDpahQn61gVHLkwrOvzuiM1yvJyLF7zhbWCpcEMbhI2OrG6+zV2hYd327vCyuDA6f3ptkO6+7tc866UbFg/rBmHil2jrivEY6+Mm7NnVFDICsOWgZt/lVLsGu1dIXLim2D3izIN0hNn7MrsZdTYNdq7wuH02ndlYUE+0zFcJUR322WAIuSF6brGUhqlKyzSELlE7Bp1F9yhTFMvYQpKQwjDEL61uTLbgXMpjBwbCfKfRhfCl1ItdUUN8sJ0Ibwdp9QVRUgLw9ZlD+Fxj197igqFvt3eGK2MtDDc497O0C2rcPMBe7oJu02TbtUYFLLCejRdYekEeehWZdSI62LUISkMW8pxTa6wdIJcTBCXgsFHN/GukaQw3b4ZpzWrzrosCHaNlAMQcsJ0yya4IOk0cbZnQXBudqyD7tBN6p07LZu45Qox+LBvMYsJYqpzMwdh4iEYSHd75cKil/oMDPPtlVXGZ0CknNI9rF9xlkpYHb6A9qX5akvt6Qn8WX3N7H/edhxFoR+qJPDWTeUfCscypxI5XWlDPZdoLBD3dY/rhVnxEYhHn+X2ezProDe/RvDutX5ufO2ntCEKEjHroe5xx3a0b2D5H/WkgfctXwcI8XCsN/6i7inHjjwG8jIwa4QccXrGUZjMJ4aAWRvi8X6npxyFjaUwUrS4ldUbAZfGPnGO0t1j2/yGlBp2G6R8xXwK59qldSGuwrCVxYTl+guY8MBz7da6CsdAFX7s3ajGMsnSIkf2r5xrdzxPj5MDSyl1eB8wESD7x85sSHk50lc+g6WFjxDWKS8t6+nx4JNkSrZAwrqtcl0twARGqNSTBOuUalkj/l4XkOTZ5aMiJk5KKduA8Y6AEZUovDz2WeISBKDmFO+r5xbbYhI6BcTeUN+a7SzQhkozSSHvg7TuCCnu+21Rdv4HRBf1rV6olh0AAAAASUVORK5CYII=",word="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAt7SURBVHgB7Z1bbBXHGce/PVCVUMcklZ04UpyePESCYlTSkIeASO3yEPupFZEKddPgPsTpm0NEVakXMKRUqhQVeGtAVU1DCa5UpEqV7Eglx3GEXSlGcYSNHyDNwbbU45o22HVJesnZzH/tsefMzuz92LtiftKR7PXOnt35z3fZ2Z3PFsWk4blCs22Xt5NNXyOytrNNebrLePlAS/cPn7GO0iqwniLS0H6pw7asA3bZbmZC0d2MbVP3L960aTVECy3YokXZR9hJNjOrMiyxWqLlwuz8YHuhi1lUgSCWwcWSaEeoigQW7IH2AjsR+yQZPKm2aIEEg1gW2d1kCEQ1RfMVDMmFESs81RLNU7CGjkKeZYInyBCJaojmKVj5f3SEJRj3kSEySYumFQzWZdl2Bxlik6RoWsEc6zIkRlKiaQVj1tVMhkRJQjSlYPXthbtyTjAq8wufBN43rmhKwazcp3kyBGZ65qNQ+8cRTSlYruzMuhsCcmPqFoUlqmjqGGZbeTIEZrp0m/7z3/9TWKKIFmry16AGYg2MXKcohBXNCJYQ126UnE8UwohmBEsQWNnsPxcoCkFFM4IlCFzjuT+9S8Pvf0hRCCKaEawK/OX9Iv364jB9MDVLYfETTfkyRsO33+qxLTpAhtjU1myg+i/W0AP31zg/B2XmH/MH3zy82fXAOPJLOIZgYBYEnw8mw92rWWR9RbXduMSMYQTLGKl2iZ2tD9MLbY2E1+l63ynRq3/wz74OPfuo025y9hPqv3LLt03tF9bTob2P0v6nG5w2L702QWM3o6Xmq0FqLWwf68Bj332MGus2UGP9BtapeWrbUefZ5gUmFPar3biemr5U4/y8c4v3A3OIBYF5m4s/edwRMa2kVrCtj9S4trU+4S3Yvt0Pubcx4b3YublSUEc4xXenhdQKNn3L/YypbUe9dn9YYVO+JpE2U7eCP99abVIrmCqOYPSjk1XorCJsG4g1NWsEC83QxG2av+N+ZCG7ME6rhyW1aVypqs3QtXAPI1ebVKf1l6/ddm3b+WW1YF7Jha6NKk5ioKSZVAs2POEe7Tu33O/aBpenc3tebVTxywgWg74r7ukclTh+qTtP2UVU8Wt8ciHV8QukWjB0XpA41vpEZSwaYpYpt5NFfUoh8ljxX5R2Uj811TfifkSxNX9vxe+y9fQOllxZppxgqNxk/5XwL9OsNqkXTBVTxKxvKxNLdpFo0y8JLYq6CS5SEb8upzx+gUwKBoH49NEuybXx+yi58xHHuFtUxTzEr/l/h3/zabVJvWDofFUiwIV6SnJt/D5qnLlEOY5xK1PFL9UtRBrJxOMVVRzjQu2S7rHEOCS343GsSYqBTruR8I/z14JMCAZ3JQOh4Nrg6kREVyi706aleKdyiWOT6X2kIpIJwfpH3NkbZinkjpfj0JAiju172j2jP8TcYRbiF8iEYHMsFo0V3RaAh5UichxSxT88+5IZmkj3/KFIZl4RCNKpqjgkxzHZhS4eOxsJB8iMYEFualUdP+wjBjJJI1gVGPd5z2JIk5b7iaFytWkmM4LN+VhC/5XZRNullUy95ub1cNFLlKjt0ki2BNN0LuKQ16tpUdulkcwJpnpB5sJgqSrt0sg61caabQe+SRZtpxSCbPGRug30+c+tcyzkTP8UHe/9a9XarRUWWaMLV8/+Ud6eucUQuBHuODFGYYnaLm2Yd+szhhEsYxjBMoYRLGMYwTKGESxjGMEyhhEsYxjBMoYRLGMYwTKGESxjGMEyhhEsYxjBMoYRLGMYwTKGESxjGMEyRuYFw0rMNBfzSppIV4o1Vqde3LL8O0rc+b2Qicpsr1780HdZD/bjKyXx4kzXaxOu78aSIRQKkxej87XNKBehK9+A9c2/eXmb7utZu4+d4zivxmmOgRUwuso7eCMLZfyweEO1TCoukQTDhaCz+EqQzrZGX8GwkBxiQTQdEENcDtQ1uCIWr2uoWi7EwXoxfBYHR1FZKxHH8azrwf6GAYGOP90/rTwGFsL71QbBeaKfcL29Cb7/GNklnu6bWv7ZWQnp4ZZQAm/RMrxL4UEQDl785BeKtpeOP+kplvtYefrzz5+M7C4xGHGMzrbg3ynDPVGc85CJfJQzbPTBsnBh+HQ+06i1Hi4EX66qssZNGytHPn8fHhd68cePu0s7XLtNve/8bdltOQNi90MVdaXgBXoObqO9P3uPdHAXys8B1iOu0sS54w1hL1cuWyFqgMjngWvYe/y92Cs9IwuGVSGXWafyeoQYiSrBIILY2Vg1qerA1h11FfvBpTn7sw4Tt8Pyun414RZ9YrGgCqz4FeYSubvG9+PcTvdNkwq8Wy+7LAwCvroTx9m/u8Fxjzr4ua5QdELAsecXK6oCiOY1qIMSK0s8I1xE7UZ1bJDXFGMfOVkAojvEEiB0mhzTEFcgtle8ROd3/PKq69hhXNIZSZyH6++hsMBqca5i6YlDz+Zju8ZYgvFsauWEKtcc6+LWtxQiilbErUEeANgepHgXzkmMsRhMbV+to6DM3UlmgTrOVTwPACuLQ+z7MHFdsZx8iFYjggrW4n6iFcLl8UEgWydiVlBQhVtEVzNRBSxBZPxm9KJhsFbRysKch4rYgsEFiSckjiDRQg6/fn15P56kANkKxQDO/T8IWxpProSjKqYCcD916sXNyx9U1RYHWtw10LDWyb+vnLcqHIQhtmA4IdHsEeBhPTyV58CnX3h7xUK4SGKlbLlzxPZzC+Hd1JyQkdXeo44dTUtZIf/IbhgDKG4NxfHJFQtVVTEIQyJTU3LygQxJHKW9g4vpt1gJgKf4na0rFokSDWLnzN9JrtjJ/MfhjgXX3HHiqmd2GJTGCEmLjkQEkxd+I60WrYMLKicpPWyKSJXKcypcST68KwlioTgfWJE4OHg2mtTUkuza45DY5K8Ye0Szxw2uuI7Yaz/Z9YjFVHS3DTrk7FRXmAU36BgoP339esV34UY3idkJuZ5j3KqniQmGkapa4C1ndrry5qoMUC6mIt82eCFnqH6FWZA8ibEYnfzKc49RXH4Q8jz8SPTxyu8HKztdnA8Uke9NdPvJLhQWFkS0U9/fUjGqZSvXcfjcjYrvg5XGmUvE7UGr8P9icJ19IykSTE7xdfUx5HsTr/9AJP8NE7KIfar0GIIiLd+3u9Iddp2eoKDgcY5YceAYs7Iwrpg/DZBvD4DXnGZQEn3yh+QDqTsmhYF7jm1lP2SE/MbYsyjKUlIgWhZuBfBxqrUtda74uEcE845h0nLnGRxrgw7nYMYdE7e645R+10J+hD0PHYk/ceYzDDyV1+43GGw/wJMCOfbxWwNVoUvsi7RcnvEIAgaJmITID2zDgAEFy4pyHioSFwwzDLjg3gDFThzr0VihDNzonh+96wjsBYSCRe54aThWWo7vE68BgwK3K0FB3MR54JyTLI9Ulf8yC/cUJMgH3U8GcWLX5vuclJmn3tPMSnGsMZ/q2PyZF8frvxnJ+wJ0PrZt0sxY4Fhz7CY97nMvi6ye0vmW77m3KzD/Fnjt0QmmdomWXSTDGlO+qdqqi2FFMqwpuVxuVLlduXc5N0CGNcUqq43G0jV48DtvfUQ2xXvaZohKceb815VTOvq03rbPkmFNYAnHgO5vWsGscu4kGdaGMh3V/UkrWOlCS9GyyVjZKuOk86zvdX/3numwrW52hGxVMc4y6GsP6wKegjlKly3PAxgSpGwf9bIu4DuXOPNGy0mLbCNalUEfz7yxxzdvWEcBWLj624F7tz3PbgGsZjIkDsQqnd/THWzfEDS0X+q2yTpChuSw7YNBLIsTSjDQsL+Qt3N2gf2YJ0McRq2cdbB0rmUgTKPQgnEa2gsdtmV3sdmQVNa3TyuWRQMs+z7LZuJ7KAKRBePUtxe25yxqZn74GzaxqSwjYAWsg4s22aNk5d5mYo2GtSiZzwAUkLEVUATXEwAAAABJRU5ErkJggg==",xls="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAltSURBVHgB7Z1bbFRFGMe/sxpLEKlKokAvlESNsV7KgxLRxsZovMZLYumDDwLqiy8KJCZqYlsTrTFB+uQLkcUHH7wlajRKvGFKUNTERoUHNAEqKmiobimGEthx/lumzE7nnD3XOXNkfslSdvds9/T8z/fNN998M+NRQlrLQz0nq6yLSqWbiPhPxjroDGN5d/fAu5d2D5IBPIpJS3loVZXoIS5QD53hLL/hBuI3rBHRIgtWsyiififUaWqCAQOilaIcvKj84uMnGfvCieVDtTpw388j/ZQhoQVbXB7iVlUdJkcwGYsWSjCIxRgbIEc4MhStoWAILpxYMchItEDBFpaHOrhYG8kRjwxEKzV4s58RnU+O+KQsmq9gp6xrFTmSk6JopYA3Mg1PzzhSEs1XMMaohxzpkoJoWsFays93cck6yBGKqWPHwh+cUDStYOyk10GO0ByZmIh0fBLR9C7R41l3R2jGx8cpMjFF8xHM6yBHaCYqFTpx4gRFJoZokZK/Dj0nuVhje/dSLCKK5gRLib/+/LP2iEUE0ZxgKbKfW9m/R49SLEKKdjZZzvxzmqj5nDnUNq+ZsmTi+BT9NH6IkgDX+OPoKLW2t1NLWxtFZlo0ChoEtVawvkuuot5Lr6YVC9vJJDsOjtGbP/9Ab/7yI8XlwNgY/XXoEC1ZupQuWLAg0mcbiaYtEVi8+YUtDPUaOQBL2th9t3GhVH6drNADH71e+5mEpqYmmjtvHp07dy41zZkT+nOTRybXjt65etaAsVUWBrE+uXcNd4Ph/7Asz+XtOx5MLNrU1FTt8ffhw5E+53neNbrXrRFMXCBVLLiorfv38DamPv1zxYUX06Od1848hxv7ih8bF3zv9Yva6fb2y2ad063vvVpr42zAGsHWL+uuCyxwV68d+aAmmI4VCyt1gtXangTtDti0+9sZkcS54CfOrX/np2QDVoT1uCgreZAhEO3HjgQWExfx3bJFP3rFtbVo1QasEEwNMDZ8P5K4sU8CvnvTrm/rXuu75GqyASsEQ3sk8/HYHsqbTbu/q3veeeFFZANWCNa54LRguLttaODhEg9IVm5D5Apcaiok85vsEMy6TEczb9z7pADEj9bz6lNVKxYtiT+zwwdbAg0Z6wSD60GmIyqIMleGELroOJdYMJxgBcM6l4jobM1n7zQ8rpN3BQaX3zLzHP2mrSl3B4a5a27NeFgnKtYJVuEhfZwMxy4+lpVHZsQ0ziUWDCdYwXCCFQwnWMFwghUMK1NTwyEyHWraaCUKdnh6Kk1caioESE3FSTHlXbRjCucSC4YTrGBY5xIxgLn8rVcaHgcXiGIZwRMjHyQuwlH5pvcx61JTzsIKhhWCHTjyz8z/my2KzOQocWIqwrTYDLFCsIpUw4Eo0YaID6MBch1HnlVcMlYIpg6LoE+VN3KRKthqQSUXsEIwDIvIhZvoh6F4My8gllrYasvQjTVBx4bvt9c9x+AkMh5tBqM0tFn43sHrblHObYRswZqwHnXtqE+U72xRWIOJdmqtopo2qllFAleKG0N3c2AkO+3uQhKs6oehL1Xh0ZjaflypVAbr6AxxTFQwI6b/GzsmQQis6zjjAu3mFrVOmc1iErSncNGwetuwcsrsG9wF4YGC0ut5iN96npkVAFGa/dUf++mjsT3WzAdTsXpSuhDOcRqXmioYTrCC4QQrGE6wguEEKxhOsILhBCsYTrCC4QQrGE6wguEEKxhOsILhBCsYTrCCYWR4RV0NDWNNYQYHsXahusYThutFyZm6ChzYMLqdkoIyu9uWXFYbi2s+VepW4YOaOG+s3Yi1sPIqezM2HoY1B2XwBwctAgYxhrvvqqsNxJC9fKHEWoYySQVDEY6uYquNpke/ISaOwY2Tx6pzRlwirEktE5sWw7/KF0KohZxpWE8QfmLpgGXv7H3M+BwyY20YVheVgRiqdQj6NMsQZX039/nUQqK+Y3qFudml2jgn06UExlxizUL4HyiLhAuENkG2Pri5dYqQaSwP24hepUROLPAinxuqt9CmivPLo0jHaJQIl/bTeP12F1gITHYr6zXVUqp1ZsHsVVG3z3LjqI9EjQmmQ00vM2u+UMd4WD+w85O653LgkIcrFOegUjkePFslryjRuGC4a9X1dOEaIdQ6TSSZdaABKhpLWZ9jXWQQuXScIYJ6hz7HIzT1AsHtmEBdLhaI5dAHNeeVJ7kIhgukixplTPdx3uB9PBUIBetH+A7xbFhAM7fUlM41Cky5Qhmsoh10gyAowWwaiJencLnmEv1C9TwadFh9mM0NpjMw08Ll4SpzFUydpSLA3SzvgWIKsSsE3HWjm+b0XjH/00yHSl+DRZXR2Oe1dJDc10L+csInxBdtnElyE0wN4dWLokvsmgbu8YntH9Llr2/0tTo/L5EVuQim6+M8u/PTWe0H7l5b1pCC1cHi1EzNfAPbPcoYF6xmOV031r2GOxcBCO5i1dLW5WxlMjjPlzXznZsNbvNhXDB5uSGB6CDrdhWChZloJ9BehgnXde1ZozRWmhgVDIGG6j7UDrIuC7J+2Y2Zux24aRGuB7lhdeI7ztVkN8TY8Ipu2MSvgwzXKFui2N4jTKpqOOQ2ILsOH5oZHpHHwkS4LnabPXBKEEx6f6RzdpuKKbYmMVoioLMuHSILIkdguFB4NOrYhs1C7ODnIgTr1SwXIb4viDwyMkZcoq7P1WivZFwItb1Qx87SApYbdfEUnNvDfIDTjpoOxvZRisQZNhFLL8hk2TfD+aCzHNRRFsDKb31vc+Kd1QOpVrW+VrvlVkt5aFWVsTKlANqfK5VStSgNtc4tCbeo+91habSVPb4XZW5t0pITaPdMlbh5Ht3/++qn3531uu7gheWhDo+xveTIjZJ39rLfVj85qr7uu6nd4s0v/M2IzKxo4lDZ98eap5fq3vANOhix18iRC57nbfN7z18wrzRMjlyo8sEKv/d8BTu4+ql93F86KzMMt64tuPZ+7wf2w6qeN8BF+4ccRsC1DrIuECgYlGYs+Bc40gPXOsi6wFnUgMn3P/t63j03c0v1esiRGYyxwYMPP/Nio+MaCgYm3/98mxMtO06JNRDm2FCCASdaRjBaG8ayBJF3g5/OgtAX/Js6yJGEUeZ5a3mbtS3KhyILJuDCrSoRe5w3lF3kCA/vFLNq9TVuVVsoBrEFE7SUX+qqVk/08OTXvR6x852ACp63j/8zyrPvX7KSNxrVolT+A8wXTZGb2d8DAAAAAElFTkSuQmCC",unknow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAATwSURBVHgB7Z3NbxtFGMafcRCWIoiiUh8qImFUgURBqnMqPdUXPiQqOMABcSEcWsSp7F8Q58aJTU+V0ks5UHEADqiXwqFOLzEHiCPaVMKK5ESJenDatE5zcBV3OrNuKrX1rmfXu7bf2fcnOf7YsRPpp2f2nZn1RKBPXPdiEXhUgBCn1NOCuuWRMt4/caJ08uTxOQyAlxAR112YUZK+BmQREEgzUsrS0tIKBiEttDAvUQKzHVESTIdBScuEafzj+YVzEPJaRxbzPE+kzSJBjIW55y/OCol5MIEkLc1ImJal/pISGCOSlNZTmFdcsKzQJCUtUJjrXsirAsMFE4kkpAUnTIzpXzYJJjJxS/MV5qULmAHTN3FK809YJ11MTMQlLahLLIKJlTikdRWmKsNUzglGpdVqGbftV5pPwjJ5MMY0d3dDte9Hmo+wdgGMMTs7OwhLVGl+57A8GGOazSb29/cRlijSQk3+Mt1pt9vY2NhAFMJKY2Ex0djeRqPRQBTCSGNhMbKuUra3t4comEpjYTGiu8YbN29ia2sLUTCRxsISYFMJq66s4G4C1WPkazqYYPRgularIZvNYnx83Lvpx4aULv/yx/2vvvz0hQVjFpYwWpy+hR2rCWSOd3udu0RisDBisDBisDBisDBisDBisDBiWDEOO3bsbXz4wame7RYXK1iu/gfKWJGwqdePGLU7evQNUMcKYc1muCV6yqTqHGaDWDsStssJs5JW6yGokzJh5tcPjip2dIn3HyAtcNFBDEuKDk6YlbQectFBCq4SRwSe6bAUG6pJa4SlJWUpKzp44EwKLjpGCO4SLcMWoRYlLB2zHalJmA3nL401wnotnbCwEcMWIb3gLpEY9hQdPa7rsGG1WcMJI0aKhHHCRoq0XNfBXSIxLCo6ghPGXSIxbLieQ2PVTEdQt2dLl2jNPh1ayM+Xf8fExCtdjzUad2ADVm2sopdQbF8X46/MEoOFEcO6vab0Bly5w4e8c5l37tq+a1U3aY0wLWq68B6mp999Yde0tbV1LF5fskKcFcImJl7FF59/4t13Q38ZfWrqCH797Qr5atGKc1iQrAOy2ZdVu9M924065IXpPTpMJWhpJvt5jDL0hb3zVqj2udxrnjiqkBeWyx0O1V7LotwtkhcWJS2csCESpVSnPBFMXtjaWj1Mc+8KYcqlPXlhq7dqodpXKv+AMuSF6bToWQwTdBpXb/0PylgxcF5evoHK38HJ0aL+/Os6qGPNXGKl8i9WV2vefGIud+hp6b65eduTpe9twLoFTNPukSq8HkYMFkYMFkYMFkYMFkYMFkYMFkYMFkYMFkYMFkYMFkYMFkYMP2F1MENFyvZ6t9d9hIk6mGFT7faij7B2GcyQ6R4a4dfcnV/Q/9p7EswwqDvfn32z2wH/okPiJzBDQSBT9jsWUCW258EMBSnH5vyO+QpznO/q6p2csgGj0nXJcb6p+x3vMQ57VFI/7oEZFPeC0qUJFNZJmQj8ACZGpJwLSpem50yH45yZ1x8EJlk8Wd/2rBvGYMDVq1fKH390WkCIIpj46cgqmTQ1EqZhaQkhpaNk/WDaXCAkrnshDzF2TT3Mg+mHqqoPlKwz5TBvCi3sANddmBFCnJOQBTDGqC6qLNVwyXHOXkIEIgs7QIlTwmRRiMxn6ukkC3wW0Vn5qCpJi6rGq4ZN1PM8BoCnJWYEhfjKAAAAAElFTkSuQmCC",file_icon_map={excel:xls,pdf,word,txt,code:code$1,html:html$2,json,unknow},_hoisted_1$w={class:"file-icon-display"},_hoisted_2$o=["src"],_sfc_main$G={__name:"FileIcon",props:{file_end_fix:Object},setup(e){const t=e,n=computed(()=>{const r=t.file_end_fix;let i="unknow";return r==="doc"||r==="docx"?i="word":r==="excel"||r==="Excel"||r==="xlsx"||r==="xls"?i="excel":r==="pdf"||r==="PDF"?i="pdf":r==="txt"||r==="md"?i="txt":r==="js"||r==="python"||r==="sql"||r==="php"?i="code":r==="html"?i="html":r==="json"?i="json":i="unknow",file_icon_map[i]});return(r,i)=>(openBlock(),createElementBlock("div",_hoisted_1$w,[createBaseVNode("span",null,[createBaseVNode("img",{src:n.value},null,8,_hoisted_2$o)])]))}},FileIcon=_export_sfc$1(_sfc_main$G,[["__scopeId","data-v-0ec68cdf"]]),_hoisted_1$v={class:"file-size-display"},_sfc_main$F={__name:"FileSize",props:{file_size:Object},setup(e){const t=e,n=computed(()=>getFileSize(t.file_size));return(r,i)=>(openBlock(),createElementBlock("div",_hoisted_1$v,[createBaseVNode("div",null,toDisplayString(n.value),1)]))}},FileSize=_export_sfc$1(_sfc_main$F,[["__scopeId","data-v-f69c1048"]]),_sfc_main$E={__name:"FileItemRemoveBtn",emits:["delete"],setup(e,{emit:t}){const n=t,r=()=>{n("delete")};return(i,s)=>{const o=resolveComponent("icon-close");return openBlock(),createElementBlock("span",{class:"file-item-remove-btn",onClick:withModifiers(r,["stop"])},[createVNode(o)])}}},FileItemRemoveBtn=_export_sfc$1(_sfc_main$E,[["__scopeId","data-v-db9478fb"]]),_hoisted_1$u={key:0,class:"loading-pdf-box"},_hoisted_2$n={class:"loading-spin"},_hoisted_3$h={key:1,class:"loading-pdf-box"},_sfc_main$D={__name:"ViewerPDFFromFile",props:{file:Object,doc_width:Number,positions:Array},setup(e,{expose:t}){const n=e,r=useTemplateRef("box");let i=null;const s=[];let o=[],l=1,d=[];const f=ref(1),m=ref(""),g=(()=>{const I={};return Array.isArray(n.positions)&&n.positions.forEach((D,L)=>{const Y=D[0],G=D[1],z=D[2],K=D[3],X=D[4];Y in I?I[Y].push({x1:G,x2:z,y1:K,y2:X}):I[Y]=[{x1:G,x2:z,y1:K,y2:X}]}),I})();function E(I,D,L,Y,G){I.fillStyle="rgba(255, 255, 0, 0.5)";const z=L-D,K=G-Y;I.fillRect(D,Y,z,K)}onMounted(()=>{f.value=2,m.value="loading",n.file.arrayBuffer().then(function(I){loadPdfjs.getDocument(I).promise.then(async D=>{i=D;const L=D.numPages;let Y=-1,G=0;s.length=0,o.length=0;for(let z=1;z<=L;z++){const K=document.createElement("canvas");K.addEventListener("contextmenu",function(Xe){Xe.preventDefault()}),o[z]=K.getContext("2d");const X=await D.getPage(z),ye=X.getViewport({scale:1}),be=ye.width,Ce=ye.height,Ne=n.doc_width,He=Ne/(be/Ce);l=Ne/be;const Fe=X.getViewport({scale:l});if(s.push(G),K.width=Ne,K.height=He,G=G+K.height,await X.render({viewport:Fe,canvasContext:o[z]}).promise,z in g){const Xe=g[z];Y===-1&&(Y=z),Xe.forEach(Ee=>{E(o[z],Ee.x1*l,Ee.x2*l,Ee.y1*l,Ee.y2*l)})}r.value&&r.value.appendChild(K)}f.value=3,m.value="success",Y!==-1&&setTimeout(()=>{r.value&&(r.value.scrollTop=s[Y-1])})}).catch(D=>{console.log(D,"PDF加载出错"),f.value=4,m.value=`PDF文档 ${n.url} 加载出错。 ERROR: :${D.message}`})})});const w=I=>{const D={};return I.forEach((L,Y)=>{const G=L[0],z=L[1],K=L[2],X=L[3],ye=L[4];G in D?D[G].push({x1:z,x2:K,y1:X,y2:ye}):D[G]=[{x1:z,x2:K,y1:X,y2:ye}]}),D},C=async(I,D)=>{var L;i&&(setTimeout(()=>{r.value&&(r.value.scrollTop=s[I-1])}),d.includes(I)||(L=w(D)[I])==null||L.forEach(G=>{E(o[I],G.x1*l,G.x2*l,G.y1*l,G.y2*l),d.push(I)}))};return onBeforeUnmount(()=>{o.forEach(I=>{I.clearRect(0,0,I.canvas.width,I.canvas.height)}),o.length=0,s.length=0,i=null}),t({toPageIndex:C}),(I,D)=>{const L=Spin,Y=Result;return openBlock(),createElementBlock(Fragment$1,null,[createBaseVNode("div",{class:"pdf-container",id:"pdfContainer",ref_key:"box",ref:r},null,512),f.value===2?(openBlock(),createElementBlock("div",_hoisted_1$u,[createBaseVNode("div",_hoisted_2$n,[createVNode(L,{size:36})])])):createCommentVNode("",!0),f.value===4?(openBlock(),createElementBlock("div",_hoisted_3$h,[createVNode(Y,{status:"error",title:I.$t("common.doc_error")},{subtitle:withCtx(()=>[createTextVNode(toDisplayString(m.value),1)]),_:1},8,["title"])])):createCommentVNode("",!0)],64)}}},ViewerPDFFromFile=_export_sfc$1(_sfc_main$D,[["__scopeId","data-v-cbddf511"]]),_hoisted_1$t={key:0,class:"loading-doc-box"},_hoisted_2$m={class:"loading-spin"},_hoisted_3$g={key:1,class:"loading-doc-box"},_sfc_main$C={__name:"ViewerDocxFromFile",props:{file:Object,doc_width:Number},setup(e){const t=e,n=useTemplateRef("box"),r=ref(1),i=ref("");return onMounted(()=>{r.value=2,i.value="loading",renderDocxByBlob(n.value,t.file).then(s=>{r.value=3,i.value="success"}).catch(s=>{r.value=4,i.value=`文档 ${t.url} 加载出错。 ERROR: :${s.message}`})}),(s,o)=>{const l=Spin,d=Result;return openBlock(),createElementBlock(Fragment$1,null,[createBaseVNode("div",{class:"doc-container",ref_key:"box",ref:n},null,512),r.value===2?(openBlock(),createElementBlock("div",_hoisted_1$t,[createBaseVNode("div",_hoisted_2$m,[createVNode(l,{size:36})])])):createCommentVNode("",!0),r.value===4?(openBlock(),createElementBlock("div",_hoisted_3$g,[createVNode(d,{status:"error",title:s.$t("common.doc_error")},{subtitle:withCtx(()=>[createTextVNode(toDisplayString(i.value),1)]),_:1},8,["title"])])):createCommentVNode("",!0)],64)}}},ViewerDocxFromFile=_export_sfc$1(_sfc_main$C,[["__scopeId","data-v-d415d17b"]]),_hoisted_1$s={class:"file-item-doc-preview"},_hoisted_2$l={class:"file-item-info-container"},_sfc_main$B={__name:"FileItemDocPreview",props:{file:Object,enable_remove:Boolean},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=window.innerWidth/2,s=computed(()=>{const E=n.file.name;if(!E)return"";const w=getFileSuffix(E);return w==="pdf"?"pdf":w==="docx"||w==="doc"?"doc":""}),o=ref(!1),l=()=>{o.value=!1},d=()=>{o.value=!1},f=computed(()=>{const E=n.file;if(!E)return"";const w=E.name||"";return getFileSuffix(w)}),m=()=>{r("delete")},g=()=>{s.value!=="doc"&&s.value!=="pdf"||(o.value=!0)};return(E,w)=>{const C=Tooltip,I=Drawer;return openBlock(),createElementBlock("div",_hoisted_1$s,[createVNode(FileIcon,{file_end_fix:f.value},null,8,["file_end_fix"]),createBaseVNode("div",_hoisted_2$l,[createVNode(C,{content:e.file.name,position:"top"},{default:withCtx(()=>[createBaseVNode("div",{class:"file-item-doc-title",onClick:g},toDisplayString(e.file.name),1)]),_:1},8,["content"]),createVNode(FileSize,{file_size:e.file.size},null,8,["file_size"])]),e.enable_remove?(openBlock(),createBlock(FileItemRemoveBtn,{key:0,class:"file-item-remove-button",onDelete:m})):createCommentVNode("",!0),createVNode(I,{ref:"drawer",width:i+20,visible:o.value,onOk:l,onCancel:d,unmountOnClose:"","data-flag":"doc-ref-effect-contaienr",footer:!1},{title:withCtx(()=>[createTextVNode(toDisplayString(e.file.name),1)]),default:withCtx(()=>[s.value==="pdf"?(openBlock(),createBlock(ViewerPDFFromFile,{key:0,file:e.file,doc_width:i},null,8,["file"])):createCommentVNode("",!0),s.value==="doc"?(openBlock(),createBlock(ViewerDocxFromFile,{key:1,file:e.file,doc_width:i},null,8,["file"])):createCommentVNode("",!0)]),_:1},8,["width","visible"])])}}},FileItemDocPreview=_export_sfc$1(_sfc_main$B,[["__scopeId","data-v-996ab4f9"]]),_hoisted_1$r={class:"file-item-image-preview"},_hoisted_2$k={ref:"container"},_sfc_main$A={__name:"FileItemImagePreview",props:{file:Object,enable_remove:Boolean},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=ref(1),s=ref(""),o=()=>{r("delete")};return onMounted(()=>{const l=n.file;if(l){var d=new FileReader;d.onload=function(f){i.value=2,s.value=f.target.result},d.readAsDataURL(l)}}),(l,d)=>{const f=Image$1;return openBlock(),createElementBlock("div",_hoisted_1$r,[createBaseVNode("div",_hoisted_2$k,[i.value===1?(openBlock(),createBlock(f,{key:0,width:"100"})):createCommentVNode("",!0),i.value===2?(openBlock(),createBlock(f,{key:1,width:"100",src:s.value},null,8,["src"])):createCommentVNode("",!0)],512),e.enable_remove?(openBlock(),createBlock(FileItemRemoveBtn,{key:0,class:"file-item-remove-button",onDelete:o})):createCommentVNode("",!0)])}}},FileItemImagePreview=_export_sfc$1(_sfc_main$A,[["__scopeId","data-v-5b131548"]]),isImageEndfix=e=>e==="jpg"||e==="png"||e==="jpeg"||e==="gif";function isImageByFileName(e){const t=e.split("."),n=t[t.length-1];return isImageEndfix(n)}const _hoisted_1$q={class:"file-upload-preview-area"},_hoisted_2$j={class:"file-doc-preview-container"},_hoisted_3$f={class:"file-image-preview-container"},_sfc_main$z={__name:"FileUploadPreviewV2",props:{file_list:Array,enable_remove:Boolean},emits:["delete"],setup(e,{emit:t}){const n=e,r=computed(()=>{const s=[];return n.file_list.forEach((o,l)=>{const d=o.name;isImageByFileName(d)&&s.push(o)}),s}),i=computed(()=>{const s=[];return n.file_list.forEach((o,l)=>{const d=o.name;isImageByFileName(d)||s.push(o)}),s});return(s,o)=>(openBlock(),createElementBlock("div",_hoisted_1$q,[createBaseVNode("div",_hoisted_2$j,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(i.value,(l,d)=>(openBlock(),createBlock(FileItemDocPreview,{class:"file-preview-item",key:l.name+d,file:l},null,8,["file"]))),128))]),createBaseVNode("div",_hoisted_3$f,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(r.value,(l,d)=>(openBlock(),createBlock(FileItemImagePreview,{class:"file-preview-item",key:l.name+d,file:l},null,8,["file"]))),128))])]))}},FileUploadPreviewV2=_export_sfc$1(_sfc_main$z,[["__scopeId","data-v-a3e09e54"]]),_hoisted_1$p={class:"dialog-item dialog-question"},_hoisted_2$i={class:"dialog-main question-main"},_hoisted_3$e={class:"dialog-content question-content"},_hoisted_4$a={class:"question-main-content"},_hoisted_5$6={class:"dialog-icon question-icon"},_hoisted_6$4=["src"],_sfc_main$y={__name:"DialogQuestion",props:{show_select:!0,question:Object},emits:["select"],setup(e,{emit:t}){const n=e,r=computed(()=>n.show_select===!0),i=computed(()=>Array.isArray(n.question.client_custom_upload_file_list)?n.question.client_custom_upload_file_list:[]),s=t,o=()=>{s("select")};return(l,d)=>(openBlock(),createElementBlock("div",_hoisted_1$p,[r.value?(openBlock(),createBlock(BtnSelectItem,{key:0,onChange:o})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$i,[createBaseVNode("div",_hoisted_3$e,[createBaseVNode("div",_hoisted_4$a,[createVNode(DialogContent,{content:e.question.content,show_think:!1,class:"question-content-core-text"},null,8,["content"]),i.value.length!==0?(openBlock(),createBlock(FileUploadPreviewV2,{key:0,file_list:i.value,enable_remove:!1},null,8,["file_list"])):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_5$6,[createBaseVNode("img",{src:e.question.client_custom_icon},null,8,_hoisted_6$4)])])]))}},DialogQuestion=_export_sfc$1(_sfc_main$y,[["__scopeId","data-v-c7cbcc27"]]),_hoisted_1$o={class:"dialog-actions-container"},_hoisted_2$h={class:"dialog-action-part dialog-action-left"},_hoisted_3$d={class:"action-btn-item"},_hoisted_4$9={class:"action-btn-item"},_hoisted_5$5={class:"action-btn-item"},_hoisted_6$3={class:"action-btn-item"},_sfc_main$x={__name:"DialogActions",props:{action_list:Array},emits:["copy","retry","share","edit","download"],setup(e,{emit:t}){const n=e,r=t;function i(f){return!f||!n.action_list||!Array.isArray(n.action_list)?!1:n.action_list.indexOf(f)>=0}const s=()=>{r("copy")},o=()=>{r("retry")},l=()=>{r("edit")},d=()=>{r("download")};return(f,m)=>{const g=resolveComponent("icon-copy"),E=Tooltip,w=resolveComponent("icon-refresh"),C=resolveComponent("icon-edit"),I=resolveComponent("icon-download");return openBlock(),createElementBlock("div",_hoisted_1$o,[createBaseVNode("div",_hoisted_2$h,[createBaseVNode("div",_hoisted_3$d,[i("copy")?(openBlock(),createBlock(E,{key:0,content:f.$t("conversation.copy"),position:"right"},{default:withCtx(()=>[createVNode(g,{size:"18",onClick:s})]),_:1},8,["content"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_4$9,[i("retry")?(openBlock(),createBlock(E,{key:0,content:f.$t("conversation.retry"),position:"right"},{default:withCtx(()=>[createVNode(w,{size:"18",onClick:o})]),_:1},8,["content"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_5$5,[i("edit")?(openBlock(),createBlock(E,{key:0,content:f.$t("conversation.edit"),position:"right"},{default:withCtx(()=>[createVNode(C,{size:"18",onClick:l})]),_:1},8,["content"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_6$3,[i("download")?(openBlock(),createBlock(E,{key:0,content:f.$t("conversation.download"),position:"right"},{default:withCtx(()=>[createVNode(I,{size:"18",onClick:d})]),_:1},8,["content"])):createCommentVNode("",!0)])]),m[0]||(m[0]=createBaseVNode("div",{class:"dialog-action-part dialog-action-right"},[createBaseVNode("div",{class:"action-btn-item"})],-1))])}}},DialogActions=_export_sfc$1(_sfc_main$x,[["__scopeId","data-v-1e91acad"]]),marked=new Marked,REFFERENCE_FLAG="refference-flag",replaceCode=e=>e.replace(/##\d\$\$/g,' <span class="circle"></span>');function formatAnwserString(e){if(!e)return"";let t=replaceCode(e);e.indexOf("![]")<0;var i=marked.parse(t).replace("<a href=",'<a target="_blank" href=').replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi,function(d,f){const m=document.createElement("div");m.innerHTML=d;const g=m.querySelector("img"),E=g.src,w=formatStaticAssetsUrl(E),C=g.alt;return`<img data-src="${w}" src="${w}" data-alt="${C}"></img>`});const s=/<span class="circle" data-list-index="\d"><\/span>/g;let o=0;return i.replaceAll(s,function(d,f,m,g){let E=d.replace("></span>",`data-flag-index="${o}"></span>`);return E=E.replace('class="circle"',`class="refflag-refflag-refflag ${REFFERENCE_FLAG}"`),o++,E})}function formatRefferenceString(e,t){return!e||!e.doc_aggs?"":'<div class="client-formated-markdown-element-item client-formated-markdown-doc-refference-container"></div>'}function formatRefferenceFlag(e){if(!e)return"";let t=e;return t=t.replace(/##\d\$\$/g,function(n,r,i){return`<span class="client-formated-markdown-element-item client-formated-markdown-doc-refference-flag" data-ref-index="${n.replace("##","").replace("$$","")}"></span>`}),t}function formatFileDownloadUrl(e){let t=e.replace("//","/");return t=t.replace("/./","/"),t=t.replace("./","/"),t=formatStaticAssetsUrl(t),t}const _hoisted_1$n={class:"file-item-info-container"},_hoisted_2$g={class:"file-item-doc-title"},_sfc_main$w={__name:"FileItemDocDownload",props:{file:Object},emits:["delete"],setup(e,{emit:t}){const n=e;computed(()=>{const s=n.file.file_name;if(!s)return"";const o=getFileSuffix(s);return o==="pdf"?"pdf":o==="docx"||o==="doc"?"doc":""}),ref(!1);const r=computed(()=>{const s=n.file;if(!s)return"";const o=s.file_name||"";return getFileSuffix(o)}),i=()=>{if(n.file.file_url){const s=formatFileDownloadUrl(n.file.file_url);window.open(s,"_blank")}};return onMounted(()=>{}),(s,o)=>{const l=Tooltip;return openBlock(),createElementBlock("div",{class:"file-item-doc-preview",onClick:i},[createVNode(FileIcon,{file_end_fix:r.value,class:"file-icon-box"},null,8,["file_end_fix"]),createBaseVNode("div",_hoisted_1$n,[createVNode(l,{content:s.$t("common.click_2_download"),position:"top"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$g,toDisplayString(e.file.file_name),1)]),_:1},8,["content"])])])}}},FileItemDocDownload=_export_sfc$1(_sfc_main$w,[["__scopeId","data-v-2cbe14d5"]]),_sfc_main$v={__name:"DownloadFileItem",props:{file:Object},setup(e){return onMounted(()=>{}),(t,n)=>(openBlock(),createBlock(FileItemDocDownload,{file:e.file},null,8,["file"]))}},DownloadFileItem=_export_sfc$1(_sfc_main$v,[["__scopeId","data-v-aa48c63d"]]),_sfc_main$u={__name:"DownloadFileList",props:{files:Array},setup(e){return onMounted(()=>{}),(t,n)=>(openBlock(!0),createElementBlock(Fragment$1,null,renderList(e.files,(r,i)=>(openBlock(),createBlock(DownloadFileItem,{key:i,file:r},null,8,["file"]))),128))}},DownloadFileList=_export_sfc$1(_sfc_main$u,[["__scopeId","data-v-6c9a7f86"]]),conversation$1={back:"返回",related_docs:"以下是根据您的提问搜索到的相关文档",doc_total:"共{total}条",fragments:"检索片段",source:"来源",view_links:"查看全部关联",btn_ok:"确定",btn_cancel:"取消",doc_details:"文档详情",view_details:"查看详情"},common$1={click_2_download:"点击下载文件"},zh={conversation:conversation$1,common:common$1},conversation={back:"Back",related_docs:"Documents",doc_total:"There are a total of {total}",fragments:"Retrieve fragments",source:"Source",view_links:"View all associations",btn_ok:"Confirm",btn_cancel:"Cancel",doc_details:"Document Details",view_details:"View details"},common={click_2_download:"Click to download the file"},en={conversation,common},i18n=createI18n({locale:"zh",fallbackLocale:"en",messages:{zh,en}});function initDynamicApp(e,t,n){const r=createApp(t,n);return r.use(i18n),installArcoVue(r),r.mount(e),()=>{r.unmount()}}function dynamicEffectDownloadLinks(e,t=[]){return console.log(t),initDynamicApp(e,DownloadFileList,{files:t})}function applyRefferencePopover4DownloadFile(e,t){let n=()=>{};setTimeout(()=>{const i=`.${e} .agent-answer-download-container`,s=document.querySelectorAll(i);r(s)},0);function r(i){i.forEach((s,o)=>{t&&Array.isArray(t)&&t.length!==0&&(n=dynamicEffectDownloadLinks(s,t))})}return()=>{typeof n=="function"&&n()}}const _hoisted_1$m={class:"image-aisde-btn-container"},_hoisted_2$f=["src"],_hoisted_3$c=["src"],_sfc_main$t={__name:"AsideImage",props:{src:String},setup(e){return(t,n)=>{const r=Popover;return openBlock(),createBlock(r,null,{content:withCtx(()=>[createBaseVNode("img",{src:e.src,class:"image-large-view"},null,8,_hoisted_3$c)]),default:withCtx(()=>[createBaseVNode("div",_hoisted_1$m,[createBaseVNode("img",{src:e.src,class:"image-aside-btn"},null,8,_hoisted_2$f)])]),_:1})}}},AsideImage=_export_sfc$1(_sfc_main$t,[["__scopeId","data-v-51bffc85"]]),icon_word="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='13px'%20height='16px'%20viewBox='0%200%2013%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e编组备份%205%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='智能对话切图'%20transform='translate(-47,%20-481)'%3e%3crect%20fill='%23E6E6E6'%20x='0'%20y='0'%20width='428'%20height='564'%3e%3c/rect%3e%3cg%20id='编组备份-5'%20transform='translate(47,%20481)'%20fill-rule='nonzero'%3e%3cpath%20d='M8.72857143,0%20C8.8763349,0%209.01804637,0.0588038179%209.12253092,0.163475285%20L12.8368166,3.88440552%20C12.9413012,3.98907698%2013,4.13104196%2013,4.27906977%20L13,14.6976744%20C13,15.4169403%2012.4179815,16%2011.7,16%20L1.3,16%20C0.582027083,16%200,15.4169378%200,14.6976744%20L0,1.30232558%20C0,0.583070837%200.582029639,0%201.3,0%20L8.72857143,0%20Z'%20id='路径'%20fill='%23FFC34C'%3e%3c/path%3e%3cg%20id='w'%20transform='translate(2.05,%206.45)'%20fill='%23FFFFFF'%3e%3cpolygon%20id='路径'%20points='1.81%205.64%200%200%201.38%200%202.48%204.03%202.53%204.03%203.63%200%204.96%200%206.07%204.03%206.12%204.03%207.21%200%208.59%200%206.79%205.64%205.45%205.64%204.32%201.63%204.27%201.63%203.14%205.64'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",icon_pdf="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.75%204A3.25%203.25%200%200%201%2011%20.75h16c.121%200%20.238.048.323.134l10.793%2010.793a.457.457%200%200%201%20.134.323v24A3.25%203.25%200%200%201%2035%2039.25H11A3.25%203.25%200%200%201%207.75%2036V4Z'%20stroke='%23D0D5DD'%20stroke-width='1.5'/%3e%3cpath%20d='M27%20.5V8a4%204%200%200%200%204%204h7.5'%20stroke='%23D0D5DD'%20stroke-width='1.5'/%3e%3crect%20x='1'%20y='18'%20width='26'%20height='16'%20rx='2'%20fill='%23D92D20'/%3e%3cpath%20d='M4.832%2030v-7.273h2.87c.551%200%201.021.106%201.41.316.388.209.684.499.887.87.206.37.31.796.31%201.279%200%20.483-.105.909-.313%201.278-.209.37-.51.657-.906.863-.393.206-.869.309-1.427.309h-1.83V26.41h1.581c.296%200%20.54-.051.732-.153.194-.104.338-.247.433-.43.097-.184.145-.396.145-.635%200-.242-.048-.452-.145-.632a.972.972%200%200%200-.433-.423c-.195-.102-.44-.153-.74-.153H6.37V30H4.832Zm9.053%200h-2.578v-7.273h2.6c.73%200%201.36.146%201.889.437.527.289.934.704%201.218%201.246.286.543.43%201.191.43%201.947%200%20.757-.144%201.408-.43%201.953a2.953%202.953%200%200%201-1.226%201.253c-.53.291-1.164.437-1.903.437Zm-1.04-1.317h.976c.455%200%20.837-.081%201.147-.242.313-.163.547-.415.703-.756.159-.344.238-.786.238-1.328%200-.538-.08-.977-.238-1.318a1.541%201.541%200%200%200-.7-.753c-.31-.16-.692-.241-1.146-.241h-.98v4.637ZM18.581%2030v-7.273h4.816v1.268H20.12v1.733h2.958v1.268H20.12V30h-1.538Z'%20fill='%23fff'/%3e%3c/svg%3e",_hoisted_1$l={class:"file-name-icon"},_hoisted_2$e=["src"],_hoisted_3$b={class:"file-name-label"},_sfc_main$s={__name:"FileNameDisplay",props:{file_name:String,file_id:String},setup(e){const t=e,n=function(){if(t.file_name){const l=t.file_name.split(".");return l[l.length-1]}else return""}(),r=n==="pdf",s={docx:icon_word,doc:icon_word,pdf:icon_pdf}[n];return(o,l)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["file-name-display",{"file-name-pdf":r,"file-name-others":!r}])},[createBaseVNode("span",_hoisted_1$l,[createBaseVNode("img",{src:unref(s)},null,8,_hoisted_2$e)]),createBaseVNode("span",_hoisted_3$b,toDisplayString(e.file_name),1)],2))}},FileNameDisplay=_export_sfc$1(_sfc_main$s,[["__scopeId","data-v-241e74c3"]]),getDocumentUrl=e=>e?`${getConfigField("REFFERENCE_ASSETS_FILE_URL")}/v1/document/get/${e}`:"",getImageUrl=e=>e?`${getConfigField("REFFERENCE_ASSETS_FILE_URL")}/v1/document/image/${e}`:"",_hoisted_1$k={class:"refference-container"},_hoisted_2$d={"data-v-6fd6a4a5":"",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"arco-icon arco-icon-info-circle","stroke-width":"2.5","stroke-linecap":"butt","stroke-linejoin":"miter",style:{"font-size":"16px"}},_hoisted_3$a={class:"refference-content"},_hoisted_4$8={class:"refference-description"},_hoisted_5$4={class:"ref-text-content"},_sfc_main$r={__name:"RefferenceFlag",props:{img:String,image_id:String,text:String,doc_id:String,doc_name:String,positions:Array},setup(e){const t=e,n=window.innerWidth/2,r=getDocumentUrl(t.doc_id),i=getImageUrl(t.image_id),s=ref(!1),o=computed(()=>{const m=t.doc_name;if(!m)return"";const g=m.split("."),E=g.length,w=g[E-1];return w==="pdf"?"pdf":w==="docx"||w==="doc"?"doc":""}),l=()=>{t.doc_name,(o.value==="doc"||o.value==="pdf")&&(s.value=!0)},d=()=>{s.value=!1},f=()=>{s.value=!1};return onMounted(()=>{}),(m,g)=>{const E=Popover,w=Drawer;return openBlock(),createElementBlock("span",_hoisted_1$k,[createVNode(E,{"content-style":{width:"500px",maxWidth:"500px"}},{title:withCtx(()=>g[1]||(g[1]=[])),content:withCtx(()=>[createBaseVNode("div",_hoisted_3$a,[unref(i)?(openBlock(),createBlock(AsideImage,{key:0,src:unref(i)},null,8,["src"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$8,[createBaseVNode("div",_hoisted_5$4,toDisplayString(e.text),1),createVNode(FileNameDisplay,{onClick:l,file_name:e.doc_name,file_id:e.doc_id},null,8,["file_name","file_id"])])])]),default:withCtx(()=>[(openBlock(),createElementBlock("svg",_hoisted_2$d,g[0]||(g[0]=[createBaseVNode("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)])))]),_:1}),createVNode(w,{ref:"drawer",width:n+20,visible:s.value,onOk:d,onCancel:f,unmountOnClose:"","data-flag":"doc-ref-effect-contaienr",footer:!1},{title:withCtx(()=>[createTextVNode(toDisplayString(e.doc_name),1)]),default:withCtx(()=>[o.value==="pdf"?(openBlock(),createBlock(ViewerPDFFromUrl,{key:0,url:unref(r),doc_width:n,positions:e.positions},null,8,["url","positions"])):createCommentVNode("",!0),o.value==="doc"?(openBlock(),createBlock(ViewerDocxFromUrl,{key:1,url:unref(r),doc_width:n,positions:e.positions},null,8,["url","positions"])):createCommentVNode("",!0)]),_:1},8,["width","visible"])])}}},RefferenceFlag=_export_sfc$1(_sfc_main$r,[["__scopeId","data-v-7ff96b60"]]);function dynamicRegRefFlag(e,t={}){return initDynamicApp(e,RefferenceFlag,{img:t.refference.img_id||"",image_id:t.refference.img_id,text:t.refference.content_with_weight||"",doc_id:t.refference.doc_id,doc_name:t.refference.docnm_kwd,positions:t.refference.positions})}function applyRefferencePopover4RefFlag(e,t){let n=()=>{};setTimeout(()=>{const i=`.${e} .client-formated-markdown-doc-refference-flag`,s=document.querySelectorAll(i);r(s)},0);function r(i){i.forEach((s,o)=>{const l=s.getAttribute("data-ref-index");if(t){const d=t.chunks;if(d){const f=d[l],m={refference:{chunk_id:f.id,content_ltks:f.content_ltks,content_with_weight:f.content,doc_id:f.document_id,docnm_kwd:f.document_name,img_id:f.image_id,important_kwd:f.important_kwd,kb_id:f.kb_id,positions:f.positions,similarity:f.similarity,term_similarity:f.term_similarity,vector_similarity:f.vector_similarity}};n=dynamicRegRefFlag(s,m)}}})}return()=>{typeof n=="function"&&n()}}function deepFreeze(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&deepFreeze(n)}),e}class Response{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function escapeHTML(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const SPAN_CLOSE="</span>",emitsWrappingTags=e=>!!e.scope,scopeToCSSClass=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class HTMLRenderer{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=escapeHTML(t)}openNode(t){if(!emitsWrappingTags(t))return;const n=scopeToCSSClass(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){emitsWrappingTags(t)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const newNode=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=newNode({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{TokenTree._collapse(n)}))}}class TokenTreeEmitter extends TokenTree{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(e){return e?typeof e=="string"?e:e.source:null}function lookahead(e){return concat$1("(?=",e,")")}function anyNumberOfTimes(e){return concat$1("(?:",e,")*")}function optional(e){return concat$1("(?:",e,")?")}function concat$1(...e){return e.map(n=>source(n)).join("")}function stripOptionsFromArgs(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function either(...e){return"("+(stripOptionsFromArgs(e).capture?"":"?:")+e.map(r=>source(r)).join("|")+")"}function countMatchGroups(e){return new RegExp(e.toString()+"|").exec("").length-1}function startsWith(e,t){const n=e&&e.exec(t);return n&&n.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let s=source(r),o="";for(;s.length>0;){const l=BACKREF_RE.exec(s);if(!l){o+=s;break}o+=s.substring(0,l.index),s=s.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?o+="\\"+String(Number(l[1])+i):(o+=l[0],l[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(t)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=concat$1(t,/.*\b/,e.binary,/\b.*/)),inherit$1({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT=function(e,t,n={}){const r=inherit$1({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:concat$1(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},C_LINE_COMMENT_MODE=COMMENT("//","$"),C_BLOCK_COMMENT_MODE=COMMENT("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]},TITLE_MODE={scope:"title",begin:IDENT_RE,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,APOS_STRING_MODE,BACKSLASH_ESCAPE,BINARY_NUMBER_MODE,BINARY_NUMBER_RE,COMMENT,C_BLOCK_COMMENT_MODE,C_LINE_COMMENT_MODE,C_NUMBER_MODE,C_NUMBER_RE,END_SAME_AS_BEGIN,HASH_COMMENT_MODE,IDENT_RE,MATCH_NOTHING_RE,METHOD_GUARD,NUMBER_MODE,NUMBER_RE,PHRASAL_WORDS_MODE,QUOTE_STRING_MODE,REGEXP_MODE,RE_STARTERS_RE,SHEBANG,TITLE_MODE,UNDERSCORE_IDENT_RE,UNDERSCORE_TITLE_MODE});function skipIfHasPrecedingDot(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function scopeClassName(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function beginKeywords(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=skipIfHasPrecedingDot,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function compileIllegal(e,t){Array.isArray(e.illegal)&&(e.illegal=either(...e.illegal))}function compileMatch(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function compileRelevance(e,t){e.relevance===void 0&&(e.relevance=1)}const beforeMatchExt=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=concat$1(n.beforeMatch,lookahead(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(e,t,n=DEFAULT_KEYWORD_SCOPE){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(s){Object.assign(r,compileKeywords(e[s],t,s))}),r;function i(s,o){t&&(o=o.map(l=>l.toLowerCase())),o.forEach(function(l){const d=l.split("|");r[d[0]]=[s,scoreForKeyword(d[0],d[1])]})}}function scoreForKeyword(e,t){return t?Number(t):commonKeyword(e)?0:1}function commonKeyword(e){return COMMON_KEYWORDS.includes(e.toLowerCase())}const seenDeprecations={},error$1=e=>{console.error(e)},warn$1=(e,...t)=>{console.log(`WARN: ${e}`,...t)},deprecated=(e,t)=>{seenDeprecations[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),seenDeprecations[`${e}/${t}`]=!0)},MultiClassError=new Error;function remapScopeNames(e,t,{key:n}){let r=0;const i=e[n],s={},o={};for(let l=1;l<=t.length;l++)o[l+r]=i[l],s[l+r]=!0,r+=countMatchGroups(t[l-1]);e[n]=o,e[n]._emit=s,e[n]._multi=!0}function beginMultiClass(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw error$1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof e.beginScope!="object"||e.beginScope===null)throw error$1("beginScope must be object"),MultiClassError;remapScopeNames(e,e.begin,{key:"beginScope"}),e.begin=_rewriteBackreferences(e.begin,{joinWith:""})}}function endMultiClass(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw error$1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof e.endScope!="object"||e.endScope===null)throw error$1("endScope must be object"),MultiClassError;remapScopeNames(e,e.end,{key:"endScope"}),e.end=_rewriteBackreferences(e.end,{joinWith:""})}}function scopeSugar(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function MultiClass(e){scopeSugar(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),beginMultiClass(e),endMultiClass(e)}function compileLanguage(e){function t(o,l){return new RegExp(source(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(l?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,l]),this.matchAt+=countMatchGroups(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(d=>d[1]);this.matcherRe=t(_rewriteBackreferences(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(l);if(!d)return null;const f=d.findIndex((g,E)=>E>0&&g!==void 0),m=this.matchIndexes[f];return d.splice(0,f),Object.assign(d,m)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const d=new n;return this.rules.slice(l).forEach(([f,m])=>d.addRule(f,m)),d.compile(),this.multiRegexes[l]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,d){this.rules.push([l,d]),d.type==="begin"&&this.count++}exec(l){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let f=d.exec(l);if(this.resumingScanAtSamePosition()&&!(f&&f.index===this.lastIndex)){const m=this.getMatcher(0);m.lastIndex=this.lastIndex+1,f=m.exec(l)}return f&&(this.regexIndex+=f.position+1,this.regexIndex===this.count&&this.considerAll()),f}}function i(o){const l=new r;return o.contains.forEach(d=>l.addRule(d.begin,{rule:d,type:"begin"})),o.terminatorEnd&&l.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&l.addRule(o.illegal,{type:"illegal"}),l}function s(o,l){const d=o;if(o.isCompiled)return d;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(m=>m(o,l)),e.compilerExtensions.forEach(m=>m(o,l)),o.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(m=>m(o,l)),o.isCompiled=!0;let f=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),f=o.keywords.$pattern,delete o.keywords.$pattern),f=f||/\w+/,o.keywords&&(o.keywords=compileKeywords(o.keywords,e.case_insensitive)),d.keywordPatternRe=t(f,!0),l&&(o.begin||(o.begin=/\B|\b/),d.beginRe=t(d.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(d.endRe=t(d.end)),d.terminatorEnd=source(d.end)||"",o.endsWithParent&&l.terminatorEnd&&(d.terminatorEnd+=(o.end?"|":"")+l.terminatorEnd)),o.illegal&&(d.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(m){return expandOrCloneMode(m==="self"?o:m)})),o.contains.forEach(function(m){s(m,d)}),o.starts&&s(o.starts,l),d.matcher=i(d),d}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=inherit$1(e.classNameAliases||{}),s(e)}function dependencyOnParent(e){return e?e.endsWithParent||dependencyOnParent(e.starts):!1}function expandOrCloneMode(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return inherit$1(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:dependencyOnParent(e)?inherit$1(e,{starts:e.starts?inherit$1(e.starts):null}):Object.isFrozen(e)?inherit$1(e):e}var version="11.10.0";class HTMLInjectionError extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const escape$2=escapeHTML,inherit$2=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function d(we){return l.noHighlightRe.test(we)}function f(we){let De=we.className+" ";De+=we.parentNode?we.parentNode.className:"";const qe=l.languageDetectRe.exec(De);if(qe){const Ge=Ce(qe[1]);return Ge||(warn$1(s.replace("{}",qe[1])),warn$1("Falling back to no-highlight mode for this block.",we)),Ge?qe[1]:"no-highlight"}return De.split(/\s+/).find(Ge=>d(Ge)||Ce(Ge))}function m(we,De,qe){let Ge="",Oe="";typeof De=="object"?(Ge=we,qe=De.ignoreIllegals,Oe=De.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead.
- https://github.com/highlightjs/highlight.js/issues/2277`),Oe=we,Ge=De),qe===void 0&&(qe=!0);const fe={code:Ge,language:Oe};$e("before:highlight",fe);const Te=fe.result?fe.result:g(fe.language,fe.code,qe);return Te.code=fe.code,$e("after:highlight",Te),Te}function g(we,De,qe,Ge){const Oe=Object.create(null);function fe(Ue,Qe){return Ue.keywords[Qe]}function Te(){if(!ot.keywords){Zt.addText(pt);return}let Ue=0;ot.keywordPatternRe.lastIndex=0;let Qe=ot.keywordPatternRe.exec(pt),at="";for(;Qe;){at+=pt.substring(Ue,Qe.index);const gt=bn.case_insensitive?Qe[0].toLowerCase():Qe[0],an=fe(ot,gt);if(an){const[Tn,fn]=an;if(Zt.addText(at),at="",Oe[gt]=(Oe[gt]||0)+1,Oe[gt]<=MAX_KEYWORD_HITS&&(yn+=fn),Tn.startsWith("_"))at+=Qe[0];else{const qt=bn.classNameAliases[Tn]||Tn;je(Qe[0],qt)}}else at+=Qe[0];Ue=ot.keywordPatternRe.lastIndex,Qe=ot.keywordPatternRe.exec(pt)}at+=pt.substring(Ue),Zt.addText(at)}function Re(){if(pt==="")return;let Ue=null;if(typeof ot.subLanguage=="string"){if(!t[ot.subLanguage]){Zt.addText(pt);return}Ue=g(ot.subLanguage,pt,!0,Wt[ot.subLanguage]),Wt[ot.subLanguage]=Ue._top}else Ue=w(pt,ot.subLanguage.length?ot.subLanguage:null);ot.relevance>0&&(yn+=Ue.relevance),Zt.__addSublanguage(Ue._emitter,Ue.language)}function Ve(){ot.subLanguage!=null?Re():Te(),pt=""}function je(Ue,Qe){Ue!==""&&(Zt.startScope(Qe),Zt.addText(Ue),Zt.endScope())}function Je(Ue,Qe){let at=1;const gt=Qe.length-1;for(;at<=gt;){if(!Ue._emit[at]){at++;continue}const an=bn.classNameAliases[Ue[at]]||Ue[at],Tn=Qe[at];an?je(Tn,an):(pt=Tn,Te(),pt=""),at++}}function dt(Ue,Qe){return Ue.scope&&typeof Ue.scope=="string"&&Zt.openNode(bn.classNameAliases[Ue.scope]||Ue.scope),Ue.beginScope&&(Ue.beginScope._wrap?(je(pt,bn.classNameAliases[Ue.beginScope._wrap]||Ue.beginScope._wrap),pt=""):Ue.beginScope._multi&&(Je(Ue.beginScope,Qe),pt="")),ot=Object.create(Ue,{parent:{value:ot}}),ot}function Yt(Ue,Qe,at){let gt=startsWith(Ue.endRe,at);if(gt){if(Ue["on:end"]){const an=new Response(Ue);Ue["on:end"](Qe,an),an.isMatchIgnored&&(gt=!1)}if(gt){for(;Ue.endsParent&&Ue.parent;)Ue=Ue.parent;return Ue}}if(Ue.endsWithParent)return Yt(Ue.parent,Qe,at)}function In(Ue){return ot.matcher.regexIndex===0?(pt+=Ue[0],1):(jn=!0,0)}function Gn(Ue){const Qe=Ue[0],at=Ue.rule,gt=new Response(at),an=[at.__beforeBegin,at["on:begin"]];for(const Tn of an)if(Tn&&(Tn(Ue,gt),gt.isMatchIgnored))return In(Qe);return at.skip?pt+=Qe:(at.excludeBegin&&(pt+=Qe),Ve(),!at.returnBegin&&!at.excludeBegin&&(pt=Qe)),dt(at,Ue),at.returnBegin?0:Qe.length}function Yn(Ue){const Qe=Ue[0],at=De.substring(Ue.index),gt=Yt(ot,Ue,at);if(!gt)return NO_MATCH;const an=ot;ot.endScope&&ot.endScope._wrap?(Ve(),je(Qe,ot.endScope._wrap)):ot.endScope&&ot.endScope._multi?(Ve(),Je(ot.endScope,Ue)):an.skip?pt+=Qe:(an.returnEnd||an.excludeEnd||(pt+=Qe),Ve(),an.excludeEnd&&(pt=Qe));do ot.scope&&Zt.closeNode(),!ot.skip&&!ot.subLanguage&&(yn+=ot.relevance),ot=ot.parent;while(ot!==gt.parent);return gt.starts&&dt(gt.starts,Ue),an.returnEnd?0:Qe.length}function gr(){const Ue=[];for(let Qe=ot;Qe!==bn;Qe=Qe.parent)Qe.scope&&Ue.unshift(Qe.scope);Ue.forEach(Qe=>Zt.openNode(Qe))}let Zn={};function cr(Ue,Qe){const at=Qe&&Qe[0];if(pt+=Ue,at==null)return Ve(),0;if(Zn.type==="begin"&&Qe.type==="end"&&Zn.index===Qe.index&&at===""){if(pt+=De.slice(Qe.index,Qe.index+1),!i){const gt=new Error(`0 width match regex (${we})`);throw gt.languageName=we,gt.badRule=Zn.rule,gt}return 1}if(Zn=Qe,Qe.type==="begin")return Gn(Qe);if(Qe.type==="illegal"&&!qe){const gt=new Error('Illegal lexeme "'+at+'" for mode "'+(ot.scope||"<unnamed>")+'"');throw gt.mode=ot,gt}else if(Qe.type==="end"){const gt=Yn(Qe);if(gt!==NO_MATCH)return gt}if(Qe.type==="illegal"&&at==="")return 1;if(Pn>1e5&&Pn>Qe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return pt+=at,at.length}const bn=Ce(we);if(!bn)throw error$1(s.replace("{}",we)),new Error('Unknown language: "'+we+'"');const Ln=compileLanguage(bn);let _n="",ot=Ge||Ln;const Wt={},Zt=new l.__emitter(l);gr();let pt="",yn=0,mn=0,Pn=0,jn=!1;try{if(bn.__emitTokens)bn.__emitTokens(De,Zt);else{for(ot.matcher.considerAll();;){Pn++,jn?jn=!1:ot.matcher.considerAll(),ot.matcher.lastIndex=mn;const Ue=ot.matcher.exec(De);if(!Ue)break;const Qe=De.substring(mn,Ue.index),at=cr(Qe,Ue);mn=Ue.index+at}cr(De.substring(mn))}return Zt.finalize(),_n=Zt.toHTML(),{language:we,value:_n,relevance:yn,illegal:!1,_emitter:Zt,_top:ot}}catch(Ue){if(Ue.message&&Ue.message.includes("Illegal"))return{language:we,value:escape$2(De),illegal:!0,relevance:0,_illegalBy:{message:Ue.message,index:mn,context:De.slice(mn-100,mn+100),mode:Ue.mode,resultSoFar:_n},_emitter:Zt};if(i)return{language:we,value:escape$2(De),illegal:!1,relevance:0,errorRaised:Ue,_emitter:Zt,_top:ot};throw Ue}}function E(we){const De={value:escape$2(we),illegal:!1,relevance:0,_top:o,_emitter:new l.__emitter(l)};return De._emitter.addText(we),De}function w(we,De){De=De||l.languages||Object.keys(t);const qe=E(we),Ge=De.filter(Ce).filter(He).map(Ve=>g(Ve,we,!1));Ge.unshift(qe);const Oe=Ge.sort((Ve,je)=>{if(Ve.relevance!==je.relevance)return je.relevance-Ve.relevance;if(Ve.language&&je.language){if(Ce(Ve.language).supersetOf===je.language)return 1;if(Ce(je.language).supersetOf===Ve.language)return-1}return 0}),[fe,Te]=Oe,Re=fe;return Re.secondBest=Te,Re}function C(we,De,qe){const Ge=De&&n[De]||qe;we.classList.add("hljs"),we.classList.add(`language-${Ge}`)}function I(we){let De=null;const qe=f(we);if(d(qe))return;if($e("before:highlightElement",{el:we,language:qe}),we.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",we);return}if(we.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(we)),l.throwUnescapedHTML))throw new HTMLInjectionError("One of your code blocks includes unescaped HTML.",we.innerHTML);De=we;const Ge=De.textContent,Oe=qe?m(Ge,{language:qe,ignoreIllegals:!0}):w(Ge);we.innerHTML=Oe.value,we.dataset.highlighted="yes",C(we,qe,Oe.language),we.result={language:Oe.language,re:Oe.relevance,relevance:Oe.relevance},Oe.secondBest&&(we.secondBest={language:Oe.secondBest.language,relevance:Oe.secondBest.relevance}),$e("after:highlightElement",{el:we,result:Oe,text:Ge})}function D(we){l=inherit$2(l,we)}const L=()=>{z(),deprecated("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Y(){z(),deprecated("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let G=!1;function z(){if(document.readyState==="loading"){G=!0;return}document.querySelectorAll(l.cssSelector).forEach(I)}function K(){G&&z()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",K,!1);function X(we,De){let qe=null;try{qe=De(e)}catch(Ge){if(error$1("Language definition for '{}' could not be registered.".replace("{}",we)),i)error$1(Ge);else throw Ge;qe=o}qe.name||(qe.name=we),t[we]=qe,qe.rawDefinition=De.bind(null,e),qe.aliases&&Ne(qe.aliases,{languageName:we})}function ye(we){delete t[we];for(const De of Object.keys(n))n[De]===we&&delete n[De]}function be(){return Object.keys(t)}function Ce(we){return we=(we||"").toLowerCase(),t[we]||t[n[we]]}function Ne(we,{languageName:De}){typeof we=="string"&&(we=[we]),we.forEach(qe=>{n[qe.toLowerCase()]=De})}function He(we){const De=Ce(we);return De&&!De.disableAutodetect}function Fe(we){we["before:highlightBlock"]&&!we["before:highlightElement"]&&(we["before:highlightElement"]=De=>{we["before:highlightBlock"](Object.assign({block:De.el},De))}),we["after:highlightBlock"]&&!we["after:highlightElement"]&&(we["after:highlightElement"]=De=>{we["after:highlightBlock"](Object.assign({block:De.el},De))})}function Xe(we){Fe(we),r.push(we)}function Ee(we){const De=r.indexOf(we);De!==-1&&r.splice(De,1)}function $e(we,De){const qe=we;r.forEach(function(Ge){Ge[qe]&&Ge[qe](De)})}function Ie(we){return deprecated("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated("10.7.0","Please use highlightElement now."),I(we)}Object.assign(e,{highlight:m,highlightAuto:w,highlightAll:z,highlightElement:I,highlightBlock:Ie,configure:D,initHighlighting:L,initHighlightingOnLoad:Y,registerLanguage:X,unregisterLanguage:ye,listLanguages:be,getLanguage:Ce,registerAliases:Ne,autoDetection:He,inherit:inherit$2,addPlugin:Xe,removePlugin:Ee}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=version,e.regex={concat:concat$1,lookahead,either,optional,anyNumberOfTimes};for(const we in MODES)typeof MODES[we]=="object"&&deepFreeze(MODES[we]);return Object.assign(e,MODES),e},highlight=HLJS({});highlight.newInstance=()=>HLJS({});var core=highlight;highlight.HighlightJS=highlight;highlight.default=highlight;var apache_1,hasRequiredApache;function requireApache(){if(hasRequiredApache)return apache_1;hasRequiredApache=1;function e(t){const n={className:"number",begin:/[$%]\d+/},r={className:"number",begin:/\b\d+/},i={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},s={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[t.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[i,s,t.inherit(t.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",n]},i,r,t.QUOTE_STRING_MODE]}}],illegal:/\S/}}return apache_1=e,apache_1}var xml_1,hasRequiredXml;function requireXml(){if(hasRequiredXml)return xml_1;hasRequiredXml=1;function e(t){const n=t.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=t.inherit(o,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),f=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),m={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,f,d,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,l,f,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:m}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return xml_1=e,xml_1}var bash_1,hasRequiredBash;function requireBash(){if(hasRequiredBash)return bash_1;hasRequiredBash=1;function e(t){const n=t.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},o=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,s]};s.contains.push(d);const f={match:/\\"/},m={className:"string",begin:/'/,end:/'/},g={match:/\\'/},E={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},w=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],C=t.SHEBANG({binary:`(${w.join("|")})`,relevance:10}),I={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},D=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],L=["true","false"],Y={match:/(\/[a-z._-]+)+/},G=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],z=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],K=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],X=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:D,literal:L,built_in:[...G,...z,"set","shopt",...K,...X]},contains:[C,t.SHEBANG(),I,E,o,l,Y,d,f,m,g,r]}}return bash_1=e,bash_1}var cmake_1,hasRequiredCmake;function requireCmake(){if(hasRequiredCmake)return cmake_1;hasRequiredCmake=1;function e(t){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},t.COMMENT(/#\[\[/,/]]/),t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE]}}return cmake_1=e,cmake_1}var css_1,hasRequiredCss;function requireCss(){if(hasRequiredCss)return css_1;hasRequiredCss=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),l=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function d(f){const m=f.regex,g=e(f),E={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},w="and or not only",C=/@-?\w[\w]*(-\w+)*/,I="[a-zA-Z-][a-zA-Z0-9_-]*",D=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[g.BLOCK_COMMENT,E,g.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+I,relevance:0},g.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+s.join("|")+")"},{begin:":(:)?("+o.join("|")+")"}]},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+l.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[g.BLOCK_COMMENT,g.HEXCOLOR,g.IMPORTANT,g.CSS_NUMBER_MODE,...D,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...D,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},g.FUNCTION_DISPATCH]},{begin:m.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:C},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:w,attribute:i.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...D,g.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return css_1=d,css_1}var markdown_1,hasRequiredMarkdown;function requireMarkdown(){if(hasRequiredMarkdown)return markdown_1;hasRequiredMarkdown=1;function e(t){const n=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},l={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},m={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},E=t.inherit(m,{contains:[]}),w=t.inherit(g,{contains:[]});m.contains.push(w),g.contains.push(E);let C=[r,f];return[m,g,E,w].forEach(Y=>{Y.contains=Y.contains.concat(C)}),C=C.concat(m,g),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:C},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:C}]}]},r,o,m,g,{className:"quote",begin:"^>\\s+",contains:C,end:"$"},s,i,f,l,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return markdown_1=e,markdown_1}var diff_1,hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff_1;hasRequiredDiff=1;function e(t){const n=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return diff_1=e,diff_1}var django_1,hasRequiredDjango;function requireDjango(){if(hasRequiredDjango)return django_1;hasRequiredDjango=1;function e(t){const n={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[t.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),t.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[n]}]}}return django_1=e,django_1}var dockerfile_1,hasRequiredDockerfile;function requireDockerfile(){if(hasRequiredDockerfile)return dockerfile_1;hasRequiredDockerfile=1;function e(t){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[t.HASH_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return dockerfile_1=e,dockerfile_1}var ruby_1,hasRequiredRuby;function requireRuby(){if(hasRequiredRuby)return ruby_1;hasRequiredRuby=1;function e(t){const n=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=n.concat(i,/(::\w+)*/),l={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},d={className:"doctag",begin:"@[A-Za-z]+"},f={begin:"#<",end:">"},m=[t.COMMENT("#","$",{contains:[d]}),t.COMMENT("^=begin","^=end",{contains:[d],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],g={className:"subst",begin:/#\{/,end:/\}/,keywords:l},E={className:"string",contains:[t.BACKSLASH_ESCAPE,g],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,g]})]}]},w="[1-9](_?[0-9])*|0",C="[0-9](_?[0-9])*",I={className:"number",relevance:0,variants:[{begin:`\\b(${w})(\\.(${C}))?([eE][+-]?(${C})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},D={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:l}]},ye=[E,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:l},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:l},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[D]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[E,{begin:r}],relevance:0},I,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:l},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,g],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(f,m),relevance:0}].concat(f,m);g.contains=ye,D.contains=ye;const He=[{begin:/^\s*=>/,starts:{end:"$",contains:ye}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:l,contains:ye}}];return m.unshift(f),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:l,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(He).concat(m).concat(ye)}}return ruby_1=e,ruby_1}var excel_1,hasRequiredExcel;function requireExcel(){if(hasRequiredExcel)return excel_1;hasRequiredExcel=1;function e(t){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},t.BACKSLASH_ESCAPE,t.QUOTE_STRING_MODE,{className:"number",begin:t.NUMBER_RE+"(%)?",relevance:0},t.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return excel_1=e,excel_1}var gradle_1,hasRequiredGradle;function requireGradle(){if(hasRequiredGradle)return gradle_1;hasRequiredGradle=1;function e(t){return{name:"Gradle",case_insensitive:!0,keywords:["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"],contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,t.REGEXP_MODE]}}return gradle_1=e,gradle_1}var graphql_1,hasRequiredGraphql;function requireGraphql(){if(hasRequiredGraphql)return graphql_1;hasRequiredGraphql=1;function e(t){const n=t.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(r,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return graphql_1=e,graphql_1}var http_1,hasRequiredHttp;function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1;function e(t){const n=t.regex,r="HTTP/([32]|1\\.[01])",i=/[A-Za-z][A-Za-z0-9-]*/,s={className:"attribute",begin:n.concat("^",i,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+r+" \\d{3})",end:/$/,contains:[{className:"meta",begin:r},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+r+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:r},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},t.inherit(s,{relevance:0})]}}return http_1=e,http_1}var java_1,hasRequiredJava;function requireJava(){if(hasRequiredJava)return java_1;hasRequiredJava=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function i(o,l,d){return d===-1?"":o.replace(l,f=>i(o,l,d-1))}function s(o){const l=o.regex,d="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",f=d+i("(?:<"+d+"~~~(?:\\s*,\\s*"+d+"~~~)*>)?",/~~~/g,2),C={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},I={className:"meta",begin:"@"+d,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},D={className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[o.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:C,illegal:/<\/|#/,contains:[o.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[o.BACKSLASH_ESCAPE]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,d],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[l.concat(/(?!else)/,d),/\s+/,d,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,d],className:{1:"keyword",3:"title.class"},contains:[D,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+f+"\\s+)",o.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:C,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[I,o.APOS_STRING_MODE,o.QUOTE_STRING_MODE,r,o.C_BLOCK_COMMENT_MODE]},o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE]},r,I]}}return java_1=s,java_1}var javascript_1,hasRequiredJavascript;function requireJavascript(){if(hasRequiredJavascript)return javascript_1;hasRequiredJavascript=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],l=[].concat(s,r,i);function d(f){const m=f.regex,g=(Je,{after:dt})=>{const Yt="</"+Je[0].slice(1);return Je.input.indexOf(Yt,dt)!==-1},E=e,w={begin:"<>",end:"</>"},C=/<[A-Za-z0-9\\._:-]+\s*\/>/,I={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Je,dt)=>{const Yt=Je[0].length+Je.index,In=Je.input[Yt];if(In==="<"||In===","){dt.ignoreMatch();return}In===">"&&(g(Je,{after:Yt})||dt.ignoreMatch());let Gn;const Yn=Je.input.substring(Yt);if(Gn=Yn.match(/^\s*=/)){dt.ignoreMatch();return}if((Gn=Yn.match(/^\s+extends\s+/))&&Gn.index===0){dt.ignoreMatch();return}}},D={$pattern:e,keyword:t,literal:n,built_in:l,"variable.language":o},L="[0-9](_?[0-9])*",Y=`\\.(${L})`,G="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",z={className:"number",variants:[{begin:`(\\b(${G})((${Y})|\\.)?|(${Y}))[eE][+-]?(${L})\\b`},{begin:`\\b(${G})\\b((${Y})\\b|\\.)?|(${Y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},K={className:"subst",begin:"\\$\\{",end:"\\}",keywords:D,contains:[]},X={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,K],subLanguage:"xml"}},ye={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,K],subLanguage:"css"}},be={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[f.BACKSLASH_ESCAPE,K],subLanguage:"graphql"}},Ce={className:"string",begin:"`",end:"`",contains:[f.BACKSLASH_ESCAPE,K]},He={className:"comment",variants:[f.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:E+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),f.C_BLOCK_COMMENT_MODE,f.C_LINE_COMMENT_MODE]},Fe=[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,X,ye,be,Ce,{match:/\$\d+/},z];K.contains=Fe.concat({begin:/\{/,end:/\}/,keywords:D,contains:["self"].concat(Fe)});const Xe=[].concat(He,K.contains),Ee=Xe.concat([{begin:/(\s*)\(/,end:/\)/,keywords:D,contains:["self"].concat(Xe)}]),$e={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:D,contains:Ee},Ie={variants:[{match:[/class/,/\s+/,E,/\s+/,/extends/,/\s+/,m.concat(E,"(",m.concat(/\./,E),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,E],scope:{1:"keyword",3:"title.class"}}]},we={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...i]}},De={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},qe={variants:[{match:[/function/,/\s+/,E,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[$e],illegal:/%/},Ge={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Oe(Je){return m.concat("(?!",Je.join("|"),")")}const fe={match:m.concat(/\b/,Oe([...s,"super","import"].map(Je=>`${Je}\\s*\\(`)),E,m.lookahead(/\s*\(/)),className:"title.function",relevance:0},Te={begin:m.concat(/\./,m.lookahead(m.concat(E,/(?![0-9A-Za-z$_(])/))),end:E,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Re={match:[/get|set/,/\s+/,E,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},$e]},Ve="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+f.UNDERSCORE_IDENT_RE+")\\s*=>",je={match:[/const|var|let/,/\s+/,E,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(Ve)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[$e]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:D,exports:{PARAMS_CONTAINS:Ee,CLASS_REFERENCE:we},illegal:/#(?![$_A-z])/,contains:[f.SHEBANG({label:"shebang",binary:"node",relevance:5}),De,f.APOS_STRING_MODE,f.QUOTE_STRING_MODE,X,ye,be,Ce,He,{match:/\$\d+/},z,we,{className:"attr",begin:E+m.lookahead(":"),relevance:0},je,{begin:"("+f.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[He,f.REGEXP_MODE,{className:"function",begin:Ve,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:f.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:D,contains:Ee}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:w.begin,end:w.end},{match:C},{begin:I.begin,"on:begin":I.isTrulyOpeningTag,end:I.end}],subLanguage:"xml",contains:[{begin:I.begin,end:I.end,skip:!0,contains:["self"]}]}]},qe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+f.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[$e,f.inherit(f.TITLE_MODE,{begin:E,className:"title.function"})]},{match:/\.\.\./,relevance:0},Te,{match:"\\$"+E,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[$e]},fe,Ge,Ie,Re,{match:/\$[(.]/}]}}return javascript_1=d,javascript_1}var json_1,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json_1;hasRequiredJson=1;function e(t){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],s={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[n,r,t.QUOTE_STRING_MODE,s,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return json_1=e,json_1}var less_1,hasRequiredLess;function requireLess(){if(hasRequiredLess)return less_1;hasRequiredLess=1;const e=m=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:m.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[m.APOS_STRING_MODE,m.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:m.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),l=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse(),d=s.concat(o).sort().reverse();function f(m){const g=e(m),E=d,w="and or not only",C="[\\w-]+",I="("+C+"|@\\{"+C+"\\})",D=[],L=[],Y=function(Xe){return{className:"string",begin:"~?"+Xe+".*?"+Xe}},G=function(Xe,Ee,$e){return{className:Xe,begin:Ee,relevance:$e}},z={$pattern:/[a-z-]+/,keyword:w,attribute:i.join(" ")},K={begin:"\\(",end:"\\)",contains:L,keywords:z,relevance:0};L.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,Y("'"),Y('"'),g.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},g.HEXCOLOR,K,G("variable","@@?"+C,10),G("variable","@\\{"+C+"\\}"),G("built_in","~?`[^`]*?`"),{className:"attribute",begin:C+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},g.IMPORTANT,{beginKeywords:"and not"},g.FUNCTION_DISPATCH);const X=L.concat({begin:/\{/,end:/\}/,contains:D}),ye={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(L)},be={begin:I+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+l.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:L}}]},Ce={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:z,returnEnd:!0,contains:L,relevance:0}},Ne={className:"variable",variants:[{begin:"@"+C+"\\s*:",relevance:15},{begin:"@"+C}],starts:{end:"[;}]",returnEnd:!0,contains:X}},He={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:I,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,ye,G("keyword","all\\b"),G("variable","@\\{"+C+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},g.CSS_NUMBER_MODE,G("selector-tag",I,0),G("selector-id","#"+I),G("selector-class","\\."+I,0),G("selector-tag","&",0),g.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+s.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+o.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:X},{begin:"!important"},g.FUNCTION_DISPATCH]},Fe={begin:C+`:(:)?(${E.join("|")})`,returnBegin:!0,contains:[He]};return D.push(m.C_LINE_COMMENT_MODE,m.C_BLOCK_COMMENT_MODE,Ce,Ne,Fe,be,He,ye,g.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:D}}return less_1=f,less_1}var llvm_1,hasRequiredLlvm;function requireLlvm(){if(hasRequiredLlvm)return llvm_1;hasRequiredLlvm=1;function e(t){const n=t.regex,r=/([-a-zA-Z$._][\w$.-]*)/,i={className:"type",begin:/\bi\d+(?=\s|\b)/},s={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},l={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},d={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},f={className:"variable",variants:[{begin:n.concat(/%/,r)},{begin:/%\d+/},{begin:/#\d+/}]},m={className:"title",variants:[{begin:n.concat(/@/,r)},{begin:/@\d+/},{begin:n.concat(/!/,r)},{begin:n.concat(/!\d+/,r)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[i,t.COMMENT(/;\s*$/,null,{relevance:0}),t.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},m,o,s,f,d,l]}}return llvm_1=e,llvm_1}var lua_1,hasRequiredLua;function requireLua(){if(hasRequiredLua)return lua_1;hasRequiredLua=1;function e(t){const n="\\[=*\\[",r="\\]=*\\]",i={begin:n,end:r,contains:["self"]},s=[t.COMMENT("--(?!"+n+")","$"),t.COMMENT("--"+n,r,{contains:[i],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[i],relevance:5}])}}return lua_1=e,lua_1}var makefile_1,hasRequiredMakefile;function requireMakefile(){if(hasRequiredMakefile)return makefile_1;hasRequiredMakefile=1;function e(t){const n={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n]},s={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,n,r,i,s,o,l]}}return makefile_1=e,makefile_1}var nginx_1,hasRequiredNginx;function requireNginx(){if(hasRequiredNginx)return nginx_1;hasRequiredNginx=1;function e(t){const n=t.regex,r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:n.concat(/[$@]/,t.UNDERSCORE_IDENT_RE)}]},s={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[t.HASH_COMMENT_MODE,{className:"string",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[t.BACKSLASH_ESCAPE,r],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[t.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:s.contains,keywords:{section:"upstream location"}},{className:"section",begin:n.concat(t.UNDERSCORE_IDENT_RE+n.lookahead(/\s+\{/)),relevance:0},{begin:n.lookahead(t.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:t.UNDERSCORE_IDENT_RE,starts:s}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return nginx_1=e,nginx_1}var nodeRepl_1,hasRequiredNodeRepl;function requireNodeRepl(){if(hasRequiredNodeRepl)return nodeRepl_1;hasRequiredNodeRepl=1;function e(t){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return nodeRepl_1=e,nodeRepl_1}var objectivec_1,hasRequiredObjectivec;function requireObjectivec(){if(hasRequiredObjectivec)return objectivec_1;hasRequiredObjectivec=1;function e(t){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,d={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},f={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:d,illegal:"</",contains:[n,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+f.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:f,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return objectivec_1=e,objectivec_1}var pgsql_1,hasRequiredPgsql;function requirePgsql(){if(hasRequiredPgsql)return pgsql_1;hasRequiredPgsql=1;function e(t){const n=t.COMMENT("--","$"),r="[a-zA-Z_][a-zA-Z_0-9$]*",i="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",s="<<\\s*"+r+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",l="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",d="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",f="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",m=f.trim().split(" ").map(function(D){return D.split("|")[0]}).join("|"),g="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",E="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",w="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",I="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(D){return D.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+d+l,built_in:g+E+w},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:t.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+I+")\\s*\\("},{begin:"\\.("+m+")\\b"},{begin:"\\b("+m+")\\s+PATH\\b",keywords:{keyword:"PATH",type:f.replace("PATH ","")}},{className:"type",begin:"\\b("+m+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},t.END_SAME_AS_BEGIN({begin:i,end:i,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:s,relevance:10}]}}return pgsql_1=e,pgsql_1}var plaintext_1,hasRequiredPlaintext;function requirePlaintext(){if(hasRequiredPlaintext)return plaintext_1;hasRequiredPlaintext=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return plaintext_1=e,plaintext_1}var python_1,hasRequiredPython;function requirePython(){if(hasRequiredPython)return python_1;hasRequiredPython=1;function e(t){const n=t.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},m={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},g={begin:/\{\{/,relevance:0},E={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,f,g,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,f,g,m]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,g,m]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,g,m]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},w="[0-9](_?[0-9])*",C=`(\\b(${w}))?\\.(${w})|\\b(${w})\\.`,I=`\\b|${i.join("|")}`,D={className:"number",relevance:0,variants:[{begin:`(\\b(${w})|(${C}))[eE][+-]?(${w})[jJ]?(?=${I})`},{begin:`(${C})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${I})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${I})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${I})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${I})`},{begin:`\\b(${w})[jJ](?=${I})`}]},L={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},Y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",f,D,E,t.HASH_COMMENT_MODE]}]};return m.contains=[E,D,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[f,D,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},E,L,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[Y]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[D,Y,E]}]}}return python_1=e,python_1}var pythonRepl_1,hasRequiredPythonRepl;function requirePythonRepl(){if(hasRequiredPythonRepl)return pythonRepl_1;hasRequiredPythonRepl=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return pythonRepl_1=e,pythonRepl_1}var scss_1,hasRequiredScss;function requireScss(){if(hasRequiredScss)return scss_1;hasRequiredScss=1;const e=f=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:f.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[f.APOS_STRING_MODE,f.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:f.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],i=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),s=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),l=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function d(f){const m=e(f),g=o,E=s,w="@[a-z-]+",C="and or not only",D={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[f.C_LINE_COMMENT_MODE,f.C_BLOCK_COMMENT_MODE,m.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+E.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+g.join("|")+")"},D,{begin:/\(/,end:/\)/,contains:[m.CSS_NUMBER_MODE]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+l.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[m.BLOCK_COMMENT,D,m.HEXCOLOR,m.CSS_NUMBER_MODE,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,m.IMPORTANT,m.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:w,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:C,attribute:i.join(" ")},contains:[{begin:w,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},D,f.QUOTE_STRING_MODE,f.APOS_STRING_MODE,m.HEXCOLOR,m.CSS_NUMBER_MODE]},m.FUNCTION_DISPATCH]}}return scss_1=d,scss_1}var shell_1,hasRequiredShell;function requireShell(){if(hasRequiredShell)return shell_1;hasRequiredShell=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return shell_1=e,shell_1}var sql_1,hasRequiredSql;function requireSql(){if(hasRequiredSql)return sql_1;hasRequiredSql=1;function e(t){const n=t.regex,r=t.COMMENT("--","$"),i={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},s={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],l=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],m=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],g=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],E=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],w=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],C=g,I=[...m,...f].filter(z=>!g.includes(z)),D={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},L={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},Y={begin:n.concat(/\b/,n.either(...C),/\s*\(/),relevance:0,keywords:{built_in:C}};function G(z,{exceptions:K,when:X}={}){const ye=X;return K=K||[],z.map(be=>be.match(/\|\d+$/)||K.includes(be)?be:ye(be)?`${be}|0`:be)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:G(I,{when:z=>z.length<3}),literal:o,type:d,built_in:E},contains:[{begin:n.either(...w),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:I.concat(w),literal:o,type:d}},{className:"type",begin:n.either(...l)},Y,D,i,s,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,L]}}return sql_1=e,sql_1}var hljs=core;hljs.registerLanguage("apache",requireApache());hljs.registerLanguage("xml",requireXml());hljs.registerLanguage("bash",requireBash());hljs.registerLanguage("cmake",requireCmake());hljs.registerLanguage("css",requireCss());hljs.registerLanguage("markdown",requireMarkdown());hljs.registerLanguage("diff",requireDiff());hljs.registerLanguage("django",requireDjango());hljs.registerLanguage("dockerfile",requireDockerfile());hljs.registerLanguage("ruby",requireRuby());hljs.registerLanguage("excel",requireExcel());hljs.registerLanguage("gradle",requireGradle());hljs.registerLanguage("graphql",requireGraphql());hljs.registerLanguage("http",requireHttp());hljs.registerLanguage("java",requireJava());hljs.registerLanguage("javascript",requireJavascript());hljs.registerLanguage("json",requireJson());hljs.registerLanguage("less",requireLess());hljs.registerLanguage("llvm",requireLlvm());hljs.registerLanguage("lua",requireLua());hljs.registerLanguage("makefile",requireMakefile());hljs.registerLanguage("nginx",requireNginx());hljs.registerLanguage("node-repl",requireNodeRepl());hljs.registerLanguage("objectivec",requireObjectivec());hljs.registerLanguage("pgsql",requirePgsql());hljs.registerLanguage("plaintext",requirePlaintext());hljs.registerLanguage("python",requirePython());hljs.registerLanguage("python-repl",requirePythonRepl());hljs.registerLanguage("scss",requireScss());hljs.registerLanguage("shell",requireShell());hljs.registerLanguage("sql",requireSql());hljs.HighlightJS=hljs;hljs.default=hljs;var lib$1=hljs;const HighlightJS=getDefaultExportFromCjs$1(lib$1),applyCodeHighLight=e=>{setTimeout(()=>{document.querySelectorAll(`.${e} code`).forEach(t=>{t.classList.add("hljs")}),document.querySelectorAll(`.${e} code.hljs`).forEach(t=>{HighlightJS.highlightElement(t)})})},formatCodePython=e=>`
- <pre><code class="hljs language-python">
- ${e}</code></pre>`,formatCodeSql=e=>`
- <pre><code class="hljs language-sql">
- ${e}</code></pre>`,_hoisted_1$j={class:"knowledge-detail"},_hoisted_2$c={class:"knowledge-content"},_hoisted_3$9={key:0},_hoisted_4$7={class:"knowledge-footer"},_hoisted_5$3=["onClick"],_sfc_main$q={__name:"RefferenceFileNameContentLinks",props:{content_ltks:Array},emits:["showDocument"],setup(e,{emit:t}){const n=ref(0),r=o=>{n.value=o},i=t,s=o=>{i("showDocument",o)};return(o,l)=>(openBlock(),createElementBlock("div",_hoisted_1$j,[createBaseVNode("div",_hoisted_2$c,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(e.content_ltks,(d,f)=>(openBlock(),createElementBlock("div",{key:d},[n.value===f?(openBlock(),createElementBlock("div",_hoisted_3$9,toDisplayString(d),1)):createCommentVNode("",!0)]))),128))]),createBaseVNode("div",_hoisted_4$7,[createBaseVNode("p",null,toDisplayString(o.$t("conversation.fragments")),1),createBaseVNode("p",null,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(e.content_ltks,(d,f)=>(openBlock(),createElementBlock("span",{class:normalizeClass(["knowledge-page-item",{active:n.value===f}]),key:f,onClick:m=>r(f)},toDisplayString(f+1),11,_hoisted_5$3))),128))]),createBaseVNode("div",{class:"show-detail-btn",onClick:l[0]||(l[0]=d=>s(o.knowledge))},toDisplayString(o.$t("conversation.view_details"))+">",1)])]))}},RefferenceFileNameContentLinks=_export_sfc$1(_sfc_main$q,[["__scopeId","data-v-e8ab91fe"]]),_hoisted_1$i={class:"doc-ref-index"},_hoisted_2$b={class:"doc-ref-label"},_sfc_main$p={__name:"RefferenceFileNameItem",props:{knowledge:Object,knowledgeIndex:Number},emits:["showDocument"],setup(e,{emit:t}){const n=t,r=i=>{n("showDocument",i)};return(i,s)=>{const o=Popover;return openBlock(),createElementBlock("div",null,[createVNode(o,{title:e.knowledge.doc_name,position:"left","content-style":{width:"400px",maxWidth:"400px"}},{content:withCtx(()=>[createVNode(RefferenceFileNameContentLinks,{content_ltks:e.knowledge.content_ltks,page:e.knowledge.page,onShowDocument:s[1]||(s[1]=l=>r(e.knowledge.doc_name))},null,8,["content_ltks","page"])]),default:withCtx(()=>[createBaseVNode("div",{class:"doc-ref-container",onClick:s[0]||(s[0]=l=>r(e.knowledge.doc_name))},[createBaseVNode("span",_hoisted_1$i,toDisplayString(e.knowledgeIndex+1),1),createBaseVNode("span",_hoisted_2$b,toDisplayString(e.knowledge.doc_name),1)])]),_:1},8,["title"])])}}},RefferenceFileNameItem=_export_sfc$1(_sfc_main$p,[["__scopeId","data-v-d4890624"]]),_sfc_main$o={__name:"RefferenceFileNameList",props:{document_list:Array},emits:["showDocDetail"],setup(e,{emit:t}){const n=t,r=i=>{n("showDocDetail",i)};return onMounted(()=>{}),(i,s)=>(openBlock(!0),createElementBlock(Fragment$1,null,renderList(e.document_list,(o,l)=>(openBlock(),createBlock(RefferenceFileNameItem,{knowledge:o,key:l,knowledgeIndex:l,onShowDocument:d=>r(o)},null,8,["knowledge","knowledgeIndex","onShowDocument"]))),128))}},_imports_0$3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='13px'%20height='16px'%20viewBox='0%200%2013%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e编组备份%205%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='智能对话切图'%20transform='translate(-47,%20-481)'%3e%3crect%20fill='%23E6E6E6'%20x='0'%20y='0'%20width='428'%20height='564'%3e%3c/rect%3e%3cg%20id='编组备份-5'%20transform='translate(47,%20481)'%20fill-rule='nonzero'%3e%3cpath%20d='M8.72857143,0%20C8.8763349,0%209.01804637,0.0588038179%209.12253092,0.163475285%20L12.8368166,3.88440552%20C12.9413012,3.98907698%2013,4.13104196%2013,4.27906977%20L13,14.6976744%20C13,15.4169403%2012.4179815,16%2011.7,16%20L1.3,16%20C0.582027083,16%200,15.4169378%200,14.6976744%20L0,1.30232558%20C0,0.583070837%200.582029639,0%201.3,0%20L8.72857143,0%20Z'%20id='路径'%20fill='%23FFC34C'%3e%3c/path%3e%3cg%20id='w'%20transform='translate(2.05,%206.45)'%20fill='%23FFFFFF'%3e%3cpolygon%20id='路径'%20points='1.81%205.64%200%200%201.38%200%202.48%204.03%202.53%204.03%203.63%200%204.96%200%206.07%204.03%206.12%204.03%207.21%200%208.59%200%206.79%205.64%205.45%205.64%204.32%201.63%204.27%201.63%203.14%205.64'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_hoisted_1$h={class:"left"},_hoisted_2$a=["onClick"],_hoisted_3$8=["onClick"],_sfc_main$n={__name:"RefferenceDocDetail",props:{targetDocument:Object},emits:["back"],setup(e,{emit:t}){const n=e,r=z=>{if(!z)return"";const K=z.split("."),X=K.length,ye=K[X-1];return ye==="pdf"?"pdf":ye==="docx"||ye==="doc"?"doc":""},i=t,s=ref([]),o=ref(!1),l=ref([]),d=ref(null),f=ref(1100),m=ref(""),g=ref("");let E=ref(n.targetDocument.id),w=ref("");m.value=getDocumentUrl(n.targetDocument.id),g.value=r(n.targetDocument.doc_name);const C=ref(null),I=n.targetDocument;s.value=I.doc_aggs.map(z=>{var K;return{...z,fragments:I.chunks.filter(X=>X.document_name===z.doc_name),desc:(K=I.chunks.filter(X=>X.document_name===z.doc_name)[0])==null?void 0:K.content}});const D=()=>{i("back")},L=z=>{z.doc_id!==E.value&&(m.value=getDocumentUrl(z.doc_id),g.value=r(z.doc_name),E.value=z.doc_id,w.value="",G())},Y=z=>{w.value=z.id,z.document_id!==E.value&&(m.value=getDocumentUrl(z.document_id),g.value=r(z.document_name),E.value=z.document_id,G()),l.value=[...z.positions],g.value==="pdf"&&z.positions&&z.positions.length&&C.value.toPageIndex(l.value[0][0],l.value)},G=()=>{l.value=[],o.value=!1,setTimeout(()=>{o.value=!0})};return onMounted(()=>{f.value=d.value.getBoundingClientRect().width;const z=n.targetDocument,K=z.doc_id,X=z.doc_name;m.value=getDocumentUrl(K),g.value=r(X),o.value=!0}),(z,K)=>{const X=resolveComponent("icon-left");return openBlock(),createElementBlock("main",null,[createBaseVNode("div",_hoisted_1$h,[createBaseVNode("header",null,[createBaseVNode("div",{onClick:D},[createVNode(X,{style:{"margin-right":"5px"}}),createTextVNode(toDisplayString(z.$t("conversation.back")),1)])]),createBaseVNode("p",null,[createBaseVNode("span",null,toDisplayString(z.$t("conversation.related_docs")),1),createBaseVNode("span",null,toDisplayString(z.$t("conversation.doc_total",{total:s.value.length})),1)]),createBaseVNode("section",null,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(s.value,(ye,be)=>(openBlock(),createElementBlock("div",{class:normalizeClass([ye.doc_id===unref(E)?"activeBox":""]),key:be,onClick:Ce=>L(ye)},[K[1]||(K[1]=createBaseVNode("div",null,[createBaseVNode("img",{src:_imports_0$3})],-1)),createBaseVNode("div",null,[createBaseVNode("p",null,toDisplayString(ye.doc_name),1),createBaseVNode("p",null,toDisplayString(ye.desc),1),createBaseVNode("span",null,[createBaseVNode("b",null,toDisplayString(z.$t("conversation.fragments")),1),K[0]||(K[0]=createBaseVNode("em",null,null,-1))]),(openBlock(!0),createElementBlock(Fragment$1,null,renderList(ye.fragments,(Ce,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass([Ce.chunk_id===unref(w)?"activeLink":""]),key:Ne,onClick:withModifiers(He=>Y(Ce),["stop"])},[createBaseVNode("span",null,toDisplayString(Ne+1)+".",1),createTextVNode(" "+toDisplayString(Ce.content),1)],10,_hoisted_3$8))),128))])],10,_hoisted_2$a))),128))])]),createBaseVNode("div",{class:"right",ref_key:"pdfFather",ref:d},[o.value?(openBlock(),createElementBlock(Fragment$1,{key:0},[g.value==="pdf"?(openBlock(),createBlock(ViewerPDFFromUrl,{key:0,ref_key:"pdfViewer",ref:C,class:"pdf-viewer",url:m.value,doc_width:f.value,positions:l.value},null,8,["url","doc_width","positions"])):createCommentVNode("",!0),g.value==="doc"?(openBlock(),createBlock(ViewerDocxFromUrl,{key:1,ref_key:"pdfViewer",ref:C,class:"pdf-viewer",url:m.value,doc_width:f.value,positions:l.value},null,8,["url","doc_width","positions"])):createCommentVNode("",!0)],64)):createCommentVNode("",!0)],512)])}}},RefferenceDocDetail=_export_sfc$1(_sfc_main$n,[["__scopeId","data-v-4e976961"]]),_hoisted_1$g={class:"client-formated-markdown-element-item client-formated-markdown-refference-header"},_sfc_main$m={__name:"RefferenceFileBlocks",props:{doc_aggs:Array,chunks:Array},setup(e){const t=e,n=ref(!1),r=ref("right"),i=computed(()=>{const E=t.doc_aggs,w=t.chunks,C=[];if(Array.isArray(E)){const I=E.length;for(let D=0;D<I&&!(D>=3);D++){const L=E[D],Y={doc_id:L.doc_id,doc_name:L.doc_name,count:L.count,page:D},G=L.doc_id,z=[];w&&Array.isArray(w)&&w.forEach((K,X)=>{const ye=K.document_id;G===ye&&z.push(K.content)}),Y.content_ltks=z,C.push(Y)}}return C}),s=ref({doc_aggs:t.doc_aggs,chunks:t.chunks}),o=()=>{n.value=!0},l=()=>{n.value=!1},d=()=>{n.value=!1},f=E=>{const w=s.value,C={doc_aggs:w.doc_aggs,chunks:w.chunks,doc_id:E.doc_id,doc_name:E.doc_name,count:E.count,content_ltks:E.content_ltks};s.value=C,o()},m=()=>{const E=i.value[0],w=s.value,C={doc_aggs:w.doc_aggs,chunks:w.chunks,doc_id:E.doc_id,doc_name:E.doc_name,count:E.count,content_ltks:E.content_ltks};s.value=C,o()},g=()=>{d()};return(E,w)=>{const C=resolveComponent("icon-double-right"),I=Drawer;return openBlock(),createElementBlock("div",null,[createBaseVNode("header",_hoisted_1$g,[createBaseVNode("div",null,toDisplayString(E.$t("conversation.source")),1),createBaseVNode("div",{class:"btn-show-related-all",onClick:m},[createTextVNode(toDisplayString(E.$t("conversation.view_links"))+" ",1),createVNode(C)])]),createVNode(_sfc_main$o,{document_list:i.value,onShowDocDetail:f},null,8,["document_list"]),createVNode(I,{width:"90%",height:340,visible:n.value,placement:r.value,"data-flag":"reffernce-file-block-drawer","ok-text":E.$t("conversation.btn_ok"),"cancel-text":E.$t("conversation.btn_cancel"),onOk:l,onCancel:d,unmountOnClose:""},{title:withCtx(()=>[createTextVNode(toDisplayString(E.$t("conversation.doc_details")),1)]),default:withCtx(()=>[createBaseVNode("div",null,[createVNode(RefferenceDocDetail,{targetDocument:s.value,onBack:g},null,8,["targetDocument"])])]),_:1},8,["visible","placement","ok-text","cancel-text"])])}}},RefferenceFileBlocks=_export_sfc$1(_sfc_main$m,[["__scopeId","data-v-d5a5d229"]]);var clipboard={exports:{}};/*!
- * clipboard.js v2.0.11
- * https://clipboardjs.com/
- *
- * Licensed MIT © Zeno Rocha
- */(function(e,t){(function(r,i){e.exports=i()})(commonjsGlobal,function(){return function(){var n={686:function(s,o,l){l.d(o,{default:function(){return Oe}});var d=l(279),f=l.n(d),m=l(370),g=l.n(m),E=l(817),w=l.n(E);function C(fe){try{return document.execCommand(fe)}catch{return!1}}var I=function(Te){var Re=w()(Te);return C("cut"),Re},D=I;function L(fe){var Te=document.documentElement.getAttribute("dir")==="rtl",Re=document.createElement("textarea");Re.style.fontSize="12pt",Re.style.border="0",Re.style.padding="0",Re.style.margin="0",Re.style.position="absolute",Re.style[Te?"right":"left"]="-9999px";var Ve=window.pageYOffset||document.documentElement.scrollTop;return Re.style.top="".concat(Ve,"px"),Re.setAttribute("readonly",""),Re.value=fe,Re}var Y=function(Te,Re){var Ve=L(Te);Re.container.appendChild(Ve);var je=w()(Ve);return C("copy"),Ve.remove(),je},G=function(Te){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ve="";return typeof Te=="string"?Ve=Y(Te,Re):Te instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Te==null?void 0:Te.type)?Ve=Y(Te.value,Re):(Ve=w()(Te),C("copy")),Ve},z=G;function K(fe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?K=function(Re){return typeof Re}:K=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},K(fe)}var X=function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Re=Te.action,Ve=Re===void 0?"copy":Re,je=Te.container,Je=Te.target,dt=Te.text;if(Ve!=="copy"&&Ve!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Je!==void 0)if(Je&&K(Je)==="object"&&Je.nodeType===1){if(Ve==="copy"&&Je.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ve==="cut"&&(Je.hasAttribute("readonly")||Je.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(dt)return z(dt,{container:je});if(Je)return Ve==="cut"?D(Je):z(Je,{container:je})},ye=X;function be(fe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?be=function(Re){return typeof Re}:be=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},be(fe)}function Ce(fe,Te){if(!(fe instanceof Te))throw new TypeError("Cannot call a class as a function")}function Ne(fe,Te){for(var Re=0;Re<Te.length;Re++){var Ve=Te[Re];Ve.enumerable=Ve.enumerable||!1,Ve.configurable=!0,"value"in Ve&&(Ve.writable=!0),Object.defineProperty(fe,Ve.key,Ve)}}function He(fe,Te,Re){return Te&&Ne(fe.prototype,Te),Re&&Ne(fe,Re),fe}function Fe(fe,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(Te&&Te.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),Te&&Xe(fe,Te)}function Xe(fe,Te){return Xe=Object.setPrototypeOf||function(Ve,je){return Ve.__proto__=je,Ve},Xe(fe,Te)}function Ee(fe){var Te=we();return function(){var Ve=De(fe),je;if(Te){var Je=De(this).constructor;je=Reflect.construct(Ve,arguments,Je)}else je=Ve.apply(this,arguments);return $e(this,je)}}function $e(fe,Te){return Te&&(be(Te)==="object"||typeof Te=="function")?Te:Ie(fe)}function Ie(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function we(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function De(fe){return De=Object.setPrototypeOf?Object.getPrototypeOf:function(Re){return Re.__proto__||Object.getPrototypeOf(Re)},De(fe)}function qe(fe,Te){var Re="data-clipboard-".concat(fe);if(Te.hasAttribute(Re))return Te.getAttribute(Re)}var Ge=function(fe){Fe(Re,fe);var Te=Ee(Re);function Re(Ve,je){var Je;return Ce(this,Re),Je=Te.call(this),Je.resolveOptions(je),Je.listenClick(Ve),Je}return He(Re,[{key:"resolveOptions",value:function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof je.action=="function"?je.action:this.defaultAction,this.target=typeof je.target=="function"?je.target:this.defaultTarget,this.text=typeof je.text=="function"?je.text:this.defaultText,this.container=be(je.container)==="object"?je.container:document.body}},{key:"listenClick",value:function(je){var Je=this;this.listener=g()(je,"click",function(dt){return Je.onClick(dt)})}},{key:"onClick",value:function(je){var Je=je.delegateTarget||je.currentTarget,dt=this.action(Je)||"copy",Yt=ye({action:dt,container:this.container,target:this.target(Je),text:this.text(Je)});this.emit(Yt?"success":"error",{action:dt,text:Yt,trigger:Je,clearSelection:function(){Je&&Je.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(je){return qe("action",je)}},{key:"defaultTarget",value:function(je){var Je=qe("target",je);if(Je)return document.querySelector(Je)}},{key:"defaultText",value:function(je){return qe("text",je)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(je){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return z(je,Je)}},{key:"cut",value:function(je){return D(je)}},{key:"isSupported",value:function(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Je=typeof je=="string"?[je]:je,dt=!!document.queryCommandSupported;return Je.forEach(function(Yt){dt=dt&&!!document.queryCommandSupported(Yt)}),dt}}]),Re}(f()),Oe=Ge},828:function(s){var o=9;if(typeof Element<"u"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function d(f,m){for(;f&&f.nodeType!==o;){if(typeof f.matches=="function"&&f.matches(m))return f;f=f.parentNode}}s.exports=d},438:function(s,o,l){var d=l(828);function f(E,w,C,I,D){var L=g.apply(this,arguments);return E.addEventListener(C,L,D),{destroy:function(){E.removeEventListener(C,L,D)}}}function m(E,w,C,I,D){return typeof E.addEventListener=="function"?f.apply(null,arguments):typeof C=="function"?f.bind(null,document).apply(null,arguments):(typeof E=="string"&&(E=document.querySelectorAll(E)),Array.prototype.map.call(E,function(L){return f(L,w,C,I,D)}))}function g(E,w,C,I){return function(D){D.delegateTarget=d(D.target,w),D.delegateTarget&&I.call(E,D)}}s.exports=m},879:function(s,o){o.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},o.nodeList=function(l){var d=Object.prototype.toString.call(l);return l!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in l&&(l.length===0||o.node(l[0]))},o.string=function(l){return typeof l=="string"||l instanceof String},o.fn=function(l){var d=Object.prototype.toString.call(l);return d==="[object Function]"}},370:function(s,o,l){var d=l(879),f=l(438);function m(C,I,D){if(!C&&!I&&!D)throw new Error("Missing required arguments");if(!d.string(I))throw new TypeError("Second argument must be a String");if(!d.fn(D))throw new TypeError("Third argument must be a Function");if(d.node(C))return g(C,I,D);if(d.nodeList(C))return E(C,I,D);if(d.string(C))return w(C,I,D);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function g(C,I,D){return C.addEventListener(I,D),{destroy:function(){C.removeEventListener(I,D)}}}function E(C,I,D){return Array.prototype.forEach.call(C,function(L){L.addEventListener(I,D)}),{destroy:function(){Array.prototype.forEach.call(C,function(L){L.removeEventListener(I,D)})}}}function w(C,I,D){return f(document.body,C,I,D)}s.exports=m},817:function(s){function o(l){var d;if(l.nodeName==="SELECT")l.focus(),d=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var f=l.hasAttribute("readonly");f||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),f||l.removeAttribute("readonly"),d=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var m=window.getSelection(),g=document.createRange();g.selectNodeContents(l),m.removeAllRanges(),m.addRange(g),d=m.toString()}return d}s.exports=o},279:function(s){function o(){}o.prototype={on:function(l,d,f){var m=this.e||(this.e={});return(m[l]||(m[l]=[])).push({fn:d,ctx:f}),this},once:function(l,d,f){var m=this;function g(){m.off(l,g),d.apply(f,arguments)}return g._=d,this.on(l,g,f)},emit:function(l){var d=[].slice.call(arguments,1),f=((this.e||(this.e={}))[l]||[]).slice(),m=0,g=f.length;for(m;m<g;m++)f[m].fn.apply(f[m].ctx,d);return this},off:function(l,d){var f=this.e||(this.e={}),m=f[l],g=[];if(m&&d)for(var E=0,w=m.length;E<w;E++)m[E].fn!==d&&m[E].fn._!==d&&g.push(m[E]);return g.length?f[l]=g:delete f[l],this}},s.exports=o,s.exports.TinyEmitter=o}},r={};function i(s){if(r[s])return r[s].exports;var o=r[s]={exports:{}};return n[s](o,o.exports,i),o.exports}return function(){i.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(o,{a:o}),o}}(),function(){i.d=function(s,o){for(var l in o)i.o(o,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:o[l]})}}(),function(){i.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)}}(),i(686)}().default})})(clipboard);var clipboardExports=clipboard.exports;const Clipboard=getDefaultExportFromCjs$1(clipboardExports);function copyText(e){Clipboard.copy(e)}const chat_agent_icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAq3SURBVHgB7RpdaJxZ9dxvZpLJXzOpDTVrNVNblt0q7pS+iZLpkyIsmyqF3YWlUxVZF7VZWFGpkom4iKi0obr0wSXJSy0UMfgg+JRZEB98MKkPVXTXTGVhl1bp1KbtZOa793jO/fm+O2l3235fmix0Tntzv59zf87/uecbgC50oQtd6EIXHlkQsA3w6q9xGgGrZnWBAmHm5HNiBrYBsrANEIahgCAAIZgDxArEbREEw7YwQEKAAdGtlGLCSQHo/zbBtjCACVee+SklHy0NCEMFIiCpk+iZDcyN7YLt0QA2fOnZPW4fB7ZE9abmsBC0blfI803QiiV6NC607VsVMFu5RvcXUeKCyOWXfv5VcRm2AB4qA6bO3ChDNjtNq0wETDBuWBldTxc6IkRPGGpkKdUzL/W9AQ8RHgoDpk5dK2Jvfo7CW5np0nQb0jjmkdCt8EET3vlMOEzzjl4ttFvNmbMvj9ThIcCmM+DrZ25OBoBzdFlwS9hob+4E0+YI37i+pl3/cQpi8eqI6oevfWtwHjYZNpUBL565OS2UqvoS5hgvwEobfDWP79GYgSVaY1N2aIYRFvKt1YaZsycGNjVj3DQGfO3UjWkiohrP7KbGzqV8e+/IADWZ6GG6S2ci+gHFi+qvXh7aNCZsCgO+8rP/TdI+f+s/I3lq6rS3v6v3A6Pe4BS/kxnaC8TMMu8tPg04/vorOxZgEyA1Ayo/vlaETLBEuyr60wpr9cJQwokPeIyo0+M6ITSoL1DPY4veKKP5YASvbxA19fbF9VbQWzr3St9lSAmpEyEJMA1SFY2ojeSdhLVS22uUcI0c4Gyg1ML89+706MxIaU6IE8SoIkQeAJwf1dZjNWI4o5rz1B+GlJBKA55/9QolNdnlyNpZ7Z29avUFG+lETal85dz37y2xZ4kRWcRTNHzSuEoTJoWbU+/aaBOdIQ6f/8FoDVJAKg1QmDkBnn2zxKXVUhE/nD9/cufx+53zvNGOI8/96L+nlIIpYeeSvBBdGV/hMkgxTX9qkAISa8Cz1XeKUuRWITrKumTGc+QItQvVXXeo6WR1tZCBoXJGwbAM4LqE9spiday+Ee/ozH+WaI4y6IOTEsLmR1E0pSXbkBlZrI40ICEk1oCWzJQN7cZ7xxqKVlsFqqDdIfnJqdVCsGPwBBnKFFFUCMGwL8AsfHH66ml1fW1m8fTeiJg2to/Tu2UhsYDO/0McLZjfgQordHkaEkIACYEOtM9IxUUNskXanZTcKyHphq+llAsbpYqD/Uv0uhoqVZAh4dlxPA/dn8CB/iVmksPn8TT9bCjNGjy/7hWPUdT4UKkmIAUkZ4BSRS5sMMEhE6M0McwQfgbtVnvWx3/65BW26RITjIYgoaQhQhdIWGWQ3vcNTHcs1ArnlbKM0k1p4um/XU+fLhNDYh/whe+862JdnN1FvWj8/ie7RxwuS7WV77sWHQiMY6uhCGpk1RUT9lymCI1b67f31jxToLVW6XURXVjcUEIj/J0+/oNAIh/w+e+SA5SuiBE5QYjtE1d8/LVstpRRevMumq3+4adjzjnOfO7b71Aipcp6NiEKPT09fL3oxpOW1Kkbj86KwLXEwEZdgP6B3mF6uHUMgCZtIRM5JP9gAwh4R4FTKFFUGGW2jP+G/56YWSPCy2BnIM0udLxX2BCOuSYnpGmkcGu2m5AYEvmAptkUbRyM7bM9sl0aByWIoA4CkCQojZ1DaPxEqew5OzLtipnH+RHV6BxPTtOtFTlBt3a6clrCMNikjebMZZwGoFZNo+NFHzuEcAVltkEIw4xIWybHlVv+7DffrgUBlhSn0jEIEchax3hF9k91Q6cC3oL6WbsFiSFZFGiCDV8UBdijGw0QbObWsxc+843VskNnB0XvZ7W315JjpWCisRKG8JSRJlipqlnfoX36pbcpcnDEMdEllrxeFxVCKkhuAibm642ENpxxOAztM8TgGX/MH38xXiUGrFi11YzjcTq263Cqry8S3lTnauoEm4UNsWasY6KeJ50JJM8DpLFFJeMYrSKNoDwgxErpxdWiP+ZPrxUPEgNmyJ4boRtvGNcgamZ6cqojbebxhF/ROYPVECW5GaaF1i+kgcSpMNklRt822S1HKbBFoHM+5fpzsOHI+uez4zPkAGfX1qBEHqMYZKA+2A8rd4vjWQlz5hDE06M9bUdlUwBbQ8pkIDEkSoRKldWiyMC/zB1G8c+d23Xhk12+dok4/5fX9933aTBa48tvzdHwY/oACO5kLTrOAo4AzOeLy7987DIkgMQawCpoCxRa+rbOy/LCODvUqJVPVd4qtaB15O/zT9bvNe8Tlb8VeyFHJXUoK5052OxJA8YpIEYVZMikyAMSMaBJ/7Iq5wr+ru7tMiPaFYesIKoMEU9KWcitfuLYm/Ottpr957nHVzbO+cQLqxNZQdkg1QBCwGEB9vgPOg/QOHcps+okrJ3CBBJrgFQY7ySufgtX1+f0LyqAK2OsdHssG0DlwAtvNki6K9Z2KCEKxgHDEU5yTJpnq0pRth2tA95V/LkhTK4CiQ9Djz//D4SNJe9YCXxUhI4H/q0jeON+0ENz1Q/o1DjveevWzZ31xYNbeBYAnfDUSOwTpkrFovIdVMQY47h1Dc8jSReOouqvrXSZIyJ6ti1i8xIYf2ADtwZPzJqUlHiGFGGQvuICTMT6r/QvPexhJ5KW8dymnBUL0uKhcrVkEzqUO06r+PuYsl8NwPlbuwHraKkmlLga5KZJDONfurRMGepTvpTt9xBw30P4p0CGH/Gp+Q4jsbjueCusiuv5IpXvBGs6l//9myf3QgpIVRVel+JIRuCS/ijiiqFWEZw5qDAqE8dkoNdH7sAGEGaCsqJ2zFTQyTEz7nJOicOQElJpAMOHJ5eLAnuICfrrjvkK5KWEcfISfTCJiqaOEuMDIp/g+0SdTEWaAJECXcQgc+TdxXvnFfeC1AxwMPr0XysBBseIrnLsAlx26PswEam6Wz3O8jSONQDDDOscnd+vqUDMX/3dJxdgk2DTGOBDgbTivpFbvQg96+KO6w3QWDxYhy50oQtd6MIHHBDNr79dAxNpdOP7arUauGswJbmO5sZ4Y8G//kCBt7Hg6NGjfCrPHDp0iOvluu3fv7+X+jy1Pmr91AZGR0cHqee2Y2RkhL/ocNuxa9euIeqHxsbGNJ4dw2N5jh47J2euGdsC8BgLWwWeFINyucwbyh44cKDHblYTyIQVCIaGhj5Ez0YHBgZ29/f3j9H1R6h9FPgzF8De3t7efdTvo/7j+Xyec/qPUdtDuI9Rv5vH0hy7qB/hOZlJzKBisagZY5md9ZjxwJBkkOY6ER9cuXIluHTpEi/uSySgTWdv3LgRECGZW7duZYg4p97B+vq6w9WNvgNyz1mgarVaknpJDFF80m02myHNwdeS79fW1iTxVTUaDY3HY4j5ivYgSSjIDTqOzPeGxMWkSqUCFy5cAGKEqtfr/Cgq0BMhfE21yrwiApkAPi5KIkhavKgnCKm1c7lcK5vNtsMwbBEDwtu3b7fpfdhut5kJITGUf0/Bc4R2rF7j6tWrVEhCdfiwPhc9EPGpwTkyZ/+2sUrmrHpqH7Bnzx625z7Pvtned4Cx/2F7zc8GIbb/Pqfq0OkDfD+Q2vYftvMQ7/M8rpDE8F4S3FrJdqELjw78H6N7f2tN0pZhAAAAAElFTkSuQmCC",_hoisted_1$f={class:"dialog-main answer-main"},_hoisted_2$9={class:"dialog-icon answer-icon"},_hoisted_3$7=["src"],_hoisted_4$6={class:"dialog-content answer-content"},_sfc_main$l={__name:"DialogAnswer",props:{show_select:!0,answer:Object,width:Number,answer_action_list:Array},emits:["stop","retry","select","edit","toSearchPage","download"],setup(e,{emit:t}){const n=e,r=t,i=computed(()=>n.show_select===!0),s=computed(()=>n.answer.client_custom_chat_status),o=computed(()=>s.value===0),l=computed(()=>n.width-40-40-20),d=computed(()=>n.answer.client_custom_running_msg||""),f=computed(()=>{const Ce=n.answer,Ne=Ce.content;let He=formatAnwserString(Ne);Ce.client_custom_attached_html_before_render&&(He=He+Ce.client_custom_attached_html_before_render);const Fe=`<div class="answer-system-message-content-container">${d.value} <span class="answer-system-message-content-loader"></span></div>`;return d.value?`${He}${Fe}`:He}),m=computed(()=>n.answer.client_custom_item_internet),g=computed(()=>n.answer.client_custom_item_internet_list),E=computed(()=>n.answer.client_custom_item_think),w=computed(()=>{const Ne=n.answer.deep_answer;return formatAnwserString(Ne)}),C=computed(()=>n.answer.client_custom_chat_deep_loading),I=computed(()=>`klass-${n.answer.client_custom_unique_id}-answer-content`),D=computed(()=>{if(!n.answer)return null;const Ce=n.answer;if(!Ce.client_custom_linked_refference_full_content||Object.keys(Ce.client_custom_linked_refference_full_content).length===0)return null;for(let Ne in Ce.client_custom_linked_refference_full_content)if(Ce.client_custom_linked_refference_full_content[Ne].length===-0)return null;return Ce.client_custom_linked_refference_full_content}),L=computed(()=>!!D.value),Y=()=>{r("select")},G=()=>{copyText(f.value),Message.success("已复制")},z=()=>{},K=()=>{r("retry")},X=()=>{r("edit")},ye=()=>{r("download")},be=()=>{r("toSearchPage")};return watch(()=>s.value,()=>{const Ce=I.value,Ne=n.answer,He=Ne.client_custom_linked_refference_full_content,Fe=Ne.client_custom_linked_download_files,Xe=Ne.client_custom_linked_download_files_List||[];if(console.log(s.value),s.value===0||s.value===1){console.log(1111);return}else console.log(2222);applyRefferencePopover4RefFlag(Ce,He),Fe&&applyRefferencePopover4DownloadFile(Ce,[Fe,...Xe]),applyCodeHighLight(Ce)}),(Ce,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["dialog-item dialog-anwser",I.value])},[i.value?(openBlock(),createBlock(BtnSelectItem,{key:0,onChange:Y})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_1$f,[createBaseVNode("div",_hoisted_2$9,[createBaseVNode("img",{src:unref(chat_agent_icon)},null,8,_hoisted_3$7)]),createBaseVNode("div",_hoisted_4$6,[createBaseVNode("div",null,[createVNode(DialogContent,{content:f.value,is_loading:o.value,max_width:l.value,is_internet_search:m.value,internet_search:g.value,is_think:E.value,deep_answer:w.value,deep_loading:C.value,onToSearchPage:be},{default:withCtx(()=>[s.value===2?(openBlock(),createBlock(DialogActions,{key:0,class:"answer-actions-btns",action_list:e.answer_action_list,onCopy:G,onShare:z,onRetry:K,onEdit:X,onDownload:ye},null,8,["action_list"])):createCommentVNode("",!0)]),_:1},8,["content","is_loading","max_width","is_internet_search","internet_search","is_think","deep_answer","deep_loading"]),L.value&&s.value===2?(openBlock(),createBlock(RefferenceFileBlocks,{key:0,class:"refference-files-blocks-container",doc_aggs:D.value.doc_aggs,chunks:D.value.chunks,total:D.value.total},null,8,["doc_aggs","chunks","total"])):createCommentVNode("",!0)])])])],2))}},DialogAnswer=_export_sfc$1(_sfc_main$l,[["__scopeId","data-v-28e7dd6a"]]),_hoisted_1$e={class:"dialog-item-container"},_sfc_main$k={__name:"DialogItem",props:{dialog:Object,width:Number,answer_action_list:Array},emits:["stop","retry","select","edit","download"],setup(e,{emit:t}){const n=e,r=t,i=computed(()=>n.dialog.client_custom_item_type),s=computed(()=>({content:n.dialog.question,client_custom_icon:n.dialog.client_custom_icon,client_custom_upload_file_list:n.dialog.client_custom_upload_file_list,client_custom_unique_id:n.dialog.client_custom_unique_id})),o=computed(()=>{const w=n.dialog,C={client_custom_unique_id:w.client_custom_unique_id};return w.answer&&(C.content=w.answer),C.client_custom_chat_status=w.client_custom_chat_status,C.client_custom_icon=w.client_custom_icon,C.client_custom_linked_image=w.client_custom_linked_image||"",C.client_custom_linked_download_files=w.client_custom_linked_download_files||"",C.client_custom_linked_download_files_List=w.client_custom_linked_download_files_List||[],C.client_custom_linked_refference_full_content=w.client_custom_linked_refference_full_content,C.client_custom_attached_html_before_render=w.client_custom_attached_html_before_render,C.client_custom_running_msg=w.client_custom_running_msg||"",C.client_custom_item_internet=w.client_custom_item_internet||!1,C.client_custom_item_internet_list=w.client_custom_item_internet_list||[],C.client_custom_item_think=w.client_custom_item_think||!1,C.client_custom_chat_message_id=w.client_custom_chat_message_id||"",C.deep_answer=w.deep_answer||"",C.client_custom_chat_deep_loading=w.client_custom_chat_deep_loading||!1,C}),l=()=>{r("toSearchPage")},d=()=>{r("stop")},f=()=>{r("retry")},m=()=>{r("edit")},g=()=>{r("download")},E=()=>{r("select")};return(w,C)=>(openBlock(),createElementBlock("div",_hoisted_1$e,[i.value==="q"?(openBlock(),createBlock(DialogQuestion,{key:0,question:s.value,onSelect:E},null,8,["question"])):createCommentVNode("",!0),i.value==="a"?(openBlock(),createBlock(DialogAnswer,{key:1,answer:o.value,width:e.width,answer_action_list:e.answer_action_list,onStop:d,onRetry:f,onSelect:E,onEdit:m,onDownload:g,onToSearchPage:l},null,8,["answer","width","answer_action_list"])):createCommentVNode("",!0)]))}},DialogItem=_export_sfc$1(_sfc_main$k,[["__scopeId","data-v-31c4992a"]]),_hoisted_1$d={class:"dialog-suggestion"},_sfc_main$j={__name:"DialogSuggestion",props:{suggestion:Object},setup(e){return(t,n)=>(openBlock(),createElementBlock("div",_hoisted_1$d,n[0]||(n[0]=[createBaseVNode("div",null,"对话推荐项,当一轮对话结束后,可能有其他推荐的内容项目,在对话结束处进行展示。",-1)])))}},DialogSuggestion=_export_sfc$1(_sfc_main$j,[["__scopeId","data-v-1733cdf1"]]);function useScrollBottom(e){const{proxy:t}=getCurrentInstance();return n=>{t.$refs[e].scrollTop(n)}}const uploadFilesV2=(e,t,n)=>ajax.post(`/api/v1/${e}/upload?chat_id=${t}`,n,{headers:{"Content-Type":"multipart/form-data"}}),uploadFilesV3=(e,t)=>ajax.post(`/api/v1/complex/upload/${Number(e)}`,t,{headers:{"Content-Type":"multipart/form-data"}}),uploadCombineExcelFiles=e=>ajax.post("/api/document/excel/upload",e,{headers:{"Content-Type":"multipart/form-data"}}),files2Formdata=(e,t)=>{const n=new FormData;return e.forEach(r=>{n.append(t,r)}),n},uploadFileByAgentInfo=async(e,t,n,r)=>{let i=null;if(r===1){const s=files2Formdata(n,"files"),o=await uploadCombineExcelFiles(s);if(o.code/1===200){const l=o.data;return l.files?i=l.files:Array.isArray(l)?i=l:i=[l],{code:200,data:null}}else return o}else{const s=files2Formdata(n,"file"),o=await uploadFilesV2(e,t,s);if(o.code/1===200){const l=o.data;return l.files?i=l.files:Array.isArray(l)?i=l:i=[l],{code:200,data:i}}else return o}},uploadNewChatInfo=async(e,t)=>{const n=files2Formdata(t,"file"),r=await uploadFilesV3(e,n);return r.id?{code:200,data:r.data}:r},getDialogChatId=e=>ajax.get(`/api/agent/get-chat-id/${e}`),getHistoryLogs=e=>new Promise((t,n)=>{ajax.get(`/api/v1/chat/session_log?sessionId=${e}`).then(r=>{t({code:200,data:r})}).catch(r=>{n(r)})}),getMindMapData=({messageId:e,query:t})=>new Promise((n,r)=>{ajax.post("/api/mindmap/create",{messageId:e,query:t}).then(i=>{n({code:200,data:i.data})}).catch(i=>{r(i)})}),downloadFileOfChatItem=e=>new Promise((t,n)=>{ajax.get(`/api/files/message/${e}/download`,{responseType:"blob"}).then(r=>{t({code:200,data:r})}).catch(r=>{n(r)})}),_hoisted_1$c={class:"dialog-list dialog-markdown-container"},_sfc_main$i={__name:"DialogList",props:{height:Number,width:Number,agent_id:String,list:Array,suggestion:Array,answer_action_list:Array,is_show_right_page:Boolean},emits:["edit"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=useScrollBottom("scroll_container"),o=computed(()=>({height:r.height+"px",overflow:"auto",display:"flex"})),l=E=>{},d=E=>{i("edit",E)},f=async E=>{if(E.client_custom_chat_message_id){const w=await downloadFileOfChatItem(E.client_custom_chat_message_id),C=URL.createObjectURL(w.data);window.open(C,"_blank")}else Message.error("该数据咱不支持下载")},m=async E=>{i("retry",E)},g=E=>{i("toSearchPage",E)};return t({scroll2Bottom:()=>{s(1e6)}}),(E,w)=>{const C=Scrollbar;return openBlock(),createBlock(C,{type:"track",style:normalizeStyle(o.value),ref:"scroll_container","data-flat":"list-container",class:normalizeClass(e.is_show_right_page?"scrollbar_klass":"")},{default:withCtx(()=>[renderSlot(E.$slots,"left",{},void 0,!0),createBaseVNode("div",_hoisted_1$c,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(e.list,(I,D)=>(openBlock(),createBlock(DialogItem,{dialog:I,index:D,width:e.width,key:I.client_custom_unique_id,answer_action_list:e.answer_action_list,onSelect:L=>l(I),onEdit:L=>d(I),onDownload:L=>f(I),onToSearchPage:L=>g(I),onRetry:L=>m(I)},null,8,["dialog","index","width","answer_action_list","onSelect","onEdit","onDownload","onToSearchPage","onRetry"]))),128)),e.suggestion.length!==0?(openBlock(),createBlock(DialogSuggestion,{key:0,suggestion:e.suggestion},null,8,["suggestion"])):createCommentVNode("",!0)]),renderSlot(E.$slots,"right",{},void 0,!0)]),_:3},8,["style","class"])}}},DialogList=_export_sfc$1(_sfc_main$i,[["__scopeId","data-v-4c9c19ad"]]),_imports_0$2="/assets/internet-I7brZe_E.png",_imports_1="/assets/internet-active-C3RMTTjB.png",_imports_2="/assets/internet-disable-f5lFnuiN.png",_imports_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJ5SURBVHgB7ZjNUeswEMfXSQrg3XLMq+BlktyfqYChAkwFQAUhHUAFcSoIHWDuScYd4GNupIB88F8jMUYjK7KsMAPj/0zGsb78s3a11oqo0S9Xmzyq3++H3W6X1uv1hjwpIA9isHa7PcbfUBQlh8NhtlqtYqopZ0BAnbVarSgIghvc9kqaZQCd1AGtDCjAbgB2i9szpToWY14p5Rl+yW63m6RpmtEpAIUZ+cFRsRwztAHw43a7fcDDN6JtD23vUfcfL9JThoqrgB4F1PiXBMtwedzv97EE02kwGES4jDWgVn4alECZ/CtB+WSxWCRUQQyKfmyBUKky+mmgASv1L5TPqoKpkuancj+9K1pEBWRzPisdY7WTDzFop9OZY/b6xXJMwnlxEloWY0WAngtf8gXHEzFV4XTqGOpSHkv8D/Fm4XA4HLvGNZNf84LTLCIzIDrcIXRkir/0UD5lULKMazZ+jXFI41q5jCbmhy+XywgD/MXtTISWHJQ+TP8K2Cn7kwaMZ3yKNm+AuJdwHDc5CmDMPxj7+tiiM5n4CyiJAK2JawwaASaPa4iL2bG4CRexXnBWgEUJ/4s1cS33U8CpXfK4idlKyEGVAaUkqCGueYmbzoBS0vww8ROucy5TY1kd2cRBK8HpvQZyKW+Ap1IDWFcNYF39XEB8kkL6BonNxEVZvWk3M0bw5a+DUzZmCVa2y/mUOoO8B6y0a3EAM+5ysMVLi+1Ls7qq2VgxXdB96lyzw6Npp202pgP0kR1WSdyN2RhgX3i3Lcoucf/PR3bocvRhOjXQSnf6YKtap1sGP5VgGVmcPpjk5fhN46dOpw8nF5t/NBqF1KiRvd4BKfmQRAxCXyEAAAAASUVORK5CYII=",_imports_4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL0SURBVHgB7Vc7ctswEF19ipRKqVER5gbUrw5dpop9AtsnSG4g+QSJTiDmBJFPEKbWZ+gb0I2kLiyVGX3ylsEyCC1KICVNGr4ZDgEQu3j7wQIkKlCgQIGLomQyybZti/Ij9H0/pJxIJQhSTqVS6XETT41Og7/b7Qbb7dYD2SCLYGkPMQvEhmg6dH4E5XL5Zjwe+6YC/xBU5L6jaXEfVoelUomt/0E5AXkL8u/4rY1dTSYTz0he77Tbbfbcnep6m83mPmtI0tDpdPog2lPdELrfmuRmRRqcc3D/F25DUTCbzZrL5TJ3cicxn8+9RqPBDnHwvIIXfy0WC++YXFkaCO2ttJHMV3QBIKx9vDxug+BHE5mq1rbV2zcJqyo97HWLDACjXdaL6DyCnIOhGnTYvBhlJPhMh4lJ+XEoA6rVqodXAHKBNna0fJW1tuTbz7TJrVarp3a5Q2cGexOb9DY5rnvQVwtf47mnPeRgfV8bGqA/ghcCMsBqtRIHfJCx9Xod8FsRizZot9t90utkTJBrneQGBK6n0+mINOuEHO9w5NPNsdzZB8lb0SO5jvZr6I/CDd3fMK8pJSgOMT6wBWLlUD9/EdbP2ry85GrqhLLU0IN8Q0njtQeqa2Hj3cm3mCAzhiUiVJNJrJj+5txjTnIOUkHPXR+kXH0OCneflIPgzTgN9ByMLEF4LUwIEeK+6JfvMMBTC9q6Vw+AjbP4DVnREaVIciI7CGvLPrD2EmSA2CdKgVYidK9mAd9o+mlHHL49I3J0kOAexMpgfU0b88gMfOF4wo51jx0AIPcmuaYJwUAaWIjLgavy8KzHob7D6U/Ji1A+JqjC4amug1uJQxcAvBcXaUTqazxuIgzPPWjCwxN/AV5APwTUTcqN1zZVkrjPMVyUBrY0oPxw1C3KkQHobOqlzJhgCsmzgW/v/DuQvGlXMuiILp31ep1vO7YcTWeChxLzHqF9cQhk8qAOHOo2lPL/hk35wJsvhI7RKb+lBQoUKFDgP+M3zC1vWE7HoR8AAAAASUVORK5CYII=",_hoisted_1$b={class:"dialog-input-actions"},_hoisted_2$8={key:0,class:"dialog-input-action-left"},_hoisted_3$6={key:0,class:"icon",src:_imports_0$2,alt:""},_hoisted_4$5={key:1,class:"icon",src:_imports_1,alt:""},_hoisted_5$2={key:2,class:"icon",src:_imports_2,alt:""},_hoisted_6$2={key:1,class:"dialog-input-action-left"},_hoisted_7$2={class:"dialog-input-action-right"},_sfc_main$h={__name:"InputActions",props:{disabled:{type:Boolean,default:!1,required:!1},enable_file_upload:{type:Boolean,default:!0,required:!1},enable_frequent_question:{type:Boolean,default:!1,required:!1},enable_voice_recognition:{type:Boolean,default:!1,required:!1},file_accept:{type:String,default:"*",required:!1},file_upload_limit:{type:Number,default:0,required:!1},input_file_list_len:{type:Number,default:0},agent_id:{type:String,default:""}},emits:["fileUpload","questionDefine","voiceRecognize","submit","actionConfig"],setup(e,{emit:t}){const n=e,r=t,i=ref(!1),s=ref(!1),o=ref(!1),l=ref(!1),d=ref(!1),f=()=>{i.value=!i.value,r("actionConfig",{isDeep:i.value?2:1,knowledgeId:g.value,chatMode:s.value?2:1})},m=()=>{if(o.value){s.value=!1;return}s.value=!s.value,s.value?(l.value=!0,d.value=!0):(l.value=!1,d.value=!1),r("actionConfig",{isDeep:i.value?2:1,knowledgeId:g.value,chatMode:s.value?2:1})},g=ref([]),E=ref([]);watch(()=>g.value.length,L=>{L?(o.value=!0,d.value=!0):(o.value=!1,d.value=!1),r("actionConfig",{isDeep:i.value?2:1,knowledgeId:g.value,chatMode:g.value.length?3:1})},{immediate:!0}),watch(()=>n.input_file_list_len,L=>{L?(o.value=!0,l.value=!0):(o.value=!1,l.value=!1)});const w=()=>{r("questionDefine")},C=()=>{r("fileUpload")},I=()=>{r("submit")},D=async()=>{try{const L=await getKnowledgeList(1,999,"");L.code/1===200&&(E.value=L.data.rows)}catch(L){console.log(L)}};return onMounted(()=>{D()}),(L,Y)=>{const G=resolveComponent("icon-ear"),z=Button,K=Option,X=Select,ye=Tooltip;return openBlock(),createElementBlock("div",_hoisted_1$b,[e.agent_id?(openBlock(),createElementBlock("div",_hoisted_6$2)):(openBlock(),createElementBlock("div",_hoisted_2$8,[createVNode(z,{class:normalizeClass(["action-left-item-btn",i.value?"action-left-item-btn-active":""]),onClick:f},{default:withCtx(()=>[createVNode(G),createTextVNode(" "+toDisplayString(L.$t("conversation.deep_think")),1)]),_:1},8,["class"]),createVNode(z,{class:normalizeClass(["action-left-item-btn",s.value?"action-left-item-btn-active":""]),disabled:o.value,onClick:m},{default:withCtx(()=>[!s.value&&!o.value?(openBlock(),createElementBlock("img",_hoisted_3$6)):createCommentVNode("",!0),s.value?(openBlock(),createElementBlock("img",_hoisted_4$5)):createCommentVNode("",!0),o.value?(openBlock(),createElementBlock("img",_hoisted_5$2)):createCommentVNode("",!0),createTextVNode(" "+toDisplayString(L.$t("conversation.internet_search")),1)]),_:1},8,["class","disabled"]),createVNode(X,{disabled:l.value,placeholder:L.$t("conversation.knowledge_base"),"trigger-props":{autoFitPopupMinWidth:!0},modelValue:g.value,"onUpdate:modelValue":Y[0]||(Y[0]=be=>g.value=be),multiple:"","allow-clear":"","max-tag-count":1},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(E.value,be=>(openBlock(),createBlock(K,{key:be.id,label:be.name,value:be.id},null,8,["label","value"]))),128))]),_:1},8,["disabled","placeholder","modelValue"])])),createBaseVNode("div",_hoisted_7$2,[e.enable_frequent_question?(openBlock(),createElementBlock("div",{key:0,class:"action-right-item-btn",onClick:w},Y[1]||(Y[1]=[createBaseVNode("img",{src:_imports_3},null,-1)]))):createCommentVNode("",!0),createVNode(ye,{content:L.$t("conversation.file_upload_message"),position:"top"},{default:withCtx(()=>[e.enable_file_upload&&!d.value?(openBlock(),createElementBlock("div",{key:0,class:"action-right-item-btn",onClick:C},Y[2]||(Y[2]=[createBaseVNode("img",{src:_imports_4},null,-1)]))):createCommentVNode("",!0)]),_:1},8,["content"]),createVNode(ye,{content:L.$t("conversation.input_message"),position:"top"},{default:withCtx(()=>[createBaseVNode("div",{class:"action-right-item-btn submit-input-btn",onClick:I},toDisplayString(L.$t("conversation.input_confirm")),1)]),_:1},8,["content"])])])}}},InputActions=_export_sfc$1(_sfc_main$h,[["__scopeId","data-v-f63ec909"]]),_hoisted_1$a={class:"file-upload-preview-area"},_hoisted_2$7={class:"file-doc-preview-container"},_hoisted_3$5={class:"file-image-preview-container"},_sfc_main$g={__name:"FileUploadPreviewV1",props:{file_list:Array,enable_remove:Boolean},emits:["delete"],setup(e,{emit:t}){const n=e,r=t,i=computed(()=>{const l=[];return n.file_list.forEach((d,f)=>{const m=d.file.name;isImageByFileName(m)&&l.push(d)}),l}),s=computed(()=>{const l=[];return n.file_list.forEach((d,f)=>{const m=d.file.name;isImageByFileName(m)||l.push(d)}),l}),o=l=>{r("delete",l)};return(l,d)=>(openBlock(),createElementBlock("div",_hoisted_1$a,[createBaseVNode("div",_hoisted_2$7,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(s.value,(f,m)=>(openBlock(),createBlock(FileItemDocPreview,{class:"file-preview-item",key:f.id+f.index,file:f.file,enable_remove:e.enable_remove,onDelete:g=>o(f)},null,8,["file","enable_remove","onDelete"]))),128))]),createBaseVNode("div",_hoisted_3$5,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(i.value,(f,m)=>(openBlock(),createBlock(FileItemImagePreview,{class:"file-preview-item",key:f.id+f.index,file:f.file,enable_remove:e.enable_remove,onDelete:g=>o(f)},null,8,["file","enable_remove","onDelete"]))),128))])]))}},FileUploadPreviewV1=_export_sfc$1(_sfc_main$g,[["__scopeId","data-v-53f0ee3f"]]);function useFileSelectedV2(e){const t=[];let n=0;const r={accept:"*"};function i(s){if(!s||Object.keys(s).length===0)return r;const o={};for(let l in r)l in s?o[l]=s[l]:o[l]=r[l];return o}return{select(s,o){const l=i(s),d=Date.now(),f=document.createElement("input");f.type="file",f.id=`9d75142a66eb4e23b7d403efe4584915-${d}-${n}`,f.setAttribute("multiple",!0),f.setAttribute("style","display: none;"),f.setAttribute("accept",l.accept),document.body.appendChild(f),n=n+1,f.click(),f.onchange=m=>{typeof o=="function"&&o(m)},t.push(f)},remove(){t.forEach(s=>{document.body.removeChild(s)})}}}function useEleSizeV2(e,t){const n=ref(0),r=ref(0),{proxy:i}=getCurrentInstance(),s=()=>{const o=i.$refs[e];n.value=o.offsetHeight,r.value=o.offsetWidth,typeof t=="function"&&t({width:r.value,height:n.value})};return nextTick(()=>{if(typeof ResizeObserver<"u"){let o=new ResizeObserver(d=>{for(let f of d){let m=f.contentRect.width,g=f.contentRect.height;n.value=g,r.value=m,typeof t=="function"&&t({width:r.value,height:n.value})}});const l=i.$refs[e];o.observe(l)}else console.log("ResizeObserver is not supported in this browser.");s()}),onMounted(()=>{s(),window.addEventListener("resize",s)}),onUnmounted(()=>{window.removeEventListener("resize",s)}),{height:n,width:r}}function useTextareaAutoFocus(e){const{proxy:t}=getCurrentInstance();return n=>{const r=t.$refs[e];r&&typeof r.focus=="function"&&r.focus()}}const _hoisted_1$9={ref:"input_area_container"},_hoisted_2$6={key:0,class:"textarea-container"},_sfc_main$f={__name:"DialogInput",props:{ask_input_text:{type:String,default:""},agent_id:{type:String,default:""},disabled:{type:Boolean,default:!1,required:!1},enable_text_input:{type:Boolean,default:!0,required:!1},enable_file_upload:{type:Boolean,default:!0,required:!1},enable_frequent_question:{type:Boolean,default:!1,required:!1},enable_voice_recognition:{type:Boolean,default:!1,required:!1},file_accept:{type:String,default:"*",required:!1},file_upload_limit:{type:Number,default:0,required:!1},text_placeholder:{type:String},text_limit:{type:Number,default:0,required:!1},show_text_count:{type:Boolean,default:!1,required:!1},width:{type:Number}},emits:["submit","sizeChange"],setup(e,{expose:t,emit:n}){const r=e,i=ref(""),s=ref([]),o=n;watch(()=>r.ask_input_text,X=>{X.length&&(i.value=X)});const{select:l,remove:d}=useFileSelectedV2(),f=useTextareaAutoFocus("chat_input_textarea");useEleSizeV2("input_area_container",X=>{X.width,X.height,o("sizeChange",X)});const m={minRows:3,maxRows:6},g=()=>{if(r.disabled)return;const X=[];s.value.forEach(ye=>{X.push(ye.file)}),o("submit",{text:i.value,files:X,config:L.value})},E=()=>{i.value="",s.value=[]},w=()=>{const X={accept:r.file_accept};l(X,ye=>{const be=ye.target.files,Ce=ye.target.id,Ne=be.length;if(Ne===1&&s.value.push({type:1,id:Ce,index:0,file:be[0]}),Ne>1)for(let He=0;He<Ne;He++){const Fe=be[He],Xe=He;s.value.push({type:2,id:Ce,index:Xe,file:Fe})}})},C=X=>{const ye=[];X.index;const be=X.id;s.value.forEach(Ce=>{Ce.id===be||ye.push(Ce)}),s.value=ye},I=()=>{},D=()=>{},L=ref({isDeep:1,knowledgeId:[],chatMode:1}),Y=X=>{L.value=X},G=()=>{i.value=i.value.replace(/\n/,"")},z=(X,ye)=>{r.disabled||(i.value=X)},K=X=>{if(r.disabled){X.keyCode===13&&G();return}X.keyCode===13&&(X.ctrlKey||(G(),g()))};return onMounted(()=>{f()}),onUnmounted(()=>{d()}),t({clear:E}),(X,ye)=>{const be=Textarea;return openBlock(),createElementBlock("div",_hoisted_1$9,[renderSlot(X.$slots,"top",{},void 0,!0),createBaseVNode("div",{class:"dialog-input-area-container",style:normalizeStyle("width:"+e.width+"px")},[e.enable_text_input?(openBlock(),createElementBlock("div",_hoisted_2$6,[createVNode(be,{ref:"chat_input_textarea",class:"chat-textarea-input",placeholder:X.$t("conversation.input_placholder"),"model-value":i.value,"allow-clear":"","auto-size":m,onInput:z,onKeyup:K},null,8,["placeholder","model-value"])])):createCommentVNode("",!0),createVNode(InputActions,{disabled:e.disabled,enable_file_upload:e.enable_file_upload,enable_frequent_question:e.enable_frequent_question,enable_voice_recognition:e.enable_voice_recognition,file_accept:e.file_accept,file_upload_limit:e.file_upload_limit,input_file_list_len:s.value.length,agent_id:e.agent_id,onFileUpload:w,onQuestionDefine:I,onVoiceRecognize:D,onActionConfig:Y,onSubmit:g},null,8,["disabled","enable_file_upload","enable_frequent_question","enable_voice_recognition","file_accept","file_upload_limit","input_file_list_len","agent_id"]),renderSlot(X.$slots,"bottom",{},void 0,!0),s.value.length!==0?(openBlock(),createBlock(FileUploadPreviewV1,{key:1,class:"file-upload-preview-container",file_list:s.value,enable_remove:!0,onDelete:C},null,8,["file_list"])):createCommentVNode("",!0)],4),renderSlot(X.$slots,"right",{},void 0,!0)],512)}}},DialogInput=_export_sfc$1(_sfc_main$f,[["__scopeId","data-v-17eacfa0"]]),logo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAABAxJREFUeF7t3E1oE0EUAOA36aYbYVvx1D/15sGK6Un0ZkwEQfTgwYPQg1J/QEFQbAXxUhCxP6AHUbBp0xQRDx48FASRqjfrrSmtBwWr4g9FLGpsbNNmZJJWa0mbN3mb7SZ5e8rhvbcz377ZJNt0BPBBEhCkbE4GbUAppegeheNSQosUsA0kWG5yHPs6MzQQ8oWcGpMW4PVxWZdMwl0JEHRqgLrneTrxC2os43E05Nunm5tPPBpQdV5XDJ64GU8BKEB11FjGo2jItz8fFJ0cNGBXTJ5ISbijU3wtYhcBFxAHoyHfwUKOAw3YOSJfSICdhRyMHbWXAqp6tZb3YX/IPGRH7Ww10IAdMfnTbW8Y2Sa0HDDTid4H0ZB5uBCIeMARKQsxALtrZgNc6MT7/SHziN3nKxtAEELWW8a9vqDZbCdi+QAqNSFknWUMRILmUbsQywvwH2IkEjRb7EAsP8B0IwpZV13R0xfwnaIiliVgphEVovd2X6DyDAWx5ACfv5uGFPIDg0JssLw3w8HKs/kilhzg8McETCdTaA+FuLHae6MnUHkenbQksOQA304lYeL7rJaF8AjZUGV0hwNmm1aiuhVgEzqK5IN0KgXw8lMCEnP4LkzfEz1C1lcZ13oD5iWsSToPG4wBtLwAgVqAzRaAeq1zxJMA7+MAz74AqNeU48dMCkYnf8PsvN6Xp3QnWsbV8B7zMvb8tgEqsGNbANYZ2FNnj0vMAURe0xHVbfDNtxmYjM9DCvCQHvWNZb3RHt5ttmNmYhvggU0AjRswp8wdMz4FMPghdxwmQjVhIpkCnWb0CJi9sqPCxNS3DfD0Vv1lu9IA1RK+9Qoz/MLFXGwSKBtUkBpmrntgm9/eyXTG7K2nW40BdcWWxTMgAxIFiOncgQxIFCCmcwcyIFGAmM4dyIBEAWI6dyADEgWI6Y53ID9MyHHFcj1McOvjrHwb0fEOdNsD1XzhFvMcB1QndssjfSqeyl8TQDsG7pYaDEi8EgzIgEQBYjp3IAMSBYjp3IEMSBQgpnMHMiBRgJjueAfa/csE4vyB+ssGBiT+NIQBGZC2iItuCdOm675sx5ew+whoI2JAmh8/UCX6OQ9Y6M+B1DcFXVDHlzADEv+syYAM+J+A40tY9x7j9ngGJF4hBmRAogAxnTuQAYkCxHTuQAYkChDTuQMZkChATOcOZECiADHd/g4skg0YiW6ZdAHxi35RhamF/pf/YtkCFDPpXDECYLitSezKFZexRh7FsgktcjqrhnkEnGz1ix5MLTRgsWyDjJn0ajECYKjVD3vVnlqYWmhAVawYNuLGTHqlGIXn9ULzuUbxGVtHC1AVdftW8NiJ/40TEBcSxoSA3gvbIYztvMV8bUDtAZZ4AgMSL/AfSSImb8nQHIQAAAAASUVORK5CYII=",types_map$1={document:".txt,.md,.markdown,.pdf,.html,.xlsx,.xls,.docx,.csv,.eml,.msg,.pptx,.ppt,.xml,.epub",image:".jpg,.jpeg,.png,.gif,.webp,.svg",audio:".mp3,.m4a,.wav,.webm,.amr,.mpga",video:".mp4,.mov,.mpeg,.mpga"};function getFieldFileUplaodAcceptString(e,t){let n=[];if(e&&Array.isArray(e)&&e.forEach(i=>{if(i in types_map$1){const s=types_map$1[i];n.push(s)}}),t&&Array.isArray(t)){const i=t.join(",");n.push(i)}const r=n.join(",");return r.length===0?"*":r}function getFileType(e){const t=e.name.split(".").pop().toUpperCase(),n=["TXT","MD","MARKDOWN","PDF","HTML","XLSX","XLS","DOCX","CSV","EML","MSG","PPTX","PPT","XML","EPUB"],r=["JPG","JPEG","PNG","GIF","WEBP","SVG"],i=["MP3","M4A","WAV","WEBM","AMR"],s=["MP4","MOV","MPEG","MPGA"];return n.includes(t)?"document":r.includes(t)?"image":i.includes(t)?"audio":s.includes(t)?"video":"unknown"}const types_map={document:"文档 < 15.00MB",image:"图片 < 10.00MB",audio:"音频 < 50.00MB",video:"视频 < 100.00MB"};function getFieldFileUplaodMessageString(e,t){let n=[];e&&Array.isArray(e)&&e.forEach(i=>{if(i in types_map){const s=types_map[i];n.push(s)}}),t&&t>0&&n.push(`最多上传${t}个文件`);const r=n.join(",");return r.length===0?"":r}const _sfc_main$e={__name:"BtnFileUpload",props:{popmessage:String},setup(e){return(t,n)=>{const r=resolveComponent("icon-upload"),i=Button,s=Tooltip;return openBlock(),createBlock(s,{content:e.popmessage},{default:withCtx(()=>[createVNode(i,{class:"upload-button"},{icon:withCtx(()=>[createVNode(r)]),default:withCtx(()=>n[0]||(n[0]=[createTextVNode("点击上传")])),_:1})]),_:1},8,["content"])}}},FIELD_TYPE={NUMBER:"number",TEXT_INPUT:"text-input",PARAGRAPH:"paragraph",SELECT:"select",FILE:"file",FILE_LIST:"file-list"},_sfc_main$d={__name:"DynamicFormBasic",props:{form_params:Array,is_init_model:Boolean},emits:["submitForm","toCancel"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=reactive(d()),o=ref({}),l=computed(()=>{const I=r.form_params,D=[],L=I.length;for(let Y=0;Y<L;Y++){let G={};for(const X in I[Y])G=I[Y][X];const z=G.type,K={type:z,label:G.label,variable:G.variable,options:G.options};z===FIELD_TYPE.PARAGRAPH&&(K.autosize={minRows:2,maxRows:5}),z===FIELD_TYPE.FILE&&(K.required=G.required,K.accept=getFieldFileUplaodAcceptString(G.allowed_file_types,G.allowed_file_extensions),K.popmessage=getFieldFileUplaodMessageString(G.allowed_file_types,1)),z===FIELD_TYPE.FILE_LIST&&(K.limit=G.max_length,K.required=G.required,K.accept=getFieldFileUplaodAcceptString(G.allowed_file_types,G.allowed_file_extensions),K.popmessage=getFieldFileUplaodMessageString(G.allowed_file_types,G.max_length)),D.push(K)}return D});function d(){const I=r.form_params,D={},L=I.length;for(let Y=0;Y<L;Y++){const G=I[Y];for(const z in G){const K=G[z].type,X=G[z].variable;G[z].required,K===FIELD_TYPE.FILE||K===FIELD_TYPE.FILE_LIST?D[X]=[]:D[X]=""}}return D}const f=computed(()=>{const I=r.form_params,D={},L=I.length;for(let Y=0;Y<L;Y++){const G=I[Y],z=G.type,K=G.variable,X=G.required;if(!(z===FIELD_TYPE.FILE||z===FIELD_TYPE.FILE_LIST)){const ye=[];X&&ye.push({required:X,message:`${G.label}是必填项`}),(z===FIELD_TYPE.TEXT_INPUT||z===FIELD_TYPE.PARAGRAPH)&&G.max_length>0&&ye.push({maxLength:G.max_length,message:`最大长度为${G.max_length}`}),D[K]=ye}}return D}),m=(I,D)=>{const L=I.variable,Y=[...D];Y.forEach(G=>{G.type=getFileType(G),G.transfer_method="local_file",G.limit_1=I.type=="file"}),o.value[L]=[...Y]},g=({values:I,errors:D})=>{D||i("submitForm",w())},E=()=>{i("toCancel")},w=()=>{const I={};for(let Y in s){const G=s[Y];G==null||G===""?I[Y]="":I[Y]=s[Y]}const D=o.value,L={};for(let Y in D)L[Y]=D[Y];return{options:I,files:L}};return t({getValues:w,clear:()=>{const I=d();for(let D in s)s[D]=I[D]}}),(I,D)=>{const L=Input,Y=FormItem,G=Textarea,z=Option,K=Select,X=Tooltip,ye=Upload,be=Button,Ce=Form;return openBlock(),createElementBlock("div",null,[createVNode(Ce,{model:s,style:{width:"100%"},rules:f.value,class:"dynamic-form-container-jfsdjaklfjsfjsdkalfjskaljsk",onSubmit:g},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(l.value,(Ne,He)=>(openBlock(),createElementBlock(Fragment$1,null,[Ne.type===unref(FIELD_TYPE).NUMBER?(openBlock(),createBlock(Y,{key:He,field:Ne.variable,label:Ne.label},{default:withCtx(()=>[createVNode(L,{modelValue:s[Ne.variable],"onUpdate:modelValue":Fe=>s[Ne.variable]=Fe,placeholder:Ne.label,type:"number"},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["field","label"])):createCommentVNode("",!0),Ne.type===unref(FIELD_TYPE).TEXT_INPUT?(openBlock(),createBlock(Y,{key:He,field:Ne.variable,label:Ne.label},{default:withCtx(()=>[createVNode(L,{modelValue:s[Ne.variable],"onUpdate:modelValue":Fe=>s[Ne.variable]=Fe,placeholder:Ne.label},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["field","label"])):createCommentVNode("",!0),Ne.type===unref(FIELD_TYPE).PARAGRAPH?(openBlock(),createBlock(Y,{key:He,field:Ne.variable,label:Ne.label},{default:withCtx(()=>[createVNode(G,{modelValue:s[Ne.variable],"onUpdate:modelValue":Fe=>s[Ne.variable]=Fe,placeholder:Ne.label,"auto-size":Ne.autosize},null,8,["modelValue","onUpdate:modelValue","placeholder","auto-size"])]),_:2},1032,["field","label"])):createCommentVNode("",!0),Ne.type===unref(FIELD_TYPE).SELECT?(openBlock(),createBlock(Y,{key:He,field:Ne.variable,label:Ne.label},{default:withCtx(()=>[createVNode(K,{modelValue:s[Ne.variable],"onUpdate:modelValue":Fe=>s[Ne.variable]=Fe,placeholder:Ne.label,"allow-clear":""},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(Ne.options,(Fe,Xe)=>(openBlock(),createBlock(z,{value:Fe,key:Fe+"_"+Xe},{default:withCtx(()=>[createTextVNode(toDisplayString(Fe),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["field","label"])):createCommentVNode("",!0),Ne.type===unref(FIELD_TYPE).FILE?(openBlock(),createBlock(Y,{key:He,field:Ne.variable,label:Ne.label,required:Ne.required,rules:[],"validate-trigger":[]},{default:withCtx(()=>[createVNode(ye,{"file-list":s[Ne.variable],"onUpdate:fileList":Fe=>s[Ne.variable]=Fe,multiple:!1,limit:1,accept:Ne.accept,"auto-upload":!1,onChange:Fe=>m(Ne,Fe)},{"upload-button":withCtx(()=>[createVNode(_sfc_main$e,{popmessage:Ne.popmessage},null,8,["popmessage"])]),"file-name":withCtx(({fileItem:Fe})=>[createVNode(X,{content:Fe.name},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(Fe.name),1)]),_:2},1032,["content"])]),_:2},1032,["file-list","onUpdate:fileList","accept","onChange"])]),_:2},1032,["field","label","required"])):createCommentVNode("",!0),Ne.type===unref(FIELD_TYPE).FILE_LIST?(openBlock(),createBlock(Y,{key:He,field:Ne.variable,label:Ne.label,required:Ne.required,rules:[],"validate-trigger":[]},{default:withCtx(()=>[createVNode(ye,{"file-list":s[Ne.variable],"onUpdate:fileList":Fe=>s[Ne.variable]=Fe,multiple:!0,"auto-upload":!1,limit:Ne.limit,accept:Ne.accept,onChange:Fe=>m(Ne,Fe)},{"upload-button":withCtx(()=>[createVNode(_sfc_main$e,{popmessage:Ne.popmessage},null,8,["popmessage"])]),"file-name":withCtx(({fileItem:Fe})=>[createVNode(X,{content:Fe.name},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(Fe.name),1)]),_:2},1032,["content"])]),_:2},1032,["file-list","onUpdate:fileList","limit","accept","onChange"])]),_:2},1032,["field","label","required"])):createCommentVNode("",!0),createVNode(Y,null,{default:withCtx(()=>[e.is_init_model?(openBlock(),createBlock(be,{key:0,class:"btn_1",style:{"margin-right":"10px"},type:"primary","html-type":"submit"},{default:withCtx(()=>D[0]||(D[0]=[createTextVNode("开始对话")])),_:1})):(openBlock(),createBlock(be,{key:1,class:"btn_1",style:{"margin-right":"10px"},type:"primary","html-type":"submit"},{default:withCtx(()=>D[1]||(D[1]=[createTextVNode("保存")])),_:1})),e.is_init_model?createCommentVNode("",!0):(openBlock(),createBlock(be,{key:2,class:"btn_1","html-type":"submit",onClick:E},{default:withCtx(()=>D[2]||(D[2]=[createTextVNode("取消")])),_:1}))]),_:1})],64))),256))]),_:1},8,["model","rules"])])}}},_hoisted_1$8=["src"],_hoisted_2$5=["src"],_sfc_main$c={__name:"BtnConfigDynamic",props:{user_input_form:Array},emits:["confirm"],setup(e,{emit:t}){const n=e,r=t,i=ref(null),s=ref(!1),o=ref(!1),l=()=>{s.value=!0,o.value=!1},d=()=>{s.value=!1},f=m=>{console.log(m,111),r("confirm",m),s.value=!1,o.value=!1};return onMounted(()=>{n.user_input_form.length&&(s.value=!0,o.value=!0)}),(m,g)=>{const E=Button,w=Modal;return openBlock(),createElementBlock(Fragment$1,null,[createVNode(E,{onClick:l,class:"chujuan-btn"},{default:withCtx(()=>[createBaseVNode("img",{class:"chujuan-logo-img",src:unref(logo)},null,8,_hoisted_1$8),createTextVNode(" "+toDisplayString(m.$t("wendangchujuan.dynamic_title")),1)]),_:1}),createVNode(w,{visible:s.value,"onUpdate:visible":g[0]||(g[0]=C=>s.value=C),"mask-closable":!1,closable:!1,"hide-cancel":o.value,"hide-ok":o.value,"modal-class":"dynamicform-config-container-modal","body-class":"dynamicform-config-container-body"},{title:withCtx(()=>[createBaseVNode("img",{class:"chujuan-logo-img",src:unref(logo)},null,8,_hoisted_2$5),createTextVNode(" "+toDisplayString(m.$t("wendangchujuan.dynamic_title")),1)]),default:withCtx(()=>[createVNode(_sfc_main$d,{ref_key:"confForm",ref:i,is_init_model:o.value,form_params:e.user_input_form,onSubmitForm:f,onToCancel:d},null,8,["is_init_model","form_params"])]),_:1},8,["visible","hide-cancel","hide-ok"])],64)}}},BtnConfigDynamic=_export_sfc$1(_sfc_main$c,[["__scopeId","data-v-97bbe82e"]]),_hoisted_1$7={class:"dialog-input-area-top-container"},_sfc_main$b={__name:"DialogInputTop",props:{disabled:Boolean,user_input_form:Array},setup(e,{expose:t}){ref(1);const n=ref({}),r=()=>{},i=o=>{n.value=o};return t({clear:r,getOptions:()=>{const o={},l=n.value;for(const d in l)o[d]=l[d];return o}}),(o,l)=>(openBlock(),createElementBlock("div",_hoisted_1$7,[createVNode(BtnConfigDynamic,{onConfirm:i,user_input_form:e.user_input_form},null,8,["user_input_form"])]))}},DialogInputTop=_export_sfc$1(_sfc_main$b,[["__scopeId","data-v-bca26c33"]]),_sfc_main$a={},_hoisted_1$6={class:"dialog-footer"};function _sfc_render(e,t){return openBlock(),createElementBlock("div",_hoisted_1$6,[createBaseVNode("div",null,toDisplayString(e.$t("conversation.attention")),1)])}const DialogFooter=_export_sfc$1(_sfc_main$a,[["render",_sfc_render],["__scopeId","data-v-2fe8c277"]]),_imports_0$1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGUSURBVEiJ7ZY/SwNBFMRn9i5RsbGJhWUICCKChWInfgFTSCzslXinSGo70Q8gmniY2sZgYWVpr4UQLAVtNY1lorf3LNSQjXf+IVsFp7t5s+/H3T5uF+hX8YdnG5IvzT1vawbQq4A49jjUUcSjIDi4acMKhYKTyYyegczbA31I5LzReFqq1WrabXtgmu/FOonbxLXgLIAcgDtCrpIZmAQ5JWD603O/xnhaLh/uJTXxvI1jEDkILsuV8to3uW0AU51eDOz3KpVKQ2EYjmmtjcFqNpuPcfmeYK1Waw5UF6Aa6PQHB4dXOobQDkzECUl5JpEyfbzG5XuCad2qQ6Xyjo5o+vrOddPjVmFKqawS7oDKeDOm1F7MV+wZNgJiHqCxZ46wan3Poii6dxzuitDoEyq5dSNkrcKCIHgAsBtX87yNxW5P9QL7q/5h/7BvFTP6suz7/kTSAgFmAQDEgu/7J4k5kcnuW0YbRsgLQLwfeOY5lKCcgLnEKjv7GhZQLG5OKyXrtu8ggFOtVPavDVg33KJifsn9pjek4X3ao498swAAAABJRU5ErkJggg==",_sfc_main$9={__name:"ChatAsideExpandBtn",emits:["toggleRight"],setup(e,{emit:t}){const n=t,r=()=>{n("toggleRight")};return(i,s)=>{const o=Tooltip;return openBlock(),createBlock(o,{content:"展开/收起",position:"left",mini:""},{default:withCtx(()=>[createBaseVNode("img",{class:"img-btn",src:_imports_0$1,alt:"展开/收起",onClick:r})]),_:1})}}},ChatAsideExpandBtn=_export_sfc$1(_sfc_main$9,[["__scopeId","data-v-e6315f68"]]),testPath="npm2url/dist/index.cjs",defaultProviders={jsdelivr:e=>`https://cdn.jsdelivr.net/npm/${e}`,unpkg:e=>`https://unpkg.com/${e}`};async function checkUrl(e,t){const n=await fetch(e,{signal:t});if(!n.ok)throw n;await n.text()}class UrlBuilder{constructor(){this.providers={...defaultProviders},this.provider="jsdelivr"}async getFastestProvider(t=5e3,n=testPath){const r=new AbortController;let i=0;try{return await new Promise((s,o)=>{Promise.all(Object.entries(this.providers).map(async([l,d])=>{try{await checkUrl(d(n),r.signal),s(l)}catch{}})).then(()=>o(new Error("All providers failed"))),i=setTimeout(o,t,new Error("Timed out"))})}finally{r.abort(),clearTimeout(i)}}async findFastestProvider(t,n){return this.provider=await this.getFastestProvider(t,n),this.provider}setProvider(t,n){n?this.providers[t]=n:delete this.providers[t]}getFullUrl(t,n=this.provider){if(t.includes("://"))return t;const r=this.providers[n];if(!r)throw new Error(`Provider ${n} not found`);return r(t)}}class Hook{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const n=this.listeners.indexOf(t);n>=0&&this.listeners.splice(n,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const n of this.listeners)n(...t)}}const uniqId=Math.random().toString(36).slice(2,8);let globalIndex=0;function getId(){return globalIndex+=1,`mm-${uniqId}-${globalIndex}`}function noop(){}function walkTree(e,t){const n=(r,i)=>t(r,()=>{var s;return(s=r.children)==null?void 0:s.map(o=>n(o,r))},i);return n(e)}function addClass$1(e,...t){const n=(e||"").split(" ").filter(Boolean);return t.forEach(r=>{r&&n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function wrapFunction(e,t){return(...n)=>t(e,...n)}function defer(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function memoize(e){const t={};return function(...r){const i=`${r[0]}`;let s=t[i];return s||(s={value:e(...r)},t[i]=s),s.value}}function debounce(e,t){const n={timer:0};function r(){n.timer&&(window.clearTimeout(n.timer),n.timer=0)}function i(){r(),n.args&&(n.result=e(...n.args))}return function(...o){return r(),n.args=o,n.timer=window.setTimeout(i,t),n.result}}/*! @gera2ld/jsx-dom v2.2.2 | ISC License */const VTYPE_ELEMENT=1,VTYPE_FUNCTION=2,SVG_NS="http://www.w3.org/2000/svg",XLINK_NS="http://www.w3.org/1999/xlink",NS_ATTRS={show:XLINK_NS,actuate:XLINK_NS,href:XLINK_NS},isLeaf=e=>typeof e=="string"||typeof e=="number",isElement=e=>(e==null?void 0:e.vtype)===VTYPE_ELEMENT,isRenderFunction=e=>(e==null?void 0:e.vtype)===VTYPE_FUNCTION;function h(e,t,...n){return t=Object.assign({},t,{children:n.length===1?n[0]:n}),jsx(e,t)}function jsx(e,t){let n;if(typeof e=="string")n=VTYPE_ELEMENT;else if(typeof e=="function")n=VTYPE_FUNCTION;else throw new Error("Invalid VNode type");return{vtype:n,type:e,props:t}}function Fragment(e){return e.children}const DEFAULT_ENV={isSvg:!1};function insertDom(e,t){Array.isArray(t)||(t=[t]),t=t.filter(Boolean),t.length&&e.append(...t)}function mountAttributes(e,t,n){for(const r in t)if(!(r==="key"||r==="children"||r==="ref"))if(r==="dangerouslySetInnerHTML")e.innerHTML=t[r].__html;else if(r==="innerHTML"||r==="textContent"||r==="innerText"||r==="value"&&["textarea","select"].includes(e.tagName)){const i=t[r];i!=null&&(e[r]=i)}else r.startsWith("on")?e[r.toLowerCase()]=t[r]:setDOMAttribute(e,r,t[r],n.isSvg)}const attrMap={className:"class",labelFor:"for"};function setDOMAttribute(e,t,n,r){if(t=attrMap[t]||t,n===!0)e.setAttribute(t,"");else if(n===!1)e.removeAttribute(t);else{const i=r?NS_ATTRS[t]:void 0;i!==void 0?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}}function flatten(e){return e.reduce((t,n)=>t.concat(n),[])}function mountChildren(e,t){return Array.isArray(e)?flatten(e.map(n=>mountChildren(n,t))):mount(e,t)}function mount(e,t=DEFAULT_ENV){if(e==null||typeof e=="boolean")return null;if(e instanceof Node)return e;if(isRenderFunction(e)){const{type:n,props:r}=e;if(n===Fragment){const s=document.createDocumentFragment();if(r.children){const o=mountChildren(r.children,t);insertDom(s,o)}return s}const i=n(r);return mount(i,t)}if(isLeaf(e))return document.createTextNode(`${e}`);if(isElement(e)){let n;const{type:r,props:i}=e;if(!t.isSvg&&r==="svg"&&(t=Object.assign({},t,{isSvg:!0})),t.isSvg?n=document.createElementNS(SVG_NS,r):n=document.createElement(r),mountAttributes(n,i,t),i.children){let o=t;t.isSvg&&r==="foreignObject"&&(o=Object.assign({},o,{isSvg:!1}));const l=mountChildren(i.children,o);l!=null&&insertDom(n,l)}const{ref:s}=i;return typeof s=="function"&&s(n),n}throw new Error("mount: Invalid Vnode!")}function mountDom(e){return mount(e)}function hm(...e){return mountDom(h(...e))}const memoizedPreloadJS=memoize(e=>{document.head.append(hm("link",{rel:"preload",as:"script",href:e}))}),jsCache={},cssCache={};async function loadJSItem(e,t){var n;const r=e.type==="script"&&((n=e.data)==null?void 0:n.src)||"";if(e.loaded||(e.loaded=jsCache[r]),!e.loaded){const i=defer();if(e.loaded=i.promise,e.type==="script"&&(document.head.append(hm("script",{...e.data,onLoad:()=>i.resolve(),onError:i.reject})),r?jsCache[r]=e.loaded:i.resolve()),e.type==="iife"){const{fn:s,getParams:o}=e.data;s(...(o==null?void 0:o(t))||[]),i.resolve()}}await e.loaded}async function loadCSSItem(e){const t=e.type==="stylesheet"&&e.data.href||"";if(e.loaded||(e.loaded=cssCache[t]),!e.loaded){const n=defer();e.loaded=n.promise,t&&(cssCache[t]=e.loaded),e.type==="style"?(document.head.append(hm("style",{textContent:e.data})),n.resolve()):t&&(document.head.append(hm("link",{rel:"stylesheet",...e.data})),fetch(t).then(r=>{if(r.ok)return r.text();throw r}).then(()=>n.resolve(),n.reject))}await e.loaded}async function loadJS(e,t){e.forEach(n=>{var r;n.type==="script"&&((r=n.data)!=null&&r.src)&&memoizedPreloadJS(n.data.src)}),t={getMarkmap:()=>window.markmap,...t};for(const n of e)await loadJSItem(n,t)}async function loadCSS(e){await Promise.all(e.map(t=>loadCSSItem(t)))}function buildJSItem(e){return{type:"script",data:{src:e}}}function buildCSSItem(e){return{type:"stylesheet",data:{href:e}}}class InternMap extends Map{constructor(t,n=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(intern_get(this,t))}has(t){return super.has(intern_get(this,t))}set(t,n){return super.set(intern_set(this,t),n)}delete(t){return super.delete(intern_delete(this,t))}}function intern_get({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function intern_set({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function intern_delete({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}function max(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function min(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function minIndex(e,t){let n,r=-1,i=-1;if(t===void 0)for(const s of e)++i,s!=null&&(n>s||n===void 0&&s>=s)&&(n=s,r=i);else for(let s of e)(s=t(s,++i,e))!=null&&(n>s||n===void 0&&s>=s)&&(n=s,r=i);return r}var xhtml="http://www.w3.org/1999/xhtml";const namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),namespaces.hasOwnProperty(t)?{space:namespaces[t],local:e}:e}function creatorInherit(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===xhtml&&t.documentElement.namespaceURI===xhtml?t.createElement(e):t.createElementNS(n,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var t=namespace(e);return(t.local?creatorFixed:creatorInherit)(t)}function none(){}function selector(e){return e==null?none:function(){return this.querySelector(e)}}function selection_select(e){typeof e!="function"&&(e=selector(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],o=s.length,l=r[i]=new Array(o),d,f,m=0;m<o;++m)(d=s[m])&&(f=e.call(d,d.__data__,m,s))&&("__data__"in d&&(f.__data__=d.__data__),l[m]=f);return new Selection$1(r,this._parents)}function array(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function empty$1(){return[]}function selectorAll(e){return e==null?empty$1:function(){return this.querySelectorAll(e)}}function arrayAll(e){return function(){return array(e.apply(this,arguments))}}function selection_selectAll(e){typeof e=="function"?e=arrayAll(e):e=selectorAll(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var o=t[s],l=o.length,d,f=0;f<l;++f)(d=o[f])&&(r.push(e.call(d,d.__data__,f,o)),i.push(d));return new Selection$1(r,i)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(t){return t.matches(e)}}var find$3=Array.prototype.find;function childFind(e){return function(){return find$3.call(this.children,e)}}function childFirst(){return this.firstElementChild}function selection_selectChild(e){return this.select(e==null?childFirst:childFind(typeof e=="function"?e:childMatcher(e)))}var filter$3=Array.prototype.filter;function children$1(){return Array.from(this.children)}function childrenFilter(e){return function(){return filter$3.call(this.children,e)}}function selection_selectChildren(e){return this.selectAll(e==null?children$1:childrenFilter(typeof e=="function"?e:childMatcher(e)))}function selection_filter(e){typeof e!="function"&&(e=matcher(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],o=s.length,l=r[i]=[],d,f=0;f<o;++f)(d=s[f])&&e.call(d,d.__data__,f,s)&&l.push(d);return new Selection$1(r,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection$1(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function constant$3(e){return function(){return e}}function bindIndex(e,t,n,r,i,s){for(var o=0,l,d=t.length,f=s.length;o<f;++o)(l=t[o])?(l.__data__=s[o],r[o]=l):n[o]=new EnterNode(e,s[o]);for(;o<d;++o)(l=t[o])&&(i[o]=l)}function bindKey(e,t,n,r,i,s,o){var l,d,f=new Map,m=t.length,g=s.length,E=new Array(m),w;for(l=0;l<m;++l)(d=t[l])&&(E[l]=w=o.call(d,d.__data__,l,t)+"",f.has(w)?i[l]=d:f.set(w,d));for(l=0;l<g;++l)w=o.call(e,s[l],l,s)+"",(d=f.get(w))?(r[l]=d,d.__data__=s[l],f.delete(w)):n[l]=new EnterNode(e,s[l]);for(l=0;l<m;++l)(d=t[l])&&f.get(E[l])===d&&(i[l]=d)}function datum(e){return e.__data__}function selection_data(e,t){if(!arguments.length)return Array.from(this,datum);var n=t?bindKey:bindIndex,r=this._parents,i=this._groups;typeof e!="function"&&(e=constant$3(e));for(var s=i.length,o=new Array(s),l=new Array(s),d=new Array(s),f=0;f<s;++f){var m=r[f],g=i[f],E=g.length,w=arraylike(e.call(m,m&&m.__data__,f,r)),C=w.length,I=l[f]=new Array(C),D=o[f]=new Array(C),L=d[f]=new Array(E);n(m,g,I,D,L,w,t);for(var Y=0,G=0,z,K;Y<C;++Y)if(z=I[Y]){for(Y>=G&&(G=Y+1);!(K=D[G])&&++G<C;);z._next=K||null}}return o=new Selection$1(o,r),o._enter=l,o._exit=d,o}function arraylike(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function selection_exit(){return new Selection$1(this._exit||this._groups.map(sparse),this._parents)}function selection_join(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function selection_merge(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,o=Math.min(i,s),l=new Array(i),d=0;d<o;++d)for(var f=n[d],m=r[d],g=f.length,E=l[d]=new Array(g),w,C=0;C<g;++C)(w=f[C]||m[C])&&(E[C]=w);for(;d<i;++d)l[d]=n[d];return new Selection$1(l,this._parents)}function selection_order(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],o;--i>=0;)(o=r[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function selection_sort(e){e||(e=ascending);function t(g,E){return g&&E?e(g.__data__,E.__data__):!g-!E}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o=n[s],l=o.length,d=i[s]=new Array(l),f,m=0;m<l;++m)(f=o[m])&&(d[m]=f);d.sort(t)}return new Selection$1(i,this._parents).order()}function ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null}function selection_size(){let e=0;for(const t of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,o=i.length,l;s<o;++s)(l=i[s])&&e.call(l,l.__data__,s,i);return this}function attrRemove$1(e){return function(){this.removeAttribute(e)}}function attrRemoveNS$1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant$1(e,t){return function(){this.setAttribute(e,t)}}function attrConstantNS$1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function attrFunction$1(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function attrFunctionNS$1(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function selection_attr(e,t){var n=namespace(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?attrRemoveNS$1:attrRemove$1:typeof t=="function"?n.local?attrFunctionNS$1:attrFunction$1:n.local?attrConstantNS$1:attrConstant$1)(n,t))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove$1(e){return function(){this.style.removeProperty(e)}}function styleConstant$1(e,t,n){return function(){this.style.setProperty(e,t,n)}}function styleFunction$1(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function selection_style(e,t,n){return arguments.length>1?this.each((t==null?styleRemove$1:typeof t=="function"?styleFunction$1:styleConstant$1)(e,t,n??"")):styleValue(this.node(),e)}function styleValue(e,t){return e.style.getPropertyValue(t)||defaultView(e).getComputedStyle(e,null).getPropertyValue(t)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,t){return function(){this[e]=t}}function propertyFunction(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function selection_property(e,t){return arguments.length>1?this.each((t==null?propertyRemove:typeof t=="function"?propertyFunction:propertyConstant)(e,t)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}ClassList.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,t){for(var n=classList(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function classedRemove(e,t){for(var n=classList(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,t){return function(){(t.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,t){var n=classArray(e+"");if(arguments.length<2){for(var r=classList(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?classedFunction:t?classedTrue:classedFalse)(n,t))}function textRemove(){this.textContent=""}function textConstant$1(e){return function(){this.textContent=e}}function textFunction$1(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function selection_text(e){return arguments.length?this.each(e==null?textRemove:(typeof e=="function"?textFunction$1:textConstant$1)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function selection_html(e){return arguments.length?this.each(e==null?htmlRemove:(typeof e=="function"?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var t=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,t){var n=typeof e=="function"?e:creator(e),r=t==null?constantNull:typeof t=="function"?t:selector(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function remove$1(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove$1)}function selection_cloneShallow(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}function contextListener(e){return function(t){e.call(this,t,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function onRemove(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function onAdd(e,t,n){return function(){var r=this.__on,i,s=contextListener(t);if(r){for(var o=0,l=r.length;o<l;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function selection_on(e,t,n){var r=parseTypenames(e+""),i,s=r.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var d=0,f=l.length,m;d<f;++d)for(i=0,m=l[d];i<s;++i)if((o=r[i]).type===m.type&&o.name===m.name)return m.value}return}for(l=t?onAdd:onRemove,i=0;i<s;++i)this.each(l(r[i],t,n));return this}function dispatchEvent(e,t,n){var r=defaultView(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function dispatchConstant(e,t){return function(){return dispatchEvent(this,e,t)}}function dispatchFunction(e,t){return function(){return dispatchEvent(this,e,t.apply(this,arguments))}}function selection_dispatch(e,t){return this.each((typeof t=="function"?dispatchFunction:dispatchConstant)(e,t))}function*selection_iterator(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,o;i<s;++i)(o=r[i])&&(yield o)}var root$1=[null];function Selection$1(e,t){this._groups=e,this._parents=t}function selection(){return new Selection$1([[document.documentElement]],root$1)}function selection_selection(){return this}Selection$1.prototype=selection.prototype={constructor:Selection$1,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function xt(e){return typeof e=="string"?new Selection$1([[document.querySelector(e)]],[document.documentElement]):new Selection$1([[e]],root$1)}function sourceEvent(e){let t;for(;t=e.sourceEvent;)e=t;return e}function pointer(e,t){if(e=sourceEvent(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const nonpassivecapture={capture:!0,passive:!1};function noevent$1(e){e.preventDefault(),e.stopImmediatePropagation()}function dragDisable(e){var t=e.document.documentElement,n=xt(e).on("dragstart.drag",noevent$1,nonpassivecapture);"onselectstart"in t?n.on("selectstart.drag",noevent$1,nonpassivecapture):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function yesdrag(e,t){var n=e.document.documentElement,r=xt(e).on("dragstart.drag",null);t&&(r.on("click.drag",noevent$1,nonpassivecapture),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function define(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function extend(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=reHex.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?rgbn(t):n===3?new Rgb(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rgba(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rgba(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=reRgbInteger.exec(e))?new Rgb(t[1],t[2],t[3],1):(t=reRgbPercent.exec(e))?new Rgb(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=reRgbaInteger.exec(e))?rgba(t[1],t[2],t[3],t[4]):(t=reRgbaPercent.exec(e))?rgba(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=reHslPercent.exec(e))?hsla(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent.exec(e))?hsla(t[1],t[2]/100,t[3]/100,t[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rgb(e,t,n,r)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb(e,t,n,r){return arguments.length===1?rgbConvert(e):new Rgb(e,t,n,r??1)}function Rgb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}define(Rgb,rgb,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl(e,t,n,r)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),o=NaN,l=s-i,d=(s+i)/2;return l?(t===s?o=(n-r)/l+(n<r)*6:n===s?o=(r-t)/l+2:o=(t-n)/l+4,l/=d<.5?s+i:2-s-i,o*=60):l=d>0&&d<1?0:o,new Hsl(o,l,d,e.opacity)}function hsl(e,t,n,r){return arguments.length===1?hslConvert(e):new Hsl(e,t,n,r??1)}function Hsl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}define(Hsl,hsl,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Rgb(hsl2rgb(e>=240?e-240:e+120,i,r),hsl2rgb(e,i,r),hsl2rgb(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const constant$2=e=>()=>e;function linear(e,t){return function(n){return e+n*t}}function exponential(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function gamma(e){return(e=+e)==1?nogamma:function(t,n){return n-t?exponential(t,n,e):constant$2(isNaN(t)?n:t)}}function nogamma(e,t){var n=t-e;return n?linear(e,n):constant$2(isNaN(e)?t:e)}const interpolateRgb=function e(t){var n=gamma(t);function r(i,s){var o=n((i=rgb(i)).r,(s=rgb(s)).r),l=n(i.g,s.g),d=n(i.b,s.b),f=nogamma(i.opacity,s.opacity);return function(m){return i.r=o(m),i.g=l(m),i.b=d(m),i.opacity=f(m),i+""}}return r.gamma=e,r}(1);function interpolateNumber(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(t){return e(t)+""}}function interpolateString(e,t){var n=reA.lastIndex=reB.lastIndex=0,r,i,s,o=-1,l=[],d=[];for(e=e+"",t=t+"";(r=reA.exec(e))&&(i=reB.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,d.push({i:o,x:interpolateNumber(r,i)})),n=reB.lastIndex;return n<t.length&&(s=t.slice(n),l[o]?l[o]+=s:l[++o]=s),l.length<2?d[0]?one(d[0].x):zero(t):(t=d.length,function(f){for(var m=0,g;m<t;++m)l[(g=d[m]).i]=g.x(f);return l.join("")})}var degrees=180/Math.PI,identity$1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(e,t,n,r,i,s){var o,l,d;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(d=e*n+t*r)&&(n-=e*d,r-=t*d),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,d/=l),e*r<t*n&&(e=-e,t=-t,d=-d,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(t,e)*degrees,skewX:Math.atan(d)*degrees,scaleX:o,scaleY:l}}var svgNode;function parseCss(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?identity$1:decompose(t.a,t.b,t.c,t.d,t.e,t.f)}function parseSvg(e){return e==null||(svgNode||(svgNode=document.createElementNS("http://www.w3.org/2000/svg","g")),svgNode.setAttribute("transform",e),!(e=svgNode.transform.baseVal.consolidate()))?identity$1:(e=e.matrix,decompose(e.a,e.b,e.c,e.d,e.e,e.f))}function interpolateTransform(e,t,n,r){function i(f){return f.length?f.pop()+" ":""}function s(f,m,g,E,w,C){if(f!==g||m!==E){var I=w.push("translate(",null,t,null,n);C.push({i:I-4,x:interpolateNumber(f,g)},{i:I-2,x:interpolateNumber(m,E)})}else(g||E)&&w.push("translate("+g+t+E+n)}function o(f,m,g,E){f!==m?(f-m>180?m+=360:m-f>180&&(f+=360),E.push({i:g.push(i(g)+"rotate(",null,r)-2,x:interpolateNumber(f,m)})):m&&g.push(i(g)+"rotate("+m+r)}function l(f,m,g,E){f!==m?E.push({i:g.push(i(g)+"skewX(",null,r)-2,x:interpolateNumber(f,m)}):m&&g.push(i(g)+"skewX("+m+r)}function d(f,m,g,E,w,C){if(f!==g||m!==E){var I=w.push(i(w)+"scale(",null,",",null,")");C.push({i:I-4,x:interpolateNumber(f,g)},{i:I-2,x:interpolateNumber(m,E)})}else(g!==1||E!==1)&&w.push(i(w)+"scale("+g+","+E+")")}return function(f,m){var g=[],E=[];return f=e(f),m=e(m),s(f.translateX,f.translateY,m.translateX,m.translateY,g,E),o(f.rotate,m.rotate,g,E),l(f.skewX,m.skewX,g,E),d(f.scaleX,f.scaleY,m.scaleX,m.scaleY,g,E),f=m=null,function(w){for(var C=-1,I=E.length,D;++C<I;)g[(D=E[C]).i]=D.x(w);return g.join("")}}}var interpolateTransformCss=interpolateTransform(parseCss,"px, ","px)","deg)"),interpolateTransformSvg=interpolateTransform(parseSvg,", ",")",")"),epsilon2=1e-12;function cosh(e){return((e=Math.exp(e))+1/e)/2}function sinh(e){return((e=Math.exp(e))-1/e)/2}function tanh(e){return((e=Math.exp(2*e))-1)/(e+1)}const interpolateZoom=function e(t,n,r){function i(s,o){var l=s[0],d=s[1],f=s[2],m=o[0],g=o[1],E=o[2],w=m-l,C=g-d,I=w*w+C*C,D,L;if(I<epsilon2)L=Math.log(E/f)/t,D=function(ye){return[l+ye*w,d+ye*C,f*Math.exp(t*ye*L)]};else{var Y=Math.sqrt(I),G=(E*E-f*f+r*I)/(2*f*n*Y),z=(E*E-f*f-r*I)/(2*E*n*Y),K=Math.log(Math.sqrt(G*G+1)-G),X=Math.log(Math.sqrt(z*z+1)-z);L=(X-K)/t,D=function(ye){var be=ye*L,Ce=cosh(K),Ne=f/(n*Y)*(Ce*tanh(t*be+K)-sinh(K));return[l+Ne*w,d+Ne*C,f*Ce/cosh(t*be+K)]}}return D.duration=L*1e3*t/Math.SQRT2,D}return i.rho=function(s){var o=Math.max(.001,+s),l=o*o,d=l*l;return e(o,l,d)},i}(Math.SQRT2,2,4);var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(e,t,n,r,i,s){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;create(e,n,{name:t,index:r,group:i,on:emptyOn,tween:emptyTween,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:CREATED})}function init(e,t){var n=get$1(e,t);if(n.state>CREATED)throw new Error("too late; already scheduled");return n}function set$1(e,t){var n=get$1(e,t);if(n.state>STARTED)throw new Error("too late; already running");return n}function get$1(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function create(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=timer(s,0,n.time);function s(f){n.state=SCHEDULED,n.timer.restart(o,n.delay,n.time),n.delay<=f&&o(f-n.delay)}function o(f){var m,g,E,w;if(n.state!==SCHEDULED)return d();for(m in r)if(w=r[m],w.name===n.name){if(w.state===STARTED)return timeout(o);w.state===RUNNING?(w.state=ENDED,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete r[m]):+m<t&&(w.state=ENDED,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete r[m])}if(timeout(function(){n.state===STARTED&&(n.state=RUNNING,n.timer.restart(l,n.delay,n.time),l(f))}),n.state=STARTING,n.on.call("start",e,e.__data__,n.index,n.group),n.state===STARTING){for(n.state=STARTED,i=new Array(E=n.tween.length),m=0,g=-1;m<E;++m)(w=n.tween[m].value.call(e,e.__data__,n.index,n.group))&&(i[++g]=w);i.length=g+1}}function l(f){for(var m=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(d),n.state=ENDING,1),g=-1,E=i.length;++g<E;)i[g].call(e,m);n.state===ENDING&&(n.on.call("end",e,e.__data__,n.index,n.group),d())}function d(){n.state=ENDED,n.timer.stop(),delete r[t];for(var f in r)return;delete e.__transition}}function interrupt(e,t){var n=e.__transition,r,i,s=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){s=!1;continue}i=r.state>STARTING&&r.state<ENDING,r.state=ENDED,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}s&&delete e.__transition}}function selection_interrupt(e){return this.each(function(){interrupt(this,e)})}function tweenRemove(e,t){var n,r;return function(){var i=set$1(this,e),s=i.tween;if(s!==n){r=n=s;for(var o=0,l=r.length;o<l;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function tweenFunction(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=set$1(this,e),o=s.tween;if(o!==r){i=(r=o).slice();for(var l={name:t,value:n},d=0,f=i.length;d<f;++d)if(i[d].name===t){i[d]=l;break}d===f&&i.push(l)}s.tween=i}}function transition_tween(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=get$1(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?tweenRemove:tweenFunction)(n,e,t))}function tweenValue(e,t,n){var r=e._id;return e.each(function(){var i=set$1(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return get$1(i,r).value[t]}}function interpolate(e,t){var n;return(typeof t=="number"?interpolateNumber:t instanceof color?interpolateRgb:(n=color(t))?(t=n,interpolateRgb):interpolateString)(e,t)}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,t,n){var r,i=n+"",s;return function(){var o=this.getAttribute(e);return o===i?null:o===r?s:s=t(r=o,n)}}function attrConstantNS(e,t,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?s:s=t(r=o,n)}}function attrFunction(e,t,n){var r,i,s;return function(){var o,l=n(this),d;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),d=l+"",o===d?null:o===r&&d===i?s:(i=d,s=t(r=o,l)))}}function attrFunctionNS(e,t,n){var r,i,s;return function(){var o,l=n(this),d;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),d=l+"",o===d?null:o===r&&d===i?s:(i=d,s=t(r=o,l)))}}function transition_attr(e,t){var n=namespace(e),r=n==="transform"?interpolateTransformSvg:interpolate;return this.attrTween(e,typeof t=="function"?(n.local?attrFunctionNS:attrFunction)(n,r,tweenValue(this,"attr."+e,t)):t==null?(n.local?attrRemoveNS:attrRemove)(n):(n.local?attrConstantNS:attrConstant)(n,r,t))}function attrInterpolate(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function attrInterpolateNS(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function attrTweenNS(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&attrInterpolateNS(e,s)),n}return i._value=t,i}function attrTween(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&attrInterpolate(e,s)),n}return i._value=t,i}function transition_attrTween(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=namespace(e);return this.tween(n,(r.local?attrTweenNS:attrTween)(r,t))}function delayFunction(e,t){return function(){init(this,e).delay=+t.apply(this,arguments)}}function delayConstant(e,t){return t=+t,function(){init(this,e).delay=t}}function transition_delay(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?delayFunction:delayConstant)(t,e)):get$1(this.node(),t).delay}function durationFunction(e,t){return function(){set$1(this,e).duration=+t.apply(this,arguments)}}function durationConstant(e,t){return t=+t,function(){set$1(this,e).duration=t}}function transition_duration(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?durationFunction:durationConstant)(t,e)):get$1(this.node(),t).duration}function easeConstant(e,t){if(typeof t!="function")throw new Error;return function(){set$1(this,e).ease=t}}function transition_ease(e){var t=this._id;return arguments.length?this.each(easeConstant(t,e)):get$1(this.node(),t).ease}function easeVarying(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;set$1(this,e).ease=n}}function transition_easeVarying(e){if(typeof e!="function")throw new Error;return this.each(easeVarying(this._id,e))}function transition_filter(e){typeof e!="function"&&(e=matcher(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],o=s.length,l=r[i]=[],d,f=0;f<o;++f)(d=s[f])&&e.call(d,d.__data__,f,s)&&l.push(d);return new Transition(r,this._parents,this._name,this._id)}function transition_merge(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,s=Math.min(r,i),o=new Array(r),l=0;l<s;++l)for(var d=t[l],f=n[l],m=d.length,g=o[l]=new Array(m),E,w=0;w<m;++w)(E=d[w]||f[w])&&(g[w]=E);for(;l<r;++l)o[l]=t[l];return new Transition(o,this._parents,this._name,this._id)}function start(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function onFunction(e,t,n){var r,i,s=start(t)?init:set$1;return function(){var o=s(this,e),l=o.on;l!==r&&(i=(r=l).copy()).on(t,n),o.on=i}}function transition_on(e,t){var n=this._id;return arguments.length<2?get$1(this.node(),n).on.on(e):this.each(onFunction(n,e,t))}function removeFunction(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(e){var t=this._name,n=this._id;typeof e!="function"&&(e=selector(e));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var l=r[o],d=l.length,f=s[o]=new Array(d),m,g,E=0;E<d;++E)(m=l[E])&&(g=e.call(m,m.__data__,E,l))&&("__data__"in m&&(g.__data__=m.__data__),f[E]=g,schedule(f[E],t,n,E,f,get$1(m,n)));return new Transition(s,this._parents,t,n)}function transition_selectAll(e){var t=this._name,n=this._id;typeof e!="function"&&(e=selectorAll(e));for(var r=this._groups,i=r.length,s=[],o=[],l=0;l<i;++l)for(var d=r[l],f=d.length,m,g=0;g<f;++g)if(m=d[g]){for(var E=e.call(m,m.__data__,g,d),w,C=get$1(m,n),I=0,D=E.length;I<D;++I)(w=E[I])&&schedule(w,t,n,I,E,C);s.push(E),o.push(m)}return new Transition(s,o,t,n)}var Selection=selection.prototype.constructor;function transition_selection(){return new Selection(this._groups,this._parents)}function styleNull(e,t){var n,r,i;return function(){var s=styleValue(this,e),o=(this.style.removeProperty(e),styleValue(this,e));return s===o?null:s===n&&o===r?i:i=t(n=s,r=o)}}function styleRemove(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,t,n){var r,i=n+"",s;return function(){var o=styleValue(this,e);return o===i?null:o===r?s:s=t(r=o,n)}}function styleFunction(e,t,n){var r,i,s;return function(){var o=styleValue(this,e),l=n(this),d=l+"";return l==null&&(d=l=(this.style.removeProperty(e),styleValue(this,e))),o===d?null:o===r&&d===i?s:(i=d,s=t(r=o,l))}}function styleMaybeRemove(e,t){var n,r,i,s="style."+t,o="end."+s,l;return function(){var d=set$1(this,e),f=d.on,m=d.value[s]==null?l||(l=styleRemove(t)):void 0;(f!==n||i!==m)&&(r=(n=f).copy()).on(o,i=m),d.on=r}}function transition_style(e,t,n){var r=(e+="")=="transform"?interpolateTransformCss:interpolate;return t==null?this.styleTween(e,styleNull(e,r)).on("end.style."+e,styleRemove(e)):typeof t=="function"?this.styleTween(e,styleFunction(e,r,tweenValue(this,"style."+e,t))).each(styleMaybeRemove(this._id,e)):this.styleTween(e,styleConstant(e,r,t),n).on("end.style."+e,null)}function styleInterpolate(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function styleTween(e,t,n){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&styleInterpolate(e,o,n)),r}return s._value=t,s}function transition_styleTween(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,styleTween(e,t,n??""))}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var t=e(this);this.textContent=t??""}}function transition_text(e){return this.tween("text",typeof e=="function"?textFunction(tweenValue(this,"text",e)):textConstant(e==null?"":e+""))}function textInterpolate(e){return function(t){this.textContent=e.call(this,t)}}function textTween(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&textInterpolate(i)),t}return r._value=e,r}function transition_textTween(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,textTween(e))}function transition_transition(){for(var e=this._name,t=this._id,n=newId(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],l=o.length,d,f=0;f<l;++f)if(d=o[f]){var m=get$1(d,t);schedule(d,e,n,f,o,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new Transition(r,this._parents,e,n)}function transition_end(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var l={value:o},d={value:function(){--i===0&&s()}};n.each(function(){var f=set$1(this,r),m=f.on;m!==e&&(t=(e=m).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(d)),f.on=t}),i===0&&s()})}var id=0;function Transition(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function newId(){return++id}var selection_prototype=selection.prototype;Transition.prototype={constructor:Transition,select:transition_select,selectAll:transition_selectAll,selectChild:selection_prototype.selectChild,selectChildren:selection_prototype.selectChildren,filter:transition_filter,merge:transition_merge,selection:transition_selection,transition:transition_transition,call:selection_prototype.call,nodes:selection_prototype.nodes,node:selection_prototype.node,size:selection_prototype.size,empty:selection_prototype.empty,each:selection_prototype.each,on:transition_on,attr:transition_attr,attrTween:transition_attrTween,style:transition_style,styleTween:transition_styleTween,text:transition_text,textTween:transition_textTween,remove:transition_remove,tween:transition_tween,delay:transition_delay,duration:transition_duration,ease:transition_ease,easeVarying:transition_easeVarying,end:transition_end,[Symbol.iterator]:selection_prototype[Symbol.iterator]};function cubicInOut(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var defaultTiming={time:null,delay:0,duration:250,ease:cubicInOut};function inherit(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function selection_transition(e){var t,n;e instanceof Transition?(t=e._id,e=e._name):(t=newId(),(n=defaultTiming).time=now(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],l=o.length,d,f=0;f<l;++f)(d=o[f])&&schedule(d,e,t,f,o,n||inherit(d,t));return new Transition(r,this._parents,e,t)}selection.prototype.interrupt=selection_interrupt;selection.prototype.transition=selection_transition;const pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function append$2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function appendRound(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return append$2;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Path{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?append$2:appendRound(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,d=r-t,f=i-n,m=o-t,g=l-n,E=m*m+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(E>epsilon)if(!(Math.abs(g*d-f*m)>epsilon)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let w=r-o,C=i-l,I=d*d+f*f,D=w*w+C*C,L=Math.sqrt(I),Y=Math.sqrt(E),G=s*Math.tan((pi-Math.acos((I+E-D)/(2*L*Y)))/2),z=G/Y,K=G/L;Math.abs(z-1)>epsilon&&this._append`L${t+z*m},${n+z*g}`,this._append`A${s},${s},0,0,${+(g*w>m*C)},${this._x1=t+K*d},${this._y1=n+K*f}`}}arc(t,n,r,i,s,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),d=r*Math.sin(i),f=t+l,m=n+d,g=1^o,E=o?i-s:s-i;this._x1===null?this._append`M${f},${m}`:(Math.abs(this._x1-f)>epsilon||Math.abs(this._y1-m)>epsilon)&&this._append`L${f},${m}`,r&&(E<0&&(E=E%tau+tau),E>tauEpsilon?this._append`A${r},${r},0,1,${g},${t-l},${n-d}A${r},${r},0,1,${g},${this._x1=f},${this._y1=m}`:E>epsilon&&this._append`A${r},${r},0,${+(E>=pi)},${g},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function initRange(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,t=[],n=[],r=implicit;function i(s){let o=e.get(s);if(o===void 0){if(r!==implicit)return r;e.set(s,o=t.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new InternMap;for(const o of s)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return ordinal(t,n).unknown(r)},initRange.apply(i,arguments),i}function colors(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const mt=colors("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function constant$1(e){return function(){return e}}function withPath(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Path(t)}var slice$1=Array.prototype.slice;function x(e){return e[0]}function y(e){return e[1]}class Bump{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function bumpX(e){return new Bump(e,!0)}function linkSource(e){return e.source}function linkTarget(e){return e.target}function link$1(e){let t=linkSource,n=linkTarget,r=x,i=y,s=null,o=null,l=withPath(d);function d(){let f;const m=slice$1.call(arguments),g=t.apply(this,m),E=n.apply(this,m);if(s==null&&(o=e(f=l())),o.lineStart(),m[0]=g,o.point(+r.apply(this,m),+i.apply(this,m)),m[0]=E,o.point(+r.apply(this,m),+i.apply(this,m)),o.lineEnd(),f)return o=null,f+""||null}return d.source=function(f){return arguments.length?(t=f,d):t},d.target=function(f){return arguments.length?(n=f,d):n},d.x=function(f){return arguments.length?(r=typeof f=="function"?f:constant$1(+f),d):r},d.y=function(f){return arguments.length?(i=typeof f=="function"?f:constant$1(+f),d):i},d.context=function(f){return arguments.length?(f==null?s=o=null:o=e(s=f),d):s},d}function linkHorizontal(){return link$1(bumpX)}const constant=e=>()=>e;function ZoomEvent(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Transform(e,t,n){this.k=e,this.x=t,this.y=n}Transform.prototype={constructor:Transform,scale:function(e){return e===1?this:new Transform(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Transform(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var identity=new Transform(1,0,0);transform.prototype=Transform.prototype;function transform(e){for(;!e.__zoom;)if(!(e=e.parentNode))return identity;return e.__zoom}function nopropagation(e){e.stopImmediatePropagation()}function noevent(e){e.preventDefault(),e.stopImmediatePropagation()}function defaultFilter(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function defaultExtent(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function defaultTransform(){return this.__zoom||identity}function defaultWheelDelta(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function defaultTouchable(){return navigator.maxTouchPoints||"ontouchstart"in this}function defaultConstrain(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],s=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function yt(){var e=defaultFilter,t=defaultExtent,n=defaultConstrain,r=defaultWheelDelta,i=defaultTouchable,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,d=interpolateZoom,f=dispatch("start","zoom","end"),m,g,E,w=500,C=150,I=0,D=10;function L(Ee){Ee.property("__zoom",defaultTransform).on("wheel.zoom",be,{passive:!1}).on("mousedown.zoom",Ce).on("dblclick.zoom",Ne).filter(i).on("touchstart.zoom",He).on("touchmove.zoom",Fe).on("touchend.zoom touchcancel.zoom",Xe).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}L.transform=function(Ee,$e,Ie,we){var De=Ee.selection?Ee.selection():Ee;De.property("__zoom",defaultTransform),Ee!==De?K(Ee,$e,Ie,we):De.interrupt().each(function(){X(this,arguments).event(we).start().zoom(null,typeof $e=="function"?$e.apply(this,arguments):$e).end()})},L.scaleBy=function(Ee,$e,Ie,we){L.scaleTo(Ee,function(){var De=this.__zoom.k,qe=typeof $e=="function"?$e.apply(this,arguments):$e;return De*qe},Ie,we)},L.scaleTo=function(Ee,$e,Ie,we){L.transform(Ee,function(){var De=t.apply(this,arguments),qe=this.__zoom,Ge=Ie==null?z(De):typeof Ie=="function"?Ie.apply(this,arguments):Ie,Oe=qe.invert(Ge),fe=typeof $e=="function"?$e.apply(this,arguments):$e;return n(G(Y(qe,fe),Ge,Oe),De,o)},Ie,we)},L.translateBy=function(Ee,$e,Ie,we){L.transform(Ee,function(){return n(this.__zoom.translate(typeof $e=="function"?$e.apply(this,arguments):$e,typeof Ie=="function"?Ie.apply(this,arguments):Ie),t.apply(this,arguments),o)},null,we)},L.translateTo=function(Ee,$e,Ie,we,De){L.transform(Ee,function(){var qe=t.apply(this,arguments),Ge=this.__zoom,Oe=we==null?z(qe):typeof we=="function"?we.apply(this,arguments):we;return n(identity.translate(Oe[0],Oe[1]).scale(Ge.k).translate(typeof $e=="function"?-$e.apply(this,arguments):-$e,typeof Ie=="function"?-Ie.apply(this,arguments):-Ie),qe,o)},we,De)};function Y(Ee,$e){return $e=Math.max(s[0],Math.min(s[1],$e)),$e===Ee.k?Ee:new Transform($e,Ee.x,Ee.y)}function G(Ee,$e,Ie){var we=$e[0]-Ie[0]*Ee.k,De=$e[1]-Ie[1]*Ee.k;return we===Ee.x&&De===Ee.y?Ee:new Transform(Ee.k,we,De)}function z(Ee){return[(+Ee[0][0]+ +Ee[1][0])/2,(+Ee[0][1]+ +Ee[1][1])/2]}function K(Ee,$e,Ie,we){Ee.on("start.zoom",function(){X(this,arguments).event(we).start()}).on("interrupt.zoom end.zoom",function(){X(this,arguments).event(we).end()}).tween("zoom",function(){var De=this,qe=arguments,Ge=X(De,qe).event(we),Oe=t.apply(De,qe),fe=Ie==null?z(Oe):typeof Ie=="function"?Ie.apply(De,qe):Ie,Te=Math.max(Oe[1][0]-Oe[0][0],Oe[1][1]-Oe[0][1]),Re=De.__zoom,Ve=typeof $e=="function"?$e.apply(De,qe):$e,je=d(Re.invert(fe).concat(Te/Re.k),Ve.invert(fe).concat(Te/Ve.k));return function(Je){if(Je===1)Je=Ve;else{var dt=je(Je),Yt=Te/dt[2];Je=new Transform(Yt,fe[0]-dt[0]*Yt,fe[1]-dt[1]*Yt)}Ge.zoom(null,Je)}})}function X(Ee,$e,Ie){return!Ie&&Ee.__zooming||new ye(Ee,$e)}function ye(Ee,$e){this.that=Ee,this.args=$e,this.active=0,this.sourceEvent=null,this.extent=t.apply(Ee,$e),this.taps=0}ye.prototype={event:function(Ee){return Ee&&(this.sourceEvent=Ee),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Ee,$e){return this.mouse&&Ee!=="mouse"&&(this.mouse[1]=$e.invert(this.mouse[0])),this.touch0&&Ee!=="touch"&&(this.touch0[1]=$e.invert(this.touch0[0])),this.touch1&&Ee!=="touch"&&(this.touch1[1]=$e.invert(this.touch1[0])),this.that.__zoom=$e,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Ee){var $e=xt(this.that).datum();f.call(Ee,this.that,new ZoomEvent(Ee,{sourceEvent:this.sourceEvent,target:L,transform:this.that.__zoom,dispatch:f}),$e)}};function be(Ee,...$e){if(!e.apply(this,arguments))return;var Ie=X(this,$e).event(Ee),we=this.__zoom,De=Math.max(s[0],Math.min(s[1],we.k*Math.pow(2,r.apply(this,arguments)))),qe=pointer(Ee);if(Ie.wheel)(Ie.mouse[0][0]!==qe[0]||Ie.mouse[0][1]!==qe[1])&&(Ie.mouse[1]=we.invert(Ie.mouse[0]=qe)),clearTimeout(Ie.wheel);else{if(we.k===De)return;Ie.mouse=[qe,we.invert(qe)],interrupt(this),Ie.start()}noevent(Ee),Ie.wheel=setTimeout(Ge,C),Ie.zoom("mouse",n(G(Y(we,De),Ie.mouse[0],Ie.mouse[1]),Ie.extent,o));function Ge(){Ie.wheel=null,Ie.end()}}function Ce(Ee,...$e){if(E||!e.apply(this,arguments))return;var Ie=Ee.currentTarget,we=X(this,$e,!0).event(Ee),De=xt(Ee.view).on("mousemove.zoom",fe,!0).on("mouseup.zoom",Te,!0),qe=pointer(Ee,Ie),Ge=Ee.clientX,Oe=Ee.clientY;dragDisable(Ee.view),nopropagation(Ee),we.mouse=[qe,this.__zoom.invert(qe)],interrupt(this),we.start();function fe(Re){if(noevent(Re),!we.moved){var Ve=Re.clientX-Ge,je=Re.clientY-Oe;we.moved=Ve*Ve+je*je>I}we.event(Re).zoom("mouse",n(G(we.that.__zoom,we.mouse[0]=pointer(Re,Ie),we.mouse[1]),we.extent,o))}function Te(Re){De.on("mousemove.zoom mouseup.zoom",null),yesdrag(Re.view,we.moved),noevent(Re),we.event(Re).end()}}function Ne(Ee,...$e){if(e.apply(this,arguments)){var Ie=this.__zoom,we=pointer(Ee.changedTouches?Ee.changedTouches[0]:Ee,this),De=Ie.invert(we),qe=Ie.k*(Ee.shiftKey?.5:2),Ge=n(G(Y(Ie,qe),we,De),t.apply(this,$e),o);noevent(Ee),l>0?xt(this).transition().duration(l).call(K,Ge,we,Ee):xt(this).call(L.transform,Ge,we,Ee)}}function He(Ee,...$e){if(e.apply(this,arguments)){var Ie=Ee.touches,we=Ie.length,De=X(this,$e,Ee.changedTouches.length===we).event(Ee),qe,Ge,Oe,fe;for(nopropagation(Ee),Ge=0;Ge<we;++Ge)Oe=Ie[Ge],fe=pointer(Oe,this),fe=[fe,this.__zoom.invert(fe),Oe.identifier],De.touch0?!De.touch1&&De.touch0[2]!==fe[2]&&(De.touch1=fe,De.taps=0):(De.touch0=fe,qe=!0,De.taps=1+!!m);m&&(m=clearTimeout(m)),qe&&(De.taps<2&&(g=fe[0],m=setTimeout(function(){m=null},w)),interrupt(this),De.start())}}function Fe(Ee,...$e){if(this.__zooming){var Ie=X(this,$e).event(Ee),we=Ee.changedTouches,De=we.length,qe,Ge,Oe,fe;for(noevent(Ee),qe=0;qe<De;++qe)Ge=we[qe],Oe=pointer(Ge,this),Ie.touch0&&Ie.touch0[2]===Ge.identifier?Ie.touch0[0]=Oe:Ie.touch1&&Ie.touch1[2]===Ge.identifier&&(Ie.touch1[0]=Oe);if(Ge=Ie.that.__zoom,Ie.touch1){var Te=Ie.touch0[0],Re=Ie.touch0[1],Ve=Ie.touch1[0],je=Ie.touch1[1],Je=(Je=Ve[0]-Te[0])*Je+(Je=Ve[1]-Te[1])*Je,dt=(dt=je[0]-Re[0])*dt+(dt=je[1]-Re[1])*dt;Ge=Y(Ge,Math.sqrt(Je/dt)),Oe=[(Te[0]+Ve[0])/2,(Te[1]+Ve[1])/2],fe=[(Re[0]+je[0])/2,(Re[1]+je[1])/2]}else if(Ie.touch0)Oe=Ie.touch0[0],fe=Ie.touch0[1];else return;Ie.zoom("touch",n(G(Ge,Oe,fe),Ie.extent,o))}}function Xe(Ee,...$e){if(this.__zooming){var Ie=X(this,$e).event(Ee),we=Ee.changedTouches,De=we.length,qe,Ge;for(nopropagation(Ee),E&&clearTimeout(E),E=setTimeout(function(){E=null},w),qe=0;qe<De;++qe)Ge=we[qe],Ie.touch0&&Ie.touch0[2]===Ge.identifier?delete Ie.touch0:Ie.touch1&&Ie.touch1[2]===Ge.identifier&&delete Ie.touch1;if(Ie.touch1&&!Ie.touch0&&(Ie.touch0=Ie.touch1,delete Ie.touch1),Ie.touch0)Ie.touch0[1]=this.__zoom.invert(Ie.touch0[0]);else if(Ie.end(),Ie.taps===2&&(Ge=pointer(Ge,this),Math.hypot(g[0]-Ge[0],g[1]-Ge[1])<D)){var Oe=xt(this).on("dblclick.zoom");Oe&&Oe.apply(this,arguments)}}}return L.wheelDelta=function(Ee){return arguments.length?(r=typeof Ee=="function"?Ee:constant(+Ee),L):r},L.filter=function(Ee){return arguments.length?(e=typeof Ee=="function"?Ee:constant(!!Ee),L):e},L.touchable=function(Ee){return arguments.length?(i=typeof Ee=="function"?Ee:constant(!!Ee),L):i},L.extent=function(Ee){return arguments.length?(t=typeof Ee=="function"?Ee:constant([[+Ee[0][0],+Ee[0][1]],[+Ee[1][0],+Ee[1][1]]]),L):t},L.scaleExtent=function(Ee){return arguments.length?(s[0]=+Ee[0],s[1]=+Ee[1],L):[s[0],s[1]]},L.translateExtent=function(Ee){return arguments.length?(o[0][0]=+Ee[0][0],o[1][0]=+Ee[1][0],o[0][1]=+Ee[0][1],o[1][1]=+Ee[1][1],L):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},L.constrain=function(Ee){return arguments.length?(n=Ee,L):n},L.duration=function(Ee){return arguments.length?(l=+Ee,L):l},L.interpolate=function(Ee){return arguments.length?(d=Ee,L):d},L.on=function(){var Ee=f.on.apply(f,arguments);return Ee===f?L:Ee},L.clickDistance=function(Ee){return arguments.length?(I=(Ee=+Ee)*Ee,L):Math.sqrt(I)},L.tapDistance=function(Ee){return arguments.length?(D=+Ee,L):D},L}const Z$1=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh"),bt=ordinal(mt),q=(e=1,t=3,n=2)=>r=>e+t/n**r.state.depth,J={autoFit:!1,duration:500,embedGlobalCSS:!0,fitRatio:.95,maxInitialScale:2,scrollForPan:Z$1,initialExpandLevel:-1,zoom:!0,pan:!0,toggleRecursively:!1,color:e=>{var t;return bt(`${((t=e.state)==null?void 0:t.path)||""}`)},lineWidth:q(),maxWidth:0,nodeMinHeight:16,paddingX:8,spacingHorizontal:80,spacingVertical:5};function ke(e){const t={},n={...e},{color:r,colorFreezeLevel:i,lineWidth:s}=n;if((r==null?void 0:r.length)===1){const o=r[0];t.color=()=>o}else if(r!=null&&r.length){const o=ordinal(r);t.color=l=>o(`${l.state.path}`)}if(i){const o=t.color||J.color;t.color=l=>(l={...l,state:{...l.state,path:l.state.path.split(".").slice(0,i).join(".")}},o(l))}if(s){const o=Array.isArray(s)?s:[s,0,1];t.lineWidth=q(...o)}return["duration","fitRatio","initialExpandLevel","maxInitialScale","maxWidth","nodeMinHeight","paddingX","spacingHorizontal","spacingVertical"].forEach(o=>{const l=n[o];typeof l=="number"&&(t[o]=l)}),["zoom","pan"].forEach(o=>{const l=n[o];l!=null&&(t[o]=!!l)}),t}function Et(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}function v(e){if(typeof e=="string"){const n=e;e=r=>r.matches(n)}const t=e;return function(){let n=Array.from(this.childNodes);return t&&(n=n.filter(r=>t(r))),n}}function zt(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function wt(){return this.eachAfter(zt)}function Ct(e){var t=this,n,r=[t],i,s,o;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(s=0,o=i.length;s<o;++s)r.push(i[s]);while(r.length);return this}function St(e){for(var t=this,n=[t],r,i;t=n.pop();)if(e(t),r=t.children,r)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function Rt(e){for(var t=this,n=[t],r=[],i,s,o;t=n.pop();)if(r.push(t),i=t.children,i)for(s=0,o=i.length;s<o;++s)n.push(i[s]);for(;t=r.pop();)e(t);return this}function Xt(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function jt(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function _t(e){for(var t=this,n=Ot(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Ot(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Mt(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function At(){var e=[];return this.each(function(t){e.push(t)}),e}function Tt(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Ht(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function H(e,t){var n=new j(e),r=+e.value&&(n.value=e.value),i,s=[n],o,l,d,f;for(t==null&&(t=Ft);i=s.pop();)if(r&&(i.value=+i.data.value),(l=t(i.data))&&(f=l.length))for(i.children=new Array(f),d=f-1;d>=0;--d)s.push(o=i.children[d]=new j(l[d])),o.parent=i,o.depth=i.depth+1;return n.eachBefore(Dt)}function Bt(){return H(this).eachBefore(Lt)}function Ft(e){return e.children}function Lt(e){e.data=e.data.data}function Dt(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=H.prototype={constructor:j,count:wt,each:Ct,eachAfter:Rt,eachBefore:St,sum:Xt,sort:jt,path:_t,ancestors:Mt,descendants:At,leaves:Tt,links:Ht,copy:Bt};const Nt="2.1.2",Qt={version:Nt},{version:te}=Qt,ee=Object.freeze({children:e=>e.children,nodeSize:e=>e.data.size,spacing:0});function tt(e){const t=Object.assign({},ee,e);function n(l){const d=t[l];return typeof d=="function"?d:()=>d}function r(l){const d=o(s(),l,f=>f.children);return d.update(),d.data}function i(){const l=n("nodeSize"),d=n("spacing");return class $s extends H.prototype.constructor{constructor(m){super(m)}copy(){const m=o(this.constructor,this,g=>g.children);return m.each(g=>g.data=g.data.data),m}get size(){return l(this)}spacing(m){return d(this,m)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const m=this.ancestors();return m[m.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((m,g)=>$s.maxExtents(m,g.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(m,g){return{top:Math.min(m.top,g.top),bottom:Math.max(m.bottom,g.bottom),left:Math.min(m.left,g.left),right:Math.max(m.right,g.right)}}}}function s(){const l=i(),d=n("nodeSize"),f=n("spacing");return class extends l{constructor(m){super(m),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return d(this.data)}spacing(m){return f(this.data,m.data)}get x(){return this.data.x}set x(m){this.data.x=m}get y(){return this.data.y}set y(m){this.data.y=m}update(){return et(this),rt(this),this}}}function o(l,d,f){const m=(g,E)=>{const w=new l(g);Object.assign(w,{parent:E,depth:E===null?0:E.depth+1,height:0,length:1});const C=f(g)||[];return w.children=C.length===0?null:C.map(I=>m(I,w)),w.children&&Object.assign(w,w.children.reduce((I,D)=>({height:Math.max(I.height,D.height+1),length:I.length+D.length}),w)),w};return m(d,null)}return Object.assign(r,{nodeSize(l){return arguments.length?(t.nodeSize=l,r):t.nodeSize},spacing(l){return arguments.length?(t.spacing=l,r):t.spacing},children(l){return arguments.length?(t.children=l,r):t.children},hierarchy(l,d){const f=typeof d>"u"?t.children:d;return o(i(),l,f)},dump(l){const d=n("nodeSize"),f=m=>g=>{const E=m+" ",w=m+" ",{x:C,y:I}=g,D=d(g),L=g.children||[],Y=L.length===0?" ":`,${E}children: [${w}${L.map(f(w)).join(w)}${E}],${m}`;return`{ size: [${D.join(", ")}],${E}x: ${C}, y: ${I}${Y}},`};return f(`
- `)(l)}}),r}tt.version=te;const et=(e,t=0)=>(e.y=t,(e.children||[]).reduce((n,r)=>{const[i,s]=n;et(r,e.y+e.ySize);const o=(i===0?r.lExt:r.rExt).bottom;i!==0&&ne(e,i,s);const l=de(o,i,s);return[i+1,l]},[0,null]),re(e),he(e),e),rt=(e,t,n)=>{typeof t>"u"&&(t=-e.relX-e.prelim,n=0);const r=t+e.relX;return e.relX=r+e.prelim-n,e.prelim=0,e.x=n+e.relX,(e.children||[]).forEach(i=>rt(i,r,e.x)),e},re=e=>{(e.children||[]).reduce((t,n)=>{const[r,i]=t,s=r+n.shift,o=i+s+n.change;return n.relX+=o,[s,o]},[0,0])},ne=(e,t,n)=>{const r=e.children[t-1],i=e.children[t];let s=r,o=r.relX,l=i,d=i.relX,f=!0;for(;s&&l;){s.bottom>n.lowY&&(n=n.next);const m=o+s.prelim-(d+l.prelim)+s.xSize/2+l.xSize/2+s.spacing(l);(m>0||m<0&&f)&&(d+=m,ie(i,m),se(e,t,n.index,m)),f=!1;const g=s.bottom,E=l.bottom;g<=E&&(s=ae(s),s&&(o+=s.relX)),g>=E&&(l=oe(l),l&&(d+=l.relX))}!s&&l?le(e,t,l,d):s&&!l&&ce(e,t,s,o)},ie=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},se=(e,t,n,r)=>{const i=e.children[t],s=t-n;if(s>1){const o=r/s;e.children[n+1].shift+=o,i.shift-=o,i.change-=r-o}},oe=e=>e.hasChildren?e.firstChild:e.lThr,ae=e=>e.hasChildren?e.lastChild:e.rThr,le=(e,t,n,r)=>{const i=e.firstChild,s=i.lExt,o=e.children[t];s.lThr=n;const l=r-n.relX-i.lExtRelX;s.relX+=l,s.prelim-=l,i.lExt=o.lExt,i.lExtRelX=o.lExtRelX},ce=(e,t,n,r)=>{const i=e.children[t],s=i.rExt,o=e.children[t-1];s.rThr=n;const l=r-n.relX-i.rExtRelX;s.relX+=l,s.prelim-=l,i.rExt=o.rExt,i.rExtRelX=o.rExtRelX},he=e=>{if(e.hasChildren){const t=e.firstChild,n=e.lastChild,r=(t.prelim+t.relX-t.xSize/2+n.relX+n.prelim+n.xSize/2)/2;Object.assign(e,{prelim:r,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},de=(e,t,n)=>{for(;n!==null&&e>=n.lowY;)n=n.next;return{lowY:e,index:t,next:n}},nt=".markmap{--markmap-max-width: 9999px;--markmap-a-color: #0097e6;--markmap-a-hover-color: #00a8ff;--markmap-code-bg: #f0f0f0;--markmap-code-color: #555;--markmap-highlight-bg: #ffeaa7;--markmap-table-border: 1px solid currentColor;--markmap-font: 300 16px/20px sans-serif;--markmap-circle-open-bg: #fff;--markmap-text-color: #333;--markmap-highlight-node-bg: #ff02;font:var(--markmap-font);color:var(--markmap-text-color)}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign p{margin:0}.markmap-foreign a{color:var(--markmap-a-color)}.markmap-foreign a:hover{color:var(--markmap-a-hover-color)}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:var(--markmap-code-color);background-color:var(--markmap-code-bg);border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:var(--markmap-highlight-bg)}.markmap-foreign table,.markmap-foreign th,.markmap-foreign td{border-collapse:collapse;border:var(--markmap-table-border)}.markmap-foreign img{display:inline-block}.markmap-foreign svg{fill:currentColor}.markmap-foreign>div{width:var(--markmap-max-width);text-align:left}.markmap-foreign>div>div{display:inline-block}.markmap-highlight rect{fill:var(--markmap-highlight-node-bg)}.markmap-dark .markmap{--markmap-code-bg: #1a1b26;--markmap-code-color: #ddd;--markmap-circle-open-bg: #444;--markmap-text-color: #eee}",ve=nt,M="g.markmap-node",pe="path.markmap-link",ge="g.markmap-highlight",A=linkHorizontal();function U(e,t){const n=minIndex(e,t);return e[n]}function T(e){e.stopPropagation()}const ue=new Hook;class it{constructor(t,n){this.options={...J},this._disposeList=[],this.handleZoom=r=>{const{transform:i}=r;this.g.attr("transform",i)},this.handlePan=r=>{r.preventDefault();const i=transform(this.svg.node()),s=i.translate(-r.deltaX/i.k,-r.deltaY/i.k);this.svg.call(this.zoom.transform,s)},this.handleClick=(r,i)=>{let s=this.options.toggleRecursively;(Z$1?r.metaKey:r.ctrlKey)&&(s=!s),this.toggleNode(i,s)},this.ensureView=this.ensureVisible,this.svg=t.datum?t:xt(t),this.styleNode=this.svg.append("style"),this.zoom=yt().filter(r=>this.options.scrollForPan&&r.type==="wheel"?r.ctrlKey&&!r.button:(!r.ctrlKey||r.type==="wheel")&&!r.button).on("zoom",this.handleZoom),this.setOptions(n),this.state={id:this.options.id||this.svg.attr("id")||getId(),rect:{x1:0,y1:0,x2:0,y2:0}},this.g=this.svg.append("g"),this.g.append("g").attr("class","markmap-highlight"),this._observer=new ResizeObserver(debounce(()=>{this.renderData()},100)),this._disposeList.push(ue.tap(()=>{this.setData()}),()=>this._observer.disconnect())}getStyleContent(){const{style:t}=this.options,{id:n}=this.state,r=typeof t=="function"?t(n):"";return[this.options.embedGlobalCSS&&nt,r].filter(Boolean).join(`
- `)}updateStyle(){this.svg.attr("class",addClass$1(this.svg.attr("class"),"markmap",this.state.id));const t=this.getStyleContent();this.styleNode.text(t)}async toggleNode(t,n=!1){var r,i;const s=(r=t.payload)!=null&&r.fold?0:1;n?walkTree(t,(o,l)=>{o.payload={...o.payload,fold:s},l()}):t.payload={...t.payload,fold:(i=t.payload)!=null&&i.fold?0:1},await this.renderData(t)}_initializeData(t){let n=0;const{color:r,initialExpandLevel:i}=this.options;let s=0,o=0;return walkTree(t,(l,d,f)=>{var m,g,E,w;o+=1,l.children=(m=l.children)==null?void 0:m.map(I=>({...I})),n+=1,l.state={...l.state,depth:o,id:n,rect:{x:0,y:0,width:0,height:0},size:[0,0]},l.state.key=[(g=f==null?void 0:f.state)==null?void 0:g.id,l.state.id].filter(Boolean).join(".")+Et(l.content),l.state.path=[(E=f==null?void 0:f.state)==null?void 0:E.path,l.state.id].filter(Boolean).join("."),r(l);const C=((w=l.payload)==null?void 0:w.fold)===2;C?s+=1:(s||i>=0&&l.state.depth>=i)&&(l.payload={...l.payload,fold:1}),d(),C&&(s-=1),o-=1}),t}_relayout(){if(!this.state.data)return;this.g.selectAll(v(M)).selectAll(v("foreignObject")).each(function(d){var f;const m=(f=this.firstChild)==null?void 0:f.firstChild,g=[m.scrollWidth,m.scrollHeight];d.state.size=g});const{lineWidth:t,paddingX:n,spacingHorizontal:r,spacingVertical:i}=this.options,s=tt({}).children(d=>{var f;if(!((f=d.payload)!=null&&f.fold))return d.children}).nodeSize(d=>{const[f,m]=d.data.state.size;return[m,f+(f+20?n*2+20:0)+r]}).spacing((d,f)=>(d.parent===f.parent?i:i*2)+t(d.data)),o=s.hierarchy(this.state.data);s(o);const l=o.descendants();l.forEach(d=>{const f=d.data;f.state.rect={x:d.y,y:d.x-d.xSize/2,width:d.ySize-r,height:d.xSize}}),this.state.rect={x1:min(l,d=>d.data.state.rect.x)||0,y1:min(l,d=>d.data.state.rect.y)||0,x2:max(l,d=>d.data.state.rect.x+d.data.state.rect.width)||0,y2:max(l,d=>d.data.state.rect.y+d.data.state.rect.height)||0}}setOptions(t){this.options={...this.options,...t},this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.options.pan?this.svg.on("wheel",this.handlePan):this.svg.on("wheel",null)}async setData(t,n){n&&this.setOptions(n),t&&(this.state.data=this._initializeData(t)),this.state.data&&(this.updateStyle(),await this.renderData())}async setHighlight(t){this.state.highlight=t||void 0,await this.renderData()}_getHighlightRect(t){const n=this.svg.node(),r=4/transform(n).k,i={...t.state.rect};return i.x-=r,i.y-=r,i.width+=2*r,i.height+=2*r,i}async renderData(t){const{paddingX:n,autoFit:r,color:i,maxWidth:s,lineWidth:o}=this.options,l=this.state.data;if(!l)return;const d={},f={},m=[];walkTree(l,(fe,Te,Re)=>{var Ve;(Ve=fe.payload)!=null&&Ve.fold||Te(),d[fe.state.id]=fe,Re&&(f[fe.state.id]=Re.state.id),m.push(fe)});const g={},E={},w=fe=>{!fe||g[fe.state.id]||walkTree(fe,(Te,Re)=>{g[Te.state.id]=fe.state.id,Re()})},C=fe=>E[g[fe.state.id]]||l.state.rect,I=fe=>(d[g[fe.state.id]]||l).state.rect;E[l.state.id]=l.state.rect,t&&w(t);let{highlight:D}=this.state;D&&!d[D.state.id]&&(D=void 0);let L=this.g.selectAll(v(ge)).selectAll(v("rect")).data(D?[this._getHighlightRect(D)]:[]).join("rect").attr("x",fe=>fe.x).attr("y",fe=>fe.y).attr("width",fe=>fe.width).attr("height",fe=>fe.height);const Y=this.g.selectAll(v(M)).each(fe=>{E[fe.state.id]=fe.state.rect}).data(m,fe=>fe.state.key),G=Y.enter().append("g").attr("data-depth",fe=>fe.state.depth).attr("data-path",fe=>fe.state.path).each(fe=>{w(d[f[fe.state.id]])}),z=Y.exit().each(fe=>{w(d[f[fe.state.id]])}),K=Y.merge(G).attr("class",fe=>{var Te;return["markmap-node",((Te=fe.payload)==null?void 0:Te.fold)&&"markmap-fold"].filter(Boolean).join(" ")}),X=K.selectAll(v("line")).data(fe=>[fe],fe=>fe.state.key),ye=X.enter().append("line").attr("stroke",fe=>i(fe)).attr("stroke-width",0),be=X.merge(ye),Ce=K.selectAll(v("circle")).data(fe=>{var Te;return(Te=fe.children)!=null&&Te.length?[fe]:[]},fe=>fe.state.key),Ne=Ce.enter().append("circle").attr("stroke-width",0).attr("r",0).on("click",(fe,Te)=>this.handleClick(fe,Te)).on("mousedown",T).merge(Ce).attr("stroke",fe=>i(fe)).attr("fill",fe=>{var Te;return(Te=fe.payload)!=null&&Te.fold&&fe.children?i(fe):"var(--markmap-circle-open-bg)"}),He=this._observer,Fe=K.selectAll(v("foreignObject")).data(fe=>[fe],fe=>fe.state.key),Xe=Fe.enter().append("foreignObject").attr("class","markmap-foreign").attr("x",n).attr("y",0).style("opacity",0).on("mousedown",T).on("dblclick",T);Xe.append("xhtml:div").append("xhtml:div").html(fe=>fe.content).attr("xmlns","http://www.w3.org/1999/xhtml"),Xe.each(function(){var fe;const Te=(fe=this.firstChild)==null?void 0:fe.firstChild;He.observe(Te)});const Ee=z.selectAll(v("foreignObject"));Ee.each(function(){var fe;const Te=(fe=this.firstChild)==null?void 0:fe.firstChild;He.unobserve(Te)});const $e=Xe.merge(Fe),Ie=m.flatMap(fe=>{var Te;return(Te=fe.payload)!=null&&Te.fold?[]:fe.children.map(Re=>({source:fe,target:Re}))}),we=this.g.selectAll(v(pe)).data(Ie,fe=>fe.target.state.key),De=we.exit(),qe=we.enter().insert("path","g").attr("class","markmap-link").attr("data-depth",fe=>fe.target.state.depth).attr("data-path",fe=>fe.target.state.path).attr("d",fe=>{const Te=C(fe.target),Re=[Te.x+Te.width,Te.y+Te.height];return A({source:Re,target:Re})}).attr("stroke-width",0).merge(we);this.svg.style("--markmap-max-width",s?`${s}px`:null),await new Promise(requestAnimationFrame),this._relayout(),L=L.data(D?[this._getHighlightRect(D)]:[]).join("rect"),this.transition(L).attr("x",fe=>fe.x).attr("y",fe=>fe.y).attr("width",fe=>fe.width).attr("height",fe=>fe.height),G.attr("transform",fe=>{const Te=C(fe);return`translate(${Te.x+Te.width-fe.state.rect.width},${Te.y+Te.height-fe.state.rect.height})`}),this.transition(z).attr("transform",fe=>{const Te=I(fe),Re=Te.x+Te.width-fe.state.rect.width,Ve=Te.y+Te.height-fe.state.rect.height;return`translate(${Re},${Ve})`}).remove(),this.transition(K).attr("transform",fe=>`translate(${fe.state.rect.x},${fe.state.rect.y})`);const Ge=z.selectAll(v("line"));this.transition(Ge).attr("x1",fe=>fe.state.rect.width).attr("stroke-width",0),ye.attr("x1",fe=>fe.state.rect.width).attr("x2",fe=>fe.state.rect.width),be.attr("y1",fe=>fe.state.rect.height+o(fe)/2).attr("y2",fe=>fe.state.rect.height+o(fe)/2),this.transition(be).attr("x1",-1).attr("x2",fe=>fe.state.rect.width+2).attr("stroke",fe=>i(fe)).attr("stroke-width",o);const Oe=z.selectAll(v("circle"));this.transition(Oe).attr("r",0).attr("stroke-width",0),Ne.attr("cx",fe=>fe.state.rect.width).attr("cy",fe=>fe.state.rect.height+o(fe)/2),this.transition(Ne).attr("r",6).attr("stroke-width","1.5"),this.transition(Ee).style("opacity",0),$e.attr("width",fe=>Math.max(0,fe.state.rect.width-n*2)).attr("height",fe=>fe.state.rect.height),this.transition($e).style("opacity",1),this.transition(De).attr("d",fe=>{const Te=I(fe.target),Re=[Te.x+Te.width,Te.y+Te.height+o(fe.target)/2];return A({source:Re,target:Re})}).attr("stroke-width",0).remove(),this.transition(qe).attr("stroke",fe=>i(fe.target)).attr("stroke-width",fe=>o(fe.target)).attr("d",fe=>{const Te=fe.source,Re=fe.target,Ve=[Te.state.rect.x+Te.state.rect.width,Te.state.rect.y+Te.state.rect.height+o(Te)/2],je=[Re.state.rect.x,Re.state.rect.y+Re.state.rect.height+o(Re)/2];return A({source:Ve,target:je})}),r&&this.fit()}transition(t){const{duration:n}=this.options;return t.transition().duration(n)}async fit(t=this.options.maxInitialScale){const n=this.svg.node(),{width:r,height:i}=n.getBoundingClientRect(),{fitRatio:s}=this.options,{x1:o,y1:l,x2:d,y2:f}=this.state.rect,m=d-o,g=f-l,E=Math.min(r/m*s,i/g*s,t),w=identity.translate((r-m*E)/2-o*E,(i-g*E)/2-l*E).scale(E);return this.transition(this.svg).call(this.zoom.transform,w).end().catch(noop)}findElement(t){let n;return this.g.selectAll(v(M)).each(function(r){r===t&&(n={data:r,g:this})}),n}async ensureVisible(t,n){var r;const i=(r=this.findElement(t))==null?void 0:r.data;if(!i)return;const s=this.svg.node(),o=s.getBoundingClientRect(),l=transform(s),[d,f]=[i.state.rect.x,i.state.rect.x+i.state.rect.width+2].map(L=>L*l.k+l.x),[m,g]=[i.state.rect.y,i.state.rect.y+i.state.rect.height].map(L=>L*l.k+l.y),E={left:0,right:0,top:0,bottom:0,...n},w=[E.left-d,o.width-E.right-f],C=[E.top-m,o.height-E.bottom-g],I=w[0]*w[1]>0?U(w,Math.abs)/l.k:0,D=C[0]*C[1]>0?U(C,Math.abs)/l.k:0;if(I||D){const L=l.translate(I,D);return this.transition(this.svg).call(this.zoom.transform,L).end().catch(noop)}}async centerNode(t,n){var r;const i=(r=this.findElement(t))==null?void 0:r.data;if(!i)return;const s=this.svg.node(),o=s.getBoundingClientRect(),l=transform(s),d=(i.state.rect.x+i.state.rect.width/2)*l.k+l.x,f=(i.state.rect.y+i.state.rect.height/2)*l.k+l.y,m={left:0,right:0,top:0,bottom:0,...n},g=(m.left+o.width-m.right)/2,E=(m.top+o.height-m.bottom)/2,w=(g-d)/l.k,C=(E-f)/l.k;if(w||C){const I=l.translate(w,C);return this.transition(this.svg).call(this.zoom.transform,I).end().catch(noop)}}async rescale(t){const n=this.svg.node(),{width:r,height:i}=n.getBoundingClientRect(),s=r/2,o=i/2,l=transform(n),d=l.translate((s-l.x)*(1-t)/l.k,(o-l.y)*(1-t)/l.k).scale(t);return this.transition(this.svg).call(this.zoom.transform,d).end().catch(noop)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this._disposeList.forEach(t=>{t()})}static create(t,n,r=null){const i=new it(t,n);return r&&i.setData(r).then(()=>{i.fit()}),i}}const markmap=Object.freeze(Object.defineProperty({__proto__:null,Markmap:it,childSelector:v,defaultColorFn:bt,defaultOptions:J,deriveOptions:ke,globalCSS:ve,isMacintosh:Z$1,lineWidthFactory:q,loadCSS,loadJS,refreshHook:ue,simpleHash:Et},Symbol.toStringTag,{value:"Module"})),defaultOpts$1={_useHtmlParser2:!1};function flattenOptions(e,t){if(!e)return t??defaultOpts$1;const n={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(n._useHtmlParser2=!0,n.xmlMode=!0,e.xml!==!0&&Object.assign(n,e.xml)):e.xmlMode&&(n._useHtmlParser2=!0),n}var ElementType;(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"})(ElementType||(ElementType={}));function isTag$1(e){return e.type===ElementType.Tag||e.type===ElementType.Script||e.type===ElementType.Style}const Root=ElementType.Root,Text$1=ElementType.Text,Directive=ElementType.Directive,Comment$1=ElementType.Comment,Script=ElementType.Script,Style=ElementType.Style,Tag=ElementType.Tag,CDATA$1=ElementType.CDATA,Doctype=ElementType.Doctype;let Node$1=class{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 cloneNode(this,t)}};class DataNode extends Node$1{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class Text extends DataNode{constructor(){super(...arguments),this.type=ElementType.Text}get nodeType(){return 3}}class Comment extends DataNode{constructor(){super(...arguments),this.type=ElementType.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(t,n){super(n),this.name=t,this.type=ElementType.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node$1{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 CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}let Document$1=class extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}},Element$1=class extends NodeWithChildren{constructor(t,n,r=[],i=t==="script"?ElementType.Script:t==="style"?ElementType.Style:ElementType.Tag){super(r),this.name=t,this.attribs=n,this.type=i}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 isTag(e){return isTag$1(e)}function isCDATA(e){return e.type===ElementType.CDATA}function isText(e){return e.type===ElementType.Text}function isComment(e){return e.type===ElementType.Comment}function isDirective(e){return e.type===ElementType.Directive}function isDocument$1(e){return e.type===ElementType.Root}function hasChildren(e){return Object.prototype.hasOwnProperty.call(e,"children")}function cloneNode(e,t=!1){let n;if(isText(e))n=new Text(e.data);else if(isComment(e))n=new Comment(e.data);else if(isTag(e)){const r=t?cloneChildren(e.children):[],i=new Element$1(e.name,{...e.attribs},r);r.forEach(s=>s.parent=i),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(isCDATA(e)){const r=t?cloneChildren(e.children):[],i=new CDATA(r);r.forEach(s=>s.parent=i),n=i}else if(isDocument$1(e)){const r=t?cloneChildren(e.children):[],i=new Document$1(r);r.forEach(s=>s.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else if(isDirective(e)){const r=new ProcessingInstruction(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 cloneChildren(e){const t=e.map(n=>cloneNode(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 defaultOpts={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class DomHandler{constructor(t,n,r){this.dom=[],this.root=new Document$1(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=defaultOpts),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??defaultOpts,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new Document$1(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?ElementType.Tag:void 0,i=new Element$1(t,n,void 0,r);this.addNode(i),this.tagStack.push(i)}ontext(t){const{lastNode:n}=this;if(n&&n.type===ElementType.Text)n.data+=t,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const r=new Text(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===ElementType.Comment){this.lastNode.data+=t;return}const n=new Comment(t);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Text(""),n=new CDATA([t]);this.addNode(n),t.parent=n,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,n){const r=new ProcessingInstruction(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 htmlDecodeTree$1=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xmlDecodeTree$1=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var _a$1;const decodeMap$1=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]]),fromCodePoint$2=(_a$1=String.fromCodePoint)!==null&&_a$1!==void 0?_a$1: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 replaceCodePoint$1(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=decodeMap$1.get(e))!==null&&t!==void 0?t:e}var CharCodes$1;(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"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT$1=32;var BinTrieFlags$1;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags$1||(BinTrieFlags$1={}));function isNumber$1(e){return e>=CharCodes$1.ZERO&&e<=CharCodes$1.NINE}function isHexadecimalCharacter$1(e){return e>=CharCodes$1.UPPER_A&&e<=CharCodes$1.UPPER_F||e>=CharCodes$1.LOWER_A&&e<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric$1(e){return e>=CharCodes$1.UPPER_A&&e<=CharCodes$1.UPPER_Z||e>=CharCodes$1.LOWER_A&&e<=CharCodes$1.LOWER_Z||isNumber$1(e)}function isEntityInAttributeInvalidEnd$1(e){return e===CharCodes$1.EQUALS||isAsciiAlphaNumeric$1(e)}var EntityDecoderState$1;(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"})(EntityDecoderState$1||(EntityDecoderState$1={}));var DecodingMode$1;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(DecodingMode$1||(DecodingMode$1={}));let EntityDecoder$1=class{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=EntityDecoderState$1.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode$1.Strict}startEntity(t){this.decodeMode=t,this.state=EntityDecoderState$1.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case EntityDecoderState$1.EntityStart:return t.charCodeAt(n)===CharCodes$1.NUM?(this.state=EntityDecoderState$1.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=EntityDecoderState$1.NamedEntity,this.stateNamedEntity(t,n));case EntityDecoderState$1.NumericStart:return this.stateNumericStart(t,n);case EntityDecoderState$1.NumericDecimal:return this.stateNumericDecimal(t,n);case EntityDecoderState$1.NumericHex:return this.stateNumericHex(t,n);case EntityDecoderState$1.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|TO_LOWER_BIT$1)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState$1.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=EntityDecoderState$1.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(isNumber$1(i)||isHexadecimalCharacter$1(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(isNumber$1(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,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===CharCodes$1.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode$1.Strict)return 0;return this.emitCodePoint(replaceCodePoint$1(this.result),this.consumed),this.errors&&(t!==CharCodes$1.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&BinTrieFlags$1.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=determineBranch$1(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode$1.Attribute&&(s===0||isEntityInAttributeInvalidEnd$1(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&BinTrieFlags$1.VALUE_LENGTH)>>14,s!==0){if(o===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==DecodingMode$1.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&BinTrieFlags$1.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~BinTrieFlags$1.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case EntityDecoderState$1.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode$1.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState$1.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState$1.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState$1.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState$1.EntityStart:return 0}}};function getDecoder$1(e){let t="";const n=new EntityDecoder$1(e,r=>t+=fromCodePoint$2(r));return function(i,s){let o=0,l=0;for(;(l=i.indexOf("&",l))>=0;){t+=i.slice(o,l),n.startEntity(s);const f=n.write(i,l+1);if(f<0){o=l+n.end();break}o=l+f,l=f===0?o+1:o}const d=t+i.slice(o);return t="",d}}function determineBranch$1(e,t,n,r){const i=(t&BinTrieFlags$1.BRANCH_LENGTH)>>7,s=t&BinTrieFlags$1.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const d=r-s;return d<0||d>=i?-1:e[n+d]-1}let o=n,l=o+i-1;for(;o<=l;){const d=o+l>>>1,f=e[d];if(f<r)o=d+1;else if(f>r)l=d-1;else return e[d+i]}return-1}getDecoder$1(htmlDecodeTree$1);getDecoder$1(xmlDecodeTree$1);const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),getCodePoint=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 encodeXML(e){let t="",n=0,r;for(;(r=xmlReplacer.exec(e))!==null;){const i=r.index,s=e.charCodeAt(i),o=xmlCodeMap.get(s);o!==void 0?(t+=e.substring(n,i)+o,n=i+1):(t+=`${e.substring(n,i)}&#x${getCodePoint(e,i).toString(16)};`,n=xmlReplacer.lastIndex+=+((s&64512)===55296))}return t+e.substr(n)}function getEscaper(e,t){return function(r){let i,s=0,o="";for(;i=e.exec(r);)s!==i.index&&(o+=r.substring(s,i.index)),o+=t.get(i[0].charCodeAt(0)),s=i.index+1;return o+r.substring(s)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),elementNames=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])),attributeNames=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])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(e){return e.replace(/"/g,""")}function formatAttributes(e,t){var n;if(!e)return;const r=((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1?replaceQuotes:t.xmlMode||t.encodeEntities!=="utf8"?encodeXML:escapeAttribute;return Object.keys(e).map(i=>{var s,o;const l=(s=e[i])!==null&&s!==void 0?s:"";return t.xmlMode==="foreign"&&(i=(o=attributeNames.get(i))!==null&&o!==void 0?o:i),!t.emptyAttrs&&!t.xmlMode&&l===""?i:`${i}="${r(l)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render$1(e,t={}){const n="length"in e?e:[e];let r="";for(let i=0;i<n.length;i++)r+=renderNode(n[i],t);return r}function renderNode(e,t){switch(e.type){case Root:return render$1(e.children,t);case Doctype:case Directive:return renderDirective(e);case Comment$1:return renderComment(e);case CDATA$1:return renderCdata(e);case Script:case Style:case Tag:return renderTag(e,t);case Text$1:return renderText(e,t)}}const foreignModeIntegrationPoints=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),foreignElements=new Set(["svg","math"]);function renderTag(e,t){var n;t.xmlMode==="foreign"&&(e.name=(n=elementNames.get(e.name))!==null&&n!==void 0?n:e.name,e.parent&&foreignModeIntegrationPoints.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&foreignElements.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const i=formatAttributes(e.attribs,t);return i&&(r+=` ${i}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&singleTag.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=render$1(e.children,t)),(t.xmlMode||!singleTag.has(e.name))&&(r+=`</${e.name}>`)),r}function renderDirective(e){return`<${e.data}>`}function renderText(e,t){var n;let r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&unencodedElements.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?encodeXML(r):escapeText(r)),r}function renderCdata(e){return`<![CDATA[${e.children[0].data}]]>`}function renderComment(e){return`<!--${e.data}-->`}function getOuterHTML(e,t){return render$1(e,t)}function getInnerHTML(e,t){return hasChildren(e)?e.children.map(n=>getOuterHTML(n,t)).join(""):""}function getText(e){return Array.isArray(e)?e.map(getText).join(""):isTag(e)?e.name==="br"?`
- `:getText(e.children):isCDATA(e)?getText(e.children):isText(e)?e.data:""}function textContent(e){return Array.isArray(e)?e.map(textContent).join(""):hasChildren(e)&&!isComment(e)?textContent(e.children):isText(e)?e.data:""}function innerText(e){return Array.isArray(e)?e.map(innerText).join(""):hasChildren(e)&&(e.type===ElementType.Tag||isCDATA(e))?innerText(e.children):isText(e)?e.data:""}function getChildren(e){return hasChildren(e)?e.children:[]}function getParent(e){return e.parent||null}function getSiblings(e){const t=getParent(e);if(t!=null)return getChildren(t);const n=[e];let{prev:r,next:i}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;i!=null;)n.push(i),{next:i}=i;return n}function getAttributeValue(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function hasAttrib(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function getName(e){return e.name}function nextElementSibling(e){let{next:t}=e;for(;t!==null&&!isTag(t);)({next:t}=t);return t}function prevElementSibling(e){let{prev:t}=e;for(;t!==null&&!isTag(t);)({prev:t}=t);return t}function removeElement(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 replaceElement(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const i=t.parent=e.parent;if(i){const s=i.children;s[s.lastIndexOf(e)]=t,e.parent=null}}function appendChild(e,t){if(removeElement(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 append$1(e,t){removeElement(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 i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function prependChild(e,t){if(removeElement(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 prepend$1(e,t){removeElement(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 filter$2(e,t,n=!0,r=1/0){return find$2(e,Array.isArray(t)?t:[t],n,r)}function find$2(e,t,n,r){const i=[],s=[t],o=[0];for(;;){if(o[0]>=s[0].length){if(o.length===1)return i;s.shift(),o.shift();continue}const l=s[0][o[0]++];if(e(l)&&(i.push(l),--r<=0))return i;n&&hasChildren(l)&&l.children.length>0&&(o.unshift(0),s.unshift(l.children))}}function findOneChild(e,t){return t.find(e)}function findOne(e,t,n=!0){let r=null;for(let i=0;i<t.length&&!r;i++){const s=t[i];if(isTag(s))e(s)?r=s:n&&s.children.length>0&&(r=findOne(e,s.children,!0));else continue}return r}function existsOne(e,t){return t.some(n=>isTag(n)&&(e(n)||existsOne(e,n.children)))}function findAll(e,t){const n=[],r=[t],i=[0];for(;;){if(i[0]>=r[0].length){if(r.length===1)return n;r.shift(),i.shift();continue}const s=r[0][i[0]++];isTag(s)&&(e(s)&&n.push(s),s.children.length>0&&(i.unshift(0),r.unshift(s.children)))}}const Checks={tag_name(e){return typeof e=="function"?t=>isTag(t)&&e(t.name):e==="*"?isTag:t=>isTag(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=>isText(t)&&e(t.data):t=>isText(t)&&t.data===e}};function getAttribCheck(e,t){return typeof t=="function"?n=>isTag(n)&&t(n.attribs[e]):n=>isTag(n)&&n.attribs[e]===t}function combineFuncs(e,t){return n=>e(n)||t(n)}function compileTest(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(Checks,n)?Checks[n](r):getAttribCheck(n,r)});return t.length===0?null:t.reduce(combineFuncs)}function testElement(e,t){const n=compileTest(e);return n?n(t):!0}function getElements(e,t,n,r=1/0){const i=compileTest(e);return i?filter$2(i,t,n,r):[]}function getElementById(e,t,n=!0){return Array.isArray(t)||(t=[t]),findOne(getAttribCheck("id",e),t,n)}function getElementsByTagName(e,t,n=!0,r=1/0){return filter$2(Checks.tag_name(e),t,n,r)}function getElementsByTagType(e,t,n=!0,r=1/0){return filter$2(Checks.tag_type(e),t,n,r)}function removeSubsets(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 DocumentPosition;(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"})(DocumentPosition||(DocumentPosition={}));function compareDocumentPosition(e,t){const n=[],r=[];if(e===t)return 0;let i=hasChildren(e)?e:e.parent;for(;i;)n.unshift(i),i=i.parent;for(i=hasChildren(t)?t:t.parent;i;)r.unshift(i),i=i.parent;const s=Math.min(n.length,r.length);let o=0;for(;o<s&&n[o]===r[o];)o++;if(o===0)return DocumentPosition.DISCONNECTED;const l=n[o-1],d=l.children,f=n[o],m=r[o];return d.indexOf(f)>d.indexOf(m)?l===t?DocumentPosition.FOLLOWING|DocumentPosition.CONTAINED_BY:DocumentPosition.FOLLOWING:l===e?DocumentPosition.PRECEDING|DocumentPosition.CONTAINS:DocumentPosition.PRECEDING}function uniqueSort(e){return e=e.filter((t,n,r)=>!r.includes(t,n+1)),e.sort((t,n)=>{const r=compareDocumentPosition(t,n);return r&DocumentPosition.PRECEDING?-1:r&DocumentPosition.FOLLOWING?1:0}),e}function getFeed(e){const t=getOneElement(isValidFeed,e);return t?t.name==="feed"?getAtomFeed(t):getRssFeed(t):null}function getAtomFeed(e){var t;const n=e.children,r={type:"atom",items:getElementsByTagName("entry",n).map(o=>{var l;const{children:d}=o,f={media:getMediaElements(d)};addConditionally(f,"id","id",d),addConditionally(f,"title","title",d);const m=(l=getOneElement("link",d))===null||l===void 0?void 0:l.attribs.href;m&&(f.link=m);const g=fetch$1("summary",d)||fetch$1("content",d);g&&(f.description=g);const E=fetch$1("updated",d);return E&&(f.pubDate=new Date(E)),f})};addConditionally(r,"id","id",n),addConditionally(r,"title","title",n);const i=(t=getOneElement("link",n))===null||t===void 0?void 0:t.attribs.href;i&&(r.link=i),addConditionally(r,"description","subtitle",n);const s=fetch$1("updated",n);return s&&(r.updated=new Date(s)),addConditionally(r,"author","email",n,!0),r}function getRssFeed(e){var t,n;const r=(n=(t=getOneElement("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],i={type:e.name.substr(0,3),id:"",items:getElementsByTagName("item",e.children).map(o=>{const{children:l}=o,d={media:getMediaElements(l)};addConditionally(d,"id","guid",l),addConditionally(d,"title","title",l),addConditionally(d,"link","link",l),addConditionally(d,"description","description",l);const f=fetch$1("pubDate",l)||fetch$1("dc:date",l);return f&&(d.pubDate=new Date(f)),d})};addConditionally(i,"title","title",r),addConditionally(i,"link","link",r),addConditionally(i,"description","description",r);const s=fetch$1("lastBuildDate",r);return s&&(i.updated=new Date(s)),addConditionally(i,"author","managingEditor",r,!0),i}const MEDIA_KEYS_STRING=["url","type","lang"],MEDIA_KEYS_INT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function getMediaElements(e){return getElementsByTagName("media:content",e).map(t=>{const{attribs:n}=t,r={medium:n.medium,isDefault:!!n.isDefault};for(const i of MEDIA_KEYS_STRING)n[i]&&(r[i]=n[i]);for(const i of MEDIA_KEYS_INT)n[i]&&(r[i]=parseInt(n[i],10));return n.expression&&(r.expression=n.expression),r})}function getOneElement(e,t){return getElementsByTagName(e,t,!0,1)[0]}function fetch$1(e,t,n=!1){return textContent(getElementsByTagName(e,t,n,1)).trim()}function addConditionally(e,t,n,r,i=!1){const s=fetch$1(n,r,i);s&&(e[t]=s)}function isValidFeed(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const DomUtils=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return DocumentPosition},append:append$1,appendChild,compareDocumentPosition,existsOne,filter:filter$2,find:find$2,findAll,findOne,findOneChild,getAttributeValue,getChildren,getElementById,getElements,getElementsByTagName,getElementsByTagType,getFeed,getInnerHTML,getName,getOuterHTML,getParent,getSiblings,getText,hasAttrib,hasChildren,innerText,isCDATA,isComment,isDocument:isDocument$1,isTag,isText,nextElementSibling,prepend:prepend$1,prependChild,prevElementSibling,removeElement,removeSubsets,replaceElement,testElement,textContent,uniqueSort},Symbol.toStringTag,{value:"Module"}));function render(e,t,n){return e?e(t??e._root.children,null,void 0,n).toString():""}function isOptions(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function html$1(e,t){const n=isOptions(e)?(t=e,void 0):e,r={...this===null||this===void 0?void 0:this._options,...flattenOptions(t)};return render(this,n,r)}function xml(e){const t={...this._options,xmlMode:!0};return render(this,e,t)}function text$1(e){const t=e??(this?this.root():[]);let n="";for(let r=0;r<t.length;r++)n+=textContent(t[r]);return n}function parseHTML(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,this._options,!1);return n||r("script").remove(),[...r.root()[0].children]}function root(){return this(this._root)}function contains(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 extract$1(e){return this.root().extract(e)}function merge$1(e,t){if(!isArrayLike(e)||!isArrayLike(t))return;let n=e.length;const r=+t.length;for(let i=0;i<r;i++)e[n++]=t[i];return e.length=n,e}function isArrayLike(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||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 staticMethods=Object.freeze(Object.defineProperty({__proto__:null,contains,extract:extract$1,html:html$1,merge:merge$1,parseHTML,root,text:text$1,xml},Symbol.toStringTag,{value:"Module"}));function isCheerio(e){return e.cheerio!=null}function camelCase(e){return e.replace(/[._-](\w|$)/g,(t,n)=>n.toUpperCase())}function cssCase(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function domEach(e,t){const n=e.length;for(let r=0;r<n;r++)t(e[r],r);return e}var CharacterCodes;(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"})(CharacterCodes||(CharacterCodes={}));function isHtml(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const n=e.charCodeAt(t+1);return(n>=CharacterCodes.LowerA&&n<=CharacterCodes.LowerZ||n>=CharacterCodes.UpperA&&n<=CharacterCodes.UpperZ||n===CharacterCodes.Exclamation)&&e.includes(">",t+2)}const hasOwn=Object.prototype.hasOwnProperty,rspace=/\s+/,dataAttrPrefix="data-",rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,rbrace=/^{[^]*}$|^\[[^]*]$/;function getAttr(e,t,n){var r;if(!(!e||!isTag(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(hasOwn.call(e.attribs,t))return!n&&rboolean.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return text$1(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function setAttr(e,t,n){n===null?removeAttribute(e,t):e.attribs[t]=`${n}`}function attr(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 domEach(this,(n,r)=>{isTag(n)&&setAttr(n,e,t.call(n,r,n.attribs[e]))})}return domEach(this,n=>{if(isTag(n))if(typeof e=="object")for(const r of Object.keys(e)){const i=e[r];setAttr(n,r,i)}else setAttr(n,e,t)})}return arguments.length>1?this:getAttr(this[0],e,this.options.xmlMode)}function getProp(e,t,n){return t in e?e[t]:!n&&rboolean.test(t)?getAttr(e,t,!1)!==void 0:getAttr(e,t,n)}function setProp(e,t,n,r){t in e?e[t]=n:setAttr(e,t,!r&&rboolean.test(t)?n?"":null:`${n}`)}function prop(e,t){var n;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r||!isTag(r))return;switch(e){case"style":{const i=this.css(),s=Object.keys(i);for(let o=0;o<s.length;o++)i[o]=s[o];return i.length=s.length,i}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{const i=(n=r.attribs)===null||n===void 0?void 0:n[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.tagName==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&i!==void 0&&this.options.baseURI?new URL(i,this.options.baseURI).href:i}case"innerText":return innerText(r);case"textContent":return textContent(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return getProp(r,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return domEach(this,(r,i)=>{isTag(r)&&setProp(r,e,t.call(r,i,getProp(r,e,this.options.xmlMode)),this.options.xmlMode)})}return domEach(this,r=>{if(isTag(r))if(typeof e=="object")for(const i of Object.keys(e)){const s=e[i];setProp(r,i,s,this.options.xmlMode)}else setProp(r,e,t,this.options.xmlMode)})}}function setData(e,t,n){var r;(r=e.data)!==null&&r!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&n!==void 0&&(e.data[t]=n)}function readAllData(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(dataAttrPrefix))continue;const n=camelCase(t.slice(dataAttrPrefix.length));hasOwn.call(e.data,n)||(e.data[n]=parseDataValue(e.attribs[t]))}return e.data}function readData(e,t){const n=dataAttrPrefix+cssCase(t),r=e.data;if(hasOwn.call(r,t))return r[t];if(hasOwn.call(e.attribs,n))return r[t]=parseDataValue(e.attribs[n])}function parseDataValue(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(rbrace.test(e))try{return JSON.parse(e)}catch{}return e}function data(e,t){var n;const r=this[0];if(!r||!isTag(r))return;const i=r;return(n=i.data)!==null&&n!==void 0||(i.data={}),e==null?readAllData(i):typeof e=="object"||t!==void 0?(domEach(this,s=>{isTag(s)&&(typeof e=="object"?setData(s,e):setData(s,e,t))}),this):readData(i,e)}function val(e){const t=arguments.length===0,n=this[0];if(!n||!isTag(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 i=typeof e=="object"?e:[e];for(const s of i)this.find(`option[value="${s}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(i=>text$1(i.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function removeAttribute(e,t){!e.attribs||!hasOwn.call(e.attribs,t)||delete e.attribs[t]}function splitNames(e){return e?e.trim().split(rspace):[]}function removeAttr(e){const t=splitNames(e);for(const n of t)domEach(this,r=>{isTag(r)&&removeAttribute(r,n)});return this}function hasClass(e){return this.toArray().some(t=>{const n=isTag(t)&&t.attribs.class;let r=-1;if(n&&e.length>0)for(;(r=n.indexOf(e,r+1))>-1;){const i=r+e.length;if((r===0||rspace.test(n[r-1]))&&(i===n.length||rspace.test(n[i])))return!0}return!1})}function addClass(e){if(typeof e=="function")return domEach(this,(r,i)=>{if(isTag(r)){const s=r.attribs.class||"";addClass.call([r],e.call(r,i,s))}});if(!e||typeof e!="string")return this;const t=e.split(rspace),n=this.length;for(let r=0;r<n;r++){const i=this[r];if(!isTag(i))continue;const s=getAttr(i,"class",!1);if(s){let o=` ${s} `;for(const l of t){const d=`${l} `;o.includes(` ${d}`)||(o+=d)}setAttr(i,"class",o.trim())}else setAttr(i,"class",t.join(" ").trim())}return this}function removeClass(e){if(typeof e=="function")return domEach(this,(i,s)=>{isTag(i)&&removeClass.call([i],e.call(i,s,i.attribs.class||""))});const t=splitNames(e),n=t.length,r=arguments.length===0;return domEach(this,i=>{if(isTag(i))if(r)i.attribs.class="";else{const s=splitNames(i.attribs.class);let o=!1;for(let l=0;l<n;l++){const d=s.indexOf(t[l]);d>=0&&(s.splice(d,1),o=!0,l--)}o&&(i.attribs.class=s.join(" "))}})}function toggleClass(e,t){if(typeof e=="function")return domEach(this,(o,l)=>{isTag(o)&&toggleClass.call([o],e.call(o,l,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const n=e.split(rspace),r=n.length,i=typeof t=="boolean"?t?1:-1:0,s=this.length;for(let o=0;o<s;o++){const l=this[o];if(!isTag(l))continue;const d=splitNames(l.attribs.class);for(let f=0;f<r;f++){const m=d.indexOf(n[f]);i>=0&&m<0?d.push(n[f]):i<=0&&m>=0&&d.splice(m,1)}l.attribs.class=d.join(" ")}return this}const Attributes=Object.freeze(Object.defineProperty({__proto__:null,addClass,attr,data,hasClass,prop,removeAttr,removeClass,toggleClass,val},Symbol.toStringTag,{value:"Module"}));var SelectorType;(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.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(SelectorType||(SelectorType={}));var AttributeAction;(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"})(AttributeAction||(AttributeAction={}));const reName=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,reEscape=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,actionTypes=new Map([[126,AttributeAction.Element],[94,AttributeAction.Start],[36,AttributeAction.End],[42,AttributeAction.Any],[33,AttributeAction.Not],[124,AttributeAction.Hyphen]]),unpackPseudos=new Set(["has","not","matches","is","where","host","host-context"]);function isTraversal$1(e){switch(e.type){case SelectorType.Adjacent:case SelectorType.Child:case SelectorType.Descendant:case SelectorType.Parent:case SelectorType.Sibling:case SelectorType.ColumnCombinator:return!0;default:return!1}}const stripQuotesFromPseudos=new Set(["contains","icontains"]);function funescape(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 unescapeCSS(e){return e.replace(reEscape,funescape)}function isQuote(e){return e===39||e===34}function isWhitespace$1(e){return e===32||e===9||e===10||e===12||e===13}function parse$2(e){const t=[],n=parseSelector(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function parseSelector(e,t,n){let r=[];function i(E){const w=t.slice(n+E).match(reName);if(!w)throw new Error(`Expected name, found ${t.slice(n)}`);const[C]=w;return n+=E+C.length,unescapeCSS(C)}function s(E){for(n+=E;n<t.length&&isWhitespace$1(t.charCodeAt(n));)n++}function o(){n+=1;const E=n;let w=1;for(;w>0&&n<t.length;n++)t.charCodeAt(n)===40&&!l(n)?w++:t.charCodeAt(n)===41&&!l(n)&&w--;if(w)throw new Error("Parenthesis not matched");return unescapeCSS(t.slice(E,n-1))}function l(E){let w=0;for(;t.charCodeAt(--E)===92;)w++;return(w&1)===1}function d(){if(r.length>0&&isTraversal$1(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function f(E){if(r.length>0&&r[r.length-1].type===SelectorType.Descendant){r[r.length-1].type=E;return}d(),r.push({type:E})}function m(E,w){r.push({type:SelectorType.Attribute,name:E,action:w,value:i(1),namespace:null,ignoreCase:"quirks"})}function g(){if(r.length&&r[r.length-1].type===SelectorType.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(s(0),t.length===n)return n;e:for(;n<t.length;){const E=t.charCodeAt(n);switch(E){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==SelectorType.Descendant)&&(d(),r.push({type:SelectorType.Descendant})),s(1);break}case 62:{f(SelectorType.Child),s(1);break}case 60:{f(SelectorType.Parent),s(1);break}case 126:{f(SelectorType.Sibling),s(1);break}case 43:{f(SelectorType.Adjacent),s(1);break}case 46:{m("class",AttributeAction.Element);break}case 35:{m("id",AttributeAction.Equals);break}case 91:{s(1);let w,C=null;t.charCodeAt(n)===124?w=i(1):t.startsWith("*|",n)?(C="*",w=i(2)):(w=i(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(C=w,w=i(1))),s(0);let I=AttributeAction.Exists;const D=actionTypes.get(t.charCodeAt(n));if(D){if(I=D,t.charCodeAt(n+1)!==61)throw new Error("Expected `=`");s(2)}else t.charCodeAt(n)===61&&(I=AttributeAction.Equals,s(1));let L="",Y=null;if(I!=="exists"){if(isQuote(t.charCodeAt(n))){const K=t.charCodeAt(n);let X=n+1;for(;X<t.length&&(t.charCodeAt(X)!==K||l(X));)X+=1;if(t.charCodeAt(X)!==K)throw new Error("Attribute value didn't end");L=unescapeCSS(t.slice(n+1,X)),n=X+1}else{const K=n;for(;n<t.length&&(!isWhitespace$1(t.charCodeAt(n))&&t.charCodeAt(n)!==93||l(n));)n+=1;L=unescapeCSS(t.slice(K,n))}s(0);const z=t.charCodeAt(n)|32;z===115?(Y=!1,s(1)):z===105&&(Y=!0,s(1))}if(t.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const G={type:SelectorType.Attribute,name:w,action:I,value:L,namespace:C,ignoreCase:Y};r.push(G);break}case 58:{if(t.charCodeAt(n+1)===58){r.push({type:SelectorType.PseudoElement,name:i(2).toLowerCase(),data:t.charCodeAt(n)===40?o():null});continue}const w=i(1).toLowerCase();let C=null;if(t.charCodeAt(n)===40)if(unpackPseudos.has(w)){if(isQuote(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${w} cannot be quoted`);if(C=[],n=parseSelector(C,t,n+1),t.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${w} (${t})`);n+=1}else{if(C=o(),stripQuotesFromPseudos.has(w)){const I=C.charCodeAt(0);I===C.charCodeAt(C.length-1)&&isQuote(I)&&(C=C.slice(1,-1))}C=unescapeCSS(C)}r.push({type:SelectorType.Pseudo,name:w,data:C});break}case 44:{g(),r=[],s(1);break}default:{if(t.startsWith("/*",n)){const I=t.indexOf("*/",n+2);if(I<0)throw new Error("Comment was not terminated");n=I+2,r.length===0&&s(0);break}let w=null,C;if(E===42)n+=1,C="*";else if(E===124){if(C="",t.charCodeAt(n+1)===124){f(SelectorType.ColumnCombinator),s(2);break}}else if(reName.test(t.slice(n)))C=i(0);else break e;t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(w=C,t.charCodeAt(n+1)===42?(C="*",n+=2):C=i(1)),r.push(C==="*"?{type:SelectorType.Universal,namespace:w}:{type:SelectorType.Tag,name:C,namespace:w})}}}return g(),n}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var boolbase$1,hasRequiredBoolbase;function requireBoolbase(){return hasRequiredBoolbase||(hasRequiredBoolbase=1,boolbase$1={trueFunc:function(){return!0},falseFunc:function(){return!1}}),boolbase$1}var boolbaseExports=requireBoolbase();const boolbase=getDefaultExportFromCjs(boolbaseExports),procedure=new Map([[SelectorType.Universal,50],[SelectorType.Tag,30],[SelectorType.Attribute,1],[SelectorType.Pseudo,0]]);function isTraversal(e){return!procedure.has(e.type)}const attributes=new Map([[AttributeAction.Exists,10],[AttributeAction.Equals,8],[AttributeAction.Not,7],[AttributeAction.Start,6],[AttributeAction.End,6],[AttributeAction.Any,5]]);function sortByProcedure(e){const t=e.map(getProcedure);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let i=n-1;i>=0&&r<t[i];i--){const s=e[i+1];e[i+1]=e[i],e[i]=s,t[i+1]=t[i],t[i]=r}}}function getProcedure(e){var t,n;let r=(t=procedure.get(e.type))!==null&&t!==void 0?t:-1;return e.type===SelectorType.Attribute?(r=(n=attributes.get(e.action))!==null&&n!==void 0?n:4,e.action===AttributeAction.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===SelectorType.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(i=>Math.min(...i.map(getProcedure)))),r<0&&(r=0)):r=2:r=3),r}const reChars=/[-[\]{}()*+?.,\\^$|#\s]/g;function escapeRegex(e){return e.replace(reChars,"\\$&")}const caseInsensitiveAttributes=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 shouldIgnoreCase(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&caseInsensitiveAttributes.has(e.name)}const attributeRules={equals(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;return shouldIgnoreCase(t,n)?(s=s.toLowerCase(),o=>{const l=r.getAttributeValue(o,i);return l!=null&&l.length===s.length&&l.toLowerCase()===s&&e(o)}):o=>r.getAttributeValue(o,i)===s&&e(o)},hyphen(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;const o=s.length;return shouldIgnoreCase(t,n)?(s=s.toLowerCase(),function(d){const f=r.getAttributeValue(d,i);return f!=null&&(f.length===o||f.charAt(o)==="-")&&f.substr(0,o).toLowerCase()===s&&e(d)}):function(d){const f=r.getAttributeValue(d,i);return f!=null&&(f.length===o||f.charAt(o)==="-")&&f.substr(0,o)===s&&e(d)}},element(e,t,n){const{adapter:r}=n,{name:i,value:s}=t;if(/\s/.test(s))return boolbase.falseFunc;const o=new RegExp(`(?:^|\\s)${escapeRegex(s)}(?:$|\\s)`,shouldIgnoreCase(t,n)?"i":"");return function(d){const f=r.getAttributeValue(d,i);return f!=null&&f.length>=s.length&&o.test(f)&&e(d)}},exists(e,{name:t},{adapter:n}){return r=>n.hasAttrib(r,t)&&e(r)},start(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;const o=s.length;return o===0?boolbase.falseFunc:shouldIgnoreCase(t,n)?(s=s.toLowerCase(),l=>{const d=r.getAttributeValue(l,i);return d!=null&&d.length>=o&&d.substr(0,o).toLowerCase()===s&&e(l)}):l=>{var d;return!!(!((d=r.getAttributeValue(l,i))===null||d===void 0)&&d.startsWith(s))&&e(l)}},end(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;const o=-s.length;return o===0?boolbase.falseFunc:shouldIgnoreCase(t,n)?(s=s.toLowerCase(),l=>{var d;return((d=r.getAttributeValue(l,i))===null||d===void 0?void 0:d.substr(o).toLowerCase())===s&&e(l)}):l=>{var d;return!!(!((d=r.getAttributeValue(l,i))===null||d===void 0)&&d.endsWith(s))&&e(l)}},any(e,t,n){const{adapter:r}=n,{name:i,value:s}=t;if(s==="")return boolbase.falseFunc;if(shouldIgnoreCase(t,n)){const o=new RegExp(escapeRegex(s),"i");return function(d){const f=r.getAttributeValue(d,i);return f!=null&&f.length>=s.length&&o.test(f)&&e(d)}}return o=>{var l;return!!(!((l=r.getAttributeValue(o,i))===null||l===void 0)&&l.includes(s))&&e(o)}},not(e,t,n){const{adapter:r}=n,{name:i}=t;let{value:s}=t;return s===""?o=>!!r.getAttributeValue(o,i)&&e(o):shouldIgnoreCase(t,n)?(s=s.toLowerCase(),o=>{const l=r.getAttributeValue(o,i);return(l==null||l.length!==s.length||l.toLowerCase()!==s)&&e(o)}):o=>r.getAttributeValue(o,i)!==s&&e(o)}},whitespace=new Set([9,10,12,13,32]),ZERO=48,NINE=57;function parse$1(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=s(),i=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(i??1),l(),t<e.length?(r=s(),l(),i=o()):r=i=0),i===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*i];function s(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){const d=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=ZERO&&e.charCodeAt(t)<=NINE;)f=f*10+(e.charCodeAt(t)-ZERO),t++;return t===d?null:f}function l(){for(;t<e.length&&whitespace.has(e.charCodeAt(t));)t++}}function compile$1(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return boolbase.falseFunc;if(t===-1)return s=>s<=n;if(t===0)return s=>s===n;if(t===1)return n<0?boolbase.trueFunc:s=>s>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?s=>s>=n&&s%r===i:s=>s<=n&&s%r===i}function nthCheck(e){return compile$1(parse$1(e))}function getChildFunc(e,t){return n=>{const r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const filters={contains(e,t,{adapter:n}){return function(i){return e(i)&&n.getText(i).includes(t)}},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(s){return e(s)&&n.getText(s).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const i=nthCheck(t);return i===boolbase.falseFunc?boolbase.falseFunc:i===boolbase.trueFunc?getChildFunc(e,n):function(o){const l=n.getSiblings(o);let d=0;for(let f=0;f<l.length&&!r(o,l[f]);f++)n.isTag(l[f])&&d++;return i(d)&&e(o)}},"nth-last-child"(e,t,{adapter:n,equals:r}){const i=nthCheck(t);return i===boolbase.falseFunc?boolbase.falseFunc:i===boolbase.trueFunc?getChildFunc(e,n):function(o){const l=n.getSiblings(o);let d=0;for(let f=l.length-1;f>=0&&!r(o,l[f]);f--)n.isTag(l[f])&&d++;return i(d)&&e(o)}},"nth-of-type"(e,t,{adapter:n,equals:r}){const i=nthCheck(t);return i===boolbase.falseFunc?boolbase.falseFunc:i===boolbase.trueFunc?getChildFunc(e,n):function(o){const l=n.getSiblings(o);let d=0;for(let f=0;f<l.length;f++){const m=l[f];if(r(o,m))break;n.isTag(m)&&n.getName(m)===n.getName(o)&&d++}return i(d)&&e(o)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){const i=nthCheck(t);return i===boolbase.falseFunc?boolbase.falseFunc:i===boolbase.trueFunc?getChildFunc(e,n):function(o){const l=n.getSiblings(o);let d=0;for(let f=l.length-1;f>=0;f--){const m=l[f];if(r(o,m))break;n.isTag(m)&&n.getName(m)===n.getName(o)&&d++}return i(d)&&e(o)}},root(e,t,{adapter:n}){return r=>{const i=n.getParent(r);return(i==null||!n.isTag(i))&&e(r)}},scope(e,t,n,r){const{equals:i}=n;return!r||r.length===0?filters.root(e,t,n):r.length===1?s=>i(r[0],s)&&e(s):s=>r.includes(s)&&e(s)},hover:dynamicStatePseudo("isHovered"),visited:dynamicStatePseudo("isVisited"),active:dynamicStatePseudo("isActive")};function dynamicStatePseudo(e){return function(n,r,{adapter:i}){const s=i[e];return typeof s!="function"?boolbase.falseFunc:function(l){return s(l)&&n(l)}}}const pseudos={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(i=>t.isTag(i));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let i=r.length-1;i>=0;i--){if(n(e,r[i]))return!0;if(t.isTag(r[i]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),i=t.getName(e);for(let s=0;s<r.length;s++){const o=r[s];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),i=t.getName(e);for(let s=r.length-1;s>=0;s--){const o=r[s];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===i)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(i=>n(e,i)||!t.isTag(i)||t.getName(i)!==r)},"only-child"(e,{adapter:t,equals:n}){return t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))}};function verifyPseudoArgs(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 aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
- :is(button, input, select, textarea, optgroup, option)[disabled],
- optgroup[disabled] > option,
- fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
- )`,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])"},PLACEHOLDER_ELEMENT={};function ensureIsTag(e,t){return e===boolbase.falseFunc?boolbase.falseFunc:n=>t.isTag(n)&&e(n)}function getNextSiblings(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 copyOptions(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 is$2=(e,t,n,r,i)=>{const s=i(t,copyOptions(n),r);return s===boolbase.trueFunc?e:s===boolbase.falseFunc?boolbase.falseFunc:o=>s(o)&&e(o)},subselects={is:is$2,matches:is$2,where:is$2,not(e,t,n,r,i){const s=i(t,copyOptions(n),r);return s===boolbase.falseFunc?e:s===boolbase.trueFunc?boolbase.falseFunc:o=>!s(o)&&e(o)},has(e,t,n,r,i){const{adapter:s}=n,o=copyOptions(n);o.relativeSelector=!0;const l=t.some(m=>m.some(isTraversal))?[PLACEHOLDER_ELEMENT]:void 0,d=i(t,o,l);if(d===boolbase.falseFunc)return boolbase.falseFunc;const f=ensureIsTag(d,s);if(l&&d!==boolbase.trueFunc){const{shouldTestNextSiblings:m=!1}=d;return g=>{if(!e(g))return!1;l[0]=g;const E=s.getChildren(g),w=m?[...E,...getNextSiblings(g,s)]:E;return s.existsOne(f,w)}}return m=>e(m)&&s.existsOne(f,s.getChildren(m))}};function compilePseudoSelector(e,t,n,r,i){var s;const{name:o,data:l}=t;if(Array.isArray(l)){if(!(o in subselects))throw new Error(`Unknown pseudo-class :${o}(${l})`);return subselects[o](e,l,n,r,i)}const d=(s=n.pseudos)===null||s===void 0?void 0:s[o],f=typeof d=="string"?d:aliases[o];if(typeof f=="string"){if(l!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);const m=parse$2(f);return subselects.is(e,m,n,r,i)}if(typeof d=="function")return verifyPseudoArgs(d,o,l,1),m=>d(m,l)&&e(m);if(o in filters)return filters[o](e,l,n,r);if(o in pseudos){const m=pseudos[o];return verifyPseudoArgs(m,o,l,2),g=>m(g,n,l)&&e(g)}throw new Error(`Unknown pseudo-class :${o}`)}function getElementParent(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function compileGeneralSelector(e,t,n,r,i){const{adapter:s,equals:o}=n;switch(t.type){case SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case SelectorType.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()),attributeRules[t.action](e,t,n)}case SelectorType.Pseudo:return compilePseudoSelector(e,t,n,r,i);case SelectorType.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:l}=t;return(!n.xmlMode||n.lowerCaseTags)&&(l=l.toLowerCase()),function(f){return s.getName(f)===l&&e(f)}}case SelectorType.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(f){let m=f;for(;m=getElementParent(m,s);)if(e(m))return!0;return!1};const l=new WeakSet;return function(f){let m=f;for(;m=getElementParent(m,s);)if(!l.has(m)){if(s.isTag(m)&&e(m))return!0;l.add(m)}return!1}}case"_flexibleDescendant":return function(d){let f=d;do if(e(f))return!0;while(f=getElementParent(f,s));return!1};case SelectorType.Parent:return function(d){return s.getChildren(d).some(f=>s.isTag(f)&&e(f))};case SelectorType.Child:return function(d){const f=s.getParent(d);return f!=null&&s.isTag(f)&&e(f)};case SelectorType.Sibling:return function(d){const f=s.getSiblings(d);for(let m=0;m<f.length;m++){const g=f[m];if(o(d,g))break;if(s.isTag(g)&&e(g))return!0}return!1};case SelectorType.Adjacent:return s.prevElementSibling?function(d){const f=s.prevElementSibling(d);return f!=null&&e(f)}:function(d){const f=s.getSiblings(d);let m;for(let g=0;g<f.length;g++){const E=f[g];if(o(d,E))break;s.isTag(E)&&(m=E)}return!!m&&e(m)};case SelectorType.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function includesScopePseudo(e){return e.type===SelectorType.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(includesScopePseudo)))}const DESCENDANT_TOKEN={type:SelectorType.Descendant},FLEXIBLE_DESCENDANT_TOKEN={type:"_flexibleDescendant"},SCOPE_TOKEN={type:SelectorType.Pseudo,name:"scope",data:null};function absolutize(e,{adapter:t},n){const r=!!(n!=null&&n.every(i=>{const s=t.isTag(i)&&t.getParent(i);return i===PLACEHOLDER_ELEMENT||s&&t.isTag(s)}));for(const i of e){if(!(i.length>0&&isTraversal(i[0])&&i[0].type!==SelectorType.Descendant))if(r&&!i.some(includesScopePseudo))i.unshift(DESCENDANT_TOKEN);else continue;i.unshift(SCOPE_TOKEN)}}function compileToken(e,t,n){var r;e.forEach(sortByProcedure),n=(r=t.context)!==null&&r!==void 0?r:n;const i=Array.isArray(n),s=n&&(Array.isArray(n)?n:[n]);if(t.relativeSelector!==!1)absolutize(e,t,s);else if(e.some(d=>d.length>0&&isTraversal(d[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1;const l=e.map(d=>{if(d.length>=2){const[f,m]=d;f.type!==SelectorType.Pseudo||f.name!=="scope"||(i&&m.type===SelectorType.Descendant?d[1]=FLEXIBLE_DESCENDANT_TOKEN:(m.type===SelectorType.Adjacent||m.type===SelectorType.Sibling)&&(o=!0))}return compileRules(d,t,s)}).reduce(reduceRules,boolbase.falseFunc);return l.shouldTestNextSiblings=o,l}function compileRules(e,t,n){var r;return e.reduce((i,s)=>i===boolbase.falseFunc?boolbase.falseFunc:compileGeneralSelector(i,s,t,n,compileToken),(r=t.rootFunc)!==null&&r!==void 0?r:boolbase.trueFunc)}function reduceRules(e,t){return t===boolbase.falseFunc||e===boolbase.trueFunc?e:e===boolbase.falseFunc||t===boolbase.trueFunc?t:function(r){return e(r)||t(r)}}const defaultEquals=(e,t)=>e===t,defaultOptions$1={adapter:DomUtils,equals:defaultEquals};function convertOptionFormats(e){var t,n,r,i;const s=e??defaultOptions$1;return(t=s.adapter)!==null&&t!==void 0||(s.adapter=DomUtils),(n=s.equals)!==null&&n!==void 0||(s.equals=(i=(r=s.adapter)===null||r===void 0?void 0:r.equals)!==null&&i!==void 0?i:defaultEquals),s}function wrapCompile(e){return function(n,r,i){const s=convertOptionFormats(r);return e(n,s,i)}}const _compileToken=wrapCompile(compileToken);function prepareContext(e,t,n=!1){return n&&(e=appendNextSiblings(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function appendNextSiblings(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let i=0;i<r;i++){const s=getNextSiblings(n[i],t);n.push(...s)}return n}const filterNames=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function isFilter(e){return e.type!=="pseudo"?!1:filterNames.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(isFilter)):!1}function getLimit(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 getDocumentRoot(e){for(;e.parent;)e=e.parent;return e}function groupSelectors(e){const t=[],n=[];for(const r of e)r.some(isFilter)?t.push(r):n.push(r);return[n,t]}const UNIVERSAL_SELECTOR={type:SelectorType.Universal,namespace:null},SCOPE_PSEUDO={type:SelectorType.Pseudo,name:"scope",data:null};function is$1(e,t,n={}){return some([e],t,n)}function some(e,t,n={}){if(typeof t=="function")return e.some(t);const[r,i]=groupSelectors(parse$2(t));return r.length>0&&e.some(_compileToken(r,n))||i.some(s=>filterBySelector(s,e,n).length>0)}function filterByPosition(e,t,n,r){const i=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(i)&&Math.abs(i)<t.length?[i<0?t[t.length+i]:t[i]]:[];case"gt":return isFinite(i)?t.slice(i+1):[];case"even":return t.filter((s,o)=>o%2===0);case"odd":return t.filter((s,o)=>o%2===1);case"not":{const s=new Set(filterParsed(n,t,r));return t.filter(o=>!s.has(o))}}}function filter$1(e,t,n={}){return filterParsed(parse$2(e),t,n)}function filterParsed(e,t,n){if(t.length===0)return[];const[r,i]=groupSelectors(e);let s;if(r.length){const o=filterElements(t,r,n);if(i.length===0)return o;o.length&&(s=new Set(o))}for(let o=0;o<i.length&&(s==null?void 0:s.size)!==t.length;o++){const l=i[o];if((s?t.filter(m=>isTag(m)&&!s.has(m)):t).length===0)break;const f=filterBySelector(l,t,n);if(f.length)if(s)f.forEach(m=>s.add(m));else{if(o===i.length-1)return f;s=new Set(f)}}return typeof s<"u"?s.size===t.length?t:t.filter(o=>s.has(o)):[]}function filterBySelector(e,t,n){var r;if(e.some(isTraversal$1)){const i=(r=n.root)!==null&&r!==void 0?r:getDocumentRoot(t[0]),s={...n,context:t,relativeSelector:!1};return e.push(SCOPE_PSEUDO),findFilterElements(i,e,s,!0,t.length)}return findFilterElements(t,e,n,!1,t.length)}function select(e,t,n={},r=1/0){if(typeof e=="function")return find$1(t,e);const[i,s]=groupSelectors(parse$2(e)),o=s.map(l=>findFilterElements(t,l,n,!0,r));return i.length&&o.push(findElements(t,i,n,r)),o.length===0?[]:o.length===1?o[0]:uniqueSort(o.reduce((l,d)=>[...l,...d]))}function findFilterElements(e,t,n,r,i){const s=t.findIndex(isFilter),o=t.slice(0,s),l=t[s],d=t.length-1===s?i:1/0,f=getLimit(l.name,l.data,d);if(f===0)return[];const g=(o.length===0&&!Array.isArray(e)?getChildren(e).filter(isTag):o.length===0?(Array.isArray(e)?e:[e]).filter(isTag):r||o.some(isTraversal$1)?findElements(e,[o],n,f):filterElements(e,[o],n)).slice(0,f);let E=filterByPosition(l.name,g,l.data,n);if(E.length===0||t.length===s+1)return E;const w=t.slice(s+1),C=w.some(isTraversal$1);if(C){if(isTraversal$1(w[0])){const{type:I}=w[0];(I===SelectorType.Sibling||I===SelectorType.Adjacent)&&(E=prepareContext(E,DomUtils,!0)),w.unshift(UNIVERSAL_SELECTOR)}n={...n,relativeSelector:!1,rootFunc:I=>E.includes(I)}}else n.rootFunc&&n.rootFunc!==boolbaseExports.trueFunc&&(n={...n,rootFunc:boolbaseExports.trueFunc});return w.some(isFilter)?findFilterElements(E,w,n,!1,i):C?findElements(E,[w],n,i):filterElements(E,[w],n)}function findElements(e,t,n,r){const i=_compileToken(t,n,e);return find$1(e,i,r)}function find$1(e,t,n=1/0){const r=prepareContext(e,DomUtils,t.shouldTestNextSiblings);return find$2(i=>isTag(i)&&t(i),r,!0,n)}function filterElements(e,t,n){const r=(Array.isArray(e)?e:[e]).filter(isTag);if(r.length===0)return r;const i=_compileToken(t,n);return i===boolbaseExports.trueFunc?r:r.filter(i)}const reSiblingSelector=/^\s*[+~]/;function find(e){if(!e)return this._make([]);if(typeof e!="string"){const t=isCheerio(e)?e.toArray():[e],n=this.toArray();return this._make(t.filter(r=>n.some(i=>contains(i,r))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function _findBySelector(e,t){var n;const r=this.toArray(),i=reSiblingSelector.test(e)?r:this.children().toArray(),s={context:r,root:(n=this._root)===null||n===void 0?void 0:n[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(select(e,i,s,t))}function _getMatcher(e){return function(t,...n){return function(r){var i;let s=e(t,this);return r&&(s=filterArray(s,r,this.options.xmlMode,(i=this._root)===null||i===void 0?void 0:i[0])),this._make(this.length>1&&s.length>1?n.reduce((o,l)=>l(o),s):s)}}}const _matcher=_getMatcher((e,t)=>{let n=[];for(let r=0;r<t.length;r++){const i=e(t[r]);i.length>0&&(n=n.concat(i))}return n}),_singleMatcher=_getMatcher((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const i=e(t[r]);i!==null&&n.push(i)}return n});function _matchUntil(e,...t){let n=null;const r=_getMatcher((i,s)=>{const o=[];return domEach(s,l=>{for(let d;(d=i(l))&&!(n!=null&&n(d,o.length));l=d)o.push(d)}),o})(e,...t);return function(i,s){n=typeof i=="string"?l=>is$1(l,i,this.options):i?getFilterFn(i):null;const o=r.call(this,s);return n=null,o}}function _removeDuplicates(e){return e.length>1?Array.from(new Set(e)):e}const parent=_singleMatcher(({parent:e})=>e&&!isDocument$1(e)?e:null,_removeDuplicates),parents=_matcher(e=>{const t=[];for(;e.parent&&!isDocument$1(e.parent);)t.push(e.parent),e=e.parent;return t},uniqueSort,e=>e.reverse()),parentsUntil=_matchUntil(({parent:e})=>e&&!isDocument$1(e)?e:null,uniqueSort,e=>e.reverse());function closest(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]},i=typeof e=="string"?s=>is$1(s,e,r):getFilterFn(e);return domEach(this,s=>{for(s&&!isDocument$1(s)&&!isTag(s)&&(s=s.parent);s&&isTag(s);){if(i(s,0)){n.includes(s)||n.push(s);break}s=s.parent}}),this._make(n)}const next=_singleMatcher(e=>nextElementSibling(e)),nextAll=_matcher(e=>{const t=[];for(;e.next;)e=e.next,isTag(e)&&t.push(e);return t},_removeDuplicates),nextUntil=_matchUntil(e=>nextElementSibling(e),_removeDuplicates),prev=_singleMatcher(e=>prevElementSibling(e)),prevAll=_matcher(e=>{const t=[];for(;e.prev;)e=e.prev,isTag(e)&&t.push(e);return t},_removeDuplicates),prevUntil=_matchUntil(e=>prevElementSibling(e),_removeDuplicates),siblings=_matcher(e=>getSiblings(e).filter(t=>isTag(t)&&t!==e),uniqueSort),children=_matcher(e=>getChildren(e).filter(isTag),_removeDuplicates);function contents(){const e=this.toArray().reduce((t,n)=>hasChildren(n)?t.concat(n.children):t,[]);return this._make(e)}function each(e){let t=0;const n=this.length;for(;t<n&&e.call(this[t],t,this[t])!==!1;)++t;return this}function map$2(e){let t=[];for(let n=0;n<this.length;n++){const r=this[n],i=e.call(r,n,r);i!=null&&(t=t.concat(i))}return this._make(t)}function getFilterFn(e){return typeof e=="function"?(t,n)=>e.call(t,n,t):isCheerio(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function filter(e){var t;return this._make(filterArray(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function filterArray(e,t,n,r){return typeof t=="string"?filter$1(t,e,{xmlMode:n,root:r}):e.filter(getFilterFn(t))}function is(e){const t=this.toArray();return typeof e=="string"?some(t.filter(isTag),e,this.options):e?t.some(getFilterFn(e)):!1}function not(e){let t=this.toArray();if(typeof e=="string"){const n=new Set(filter$1(e,t,this.options));t=t.filter(r=>!n.has(r))}else{const n=getFilterFn(e);t=t.filter((r,i)=>!n(r,i))}return this._make(t)}function has$1(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,n)=>this._make(n).find(e).length>0)}function first(){return this.length>1?this._make(this[0]):this}function last(){return this.length>0?this._make(this[this.length-1]):this}function eq(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 get(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function toArray(){return Array.prototype.slice.call(this)}function index(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=isCheerio(e)?e[0]:e),Array.prototype.indexOf.call(t,n)}function slice(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function end(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function add(e,t){const n=this._make(e,t),r=uniqueSort([...this.get(),...n.get()]);return this._make(r)}function addBack(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const Traversing=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector,add,addBack,children,closest,contents,each,end,eq,filter,filterArray,find,first,get,has:has$1,index,is,last,map:map$2,next,nextAll,nextUntil,not,parent,parents,parentsUntil,prev,prevAll,prevUntil,siblings,slice,toArray},Symbol.toStringTag,{value:"Module"}));function getParse(e){return function(n,r,i,s){if(typeof Buffer<"u"&&Buffer.isBuffer(n)&&(n=n.toString()),typeof n=="string")return e(n,r,i,s);const o=n;if(!Array.isArray(o)&&isDocument$1(o))return o;const l=new Document$1([]);return update(o,l),l}}function update(e,t){const n=Array.isArray(e)?e:[e];t?t.children=n:t=null;for(let r=0;r<n.length;r++){const i=n[r];i.parent&&i.parent.children!==n&&removeElement(i),t?(i.prev=n[r-1]||null,i.next=n[r+1]||null):i.prev=i.next=null,i.parent=t}return t}function _makeDomArray(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(typeof i=="object"){if(i==null)continue;if(!("length"in i)){n.push(t?cloneNode(i,!0):i);continue}}n.push(...this._makeDomArray(i,t))}return n}return[t?cloneNode(e,!0):e]}function _insert(e){return function(...t){const n=this.length-1;return domEach(this,(r,i)=>{if(!hasChildren(r))return;const s=typeof t[0]=="function"?t[0].call(r,i,this._render(r.children)):t,o=this._makeDomArray(s,i<n);e(o,r.children,r)})}}function uniqueSplice(e,t,n,r,i){var s,o;const l=[t,n,...r],d=t===0?null:e[t-1],f=t+n>=e.length?null:e[t+n];for(let m=0;m<r.length;++m){const g=r[m],E=g.parent;if(E){const C=E.children.indexOf(g);C>-1&&(E.children.splice(C,1),i===E&&t>C&&l[0]--)}g.parent=i,g.prev&&(g.prev.next=(s=g.next)!==null&&s!==void 0?s:null),g.next&&(g.next.prev=(o=g.prev)!==null&&o!==void 0?o:null),g.prev=m===0?d:r[m-1],g.next=m===r.length-1?f:r[m+1]}return d&&(d.next=r[0]),f&&(f.prev=r[r.length-1]),e.splice(...l)}function appendTo(e){return(isCheerio(e)?e:this._make(e)).append(this),this}function prependTo(e){return(isCheerio(e)?e:this._make(e)).prepend(this),this}const append=_insert((e,t,n)=>{uniqueSplice(t,t.length,0,e,n)}),prepend=_insert((e,t,n)=>{uniqueSplice(t,0,0,e,n)});function _wrap(e){return function(t){const n=this.length-1,r=this.parents().last();for(let i=0;i<this.length;i++){const s=this[i],o=typeof t=="function"?t.call(s,i,s):typeof t=="string"&&!isHtml(t)?r.find(t).clone():t,[l]=this._makeDomArray(o,i<n);if(!l||!hasChildren(l))continue;let d=l,f=0;for(;f<d.children.length;){const m=d.children[f];isTag(m)?(d=m,f=0):f++}e(s,d,[l])}return this}}const wrap=_wrap((e,t,n)=>{const{parent:r}=e;if(!r)return;const i=r.children,s=i.indexOf(e);update([e],t),uniqueSplice(i,s,0,n,r)}),wrapInner=_wrap((e,t,n)=>{hasChildren(e)&&(update(e.children,t),update(n,e))});function unwrap(e){return this.parent(e).not("body").each((t,n)=>{this._make(n).replaceWith(n.children)}),this}function wrapAll(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 s=0;s<n.length;s++)n[s].type==="tag"&&(r=n[s]);let i=0;for(;r&&i<r.children.length;){const s=r.children[i];s.type==="tag"?(r=s,i=0):i++}r&&this._make(r).append(this)}return this}function after(...e){const t=this.length-1;return domEach(this,(n,r)=>{if(!hasChildren(n)||!n.parent)return;const i=n.parent.children,s=i.indexOf(n);if(s<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,l=this._makeDomArray(o,r<t);uniqueSplice(i,s+1,0,l,n.parent)})}function insertAfter(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const n of this._makeDomArray(e)){const r=this.clone().toArray(),{parent:i}=n;if(!i)continue;const s=i.children,o=s.indexOf(n);o<0||(uniqueSplice(s,o+1,0,r,i),t.push(...r))}return this._make(t)}function before(...e){const t=this.length-1;return domEach(this,(n,r)=>{if(!hasChildren(n)||!n.parent)return;const i=n.parent.children,s=i.indexOf(n);if(s<0)return;const o=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,l=this._makeDomArray(o,r<t);uniqueSplice(i,s,0,l,n.parent)})}function insertBefore(e){const t=this._make(e);this.remove();const n=[];return domEach(t,r=>{const i=this.clone().toArray(),{parent:s}=r;if(!s)return;const o=s.children,l=o.indexOf(r);l<0||(uniqueSplice(o,l,0,i,s),n.push(...i))}),this._make(n)}function remove(e){const t=e?this.filter(e):this;return domEach(t,n=>{removeElement(n),n.prev=n.next=n.parent=null}),this}function replaceWith(e){return domEach(this,(t,n)=>{const{parent:r}=t;if(!r)return;const i=r.children,s=typeof e=="function"?e.call(t,n,t):e,o=this._makeDomArray(s);update(o,null);const l=i.indexOf(t);uniqueSplice(i,l,1,o,r),o.includes(t)||(t.parent=t.prev=t.next=null)})}function empty(){return domEach(this,e=>{if(hasChildren(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function html(e){if(e===void 0){const t=this[0];return!t||!hasChildren(t)?null:this._render(t.children)}return domEach(this,t=>{if(!hasChildren(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=isCheerio(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;update(n,t)})}function toString(){return this._render(this)}function text$2(e){return e===void 0?text$1(this):typeof e=="function"?domEach(this,(t,n)=>this._make(t).text(e.call(t,n,text$1([t])))):domEach(this,t=>{if(!hasChildren(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=new Text(`${e}`);update(n,t)})}function clone(){const e=Array.prototype.map.call(this.get(),n=>cloneNode(n,!0)),t=new Document$1(e);for(const n of e)n.parent=t;return this._make(e)}const Manipulation=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray,after,append,appendTo,before,clone,empty,html,insertAfter,insertBefore,prepend,prependTo,remove,replaceWith,text:text$2,toString,unwrap,wrap,wrapAll,wrapInner},Symbol.toStringTag,{value:"Module"}));function css(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return domEach(this,(n,r)=>{isTag(n)&&setCss(n,e,t,r)});if(this.length!==0)return getCss(this[0],e)}function setCss(e,t,n,r){if(typeof t=="string"){const i=getCss(e),s=typeof n=="function"?n.call(e,r,i[t]):n;s===""?delete i[t]:s!=null&&(i[t]=s),e.attribs.style=stringify$1(i)}else if(typeof t=="object"){const i=Object.keys(t);for(let s=0;s<i.length;s++){const o=i[s];setCss(e,o,t[o],s)}}}function getCss(e,t){if(!e||!isTag(e))return;const n=parse$3(e.attribs.style);if(typeof t=="string")return n[t];if(Array.isArray(t)){const r={};for(const i of t)n[i]!=null&&(r[i]=n[i]);return r}return n}function stringify$1(e){return Object.keys(e).reduce((t,n)=>`${t}${t?" ":""}${n}: ${e[n]};`,"")}function parse$3(e){if(e=(e||"").trim(),!e)return{};const t={};let n;for(const r of e.split(";")){const i=r.indexOf(":");if(i<1||i===r.length-1){const s=r.trimEnd();s.length>0&&n!==void 0&&(t[n]+=`;${s}`)}else n=r.slice(0,i).trim(),t[n]=r.slice(i+1).trim()}return t}const Css=Object.freeze(Object.defineProperty({__proto__:null,css},Symbol.toStringTag,{value:"Module"})),submittableSelector="input,select,textarea,keygen",r20=/%20/g,rCRLF=/\r?\n/g;function serialize(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(r20,"+")}function serializeArray(){return this.map((e,t)=>{const n=this._make(t);return isTag(t)&&t.name==="form"?n.find(submittableSelector).toArray():n.filter(submittableSelector).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),i=r.attr("name"),s=(n=r.val())!==null&&n!==void 0?n:"";return Array.isArray(s)?s.map(o=>({name:i,value:o.replace(rCRLF,`\r
- `)})):{name:i,value:s.replace(rCRLF,`\r
- `)}}).toArray()}const Forms=Object.freeze(Object.defineProperty({__proto__:null,serialize,serializeArray},Symbol.toStringTag,{value:"Module"}));function getExtractDescr(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function extract(e){const t={};for(const n in e){const r=e[n],i=Array.isArray(r),{selector:s,value:o}=getExtractDescr(i?r[0]:r),l=typeof o=="function"?o:typeof o=="string"?d=>this._make(d).prop(o):d=>this._make(d).extract(o);if(i)t[n]=this._findBySelector(s,Number.POSITIVE_INFINITY).map((d,f)=>l(f,n,t)).get();else{const d=this._findBySelector(s,1);t[n]=d.length>0?l(d[0],n,t):void 0}}return t}const Extract=Object.freeze(Object.defineProperty({__proto__:null,extract},Symbol.toStringTag,{value:"Module"}));class Cheerio{constructor(t,n,r){if(this.length=0,this.options=r,this._root=n,t){for(let i=0;i<t.length;i++)this[i]=t[i];this.length=t.length}}}Cheerio.prototype.cheerio="[cheerio object]";Cheerio.prototype.splice=Array.prototype.splice;Cheerio.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Cheerio.prototype,Attributes,Traversing,Manipulation,Css,Forms,Extract);function getLoad(e,t){return function n(r,i,s=!0){if(r==null)throw new Error("cheerio.load() expects a string");const o=flattenOptions(i),l=e(r,o,s,null);class d extends Cheerio{_make(g,E){const w=f(g,E);return w.prevObject=this,w}_parse(g,E,w,C){return e(g,E,w,C)}_render(g){return t(g,this.options)}}function f(m,g,E=l,w){if(m&&isCheerio(m))return m;const C=flattenOptions(w,o),I=typeof E=="string"?[e(E,C,!1,null)]:"length"in E?E:[E],D=isCheerio(I)?I:new d(I,null,C);if(D._root=D,!m)return new d(void 0,D,C);const L=typeof m=="string"&&isHtml(m)?e(m,C,!1,null).children:isNode$1(m)?[m]:Array.isArray(m)?m:void 0,Y=new d(L,D,C);if(L)return Y;if(typeof m!="string")throw new TypeError("Unexpected type of selector");let G=m;const z=g?typeof g=="string"?isHtml(g)?new d([e(g,C,!1,null)],D,C):(G=`${g} ${G}`,D):isCheerio(g)?g:new d(Array.isArray(g)?g:[g],D,C):D;return z?z.find(G):Y}return Object.assign(f,staticMethods,{load:n,_root:l,_options:o,fn:d.prototype,prototype:d.prototype}),f}}function isNode$1(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var CharCodes$2;(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"})(CharCodes$2||(CharCodes$2={}));var State;(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.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(State||(State={}));function isWhitespace$2(e){return e===CharCodes$2.Space||e===CharCodes$2.NewLine||e===CharCodes$2.Tab||e===CharCodes$2.FormFeed||e===CharCodes$2.CarriageReturn}function isEndOfTagSection(e){return e===CharCodes$2.Slash||e===CharCodes$2.Gt||isWhitespace$2(e)}function isASCIIAlpha(e){return e>=CharCodes$2.LowerA&&e<=CharCodes$2.LowerZ||e>=CharCodes$2.UpperA&&e<=CharCodes$2.UpperZ}var QuoteType;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={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]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tokenizer{constructor({xmlMode:t=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=State.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=n,this.entityDecoder=new EntityDecoder$1(t?xmlDecodeTree$1:htmlDecodeTree$1,(i,s)=>this.emitCodePoint(i,s))}reset(){this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.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()}stateText(t){t===CharCodes$2.Lt||!this.decodeEntities&&this.fastForwardTo(CharCodes$2.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===CharCodes$2.Amp&&this.startEntity()}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?isEndOfTagSection(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===CharCodes$2.Gt||isWhitespace$2(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===Sequences.TitleEnd?this.decodeEntities&&t===CharCodes$2.Amp&&this.startEntity():this.fastForwardTo(CharCodes$2.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===CharCodes$2.Lt)}stateCDATASequence(t){t===Sequences.Cdata[this.sequenceIndex]?++this.sequenceIndex===Sequences.Cdata.length&&(this.state=State.InCommentLike,this.currentSequence=Sequences.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=State.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===Sequences.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=State.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?!isEndOfTagSection(t):isASCIIAlpha(t)}startSpecial(t,n){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=n,this.state=State.SpecialStartSequence}stateBeforeTagName(t){if(t===CharCodes$2.ExclamationMark)this.state=State.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===CharCodes$2.Questionmark)this.state=State.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const n=t|32;this.sectionStart=this.index,this.xmlMode?this.state=State.InTagName:n===Sequences.ScriptEnd[2]?this.state=State.BeforeSpecialS:n===Sequences.TitleEnd[2]?this.state=State.BeforeSpecialT:this.state=State.InTagName}else t===CharCodes$2.Slash?this.state=State.BeforeClosingTagName:(this.state=State.Text,this.stateText(t))}stateInTagName(t){isEndOfTagSection(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){isWhitespace$2(t)||(t===CharCodes$2.Gt?this.state=State.Text:(this.state=this.isTagStartChar(t)?State.InClosingTagName:State.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===CharCodes$2.Gt||isWhitespace$2(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===CharCodes$2.Gt||this.fastForwardTo(CharCodes$2.Gt))&&(this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===CharCodes$2.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=State.InSpecialTag,this.sequenceIndex=0):this.state=State.Text,this.sectionStart=this.index+1):t===CharCodes$2.Slash?this.state=State.InSelfClosingTag:isWhitespace$2(t)||(this.state=State.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===CharCodes$2.Gt?(this.cbs.onselfclosingtag(this.index),this.state=State.Text,this.sectionStart=this.index+1,this.isSpecial=!1):isWhitespace$2(t)||(this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===CharCodes$2.Eq||isEndOfTagSection(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=State.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===CharCodes$2.Eq?this.state=State.BeforeAttributeValue:t===CharCodes$2.Slash||t===CharCodes$2.Gt?(this.cbs.onattribend(QuoteType.NoValue,this.sectionStart),this.sectionStart=-1,this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(t)):isWhitespace$2(t)||(this.cbs.onattribend(QuoteType.NoValue,this.sectionStart),this.state=State.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===CharCodes$2.DoubleQuote?(this.state=State.InAttributeValueDq,this.sectionStart=this.index+1):t===CharCodes$2.SingleQuote?(this.state=State.InAttributeValueSq,this.sectionStart=this.index+1):isWhitespace$2(t)||(this.sectionStart=this.index,this.state=State.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===CharCodes$2.DoubleQuote?QuoteType.Double:QuoteType.Single,this.index+1),this.state=State.BeforeAttributeName):this.decodeEntities&&t===CharCodes$2.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,CharCodes$2.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,CharCodes$2.SingleQuote)}stateInAttributeValueNoQuotes(t){isWhitespace$2(t)||t===CharCodes$2.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(QuoteType.Unquoted,this.index),this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===CharCodes$2.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===CharCodes$2.OpeningSquareBracket?(this.state=State.CDATASequence,this.sequenceIndex=0):this.state=t===CharCodes$2.Dash?State.BeforeComment:State.InDeclaration}stateInDeclaration(t){(t===CharCodes$2.Gt||this.fastForwardTo(CharCodes$2.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===CharCodes$2.Gt||this.fastForwardTo(CharCodes$2.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===CharCodes$2.Dash?(this.state=State.InCommentLike,this.currentSequence=Sequences.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=State.InDeclaration}stateInSpecialComment(t){(t===CharCodes$2.Gt||this.fastForwardTo(CharCodes$2.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const n=t|32;n===Sequences.ScriptEnd[3]?this.startSpecial(Sequences.ScriptEnd,4):n===Sequences.StyleEnd[3]?this.startSpecial(Sequences.StyleEnd,4):(this.state=State.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){const n=t|32;n===Sequences.TitleEnd[3]?this.startSpecial(Sequences.TitleEnd,4):n===Sequences.TextareaEnd[3]?this.startSpecial(Sequences.TextareaEnd,4):(this.state=State.InTagName,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=State.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?DecodingMode$1.Strict:this.baseState===State.Text||this.baseState===State.InSpecialTag?DecodingMode$1.Legacy:DecodingMode$1.Attribute)}stateInEntity(){const t=this.entityDecoder.write(this.buffer,this.index-this.offset);t>=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State.Text||this.state===State.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State.InAttributeValueDq||this.state===State.InAttributeValueSq||this.state===State.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 State.Text:{this.stateText(t);break}case State.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case State.InSpecialTag:{this.stateInSpecialTag(t);break}case State.CDATASequence:{this.stateCDATASequence(t);break}case State.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case State.InAttributeName:{this.stateInAttributeName(t);break}case State.InCommentLike:{this.stateInCommentLike(t);break}case State.InSpecialComment:{this.stateInSpecialComment(t);break}case State.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case State.InTagName:{this.stateInTagName(t);break}case State.InClosingTagName:{this.stateInClosingTagName(t);break}case State.BeforeTagName:{this.stateBeforeTagName(t);break}case State.AfterAttributeName:{this.stateAfterAttributeName(t);break}case State.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case State.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case State.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case State.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case State.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case State.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case State.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case State.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case State.InDeclaration:{this.stateInDeclaration(t);break}case State.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case State.BeforeComment:{this.stateBeforeComment(t);break}case State.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case State.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===State.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===State.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===State.InTagName||this.state===State.BeforeAttributeName||this.state===State.BeforeAttributeValue||this.state===State.AfterAttributeName||this.state===State.InAttributeName||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueDq||this.state===State.InAttributeValueNq||this.state===State.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){this.baseState!==State.Text&&this.baseState!==State.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}}const formTags=new Set(["input","option","optgroup","select","button","datalist","textarea"]),pTag=new Set(["p"]),tableSectionTags=new Set(["thead","tbody"]),ddtTags=new Set(["dd","dt"]),rtpTags=new Set(["rt","rp"]),openImpliesClose=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",pTag],["h1",pTag],["h2",pTag],["h3",pTag],["h4",pTag],["h5",pTag],["h6",pTag],["select",formTags],["input",formTags],["output",formTags],["button",formTags],["datalist",formTags],["textarea",formTags],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ddtTags],["dt",ddtTags],["address",pTag],["article",pTag],["aside",pTag],["blockquote",pTag],["details",pTag],["div",pTag],["dl",pTag],["fieldset",pTag],["figcaption",pTag],["figure",pTag],["footer",pTag],["form",pTag],["header",pTag],["hr",pTag],["main",pTag],["nav",pTag],["ol",pTag],["pre",pTag],["section",pTag],["table",pTag],["ul",pTag],["rt",rtpTags],["rp",rtpTags],["tbody",tableSectionTags],["tfoot",tableSectionTags]]),voidElements=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),foreignContextElements=new Set(["math","svg"]),htmlIntegrationElements=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),reNameEnd=/\s|\//;let Parser$1=class{constructor(t,n={}){var r,i,s,o,l,d;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(i=n.lowerCaseAttributeNames)!==null&&i!==void 0?i:this.htmlMode,this.recognizeSelfClosing=(s=n.recognizeSelfClosing)!==null&&s!==void 0?s:!this.htmlMode,this.tokenizer=new((o=n.Tokenizer)!==null&&o!==void 0?o:Tokenizer)(this.options,this),this.foreignContext=[!this.htmlMode],(d=(l=this.cbs).onparserinit)===null||d===void 0||d.call(l,this)}ontext(t,n){var r,i;const s=this.getSlice(t,n);this.endIndex=n-1,(i=(r=this.cbs).ontext)===null||i===void 0||i.call(r,s),this.startIndex=n}ontextentity(t,n){var r,i;this.endIndex=n-1,(i=(r=this.cbs).ontext)===null||i===void 0||i.call(r,fromCodePoint$2(t)),this.startIndex=n}isVoidElement(t){return this.htmlMode&&voidElements.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,i,s;this.openTagStart=this.startIndex,this.tagname=t;const o=this.htmlMode&&openImpliesClose.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){const l=this.stack.shift();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,l,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(foreignContextElements.has(t)?this.foreignContext.unshift(!0):htmlIntegrationElements.has(t)&&this.foreignContext.unshift(!1))),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,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,i,s,o,l,d,f,m;this.endIndex=n;let g=this.getSlice(t,n);if(this.lowerCaseTagNames&&(g=g.toLowerCase()),this.htmlMode&&(foreignContextElements.has(g)||htmlIntegrationElements.has(g))&&this.foreignContext.shift(),this.isVoidElement(g))this.htmlMode&&g==="br"&&((o=(s=this.cbs).onopentagname)===null||o===void 0||o.call(s,"br"),(d=(l=this.cbs).onopentag)===null||d===void 0||d.call(l,"br",{},!0),(m=(f=this.cbs).onclosetag)===null||m===void 0||m.call(f,"br",!1));else{const E=this.stack.indexOf(g);if(E!==-1)for(let w=0;w<=E;w++){const C=this.stack.shift();(i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,C,w!==E)}else this.htmlMode&&g==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,r;const i=this.tagname;this.endOpenTag(t),this.stack[0]===i&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,i,!t),this.stack.shift())}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+=fromCodePoint$2(t)}onattribend(t,n){var r,i;this.endIndex=n,(i=(r=this.cbs).onattribute)===null||i===void 0||i.call(r,this.attribname,this.attribvalue,t===QuoteType.Double?'"':t===QuoteType.Single?"'":t===QuoteType.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(reNameEnd);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 i=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${i}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const i=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${i}`,`?${r}`)}this.startIndex=n+1}oncomment(t,n,r){var i,s,o,l;this.endIndex=n,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(t,n-r)),(l=(o=this.cbs).oncommentend)===null||l===void 0||l.call(o),this.startIndex=n+1}oncdata(t,n,r){var i,s,o,l,d,f,m,g,E,w;this.endIndex=n;const C=this.getSlice(t,n-r);!this.htmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(l=(o=this.cbs).ontext)===null||l===void 0||l.call(o,C),(f=(d=this.cbs).oncdataend)===null||f===void 0||f.call(d)):((g=(m=this.cbs).oncomment)===null||g===void 0||g.call(m,`[CDATA[${C}]]`),(w=(E=this.cbs).oncommentend)===null||w===void 0||w.call(E)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)}reset(){var t,n,r,i;(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,(i=(r=this.cbs).onparserinit)===null||i===void 0||i.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),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 parseDocument$1(e,t){const n=new DomHandler(void 0,t);return new Parser$1(n,t).end(e),n.root}const load=getLoad(getParse(parseDocument$1),render$1),defaultSelectorRules={"div,p":({$node:e})=>({queue:e.children()}),"h1,h2,h3,h4,h5,h6":({$node:e,getContent:t})=>({...t(e.contents())}),"ul,ol":({$node:e})=>({queue:e.children(),nesting:!0}),li:({$node:e,getContent:t})=>{const n=e.children().filter("ul,ol");let r;if(e.contents().first().is("div,p"))r=t(e.children().first());else{let i=e.contents();const s=i.index(n);s>=0&&(i=i.slice(0,s)),r=t(i)}return{queue:n,nesting:!0,...r}},"table,pre,p>img:only-child":({$node:e,getContent:t})=>({...t(e)})},defaultOptions$2={selector:"h1,h2,h3,h4,h5,h6,ul,ol,li,table,pre,p>img:only-child",selectorRules:defaultSelectorRules},MARKMAP_COMMENT_PREFIX="markmap: ",SELECTOR_HEADING=/^h[1-6]$/,SELECTOR_LIST=/^[uo]l$/,SELECTOR_LIST_ITEM=/^li$/;function getLevel(e){return SELECTOR_HEADING.test(e)?+e[1]:SELECTOR_LIST.test(e)?8:SELECTOR_LIST_ITEM.test(e)?9:7}function parseHtml(e,t){const n={...defaultOptions$2,...t},r=load(e);let i=r("body");i.length||(i=r.root());let s=0;const o={id:s,tag:"",html:"",level:0,parent:0,childrenLevel:0,children:[]},l=[];let d=0;return w(i.children()),o;function f(C){var I;const{parent:D}=C,L={id:++s,tag:C.tagName,level:C.level,html:C.html,childrenLevel:0,children:C.nesting?[]:void 0,parent:D.id};return(I=C.comments)!=null&&I.length&&(L.comments=C.comments),Object.keys(C.data||{}).length&&(L.data=C.data),D.children&&((D.childrenLevel===0||D.childrenLevel>L.level)&&(D.children=[],D.childrenLevel=L.level),D.childrenLevel===L.level&&D.children.push(L)),L}function m(C){let I;for(;(I=l[l.length-1])&&I.level>=C;)l.pop();return I||o}function g(C){var I;const D=E(C),L=(I=r.html(D.$node))==null?void 0:I.trimEnd();return{comments:D.comments,html:L}}function E(C){const I=[];return C=C.filter((D,L)=>{if(L.type==="comment"){const Y=L.data.trim();if(Y.startsWith(MARKMAP_COMMENT_PREFIX))return I.push(Y.slice(MARKMAP_COMMENT_PREFIX.length).trim()),!1}return!0}),{$node:C,comments:I}}function w(C,I){C.each((D,L)=>{var Y;const G=r(L),z=(Y=Object.entries(n.selectorRules).find(([He])=>G.is(He)))==null?void 0:Y[1],K=z==null?void 0:z({$node:G,$:r,getContent:g});if(K!=null&&K.queue&&!K.nesting){w(K.queue,I);return}const X=getLevel(L.tagName);if(!K){X<=6&&(d=X);return}if(d>0&&X>d||!G.is(n.selector))return;d=0;const ye=X<=6;let be={...G.closest("p").data(),...G.data()},Ce=K.html||"";if(G.is("ol>li")&&(I!=null&&I.children)){const Fe=+(G.parent().attr("start")||1)+I.children.length;Ce=`${Fe}. ${Ce}`,be={...be,listIndex:Fe}}const Ne=f({parent:I||m(X),nesting:!!K.queue||ye,tagName:L.tagName,level:X,html:Ce,comments:K.comments,data:be});ye&&l.push(Ne),K.queue&&w(K.queue,Ne)})}}function convertNode(e){return walkTree(e,(t,n)=>{const r={content:t.html,children:n()||[]};return t.data&&(r.payload={tag:t.tag,...t.data}),t.comments&&(t.comments.includes("foldAll")?r.payload={...r.payload,fold:2}:t.comments.includes("fold")&&(r.payload={...r.payload,fold:1})),r})}function buildTree(e,t){const n=parseHtml(e,t);return convertNode(n)}const decodeCache={};function getDecodeCache(e){let t=decodeCache[e];if(t)return t;t=decodeCache[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function decode$1(e,t){typeof t!="string"&&(t=decode$1.defaultChars);const n=getDecodeCache(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let s=0,o=r.length;s<o;s+=3){const l=parseInt(r.slice(s+1,s+3),16);if(l<128){i+=n[l];continue}if((l&224)===192&&s+3<o){const d=parseInt(r.slice(s+4,s+6),16);if((d&192)===128){const f=l<<6&1984|d&63;f<128?i+="��":i+=String.fromCharCode(f),s+=3;continue}}if((l&240)===224&&s+6<o){const d=parseInt(r.slice(s+4,s+6),16),f=parseInt(r.slice(s+7,s+9),16);if((d&192)===128&&(f&192)===128){const m=l<<12&61440|d<<6&4032|f&63;m<2048||m>=55296&&m<=57343?i+="���":i+=String.fromCharCode(m),s+=6;continue}}if((l&248)===240&&s+9<o){const d=parseInt(r.slice(s+4,s+6),16),f=parseInt(r.slice(s+7,s+9),16),m=parseInt(r.slice(s+10,s+12),16);if((d&192)===128&&(f&192)===128&&(m&192)===128){let g=l<<18&1835008|d<<12&258048|f<<6&4032|m&63;g<65536||g>1114111?i+="����":(g-=65536,i+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),s+=9;continue}}i+="�"}return i})}decode$1.defaultChars=";/?:@&=+$,#";decode$1.componentChars="";const encodeCache={};function getEncodeCache(e){let t=encodeCache[e];if(t)return t;t=encodeCache[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function encode$1(e,t,n){typeof t!="string"&&(n=t,t=encode$1.defaultChars),typeof n>"u"&&(n=!0);const r=getEncodeCache(t);let i="";for(let s=0,o=e.length;s<o;s++){const l=e.charCodeAt(s);if(n&&l===37&&s+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(s+1,s+3))){i+=e.slice(s,s+3),s+=2;continue}if(l<128){i+=r[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1<o){const d=e.charCodeAt(s+1);if(d>=56320&&d<=57343){i+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[s])}return i}encode$1.defaultChars=";/?:@&=+$,-_.!~*'()#";encode$1.componentChars="-_.!~*'()";function format(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
- `," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(e,t){if(e&&e instanceof Url)return e;const n=new Url;return n.parse(e,t),n}Url.prototype.parse=function(e,t){let n,r,i,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const f=simplePathPattern.exec(s);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}let o=protocolPattern.exec(s);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,s=s.substr(o.length)),(t||o||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=s.substr(0,2)==="//",i&&!(o&&hostlessProtocol[o])&&(s=s.substr(2),this.slashes=!0)),!hostlessProtocol[o]&&(i||o&&!slashedProtocol[o])){let f=-1;for(let C=0;C<hostEndingChars.length;C++)r=s.indexOf(hostEndingChars[C]),r!==-1&&(f===-1||r<f)&&(f=r);let m,g;f===-1?g=s.lastIndexOf("@"):g=s.lastIndexOf("@",f),g!==-1&&(m=s.slice(0,g),s=s.slice(g+1),this.auth=m),f=-1;for(let C=0;C<nonHostChars.length;C++)r=s.indexOf(nonHostChars[C]),r!==-1&&(f===-1||r<f)&&(f=r);f===-1&&(f=s.length),s[f-1]===":"&&f--;const E=s.slice(0,f);s=s.slice(f),this.parseHost(E),this.hostname=this.hostname||"";const w=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!w){const C=this.hostname.split(/\./);for(let I=0,D=C.length;I<D;I++){const L=C[I];if(L&&!L.match(hostnamePartPattern)){let Y="";for(let G=0,z=L.length;G<z;G++)L.charCodeAt(G)>127?Y+="x":Y+=L[G];if(!Y.match(hostnamePartPattern)){const G=C.slice(0,I),z=C.slice(I+1),K=L.match(hostnamePartStart);K&&(G.push(K[1]),z.unshift(K[2])),z.length&&(s=z.join(".")+s),this.hostname=G.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=s.indexOf("#");l!==-1&&(this.hash=s.substr(l),s=s.slice(0,l));const d=s.indexOf("?");return d!==-1&&(this.search=s.substr(d),s=s.slice(0,d)),s&&(this.pathname=s),slashedProtocol[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Url.prototype.parseHost=function(e){let t=portPattern.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const mdurl=Object.freeze(Object.defineProperty({__proto__:null,decode:decode$1,encode:encode$1,format,parse:urlParse},Symbol.toStringTag,{value:"Module"})),Any=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc=/[\0-\x1F\x7F-\x9F]/,regex$1=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\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-\u2E4F\u2E52-\u2E5D\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[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,regex=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ucmicro=Object.freeze(Object.defineProperty({__proto__:null,Any,Cc,Cf:regex$1,P,S:regex,Z},Symbol.toStringTag,{value:"Module"})),htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var _a;const decodeMap=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]]),fromCodePoint$1=(_a=String.fromCodePoint)!==null&&_a!==void 0?_a: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 replaceCodePoint(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=decodeMap.get(e))!==null&&t!==void 0?t:e}var CharCodes;(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"})(CharCodes||(CharCodes={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber(e){return e>=CharCodes.ZERO&&e<=CharCodes.NINE}function isHexadecimalCharacter(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_F||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_F}function isAsciiAlphaNumeric(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_Z||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_Z||isNumber(e)}function isEntityInAttributeInvalidEnd(e){return e===CharCodes.EQUALS||isAsciiAlphaNumeric(e)}var EntityDecoderState;(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"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(t){this.decodeMode=t,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case EntityDecoderState.EntityStart:return t.charCodeAt(n)===CharCodes.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(t,n));case EntityDecoderState.NumericStart:return this.stateNumericStart(t,n);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(t,n);case EntityDecoderState.NumericHex:return this.stateNumericHex(t,n);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|TO_LOWER_BIT)===CharCodes.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(isNumber(i)||isHexadecimalCharacter(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(isNumber(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,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===CharCodes.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(t!==CharCodes.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&BinTrieFlags.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=determineBranch(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(s===0||isEntityInAttributeInvalidEnd(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&BinTrieFlags.VALUE_LENGTH)>>14,s!==0){if(o===CharCodes.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~BinTrieFlags.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(e){let t="";const n=new EntityDecoder(e,r=>t+=fromCodePoint$1(r));return function(i,s){let o=0,l=0;for(;(l=i.indexOf("&",l))>=0;){t+=i.slice(o,l),n.startEntity(s);const f=n.write(i,l+1);if(f<0){o=l+n.end();break}o=l+f,l=f===0?o+1:o}const d=t+i.slice(o);return t="",d}}function determineBranch(e,t,n,r){const i=(t&BinTrieFlags.BRANCH_LENGTH)>>7,s=t&BinTrieFlags.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const d=r-s;return d<0||d>=i?-1:e[n+d]-1}let o=n,l=o+i-1;for(;o<=l;){const d=o+l>>>1,f=e[d];if(f<r)o=d+1;else if(f>r)l=d-1;else return e[d+i]}return-1}const htmlDecoder=getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);function decodeHTML(e,t=DecodingMode.Legacy){return htmlDecoder(e,t)}function _class$1(e){return Object.prototype.toString.call(e)}function isString$1(e){return _class$1(e)==="[object String]"}const _hasOwnProperty=Object.prototype.hasOwnProperty;function has(e,t){return _hasOwnProperty.call(e,t)}function assign$1(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function arrayReplaceAt(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function isValidEntityCode(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function fromCodePoint(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const UNESCAPE_MD_RE=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ENTITY_RE=/&([a-z#][a-z0-9]{1,31});/gi,UNESCAPE_ALL_RE=new RegExp(UNESCAPE_MD_RE.source+"|"+ENTITY_RE.source,"gi"),DIGITAL_ENTITY_TEST_RE=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function replaceEntityPattern(e,t){if(t.charCodeAt(0)===35&&DIGITAL_ENTITY_TEST_RE.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return isValidEntityCode(r)?fromCodePoint(r):e}const n=decodeHTML(e);return n!==e?n:e}function unescapeMd(e){return e.indexOf("\\")<0?e:e.replace(UNESCAPE_MD_RE,"$1")}function unescapeAll(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(UNESCAPE_ALL_RE,function(t,n,r){return n||replaceEntityPattern(t,r)})}const HTML_ESCAPE_TEST_RE=/[&<>"]/,HTML_ESCAPE_REPLACE_RE=/[&<>"]/g,HTML_REPLACEMENTS={"&":"&","<":"<",">":">",'"':"""};function replaceUnsafeChar(e){return HTML_REPLACEMENTS[e]}function escapeHtml$1(e){return HTML_ESCAPE_TEST_RE.test(e)?e.replace(HTML_ESCAPE_REPLACE_RE,replaceUnsafeChar):e}const REGEXP_ESCAPE_RE=/[.?*+^$[\]\\(){}|-]/g;function escapeRE$1(e){return e.replace(REGEXP_ESCAPE_RE,"\\$&")}function isSpace(e){switch(e){case 9:case 32:return!0}return!1}function isWhiteSpace(e){if(e>=8192&&e<=8202)return!0;switch(e){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}function isPunctChar(e){return P.test(e)||regex.test(e)}function isMdAsciiPunct(e){switch(e){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 normalizeReference(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const lib={mdurl,ucmicro},utils=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt,assign:assign$1,escapeHtml:escapeHtml$1,escapeRE:escapeRE$1,fromCodePoint,has,isMdAsciiPunct,isPunctChar,isSpace,isString:isString$1,isValidEntityCode,isWhiteSpace,lib,normalizeReference,unescapeAll,unescapeMd},Symbol.toStringTag,{value:"Module"}));function parseLinkLabel(e,t,n){let r,i,s,o;const l=e.posMax,d=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(s=e.src.charCodeAt(e.pos),s===93&&(r--,r===0)){i=!0;break}if(o=e.pos,e.md.inline.skipToken(e),s===91){if(o===e.pos-1)r++;else if(n)return e.pos=d,-1}}let f=-1;return i&&(f=e.pos),e.pos=d,f}function parseLinkDestination(e,t,n){let r,i=t;const s={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return s;if(r===62)return s.pos=i+1,s.str=unescapeAll(e.slice(t+1,i)),s.ok=!0,s;if(r===92&&i+1<n){i+=2;continue}i++}return s}let o=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(o++,o>32))return s;if(r===41){if(o===0)break;o--}i++}return t===i||o!==0||(s.str=unescapeAll(e.slice(t,i)),s.pos=i,s.ok=!0),s}function parseLinkTitle(e,t,n,r){let i,s=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)o.str=r.str,o.marker=r.marker;else{if(s>=n)return o;let l=e.charCodeAt(s);if(l!==34&&l!==39&&l!==40)return o;t++,s++,l===40&&(l=41),o.marker=l}for(;s<n;){if(i=e.charCodeAt(s),i===o.marker)return o.pos=s+1,o.str+=unescapeAll(e.slice(t,s)),o.ok=!0,o;if(i===40&&o.marker===41)return o;i===92&&s+1<n&&s++,s++}return o.can_continue=!0,o.str+=unescapeAll(e.slice(t,s)),o}const helpers=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination,parseLinkLabel,parseLinkTitle},Symbol.toStringTag,{value:"Module"})),default_rules={};default_rules.code_inline=function(e,t,n,r,i){const s=e[t];return"<code"+i.renderAttrs(s)+">"+escapeHtml$1(s.content)+"</code>"};default_rules.code_block=function(e,t,n,r,i){const s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+escapeHtml$1(e[t].content)+`</code></pre>
- `};default_rules.fence=function(e,t,n,r,i){const s=e[t],o=s.info?unescapeAll(s.info).trim():"";let l="",d="";if(o){const m=o.split(/(\s+)/g);l=m[0],d=m.slice(2).join("")}let f;if(n.highlight?f=n.highlight(s.content,l,d)||escapeHtml$1(s.content):f=escapeHtml$1(s.content),f.indexOf("<pre")===0)return f+`
- `;if(o){const m=s.attrIndex("class"),g=s.attrs?s.attrs.slice():[];m<0?g.push(["class",n.langPrefix+l]):(g[m]=g[m].slice(),g[m][1]+=" "+n.langPrefix+l);const E={attrs:g};return`<pre><code${i.renderAttrs(E)}>${f}</code></pre>
- `}return`<pre><code${i.renderAttrs(s)}>${f}</code></pre>
- `};default_rules.image=function(e,t,n,r,i){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,n,r),i.renderToken(e,t,n)};default_rules.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
- `:`<br>
- `};default_rules.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
- `:`<br>
- `:`
- `};default_rules.text=function(e,t){return escapeHtml$1(e[t].content)};default_rules.html_block=function(e,t){return e[t].content};default_rules.html_inline=function(e,t){return e[t].content};function Renderer(){this.rules=assign$1({},default_rules)}Renderer.prototype.renderAttrs=function(t){let n,r,i;if(!t.attrs)return"";for(i="",n=0,r=t.attrs.length;n<r;n++)i+=" "+escapeHtml$1(t.attrs[n][0])+'="'+escapeHtml$1(t.attrs[n][1])+'"';return i};Renderer.prototype.renderToken=function(t,n,r){const i=t[n];let s="";if(i.hidden)return"";i.block&&i.nesting!==-1&&n&&t[n-1].hidden&&(s+=`
- `),s+=(i.nesting===-1?"</":"<")+i.tag,s+=this.renderAttrs(i),i.nesting===0&&r.xhtmlOut&&(s+=" /");let o=!1;if(i.block&&(o=!0,i.nesting===1&&n+1<t.length)){const l=t[n+1];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===i.tag)&&(o=!1)}return s+=o?`>
- `:">",s};Renderer.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let s=0,o=e.length;s<o;s++){const l=e[s].type;typeof i[l]<"u"?r+=i[l](e,s,t,n,this):r+=this.renderToken(e,s,t)}return r};Renderer.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,s=e.length;i<s;i++)switch(e[i].type){case"text":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":r+=e[i].content;break;case"softbreak":case"hardbreak":r+=`
- `;break}return r};Renderer.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let s=0,o=e.length;s<o;s++){const l=e[s].type;l==="inline"?r+=this.renderInline(e[s].children,t,n):typeof i[l]<"u"?r+=i[l](e,s,t,n,this):r+=this.renderToken(e,s,t,n)}return r};function Ruler(){this.__rules__=[],this.__cache__=null}Ruler.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Ruler.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Ruler.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null};Ruler.prototype.before=function(e,t,n,r){const i=this.__find__(e),s=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};Ruler.prototype.after=function(e,t,n,r){const i=this.__find__(e),s=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};Ruler.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Ruler.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};Ruler.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Ruler.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};Ruler.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Token(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,i=n.length;r<i;r++)if(n[r][0]===t)return r;return-1};Token.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Token.prototype.attrSet=function(t,n){const r=this.attrIndex(t),i=[t,n];r<0?this.attrPush(i):this.attrs[r]=i};Token.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};Token.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function StateCore(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}StateCore.prototype.Token=Token;const NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g;function normalize(e){let t;t=e.src.replace(NEWLINES_RE,`
- `),t=t.replace(NULL_RE,"�"),e.src=t}function block(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function inline(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function isLinkOpen$1(e){return/^<a[>\s]/i.test(e)}function isLinkClose$1(e){return/^<\/a\s*>/i.test(e)}function linkify$1(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,s=0;for(let o=i.length-1;o>=0;o--){const l=i[o];if(l.type==="link_close"){for(o--;i[o].level!==l.level&&i[o].type!=="link_open";)o--;continue}if(l.type==="html_inline"&&(isLinkOpen$1(l.content)&&s>0&&s--,isLinkClose$1(l.content)&&s++),!(s>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const d=l.content;let f=e.md.linkify.match(d);const m=[];let g=l.level,E=0;f.length>0&&f[0].index===0&&o>0&&i[o-1].type==="text_special"&&(f=f.slice(1));for(let w=0;w<f.length;w++){const C=f[w].url,I=e.md.normalizeLink(C);if(!e.md.validateLink(I))continue;let D=f[w].text;f[w].schema?f[w].schema==="mailto:"&&!/^mailto:/i.test(D)?D=e.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=e.md.normalizeLinkText(D):D=e.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,"");const L=f[w].index;if(L>E){const K=new e.Token("text","",0);K.content=d.slice(E,L),K.level=g,m.push(K)}const Y=new e.Token("link_open","a",1);Y.attrs=[["href",I]],Y.level=g++,Y.markup="linkify",Y.info="auto",m.push(Y);const G=new e.Token("text","",0);G.content=D,G.level=g,m.push(G);const z=new e.Token("link_close","a",-1);z.level=--g,z.markup="linkify",z.info="auto",m.push(z),E=f[w].lastIndex}if(E<d.length){const w=new e.Token("text","",0);w.content=d.slice(E),w.level=g,m.push(w)}t[n].children=i=arrayReplaceAt(i,o,m)}}}}const RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(e,t){return SCOPED_ABBR[t.toLowerCase()]}function replace_scoped(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(SCOPED_ABBR_RE,replaceFn)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function replace_rare(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&RARE_RE.test(r.content)&&(r.content=r.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–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function replace(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(e.tokens[t].content)&&replace_scoped(e.tokens[t].children),RARE_RE.test(e.tokens[t].content)&&replace_rare(e.tokens[t].children))}const QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function process_inlines(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const s=e[i],o=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=o);n--);if(r.length=n+1,s.type!=="text")continue;let l=s.content,d=0,f=l.length;e:for(;d<f;){QUOTE_RE.lastIndex=d;const m=QUOTE_RE.exec(l);if(!m)break;let g=!0,E=!0;d=m.index+1;const w=m[0]==="'";let C=32;if(m.index-1>=0)C=l.charCodeAt(m.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){C=e[n].content.charCodeAt(e[n].content.length-1);break}let I=32;if(d<f)I=l.charCodeAt(d);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){I=e[n].content.charCodeAt(0);break}const D=isMdAsciiPunct(C)||isPunctChar(String.fromCharCode(C)),L=isMdAsciiPunct(I)||isPunctChar(String.fromCharCode(I)),Y=isWhiteSpace(C),G=isWhiteSpace(I);if(G?g=!1:L&&(Y||D||(g=!1)),Y?E=!1:D&&(G||L||(E=!1)),I===34&&m[0]==='"'&&C>=48&&C<=57&&(E=g=!1),g&&E&&(g=D,E=L),!g&&!E){w&&(s.content=replaceAt(s.content,m.index,APOSTROPHE));continue}if(E)for(n=r.length-1;n>=0;n--){let z=r[n];if(r[n].level<o)break;if(z.single===w&&r[n].level===o){z=r[n];let K,X;w?(K=t.md.options.quotes[2],X=t.md.options.quotes[3]):(K=t.md.options.quotes[0],X=t.md.options.quotes[1]),s.content=replaceAt(s.content,m.index,X),e[z.token].content=replaceAt(e[z.token].content,z.pos,K),d+=X.length-1,z.token===i&&(d+=K.length-1),l=s.content,f=l.length,r.length=n;continue e}}g?r.push({token:i,pos:m.index,single:w,level:o}):E&&w&&(s.content=replaceAt(s.content,m.index,APOSTROPHE))}}}function smartquotes(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!QUOTE_TEST_RE.test(e.tokens[t].content)||process_inlines(e.tokens[t].children,e)}function text_join(e){let t,n;const r=e.tokens,i=r.length;for(let s=0;s<i;s++){if(r[s].type!=="inline")continue;const o=r[s].children,l=o.length;for(t=0;t<l;t++)o[t].type==="text_special"&&(o[t].type="text");for(t=n=0;t<l;t++)o[t].type==="text"&&t+1<l&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}const _rules$2=[["normalize",normalize],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replace],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler;for(let e=0;e<_rules$2.length;e++)this.ruler.push(_rules$2[e][0],_rules$2[e][1])}Core.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};Core.prototype.State=StateCore;function StateBlock(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,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;const i=this.src;for(let s=0,o=0,l=0,d=0,f=i.length,m=!1;o<f;o++){const g=i.charCodeAt(o);if(!m)if(isSpace(g)){l++,g===9?d+=4-d%4:d++;continue}else m=!0;(g===10||o===f-1)&&(g!==10&&o++,this.bMarks.push(s),this.eMarks.push(o),this.tShift.push(l),this.sCount.push(d),this.bsCount.push(0),m=!1,l=0,d=0,s=o+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(e,t,n){const r=new Token(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};StateBlock.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};StateBlock.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};StateBlock.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!isSpace(r))break}return t};StateBlock.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!isSpace(this.src.charCodeAt(--t)))return t+1;return t};StateBlock.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};StateBlock.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};StateBlock.prototype.getLines=function(t,n,r,i){if(t>=n)return"";const s=new Array(n-t);for(let o=0,l=t;l<n;l++,o++){let d=0;const f=this.bMarks[l];let m=f,g;for(l+1<n||i?g=this.eMarks[l]+1:g=this.eMarks[l];m<g&&d<r;){const E=this.src.charCodeAt(m);if(isSpace(E))E===9?d+=4-(d+this.bsCount[l])%4:d++;else if(m-f<this.tShift[l])d++;else break;m++}d>r?s[o]=new Array(d-r+1).join(" ")+this.src.slice(m,g):s[o]=this.src.slice(m,g)}return s.join("")};StateBlock.prototype.Token=Token;const MAX_AUTOCOMPLETED_CELLS=65536;function getLine(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function escapedSplit(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),s=!1,o=0,l="";for(;r<n;)i===124&&(s?(l+=e.substring(o,r-1),o=r):(t.push(l+e.substring(o,r)),l="",o=r+1)),s=i===92,r++,i=e.charCodeAt(r);return t.push(l+e.substring(o)),t}function table(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let s=e.bMarks[i]+e.tShift[i];if(s>=e.eMarks[i])return!1;const o=e.src.charCodeAt(s++);if(o!==124&&o!==45&&o!==58||s>=e.eMarks[i])return!1;const l=e.src.charCodeAt(s++);if(l!==124&&l!==45&&l!==58&&!isSpace(l)||o===45&&isSpace(l))return!1;for(;s<e.eMarks[i];){const z=e.src.charCodeAt(s);if(z!==124&&z!==45&&z!==58&&!isSpace(z))return!1;s++}let d=getLine(e,t+1),f=d.split("|");const m=[];for(let z=0;z<f.length;z++){const K=f[z].trim();if(!K){if(z===0||z===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(K))return!1;K.charCodeAt(K.length-1)===58?m.push(K.charCodeAt(0)===58?"center":"right"):K.charCodeAt(0)===58?m.push("left"):m.push("")}if(d=getLine(e,t).trim(),d.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;f=escapedSplit(d),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop();const g=f.length;if(g===0||g!==m.length)return!1;if(r)return!0;const E=e.parentType;e.parentType="table";const w=e.md.block.ruler.getRules("blockquote"),C=e.push("table_open","table",1),I=[t,0];C.map=I;const D=e.push("thead_open","thead",1);D.map=[t,t+1];const L=e.push("tr_open","tr",1);L.map=[t,t+1];for(let z=0;z<f.length;z++){const K=e.push("th_open","th",1);m[z]&&(K.attrs=[["style","text-align:"+m[z]]]);const X=e.push("inline","",0);X.content=f[z].trim(),X.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let Y,G=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let z=!1;for(let X=0,ye=w.length;X<ye;X++)if(w[X](e,i,n,!0)){z=!0;break}if(z||(d=getLine(e,i).trim(),!d)||e.sCount[i]-e.blkIndent>=4||(f=escapedSplit(d),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),G+=g-f.length,G>MAX_AUTOCOMPLETED_CELLS))break;if(i===t+2){const X=e.push("tbody_open","tbody",1);X.map=Y=[t+2,0]}const K=e.push("tr_open","tr",1);K.map=[i,i+1];for(let X=0;X<g;X++){const ye=e.push("td_open","td",1);m[X]&&(ye.attrs=[["style","text-align:"+m[X]]]);const be=e.push("inline","",0);be.content=f[X]?f[X].trim():"",be.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return Y&&(e.push("tbody_close","tbody",-1),Y[1]=i),e.push("table_close","table",-1),I[1]=i,e.parentType=E,e.line=i,!0}function code(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;const s=e.push("code_block","code",0);return s.content=e.getLines(t,i,4+e.blkIndent,!1)+`
- `,s.map=[t,e.line],!0}function fence(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>s)return!1;const o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let l=i;i=e.skipChars(i,o);let d=i-l;if(d<3)return!1;const f=e.src.slice(l,i),m=e.src.slice(i,s);if(o===96&&m.indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;let g=t,E=!1;for(;g++,!(g>=n||(i=l=e.bMarks[g]+e.tShift[g],s=e.eMarks[g],i<s&&e.sCount[g]<e.blkIndent));)if(e.src.charCodeAt(i)===o&&!(e.sCount[g]-e.blkIndent>=4)&&(i=e.skipChars(i,o),!(i-l<d)&&(i=e.skipSpaces(i),!(i<s)))){E=!0;break}d=e.sCount[t],e.line=g+(E?1:0);const w=e.push("fence","code",0);return w.info=m,w.content=e.getLines(t+1,g,d,!0),w.markup=f,w.map=[t,e.line],!0}function blockquote(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const o=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const l=[],d=[],f=[],m=[],g=e.md.block.ruler.getRules("blockquote"),E=e.parentType;e.parentType="blockquote";let w=!1,C;for(C=t;C<n;C++){const G=e.sCount[C]<e.blkIndent;if(i=e.bMarks[C]+e.tShift[C],s=e.eMarks[C],i>=s)break;if(e.src.charCodeAt(i++)===62&&!G){let K=e.sCount[C]+1,X,ye;e.src.charCodeAt(i)===32?(i++,K++,ye=!1,X=!0):e.src.charCodeAt(i)===9?(X=!0,(e.bsCount[C]+K)%4===3?(i++,K++,ye=!1):ye=!0):X=!1;let be=K;for(l.push(e.bMarks[C]),e.bMarks[C]=i;i<s;){const Ce=e.src.charCodeAt(i);if(isSpace(Ce))Ce===9?be+=4-(be+e.bsCount[C]+(ye?1:0))%4:be++;else break;i++}w=i>=s,d.push(e.bsCount[C]),e.bsCount[C]=e.sCount[C]+1+(X?1:0),f.push(e.sCount[C]),e.sCount[C]=be-K,m.push(e.tShift[C]),e.tShift[C]=i-e.bMarks[C];continue}if(w)break;let z=!1;for(let K=0,X=g.length;K<X;K++)if(g[K](e,C,n,!0)){z=!0;break}if(z){e.lineMax=C,e.blkIndent!==0&&(l.push(e.bMarks[C]),d.push(e.bsCount[C]),m.push(e.tShift[C]),f.push(e.sCount[C]),e.sCount[C]-=e.blkIndent);break}l.push(e.bMarks[C]),d.push(e.bsCount[C]),m.push(e.tShift[C]),f.push(e.sCount[C]),e.sCount[C]=-1}const I=e.blkIndent;e.blkIndent=0;const D=e.push("blockquote_open","blockquote",1);D.markup=">";const L=[t,0];D.map=L,e.md.block.tokenize(e,t,C);const Y=e.push("blockquote_close","blockquote",-1);Y.markup=">",e.lineMax=o,e.parentType=E,L[1]=e.line;for(let G=0;G<m.length;G++)e.bMarks[G+t]=l[G],e.tShift[G+t]=m[G],e.sCount[G+t]=f[G],e.bsCount[G+t]=d[G];return e.blkIndent=I,!0}function hr(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(s++);if(o!==42&&o!==45&&o!==95)return!1;let l=1;for(;s<i;){const f=e.src.charCodeAt(s++);if(f!==o&&!isSpace(f))return!1;f===o&&l++}if(l<3)return!1;if(r)return!0;e.line=t+1;const d=e.push("hr","hr",0);return d.map=[t,e.line],d.markup=Array(l+1).join(String.fromCharCode(o)),!0}function skipBulletListMarker(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const s=e.src.charCodeAt(r);if(!isSpace(s))return-1}return r}function skipOrderedListMarker(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let s=e.src.charCodeAt(i++);if(s<48||s>57)return-1;for(;;){if(i>=r)return-1;if(s=e.src.charCodeAt(i++),s>=48&&s<=57){if(i-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return i<r&&(s=e.src.charCodeAt(i),!isSpace(s))?-1:i}function markTightParagraphs(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function list(e,t,n,r){let i,s,o,l,d=t,f=!0;if(e.sCount[d]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[d]-e.listIndent>=4&&e.sCount[d]<e.blkIndent)return!1;let m=!1;r&&e.parentType==="paragraph"&&e.sCount[d]>=e.blkIndent&&(m=!0);let g,E,w;if((w=skipOrderedListMarker(e,d))>=0){if(g=!0,o=e.bMarks[d]+e.tShift[d],E=Number(e.src.slice(o,w-1)),m&&E!==1)return!1}else if((w=skipBulletListMarker(e,d))>=0)g=!1;else return!1;if(m&&e.skipSpaces(w)>=e.eMarks[d])return!1;if(r)return!0;const C=e.src.charCodeAt(w-1),I=e.tokens.length;g?(l=e.push("ordered_list_open","ol",1),E!==1&&(l.attrs=[["start",E]])):l=e.push("bullet_list_open","ul",1);const D=[d,0];l.map=D,l.markup=String.fromCharCode(C);let L=!1;const Y=e.md.block.ruler.getRules("list"),G=e.parentType;for(e.parentType="list";d<n;){s=w,i=e.eMarks[d];const z=e.sCount[d]+w-(e.bMarks[d]+e.tShift[d]);let K=z;for(;s<i;){const $e=e.src.charCodeAt(s);if($e===9)K+=4-(K+e.bsCount[d])%4;else if($e===32)K++;else break;s++}const X=s;let ye;X>=i?ye=1:ye=K-z,ye>4&&(ye=1);const be=z+ye;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(C);const Ce=[d,0];l.map=Ce,g&&(l.info=e.src.slice(o,w-1));const Ne=e.tight,He=e.tShift[d],Fe=e.sCount[d],Xe=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=be,e.tight=!0,e.tShift[d]=X-e.bMarks[d],e.sCount[d]=K,X>=i&&e.isEmpty(d+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,d,n,!0),(!e.tight||L)&&(f=!1),L=e.line-d>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Xe,e.tShift[d]=He,e.sCount[d]=Fe,e.tight=Ne,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(C),d=e.line,Ce[1]=d,d>=n||e.sCount[d]<e.blkIndent||e.sCount[d]-e.blkIndent>=4)break;let Ee=!1;for(let $e=0,Ie=Y.length;$e<Ie;$e++)if(Y[$e](e,d,n,!0)){Ee=!0;break}if(Ee)break;if(g){if(w=skipOrderedListMarker(e,d),w<0)break;o=e.bMarks[d]+e.tShift[d]}else if(w=skipBulletListMarker(e,d),w<0)break;if(C!==e.src.charCodeAt(w-1))break}return g?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(C),D[1]=d,e.line=d,e.parentType=G,f&&markTightParagraphs(e,I),!0}function reference(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],o=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function l(Y){const G=e.lineMax;if(Y>=G||e.isEmpty(Y))return null;let z=!1;if(e.sCount[Y]-e.blkIndent>3&&(z=!0),e.sCount[Y]<0&&(z=!0),!z){const ye=e.md.block.ruler.getRules("reference"),be=e.parentType;e.parentType="reference";let Ce=!1;for(let Ne=0,He=ye.length;Ne<He;Ne++)if(ye[Ne](e,Y,G,!0)){Ce=!0;break}if(e.parentType=be,Ce)return null}const K=e.bMarks[Y]+e.tShift[Y],X=e.eMarks[Y];return e.src.slice(K,X+1)}let d=e.src.slice(i,s+1);s=d.length;let f=-1;for(i=1;i<s;i++){const Y=d.charCodeAt(i);if(Y===91)return!1;if(Y===93){f=i;break}else if(Y===10){const G=l(o);G!==null&&(d+=G,s=d.length,o++)}else if(Y===92&&(i++,i<s&&d.charCodeAt(i)===10)){const G=l(o);G!==null&&(d+=G,s=d.length,o++)}}if(f<0||d.charCodeAt(f+1)!==58)return!1;for(i=f+2;i<s;i++){const Y=d.charCodeAt(i);if(Y===10){const G=l(o);G!==null&&(d+=G,s=d.length,o++)}else if(!isSpace(Y))break}const m=e.md.helpers.parseLinkDestination(d,i,s);if(!m.ok)return!1;const g=e.md.normalizeLink(m.str);if(!e.md.validateLink(g))return!1;i=m.pos;const E=i,w=o,C=i;for(;i<s;i++){const Y=d.charCodeAt(i);if(Y===10){const G=l(o);G!==null&&(d+=G,s=d.length,o++)}else if(!isSpace(Y))break}let I=e.md.helpers.parseLinkTitle(d,i,s);for(;I.can_continue;){const Y=l(o);if(Y===null)break;d+=Y,i=s,s=d.length,o++,I=e.md.helpers.parseLinkTitle(d,i,s,I)}let D;for(i<s&&C!==i&&I.ok?(D=I.str,i=I.pos):(D="",i=E,o=w);i<s;){const Y=d.charCodeAt(i);if(!isSpace(Y))break;i++}if(i<s&&d.charCodeAt(i)!==10&&D)for(D="",i=E,o=w;i<s;){const Y=d.charCodeAt(i);if(!isSpace(Y))break;i++}if(i<s&&d.charCodeAt(i)!==10)return!1;const L=normalizeReference(d.slice(1,f));return L?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[L]>"u"&&(e.env.references[L]={title:D,href:g}),e.line=o),!0):!1}const block_names=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Za-z][^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+")"),HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]];function html_block(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,s),l=0;for(;l<HTML_SEQUENCES.length&&!HTML_SEQUENCES[l][0].test(o);l++);if(l===HTML_SEQUENCES.length)return!1;if(r)return HTML_SEQUENCES[l][2];let d=t+1;if(!HTML_SEQUENCES[l][1].test(o)){for(;d<n&&!(e.sCount[d]<e.blkIndent);d++)if(i=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o=e.src.slice(i,s),HTML_SEQUENCES[l][1].test(o)){o.length!==0&&d++;break}}e.line=d;const f=e.push("html_block","",0);return f.map=[t,d],f.content=e.getLines(t,d,e.blkIndent,!0),!0}function heading(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=s)return!1;let l=1;for(o=e.src.charCodeAt(++i);o===35&&i<s&&l<=6;)l++,o=e.src.charCodeAt(++i);if(l>6||i<s&&!isSpace(o))return!1;if(r)return!0;s=e.skipSpacesBack(s,i);const d=e.skipCharsBack(s,35,i);d>i&&isSpace(e.src.charCodeAt(d-1))&&(s=d),e.line=t+1;const f=e.push("heading_open","h"+String(l),1);f.markup="########".slice(0,l),f.map=[t,e.line];const m=e.push("inline","",0);m.content=e.src.slice(i,s).trim(),m.map=[t,e.line],m.children=[];const g=e.push("heading_close","h"+String(l),-1);return g.markup="########".slice(0,l),!0}function lheading(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let s=0,o,l=t+1;for(;l<n&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let w=e.bMarks[l]+e.tShift[l];const C=e.eMarks[l];if(w<C&&(o=e.src.charCodeAt(w),(o===45||o===61)&&(w=e.skipChars(w,o),w=e.skipSpaces(w),w>=C))){s=o===61?1:2;break}}if(e.sCount[l]<0)continue;let E=!1;for(let w=0,C=r.length;w<C;w++)if(r[w](e,l,n,!0)){E=!0;break}if(E)break}if(!s)return!1;const d=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const f=e.push("heading_open","h"+String(s),1);f.markup=String.fromCharCode(o),f.map=[t,e.line];const m=e.push("inline","",0);m.content=d,m.map=[t,e.line-1],m.children=[];const g=e.push("heading_close","h"+String(s),-1);return g.markup=String.fromCharCode(o),e.parentType=i,!0}function paragraph(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let f=!1;for(let m=0,g=r.length;m<g;m++)if(r[m](e,s,n,!0)){f=!0;break}if(f)break}const o=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const d=e.push("inline","",0);return d.content=o,d.map=[t,e.line],d.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const _rules$1=[["table",table,["paragraph","reference"]],["code",code],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock(){this.ruler=new Ruler;for(let e=0;e<_rules$1.length;e++)this.ruler.push(_rules$1[e][0],_rules$1[e][1],{alt:(_rules$1[e][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,s=e.md.options.maxNesting;let o=t,l=!1;for(;o<n&&(e.line=o=e.skipEmptyLines(o),!(o>=n||e.sCount[o]<e.blkIndent));){if(e.level>=s){e.line=n;break}const d=e.line;let f=!1;for(let m=0;m<i;m++)if(f=r[m](e,o,n,!1),f){if(d>=e.line)throw new Error("block rule didn't increment state.line");break}if(!f)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),o=e.line,o<n&&e.isEmpty(o)&&(l=!0,o++,e.line=o)}};ParserBlock.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)};ParserBlock.prototype.State=StateBlock;function StateInline(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.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}StateInline.prototype.pushPending=function(){const e=new Token("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};StateInline.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Token(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};StateInline.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===r;)s++;const o=s-e,l=s<n?this.src.charCodeAt(s):32,d=isMdAsciiPunct(i)||isPunctChar(String.fromCharCode(i)),f=isMdAsciiPunct(l)||isPunctChar(String.fromCharCode(l)),m=isWhiteSpace(i),g=isWhiteSpace(l),E=!g&&(!f||m||d),w=!m&&(!d||g||f);return{can_open:E&&(t||!w||d),can_close:w&&(t||!E||f),length:o}};StateInline.prototype.Token=Token;function isTerminatorChar(e){switch(e){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}}function text(e,t){let n=e.pos;for(;n<e.posMax&&!isTerminatorChar(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function linkify(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(SCHEME_RE);if(!i)return!1;const s=i[1],o=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!o)return!1;let l=o.url;if(l.length<=s.length)return!1;l=l.replace(/\*+$/,"");const d=e.md.normalizeLink(l);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const m=e.push("text","",0);m.content=e.md.normalizeLinkText(l);const g=e.push("link_close","a",-1);g.markup="linkify",g.info="auto"}return e.pos+=l.length-s.length,!0}function newline(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let s=r-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&isSpace(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ESCAPED=[];for(let e=0;e<256;e++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ESCAPED[e.charCodeAt(0)]=1});function escape$1(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!isSpace(i));)n++;return e.pos=n,!0}let s=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const l=e.src.charCodeAt(n+1);l>=56320&&l<=57343&&(s+=e.src[n+1],n++)}const o="\\"+s;if(!t){const l=e.push("text_special","",0);i<256&&ESCAPED[i]!==0?l.content=s:l.content=o,l.markup=o,l.info="escape"}return e.pos=n+1,!0}function backtick(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const s=e.posMax;for(;n<s&&e.src.charCodeAt(n)===96;)n++;const o=e.src.slice(i,n),l=o.length;if(e.backticksScanned&&(e.backticks[l]||0)<=i)return t||(e.pending+=o),e.pos+=l,!0;let d=n,f;for(;(f=e.src.indexOf("`",d))!==-1;){for(d=f+1;d<s&&e.src.charCodeAt(d)===96;)d++;const m=d-f;if(m===l){if(!t){const g=e.push("code_inline","code",0);g.markup=o,g.content=e.src.slice(n,f).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=d,!0}e.backticks[m]=f}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}function strikethrough_tokenize(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const i=e.scanDelims(e.pos,!0);let s=i.length;const o=String.fromCharCode(r);if(s<2)return!1;let l;s%2&&(l=e.push("text","",0),l.content=o,s--);for(let d=0;d<s;d+=2)l=e.push("text","",0),l.content=o+o,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function postProcess$1(e,t){let n;const r=[],i=t.length;for(let s=0;s<i;s++){const o=t[s];if(o.marker!==126||o.end===-1)continue;const l=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&r.push(l.token-1)}for(;r.length;){const s=r.pop();let o=s+1;for(;o<e.tokens.length&&e.tokens[o].type==="s_close";)o++;o--,s!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[s],e.tokens[s]=n)}}function strikethrough_postProcess(e){const t=e.tokens_meta,n=e.tokens_meta.length;postProcess$1(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&postProcess$1(e,t[r].delimiters)}const r_strikethrough={tokenize:strikethrough_tokenize,postProcess:strikethrough_postProcess};function emphasis_tokenize(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const i=e.scanDelims(e.pos,r===42);for(let s=0;s<i.length;s++){const o=e.push("text","",0);o.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function postProcess(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const s=t[i.end],o=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===s.token+1,l=String.fromCharCode(i.marker),d=e.tokens[i.token];d.type=o?"strong_open":"em_open",d.tag=o?"strong":"em",d.nesting=1,d.markup=o?l+l:l,d.content="";const f=e.tokens[s.token];f.type=o?"strong_close":"em_close",f.tag=o?"strong":"em",f.nesting=-1,f.markup=o?l+l:l,f.content="",o&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function emphasis_post_process(e){const t=e.tokens_meta,n=e.tokens_meta.length;postProcess(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&postProcess(e,t[r].delimiters)}const r_emphasis={tokenize:emphasis_tokenize,postProcess:emphasis_post_process};function link(e,t){let n,r,i,s,o="",l="",d=e.pos,f=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const m=e.pos,g=e.posMax,E=e.pos+1,w=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(w<0)return!1;let C=w+1;if(C<g&&e.src.charCodeAt(C)===40){for(f=!1,C++;C<g&&(n=e.src.charCodeAt(C),!(!isSpace(n)&&n!==10));C++);if(C>=g)return!1;if(d=C,i=e.md.helpers.parseLinkDestination(e.src,C,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?C=i.pos:o="",d=C;C<g&&(n=e.src.charCodeAt(C),!(!isSpace(n)&&n!==10));C++);if(i=e.md.helpers.parseLinkTitle(e.src,C,e.posMax),C<g&&d!==C&&i.ok)for(l=i.str,C=i.pos;C<g&&(n=e.src.charCodeAt(C),!(!isSpace(n)&&n!==10));C++);}(C>=g||e.src.charCodeAt(C)!==41)&&(f=!0),C++}if(f){if(typeof e.env.references>"u")return!1;if(C<g&&e.src.charCodeAt(C)===91?(d=C+1,C=e.md.helpers.parseLinkLabel(e,C),C>=0?r=e.src.slice(d,C++):C=w+1):C=w+1,r||(r=e.src.slice(E,w)),s=e.env.references[normalizeReference(r)],!s)return e.pos=m,!1;o=s.href,l=s.title}if(!t){e.pos=E,e.posMax=w;const I=e.push("link_open","a",1),D=[["href",o]];I.attrs=D,l&&D.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=C,e.posMax=g,!0}function image(e,t){let n,r,i,s,o,l,d,f,m="";const g=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const w=e.pos+2,C=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(C<0)return!1;if(s=C+1,s<E&&e.src.charCodeAt(s)===40){for(s++;s<E&&(n=e.src.charCodeAt(s),!(!isSpace(n)&&n!==10));s++);if(s>=E)return!1;for(f=s,l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),l.ok&&(m=e.md.normalizeLink(l.str),e.md.validateLink(m)?s=l.pos:m=""),f=s;s<E&&(n=e.src.charCodeAt(s),!(!isSpace(n)&&n!==10));s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<E&&f!==s&&l.ok)for(d=l.str,s=l.pos;s<E&&(n=e.src.charCodeAt(s),!(!isSpace(n)&&n!==10));s++);else d="";if(s>=E||e.src.charCodeAt(s)!==41)return e.pos=g,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<E&&e.src.charCodeAt(s)===91?(f=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?i=e.src.slice(f,s++):s=C+1):s=C+1,i||(i=e.src.slice(w,C)),o=e.env.references[normalizeReference(i)],!o)return e.pos=g,!1;m=o.href,d=o.title}if(!t){r=e.src.slice(w,C);const I=[];e.md.inline.parse(r,e.md,e.env,I);const D=e.push("image","img",0),L=[["src",m],["alt",""]];D.attrs=L,D.children=I,D.content=r,d&&L.push(["title",d])}return e.pos=s,e.posMax=E,!0}const EMAIL_RE=/^([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])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function autolink(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const o=e.src.charCodeAt(n);if(o===60)return!1;if(o===62)break}const s=e.src.slice(r+1,n);if(AUTOLINK_RE.test(s)){const o=e.md.normalizeLink(s);if(!e.md.validateLink(o))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",o]],l.markup="autolink",l.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(s);const f=e.push("link_close","a",-1);f.markup="autolink",f.info="auto"}return e.pos+=s.length+2,!0}if(EMAIL_RE.test(s)){const o=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(o))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",o]],l.markup="autolink",l.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(s);const f=e.push("link_close","a",-1);f.markup="autolink",f.info="auto"}return e.pos+=s.length+2,!0}return!1}function isLinkOpen(e){return/^<a[>\s]/i.test(e)}function isLinkClose(e){return/^<\/a\s*>/i.test(e)}function isLetter(e){const t=e|32;return t>=97&&t<=122}function html_inline(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!isLetter(i))return!1;const s=e.src.slice(r).match(HTML_TAG_RE);if(!s)return!1;if(!t){const o=e.push("html_inline","",0);o.content=s[0],isLinkOpen(o.content)&&e.linkLevel++,isLinkClose(o.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}const DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;function entity(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const s=e.src.slice(n).match(DIGITAL_RE);if(s){if(!t){const o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),l=e.push("text_special","",0);l.content=isValidEntityCode(o)?fromCodePoint(o):fromCodePoint(65533),l.markup=s[0],l.info="entity"}return e.pos+=s[0].length,!0}}else{const s=e.src.slice(n).match(NAMED_RE);if(s){const o=decodeHTML(s[0]);if(o!==s[0]){if(!t){const l=e.push("text_special","",0);l.content=o,l.markup=s[0],l.info="entity"}return e.pos+=s[0].length,!0}}}return!1}function processDelimiters(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const s=[];for(let o=0;o<n;o++){const l=e[o];if(s.push(0),(e[r].marker!==l.marker||i!==l.token-1)&&(r=o),i=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const d=t[l.marker][(l.open?3:0)+l.length%3];let f=r-s[r]-1,m=f;for(;f>d;f-=s[f]+1){const g=e[f];if(g.marker===l.marker&&g.open&&g.end<0){let E=!1;if((g.close||l.open)&&(g.length+l.length)%3===0&&(g.length%3!==0||l.length%3!==0)&&(E=!0),!E){const w=f>0&&!e[f-1].open?s[f-1]+1:0;s[o]=o-f+w,s[f]=w,l.open=!1,g.end=o,g.close=!1,m=-1,i=-2;break}}}m!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=m)}}function link_pairs(e){const t=e.tokens_meta,n=e.tokens_meta.length;processDelimiters(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&processDelimiters(t[r].delimiters)}function fragments_join(e){let t,n,r=0;const i=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<s&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const _rules=[["text",text],["linkify",linkify],["newline",newline],["escape",escape$1],["backticks",backtick],["strikethrough",r_strikethrough.tokenize],["emphasis",r_emphasis.tokenize],["link",link],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",link_pairs],["strikethrough",r_strikethrough.postProcess],["emphasis",r_emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline(){this.ruler=new Ruler;for(let e=0;e<_rules.length;e++)this.ruler.push(_rules[e][0],_rules[e][1]);this.ruler2=new Ruler;for(let e=0;e<_rules2.length;e++)this.ruler2.push(_rules2[e][0],_rules2[e][1])}ParserInline.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,s=e.cache;if(typeof s[t]<"u"){e.pos=s[t];return}let o=!1;if(e.level<i){for(let l=0;l<r;l++)if(e.level++,o=n[l](e,!0),e.level--,o){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,s[t]=e.pos};ParserInline.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const s=e.pos;let o=!1;if(e.level<i){for(let l=0;l<n;l++)if(o=t[l](e,!1),o){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ParserInline.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const s=this.ruler2.getRules(""),o=s.length;for(let l=0;l<o;l++)s[l](i)};ParserInline.prototype.State=StateInline;function reFactory(e){const t={};e=e||{},t.src_Any=Any.source,t.src_Cc=Cc.source,t.src_Z=Z.source,t.src_P=P.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const 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="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+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}function assign(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function _class(e){return Object.prototype.toString.call(e)}function isString(e){return _class(e)==="[object String]"}function isObject(e){return _class(e)==="[object Object]"}function isRegExp(e){return _class(e)==="[object RegExp]"}function isFunction(e){return _class(e)==="[object Function]"}function escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(e){return Object.keys(e||{}).reduce(function(t,n){return t||defaultOptions.hasOwnProperty(n)},!1)}const defaultSchemas={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},tlds_2ch_src_re="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]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(e){e.__index__=-1,e.__text_cache__=""}function createValidator(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function createNormalizer(){return function(e,t){t.normalize(e)}}function compile(e){const t=e.re=reFactory(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(tlds_2ch_src_re),n.push(t.src_xn),t.src_tlds=n.join("|");function r(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function s(l,d){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+d)}Object.keys(e.__schemas__).forEach(function(l){const d=e.__schemas__[l];if(d===null)return;const f={validate:null,link:null};if(e.__compiled__[l]=f,isObject(d)){isRegExp(d.validate)?f.validate=createValidator(d.validate):isFunction(d.validate)?f.validate=d.validate:s(l,d),isFunction(d.normalize)?f.normalize=d.normalize:d.normalize?s(l,d):f.normalize=createNormalizer();return}if(isString(d)){i.push(l);return}s(l,d)}),i.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:createNormalizer()};const o=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(escapeRE).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),resetScanCache(e)}function Match(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function createMatch(e,t){const n=new Match(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function LinkifyIt(e,t){if(!(this instanceof LinkifyIt))return new LinkifyIt(e,t);t||isOptionsObj(e)&&(t=e,e={}),this.__opts__=assign({},defaultOptions,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign({},defaultSchemas,e),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt.prototype.add=function(t,n){return this.__schemas__[t]=n,compile(this),this};LinkifyIt.prototype.set=function(t){return this.__opts__=assign(this.__opts__,t),this};LinkifyIt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,i,s,o,l,d,f,m;if(this.re.schema_test.test(t)){for(d=this.re.schema_search,d.lastIndex=0;(n=d.exec(t))!==null;)if(s=this.testSchemaAt(t,n[2],d.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(f=t.search(this.re.host_fuzzy_test),f>=0&&(this.__index__<0||f<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=l))),this.__index__>=0};LinkifyIt.prototype.pretest=function(t){return this.re.pretest.test(t)};LinkifyIt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};LinkifyIt.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(createMatch(this,r)),r=this.__last_index__);let i=r?t.slice(r):t;for(;this.test(i);)n.push(createMatch(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};LinkifyIt.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,createMatch(this,0)):null};LinkifyIt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,s){return r!==s[i-1]}).reverse(),compile(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,compile(this),this)};LinkifyIt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};LinkifyIt.prototype.onCompile=function(){};const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(e){throw new RangeError(errors[e])}function map$1(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function mapDomain(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(regexSeparators,".");const i=e.split("."),s=map$1(i,t).join(".");return r+s}function ucs2decode(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const s=e.charCodeAt(n++);(s&64512)==56320?t.push(((i&1023)<<10)+(s&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const ucs2encode=e=>String.fromCodePoint(...e),basicToDigit=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:base},digitToBasic=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},adapt=function(e,t,n){let r=0;for(e=n?floor(e/damp):e>>1,e+=floor(e/t);e>baseMinusTMin*tMax>>1;r+=base)e=floor(e/baseMinusTMin);return floor(r+(baseMinusTMin+1)*e/(e+skew))},decode=function(e){const t=[],n=e.length;let r=0,i=initialN,s=initialBias,o=e.lastIndexOf(delimiter);o<0&&(o=0);for(let l=0;l<o;++l)e.charCodeAt(l)>=128&&error("not-basic"),t.push(e.charCodeAt(l));for(let l=o>0?o+1:0;l<n;){const d=r;for(let m=1,g=base;;g+=base){l>=n&&error("invalid-input");const E=basicToDigit(e.charCodeAt(l++));E>=base&&error("invalid-input"),E>floor((maxInt-r)/m)&&error("overflow"),r+=E*m;const w=g<=s?tMin:g>=s+tMax?tMax:g-s;if(E<w)break;const C=base-w;m>floor(maxInt/C)&&error("overflow"),m*=C}const f=t.length+1;s=adapt(r-d,f,d==0),floor(r/f)>maxInt-i&&error("overflow"),i+=floor(r/f),r%=f,t.splice(r++,0,i)}return String.fromCodePoint(...t)},encode=function(e){const t=[];e=ucs2decode(e);const n=e.length;let r=initialN,i=0,s=initialBias;for(const d of e)d<128&&t.push(stringFromCharCode(d));const o=t.length;let l=o;for(o&&t.push(delimiter);l<n;){let d=maxInt;for(const m of e)m>=r&&m<d&&(d=m);const f=l+1;d-r>floor((maxInt-i)/f)&&error("overflow"),i+=(d-r)*f,r=d;for(const m of e)if(m<r&&++i>maxInt&&error("overflow"),m===r){let g=i;for(let E=base;;E+=base){const w=E<=s?tMin:E>=s+tMax?tMax:E-s;if(g<w)break;const C=g-w,I=base-w;t.push(stringFromCharCode(digitToBasic(w+C%I,0))),g=floor(C/I)}t.push(stringFromCharCode(digitToBasic(g,0))),s=adapt(i,f,l===o),i=0,++l}++i,++r}return t.join("")},toUnicode=function(e){return mapDomain(e,function(t){return regexPunycode.test(t)?decode(t.slice(4).toLowerCase()):t})},toASCII=function(e){return mapDomain(e,function(t){return regexNonASCII.test(t)?"xn--"+encode(t):t})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},cfg_default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cfg_zero={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"]}}},cfg_commonmark={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"]}}},config$2={default:cfg_default,zero:cfg_zero,commonmark:cfg_commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(e){const t=e.trim().toLowerCase();return BAD_PROTO_RE.test(t)?GOOD_DATA_RE.test(t):!0}const RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(e){const t=urlParse(e,!0);if(t.hostname&&(!t.protocol||RECODE_HOSTNAME_FOR.indexOf(t.protocol)>=0))try{t.hostname=punycode.toASCII(t.hostname)}catch{}return encode$1(format(t))}function normalizeLinkText(e){const t=urlParse(e,!0);if(t.hostname&&(!t.protocol||RECODE_HOSTNAME_FOR.indexOf(t.protocol)>=0))try{t.hostname=punycode.toUnicode(t.hostname)}catch{}return decode$1(format(t),decode$1.defaultChars+"%")}function MarkdownIt(e,t){if(!(this instanceof MarkdownIt))return new MarkdownIt(e,t);t||isString$1(e)||(t=e||{},e="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=assign$1({},helpers),this.options={},this.configure(e),t&&this.set(t)}MarkdownIt.prototype.set=function(e){return assign$1(this.options,e),this};MarkdownIt.prototype.configure=function(e){const t=this;if(isString$1(e)){const n=e;if(e=config$2[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};MarkdownIt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};MarkdownIt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};MarkdownIt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};MarkdownIt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};MarkdownIt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};MarkdownIt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};MarkdownIt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};function ins_plugin$1(e){function t(r,i){const s=r.pos,o=r.src.charCodeAt(s);if(i||o!==43)return!1;const l=r.scanDelims(r.pos,!0);let d=l.length;const f=String.fromCharCode(o);if(d<2)return!1;if(d%2){const m=r.push("text","",0);m.content=f,d--}for(let m=0;m<d;m+=2){const g=r.push("text","",0);g.content=f+f,!(!l.can_open&&!l.can_close)&&r.delimiters.push({marker:o,length:0,jump:m/2,token:r.tokens.length-1,end:-1,open:l.can_open,close:l.can_close})}return r.pos+=l.length,!0}function n(r,i){let s;const o=[],l=i.length;for(let d=0;d<l;d++){const f=i[d];if(f.marker!==43||f.end===-1)continue;const m=i[f.end];s=r.tokens[f.token],s.type="ins_open",s.tag="ins",s.nesting=1,s.markup="++",s.content="",s=r.tokens[m.token],s.type="ins_close",s.tag="ins",s.nesting=-1,s.markup="++",s.content="",r.tokens[m.token-1].type==="text"&&r.tokens[m.token-1].content==="+"&&o.push(m.token-1)}for(;o.length;){const d=o.pop();let f=d+1;for(;f<r.tokens.length&&r.tokens[f].type==="ins_close";)f++;f--,d!==f&&(s=r.tokens[f],r.tokens[f]=r.tokens[d],r.tokens[d]=s)}}e.inline.ruler.before("emphasis","ins",t),e.inline.ruler2.before("emphasis","ins",function(r){const i=r.tokens_meta,s=(r.tokens_meta||[]).length;n(r,r.delimiters);for(let o=0;o<s;o++)i[o]&&i[o].delimiters&&n(r,i[o].delimiters)})}function ins_plugin(e){function t(r,i){const s=r.pos,o=r.src.charCodeAt(s);if(i||o!==61)return!1;const l=r.scanDelims(r.pos,!0);let d=l.length;const f=String.fromCharCode(o);if(d<2)return!1;if(d%2){const m=r.push("text","",0);m.content=f,d--}for(let m=0;m<d;m+=2){const g=r.push("text","",0);g.content=f+f,!(!l.can_open&&!l.can_close)&&r.delimiters.push({marker:o,length:0,jump:m/2,token:r.tokens.length-1,end:-1,open:l.can_open,close:l.can_close})}return r.pos+=l.length,!0}function n(r,i){const s=[],o=i.length;for(let l=0;l<o;l++){const d=i[l];if(d.marker!==61||d.end===-1)continue;const f=i[d.end],m=r.tokens[d.token];m.type="mark_open",m.tag="mark",m.nesting=1,m.markup="==",m.content="";const g=r.tokens[f.token];g.type="mark_close",g.tag="mark",g.nesting=-1,g.markup="==",g.content="",r.tokens[f.token-1].type==="text"&&r.tokens[f.token-1].content==="="&&s.push(f.token-1)}for(;s.length;){const l=s.pop();let d=l+1;for(;d<r.tokens.length&&r.tokens[d].type==="mark_close";)d++;if(d--,l!==d){const f=r.tokens[d];r.tokens[d]=r.tokens[l],r.tokens[l]=f}}}e.inline.ruler.before("emphasis","mark",t),e.inline.ruler2.before("emphasis","mark",function(r){let i;const s=r.tokens_meta,o=(r.tokens_meta||[]).length;for(n(r,r.delimiters),i=0;i<o;i++)s[i]&&s[i].delimiters&&n(r,s[i].delimiters)})}const UNESCAPE_RE$1=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function subscript(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==126||t||r+2>=n)return!1;e.pos=r+1;let i=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){i=!0;break}e.md.inline.skipToken(e)}if(!i||r+1===e.pos)return e.pos=r,!1;const s=e.src.slice(r+1,e.pos);if(s.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const o=e.push("sub_open","sub",1);o.markup="~";const l=e.push("text","",0);l.content=s.replace(UNESCAPE_RE$1,"$1");const d=e.push("sub_close","sub",-1);return d.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function sub_plugin(e){e.inline.ruler.after("emphasis","sub",subscript)}const UNESCAPE_RE=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function superscript(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==94||t||r+2>=n)return!1;e.pos=r+1;let i=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){i=!0;break}e.md.inline.skipToken(e)}if(!i||r+1===e.pos)return e.pos=r,!1;const s=e.src.slice(r+1,e.pos);if(s.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const o=e.push("sup_open","sup",1);o.markup="^";const l=e.push("text","",0);l.content=s.replace(UNESCAPE_RE,"$1");const d=e.push("sup_close","sup",-1);return d.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function sup_plugin(e){e.inline.ruler.after("emphasis","sup",superscript)}const ALIAS=Symbol.for("yaml.alias"),DOC=Symbol.for("yaml.document"),MAP=Symbol.for("yaml.map"),PAIR=Symbol.for("yaml.pair"),SCALAR$1=Symbol.for("yaml.scalar"),SEQ=Symbol.for("yaml.seq"),NODE_TYPE=Symbol.for("yaml.node.type"),isAlias=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===ALIAS,isDocument=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===DOC,isMap=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===MAP,isPair=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===PAIR,isScalar=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===SCALAR$1,isSeq=e=>!!e&&typeof e=="object"&&e[NODE_TYPE]===SEQ;function isCollection(e){if(e&&typeof e=="object")switch(e[NODE_TYPE]){case MAP:case SEQ:return!0}return!1}function isNode(e){if(e&&typeof e=="object")switch(e[NODE_TYPE]){case ALIAS:case MAP:case SCALAR$1:case SEQ:return!0}return!1}const hasAnchor=e=>(isScalar(e)||isCollection(e))&&!!e.anchor,BREAK=Symbol("break visit"),SKIP=Symbol("skip children"),REMOVE=Symbol("remove node");function visit(e,t){const n=initVisitor(t);isDocument(e)?visit_(null,e.contents,n,Object.freeze([e]))===REMOVE&&(e.contents=null):visit_(null,e,n,Object.freeze([]))}visit.BREAK=BREAK;visit.SKIP=SKIP;visit.REMOVE=REMOVE;function visit_(e,t,n,r){const i=callVisitor(e,t,n,r);if(isNode(i)||isPair(i))return replaceNode(e,r,i),visit_(e,i,n,r);if(typeof i!="symbol"){if(isCollection(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const o=visit_(s,t.items[s],n,r);if(typeof o=="number")s=o-1;else{if(o===BREAK)return BREAK;o===REMOVE&&(t.items.splice(s,1),s-=1)}}}else if(isPair(t)){r=Object.freeze(r.concat(t));const s=visit_("key",t.key,n,r);if(s===BREAK)return BREAK;s===REMOVE&&(t.key=null);const o=visit_("value",t.value,n,r);if(o===BREAK)return BREAK;o===REMOVE&&(t.value=null)}}return i}function initVisitor(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function callVisitor(e,t,n,r){var i,s,o,l,d;if(typeof n=="function")return n(e,t,r);if(isMap(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(isSeq(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(isPair(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(isScalar(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(isAlias(t))return(d=n.Alias)==null?void 0:d.call(n,e,t,r)}function replaceNode(e,t,n){const r=t[t.length-1];if(isCollection(r))r.items[e]=n;else if(isPair(r))e==="key"?r.key=n:r.value=n;else if(isDocument(r))r.contents=n;else{const i=isAlias(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const escapeChars={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},escapeTagName=e=>e.replace(/[!,[\]{}]/g,t=>escapeChars[t]);class Directives{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Directives.defaultYaml,t),this.tags=Object.assign({},Directives.defaultTags,n)}clone(){const t=new Directives(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Directives(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Directives.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Directives.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Directives.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,o]=r;return this.tags[s]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const o=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,o),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),o)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(o){return n(String(o)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+escapeTagName(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&isNode(t.contents)){const s={};visit(t.contents,(o,l)=>{isNode(l)&&l.tag&&(s[l.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,o]of r)s==="!!"&&o==="tag:yaml.org,2002:"||(!t||i.some(l=>l.startsWith(o)))&&n.push(`%TAG ${s} ${o}`);return n.join(`
- `)}}Directives.defaultYaml={explicit:!1,version:"1.2"};Directives.defaultTags={"!!":"tag:yaml.org,2002:"};function anchorIsValid(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function anchorNames(e){const t=new Set;return visit(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function findNewAnchor(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function createNodeAnchors(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=anchorNames(e));const o=findNewAnchor(t,i);return i.add(o),o},setAnchors:()=>{for(const s of n){const o=r.get(s);if(typeof o=="object"&&o.anchor&&(isScalar(o.node)||isCollection(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:r}}function applyReviver(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const o=r[i],l=applyReviver(e,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),o=applyReviver(e,r,i,s);o===void 0?r.delete(i):o!==s&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const s=applyReviver(e,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const o=applyReviver(e,r,i,s);o===void 0?delete r[i]:o!==s&&(r[i]=o)}return e.call(t,n,r)}function toJS(e,t,n){if(Array.isArray(e))return e.map((r,i)=>toJS(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!hasAnchor(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class NodeBase{constructor(t){Object.defineProperty(this,NODE_TYPE,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!isDocument(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=toJS(this,"",o);if(typeof i=="function")for(const{count:d,res:f}of o.anchors.values())i(f,d);return typeof s=="function"?applyReviver(s,{"":l},"",l):l}}class Alias extends NodeBase{constructor(t){super(ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return visit(t,{Node:(r,i)=>{if(i===this)return visit.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,o=this.resolve(i);if(!o){const d=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(d)}let l=r.get(o);if(l||(toJS(o,null,n),l=r.get(o)),!l||l.res===void 0){const d="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(d)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=getAliasCount(i,o,r)),l.count*l.aliasCount>s)){const d="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(d)}return l.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${i} `}return i}}function getAliasCount(e,t,n){if(isAlias(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(isCollection(t)){let r=0;for(const i of t.items){const s=getAliasCount(e,i,n);s>r&&(r=s)}return r}else if(isPair(t)){const r=getAliasCount(e,t.key,n),i=getAliasCount(e,t.value,n);return Math.max(r,i)}return 1}const isScalarValue=e=>!e||typeof e!="function"&&typeof e!="object";class Scalar extends NodeBase{constructor(t){super(SCALAR$1),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:toJS(this.value,t,n)}toString(){return String(this.value)}}Scalar.BLOCK_FOLDED="BLOCK_FOLDED";Scalar.BLOCK_LITERAL="BLOCK_LITERAL";Scalar.PLAIN="PLAIN";Scalar.QUOTE_DOUBLE="QUOTE_DOUBLE";Scalar.QUOTE_SINGLE="QUOTE_SINGLE";const defaultTagPrefix="tag:yaml.org,2002:";function findTagObject(e,t,n){if(t){const r=n.filter(s=>s.tag===t),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function createNode(e,t,n){var g,E,w;if(isDocument(e)&&(e=e.contents),isNode(e))return e;if(isPair(e)){const C=(E=(g=n.schema[MAP]).createNode)==null?void 0:E.call(g,n.schema,null,n);return C.items.push(e),C}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:o,sourceObjects:l}=n;let d;if(r&&e&&typeof e=="object"){if(d=l.get(e),d)return d.anchor||(d.anchor=i(e)),new Alias(d.anchor);d={anchor:null,node:null},l.set(e,d)}t!=null&&t.startsWith("!!")&&(t=defaultTagPrefix+t.slice(2));let f=findTagObject(e,t,o.tags);if(!f){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const C=new Scalar(e);return d&&(d.node=C),C}f=e instanceof Map?o[MAP]:Symbol.iterator in Object(e)?o[SEQ]:o[MAP]}s&&(s(f),delete n.onTagObj);const m=f!=null&&f.createNode?f.createNode(n.schema,e,n):typeof((w=f==null?void 0:f.nodeClass)==null?void 0:w.from)=="function"?f.nodeClass.from(n.schema,e,n):new Scalar(e);return t?m.tag=t:f.default||(m.tag=f.tag),d&&(d.node=m),m}function collectionFromPath(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const s=t[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const o=[];o[s]=r,r=o}else r=new Map([[s,r]])}return createNode(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const isEmptyPath=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Collection extends NodeBase{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>isNode(r)||isPair(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(isEmptyPath(t))this.add(n);else{const[r,...i]=t,s=this.get(r,!0);if(isCollection(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,collectionFromPath(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(isCollection(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,s=this.get(r,!0);return i.length===0?!n&&isScalar(s)?s.value:s:isCollection(s)?s.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!isPair(n))return!1;const r=n.value;return r==null||t&&isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return isCollection(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(isCollection(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,collectionFromPath(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}const stringifyComment=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function indentComment(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const lineComment=(e,t,n)=>e.endsWith(`
- `)?indentComment(n,t):n.includes(`
- `)?`
- `+indentComment(n,t):(e.endsWith(" ")?"":" ")+n,FOLD_FLOW="flow",FOLD_BLOCK="block",FOLD_QUOTED="quoted";function foldFlowLines(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return e;i<s&&(s=0);const d=Math.max(1+s,1+i-t.length);if(e.length<=d)return e;const f=[],m={};let g=i-t.length;typeof r=="number"&&(r>i-Math.max(2,s)?f.push(0):g=i-r);let E,w,C=!1,I=-1,D=-1,L=-1;n===FOLD_BLOCK&&(I=consumeMoreIndentedLines(e,I,t.length),I!==-1&&(g=I+d));for(let G;G=e[I+=1];){if(n===FOLD_QUOTED&&G==="\\"){switch(D=I,e[I+1]){case"x":I+=3;break;case"u":I+=5;break;case"U":I+=9;break;default:I+=1}L=I}if(G===`
- `)n===FOLD_BLOCK&&(I=consumeMoreIndentedLines(e,I,t.length)),g=I+t.length+d,E=void 0;else{if(G===" "&&w&&w!==" "&&w!==`
- `&&w!==" "){const z=e[I+1];z&&z!==" "&&z!==`
- `&&z!==" "&&(E=I)}if(I>=g)if(E)f.push(E),g=E+d,E=void 0;else if(n===FOLD_QUOTED){for(;w===" "||w===" ";)w=G,G=e[I+=1],C=!0;const z=I>L+1?I-2:D-1;if(m[z])return e;f.push(z),m[z]=!0,g=z+d,E=void 0}else C=!0}w=G}if(C&&l&&l(),f.length===0)return e;o&&o();let Y=e.slice(0,f[0]);for(let G=0;G<f.length;++G){const z=f[G],K=f[G+1]||e.length;z===0?Y=`
- ${t}${e.slice(0,K)}`:(n===FOLD_QUOTED&&m[z]&&(Y+=`${e[z]}\\`),Y+=`
- ${t}${e.slice(z+1,K)}`)}return Y}function consumeMoreIndentedLines(e,t,n){let r=t,i=t+1,s=e[i];for(;s===" "||s===" ";)if(t<i+n)s=e[++t];else{do s=e[++t];while(s&&s!==`
- `);r=t,i=t+1,s=e[i]}return r}const getFoldOptions=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),containsDocumentMarker=e=>/^(%|---|\.\.\.)/m.test(e);function lineLengthOverLimit(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let s=0,o=0;s<i;++s)if(e[s]===`
- `){if(s-o>r)return!0;if(o=s+1,i-o<=r)return!1}return!0}function doubleQuotedString(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(containsDocumentMarker(e)?" ":"");let o="",l=0;for(let d=0,f=n[d];f;f=n[++d])if(f===" "&&n[d+1]==="\\"&&n[d+2]==="n"&&(o+=n.slice(l,d)+"\\ ",d+=1,l=d,f="\\"),f==="\\")switch(n[d+1]){case"u":{o+=n.slice(l,d);const m=n.substr(d+2,4);switch(m){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:m.substr(0,2)==="00"?o+="\\x"+m.substr(2):o+=n.substr(d,6)}d+=5,l=d+1}break;case"n":if(r||n[d+2]==='"'||n.length<i)d+=1;else{for(o+=n.slice(l,d)+`
- `;n[d+2]==="\\"&&n[d+3]==="n"&&n[d+4]!=='"';)o+=`
- `,d+=2;o+=s,n[d+2]===" "&&(o+="\\"),d+=1,l=d+1}break;default:d+=1}return o=l?o+n.slice(l):n,r?o:foldFlowLines(o,s,FOLD_QUOTED,getFoldOptions(t,!1))}function singleQuotedString(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
- `)||/[ \t]\n|\n[ \t]/.test(e))return doubleQuotedString(e,t);const n=t.indent||(containsDocumentMarker(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
- ${n}`)+"'";return t.implicitKey?r:foldFlowLines(r,n,FOLD_FLOW,getFoldOptions(t,!1))}function quotedString(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=doubleQuotedString;else{const i=e.includes('"'),s=e.includes("'");i&&!s?r=singleQuotedString:s&&!i?r=doubleQuotedString:r=n?singleQuotedString:doubleQuotedString}return r(e,t)}let blockEndNewlines;try{blockEndNewlines=new RegExp(`(^|(?<!
- ))
- +(?!
- |$)`,"g")}catch{blockEndNewlines=/\n+(?!\n|$)/g}function blockString({comment:e,type:t,value:n},r,i,s){const{blockQuote:o,commentString:l,lineWidth:d}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return quotedString(n,r);const f=r.indent||(r.forceBlockIndent||containsDocumentMarker(n)?" ":""),m=o==="literal"?!0:o==="folded"||t===Scalar.BLOCK_FOLDED?!1:t===Scalar.BLOCK_LITERAL?!0:!lineLengthOverLimit(n,d,f.length);if(!n)return m?`|
- `:`>
- `;let g,E;for(E=n.length;E>0;--E){const K=n[E-1];if(K!==`
- `&&K!==" "&&K!==" ")break}let w=n.substring(E);const C=w.indexOf(`
- `);C===-1?g="-":n===w||C!==w.length-1?(g="+",s&&s()):g="",w&&(n=n.slice(0,-w.length),w[w.length-1]===`
- `&&(w=w.slice(0,-1)),w=w.replace(blockEndNewlines,`$&${f}`));let I=!1,D,L=-1;for(D=0;D<n.length;++D){const K=n[D];if(K===" ")I=!0;else if(K===`
- `)L=D;else break}let Y=n.substring(0,L<D?L+1:D);Y&&(n=n.substring(Y.length),Y=Y.replace(/\n+/g,`$&${f}`));let z=(I?f?"2":"1":"")+g;if(e&&(z+=" "+l(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!m){const K=n.replace(/\n+/g,`
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`);let X=!1;const ye=getFoldOptions(r,!0);o!=="folded"&&t!==Scalar.BLOCK_FOLDED&&(ye.onOverflow=()=>{X=!0});const be=foldFlowLines(`${Y}${K}${w}`,f,FOLD_BLOCK,ye);if(!X)return`>${z}
- ${f}${be}`}return n=n.replace(/\n+/g,`$&${f}`),`|${z}
- ${f}${Y}${n}${w}`}function plainString(e,t,n,r){const{type:i,value:s}=e,{actualString:o,implicitKey:l,indent:d,indentStep:f,inFlow:m}=t;if(l&&s.includes(`
- `)||m&&/[[\]{},]/.test(s))return quotedString(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||m||!s.includes(`
- `)?quotedString(s,t):blockString(e,t,n,r);if(!l&&!m&&i!==Scalar.PLAIN&&s.includes(`
- `))return blockString(e,t,n,r);if(containsDocumentMarker(s)){if(d==="")return t.forceBlockIndent=!0,blockString(e,t,n,r);if(l&&d===f)return quotedString(s,t)}const g=s.replace(/\n+/g,`$&
- ${d}`);if(o){const E=I=>{var D;return I.default&&I.tag!=="tag:yaml.org,2002:str"&&((D=I.test)==null?void 0:D.test(g))},{compat:w,tags:C}=t.doc.schema;if(C.some(E)||w!=null&&w.some(E))return quotedString(s,t)}return l?g:foldFlowLines(g,d,FOLD_FLOW,getFoldOptions(t,!1))}function stringifyString(e,t,n,r){const{implicitKey:i,inFlow:s}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:l}=e;l!==Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=Scalar.QUOTE_DOUBLE);const d=m=>{switch(m){case Scalar.BLOCK_FOLDED:case Scalar.BLOCK_LITERAL:return i||s?quotedString(o.value,t):blockString(o,t,n,r);case Scalar.QUOTE_DOUBLE:return doubleQuotedString(o.value,t);case Scalar.QUOTE_SINGLE:return singleQuotedString(o.value,t);case Scalar.PLAIN:return plainString(o,t,n,r);default:return null}};let f=d(l);if(f===null){const{defaultKeyType:m,defaultStringType:g}=t.options,E=i&&m||g;if(f=d(E),f===null)throw new Error(`Unsupported default string type ${E}`)}return f}function createStringifyContext(e,t){const n=Object.assign({blockQuote:!0,commentString:stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function getTagObject(e,t){var i;if(t.tag){const s=e.filter(o=>o.tag===t.tag);if(s.length>0)return s.find(o=>o.format===t.format)??s[0]}let n,r;if(isScalar(t)){r=t.value;let s=e.filter(o=>{var l;return(l=o.identify)==null?void 0:l.call(o,r)});if(s.length>1){const o=s.filter(l=>l.test);o.length>0&&(s=o)}n=s.find(o=>o.format===t.format)??s.find(o=>!o.format)}else r=t,n=e.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){const s=((i=r==null?void 0:r.constructor)==null?void 0:i.name)??typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function stringifyProps(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(isScalar(e)||isCollection(e))&&e.anchor;s&&anchorIsValid(s)&&(n.add(s),i.push(`&${s}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}function stringify(e,t,n,r){var d;if(isPair(e))return e.toString(t,n,r);if(isAlias(e)){if(t.doc.directives)return e.toString(t);if((d=t.resolvedAliases)!=null&&d.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const s=isNode(e)?e:t.doc.createNode(e,{onTagObj:f=>i=f});i||(i=getTagObject(t.doc.schema.tags,s));const o=stringifyProps(s,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const l=typeof i.stringify=="function"?i.stringify(s,t,n,r):isScalar(s)?stringifyString(s,t,n,r):s.toString(t,n,r);return o?isScalar(s)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
- ${t.indent}${l}`:l}function stringifyPair({key:e,value:t},n,r,i){const{allNullValues:s,doc:o,indent:l,indentStep:d,options:{commentString:f,indentSeq:m,simpleKeys:g}}=n;let E=isNode(e)&&e.comment||null;if(g){if(E)throw new Error("With simple keys, key nodes cannot have comments");if(isCollection(e)||!isNode(e)&&typeof e=="object"){const ye="With simple keys, collection cannot be used as a key value";throw new Error(ye)}}let w=!g&&(!e||E&&t==null&&!n.inFlow||isCollection(e)||(isScalar(e)?e.type===Scalar.BLOCK_FOLDED||e.type===Scalar.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!w&&(g||!s),indent:l+d});let C=!1,I=!1,D=stringify(e,n,()=>C=!0,()=>I=!0);if(!w&&!n.inFlow&&D.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");w=!0}if(n.inFlow){if(s||t==null)return C&&r&&r(),D===""?"?":w?`? ${D}`:D}else if(s&&!g||t==null&&w)return D=`? ${D}`,E&&!C?D+=lineComment(D,n.indent,f(E)):I&&i&&i(),D;C&&(E=null),w?(E&&(D+=lineComment(D,n.indent,f(E))),D=`? ${D}
- ${l}:`):(D=`${D}:`,E&&(D+=lineComment(D,n.indent,f(E))));let L,Y,G;isNode(t)?(L=!!t.spaceBefore,Y=t.commentBefore,G=t.comment):(L=!1,Y=null,G=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!w&&!E&&isScalar(t)&&(n.indentAtStart=D.length+1),I=!1,!m&&d.length>=2&&!n.inFlow&&!w&&isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let z=!1;const K=stringify(t,n,()=>z=!0,()=>I=!0);let X=" ";if(E||L||Y){if(X=L?`
- `:"",Y){const ye=f(Y);X+=`
- ${indentComment(ye,n.indent)}`}K===""&&!n.inFlow?X===`
- `&&(X=`
- `):X+=`
- ${n.indent}`}else if(!w&&isCollection(t)){const ye=K[0],be=K.indexOf(`
- `),Ce=be!==-1,Ne=n.inFlow??t.flow??t.items.length===0;if(Ce||!Ne){let He=!1;if(Ce&&(ye==="&"||ye==="!")){let Fe=K.indexOf(" ");ye==="&"&&Fe!==-1&&Fe<be&&K[Fe+1]==="!"&&(Fe=K.indexOf(" ",Fe+1)),(Fe===-1||be<Fe)&&(He=!0)}He||(X=`
- ${n.indent}`)}}else(K===""||K[0]===`
- `)&&(X="");return D+=X+K,n.inFlow?z&&r&&r():G&&!z?D+=lineComment(D,n.indent,f(G)):I&&i&&i(),D}function warn(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const MERGE_KEY="<<",merge={identify:e=>e===MERGE_KEY||typeof e=="symbol"&&e.description===MERGE_KEY,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Scalar(Symbol(MERGE_KEY)),{addToJSMap:addMergeToJSMap}),stringify:()=>MERGE_KEY},isMergeKey=(e,t)=>(merge.identify(t)||isScalar(t)&&(!t.type||t.type===Scalar.PLAIN)&&merge.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===merge.tag&&n.default));function addMergeToJSMap(e,t,n){if(n=e&&isAlias(n)?n.resolve(e.doc):n,isSeq(n))for(const r of n.items)mergeValue(e,t,r);else if(Array.isArray(n))for(const r of n)mergeValue(e,t,r);else mergeValue(e,t,n)}function mergeValue(e,t,n){const r=e&&isAlias(n)?n.resolve(e.doc):n;if(!isMap(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[s,o]of i)t instanceof Map?t.has(s)||t.set(s,o):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function addPairToJSMap(e,t,{key:n,value:r}){if(isNode(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(isMergeKey(e,n))addMergeToJSMap(e,t,r);else{const i=toJS(n,"",e);if(t instanceof Map)t.set(i,toJS(r,i,e));else if(t instanceof Set)t.add(i);else{const s=stringifyKey(n,i,e),o=toJS(r,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}function stringifyKey(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(isNode(e)&&(n!=null&&n.doc)){const r=createStringifyContext(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function createPair(e,t,n){const r=createNode(e,void 0,n),i=createNode(t,void 0,n);return new Pair(r,i)}class Pair{constructor(t,n=null){Object.defineProperty(this,NODE_TYPE,{value:PAIR}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return isNode(n)&&(n=n.clone(t)),isNode(r)&&(r=r.clone(t)),new Pair(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return addPairToJSMap(n,r,this)}toString(t,n,r){return t!=null&&t.doc?stringifyPair(this,t,n,r):JSON.stringify(this)}}function stringifyCollection(e,t,n){return(t.inFlow??e.flow?stringifyFlowCollection:stringifyBlockCollection)(e,t,n)}function stringifyBlockCollection({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:l}){const{indent:d,options:{commentString:f}}=n,m=Object.assign({},n,{indent:s,type:null});let g=!1;const E=[];for(let C=0;C<t.length;++C){const I=t[C];let D=null;if(isNode(I))!g&&I.spaceBefore&&E.push(""),addCommentBefore(n,E,I.commentBefore,g),I.comment&&(D=I.comment);else if(isPair(I)){const Y=isNode(I.key)?I.key:null;Y&&(!g&&Y.spaceBefore&&E.push(""),addCommentBefore(n,E,Y.commentBefore,g))}g=!1;let L=stringify(I,m,()=>D=null,()=>g=!0);D&&(L+=lineComment(L,s,f(D))),g&&D&&(g=!1),E.push(r+L)}let w;if(E.length===0)w=i.start+i.end;else{w=E[0];for(let C=1;C<E.length;++C){const I=E[C];w+=I?`
- ${d}${I}`:`
- `}}return e?(w+=`
- `+indentComment(f(e),d),l&&l()):g&&o&&o(),w}function stringifyFlowCollection({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:l}}=t;r+=s;const d=Object.assign({},t,{indent:r,inFlow:!0,type:null});let f=!1,m=0;const g=[];for(let C=0;C<e.length;++C){const I=e[C];let D=null;if(isNode(I))I.spaceBefore&&g.push(""),addCommentBefore(t,g,I.commentBefore,!1),I.comment&&(D=I.comment);else if(isPair(I)){const Y=isNode(I.key)?I.key:null;Y&&(Y.spaceBefore&&g.push(""),addCommentBefore(t,g,Y.commentBefore,!1),Y.comment&&(f=!0));const G=isNode(I.value)?I.value:null;G?(G.comment&&(D=G.comment),G.commentBefore&&(f=!0)):I.value==null&&(Y!=null&&Y.comment)&&(D=Y.comment)}D&&(f=!0);let L=stringify(I,d,()=>D=null);C<e.length-1&&(L+=","),D&&(L+=lineComment(L,r,l(D))),!f&&(g.length>m||L.includes(`
- `))&&(f=!0),g.push(L),m=g.length}const{start:E,end:w}=n;if(g.length===0)return E+w;if(!f){const C=g.reduce((I,D)=>I+D.length+2,2);f=t.options.lineWidth>0&&C>t.options.lineWidth}if(f){let C=E;for(const I of g)C+=I?`
- ${s}${i}${I}`:`
- `;return`${C}
- ${i}${w}`}else return`${E}${o}${g.join(" ")}${o}${w}`}function addCommentBefore({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=indentComment(t(r),e);n.push(s.trimStart())}}function findPair(e,t){const n=isScalar(t)?t.value:t;for(const r of e)if(isPair(r)&&(r.key===t||r.key===n||isScalar(r.key)&&r.key.value===n))return r}class YAMLMap extends Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(MAP,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:s}=r,o=new this(t),l=(d,f)=>{if(typeof s=="function")f=s.call(n,d,f);else if(Array.isArray(s)&&!s.includes(d))return;(f!==void 0||i)&&o.items.push(createPair(d,f,r))};if(n instanceof Map)for(const[d,f]of n)l(d,f);else if(n&&typeof n=="object")for(const d of Object.keys(n))l(d,n[d]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var o;let r;isPair(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Pair(t,t==null?void 0:t.value):r=new Pair(t.key,t.value);const i=findPair(this.items,r.key),s=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);isScalar(i.value)&&isScalarValue(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const l=this.items.findIndex(d=>s(r,d)<0);l===-1?this.items.push(r):this.items.splice(l,0,r)}else this.items.push(r)}delete(t){const n=findPair(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=findPair(this.items,t),i=r==null?void 0:r.value;return(!n&&isScalar(i)?i.value:i)??void 0}has(t){return!!findPair(this.items,t)}set(t,n){this.add(new Pair(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const s of this.items)addPairToJSMap(n,i,s);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const map={collection:"map",default:!0,nodeClass:YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return isMap(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>YAMLMap.from(e,t,n)};class YAMLSeq extends Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=asItemIndex(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=asItemIndex(t);if(typeof r!="number")return;const i=this.items[r];return!n&&isScalar(i)?i.value:i}has(t){const n=asItemIndex(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=asItemIndex(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];isScalar(i)&&isScalarValue(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(toJS(s,String(i++),n));return r}toString(t,n,r){return t?stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let l of n){if(typeof i=="function"){const d=n instanceof Set?l:String(o++);l=i.call(n,d,l)}s.items.push(createNode(l,void 0,r))}}return s}}function asItemIndex(e){let t=isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const seq={collection:"seq",default:!0,nodeClass:YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return isSeq(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>YAMLSeq.from(e,t,n)},string={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),stringifyString(e,t,n,r)}},nullTag={identify:e=>e==null,createNode:()=>new Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Scalar(null),stringify:({source:e},t)=>typeof e=="string"&&nullTag.test.test(e)?e:t.options.nullStr},boolTag={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Scalar(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&boolTag.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function stringifyNumber({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let o=s.indexOf(".");o<0&&(o=s.length,s+=".");let l=t-(s.length-o-1);for(;l-- >0;)s+="0"}return s}const floatNaN$1={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:stringifyNumber},floatExp$1={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():stringifyNumber(e)}},float$1={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Scalar(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:stringifyNumber},intIdentify$2=e=>typeof e=="bigint"||Number.isInteger(e),intResolve$1=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function intStringify$1(e,t,n){const{value:r}=e;return intIdentify$2(r)&&r>=0?n+r.toString(t):stringifyNumber(e)}const intOct$1={identify:e=>intIdentify$2(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>intResolve$1(e,2,8,n),stringify:e=>intStringify$1(e,8,"0o")},int$1={identify:intIdentify$2,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>intResolve$1(e,0,10,n),stringify:stringifyNumber},intHex$1={identify:e=>intIdentify$2(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>intResolve$1(e,2,16,n),stringify:e=>intStringify$1(e,16,"0x")},schema$2=[map,seq,string,nullTag,boolTag,intOct$1,int$1,intHex$1,floatNaN$1,floatExp$1,float$1];function intIdentify$1(e){return typeof e=="bigint"||Number.isInteger(e)}const stringifyJSON=({value:e})=>JSON.stringify(e),jsonScalars=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:stringifyJSON},{identify:e=>e==null,createNode:()=>new Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:stringifyJSON},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:stringifyJSON},{identify:intIdentify$1,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>intIdentify$1(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:stringifyJSON}],jsonError={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},schema$1=[map,seq].concat(jsonScalars,jsonError),binary={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,s){const o=n;let l;if(typeof btoa=="function"){let d="";for(let f=0;f<o.length;++f)d+=String.fromCharCode(o[f]);l=btoa(d)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Scalar.BLOCK_LITERAL),t!==Scalar.QUOTE_DOUBLE){const d=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),f=Math.ceil(l.length/d),m=new Array(f);for(let g=0,E=0;g<f;++g,E+=d)m[g]=l.substr(E,d);l=m.join(t===Scalar.BLOCK_LITERAL?`
- `:" ")}return stringifyString({comment:e,type:t,value:l},r,i,s)}};function resolvePairs(e,t){if(isSeq(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!isPair(r)){if(isMap(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new Pair(new Scalar(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
- ${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
- ${s.comment}`:r.comment}r=i}e.items[n]=isPair(r)?r:new Pair(r)}}else t("Expected a sequence for this tag");return e}function createPairs(e,t,n){const{replacer:r}=n,i=new YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(s++),o));let l,d;if(Array.isArray(o))if(o.length===2)l=o[0],d=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const f=Object.keys(o);if(f.length===1)l=f[0],d=o[l];else throw new TypeError(`Expected tuple with one key, not ${f.length} keys`)}else l=o;i.items.push(createPair(l,d,n))}return i}const pairs={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:resolvePairs,createNode:createPairs};class YAMLOMap extends YAMLSeq{constructor(){super(),this.add=YAMLMap.prototype.add.bind(this),this.delete=YAMLMap.prototype.delete.bind(this),this.get=YAMLMap.prototype.get.bind(this),this.has=YAMLMap.prototype.has.bind(this),this.set=YAMLMap.prototype.set.bind(this),this.tag=YAMLOMap.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let s,o;if(isPair(i)?(s=toJS(i.key,"",n),o=toJS(i.value,s,n)):s=toJS(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,o)}return r}static from(t,n,r){const i=createPairs(t,n,r),s=new this;return s.items=i.items,s}}YAMLOMap.tag="tag:yaml.org,2002:omap";const omap={collection:"seq",identify:e=>e instanceof Map,nodeClass:YAMLOMap,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=resolvePairs(e,t),r=[];for(const{key:i}of n.items)isScalar(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new YAMLOMap,n)},createNode:(e,t,n)=>YAMLOMap.from(e,t,n)};function boolStringify({value:e,source:t},n){return t&&(e?trueTag:falseTag).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const trueTag={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Scalar(!0),stringify:boolStringify},falseTag={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Scalar(!1),stringify:boolStringify},floatNaN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:stringifyNumber},floatExp={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():stringifyNumber(e)}},float={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:stringifyNumber},intIdentify=e=>typeof e=="bigint"||Number.isInteger(e);function intResolve(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const o=BigInt(e);return i==="-"?BigInt(-1)*o:o}const s=parseInt(e,n);return i==="-"?-1*s:s}function intStringify(e,t,n){const{value:r}=e;if(intIdentify(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return stringifyNumber(e)}const intBin={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>intResolve(e,2,2,n),stringify:e=>intStringify(e,2,"0b")},intOct={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>intResolve(e,1,8,n),stringify:e=>intStringify(e,8,"0")},int={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>intResolve(e,0,10,n),stringify:stringifyNumber},intHex={identify:intIdentify,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>intResolve(e,2,16,n),stringify:e=>intStringify(e,16,"0x")};class YAMLSet extends YAMLMap{constructor(t){super(t),this.tag=YAMLSet.tag}add(t){let n;isPair(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Pair(t.key,null):n=new Pair(t,null),findPair(this.items,n.key)||this.items.push(n)}get(t,n){const r=findPair(this.items,t);return!n&&isPair(r)?isScalar(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=findPair(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Pair(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),s.items.push(createPair(o,null,r));return s}}YAMLSet.tag="tag:yaml.org,2002:set";const set={collection:"map",identify:e=>e instanceof Set,nodeClass:YAMLSet,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>YAMLSet.from(e,t,n),resolve(e,t){if(isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new YAMLSet,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function parseSexagesimal(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=o=>t?BigInt(o):Number(o),s=r.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return n==="-"?i(-1)*s:s}function stringifySexagesimal(e){let{value:t}=e,n=o=>o;if(typeof t=="bigint")n=o=>BigInt(o);else if(isNaN(t)||!isFinite(t))return stringifyNumber(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const intTime={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>parseSexagesimal(e,n),stringify:stringifySexagesimal},floatTime={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>parseSexagesimal(e,!1),stringify:stringifySexagesimal},timestamp={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(timestamp.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,l]=t.map(Number),d=t[7]?Number((t[7]+"00").substr(1,3)):0;let f=Date.UTC(n,r-1,i,s||0,o||0,l||0,d);const m=t[8];if(m&&m!=="Z"){let g=parseSexagesimal(m,!1);Math.abs(g)<30&&(g*=60),f-=6e4*g}return new Date(f)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},schema=[map,seq,string,nullTag,trueTag,falseTag,intBin,intOct,int,intHex,floatNaN,floatExp,float,binary,merge,omap,pairs,set,intTime,floatTime,timestamp],schemas=new Map([["core",schema$2],["failsafe",[map,seq,string]],["json",schema$1],["yaml11",schema],["yaml-1.1",schema]]),tagsByName={binary,bool:boolTag,float:float$1,floatExp:floatExp$1,floatNaN:floatNaN$1,floatTime,int:int$1,intHex:intHex$1,intOct:intOct$1,intTime,map,merge,null:nullTag,omap,pairs,seq,set,timestamp},coreKnownTags={"tag:yaml.org,2002:binary":binary,"tag:yaml.org,2002:merge":merge,"tag:yaml.org,2002:omap":omap,"tag:yaml.org,2002:pairs":pairs,"tag:yaml.org,2002:set":set,"tag:yaml.org,2002:timestamp":timestamp};function getTags(e,t,n){const r=schemas.get(t);if(r&&!e)return n&&!r.includes(merge)?r.concat(merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{const s=Array.from(schemas.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${s} or define customTags array`)}if(Array.isArray(e))for(const s of e)i=i.concat(s);else typeof e=="function"&&(i=e(i.slice()));return n&&(i=i.concat(merge)),i.reduce((s,o)=>{const l=typeof o=="string"?tagsByName[o]:o;if(!l){const d=JSON.stringify(o),f=Object.keys(tagsByName).map(m=>JSON.stringify(m)).join(", ");throw new Error(`Unknown custom tag ${d}; use one of ${f}`)}return s.includes(l)||s.push(l),s},[])}const sortMapEntriesByKey=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Schema{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(t)?getTags(t,"compat"):t?getTags(null,t):null,this.name=typeof s=="string"&&s||"core",this.knownTags=i?coreKnownTags:{},this.tags=getTags(n,this.name,r),this.toStringOptions=l??null,Object.defineProperty(this,MAP,{value:map}),Object.defineProperty(this,SCALAR$1,{value:string}),Object.defineProperty(this,SEQ,{value:seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?sortMapEntriesByKey:null}clone(){const t=Object.create(Schema.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function stringifyDocument(e,t){var d;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const f=e.directives.toString(e);f?(n.push(f),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=createStringifyContext(e,t),{commentString:s}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const f=s(e.commentBefore);n.unshift(indentComment(f,""))}let o=!1,l=null;if(e.contents){if(isNode(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const g=s(e.contents.commentBefore);n.push(indentComment(g,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}const f=l?void 0:()=>o=!0;let m=stringify(e.contents,i,()=>l=null,f);l&&(m+=lineComment(m,"",s(l))),(m[0]==="|"||m[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${m}`:n.push(m)}else n.push(stringify(e.contents,i));if((d=e.directives)!=null&&d.docEnd)if(e.comment){const f=s(e.comment);f.includes(`
- `)?(n.push("..."),n.push(indentComment(f,""))):n.push(`... ${f}`)}else n.push("...");else{let f=e.comment;f&&o&&(f=f.replace(/^\n+/,"")),f&&((!o||l)&&n[n.length-1]!==""&&n.push(""),n.push(indentComment(s(f),"")))}return n.join(`
- `)+`
- `}class Document{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,NODE_TYPE,{value:DOC});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:o}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Directives({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(Document.prototype,{[NODE_TYPE]:{value:DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){assertCollection(this.contents)&&this.contents.add(t)}addIn(t,n){assertCollection(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=anchorNames(this);t.anchor=!n||r.has(n)?findNewAnchor(n||"a",r):n}return new Alias(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const D=Y=>typeof Y=="number"||Y instanceof String||Y instanceof Number,L=n.filter(D).map(String);L.length>0&&(n=n.concat(L)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:o,flow:l,keepUndefined:d,onTagObj:f,tag:m}=r??{},{onAnchor:g,setAnchors:E,sourceObjects:w}=createNodeAnchors(this,o||"a"),C={aliasDuplicateObjects:s??!0,keepUndefined:d??!1,onAnchor:g,onTagObj:f,replacer:i,schema:this.schema,sourceObjects:w},I=createNode(t,m,C);return l&&isCollection(I)&&(I.flow=!0),E(),I}createPair(t,n,r={}){const i=this.createNode(t,null,r),s=this.createNode(n,null,r);return new Pair(i,s)}delete(t){return assertCollection(this.contents)?this.contents.delete(t):!1}deleteIn(t){return isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):assertCollection(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return isCollection(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return isEmptyPath(t)?!n&&isScalar(this.contents)?this.contents.value:this.contents:isCollection(this.contents)?this.contents.getIn(t,n):void 0}has(t){return isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return isEmptyPath(t)?this.contents!==void 0:isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=collectionFromPath(this.schema,[t],n):assertCollection(this.contents)&&this.contents.set(t,n)}setIn(t,n){isEmptyPath(t)?this.contents=n:this.contents==null?this.contents=collectionFromPath(this.schema,Array.from(t),n):assertCollection(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Directives({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Directives({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Schema(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:o}={}){const l={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},d=toJS(this.contents,n??"",l);if(typeof s=="function")for(const{count:f,res:m}of l.anchors.values())s(m,f);return typeof o=="function"?applyReviver(o,{"":d},"",d):d}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return stringifyDocument(this,t)}}function assertCollection(e){if(isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}class YAMLError extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class YAMLParseError extends YAMLError{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class YAMLWarning extends YAMLError{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(l=>t.linePos(l));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const l=Math.min(s-39,o.length-79);o="…"+o.substring(l),s-=l-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,s))){let l=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);l.length>80&&(l=l.substring(0,79)+`…
- `),o=l+o}if(/[^ ]/.test(o)){let l=1;const d=n.linePos[1];d&&d.line===r&&d.col>i&&(l=Math.max(1,Math.min(d.col-i,80-s)));const f=" ".repeat(s)+"^".repeat(l);n.message+=`:
- ${o}
- ${f}
- `}};function resolveProps(e,{flow:t,indicator:n,next:r,offset:i,onError:s,parentIndent:o,startOnNewline:l}){let d=!1,f=l,m=l,g="",E="",w=!1,C=!1,I=null,D=null,L=null,Y=null,G=null,z=null,K=null;for(const be of e)switch(C&&(be.type!=="space"&&be.type!=="newline"&&be.type!=="comma"&&s(be.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),C=!1),I&&(f&&be.type!=="comment"&&be.type!=="newline"&&s(I,"TAB_AS_INDENT","Tabs are not allowed as indentation"),I=null),be.type){case"space":!t&&(n!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&be.source.includes(" ")&&(I=be),m=!0;break;case"comment":{m||s(be,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Ce=be.source.substring(1)||" ";g?g+=E+Ce:g=Ce,E="",f=!1;break}case"newline":f?g?g+=be.source:(!z||n!=="seq-item-ind")&&(d=!0):E+=be.source,f=!0,w=!0,(D||L)&&(Y=be),m=!0;break;case"anchor":D&&s(be,"MULTIPLE_ANCHORS","A node can have at most one anchor"),be.source.endsWith(":")&&s(be.offset+be.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),D=be,K===null&&(K=be.offset),f=!1,m=!1,C=!0;break;case"tag":{L&&s(be,"MULTIPLE_TAGS","A node can have at most one tag"),L=be,K===null&&(K=be.offset),f=!1,m=!1,C=!0;break}case n:(D||L)&&s(be,"BAD_PROP_ORDER",`Anchors and tags must be after the ${be.source} indicator`),z&&s(be,"UNEXPECTED_TOKEN",`Unexpected ${be.source} in ${t??"collection"}`),z=be,f=n==="seq-item-ind"||n==="explicit-key-ind",m=!1;break;case"comma":if(t){G&&s(be,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),G=be,f=!1,m=!1;break}default:s(be,"UNEXPECTED_TOKEN",`Unexpected ${be.type} token`),f=!1,m=!1}const X=e[e.length-1],ye=X?X.offset+X.source.length:i;return C&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),I&&(f&&I.indent<=o||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&s(I,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:G,found:z,spaceBefore:d,comment:g,hasNewline:w,anchor:D,tag:L,newlineAfterProp:Y,end:ye,start:K??ye}}function containsNewline(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(containsNewline(t.key)||containsNewline(t.value))return!0}return!1;default:return!0}}function flowIndentCheck(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&containsNewline(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function mapIncludes(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,o)=>s===o||isScalar(s)&&isScalar(o)&&s.value===o.value;return t.some(s=>i(s.key,n))}const startColMsg="All mapping items must start at the same column";function resolveBlockMap({composeNode:e,composeEmptyNode:t},n,r,i,s){var m;const o=(s==null?void 0:s.nodeClass)??YAMLMap,l=new o(n.schema);n.atRoot&&(n.atRoot=!1);let d=r.offset,f=null;for(const g of r.items){const{start:E,key:w,sep:C,value:I}=g,D=resolveProps(E,{indicator:"explicit-key-ind",next:w??(C==null?void 0:C[0]),offset:d,onError:i,parentIndent:r.indent,startOnNewline:!0}),L=!D.found;if(L){if(w&&(w.type==="block-seq"?i(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in w&&w.indent!==r.indent&&i(d,"BAD_INDENT",startColMsg)),!D.anchor&&!D.tag&&!C){f=D.end,D.comment&&(l.comment?l.comment+=`
- `+D.comment:l.comment=D.comment);continue}(D.newlineAfterProp||containsNewline(w))&&i(w??E[E.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((m=D.found)==null?void 0:m.indent)!==r.indent&&i(d,"BAD_INDENT",startColMsg);n.atKey=!0;const Y=D.end,G=w?e(n,w,D,i):t(n,Y,E,null,D,i);n.schema.compat&&flowIndentCheck(r.indent,w,i),n.atKey=!1,mapIncludes(n,l.items,G)&&i(Y,"DUPLICATE_KEY","Map keys must be unique");const z=resolveProps(C??[],{indicator:"map-value-ind",next:I,offset:G.range[2],onError:i,parentIndent:r.indent,startOnNewline:!w||w.type==="block-scalar"});if(d=z.end,z.found){L&&((I==null?void 0:I.type)==="block-map"&&!z.hasNewline&&i(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&D.start<z.found.offset-1024&&i(G.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const K=I?e(n,I,z,i):t(n,d,C,null,z,i);n.schema.compat&&flowIndentCheck(r.indent,I,i),d=K.range[2];const X=new Pair(G,K);n.options.keepSourceTokens&&(X.srcToken=g),l.items.push(X)}else{L&&i(G.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),z.comment&&(G.comment?G.comment+=`
- `+z.comment:G.comment=z.comment);const K=new Pair(G);n.options.keepSourceTokens&&(K.srcToken=g),l.items.push(K)}}return f&&f<d&&i(f,"IMPOSSIBLE","Map comment with trailing content"),l.range=[r.offset,d,f??d],l}function resolveBlockSeq({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=(s==null?void 0:s.nodeClass)??YAMLSeq,l=new o(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let d=r.offset,f=null;for(const{start:m,value:g}of r.items){const E=resolveProps(m,{indicator:"seq-item-ind",next:g,offset:d,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!E.found)if(E.anchor||E.tag||g)g&&g.type==="block-seq"?i(E.end,"BAD_INDENT","All sequence items must start at the same column"):i(d,"MISSING_CHAR","Sequence item without - indicator");else{f=E.end,E.comment&&(l.comment=E.comment);continue}const w=g?e(n,g,E,i):t(n,E.end,m,null,E,i);n.schema.compat&&flowIndentCheck(r.indent,g,i),d=w.range[2],l.items.push(w)}return l.range=[r.offset,d,f??d],l}function resolveEnd(e,t,n,r){let i="";if(e){let s=!1,o="";for(const l of e){const{source:d,type:f}=l;switch(f){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const m=d.substring(1)||" ";i?i+=o+m:i=m,o="";break}case"newline":i&&(o+=d),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${f} at node end`)}t+=d.length}}return{comment:i,offset:t}}const blockMsg="Block collections are not allowed within flow collections",isBlock=e=>e&&(e.type==="block-map"||e.type==="block-seq");function resolveFlowCollection({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=r.start.source==="{",l=o?"flow map":"flow sequence",d=(s==null?void 0:s.nodeClass)??(o?YAMLMap:YAMLSeq),f=new d(n.schema);f.flow=!0;const m=n.atRoot;m&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let g=r.offset+r.start.source.length;for(let D=0;D<r.items.length;++D){const L=r.items[D],{start:Y,key:G,sep:z,value:K}=L,X=resolveProps(Y,{flow:l,indicator:"explicit-key-ind",next:G??(z==null?void 0:z[0]),offset:g,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!X.found){if(!X.anchor&&!X.tag&&!z&&!K){D===0&&X.comma?i(X.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):D<r.items.length-1&&i(X.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),X.comment&&(f.comment?f.comment+=`
- `+X.comment:f.comment=X.comment),g=X.end;continue}!o&&n.options.strict&&containsNewline(G)&&i(G,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(D===0)X.comma&&i(X.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(X.comma||i(X.start,"MISSING_CHAR",`Missing , between ${l} items`),X.comment){let ye="";e:for(const be of Y)switch(be.type){case"comma":case"space":break;case"comment":ye=be.source.substring(1);break e;default:break e}if(ye){let be=f.items[f.items.length-1];isPair(be)&&(be=be.value??be.key),be.comment?be.comment+=`
- `+ye:be.comment=ye,X.comment=X.comment.substring(ye.length+1)}}if(!o&&!z&&!X.found){const ye=K?e(n,K,X,i):t(n,X.end,z,null,X,i);f.items.push(ye),g=ye.range[2],isBlock(K)&&i(ye.range,"BLOCK_IN_FLOW",blockMsg)}else{n.atKey=!0;const ye=X.end,be=G?e(n,G,X,i):t(n,ye,Y,null,X,i);isBlock(G)&&i(be.range,"BLOCK_IN_FLOW",blockMsg),n.atKey=!1;const Ce=resolveProps(z??[],{flow:l,indicator:"map-value-ind",next:K,offset:be.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(Ce.found){if(!o&&!X.found&&n.options.strict){if(z)for(const Fe of z){if(Fe===Ce.found)break;if(Fe.type==="newline"){i(Fe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}X.start<Ce.found.offset-1024&&i(Ce.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else K&&("source"in K&&K.source&&K.source[0]===":"?i(K,"MISSING_CHAR",`Missing space after : in ${l}`):i(Ce.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const Ne=K?e(n,K,Ce,i):Ce.found?t(n,Ce.end,z,null,Ce,i):null;Ne?isBlock(K)&&i(Ne.range,"BLOCK_IN_FLOW",blockMsg):Ce.comment&&(be.comment?be.comment+=`
- `+Ce.comment:be.comment=Ce.comment);const He=new Pair(be,Ne);if(n.options.keepSourceTokens&&(He.srcToken=L),o){const Fe=f;mapIncludes(n,Fe.items,be)&&i(ye,"DUPLICATE_KEY","Map keys must be unique"),Fe.items.push(He)}else{const Fe=new YAMLMap(n.schema);Fe.flow=!0,Fe.items.push(He);const Xe=(Ne??be).range;Fe.range=[be.range[0],Xe[1],Xe[2]],f.items.push(Fe)}g=Ne?Ne.range[2]:Ce.end}}const E=o?"}":"]",[w,...C]=r.end;let I=g;if(w&&w.source===E)I=w.offset+w.source.length;else{const D=l[0].toUpperCase()+l.substring(1),L=m?`${D} must end with a ${E}`:`${D} in block collection must be sufficiently indented and end with a ${E}`;i(g,m?"MISSING_CHAR":"BAD_INDENT",L),w&&w.source.length!==1&&C.unshift(w)}if(C.length>0){const D=resolveEnd(C,I,n.options.strict,i);D.comment&&(f.comment?f.comment+=`
- `+D.comment:f.comment=D.comment),f.range=[r.offset,I,D.offset]}else f.range=[r.offset,I,I];return f}function resolveCollection(e,t,n,r,i,s){const o=n.type==="block-map"?resolveBlockMap(e,t,n,r,s):n.type==="block-seq"?resolveBlockSeq(e,t,n,r,s):resolveFlowCollection(e,t,n,r,s),l=o.constructor;return i==="!"||i===l.tagName?(o.tag=l.tagName,o):(i&&(o.tag=i),o)}function composeCollection(e,t,n,r,i){var E;const s=r.tag,o=s?t.directives.tagName(s.source,w=>i(s,"TAG_RESOLVE_FAILED",w)):null;if(n.type==="block-seq"){const{anchor:w,newlineAfterProp:C}=r,I=w&&s?w.offset>s.offset?w:s:w??s;I&&(!C||C.offset<I.offset)&&i(I,"MISSING_CHAR","Missing newline after block sequence props")}const l=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!s||!o||o==="!"||o===YAMLMap.tagName&&l==="map"||o===YAMLSeq.tagName&&l==="seq")return resolveCollection(e,t,n,i,o);let d=t.schema.tags.find(w=>w.tag===o&&w.collection===l);if(!d){const w=t.schema.knownTags[o];if(w&&w.collection===l)t.schema.tags.push(Object.assign({},w,{default:!1})),d=w;else return w!=null&&w.collection?i(s,"BAD_COLLECTION_TYPE",`${w.tag} used for ${l} collection, but expects ${w.collection}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),resolveCollection(e,t,n,i,o)}const f=resolveCollection(e,t,n,i,o,d),m=((E=d.resolve)==null?void 0:E.call(d,f,w=>i(s,"TAG_RESOLVE_FAILED",w),t.options))??f,g=isNode(m)?m:new Scalar(m);return g.range=f.range,g.tag=o,d!=null&&d.format&&(g.format=d.format),g}function resolveBlockScalar(e,t,n){const r=t.offset,i=parseBlockScalarHeader(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?Scalar.BLOCK_FOLDED:Scalar.BLOCK_LITERAL,o=t.source?splitLines(t.source):[];let l=o.length;for(let I=o.length-1;I>=0;--I){const D=o[I][1];if(D===""||D==="\r")l=I;else break}if(l===0){const I=i.chomp==="+"&&o.length>0?`
- `.repeat(Math.max(1,o.length-1)):"";let D=r+i.length;return t.source&&(D+=t.source.length),{value:I,type:s,comment:i.comment,range:[r,D,D]}}let d=t.indent+i.indent,f=t.offset+i.length,m=0;for(let I=0;I<l;++I){const[D,L]=o[I];if(L===""||L==="\r")i.indent===0&&D.length>d&&(d=D.length);else{D.length<d&&n(f+D.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(d=D.length),m=I,d===0&&!e.atRoot&&n(f,"BAD_INDENT","Block scalar values in collections must be indented");break}f+=D.length+L.length+1}for(let I=o.length-1;I>=l;--I)o[I][0].length>d&&(l=I+1);let g="",E="",w=!1;for(let I=0;I<m;++I)g+=o[I][0].slice(d)+`
- `;for(let I=m;I<l;++I){let[D,L]=o[I];f+=D.length+L.length+1;const Y=L[L.length-1]==="\r";if(Y&&(L=L.slice(0,-1)),L&&D.length<d){const z=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(f-L.length-(Y?2:1),"BAD_INDENT",z),D=""}s===Scalar.BLOCK_LITERAL?(g+=E+D.slice(d)+L,E=`
- `):D.length>d||L[0]===" "?(E===" "?E=`
- `:!w&&E===`
- `&&(E=`
- `),g+=E+D.slice(d)+L,E=`
- `,w=!0):L===""?E===`
- `?g+=`
- `:E=`
- `:(g+=E+L,E=" ",w=!1)}switch(i.chomp){case"-":break;case"+":for(let I=l;I<o.length;++I)g+=`
- `+o[I][0].slice(d);g[g.length-1]!==`
- `&&(g+=`
- `);break;default:g+=`
- `}const C=r+i.length+t.source.length;return{value:g,type:s,comment:i.comment,range:[r,C,C]}}function parseBlockScalarHeader({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],s=i[0];let o=0,l="",d=-1;for(let E=1;E<i.length;++E){const w=i[E];if(!l&&(w==="-"||w==="+"))l=w;else{const C=Number(w);!o&&C?o=C:d===-1&&(d=e+E)}}d!==-1&&r(d,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let f=!1,m="",g=i.length;for(let E=1;E<t.length;++E){const w=t[E];switch(w.type){case"space":f=!0;case"newline":g+=w.source.length;break;case"comment":n&&!f&&r(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=w.source.length,m=w.source.substring(1);break;case"error":r(w,"UNEXPECTED_TOKEN",w.message),g+=w.source.length;break;default:{const C=`Unexpected token in block scalar header: ${w.type}`;r(w,"UNEXPECTED_TOKEN",C);const I=w.source;I&&typeof I=="string"&&(g+=I.length)}}}return{mode:s,indent:o,chomp:l,comment:m,length:g}}function splitLines(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)s.push([t[o],t[o+1]]);return s}function resolveFlowScalar(e,t,n){const{offset:r,type:i,source:s,end:o}=e;let l,d;const f=(E,w,C)=>n(r+E,w,C);switch(i){case"scalar":l=Scalar.PLAIN,d=plainValue(s,f);break;case"single-quoted-scalar":l=Scalar.QUOTE_SINGLE,d=singleQuotedValue(s,f);break;case"double-quoted-scalar":l=Scalar.QUOTE_DOUBLE,d=doubleQuotedValue(s,f);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const m=r+s.length,g=resolveEnd(o,m,t,n);return{value:d,type:l,comment:g.comment,range:[r,m,g.offset]}}function plainValue(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),foldLines(e)}function singleQuotedValue(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),foldLines(e.slice(1,-1)).replace(/''/g,"'")}function foldLines(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
- `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
- `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],s=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===""?s===`
- `?i+=s:s=`
- `:(i+=s+r[1],s=" "),o=n.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=o,r=l.exec(e),i+s+((r==null?void 0:r[1])??"")}function doubleQuotedValue(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
- `))if(i===`
- `){const{fold:s,offset:o}=foldNewline(e,r);n+=s,r=o}else if(i==="\\"){let s=e[++r];const o=escapeCodes[s];if(o)n+=o;else if(s===`
- `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
- `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];n+=parseCharCode(e,r+1,l,t),r+=l}else{const l=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),n+=l}}else if(i===" "||i===" "){const s=r;let o=e[r+1];for(;o===" "||o===" ";)o=e[++r+1];o!==`
- `&&!(o==="\r"&&e[r+2]===`
- `)&&(n+=r>s?e.slice(s,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function foldNewline(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
- `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
- `);)r===`
- `&&(n+=`
- `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const escapeCodes={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
- `,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function parseCharCode(e,t,n,r){const i=e.substr(t,n),o=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){const l=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}return String.fromCodePoint(o)}function composeScalar(e,t,n,r){const{value:i,type:s,comment:o,range:l}=t.type==="block-scalar"?resolveBlockScalar(e,t,r):resolveFlowScalar(t,e.options.strict,r),d=n?e.directives.tagName(n.source,g=>r(n,"TAG_RESOLVE_FAILED",g)):null;let f;e.options.stringKeys&&e.atKey?f=e.schema[SCALAR$1]:d?f=findScalarTagByName(e.schema,i,d,n,r):t.type==="scalar"?f=findScalarTagByTest(e,i,t,r):f=e.schema[SCALAR$1];let m;try{const g=f.resolve(i,E=>r(n??t,"TAG_RESOLVE_FAILED",E),e.options);m=isScalar(g)?g:new Scalar(g)}catch(g){const E=g instanceof Error?g.message:String(g);r(n??t,"TAG_RESOLVE_FAILED",E),m=new Scalar(i)}return m.range=l,m.source=i,s&&(m.type=s),d&&(m.tag=d),f.format&&(m.format=f.format),o&&(m.comment=o),m}function findScalarTagByName(e,t,n,r,i){var l;if(n==="!")return e[SCALAR$1];const s=[];for(const d of e.tags)if(!d.collection&&d.tag===n)if(d.default&&d.test)s.push(d);else return d;for(const d of s)if((l=d.test)!=null&&l.test(t))return d;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[SCALAR$1])}function findScalarTagByTest({atKey:e,directives:t,schema:n},r,i,s){const o=n.tags.find(l=>{var d;return(l.default===!0||e&&l.default==="key")&&((d=l.test)==null?void 0:d.test(r))})||n[SCALAR$1];if(n.compat){const l=n.compat.find(d=>{var f;return d.default&&((f=d.test)==null?void 0:f.test(r))})??n[SCALAR$1];if(o.tag!==l.tag){const d=t.tagString(o.tag),f=t.tagString(l.tag),m=`Value may be parsed as either ${d} or ${f}`;s(i,"TAG_RESOLVE_FAILED",m,!0)}}return o}function emptyScalarPosition(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++r];break}}return e}const CN={composeNode,composeEmptyNode};function composeNode(e,t,n,r){const i=e.atKey,{spaceBefore:s,comment:o,anchor:l,tag:d}=n;let f,m=!0;switch(t.type){case"alias":f=composeAlias(e,t,r),(l||d)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":f=composeScalar(e,t,d,r),l&&(f.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":f=composeCollection(CN,e,t,n,r),l&&(f.anchor=l.source.substring(1));break;default:{const g=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",g),f=composeEmptyNode(e,t.offset,void 0,null,n,r),m=!1}}return l&&f.anchor===""&&r(l,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!isScalar(f)||typeof f.value!="string"||f.tag&&f.tag!=="tag:yaml.org,2002:str")&&r(d??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(f.spaceBefore=!0),o&&(t.type==="scalar"&&t.source===""?f.comment=o:f.commentBefore=o),e.options.keepSourceTokens&&m&&(f.srcToken=t),f}function composeEmptyNode(e,t,n,r,{spaceBefore:i,comment:s,anchor:o,tag:l,end:d},f){const m={type:"scalar",offset:emptyScalarPosition(t,n,r),indent:-1,source:""},g=composeScalar(e,m,l,f);return o&&(g.anchor=o.source.substring(1),g.anchor===""&&f(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(g.spaceBefore=!0),s&&(g.comment=s,g.range[2]=d),g}function composeAlias({options:e},{offset:t,source:n,end:r},i){const s=new Alias(n.substring(1));s.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,l=resolveEnd(r,o,e.strict,i);return s.range=[t,o,l.offset],l.comment&&(s.comment=l.comment),s}function composeDoc(e,t,{offset:n,start:r,value:i,end:s},o){const l=Object.assign({_directives:t},e),d=new Document(void 0,l),f={atKey:!1,atRoot:!0,directives:d.directives,options:d.options,schema:d.schema},m=resolveProps(r,{indicator:"doc-start",next:i??(s==null?void 0:s[0]),offset:n,onError:o,parentIndent:0,startOnNewline:!0});m.found&&(d.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!m.hasNewline&&o(m.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),d.contents=i?composeNode(f,i,m,o):composeEmptyNode(f,m.end,r,null,m,o);const g=d.contents.range[2],E=resolveEnd(s,g,!1,o);return E.comment&&(d.comment=E.comment),d.range=[n,g,E.offset],d}function getErrorPos(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function parsePrelude(e){var i;let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const o=e[s];switch(o[0]){case"#":t+=(t===""?"":r?`
- `:`
- `)+(o.substring(1)||" "),n=!0,r=!1;break;case"%":((i=e[s+1])==null?void 0:i[0])!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Composer{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const o=getErrorPos(n);s?this.warnings.push(new YAMLWarning(o,r,i)):this.errors.push(new YAMLParseError(o,r,i))},this.directives=new Directives({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=parsePrelude(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
- ${r}`:r;else if(i||t.directives.docStart||!s)t.commentBefore=r;else if(isCollection(s)&&!s.flow&&s.items.length>0){let o=s.items[0];isPair(o)&&(o=o.key);const l=o.commentBefore;o.commentBefore=l?`${r}
- ${l}`:r}else{const o=s.commentBefore;s.commentBefore=o?`${r}
- ${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:parsePrelude(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const s=getErrorPos(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new YAMLParseError(getErrorPos(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new YAMLParseError(getErrorPos(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new YAMLParseError(getErrorPos(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new Document(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const BOM="\uFEFF",DOCUMENT="",FLOW_END="",SCALAR="";function tokenType(e){switch(e){case BOM:return"byte-order-mark";case DOCUMENT:return"doc-mode";case FLOW_END:return"flow-error-end";case SCALAR:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
- `:case`\r
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function isEmpty(e){switch(e){case void 0:case" ":case`
- `:case"\r":case" ":return!0;default:return!1}}const hexDigits=new Set("0123456789ABCDEFabcdef"),tagChars=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),flowIndicatorChars=new Set(",[]{}"),invalidAnchorChars=new Set(` ,[]{}
- \r `),isNotAnchorChar=e=>!e||invalidAnchorChars.has(e);class Lexer{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
- `?!0:n==="\r"?this.buffer[t+1]===`
- `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
- `||!i&&!this.atEnd)return t+r+1}return n===`
- `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&isEmpty(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
- `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const s=t[r-1];if(s===" "||s===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const s=t[n-1];if(s===" "||s===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&isEmpty(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!isEmpty(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&isEmpty(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(isNotAnchorChar),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&isEmpty(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield FLOW_END,yield*this.parseLineStart();let s=0;for(;i[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),i[s]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(isNotAnchorChar),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||isEmpty(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
- `,this.pos);if(i!==-1){for(;i!==-1;){const s=this.continueScalar(i+1);if(s===-1)break;i=r.indexOf(`
- `,s)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>isEmpty(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let s=this.pos;r=this.buffer[s];++s)switch(r){case" ":n+=1;break;case`
- `:t=s,n=0;break;case"\r":{const o=this.buffer[s+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
- `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const s=this.continueScalar(t+1);if(s===-1)break;t=this.buffer.indexOf(`
- `,s)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let i=t+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
- `;)r=this.buffer[++i];t=i-1}else if(!this.blockScalarKeep)do{let s=t-1,o=this.buffer[s];o==="\r"&&(o=this.buffer[--s]);const l=s;for(;o===" ";)o=this.buffer[--s];if(o===`
- `&&s>=this.pos&&s+1+n>l)t=s;else break}while(!0);return yield SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const s=this.buffer[r+1];if(isEmpty(s)||t&&flowIndicatorChars.has(s))break;n=r}else if(isEmpty(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===`
- `?(r+=1,i=`
- `,s=this.buffer[r+1]):n=r),s==="#"||t&&flowIndicatorChars.has(s))break;if(i===`
- `){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&flowIndicatorChars.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield SCALAR,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(isNotAnchorChar))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(isEmpty(n)||t&&flowIndicatorChars.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!isEmpty(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(tagChars.has(n))n=this.buffer[++t];else if(n==="%"&&hexDigits.has(this.buffer[t+1])&&hexDigits.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
- `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class LineCounter{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function includesToken(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function findNonEmptyIndex(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function isFlowToken(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function getPrevProps(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function getFirstKeyStartProps(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function fixFlowSeqItems(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!includesToken(t.start,"explicit-key-ind")&&!includesToken(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,isFlowToken(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Parser{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Lexer,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=tokenType(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&fixFlowSeqItems(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&findNonEmptyIndex(i.start)===-1&&(n.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{findNonEmptyIndex(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=getPrevProps(this.peek(2)),r=getFirstKeyStartProps(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
- `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,s=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(s&&n.sep&&!n.value){const l=[];for(let d=0;d<n.sep.length;++d){const f=n.sep[d];switch(f.type){case"newline":l.push(d);break;case"space":break;case"comment":f.indent>t.indent&&(l.length=0);break;default:l.length=0}}l.length>=2&&(o=n.sep.splice(l[1]))}switch(this.type){case"anchor":case"tag":s||n.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):s||n.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(includesToken(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(isFlowToken(n.key)&&!includesToken(n.sep,"newline")){const l=getFirstKeyStartProps(n.start),d=n.key,f=n.sep;f.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:d,sep:f}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(includesToken(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const l=getFirstKeyStartProps(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||s?t.items.push({start:o,key:null,sep:[this.sourceToken]}):includesToken(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const l=this.flowScalar(this.type);s||n.value?(t.items.push({start:o,key:l,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(l):(Object.assign(n,{key:l,sep:[]}),this.onKeyLine=!0);return}default:{const l=this.startBlockValue(t);if(l){i&&l.type!=="block-seq"&&t.items.push({start:o}),this.stack.push(l);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||includesToken(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=getPrevProps(r),s=getFirstKeyStartProps(i);fixFlowSeqItems(t);const o=t.end.splice(1,t.end.length);o.push(this.sourceToken);const l={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=getPrevProps(t),r=getFirstKeyStartProps(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=getPrevProps(t),r=getFirstKeyStartProps(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function parseOptions(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new LineCounter||null,prettyErrors:t}}function parseDocument(e,t={}){const{lineCounter:n,prettyErrors:r}=parseOptions(t),i=new Parser(n==null?void 0:n.addNewLine),s=new Composer(t);let o=null;for(const l of s.compose(i.parse(e),!0,e.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new YAMLParseError(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(prettifyError(e,n)),o.warnings.forEach(prettifyError(e,n))),o}function parse(e,t,n){let r;const i=parseDocument(e,n);if(!i)return null;if(i.warnings.forEach(s=>warn(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}var dist={},katex={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:commonjsGlobal,function(){return function(){var n={};(function(){n.d=function(u,a){for(var c in a)n.o(a,c)&&!n.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:a[c]})}})(),function(){n.o=function(u,a){return Object.prototype.hasOwnProperty.call(u,a)}}();var r={};n.d(r,{default:function(){return jo}});class i{constructor(a,c){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let p="KaTeX parse error: "+a,b,k;const R=c&&c.loc;if(R&&R.start<=R.end){const V=R.lexer.input;b=R.start,k=R.end,b===V.length?p+=" at end of input: ":p+=" at position "+(b+1)+": ";const Q=V.slice(b,k).replace(/[^]/g,"$&̲");let _e;b>15?_e="…"+V.slice(b-15,b):_e=V.slice(0,b);let Ae;k+15<V.length?Ae=V.slice(k,k+15)+"…":Ae=V.slice(k),p+=_e+Q+Ae}const B=new Error(p);return B.name="ParseError",B.__proto__=i.prototype,B.position=b,b!=null&&k!=null&&(B.length=k-b),B.rawMessage=a,B}}i.prototype.__proto__=Error.prototype;var s=i;const o=function(u,a){return u.indexOf(a)!==-1},l=function(u,a){return u===void 0?a:u},d=/([A-Z])/g,f=function(u){return u.replace(d,"-$1").toLowerCase()},m={"&":"&",">":">","<":"<",'"':""","'":"'"},g=/[&><"']/g;function E(u){return String(u).replace(g,a=>m[a])}const w=function(u){return u.type==="ordgroup"||u.type==="color"?u.body.length===1?w(u.body[0]):u:u.type==="font"?w(u.body):u},C=function(u){const a=w(u);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},I=function(u){if(!u)throw new Error("Expected non-null, but got "+String(u));return u};var L={contains:o,deflt:l,escape:E,hyphenate:f,getBaseElem:w,isCharacterBox:C,protocolFromUrl:function(u){const a=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(u);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"}};const Y={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:u=>"#"+u},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(u,a)=>(a.push(u),a)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:u=>Math.max(0,u),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:u=>Math.max(0,u),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:u=>Math.max(0,u),cli:"-e, --max-expand <n>",cliProcessor:u=>u==="Infinity"?1/0:parseInt(u)},globalGroup:{type:"boolean",cli:!1}};function G(u){if(u.default)return u.default;const a=u.type,c=Array.isArray(a)?a[0]:a;if(typeof c!="string")return c.enum[0];switch(c){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class z{constructor(a){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,a=a||{};for(const c in Y)if(Y.hasOwnProperty(c)){const p=Y[c];this[c]=a[c]!==void 0?p.processor?p.processor(a[c]):a[c]:G(p)}}reportNonstrict(a,c,p){let b=this.strict;if(typeof b=="function"&&(b=b(a,c,p)),!(!b||b==="ignore")){if(b===!0||b==="error")throw new s("LaTeX-incompatible input and strict mode is set to 'error': "+(c+" ["+a+"]"),p);b==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+a+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+b+"': "+c+" ["+a+"]"))}}useStrictBehavior(a,c,p){let b=this.strict;if(typeof b=="function")try{b=b(a,c,p)}catch{b="error"}return!b||b==="ignore"?!1:b===!0||b==="error"?!0:b==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(c+" ["+a+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+b+"': "+c+" ["+a+"]")),!1)}isTrusted(a){if(a.url&&!a.protocol){const p=L.protocolFromUrl(a.url);if(p==null)return!1;a.protocol=p}return!!(typeof this.trust=="function"?this.trust(a):this.trust)}}class K{constructor(a,c,p){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=a,this.size=c,this.cramped=p}sup(){return Ee[$e[this.id]]}sub(){return Ee[Ie[this.id]]}fracNum(){return Ee[we[this.id]]}fracDen(){return Ee[De[this.id]]}cramp(){return Ee[qe[this.id]]}text(){return Ee[Ge[this.id]]}isTight(){return this.size>=2}}const X=0,ye=1,be=2,Ce=3,Ne=4,He=5,Fe=6,Xe=7,Ee=[new K(X,0,!1),new K(ye,0,!0),new K(be,1,!1),new K(Ce,1,!0),new K(Ne,2,!1),new K(He,2,!0),new K(Fe,3,!1),new K(Xe,3,!0)],$e=[Ne,He,Ne,He,Fe,Xe,Fe,Xe],Ie=[He,He,He,He,Xe,Xe,Xe,Xe],we=[be,Ce,Ne,He,Fe,Xe,Fe,Xe],De=[Ce,Ce,He,He,Xe,Xe,Xe,Xe],qe=[ye,ye,Ce,Ce,He,He,Xe,Xe],Ge=[X,ye,be,Ce,be,Ce,be,Ce];var Oe={DISPLAY:Ee[X],TEXT:Ee[be],SCRIPT:Ee[Ne],SCRIPTSCRIPT:Ee[Fe]};const fe=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Te(u){for(let a=0;a<fe.length;a++){const c=fe[a];for(let p=0;p<c.blocks.length;p++){const b=c.blocks[p];if(u>=b[0]&&u<=b[1])return c.name}}return null}const Re=[];fe.forEach(u=>u.blocks.forEach(a=>Re.push(...a)));function Ve(u){for(let a=0;a<Re.length;a+=2)if(u>=Re[a]&&u<=Re[a+1])return!0;return!1}const je=80,Je=function(u,a){return"M95,"+(622+u+a)+`
- c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
- c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
- c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
- s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
- c69,-144,104.5,-217.7,106.5,-221
- l`+u/2.075+" -"+u+`
- c5.3,-9.3,12,-14,20,-14
- H400000v`+(40+u)+`H845.2724
- s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
- c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
- M`+(834+u)+" "+a+"h400000v"+(40+u)+"h-400000z"},dt=function(u,a){return"M263,"+(601+u+a)+`c0.7,0,18,39.7,52,119
- c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
- c340,-704.7,510.7,-1060.3,512,-1067
- l`+u/2.084+" -"+u+`
- c4.7,-7.3,11,-11,19,-11
- H40000v`+(40+u)+`H1012.3
- s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
- c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
- s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
- c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
- M`+(1001+u)+" "+a+"h400000v"+(40+u)+"h-400000z"},Yt=function(u,a){return"M983 "+(10+u+a)+`
- l`+u/3.13+" -"+u+`
- c4,-6.7,10,-10,18,-10 H400000v`+(40+u)+`
- H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
- s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
- c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
- c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
- c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
- c53.7,-170.3,84.5,-266.8,92.5,-289.5z
- M`+(1001+u)+" "+a+"h400000v"+(40+u)+"h-400000z"},In=function(u,a){return"M424,"+(2398+u+a)+`
- c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
- c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
- s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
- s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
- l`+u/4.223+" -"+u+`c4,-6.7,10,-10,18,-10 H400000
- v`+(40+u)+`H1014.6
- s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
- c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2z M`+(1001+u)+" "+a+`
- h400000v`+(40+u)+"h-400000z"},Gn=function(u,a){return"M473,"+(2713+u+a)+`
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+u/5.298+" -"+u+`
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+u)+`H1017.7
- s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
- c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
- c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
- s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
- 606zM`+(1001+u)+" "+a+"h400000v"+(40+u)+"H1017.7z"},Yn=function(u){const a=u/2;return"M400000 "+u+" H0 L"+a+" 0 l65 45 L145 "+(u-80)+" H400000z"},gr=function(u,a,c){const p=c-54-a-u;return"M702 "+(u+a)+"H400000"+(40+u)+`
- H742v`+p+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
- h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
- c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
- 219 661 l218 661zM702 `+a+"H400000v"+(40+u)+"H742z"},Zn=function(u,a,c){a=1e3*a;let p="";switch(u){case"sqrtMain":p=Je(a,je);break;case"sqrtSize1":p=dt(a,je);break;case"sqrtSize2":p=Yt(a,je);break;case"sqrtSize3":p=In(a,je);break;case"sqrtSize4":p=Gn(a,je);break;case"sqrtTall":p=gr(a,je,c)}return p},cr=function(u,a){switch(u){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},bn={doubleleftarrow:`M262 157
- l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
- 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
- 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
- c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
- 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
- -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
- -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
- m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
- -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
- 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
- -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
- -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
- -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
- c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
- -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
- 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
- -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
- c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
- 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
- 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
- l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
- -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
- 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
- 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
- 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
- -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
- H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
- 435 0h399565z`,leftgroupunder:`M400000 262
- H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
- 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
- -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
- -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
- -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
- 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
- -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
- -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
- m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
- 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
- 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
- -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
- 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
- -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
- v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
- -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
- -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
- M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
- M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
- -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
- c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
- M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
- c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
- -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
- 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
- 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
- c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
- 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
- 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
- -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
- -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
- m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
- 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
- -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
- m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
- c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
- -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
- m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
- 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
- -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
- m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
- c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
- -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
- 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
- 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
- -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
- -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
- s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
- c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
- 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
- -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
- 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
- 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
- -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
- -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
- 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
- -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
- 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
- m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
- 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
- -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
- -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
- 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
- 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
- -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
- m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
- 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
- -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
- 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
- M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
- 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
- -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
- -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
- 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
- -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
- -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
- -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
- 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
- c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
- 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
- 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
- -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
- 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
- -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
- 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
- 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
- -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
- -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
- 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
- c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
- 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
- -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
- 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
- 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
- -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
- -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
- 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
- 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
- -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
- 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
- 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
- -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
- -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
- H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
- c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
- c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
- -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
- -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
- -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
- c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
- c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
- s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
- 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
- s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
- c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
- M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
- -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
- 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
- -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
- -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
- 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
- c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
- c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
- c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
- M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
- 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
- -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
- M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
- c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
- -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
- c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ln=function(u,a){switch(u){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84
- H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
- M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
- M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
- c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
- MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
- MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
- M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
- M347 1759 V0 h-84 V1759 v`+a+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
- c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
- -36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
- 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
- c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
- -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
- l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
- -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
- 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
- c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
- c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
- c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
- c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
- l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class _n{constructor(a){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(a){return L.contains(this.classes,a)}toNode(){const a=document.createDocumentFragment();for(let c=0;c<this.children.length;c++)a.appendChild(this.children[c].toNode());return a}toMarkup(){let a="";for(let c=0;c<this.children.length;c++)a+=this.children[c].toMarkup();return a}toText(){const a=c=>c.toText();return this.children.map(a).join("")}}var ot={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const Wt={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Zt={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function pt(u,a){ot[u]=a}function yn(u,a,c){if(!ot[a])throw new Error("Font metrics not found for font: "+a+".");let p=u.charCodeAt(0),b=ot[a][p];if(!b&&u[0]in Zt&&(p=Zt[u[0]].charCodeAt(0),b=ot[a][p]),!b&&c==="text"&&Ve(p)&&(b=ot[a][77]),b)return{depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]}}const mn={};function Pn(u){let a;if(u>=5?a=0:u>=3?a=1:a=2,!mn[a]){const c=mn[a]={cssEmPerMu:Wt.quad[a]/18};for(const p in Wt)Wt.hasOwnProperty(p)&&(c[p]=Wt[p][a])}return mn[a]}const jn=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ue=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qe=function(u,a){return a.size<2?u:jn[u-1][a.size-1]};class at{constructor(a){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=a.style,this.color=a.color,this.size=a.size||at.BASESIZE,this.textSize=a.textSize||this.size,this.phantom=!!a.phantom,this.font=a.font||"",this.fontFamily=a.fontFamily||"",this.fontWeight=a.fontWeight||"",this.fontShape=a.fontShape||"",this.sizeMultiplier=Ue[this.size-1],this.maxSize=a.maxSize,this.minRuleThickness=a.minRuleThickness,this._fontMetrics=void 0}extend(a){const c={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const p in a)a.hasOwnProperty(p)&&(c[p]=a[p]);return new at(c)}havingStyle(a){return this.style===a?this:this.extend({style:a,size:Qe(this.textSize,a)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(a){return this.size===a&&this.textSize===a?this:this.extend({style:this.style.text(),size:a,textSize:a,sizeMultiplier:Ue[a-1]})}havingBaseStyle(a){a=a||this.style.text();const c=Qe(at.BASESIZE,a);return this.size===c&&this.textSize===at.BASESIZE&&this.style===a?this:this.extend({style:a,size:c})}havingBaseSizing(){let a;switch(this.style.id){case 4:case 5:a=3;break;case 6:case 7:a=1;break;default:a=6}return this.extend({style:this.style.text(),size:a})}withColor(a){return this.extend({color:a})}withPhantom(){return this.extend({phantom:!0})}withFont(a){return this.extend({font:a})}withTextFontFamily(a){return this.extend({fontFamily:a,font:""})}withTextFontWeight(a){return this.extend({fontWeight:a,font:""})}withTextFontShape(a){return this.extend({fontShape:a,font:""})}sizingClasses(a){return a.size!==this.size?["sizing","reset-size"+a.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==at.BASESIZE?["sizing","reset-size"+this.size,"size"+at.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Pn(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}at.BASESIZE=6;var gt=at;const an={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Tn={ex:!0,em:!0,mu:!0},fn=function(u){return typeof u!="string"&&(u=u.unit),u in an||u in Tn||u==="ex"},qt=function(u,a){let c;if(u.unit in an)c=an[u.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(u.unit==="mu")c=a.fontMetrics().cssEmPerMu;else{let p;if(a.style.isTight()?p=a.havingStyle(a.style.text()):p=a,u.unit==="ex")c=p.fontMetrics().xHeight;else if(u.unit==="em")c=p.fontMetrics().quad;else throw new s("Invalid unit: '"+u.unit+"'");p!==a&&(c*=p.sizeMultiplier/a.sizeMultiplier)}return Math.min(u.number*c,a.maxSize)},ze=function(u){return+u.toFixed(4)+"em"},gn=function(u){return u.filter(a=>a).join(" ")},wr=function(u,a,c){if(this.classes=u||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=c||{},a){a.style.isTight()&&this.classes.push("mtight");const p=a.getColor();p&&(this.style.color=p)}},xr=function(u){const a=document.createElement(u);a.className=gn(this.classes);for(const c in this.style)this.style.hasOwnProperty(c)&&(a.style[c]=this.style[c]);for(const c in this.attributes)this.attributes.hasOwnProperty(c)&&a.setAttribute(c,this.attributes[c]);for(let c=0;c<this.children.length;c++)a.appendChild(this.children[c].toNode());return a},Vr=/[\s"'>/=\x00-\x1f]/,vr=function(u){let a="<"+u;this.classes.length&&(a+=' class="'+L.escape(gn(this.classes))+'"');let c="";for(const p in this.style)this.style.hasOwnProperty(p)&&(c+=L.hyphenate(p)+":"+this.style[p]+";");c&&(a+=' style="'+L.escape(c)+'"');for(const p in this.attributes)if(this.attributes.hasOwnProperty(p)){if(Vr.test(p))throw new s("Invalid attribute name '"+p+"'");a+=" "+p+'="'+L.escape(this.attributes[p])+'"'}a+=">";for(let p=0;p<this.children.length;p++)a+=this.children[p].toMarkup();return a+="</"+u+">",a};class sr{constructor(a,c,p,b){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,wr.call(this,a,p,b),this.children=c||[]}setAttribute(a,c){this.attributes[a]=c}hasClass(a){return L.contains(this.classes,a)}toNode(){return xr.call(this,"span")}toMarkup(){return vr.call(this,"span")}}class or{constructor(a,c,p,b){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,wr.call(this,c,b),this.children=p||[],this.setAttribute("href",a)}setAttribute(a,c){this.attributes[a]=c}hasClass(a){return L.contains(this.classes,a)}toNode(){return xr.call(this,"a")}toMarkup(){return vr.call(this,"a")}}class Un{constructor(a,c,p){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=c,this.src=a,this.classes=["mord"],this.style=p}hasClass(a){return L.contains(this.classes,a)}toNode(){const a=document.createElement("img");a.src=this.src,a.alt=this.alt,a.className="mord";for(const c in this.style)this.style.hasOwnProperty(c)&&(a.style[c]=this.style[c]);return a}toMarkup(){let a='<img src="'+L.escape(this.src)+'"'+(' alt="'+L.escape(this.alt)+'"'),c="";for(const p in this.style)this.style.hasOwnProperty(p)&&(c+=L.hyphenate(p)+":"+this.style[p]+";");return c&&(a+=' style="'+L.escape(c)+'"'),a+="'/>",a}}const Hr={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class En{constructor(a,c,p,b,k,R,B,V){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=a,this.height=c||0,this.depth=p||0,this.italic=b||0,this.skew=k||0,this.width=R||0,this.classes=B||[],this.style=V||{},this.maxFontSize=0;const Q=Te(this.text.charCodeAt(0));Q&&this.classes.push(Q+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Hr[this.text])}hasClass(a){return L.contains(this.classes,a)}toNode(){const a=document.createTextNode(this.text);let c=null;this.italic>0&&(c=document.createElement("span"),c.style.marginRight=ze(this.italic)),this.classes.length>0&&(c=c||document.createElement("span"),c.className=gn(this.classes));for(const p in this.style)this.style.hasOwnProperty(p)&&(c=c||document.createElement("span"),c.style[p]=this.style[p]);return c?(c.appendChild(a),c):a}toMarkup(){let a=!1,c="<span";this.classes.length&&(a=!0,c+=' class="',c+=L.escape(gn(this.classes)),c+='"');let p="";this.italic>0&&(p+="margin-right:"+this.italic+"em;");for(const k in this.style)this.style.hasOwnProperty(k)&&(p+=L.hyphenate(k)+":"+this.style[k]+";");p&&(a=!0,c+=' style="'+L.escape(p)+'"');const b=L.escape(this.text);return a?(c+=">",c+=b,c+="</span>",c):b}}class Bn{constructor(a,c){this.children=void 0,this.attributes=void 0,this.children=a||[],this.attributes=c||{}}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&c.setAttribute(p,this.attributes[p]);for(let p=0;p<this.children.length;p++)c.appendChild(this.children[p].toNode());return c}toMarkup(){let a='<svg xmlns="http://www.w3.org/2000/svg"';for(const c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&(a+=" "+c+'="'+L.escape(this.attributes[c])+'"');a+=">";for(let c=0;c<this.children.length;c++)a+=this.children[c].toMarkup();return a+="</svg>",a}}class $n{constructor(a,c){this.pathName=void 0,this.alternate=void 0,this.pathName=a,this.alternate=c}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?c.setAttribute("d",this.alternate):c.setAttribute("d",bn[this.pathName]),c}toMarkup(){return this.alternate?'<path d="'+L.escape(this.alternate)+'"/>':'<path d="'+L.escape(bn[this.pathName])+'"/>'}}class dr{constructor(a){this.attributes=void 0,this.attributes=a||{}}toNode(){const c=document.createElementNS("http://www.w3.org/2000/svg","line");for(const p in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,p)&&c.setAttribute(p,this.attributes[p]);return c}toMarkup(){let a="<line";for(const c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&(a+=" "+c+'="'+L.escape(this.attributes[c])+'"');return a+="/>",a}}function br(u){if(u instanceof En)return u;throw new Error("Expected symbolNode but got "+String(u)+".")}function er(u){if(u instanceof sr)return u;throw new Error("Expected span<HtmlDomNode> but got "+String(u)+".")}const Tr={bin:1,close:1,inner:1,open:1,punct:1,rel:1},kr={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},fr={math:{},text:{}};var tn=fr;function _(u,a,c,p,b,k){fr[u][b]={font:a,group:c,replace:p},k&&p&&(fr[u][p]=fr[u][b])}const N="math",Me="text",O="main",$="ams",Ye="accent-token",Be="bin",Pt="close",un="inner",Ze="mathord",vt="op-token",Ut="open",tr="punct",W="rel",wn="spacing",me="textord";_(N,O,W,"≡","\\equiv",!0),_(N,O,W,"≺","\\prec",!0),_(N,O,W,"≻","\\succ",!0),_(N,O,W,"∼","\\sim",!0),_(N,O,W,"⊥","\\perp"),_(N,O,W,"⪯","\\preceq",!0),_(N,O,W,"⪰","\\succeq",!0),_(N,O,W,"≃","\\simeq",!0),_(N,O,W,"∣","\\mid",!0),_(N,O,W,"≪","\\ll",!0),_(N,O,W,"≫","\\gg",!0),_(N,O,W,"≍","\\asymp",!0),_(N,O,W,"∥","\\parallel"),_(N,O,W,"⋈","\\bowtie",!0),_(N,O,W,"⌣","\\smile",!0),_(N,O,W,"⊑","\\sqsubseteq",!0),_(N,O,W,"⊒","\\sqsupseteq",!0),_(N,O,W,"≐","\\doteq",!0),_(N,O,W,"⌢","\\frown",!0),_(N,O,W,"∋","\\ni",!0),_(N,O,W,"∝","\\propto",!0),_(N,O,W,"⊢","\\vdash",!0),_(N,O,W,"⊣","\\dashv",!0),_(N,O,W,"∋","\\owns"),_(N,O,tr,".","\\ldotp"),_(N,O,tr,"⋅","\\cdotp"),_(N,O,me,"#","\\#"),_(Me,O,me,"#","\\#"),_(N,O,me,"&","\\&"),_(Me,O,me,"&","\\&"),_(N,O,me,"ℵ","\\aleph",!0),_(N,O,me,"∀","\\forall",!0),_(N,O,me,"ℏ","\\hbar",!0),_(N,O,me,"∃","\\exists",!0),_(N,O,me,"∇","\\nabla",!0),_(N,O,me,"♭","\\flat",!0),_(N,O,me,"ℓ","\\ell",!0),_(N,O,me,"♮","\\natural",!0),_(N,O,me,"♣","\\clubsuit",!0),_(N,O,me,"℘","\\wp",!0),_(N,O,me,"♯","\\sharp",!0),_(N,O,me,"♢","\\diamondsuit",!0),_(N,O,me,"ℜ","\\Re",!0),_(N,O,me,"♡","\\heartsuit",!0),_(N,O,me,"ℑ","\\Im",!0),_(N,O,me,"♠","\\spadesuit",!0),_(N,O,me,"§","\\S",!0),_(Me,O,me,"§","\\S"),_(N,O,me,"¶","\\P",!0),_(Me,O,me,"¶","\\P"),_(N,O,me,"†","\\dag"),_(Me,O,me,"†","\\dag"),_(Me,O,me,"†","\\textdagger"),_(N,O,me,"‡","\\ddag"),_(Me,O,me,"‡","\\ddag"),_(Me,O,me,"‡","\\textdaggerdbl"),_(N,O,Pt,"⎱","\\rmoustache",!0),_(N,O,Ut,"⎰","\\lmoustache",!0),_(N,O,Pt,"⟯","\\rgroup",!0),_(N,O,Ut,"⟮","\\lgroup",!0),_(N,O,Be,"∓","\\mp",!0),_(N,O,Be,"⊖","\\ominus",!0),_(N,O,Be,"⊎","\\uplus",!0),_(N,O,Be,"⊓","\\sqcap",!0),_(N,O,Be,"∗","\\ast"),_(N,O,Be,"⊔","\\sqcup",!0),_(N,O,Be,"◯","\\bigcirc",!0),_(N,O,Be,"∙","\\bullet",!0),_(N,O,Be,"‡","\\ddagger"),_(N,O,Be,"≀","\\wr",!0),_(N,O,Be,"⨿","\\amalg"),_(N,O,Be,"&","\\And"),_(N,O,W,"⟵","\\longleftarrow",!0),_(N,O,W,"⇐","\\Leftarrow",!0),_(N,O,W,"⟸","\\Longleftarrow",!0),_(N,O,W,"⟶","\\longrightarrow",!0),_(N,O,W,"⇒","\\Rightarrow",!0),_(N,O,W,"⟹","\\Longrightarrow",!0),_(N,O,W,"↔","\\leftrightarrow",!0),_(N,O,W,"⟷","\\longleftrightarrow",!0),_(N,O,W,"⇔","\\Leftrightarrow",!0),_(N,O,W,"⟺","\\Longleftrightarrow",!0),_(N,O,W,"↦","\\mapsto",!0),_(N,O,W,"⟼","\\longmapsto",!0),_(N,O,W,"↗","\\nearrow",!0),_(N,O,W,"↩","\\hookleftarrow",!0),_(N,O,W,"↪","\\hookrightarrow",!0),_(N,O,W,"↘","\\searrow",!0),_(N,O,W,"↼","\\leftharpoonup",!0),_(N,O,W,"⇀","\\rightharpoonup",!0),_(N,O,W,"↙","\\swarrow",!0),_(N,O,W,"↽","\\leftharpoondown",!0),_(N,O,W,"⇁","\\rightharpoondown",!0),_(N,O,W,"↖","\\nwarrow",!0),_(N,O,W,"⇌","\\rightleftharpoons",!0),_(N,$,W,"≮","\\nless",!0),_(N,$,W,"","\\@nleqslant"),_(N,$,W,"","\\@nleqq"),_(N,$,W,"⪇","\\lneq",!0),_(N,$,W,"≨","\\lneqq",!0),_(N,$,W,"","\\@lvertneqq"),_(N,$,W,"⋦","\\lnsim",!0),_(N,$,W,"⪉","\\lnapprox",!0),_(N,$,W,"⊀","\\nprec",!0),_(N,$,W,"⋠","\\npreceq",!0),_(N,$,W,"⋨","\\precnsim",!0),_(N,$,W,"⪹","\\precnapprox",!0),_(N,$,W,"≁","\\nsim",!0),_(N,$,W,"","\\@nshortmid"),_(N,$,W,"∤","\\nmid",!0),_(N,$,W,"⊬","\\nvdash",!0),_(N,$,W,"⊭","\\nvDash",!0),_(N,$,W,"⋪","\\ntriangleleft"),_(N,$,W,"⋬","\\ntrianglelefteq",!0),_(N,$,W,"⊊","\\subsetneq",!0),_(N,$,W,"","\\@varsubsetneq"),_(N,$,W,"⫋","\\subsetneqq",!0),_(N,$,W,"","\\@varsubsetneqq"),_(N,$,W,"≯","\\ngtr",!0),_(N,$,W,"","\\@ngeqslant"),_(N,$,W,"","\\@ngeqq"),_(N,$,W,"⪈","\\gneq",!0),_(N,$,W,"≩","\\gneqq",!0),_(N,$,W,"","\\@gvertneqq"),_(N,$,W,"⋧","\\gnsim",!0),_(N,$,W,"⪊","\\gnapprox",!0),_(N,$,W,"⊁","\\nsucc",!0),_(N,$,W,"⋡","\\nsucceq",!0),_(N,$,W,"⋩","\\succnsim",!0),_(N,$,W,"⪺","\\succnapprox",!0),_(N,$,W,"≆","\\ncong",!0),_(N,$,W,"","\\@nshortparallel"),_(N,$,W,"∦","\\nparallel",!0),_(N,$,W,"⊯","\\nVDash",!0),_(N,$,W,"⋫","\\ntriangleright"),_(N,$,W,"⋭","\\ntrianglerighteq",!0),_(N,$,W,"","\\@nsupseteqq"),_(N,$,W,"⊋","\\supsetneq",!0),_(N,$,W,"","\\@varsupsetneq"),_(N,$,W,"⫌","\\supsetneqq",!0),_(N,$,W,"","\\@varsupsetneqq"),_(N,$,W,"⊮","\\nVdash",!0),_(N,$,W,"⪵","\\precneqq",!0),_(N,$,W,"⪶","\\succneqq",!0),_(N,$,W,"","\\@nsubseteqq"),_(N,$,Be,"⊴","\\unlhd"),_(N,$,Be,"⊵","\\unrhd"),_(N,$,W,"↚","\\nleftarrow",!0),_(N,$,W,"↛","\\nrightarrow",!0),_(N,$,W,"⇍","\\nLeftarrow",!0),_(N,$,W,"⇏","\\nRightarrow",!0),_(N,$,W,"↮","\\nleftrightarrow",!0),_(N,$,W,"⇎","\\nLeftrightarrow",!0),_(N,$,W,"△","\\vartriangle"),_(N,$,me,"ℏ","\\hslash"),_(N,$,me,"▽","\\triangledown"),_(N,$,me,"◊","\\lozenge"),_(N,$,me,"Ⓢ","\\circledS"),_(N,$,me,"®","\\circledR"),_(Me,$,me,"®","\\circledR"),_(N,$,me,"∡","\\measuredangle",!0),_(N,$,me,"∄","\\nexists"),_(N,$,me,"℧","\\mho"),_(N,$,me,"Ⅎ","\\Finv",!0),_(N,$,me,"⅁","\\Game",!0),_(N,$,me,"‵","\\backprime"),_(N,$,me,"▲","\\blacktriangle"),_(N,$,me,"▼","\\blacktriangledown"),_(N,$,me,"■","\\blacksquare"),_(N,$,me,"⧫","\\blacklozenge"),_(N,$,me,"★","\\bigstar"),_(N,$,me,"∢","\\sphericalangle",!0),_(N,$,me,"∁","\\complement",!0),_(N,$,me,"ð","\\eth",!0),_(Me,O,me,"ð","ð"),_(N,$,me,"╱","\\diagup"),_(N,$,me,"╲","\\diagdown"),_(N,$,me,"□","\\square"),_(N,$,me,"□","\\Box"),_(N,$,me,"◊","\\Diamond"),_(N,$,me,"¥","\\yen",!0),_(Me,$,me,"¥","\\yen",!0),_(N,$,me,"✓","\\checkmark",!0),_(Me,$,me,"✓","\\checkmark"),_(N,$,me,"ℶ","\\beth",!0),_(N,$,me,"ℸ","\\daleth",!0),_(N,$,me,"ℷ","\\gimel",!0),_(N,$,me,"ϝ","\\digamma",!0),_(N,$,me,"ϰ","\\varkappa"),_(N,$,Ut,"┌","\\@ulcorner",!0),_(N,$,Pt,"┐","\\@urcorner",!0),_(N,$,Ut,"└","\\@llcorner",!0),_(N,$,Pt,"┘","\\@lrcorner",!0),_(N,$,W,"≦","\\leqq",!0),_(N,$,W,"⩽","\\leqslant",!0),_(N,$,W,"⪕","\\eqslantless",!0),_(N,$,W,"≲","\\lesssim",!0),_(N,$,W,"⪅","\\lessapprox",!0),_(N,$,W,"≊","\\approxeq",!0),_(N,$,Be,"⋖","\\lessdot"),_(N,$,W,"⋘","\\lll",!0),_(N,$,W,"≶","\\lessgtr",!0),_(N,$,W,"⋚","\\lesseqgtr",!0),_(N,$,W,"⪋","\\lesseqqgtr",!0),_(N,$,W,"≑","\\doteqdot"),_(N,$,W,"≓","\\risingdotseq",!0),_(N,$,W,"≒","\\fallingdotseq",!0),_(N,$,W,"∽","\\backsim",!0),_(N,$,W,"⋍","\\backsimeq",!0),_(N,$,W,"⫅","\\subseteqq",!0),_(N,$,W,"⋐","\\Subset",!0),_(N,$,W,"⊏","\\sqsubset",!0),_(N,$,W,"≼","\\preccurlyeq",!0),_(N,$,W,"⋞","\\curlyeqprec",!0),_(N,$,W,"≾","\\precsim",!0),_(N,$,W,"⪷","\\precapprox",!0),_(N,$,W,"⊲","\\vartriangleleft"),_(N,$,W,"⊴","\\trianglelefteq"),_(N,$,W,"⊨","\\vDash",!0),_(N,$,W,"⊪","\\Vvdash",!0),_(N,$,W,"⌣","\\smallsmile"),_(N,$,W,"⌢","\\smallfrown"),_(N,$,W,"≏","\\bumpeq",!0),_(N,$,W,"≎","\\Bumpeq",!0),_(N,$,W,"≧","\\geqq",!0),_(N,$,W,"⩾","\\geqslant",!0),_(N,$,W,"⪖","\\eqslantgtr",!0),_(N,$,W,"≳","\\gtrsim",!0),_(N,$,W,"⪆","\\gtrapprox",!0),_(N,$,Be,"⋗","\\gtrdot"),_(N,$,W,"⋙","\\ggg",!0),_(N,$,W,"≷","\\gtrless",!0),_(N,$,W,"⋛","\\gtreqless",!0),_(N,$,W,"⪌","\\gtreqqless",!0),_(N,$,W,"≖","\\eqcirc",!0),_(N,$,W,"≗","\\circeq",!0),_(N,$,W,"≜","\\triangleq",!0),_(N,$,W,"∼","\\thicksim"),_(N,$,W,"≈","\\thickapprox"),_(N,$,W,"⫆","\\supseteqq",!0),_(N,$,W,"⋑","\\Supset",!0),_(N,$,W,"⊐","\\sqsupset",!0),_(N,$,W,"≽","\\succcurlyeq",!0),_(N,$,W,"⋟","\\curlyeqsucc",!0),_(N,$,W,"≿","\\succsim",!0),_(N,$,W,"⪸","\\succapprox",!0),_(N,$,W,"⊳","\\vartriangleright"),_(N,$,W,"⊵","\\trianglerighteq"),_(N,$,W,"⊩","\\Vdash",!0),_(N,$,W,"∣","\\shortmid"),_(N,$,W,"∥","\\shortparallel"),_(N,$,W,"≬","\\between",!0),_(N,$,W,"⋔","\\pitchfork",!0),_(N,$,W,"∝","\\varpropto"),_(N,$,W,"◀","\\blacktriangleleft"),_(N,$,W,"∴","\\therefore",!0),_(N,$,W,"∍","\\backepsilon"),_(N,$,W,"▶","\\blacktriangleright"),_(N,$,W,"∵","\\because",!0),_(N,$,W,"⋘","\\llless"),_(N,$,W,"⋙","\\gggtr"),_(N,$,Be,"⊲","\\lhd"),_(N,$,Be,"⊳","\\rhd"),_(N,$,W,"≂","\\eqsim",!0),_(N,O,W,"⋈","\\Join"),_(N,$,W,"≑","\\Doteq",!0),_(N,$,Be,"∔","\\dotplus",!0),_(N,$,Be,"∖","\\smallsetminus"),_(N,$,Be,"⋒","\\Cap",!0),_(N,$,Be,"⋓","\\Cup",!0),_(N,$,Be,"⩞","\\doublebarwedge",!0),_(N,$,Be,"⊟","\\boxminus",!0),_(N,$,Be,"⊞","\\boxplus",!0),_(N,$,Be,"⋇","\\divideontimes",!0),_(N,$,Be,"⋉","\\ltimes",!0),_(N,$,Be,"⋊","\\rtimes",!0),_(N,$,Be,"⋋","\\leftthreetimes",!0),_(N,$,Be,"⋌","\\rightthreetimes",!0),_(N,$,Be,"⋏","\\curlywedge",!0),_(N,$,Be,"⋎","\\curlyvee",!0),_(N,$,Be,"⊝","\\circleddash",!0),_(N,$,Be,"⊛","\\circledast",!0),_(N,$,Be,"⋅","\\centerdot"),_(N,$,Be,"⊺","\\intercal",!0),_(N,$,Be,"⋒","\\doublecap"),_(N,$,Be,"⋓","\\doublecup"),_(N,$,Be,"⊠","\\boxtimes",!0),_(N,$,W,"⇢","\\dashrightarrow",!0),_(N,$,W,"⇠","\\dashleftarrow",!0),_(N,$,W,"⇇","\\leftleftarrows",!0),_(N,$,W,"⇆","\\leftrightarrows",!0),_(N,$,W,"⇚","\\Lleftarrow",!0),_(N,$,W,"↞","\\twoheadleftarrow",!0),_(N,$,W,"↢","\\leftarrowtail",!0),_(N,$,W,"↫","\\looparrowleft",!0),_(N,$,W,"⇋","\\leftrightharpoons",!0),_(N,$,W,"↶","\\curvearrowleft",!0),_(N,$,W,"↺","\\circlearrowleft",!0),_(N,$,W,"↰","\\Lsh",!0),_(N,$,W,"⇈","\\upuparrows",!0),_(N,$,W,"↿","\\upharpoonleft",!0),_(N,$,W,"⇃","\\downharpoonleft",!0),_(N,O,W,"⊶","\\origof",!0),_(N,O,W,"⊷","\\imageof",!0),_(N,$,W,"⊸","\\multimap",!0),_(N,$,W,"↭","\\leftrightsquigarrow",!0),_(N,$,W,"⇉","\\rightrightarrows",!0),_(N,$,W,"⇄","\\rightleftarrows",!0),_(N,$,W,"↠","\\twoheadrightarrow",!0),_(N,$,W,"↣","\\rightarrowtail",!0),_(N,$,W,"↬","\\looparrowright",!0),_(N,$,W,"↷","\\curvearrowright",!0),_(N,$,W,"↻","\\circlearrowright",!0),_(N,$,W,"↱","\\Rsh",!0),_(N,$,W,"⇊","\\downdownarrows",!0),_(N,$,W,"↾","\\upharpoonright",!0),_(N,$,W,"⇂","\\downharpoonright",!0),_(N,$,W,"⇝","\\rightsquigarrow",!0),_(N,$,W,"⇝","\\leadsto"),_(N,$,W,"⇛","\\Rrightarrow",!0),_(N,$,W,"↾","\\restriction"),_(N,O,me,"‘","`"),_(N,O,me,"$","\\$"),_(Me,O,me,"$","\\$"),_(Me,O,me,"$","\\textdollar"),_(N,O,me,"%","\\%"),_(Me,O,me,"%","\\%"),_(N,O,me,"_","\\_"),_(Me,O,me,"_","\\_"),_(Me,O,me,"_","\\textunderscore"),_(N,O,me,"∠","\\angle",!0),_(N,O,me,"∞","\\infty",!0),_(N,O,me,"′","\\prime"),_(N,O,me,"△","\\triangle"),_(N,O,me,"Γ","\\Gamma",!0),_(N,O,me,"Δ","\\Delta",!0),_(N,O,me,"Θ","\\Theta",!0),_(N,O,me,"Λ","\\Lambda",!0),_(N,O,me,"Ξ","\\Xi",!0),_(N,O,me,"Π","\\Pi",!0),_(N,O,me,"Σ","\\Sigma",!0),_(N,O,me,"Υ","\\Upsilon",!0),_(N,O,me,"Φ","\\Phi",!0),_(N,O,me,"Ψ","\\Psi",!0),_(N,O,me,"Ω","\\Omega",!0),_(N,O,me,"A","Α"),_(N,O,me,"B","Β"),_(N,O,me,"E","Ε"),_(N,O,me,"Z","Ζ"),_(N,O,me,"H","Η"),_(N,O,me,"I","Ι"),_(N,O,me,"K","Κ"),_(N,O,me,"M","Μ"),_(N,O,me,"N","Ν"),_(N,O,me,"O","Ο"),_(N,O,me,"P","Ρ"),_(N,O,me,"T","Τ"),_(N,O,me,"X","Χ"),_(N,O,me,"¬","\\neg",!0),_(N,O,me,"¬","\\lnot"),_(N,O,me,"⊤","\\top"),_(N,O,me,"⊥","\\bot"),_(N,O,me,"∅","\\emptyset"),_(N,$,me,"∅","\\varnothing"),_(N,O,Ze,"α","\\alpha",!0),_(N,O,Ze,"β","\\beta",!0),_(N,O,Ze,"γ","\\gamma",!0),_(N,O,Ze,"δ","\\delta",!0),_(N,O,Ze,"ϵ","\\epsilon",!0),_(N,O,Ze,"ζ","\\zeta",!0),_(N,O,Ze,"η","\\eta",!0),_(N,O,Ze,"θ","\\theta",!0),_(N,O,Ze,"ι","\\iota",!0),_(N,O,Ze,"κ","\\kappa",!0),_(N,O,Ze,"λ","\\lambda",!0),_(N,O,Ze,"μ","\\mu",!0),_(N,O,Ze,"ν","\\nu",!0),_(N,O,Ze,"ξ","\\xi",!0),_(N,O,Ze,"ο","\\omicron",!0),_(N,O,Ze,"π","\\pi",!0),_(N,O,Ze,"ρ","\\rho",!0),_(N,O,Ze,"σ","\\sigma",!0),_(N,O,Ze,"τ","\\tau",!0),_(N,O,Ze,"υ","\\upsilon",!0),_(N,O,Ze,"ϕ","\\phi",!0),_(N,O,Ze,"χ","\\chi",!0),_(N,O,Ze,"ψ","\\psi",!0),_(N,O,Ze,"ω","\\omega",!0),_(N,O,Ze,"ε","\\varepsilon",!0),_(N,O,Ze,"ϑ","\\vartheta",!0),_(N,O,Ze,"ϖ","\\varpi",!0),_(N,O,Ze,"ϱ","\\varrho",!0),_(N,O,Ze,"ς","\\varsigma",!0),_(N,O,Ze,"φ","\\varphi",!0),_(N,O,Be,"∗","*",!0),_(N,O,Be,"+","+"),_(N,O,Be,"−","-",!0),_(N,O,Be,"⋅","\\cdot",!0),_(N,O,Be,"∘","\\circ",!0),_(N,O,Be,"÷","\\div",!0),_(N,O,Be,"±","\\pm",!0),_(N,O,Be,"×","\\times",!0),_(N,O,Be,"∩","\\cap",!0),_(N,O,Be,"∪","\\cup",!0),_(N,O,Be,"∖","\\setminus",!0),_(N,O,Be,"∧","\\land"),_(N,O,Be,"∨","\\lor"),_(N,O,Be,"∧","\\wedge",!0),_(N,O,Be,"∨","\\vee",!0),_(N,O,me,"√","\\surd"),_(N,O,Ut,"⟨","\\langle",!0),_(N,O,Ut,"∣","\\lvert"),_(N,O,Ut,"∥","\\lVert"),_(N,O,Pt,"?","?"),_(N,O,Pt,"!","!"),_(N,O,Pt,"⟩","\\rangle",!0),_(N,O,Pt,"∣","\\rvert"),_(N,O,Pt,"∥","\\rVert"),_(N,O,W,"=","="),_(N,O,W,":",":"),_(N,O,W,"≈","\\approx",!0),_(N,O,W,"≅","\\cong",!0),_(N,O,W,"≥","\\ge"),_(N,O,W,"≥","\\geq",!0),_(N,O,W,"←","\\gets"),_(N,O,W,">","\\gt",!0),_(N,O,W,"∈","\\in",!0),_(N,O,W,"","\\@not"),_(N,O,W,"⊂","\\subset",!0),_(N,O,W,"⊃","\\supset",!0),_(N,O,W,"⊆","\\subseteq",!0),_(N,O,W,"⊇","\\supseteq",!0),_(N,$,W,"⊈","\\nsubseteq",!0),_(N,$,W,"⊉","\\nsupseteq",!0),_(N,O,W,"⊨","\\models"),_(N,O,W,"←","\\leftarrow",!0),_(N,O,W,"≤","\\le"),_(N,O,W,"≤","\\leq",!0),_(N,O,W,"<","\\lt",!0),_(N,O,W,"→","\\rightarrow",!0),_(N,O,W,"→","\\to"),_(N,$,W,"≱","\\ngeq",!0),_(N,$,W,"≰","\\nleq",!0),_(N,O,wn," ","\\ "),_(N,O,wn," ","\\space"),_(N,O,wn," ","\\nobreakspace"),_(Me,O,wn," ","\\ "),_(Me,O,wn," "," "),_(Me,O,wn," ","\\space"),_(Me,O,wn," ","\\nobreakspace"),_(N,O,wn,null,"\\nobreak"),_(N,O,wn,null,"\\allowbreak"),_(N,O,tr,",",","),_(N,O,tr,";",";"),_(N,$,Be,"⊼","\\barwedge",!0),_(N,$,Be,"⊻","\\veebar",!0),_(N,O,Be,"⊙","\\odot",!0),_(N,O,Be,"⊕","\\oplus",!0),_(N,O,Be,"⊗","\\otimes",!0),_(N,O,me,"∂","\\partial",!0),_(N,O,Be,"⊘","\\oslash",!0),_(N,$,Be,"⊚","\\circledcirc",!0),_(N,$,Be,"⊡","\\boxdot",!0),_(N,O,Be,"△","\\bigtriangleup"),_(N,O,Be,"▽","\\bigtriangledown"),_(N,O,Be,"†","\\dagger"),_(N,O,Be,"⋄","\\diamond"),_(N,O,Be,"⋆","\\star"),_(N,O,Be,"◃","\\triangleleft"),_(N,O,Be,"▹","\\triangleright"),_(N,O,Ut,"{","\\{"),_(Me,O,me,"{","\\{"),_(Me,O,me,"{","\\textbraceleft"),_(N,O,Pt,"}","\\}"),_(Me,O,me,"}","\\}"),_(Me,O,me,"}","\\textbraceright"),_(N,O,Ut,"{","\\lbrace"),_(N,O,Pt,"}","\\rbrace"),_(N,O,Ut,"[","\\lbrack",!0),_(Me,O,me,"[","\\lbrack",!0),_(N,O,Pt,"]","\\rbrack",!0),_(Me,O,me,"]","\\rbrack",!0),_(N,O,Ut,"(","\\lparen",!0),_(N,O,Pt,")","\\rparen",!0),_(Me,O,me,"<","\\textless",!0),_(Me,O,me,">","\\textgreater",!0),_(N,O,Ut,"⌊","\\lfloor",!0),_(N,O,Pt,"⌋","\\rfloor",!0),_(N,O,Ut,"⌈","\\lceil",!0),_(N,O,Pt,"⌉","\\rceil",!0),_(N,O,me,"\\","\\backslash"),_(N,O,me,"∣","|"),_(N,O,me,"∣","\\vert"),_(Me,O,me,"|","\\textbar",!0),_(N,O,me,"∥","\\|"),_(N,O,me,"∥","\\Vert"),_(Me,O,me,"∥","\\textbardbl"),_(Me,O,me,"~","\\textasciitilde"),_(Me,O,me,"\\","\\textbackslash"),_(Me,O,me,"^","\\textasciicircum"),_(N,O,W,"↑","\\uparrow",!0),_(N,O,W,"⇑","\\Uparrow",!0),_(N,O,W,"↓","\\downarrow",!0),_(N,O,W,"⇓","\\Downarrow",!0),_(N,O,W,"↕","\\updownarrow",!0),_(N,O,W,"⇕","\\Updownarrow",!0),_(N,O,vt,"∐","\\coprod"),_(N,O,vt,"⋁","\\bigvee"),_(N,O,vt,"⋀","\\bigwedge"),_(N,O,vt,"⨄","\\biguplus"),_(N,O,vt,"⋂","\\bigcap"),_(N,O,vt,"⋃","\\bigcup"),_(N,O,vt,"∫","\\int"),_(N,O,vt,"∫","\\intop"),_(N,O,vt,"∬","\\iint"),_(N,O,vt,"∭","\\iiint"),_(N,O,vt,"∏","\\prod"),_(N,O,vt,"∑","\\sum"),_(N,O,vt,"⨂","\\bigotimes"),_(N,O,vt,"⨁","\\bigoplus"),_(N,O,vt,"⨀","\\bigodot"),_(N,O,vt,"∮","\\oint"),_(N,O,vt,"∯","\\oiint"),_(N,O,vt,"∰","\\oiiint"),_(N,O,vt,"⨆","\\bigsqcup"),_(N,O,vt,"∫","\\smallint"),_(Me,O,un,"…","\\textellipsis"),_(N,O,un,"…","\\mathellipsis"),_(Me,O,un,"…","\\ldots",!0),_(N,O,un,"…","\\ldots",!0),_(N,O,un,"⋯","\\@cdots",!0),_(N,O,un,"⋱","\\ddots",!0),_(N,O,me,"⋮","\\varvdots"),_(Me,O,me,"⋮","\\varvdots"),_(N,O,Ye,"ˊ","\\acute"),_(N,O,Ye,"ˋ","\\grave"),_(N,O,Ye,"¨","\\ddot"),_(N,O,Ye,"~","\\tilde"),_(N,O,Ye,"ˉ","\\bar"),_(N,O,Ye,"˘","\\breve"),_(N,O,Ye,"ˇ","\\check"),_(N,O,Ye,"^","\\hat"),_(N,O,Ye,"⃗","\\vec"),_(N,O,Ye,"˙","\\dot"),_(N,O,Ye,"˚","\\mathring"),_(N,O,Ze,"","\\@imath"),_(N,O,Ze,"","\\@jmath"),_(N,O,me,"ı","ı"),_(N,O,me,"ȷ","ȷ"),_(Me,O,me,"ı","\\i",!0),_(Me,O,me,"ȷ","\\j",!0),_(Me,O,me,"ß","\\ss",!0),_(Me,O,me,"æ","\\ae",!0),_(Me,O,me,"œ","\\oe",!0),_(Me,O,me,"ø","\\o",!0),_(Me,O,me,"Æ","\\AE",!0),_(Me,O,me,"Œ","\\OE",!0),_(Me,O,me,"Ø","\\O",!0),_(Me,O,Ye,"ˊ","\\'"),_(Me,O,Ye,"ˋ","\\`"),_(Me,O,Ye,"ˆ","\\^"),_(Me,O,Ye,"˜","\\~"),_(Me,O,Ye,"ˉ","\\="),_(Me,O,Ye,"˘","\\u"),_(Me,O,Ye,"˙","\\."),_(Me,O,Ye,"¸","\\c"),_(Me,O,Ye,"˚","\\r"),_(Me,O,Ye,"ˇ","\\v"),_(Me,O,Ye,"¨",'\\"'),_(Me,O,Ye,"˝","\\H"),_(Me,O,Ye,"◯","\\textcircled");const Vt={"--":!0,"---":!0,"``":!0,"''":!0};_(Me,O,me,"–","--",!0),_(Me,O,me,"–","\\textendash"),_(Me,O,me,"—","---",!0),_(Me,O,me,"—","\\textemdash"),_(Me,O,me,"‘","`",!0),_(Me,O,me,"‘","\\textquoteleft"),_(Me,O,me,"’","'",!0),_(Me,O,me,"’","\\textquoteright"),_(Me,O,me,"“","``",!0),_(Me,O,me,"“","\\textquotedblleft"),_(Me,O,me,"”","''",!0),_(Me,O,me,"”","\\textquotedblright"),_(N,O,me,"°","\\degree",!0),_(Me,O,me,"°","\\degree"),_(Me,O,me,"°","\\textdegree",!0),_(N,O,me,"£","\\pounds"),_(N,O,me,"£","\\mathsterling",!0),_(Me,O,me,"£","\\pounds"),_(Me,O,me,"£","\\textsterling",!0),_(N,$,me,"✠","\\maltese"),_(Me,$,me,"✠","\\maltese");const cn='0123456789/@."';for(let u=0;u<cn.length;u++){const a=cn.charAt(u);_(N,O,me,a,a)}const Wn='0123456789!@*()-=+";:?/.,';for(let u=0;u<Wn.length;u++){const a=Wn.charAt(u);_(Me,O,me,a,a)}const An="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let u=0;u<An.length;u++){const a=An.charAt(u);_(N,O,Ze,a,a),_(Me,O,me,a,a)}_(N,$,me,"C","ℂ"),_(Me,$,me,"C","ℂ"),_(N,$,me,"H","ℍ"),_(Me,$,me,"H","ℍ"),_(N,$,me,"N","ℕ"),_(Me,$,me,"N","ℕ"),_(N,$,me,"P","ℙ"),_(Me,$,me,"P","ℙ"),_(N,$,me,"Q","ℚ"),_(Me,$,me,"Q","ℚ"),_(N,$,me,"R","ℝ"),_(Me,$,me,"R","ℝ"),_(N,$,me,"Z","ℤ"),_(Me,$,me,"Z","ℤ"),_(N,O,Ze,"h","ℎ"),_(Me,O,Ze,"h","ℎ");let lt="";for(let u=0;u<An.length;u++){const a=An.charAt(u);lt=String.fromCharCode(55349,56320+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56372+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56424+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56580+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56684+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56736+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56788+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56840+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56944+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),u<26&&(lt=String.fromCharCode(55349,56632+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,56476+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt))}lt="𝕜",_(N,O,Ze,"k",lt),_(Me,O,me,"k",lt);for(let u=0;u<10;u++){const a=u.toString();lt=String.fromCharCode(55349,57294+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,57314+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,57324+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt),lt=String.fromCharCode(55349,57334+u),_(N,O,Ze,a,lt),_(Me,O,me,a,lt)}const ar="ÐÞþ";for(let u=0;u<ar.length;u++){const a=ar.charAt(u);_(N,O,Ze,a,a),_(Me,O,me,a,a)}const kn=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],_r=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Gr=function(u,a){const c=u.charCodeAt(0),p=u.charCodeAt(1),b=(c-55296)*1024+(p-56320)+65536,k=a==="math"?0:1;if(119808<=b&&b<120484){const R=Math.floor((b-119808)/26);return[kn[R][2],kn[R][k]]}else if(120782<=b&&b<=120831){const R=Math.floor((b-120782)/10);return[_r[R][2],_r[R][k]]}else{if(b===120485||b===120486)return[kn[0][2],kn[0][k]];if(120486<b&&b<120782)return["",""];throw new s("Unsupported character: "+u)}},Nr=function(u,a,c){return tn[c][u]&&tn[c][u].replace&&(u=tn[c][u].replace),{value:u,metrics:yn(u,a,c)}},Fn=function(u,a,c,p,b){const k=Nr(u,a,c),R=k.metrics;u=k.value;let B;if(R){let V=R.italic;(c==="text"||p&&p.font==="mathit")&&(V=0),B=new En(u,R.height,R.depth,V,R.skew,R.width,b)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+u+"' in style '"+a+"' and mode '"+c+"'")),B=new En(u,0,0,0,0,0,b);if(p){B.maxFontSize=p.sizeMultiplier,p.style.isTight()&&B.classes.push("mtight");const V=p.getColor();V&&(B.style.color=V)}return B},zs=function(u,a,c,p){return p===void 0&&(p=[]),c.font==="boldsymbol"&&Nr(u,"Main-Bold",a).metrics?Fn(u,"Main-Bold",a,c,p.concat(["mathbf"])):u==="\\"||tn[a][u].font==="main"?Fn(u,"Main-Regular",a,c,p):Fn(u,"AMS-Regular",a,c,p.concat(["amsrm"]))},qs=function(u,a,c,p,b){return b!=="textord"&&Nr(u,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Vs=function(u,a,c){const p=u.mode,b=u.text,k=["mord"],R=p==="math"||p==="text"&&a.font,B=R?a.font:a.fontFamily;let V="",Q="";if(b.charCodeAt(0)===55349&&([V,Q]=Gr(b,p)),V.length>0)return Fn(b,V,p,a,k.concat(Q));if(B){let _e,Ae;if(B==="boldsymbol"){const xe=qs(b,p,a,k,c);_e=xe.fontName,Ae=[xe.fontClass]}else R?(_e=Ni[B].fontName,Ae=[B]):(_e=Cr(B,a.fontWeight,a.fontShape),Ae=[B,a.fontWeight,a.fontShape]);if(Nr(b,_e,p).metrics)return Fn(b,_e,p,a,k.concat(Ae));if(Vt.hasOwnProperty(b)&&_e.slice(0,10)==="Typewriter"){const xe=[];for(let Le=0;Le<b.length;Le++)xe.push(Fn(b[Le],_e,p,a,k.concat(Ae)));return ki(xe)}}if(c==="mathord")return Fn(b,"Math-Italic",p,a,k.concat(["mathnormal"]));if(c==="textord"){const _e=tn[p][b]&&tn[p][b].font;if(_e==="ams"){const Ae=Cr("amsrm",a.fontWeight,a.fontShape);return Fn(b,Ae,p,a,k.concat("amsrm",a.fontWeight,a.fontShape))}else if(_e==="main"||!_e){const Ae=Cr("textrm",a.fontWeight,a.fontShape);return Fn(b,Ae,p,a,k.concat(a.fontWeight,a.fontShape))}else{const Ae=Cr(_e,a.fontWeight,a.fontShape);return Fn(b,Ae,p,a,k.concat(Ae,a.fontWeight,a.fontShape))}}else throw new Error("unexpected type: "+c+" in makeOrd")},Hs=(u,a)=>{if(gn(u.classes)!==gn(a.classes)||u.skew!==a.skew||u.maxFontSize!==a.maxFontSize)return!1;if(u.classes.length===1){const c=u.classes[0];if(c==="mbin"||c==="mord")return!1}for(const c in u.style)if(u.style.hasOwnProperty(c)&&u.style[c]!==a.style[c])return!1;for(const c in a.style)if(a.style.hasOwnProperty(c)&&u.style[c]!==a.style[c])return!1;return!0},Gs=u=>{for(let a=0;a<u.length-1;a++){const c=u[a],p=u[a+1];c instanceof En&&p instanceof En&&Hs(c,p)&&(c.text+=p.text,c.height=Math.max(c.height,p.height),c.depth=Math.max(c.depth,p.depth),c.italic=p.italic,u.splice(a+1,1),a--)}return u},Yr=function(u){let a=0,c=0,p=0;for(let b=0;b<u.children.length;b++){const k=u.children[b];k.height>a&&(a=k.height),k.depth>c&&(c=k.depth),k.maxFontSize>p&&(p=k.maxFontSize)}u.height=a,u.depth=c,u.maxFontSize=p},xn=function(u,a,c,p){const b=new sr(u,a,c,p);return Yr(b),b},Ti=(u,a,c,p)=>new sr(u,a,c,p),Ys=function(u,a,c){const p=xn([u],[],a);return p.height=Math.max(c||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),p.style.borderBottomWidth=ze(p.height),p.maxFontSize=1,p},js=function(u,a,c,p){const b=new or(u,a,c,p);return Yr(b),b},ki=function(u){const a=new _n(u);return Yr(a),a},Ws=function(u,a){return u instanceof _n?xn([],[u],a):u},Ks=function(u){if(u.positionType==="individualShift"){const c=u.children,p=[c[0]],b=-c[0].shift-c[0].elem.depth;let k=b;for(let R=1;R<c.length;R++){const B=-c[R].shift-k-c[R].elem.depth,V=B-(c[R-1].elem.height+c[R-1].elem.depth);k=k+B,p.push({type:"kern",size:V}),p.push(c[R])}return{children:p,depth:b}}let a;if(u.positionType==="top"){let c=u.positionData;for(let p=0;p<u.children.length;p++){const b=u.children[p];c-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}a=c}else if(u.positionType==="bottom")a=-u.positionData;else{const c=u.children[0];if(c.type!=="elem")throw new Error('First child must have type "elem".');if(u.positionType==="shift")a=-c.elem.depth-u.positionData;else if(u.positionType==="firstBaseline")a=-c.elem.depth;else throw new Error("Invalid positionType "+u.positionType+".")}return{children:u.children,depth:a}},Xs=function(u,a){const{children:c,depth:p}=Ks(u);let b=0;for(let Le=0;Le<c.length;Le++){const Ke=c[Le];if(Ke.type==="elem"){const st=Ke.elem;b=Math.max(b,st.maxFontSize,st.height)}}b+=2;const k=xn(["pstrut"],[]);k.style.height=ze(b);const R=[];let B=p,V=p,Q=p;for(let Le=0;Le<c.length;Le++){const Ke=c[Le];if(Ke.type==="kern")Q+=Ke.size;else{const st=Ke.elem,ft=Ke.wrapperClasses||[],ct=Ke.wrapperStyle||{},ht=xn(ft,[k,st],void 0,ct);ht.style.top=ze(-b-Q-st.depth),Ke.marginLeft&&(ht.style.marginLeft=Ke.marginLeft),Ke.marginRight&&(ht.style.marginRight=Ke.marginRight),R.push(ht),Q+=st.height+st.depth}B=Math.min(B,Q),V=Math.max(V,Q)}const _e=xn(["vlist"],R);_e.style.height=ze(V);let Ae;if(B<0){const Le=xn([],[]),Ke=xn(["vlist"],[Le]);Ke.style.height=ze(-B);const st=xn(["vlist-s"],[new En("")]);Ae=[xn(["vlist-r"],[_e,st]),xn(["vlist-r"],[Ke])]}else Ae=[xn(["vlist-r"],[_e])];const xe=xn(["vlist-t"],Ae);return Ae.length===2&&xe.classes.push("vlist-t2"),xe.height=V,xe.depth=-B,xe},Qs=(u,a)=>{const c=xn(["mspace"],[],a),p=qt(u,a);return c.style.marginRight=ze(p),c},Cr=function(u,a,c){let p="";switch(u){case"amsrm":p="AMS";break;case"textrm":p="Main";break;case"textsf":p="SansSerif";break;case"texttt":p="Typewriter";break;default:p=u}let b;return a==="textbf"&&c==="textit"?b="BoldItalic":a==="textbf"?b="Bold":a==="textit"?b="Italic":b="Regular",p+"-"+b},Ni={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ci={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var Se={fontMap:Ni,makeSymbol:Fn,mathsym:zs,makeSpan:xn,makeSvgSpan:Ti,makeLineSpan:Ys,makeAnchor:js,makeFragment:ki,wrapFragment:Ws,makeVList:Xs,makeOrd:Vs,makeGlue:Qs,staticSvg:function(u,a){const[c,p,b]=Ci[u],k=new $n(c),R=new Bn([k],{width:ze(p),height:ze(b),style:"width:"+ze(p),viewBox:"0 0 "+1e3*p+" "+1e3*b,preserveAspectRatio:"xMinYMin"}),B=Ti(["overlay"],[R],a);return B.height=b,B.style.height=ze(b),B.style.width=ze(p),B},svgData:Ci,tryCombineChars:Gs};const sn={number:3,unit:"mu"},lr={number:4,unit:"mu"},Kn={number:5,unit:"mu"},Js={mord:{mop:sn,mbin:lr,mrel:Kn,minner:sn},mop:{mord:sn,mop:sn,mrel:Kn,minner:sn},mbin:{mord:lr,mop:lr,mopen:lr,minner:lr},mrel:{mord:Kn,mop:Kn,mopen:Kn,minner:Kn},mopen:{},mclose:{mop:sn,mbin:lr,mrel:Kn,minner:sn},mpunct:{mord:sn,mop:sn,mrel:Kn,mopen:sn,mclose:sn,mpunct:sn,minner:sn},minner:{mord:sn,mop:sn,mbin:lr,mrel:Kn,mopen:sn,mpunct:sn,minner:sn}},Zs={mord:{mop:sn},mop:{mord:sn,mop:sn},mbin:{},mrel:{},mopen:{},mclose:{mop:sn},mpunct:{},minner:{mop:sn}},Ii={},Ir={},Rr={};function We(u){let{type:a,names:c,props:p,handler:b,htmlBuilder:k,mathmlBuilder:R}=u;const B={type:a,numArgs:p.numArgs,argTypes:p.argTypes,allowedInArgument:!!p.allowedInArgument,allowedInText:!!p.allowedInText,allowedInMath:p.allowedInMath===void 0?!0:p.allowedInMath,numOptionalArgs:p.numOptionalArgs||0,infix:!!p.infix,primitive:!!p.primitive,handler:b};for(let V=0;V<c.length;++V)Ii[c[V]]=B;a&&(k&&(Ir[a]=k),R&&(Rr[a]=R))}function ur(u){let{type:a,htmlBuilder:c,mathmlBuilder:p}=u;We({type:a,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:c,mathmlBuilder:p})}const Dr=function(u){return u.type==="ordgroup"&&u.body.length===1?u.body[0]:u},dn=function(u){return u.type==="ordgroup"?u.body:[u]},Xn=Se.makeSpan,eo=["leftmost","mbin","mopen","mrel","mop","mpunct"],to=["rightmost","mrel","mclose","mpunct"],no={display:Oe.DISPLAY,text:Oe.TEXT,script:Oe.SCRIPT,scriptscript:Oe.SCRIPTSCRIPT},ro={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},hn=function(u,a,c,p){p===void 0&&(p=[null,null]);const b=[];for(let Q=0;Q<u.length;Q++){const _e=kt(u[Q],a);if(_e instanceof _n){const Ae=_e.children;b.push(...Ae)}else b.push(_e)}if(Se.tryCombineChars(b),!c)return b;let k=a;if(u.length===1){const Q=u[0];Q.type==="sizing"?k=a.havingSize(Q.size):Q.type==="styling"&&(k=a.havingStyle(no[Q.style]))}const R=Xn([p[0]||"leftmost"],[],a),B=Xn([p[1]||"rightmost"],[],a),V=c==="root";return jr(b,(Q,_e)=>{const Ae=_e.classes[0],xe=Q.classes[0];Ae==="mbin"&&L.contains(to,xe)?_e.classes[0]="mord":xe==="mbin"&&L.contains(eo,Ae)&&(Q.classes[0]="mord")},{node:R},B,V),jr(b,(Q,_e)=>{const Ae=Kr(_e),xe=Kr(Q),Le=Ae&&xe?Q.hasClass("mtight")?Zs[Ae][xe]:Js[Ae][xe]:null;if(Le)return Se.makeGlue(Le,k)},{node:R},B,V),b},jr=function(u,a,c,p,b){p&&u.push(p);let k=0;for(;k<u.length;k++){const R=u[k],B=Ri(R);if(B){jr(B.children,a,c,null,b);continue}const V=!R.hasClass("mspace");if(V){const Q=a(R,c.node);Q&&(c.insertAfter?c.insertAfter(Q):(u.unshift(Q),k++))}V?c.node=R:b&&R.hasClass("newline")&&(c.node=Xn(["leftmost"])),c.insertAfter=(Q=>_e=>{u.splice(Q+1,0,_e),k++})(k)}p&&u.pop()},Ri=function(u){return u instanceof _n||u instanceof or||u instanceof sr&&u.hasClass("enclosing")?u:null},Wr=function(u,a){const c=Ri(u);if(c){const p=c.children;if(p.length){if(a==="right")return Wr(p[p.length-1],"right");if(a==="left")return Wr(p[0],"left")}}return u},Kr=function(u,a){return u?(a&&(u=Wr(u,a)),ro[u.classes[0]]||null):null},yr=function(u,a){const c=["nulldelimiter"].concat(u.baseSizingClasses());return Xn(a.concat(c))},kt=function(u,a,c){if(!u)return Xn();if(Ir[u.type]){let p=Ir[u.type](u,a);if(c&&a.size!==c.size){p=Xn(a.sizingClasses(c),[p],a);const b=a.sizeMultiplier/c.sizeMultiplier;p.height*=b,p.depth*=b}return p}else throw new s("Got group of unknown type: '"+u.type+"'")};function Or(u,a){const c=Xn(["base"],u,a),p=Xn(["strut"]);return p.style.height=ze(c.height+c.depth),c.depth&&(p.style.verticalAlign=ze(-c.depth)),c.children.unshift(p),c}function Xr(u,a){let c=null;u.length===1&&u[0].type==="tag"&&(c=u[0].tag,u=u[0].body);const p=hn(u,a,"root");let b;p.length===2&&p[1].hasClass("tag")&&(b=p.pop());const k=[];let R=[];for(let Q=0;Q<p.length;Q++)if(R.push(p[Q]),p[Q].hasClass("mbin")||p[Q].hasClass("mrel")||p[Q].hasClass("allowbreak")){let _e=!1;for(;Q<p.length-1&&p[Q+1].hasClass("mspace")&&!p[Q+1].hasClass("newline");)Q++,R.push(p[Q]),p[Q].hasClass("nobreak")&&(_e=!0);_e||(k.push(Or(R,a)),R=[])}else p[Q].hasClass("newline")&&(R.pop(),R.length>0&&(k.push(Or(R,a)),R=[]),k.push(p[Q]));R.length>0&&k.push(Or(R,a));let B;c?(B=Or(hn(c,a,!0)),B.classes=["tag"],k.push(B)):b&&k.push(b);const V=Xn(["katex-html"],k);if(V.setAttribute("aria-hidden","true"),B){const Q=B.children[0];Q.style.height=ze(V.height+V.depth),V.depth&&(Q.style.verticalAlign=ze(-V.depth))}return V}function Di(u){return new _n(u)}class Nn{constructor(a,c,p){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=a,this.attributes={},this.children=c||[],this.classes=p||[]}setAttribute(a,c){this.attributes[a]=c}getAttribute(a){return this.attributes[a]}toNode(){const a=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&a.setAttribute(c,this.attributes[c]);this.classes.length>0&&(a.className=gn(this.classes));for(let c=0;c<this.children.length;c++)if(this.children[c]instanceof zn&&this.children[c+1]instanceof zn){let p=this.children[c].toText()+this.children[++c].toText();for(;this.children[c+1]instanceof zn;)p+=this.children[++c].toText();a.appendChild(new zn(p).toNode())}else a.appendChild(this.children[c].toNode());return a}toMarkup(){let a="<"+this.type;for(const c in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,c)&&(a+=" "+c+'="',a+=L.escape(this.attributes[c]),a+='"');this.classes.length>0&&(a+=' class ="'+L.escape(gn(this.classes))+'"'),a+=">";for(let c=0;c<this.children.length;c++)a+=this.children[c].toMarkup();return a+="</"+this.type+">",a}toText(){return this.children.map(a=>a.toText()).join("")}}class zn{constructor(a){this.text=void 0,this.text=a}toNode(){return document.createTextNode(this.text)}toMarkup(){return L.escape(this.toText())}toText(){return this.text}}class io{constructor(a){this.width=void 0,this.character=void 0,this.width=a,a>=.05555&&a<=.05556?this.character=" ":a>=.1666&&a<=.1667?this.character=" ":a>=.2222&&a<=.2223?this.character=" ":a>=.2777&&a<=.2778?this.character=" ":a>=-.05556&&a<=-.05555?this.character=" ":a>=-.1667&&a<=-.1666?this.character=" ":a>=-.2223&&a<=-.2222?this.character=" ":a>=-.2778&&a<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);{const a=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return a.setAttribute("width",ze(this.width)),a}}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ze(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Pe={MathNode:Nn,TextNode:zn,SpaceNode:io,newDocumentFragment:Di};const Rn=function(u,a,c){return tn[a][u]&&tn[a][u].replace&&u.charCodeAt(0)!==55349&&!(Vt.hasOwnProperty(u)&&c&&(c.fontFamily&&c.fontFamily.slice(4,6)==="tt"||c.font&&c.font.slice(4,6)==="tt"))&&(u=tn[a][u].replace),new Pe.TextNode(u)},Qr=function(u){return u.length===1?u[0]:new Pe.MathNode("mrow",u)},Jr=function(u,a){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold";const c=a.font;if(!c||c==="mathnormal")return null;const p=u.mode;if(c==="mathit")return"italic";if(c==="boldsymbol")return u.type==="textord"?"bold":"bold-italic";if(c==="mathbf")return"bold";if(c==="mathbb")return"double-struck";if(c==="mathsfit")return"sans-serif-italic";if(c==="mathfrak")return"fraktur";if(c==="mathscr"||c==="mathcal")return"script";if(c==="mathsf")return"sans-serif";if(c==="mathtt")return"monospace";let b=u.text;if(L.contains(["\\imath","\\jmath"],b))return null;tn[p][b]&&tn[p][b].replace&&(b=tn[p][b].replace);const k=Se.fontMap[c].fontName;return yn(b,k,p)?Se.fontMap[c].variant:null};function Zr(u){if(!u)return!1;if(u.type==="mi"&&u.children.length===1){const a=u.children[0];return a instanceof zn&&a.text==="."}else if(u.type==="mo"&&u.children.length===1&&u.getAttribute("separator")==="true"&&u.getAttribute("lspace")==="0em"&&u.getAttribute("rspace")==="0em"){const a=u.children[0];return a instanceof zn&&a.text===","}else return!1}const vn=function(u,a,c){if(u.length===1){const k=Kt(u[0],a);return c&&k instanceof Nn&&k.type==="mo"&&(k.setAttribute("lspace","0em"),k.setAttribute("rspace","0em")),[k]}const p=[];let b;for(let k=0;k<u.length;k++){const R=Kt(u[k],a);if(R instanceof Nn&&b instanceof Nn){if(R.type==="mtext"&&b.type==="mtext"&&R.getAttribute("mathvariant")===b.getAttribute("mathvariant")){b.children.push(...R.children);continue}else if(R.type==="mn"&&b.type==="mn"){b.children.push(...R.children);continue}else if(Zr(R)&&b.type==="mn"){b.children.push(...R.children);continue}else if(R.type==="mn"&&Zr(b))R.children=[...b.children,...R.children],p.pop();else if((R.type==="msup"||R.type==="msub")&&R.children.length>=1&&(b.type==="mn"||Zr(b))){const B=R.children[0];B instanceof Nn&&B.type==="mn"&&(B.children=[...b.children,...B.children],p.pop())}else if(b.type==="mi"&&b.children.length===1){const B=b.children[0];if(B instanceof zn&&B.text==="̸"&&(R.type==="mo"||R.type==="mi"||R.type==="mn")){const V=R.children[0];V instanceof zn&&V.text.length>0&&(V.text=V.text.slice(0,1)+"̸"+V.text.slice(1),p.pop())}}}p.push(R),b=R}return p},nr=function(u,a,c){return Qr(vn(u,a,c))},Kt=function(u,a){if(!u)return new Pe.MathNode("mrow");if(Rr[u.type])return Rr[u.type](u,a);throw new s("Got group of unknown type: '"+u.type+"'")};function Oi(u,a,c,p,b){const k=vn(u,c);let R;k.length===1&&k[0]instanceof Nn&&L.contains(["mrow","mtable"],k[0].type)?R=k[0]:R=new Pe.MathNode("mrow",k);const B=new Pe.MathNode("annotation",[new Pe.TextNode(a)]);B.setAttribute("encoding","application/x-tex");const V=new Pe.MathNode("semantics",[R,B]),Q=new Pe.MathNode("math",[V]);Q.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),p&&Q.setAttribute("display","block");const _e=b?"katex":"katex-mathml";return Se.makeSpan([_e],[Q])}const Mi=function(u){return new gt({style:u.displayMode?Oe.DISPLAY:Oe.TEXT,maxSize:u.maxSize,minRuleThickness:u.minRuleThickness})},Li=function(u,a){if(a.displayMode){const c=["katex-display"];a.leqno&&c.push("leqno"),a.fleqn&&c.push("fleqn"),u=Se.makeSpan(c,[u])}return u},so=function(u,a,c){const p=Mi(c);let b;if(c.output==="mathml")return Oi(u,a,p,c.displayMode,!0);if(c.output==="html"){const k=Xr(u,p);b=Se.makeSpan(["katex"],[k])}else{const k=Oi(u,a,p,c.displayMode,!1),R=Xr(u,p);b=Se.makeSpan(["katex"],[k,R])}return Li(b,c)},oo=function(u,a,c){const p=Mi(c),b=Xr(u,p),k=Se.makeSpan(["katex"],[b]);return Li(k,c)},ao={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},lo=function(u){const a=new Pe.MathNode("mo",[new Pe.TextNode(ao[u.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},uo={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},co=function(u){return u.type==="ordgroup"?u.body.length:1};var Qn={encloseSpan:function(u,a,c,p,b){let k;const R=u.height+u.depth+c+p;if(/fbox|color|angl/.test(a)){if(k=Se.makeSpan(["stretchy",a],[],b),a==="fbox"){const B=b.color&&b.getColor();B&&(k.style.borderColor=B)}}else{const B=[];/^[bx]cancel$/.test(a)&&B.push(new dr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&B.push(new dr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const V=new Bn(B,{width:"100%",height:ze(R)});k=Se.makeSvgSpan([],[V],b)}return k.height=R,k.style.height=ze(R),k},mathMLnode:lo,svgSpan:function(u,a){function c(){let R=4e5;const B=u.label.slice(1);if(L.contains(["widehat","widecheck","widetilde","utilde"],B)){const Q=co(u.base);let _e,Ae,xe;if(Q>5)B==="widehat"||B==="widecheck"?(_e=420,R=2364,xe=.42,Ae=B+"4"):(_e=312,R=2340,xe=.34,Ae="tilde4");else{const st=[1,1,2,2,3,3][Q];B==="widehat"||B==="widecheck"?(R=[0,1062,2364,2364,2364][st],_e=[0,239,300,360,420][st],xe=[0,.24,.3,.3,.36,.42][st],Ae=B+st):(R=[0,600,1033,2339,2340][st],_e=[0,260,286,306,312][st],xe=[0,.26,.286,.3,.306,.34][st],Ae="tilde"+st)}const Le=new $n(Ae),Ke=new Bn([Le],{width:"100%",height:ze(xe),viewBox:"0 0 "+R+" "+_e,preserveAspectRatio:"none"});return{span:Se.makeSvgSpan([],[Ke],a),minWidth:0,height:xe}}else{const V=[],Q=uo[B],[_e,Ae,xe]=Q,Le=xe/1e3,Ke=_e.length;let st,ft;if(Ke===1){const ct=Q[3];st=["hide-tail"],ft=[ct]}else if(Ke===2)st=["halfarrow-left","halfarrow-right"],ft=["xMinYMin","xMaxYMin"];else if(Ke===3)st=["brace-left","brace-center","brace-right"],ft=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
- `+Ke+" children.");for(let ct=0;ct<Ke;ct++){const ht=new $n(_e[ct]),$t=new Bn([ht],{width:"400em",height:ze(Le),viewBox:"0 0 "+R+" "+xe,preserveAspectRatio:ft[ct]+" slice"}),Jt=Se.makeSvgSpan([st[ct]],[$t],a);if(Ke===1)return{span:Jt,minWidth:Ae,height:Le};Jt.style.height=ze(Le),V.push(Jt)}return{span:Se.makeSpan(["stretchy"],V,a),minWidth:Ae,height:Le}}}const{span:p,minWidth:b,height:k}=c();return p.height=k,p.style.height=ze(k),b>0&&(p.style.minWidth=ze(b)),p}};function ut(u,a){if(!u||u.type!==a)throw new Error("Expected node of type "+a+", but got "+(u?"node of type "+u.type:String(u)));return u}function ei(u){const a=Mr(u);if(!a)throw new Error("Expected node of symbol group type, but got "+(u?"node of type "+u.type:String(u)));return a}function Mr(u){return u&&(u.type==="atom"||kr.hasOwnProperty(u.type))?u:null}const ti=(u,a)=>{let c,p,b;u&&u.type==="supsub"?(p=ut(u.base,"accent"),c=p.base,u.base=c,b=er(kt(u,a)),u.base=p):(p=ut(u,"accent"),c=p.base);const k=kt(c,a.havingCrampedStyle()),R=p.isShifty&&L.isCharacterBox(c);let B=0;if(R){const xe=L.getBaseElem(c),Le=kt(xe,a.havingCrampedStyle());B=br(Le).skew}const V=p.label==="\\c";let Q=V?k.height+k.depth:Math.min(k.height,a.fontMetrics().xHeight),_e;if(p.isStretchy)_e=Qn.svgSpan(p,a),_e=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k},{type:"elem",elem:_e,wrapperClasses:["svg-align"],wrapperStyle:B>0?{width:"calc(100% - "+ze(2*B)+")",marginLeft:ze(2*B)}:void 0}]},a);else{let xe,Le;p.label==="\\vec"?(xe=Se.staticSvg("vec",a),Le=Se.svgData.vec[1]):(xe=Se.makeOrd({mode:p.mode,text:p.label},a,"textord"),xe=br(xe),xe.italic=0,Le=xe.width,V&&(Q+=xe.depth)),_e=Se.makeSpan(["accent-body"],[xe]);const Ke=p.label==="\\textcircled";Ke&&(_e.classes.push("accent-full"),Q=k.height);let st=B;Ke||(st-=Le/2),_e.style.left=ze(st),p.label==="\\textcircled"&&(_e.style.top=".2em"),_e=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k},{type:"kern",size:-Q},{type:"elem",elem:_e}]},a)}const Ae=Se.makeSpan(["mord","accent"],[_e],a);return b?(b.children[0]=Ae,b.height=Math.max(Ae.height,b.height),b.classes[0]="mord",b):Ae},Bi=(u,a)=>{const c=u.isStretchy?Qn.mathMLnode(u.label):new Pe.MathNode("mo",[Rn(u.label,u.mode)]),p=new Pe.MathNode("mover",[Kt(u.base,a),c]);return p.setAttribute("accent","true"),p},fo=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(u=>"\\"+u).join("|"));We({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(u,a)=>{const c=Dr(a[0]),p=!fo.test(u.funcName),b=!p||u.funcName==="\\widehat"||u.funcName==="\\widetilde"||u.funcName==="\\widecheck";return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:p,isShifty:b,base:c}},htmlBuilder:ti,mathmlBuilder:Bi}),We({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(u,a)=>{const c=a[0];let p=u.parser.mode;return p==="math"&&(u.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+u.funcName+" works only in text mode"),p="text"),{type:"accent",mode:p,label:u.funcName,isStretchy:!1,isShifty:!0,base:c}},htmlBuilder:ti,mathmlBuilder:Bi}),We({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(u,a)=>{let{parser:c,funcName:p}=u;const b=a[0];return{type:"accentUnder",mode:c.mode,label:p,base:b}},htmlBuilder:(u,a)=>{const c=kt(u.base,a),p=Qn.svgSpan(u,a),b=u.label==="\\utilde"?.12:0,k=Se.makeVList({positionType:"top",positionData:c.height,children:[{type:"elem",elem:p,wrapperClasses:["svg-align"]},{type:"kern",size:b},{type:"elem",elem:c}]},a);return Se.makeSpan(["mord","accentunder"],[k],a)},mathmlBuilder:(u,a)=>{const c=Qn.mathMLnode(u.label),p=new Pe.MathNode("munder",[Kt(u.base,a),c]);return p.setAttribute("accentunder","true"),p}});const Lr=u=>{const a=new Pe.MathNode("mpadded",u?[u]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};We({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(u,a,c){let{parser:p,funcName:b}=u;return{type:"xArrow",mode:p.mode,label:b,body:a[0],below:c[0]}},htmlBuilder(u,a){const c=a.style;let p=a.havingStyle(c.sup());const b=Se.wrapFragment(kt(u.body,p,a),a),k=u.label.slice(0,2)==="\\x"?"x":"cd";b.classes.push(k+"-arrow-pad");let R;u.below&&(p=a.havingStyle(c.sub()),R=Se.wrapFragment(kt(u.below,p,a),a),R.classes.push(k+"-arrow-pad"));const B=Qn.svgSpan(u,a),V=-a.fontMetrics().axisHeight+.5*B.height;let Q=-a.fontMetrics().axisHeight-.5*B.height-.111;(b.depth>.25||u.label==="\\xleftequilibrium")&&(Q-=b.depth);let _e;if(R){const Ae=-a.fontMetrics().axisHeight+R.height+.5*B.height+.111;_e=Se.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:Q},{type:"elem",elem:B,shift:V},{type:"elem",elem:R,shift:Ae}]},a)}else _e=Se.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:Q},{type:"elem",elem:B,shift:V}]},a);return _e.children[0].children[0].children[1].classes.push("svg-align"),Se.makeSpan(["mrel","x-arrow"],[_e],a)},mathmlBuilder(u,a){const c=Qn.mathMLnode(u.label);c.setAttribute("minsize",u.label.charAt(0)==="x"?"1.75em":"3.0em");let p;if(u.body){const b=Lr(Kt(u.body,a));if(u.below){const k=Lr(Kt(u.below,a));p=new Pe.MathNode("munderover",[c,k,b])}else p=new Pe.MathNode("mover",[c,b])}else if(u.below){const b=Lr(Kt(u.below,a));p=new Pe.MathNode("munder",[c,b])}else p=Lr(),p=new Pe.MathNode("mover",[c,p]);return p}});const ho=Se.makeSpan;function Fi(u,a){const c=hn(u.body,a,!0);return ho([u.mclass],c,a)}function Pi(u,a){let c;const p=vn(u.body,a);return u.mclass==="minner"?c=new Pe.MathNode("mpadded",p):u.mclass==="mord"?u.isCharacterBox?(c=p[0],c.type="mi"):c=new Pe.MathNode("mi",p):(u.isCharacterBox?(c=p[0],c.type="mo"):c=new Pe.MathNode("mo",p),u.mclass==="mbin"?(c.attributes.lspace="0.22em",c.attributes.rspace="0.22em"):u.mclass==="mpunct"?(c.attributes.lspace="0em",c.attributes.rspace="0.17em"):u.mclass==="mopen"||u.mclass==="mclose"?(c.attributes.lspace="0em",c.attributes.rspace="0em"):u.mclass==="minner"&&(c.attributes.lspace="0.0556em",c.attributes.width="+0.1111em")),c}We({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(u,a){let{parser:c,funcName:p}=u;const b=a[0];return{type:"mclass",mode:c.mode,mclass:"m"+p.slice(5),body:dn(b),isCharacterBox:L.isCharacterBox(b)}},htmlBuilder:Fi,mathmlBuilder:Pi});const Br=u=>{const a=u.type==="ordgroup"&&u.body.length?u.body[0]:u;return a.type==="atom"&&(a.family==="bin"||a.family==="rel")?"m"+a.family:"mord"};We({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(u,a){let{parser:c}=u;return{type:"mclass",mode:c.mode,mclass:Br(a[0]),body:dn(a[1]),isCharacterBox:L.isCharacterBox(a[1])}}}),We({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(u,a){let{parser:c,funcName:p}=u;const b=a[1],k=a[0];let R;p!=="\\stackrel"?R=Br(b):R="mrel";const B={type:"op",mode:b.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:p!=="\\stackrel",body:dn(b)},V={type:"supsub",mode:k.mode,base:B,sup:p==="\\underset"?null:k,sub:p==="\\underset"?k:null};return{type:"mclass",mode:c.mode,mclass:R,body:[V],isCharacterBox:L.isCharacterBox(V)}},htmlBuilder:Fi,mathmlBuilder:Pi}),We({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(u,a){let{parser:c}=u;return{type:"pmb",mode:c.mode,mclass:Br(a[0]),body:dn(a[0])}},htmlBuilder(u,a){const c=hn(u.body,a,!0),p=Se.makeSpan([u.mclass],c,a);return p.style.textShadow="0.02em 0.01em 0.04px",p},mathmlBuilder(u,a){const c=vn(u.body,a),p=new Pe.MathNode("mstyle",c);return p.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),p}});const po={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Ui=()=>({type:"styling",body:[],mode:"math",style:"display"}),$i=u=>u.type==="textord"&&u.text==="@",mo=(u,a)=>(u.type==="mathord"||u.type==="atom")&&u.text===a;function go(u,a,c){const p=po[u];switch(p){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return c.callFunction(p,[a[0]],[a[1]]);case"\\uparrow":case"\\downarrow":{const b=c.callFunction("\\\\cdleft",[a[0]],[]),k={type:"atom",text:p,mode:"math",family:"rel"},R=c.callFunction("\\Big",[k],[]),B=c.callFunction("\\\\cdright",[a[1]],[]),V={type:"ordgroup",mode:"math",body:[b,R,B]};return c.callFunction("\\\\cdparent",[V],[])}case"\\\\cdlongequal":return c.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const b={type:"textord",text:"\\Vert",mode:"math"};return c.callFunction("\\Big",[b],[])}default:return{type:"textord",text:" ",mode:"math"}}}function bo(u){const a=[];for(u.gullet.beginGroup(),u.gullet.macros.set("\\cr","\\\\\\relax"),u.gullet.beginGroup();;){a.push(u.parseExpression(!1,"\\\\")),u.gullet.endGroup(),u.gullet.beginGroup();const k=u.fetch().text;if(k==="&"||k==="\\\\")u.consume();else if(k==="\\end"){a[a.length-1].length===0&&a.pop();break}else throw new s("Expected \\\\ or \\cr or \\end",u.nextToken)}let c=[];const p=[c];for(let k=0;k<a.length;k++){const R=a[k];let B=Ui();for(let V=0;V<R.length;V++)if(!$i(R[V]))B.body.push(R[V]);else{c.push(B),V+=1;const Q=ei(R[V]).text,_e=new Array(2);if(_e[0]={type:"ordgroup",mode:"math",body:[]},_e[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(Q)>-1))if("<>AV".indexOf(Q)>-1)for(let Le=0;Le<2;Le++){let Ke=!0;for(let st=V+1;st<R.length;st++){if(mo(R[st],Q)){Ke=!1,V=st;break}if($i(R[st]))throw new s("Missing a "+Q+" character to complete a CD arrow.",R[st]);_e[Le].body.push(R[st])}if(Ke)throw new s("Missing a "+Q+" character to complete a CD arrow.",R[V])}else throw new s('Expected one of "<>AV=|." after @',R[V]);const xe={type:"styling",body:[go(Q,_e,u)],mode:"math",style:"display"};c.push(xe),B=Ui()}k%2===0?c.push(B):c.shift(),c=[],p.push(c)}u.gullet.endGroup(),u.gullet.endGroup();const b=new Array(p[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:p,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(p.length+1).fill([])}}We({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(u,a){let{parser:c,funcName:p}=u;return{type:"cdlabel",mode:c.mode,side:p.slice(4),label:a[0]}},htmlBuilder(u,a){const c=a.havingStyle(a.style.sup()),p=Se.wrapFragment(kt(u.label,c,a),a);return p.classes.push("cd-label-"+u.side),p.style.bottom=ze(.8-p.depth),p.height=0,p.depth=0,p},mathmlBuilder(u,a){let c=new Pe.MathNode("mrow",[Kt(u.label,a)]);return c=new Pe.MathNode("mpadded",[c]),c.setAttribute("width","0"),u.side==="left"&&c.setAttribute("lspace","-1width"),c.setAttribute("voffset","0.7em"),c=new Pe.MathNode("mstyle",[c]),c.setAttribute("displaystyle","false"),c.setAttribute("scriptlevel","1"),c}}),We({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(u,a){let{parser:c}=u;return{type:"cdlabelparent",mode:c.mode,fragment:a[0]}},htmlBuilder(u,a){const c=Se.wrapFragment(kt(u.fragment,a),a);return c.classes.push("cd-vert-arrow"),c},mathmlBuilder(u,a){return new Pe.MathNode("mrow",[Kt(u.fragment,a)])}}),We({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(u,a){let{parser:c}=u;const b=ut(a[0],"ordgroup").body;let k="";for(let V=0;V<b.length;V++){const Q=ut(b[V],"textord");k+=Q.text}let R=parseInt(k),B;if(isNaN(R))throw new s("\\@char has non-numeric argument "+k);if(R<0||R>=1114111)throw new s("\\@char with invalid code point "+k);return R<=65535?B=String.fromCharCode(R):(R-=65536,B=String.fromCharCode((R>>10)+55296,(R&1023)+56320)),{type:"textord",mode:c.mode,text:B}}});const zi=(u,a)=>{const c=hn(u.body,a.withColor(u.color),!1);return Se.makeFragment(c)},qi=(u,a)=>{const c=vn(u.body,a.withColor(u.color)),p=new Pe.MathNode("mstyle",c);return p.setAttribute("mathcolor",u.color),p};We({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(u,a){let{parser:c}=u;const p=ut(a[0],"color-token").color,b=a[1];return{type:"color",mode:c.mode,color:p,body:dn(b)}},htmlBuilder:zi,mathmlBuilder:qi}),We({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(u,a){let{parser:c,breakOnTokenText:p}=u;const b=ut(a[0],"color-token").color;c.gullet.macros.set("\\current@color",b);const k=c.parseExpression(!0,p);return{type:"color",mode:c.mode,color:b,body:k}},htmlBuilder:zi,mathmlBuilder:qi}),We({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(u,a,c){let{parser:p}=u;const b=p.gullet.future().text==="["?p.parseSizeGroup(!0):null,k=!p.settings.displayMode||!p.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:p.mode,newLine:k,size:b&&ut(b,"size").value}},htmlBuilder(u,a){const c=Se.makeSpan(["mspace"],[],a);return u.newLine&&(c.classes.push("newline"),u.size&&(c.style.marginTop=ze(qt(u.size,a)))),c},mathmlBuilder(u,a){const c=new Pe.MathNode("mspace");return u.newLine&&(c.setAttribute("linebreak","newline"),u.size&&c.setAttribute("height",ze(qt(u.size,a)))),c}});const ni={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Vi=u=>{const a=u.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new s("Expected a control sequence",u);return a},_o=u=>{let a=u.gullet.popToken();return a.text==="="&&(a=u.gullet.popToken(),a.text===" "&&(a=u.gullet.popToken())),a},Hi=(u,a,c,p)=>{let b=u.gullet.macros.get(c.text);b==null&&(c.noexpand=!0,b={tokens:[c],numArgs:0,unexpandable:!u.gullet.isExpandable(c.text)}),u.gullet.macros.set(a,b,p)};We({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(u){let{parser:a,funcName:c}=u;a.consumeSpaces();const p=a.fetch();if(ni[p.text])return(c==="\\global"||c==="\\\\globallong")&&(p.text=ni[p.text]),ut(a.parseFunction(),"internal");throw new s("Invalid token after macro prefix",p)}}),We({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(u){let{parser:a,funcName:c}=u,p=a.gullet.popToken();const b=p.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(b))throw new s("Expected a control sequence",p);let k=0,R;const B=[[]];for(;a.gullet.future().text!=="{";)if(p=a.gullet.popToken(),p.text==="#"){if(a.gullet.future().text==="{"){R=a.gullet.future(),B[k].push("{");break}if(p=a.gullet.popToken(),!/^[1-9]$/.test(p.text))throw new s('Invalid argument number "'+p.text+'"');if(parseInt(p.text)!==k+1)throw new s('Argument number "'+p.text+'" out of order');k++,B.push([])}else{if(p.text==="EOF")throw new s("Expected a macro definition");B[k].push(p.text)}let{tokens:V}=a.gullet.consumeArg();return R&&V.unshift(R),(c==="\\edef"||c==="\\xdef")&&(V=a.gullet.expandTokens(V),V.reverse()),a.gullet.macros.set(b,{tokens:V,numArgs:k,delimiters:B},c===ni[c]),{type:"internal",mode:a.mode}}}),We({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(u){let{parser:a,funcName:c}=u;const p=Vi(a.gullet.popToken());a.gullet.consumeSpaces();const b=_o(a);return Hi(a,p,b,c==="\\\\globallet"),{type:"internal",mode:a.mode}}}),We({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(u){let{parser:a,funcName:c}=u;const p=Vi(a.gullet.popToken()),b=a.gullet.popToken(),k=a.gullet.popToken();return Hi(a,p,k,c==="\\\\globalfuture"),a.gullet.pushToken(k),a.gullet.pushToken(b),{type:"internal",mode:a.mode}}});const Er=function(u,a,c){const p=tn.math[u]&&tn.math[u].replace,b=yn(p||u,a,c);if(!b)throw new Error("Unsupported symbol "+u+" and font size "+a+".");return b},ri=function(u,a,c,p){const b=c.havingBaseStyle(a),k=Se.makeSpan(p.concat(b.sizingClasses(c)),[u],c),R=b.sizeMultiplier/c.sizeMultiplier;return k.height*=R,k.depth*=R,k.maxFontSize=b.sizeMultiplier,k},Gi=function(u,a,c){const p=a.havingBaseStyle(c),b=(1-a.sizeMultiplier/p.sizeMultiplier)*a.fontMetrics().axisHeight;u.classes.push("delimcenter"),u.style.top=ze(b),u.height-=b,u.depth+=b},yo=function(u,a,c,p,b,k){const R=Se.makeSymbol(u,"Main-Regular",b,p),B=ri(R,a,p,k);return c&&Gi(B,p,a),B},Eo=function(u,a,c,p){return Se.makeSymbol(u,"Size"+a+"-Regular",c,p)},Yi=function(u,a,c,p,b,k){const R=Eo(u,a,b,p),B=ri(Se.makeSpan(["delimsizing","size"+a],[R],p),Oe.TEXT,p,k);return c&&Gi(B,p,Oe.TEXT),B},ii=function(u,a,c){let p;return a==="Size1-Regular"?p="delim-size1":p="delim-size4",{type:"elem",elem:Se.makeSpan(["delimsizinginner",p],[Se.makeSpan([],[Se.makeSymbol(u,a,c)])])}},si=function(u,a,c){const p=ot["Size4-Regular"][u.charCodeAt(0)]?ot["Size4-Regular"][u.charCodeAt(0)][4]:ot["Size1-Regular"][u.charCodeAt(0)][4],b=new $n("inner",cr(u,Math.round(1e3*a))),k=new Bn([b],{width:ze(p),height:ze(a),style:"width:"+ze(p),viewBox:"0 0 "+1e3*p+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),R=Se.makeSvgSpan([],[k],c);return R.height=a,R.style.height=ze(a),R.style.width=ze(p),{type:"elem",elem:R}},oi=.008,Fr={type:"kern",size:-1*oi},Ao=["|","\\lvert","\\rvert","\\vert"],So=["\\|","\\lVert","\\rVert","\\Vert"],ji=function(u,a,c,p,b,k){let R,B,V,Q,_e="",Ae=0;R=V=Q=u,B=null;let xe="Size1-Regular";u==="\\uparrow"?V=Q="⏐":u==="\\Uparrow"?V=Q="‖":u==="\\downarrow"?R=V="⏐":u==="\\Downarrow"?R=V="‖":u==="\\updownarrow"?(R="\\uparrow",V="⏐",Q="\\downarrow"):u==="\\Updownarrow"?(R="\\Uparrow",V="‖",Q="\\Downarrow"):L.contains(Ao,u)?(V="∣",_e="vert",Ae=333):L.contains(So,u)?(V="∥",_e="doublevert",Ae=556):u==="["||u==="\\lbrack"?(R="⎡",V="⎢",Q="⎣",xe="Size4-Regular",_e="lbrack",Ae=667):u==="]"||u==="\\rbrack"?(R="⎤",V="⎥",Q="⎦",xe="Size4-Regular",_e="rbrack",Ae=667):u==="\\lfloor"||u==="⌊"?(V=R="⎢",Q="⎣",xe="Size4-Regular",_e="lfloor",Ae=667):u==="\\lceil"||u==="⌈"?(R="⎡",V=Q="⎢",xe="Size4-Regular",_e="lceil",Ae=667):u==="\\rfloor"||u==="⌋"?(V=R="⎥",Q="⎦",xe="Size4-Regular",_e="rfloor",Ae=667):u==="\\rceil"||u==="⌉"?(R="⎤",V=Q="⎥",xe="Size4-Regular",_e="rceil",Ae=667):u==="("||u==="\\lparen"?(R="⎛",V="⎜",Q="⎝",xe="Size4-Regular",_e="lparen",Ae=875):u===")"||u==="\\rparen"?(R="⎞",V="⎟",Q="⎠",xe="Size4-Regular",_e="rparen",Ae=875):u==="\\{"||u==="\\lbrace"?(R="⎧",B="⎨",Q="⎩",V="⎪",xe="Size4-Regular"):u==="\\}"||u==="\\rbrace"?(R="⎫",B="⎬",Q="⎭",V="⎪",xe="Size4-Regular"):u==="\\lgroup"||u==="⟮"?(R="⎧",Q="⎩",V="⎪",xe="Size4-Regular"):u==="\\rgroup"||u==="⟯"?(R="⎫",Q="⎭",V="⎪",xe="Size4-Regular"):u==="\\lmoustache"||u==="⎰"?(R="⎧",Q="⎭",V="⎪",xe="Size4-Regular"):(u==="\\rmoustache"||u==="⎱")&&(R="⎫",Q="⎩",V="⎪",xe="Size4-Regular");const Le=Er(R,xe,b),Ke=Le.height+Le.depth,st=Er(V,xe,b),ft=st.height+st.depth,ct=Er(Q,xe,b),ht=ct.height+ct.depth;let $t=0,Jt=1;if(B!==null){const ln=Er(B,xe,b);$t=ln.height+ln.depth,Jt=2}const Sn=Ke+ht+$t,pn=Math.max(0,Math.ceil((a-Sn)/(Jt*ft))),On=Sn+pn*Jt*ft;let mr=p.fontMetrics().axisHeight;c&&(mr*=p.sizeMultiplier);const It=On/2-mr,Gt=[];if(_e.length>0){const ln=On-Ke-ht,on=Math.round(On*1e3),Mn=Ln(_e,Math.round(ln*1e3)),Wo=new $n(_e,Mn),Ps=(Ae/1e3).toFixed(3)+"em",Us=(on/1e3).toFixed(3)+"em",Ko=new Bn([Wo],{width:Ps,height:Us,viewBox:"0 0 "+Ae+" "+on}),qr=Se.makeSvgSpan([],[Ko],p);qr.height=on/1e3,qr.style.width=Ps,qr.style.height=Us,Gt.push({type:"elem",elem:qr})}else{if(Gt.push(ii(Q,xe,b)),Gt.push(Fr),B===null){const ln=On-Ke-ht+2*oi;Gt.push(si(V,ln,p))}else{const ln=(On-Ke-ht-$t)/2+2*oi;Gt.push(si(V,ln,p)),Gt.push(Fr),Gt.push(ii(B,xe,b)),Gt.push(Fr),Gt.push(si(V,ln,p))}Gt.push(Fr),Gt.push(ii(R,xe,b))}const nn=p.havingBaseStyle(Oe.TEXT),rn=Se.makeVList({positionType:"bottom",positionData:It,children:Gt},nn);return ri(Se.makeSpan(["delimsizing","mult"],[rn],nn),Oe.TEXT,p,k)},ai=80,li=.08,ui=function(u,a,c,p,b){const k=Zn(u,p,c),R=new $n(u,k),B=new Bn([R],{width:"400em",height:ze(a),viewBox:"0 0 400000 "+c,preserveAspectRatio:"xMinYMin slice"});return Se.makeSvgSpan(["hide-tail"],[B],b)},wo=function(u,a){const c=a.havingBaseSizing(),p=Qi("\\surd",u*c.sizeMultiplier,Xi,c);let b=c.sizeMultiplier;const k=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness);let R,B=0,V=0,Q=0,_e;return p.type==="small"?(Q=1e3+1e3*k+ai,u<1?b=1:u<1.4&&(b=.7),B=(1+k+li)/b,V=(1+k)/b,R=ui("sqrtMain",B,Q,k,a),R.style.minWidth="0.853em",_e=.833/b):p.type==="large"?(Q=(1e3+ai)*Ar[p.size],V=(Ar[p.size]+k)/b,B=(Ar[p.size]+k+li)/b,R=ui("sqrtSize"+p.size,B,Q,k,a),R.style.minWidth="1.02em",_e=1/b):(B=u+k+li,V=u+k,Q=Math.floor(1e3*u+k)+ai,R=ui("sqrtTall",B,Q,k,a),R.style.minWidth="0.742em",_e=1.056),R.height=V,R.style.height=ze(B),{span:R,advanceWidth:_e,ruleWidth:(a.fontMetrics().sqrtRuleThickness+k)*b}},Wi=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],xo=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Ki=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ar=[0,1.2,1.8,2.4,3],vo=function(u,a,c,p,b){if(u==="<"||u==="\\lt"||u==="⟨"?u="\\langle":(u===">"||u==="\\gt"||u==="⟩")&&(u="\\rangle"),L.contains(Wi,u)||L.contains(Ki,u))return Yi(u,a,!1,c,p,b);if(L.contains(xo,u))return ji(u,Ar[a],!1,c,p,b);throw new s("Illegal delimiter: '"+u+"'")},To=[{type:"small",style:Oe.SCRIPTSCRIPT},{type:"small",style:Oe.SCRIPT},{type:"small",style:Oe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ko=[{type:"small",style:Oe.SCRIPTSCRIPT},{type:"small",style:Oe.SCRIPT},{type:"small",style:Oe.TEXT},{type:"stack"}],Xi=[{type:"small",style:Oe.SCRIPTSCRIPT},{type:"small",style:Oe.SCRIPT},{type:"small",style:Oe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],No=function(u){if(u.type==="small")return"Main-Regular";if(u.type==="large")return"Size"+u.size+"-Regular";if(u.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+u.type+"' here.")},Qi=function(u,a,c,p){const b=Math.min(2,3-p.style.size);for(let k=b;k<c.length&&c[k].type!=="stack";k++){const R=Er(u,No(c[k]),"math");let B=R.height+R.depth;if(c[k].type==="small"){const V=p.havingBaseStyle(c[k].style);B*=V.sizeMultiplier}if(B>a)return c[k]}return c[c.length-1]},Ji=function(u,a,c,p,b,k){u==="<"||u==="\\lt"||u==="⟨"?u="\\langle":(u===">"||u==="\\gt"||u==="⟩")&&(u="\\rangle");let R;L.contains(Ki,u)?R=To:L.contains(Wi,u)?R=Xi:R=ko;const B=Qi(u,a,R,p);return B.type==="small"?yo(u,B.style,c,p,b,k):B.type==="large"?Yi(u,B.size,c,p,b,k):ji(u,a,c,p,b,k)};var Jn={sqrtImage:wo,sizedDelim:vo,sizeToMaxHeight:Ar,customSizedDelim:Ji,leftRightDelim:function(u,a,c,p,b,k){const R=p.fontMetrics().axisHeight*p.sizeMultiplier,B=901,V=5/p.fontMetrics().ptPerEm,Q=Math.max(a-R,c+R),_e=Math.max(Q/500*B,2*Q-V);return Ji(u,_e,!0,p,b,k)}};const Zi={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Co=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Pr(u,a){const c=Mr(u);if(c&&L.contains(Co,c.text))return c;throw c?new s("Invalid delimiter '"+c.text+"' after '"+a.funcName+"'",u):new s("Invalid delimiter type '"+u.type+"'",u)}We({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(u,a)=>{const c=Pr(a[0],u);return{type:"delimsizing",mode:u.parser.mode,size:Zi[u.funcName].size,mclass:Zi[u.funcName].mclass,delim:c.text}},htmlBuilder:(u,a)=>u.delim==="."?Se.makeSpan([u.mclass]):Jn.sizedDelim(u.delim,u.size,a,u.mode,[u.mclass]),mathmlBuilder:u=>{const a=[];u.delim!=="."&&a.push(Rn(u.delim,u.mode));const c=new Pe.MathNode("mo",a);u.mclass==="mopen"||u.mclass==="mclose"?c.setAttribute("fence","true"):c.setAttribute("fence","false"),c.setAttribute("stretchy","true");const p=ze(Jn.sizeToMaxHeight[u.size]);return c.setAttribute("minsize",p),c.setAttribute("maxsize",p),c}});function es(u){if(!u.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}We({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(u,a)=>{const c=u.parser.gullet.macros.get("\\current@color");if(c&&typeof c!="string")throw new s("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:u.parser.mode,delim:Pr(a[0],u).text,color:c}}}),We({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(u,a)=>{const c=Pr(a[0],u),p=u.parser;++p.leftrightDepth;const b=p.parseExpression(!1);--p.leftrightDepth,p.expect("\\right",!1);const k=ut(p.parseFunction(),"leftright-right");return{type:"leftright",mode:p.mode,body:b,left:c.text,right:k.delim,rightColor:k.color}},htmlBuilder:(u,a)=>{es(u);const c=hn(u.body,a,!0,["mopen","mclose"]);let p=0,b=0,k=!1;for(let V=0;V<c.length;V++)c[V].isMiddle?k=!0:(p=Math.max(c[V].height,p),b=Math.max(c[V].depth,b));p*=a.sizeMultiplier,b*=a.sizeMultiplier;let R;if(u.left==="."?R=yr(a,["mopen"]):R=Jn.leftRightDelim(u.left,p,b,a,u.mode,["mopen"]),c.unshift(R),k)for(let V=1;V<c.length;V++){const _e=c[V].isMiddle;_e&&(c[V]=Jn.leftRightDelim(_e.delim,p,b,_e.options,u.mode,[]))}let B;if(u.right===".")B=yr(a,["mclose"]);else{const V=u.rightColor?a.withColor(u.rightColor):a;B=Jn.leftRightDelim(u.right,p,b,V,u.mode,["mclose"])}return c.push(B),Se.makeSpan(["minner"],c,a)},mathmlBuilder:(u,a)=>{es(u);const c=vn(u.body,a);if(u.left!=="."){const p=new Pe.MathNode("mo",[Rn(u.left,u.mode)]);p.setAttribute("fence","true"),c.unshift(p)}if(u.right!=="."){const p=new Pe.MathNode("mo",[Rn(u.right,u.mode)]);p.setAttribute("fence","true"),u.rightColor&&p.setAttribute("mathcolor",u.rightColor),c.push(p)}return Qr(c)}}),We({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(u,a)=>{const c=Pr(a[0],u);if(!u.parser.leftrightDepth)throw new s("\\middle without preceding \\left",c);return{type:"middle",mode:u.parser.mode,delim:c.text}},htmlBuilder:(u,a)=>{let c;if(u.delim===".")c=yr(a,[]);else{c=Jn.sizedDelim(u.delim,1,a,u.mode,[]);const p={delim:u.delim,options:a};c.isMiddle=p}return c},mathmlBuilder:(u,a)=>{const c=u.delim==="\\vert"||u.delim==="|"?Rn("|","text"):Rn(u.delim,u.mode),p=new Pe.MathNode("mo",[c]);return p.setAttribute("fence","true"),p.setAttribute("lspace","0.05em"),p.setAttribute("rspace","0.05em"),p}});const ci=(u,a)=>{const c=Se.wrapFragment(kt(u.body,a),a),p=u.label.slice(1);let b=a.sizeMultiplier,k,R=0;const B=L.isCharacterBox(u.body);if(p==="sout")k=Se.makeSpan(["stretchy","sout"]),k.height=a.fontMetrics().defaultRuleThickness/b,R=-.5*a.fontMetrics().xHeight;else if(p==="phase"){const Q=qt({number:.6,unit:"pt"},a),_e=qt({number:.35,unit:"ex"},a),Ae=a.havingBaseSizing();b=b/Ae.sizeMultiplier;const xe=c.height+c.depth+Q+_e;c.style.paddingLeft=ze(xe/2+Q);const Le=Math.floor(1e3*xe*b),Ke=Yn(Le),st=new Bn([new $n("phase",Ke)],{width:"400em",height:ze(Le/1e3),viewBox:"0 0 400000 "+Le,preserveAspectRatio:"xMinYMin slice"});k=Se.makeSvgSpan(["hide-tail"],[st],a),k.style.height=ze(xe),R=c.depth+Q+_e}else{/cancel/.test(p)?B||c.classes.push("cancel-pad"):p==="angl"?c.classes.push("anglpad"):c.classes.push("boxpad");let Q=0,_e=0,Ae=0;/box/.test(p)?(Ae=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness),Q=a.fontMetrics().fboxsep+(p==="colorbox"?0:Ae),_e=Q):p==="angl"?(Ae=Math.max(a.fontMetrics().defaultRuleThickness,a.minRuleThickness),Q=4*Ae,_e=Math.max(0,.25-c.depth)):(Q=B?.2:0,_e=Q),k=Qn.encloseSpan(c,p,Q,_e,a),/fbox|boxed|fcolorbox/.test(p)?(k.style.borderStyle="solid",k.style.borderWidth=ze(Ae)):p==="angl"&&Ae!==.049&&(k.style.borderTopWidth=ze(Ae),k.style.borderRightWidth=ze(Ae)),R=c.depth+_e,u.backgroundColor&&(k.style.backgroundColor=u.backgroundColor,u.borderColor&&(k.style.borderColor=u.borderColor))}let V;if(u.backgroundColor)V=Se.makeVList({positionType:"individualShift",children:[{type:"elem",elem:k,shift:R},{type:"elem",elem:c,shift:0}]},a);else{const Q=/cancel|phase/.test(p)?["svg-align"]:[];V=Se.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:k,shift:R,wrapperClasses:Q}]},a)}return/cancel/.test(p)&&(V.height=c.height,V.depth=c.depth),/cancel/.test(p)&&!B?Se.makeSpan(["mord","cancel-lap"],[V],a):Se.makeSpan(["mord"],[V],a)},di=(u,a)=>{let c=0;const p=new Pe.MathNode(u.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Kt(u.body,a)]);switch(u.label){case"\\cancel":p.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":p.setAttribute("notation","downdiagonalstrike");break;case"\\phase":p.setAttribute("notation","phasorangle");break;case"\\sout":p.setAttribute("notation","horizontalstrike");break;case"\\fbox":p.setAttribute("notation","box");break;case"\\angl":p.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(c=a.fontMetrics().fboxsep*a.fontMetrics().ptPerEm,p.setAttribute("width","+"+2*c+"pt"),p.setAttribute("height","+"+2*c+"pt"),p.setAttribute("lspace",c+"pt"),p.setAttribute("voffset",c+"pt"),u.label==="\\fcolorbox"){const b=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness);p.setAttribute("style","border: "+b+"em solid "+String(u.borderColor))}break;case"\\xcancel":p.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return u.backgroundColor&&p.setAttribute("mathbackground",u.backgroundColor),p};We({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(u,a,c){let{parser:p,funcName:b}=u;const k=ut(a[0],"color-token").color,R=a[1];return{type:"enclose",mode:p.mode,label:b,backgroundColor:k,body:R}},htmlBuilder:ci,mathmlBuilder:di}),We({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(u,a,c){let{parser:p,funcName:b}=u;const k=ut(a[0],"color-token").color,R=ut(a[1],"color-token").color,B=a[2];return{type:"enclose",mode:p.mode,label:b,backgroundColor:R,borderColor:k,body:B}},htmlBuilder:ci,mathmlBuilder:di}),We({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(u,a){let{parser:c}=u;return{type:"enclose",mode:c.mode,label:"\\fbox",body:a[0]}}}),We({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(u,a){let{parser:c,funcName:p}=u;const b=a[0];return{type:"enclose",mode:c.mode,label:p,body:b}},htmlBuilder:ci,mathmlBuilder:di}),We({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(u,a){let{parser:c}=u;return{type:"enclose",mode:c.mode,label:"\\angl",body:a[0]}}});const ts={};function qn(u){let{type:a,names:c,props:p,handler:b,htmlBuilder:k,mathmlBuilder:R}=u;const B={type:a,numArgs:p.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:b};for(let V=0;V<c.length;++V)ts[c[V]]=B;k&&(Ir[a]=k),R&&(Rr[a]=R)}const ns={};function F(u,a){ns[u]=a}class Cn{constructor(a,c,p){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=a,this.start=c,this.end=p}static range(a,c){return c?!a||!a.loc||!c.loc||a.loc.lexer!==c.loc.lexer?null:new Cn(a.loc.lexer,a.loc.start,c.loc.end):a&&a.loc}}class Dn{constructor(a,c){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=a,this.loc=c}range(a,c){return new Dn(c,Cn.range(this,a))}}function rs(u){const a=[];u.consumeSpaces();let c=u.fetch().text;for(c==="\\relax"&&(u.consume(),u.consumeSpaces(),c=u.fetch().text);c==="\\hline"||c==="\\hdashline";)u.consume(),a.push(c==="\\hdashline"),u.consumeSpaces(),c=u.fetch().text;return a}const Ur=u=>{if(!u.parser.settings.displayMode)throw new s("{"+u.envName+"} can be used only in display mode.")};function fi(u){if(u.indexOf("ed")===-1)return u.indexOf("*")===-1}function rr(u,a,c){let{hskipBeforeAndAfter:p,addJot:b,cols:k,arraystretch:R,colSeparationType:B,autoTag:V,singleRow:Q,emptySingleRow:_e,maxNumCols:Ae,leqno:xe}=a;if(u.gullet.beginGroup(),Q||u.gullet.macros.set("\\cr","\\\\\\relax"),!R){const Jt=u.gullet.expandMacroAsText("\\arraystretch");if(Jt==null)R=1;else if(R=parseFloat(Jt),!R||R<0)throw new s("Invalid \\arraystretch: "+Jt)}u.gullet.beginGroup();let Le=[];const Ke=[Le],st=[],ft=[],ct=V!=null?[]:void 0;function ht(){V&&u.gullet.macros.set("\\@eqnsw","1",!0)}function $t(){ct&&(u.gullet.macros.get("\\df@tag")?(ct.push(u.subparse([new Dn("\\df@tag")])),u.gullet.macros.set("\\df@tag",void 0,!0)):ct.push(!!V&&u.gullet.macros.get("\\@eqnsw")==="1"))}for(ht(),ft.push(rs(u));;){let Jt=u.parseExpression(!1,Q?"\\end":"\\\\");u.gullet.endGroup(),u.gullet.beginGroup(),Jt={type:"ordgroup",mode:u.mode,body:Jt},c&&(Jt={type:"styling",mode:u.mode,style:c,body:[Jt]}),Le.push(Jt);const Sn=u.fetch().text;if(Sn==="&"){if(Ae&&Le.length===Ae){if(Q||B)throw new s("Too many tab characters: &",u.nextToken);u.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}u.consume()}else if(Sn==="\\end"){$t(),Le.length===1&&Jt.type==="styling"&&Jt.body[0].body.length===0&&(Ke.length>1||!_e)&&Ke.pop(),ft.length<Ke.length+1&&ft.push([]);break}else if(Sn==="\\\\"){u.consume();let pn;u.gullet.future().text!==" "&&(pn=u.parseSizeGroup(!0)),st.push(pn?pn.value:null),$t(),ft.push(rs(u)),Le=[],Ke.push(Le),ht()}else throw new s("Expected & or \\\\ or \\cr or \\end",u.nextToken)}return u.gullet.endGroup(),u.gullet.endGroup(),{type:"array",mode:u.mode,addJot:b,arraystretch:R,body:Ke,cols:k,rowGaps:st,hskipBeforeAndAfter:p,hLinesBeforeRow:ft,colSeparationType:B,tags:ct,leqno:xe}}function hi(u){return u.slice(0,1)==="d"?"display":"text"}const Vn=function(u,a){let c,p;const b=u.body.length,k=u.hLinesBeforeRow;let R=0,B=new Array(b);const V=[],Q=Math.max(a.fontMetrics().arrayRuleWidth,a.minRuleThickness),_e=1/a.fontMetrics().ptPerEm;let Ae=5*_e;u.colSeparationType&&u.colSeparationType==="small"&&(Ae=.2778*(a.havingStyle(Oe.SCRIPT).sizeMultiplier/a.sizeMultiplier));const xe=u.colSeparationType==="CD"?qt({number:3,unit:"ex"},a):12*_e,Le=3*_e,Ke=u.arraystretch*xe,st=.7*Ke,ft=.3*Ke;let ct=0;function ht(It){for(let Gt=0;Gt<It.length;++Gt)Gt>0&&(ct+=.25),V.push({pos:ct,isDashed:It[Gt]})}for(ht(k[0]),c=0;c<u.body.length;++c){const It=u.body[c];let Gt=st,nn=ft;R<It.length&&(R=It.length);const rn=new Array(It.length);for(p=0;p<It.length;++p){const Mn=kt(It[p],a);nn<Mn.depth&&(nn=Mn.depth),Gt<Mn.height&&(Gt=Mn.height),rn[p]=Mn}const ln=u.rowGaps[c];let on=0;ln&&(on=qt(ln,a),on>0&&(on+=ft,nn<on&&(nn=on),on=0)),u.addJot&&(nn+=Le),rn.height=Gt,rn.depth=nn,ct+=Gt,rn.pos=ct,ct+=nn+on,B[c]=rn,ht(k[c+1])}const $t=ct/2+a.fontMetrics().axisHeight,Jt=u.cols||[],Sn=[];let pn,On;const mr=[];if(u.tags&&u.tags.some(It=>It))for(c=0;c<b;++c){const It=B[c],Gt=It.pos-$t,nn=u.tags[c];let rn;nn===!0?rn=Se.makeSpan(["eqn-num"],[],a):nn===!1?rn=Se.makeSpan([],[],a):rn=Se.makeSpan([],hn(nn,a,!0),a),rn.depth=It.depth,rn.height=It.height,mr.push({type:"elem",elem:rn,shift:Gt})}for(p=0,On=0;p<R||On<Jt.length;++p,++On){let It=Jt[On]||{},Gt=!0;for(;It.type==="separator";){if(Gt||(pn=Se.makeSpan(["arraycolsep"],[]),pn.style.width=ze(a.fontMetrics().doubleRuleSep),Sn.push(pn)),It.separator==="|"||It.separator===":"){const ln=It.separator==="|"?"solid":"dashed",on=Se.makeSpan(["vertical-separator"],[],a);on.style.height=ze(ct),on.style.borderRightWidth=ze(Q),on.style.borderRightStyle=ln,on.style.margin="0 "+ze(-Q/2);const Mn=ct-$t;Mn&&(on.style.verticalAlign=ze(-Mn)),Sn.push(on)}else throw new s("Invalid separator type: "+It.separator);On++,It=Jt[On]||{},Gt=!1}if(p>=R)continue;let nn;(p>0||u.hskipBeforeAndAfter)&&(nn=L.deflt(It.pregap,Ae),nn!==0&&(pn=Se.makeSpan(["arraycolsep"],[]),pn.style.width=ze(nn),Sn.push(pn)));let rn=[];for(c=0;c<b;++c){const ln=B[c],on=ln[p];if(!on)continue;const Mn=ln.pos-$t;on.depth=ln.depth,on.height=ln.height,rn.push({type:"elem",elem:on,shift:Mn})}rn=Se.makeVList({positionType:"individualShift",children:rn},a),rn=Se.makeSpan(["col-align-"+(It.align||"c")],[rn]),Sn.push(rn),(p<R-1||u.hskipBeforeAndAfter)&&(nn=L.deflt(It.postgap,Ae),nn!==0&&(pn=Se.makeSpan(["arraycolsep"],[]),pn.style.width=ze(nn),Sn.push(pn)))}if(B=Se.makeSpan(["mtable"],Sn),V.length>0){const It=Se.makeLineSpan("hline",a,Q),Gt=Se.makeLineSpan("hdashline",a,Q),nn=[{type:"elem",elem:B,shift:0}];for(;V.length>0;){const rn=V.pop(),ln=rn.pos-$t;rn.isDashed?nn.push({type:"elem",elem:Gt,shift:ln}):nn.push({type:"elem",elem:It,shift:ln})}B=Se.makeVList({positionType:"individualShift",children:nn},a)}if(mr.length===0)return Se.makeSpan(["mord"],[B],a);{let It=Se.makeVList({positionType:"individualShift",children:mr},a);return It=Se.makeSpan(["tag"],[It],a),Se.makeFragment([B,It])}},Io={c:"center ",l:"left ",r:"right "},Hn=function(u,a){const c=[],p=new Pe.MathNode("mtd",[],["mtr-glue"]),b=new Pe.MathNode("mtd",[],["mml-eqn-num"]);for(let Ae=0;Ae<u.body.length;Ae++){const xe=u.body[Ae],Le=[];for(let Ke=0;Ke<xe.length;Ke++)Le.push(new Pe.MathNode("mtd",[Kt(xe[Ke],a)]));u.tags&&u.tags[Ae]&&(Le.unshift(p),Le.push(p),u.leqno?Le.unshift(b):Le.push(b)),c.push(new Pe.MathNode("mtr",Le))}let k=new Pe.MathNode("mtable",c);const R=u.arraystretch===.5?.1:.16+u.arraystretch-1+(u.addJot?.09:0);k.setAttribute("rowspacing",ze(R));let B="",V="";if(u.cols&&u.cols.length>0){const Ae=u.cols;let xe="",Le=!1,Ke=0,st=Ae.length;Ae[0].type==="separator"&&(B+="top ",Ke=1),Ae[Ae.length-1].type==="separator"&&(B+="bottom ",st-=1);for(let ft=Ke;ft<st;ft++)Ae[ft].type==="align"?(V+=Io[Ae[ft].align],Le&&(xe+="none "),Le=!0):Ae[ft].type==="separator"&&Le&&(xe+=Ae[ft].separator==="|"?"solid ":"dashed ",Le=!1);k.setAttribute("columnalign",V.trim()),/[sd]/.test(xe)&&k.setAttribute("columnlines",xe.trim())}if(u.colSeparationType==="align"){const Ae=u.cols||[];let xe="";for(let Le=1;Le<Ae.length;Le++)xe+=Le%2?"0em ":"1em ";k.setAttribute("columnspacing",xe.trim())}else u.colSeparationType==="alignat"||u.colSeparationType==="gather"?k.setAttribute("columnspacing","0em"):u.colSeparationType==="small"?k.setAttribute("columnspacing","0.2778em"):u.colSeparationType==="CD"?k.setAttribute("columnspacing","0.5em"):k.setAttribute("columnspacing","1em");let Q="";const _e=u.hLinesBeforeRow;B+=_e[0].length>0?"left ":"",B+=_e[_e.length-1].length>0?"right ":"";for(let Ae=1;Ae<_e.length-1;Ae++)Q+=_e[Ae].length===0?"none ":_e[Ae][0]?"dashed ":"solid ";return/[sd]/.test(Q)&&k.setAttribute("rowlines",Q.trim()),B!==""&&(k=new Pe.MathNode("menclose",[k]),k.setAttribute("notation",B.trim())),u.arraystretch&&u.arraystretch<1&&(k=new Pe.MathNode("mstyle",[k]),k.setAttribute("scriptlevel","1")),k},ss=function(u,a){u.envName.indexOf("ed")===-1&&Ur(u);const c=[],p=u.envName.indexOf("at")>-1?"alignat":"align",b=u.envName==="split",k=rr(u.parser,{cols:c,addJot:!0,autoTag:b?void 0:fi(u.envName),emptySingleRow:!0,colSeparationType:p,maxNumCols:b?2:void 0,leqno:u.parser.settings.leqno},"display");let R,B=0;const V={type:"ordgroup",mode:u.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){let _e="";for(let Ae=0;Ae<a[0].body.length;Ae++){const xe=ut(a[0].body[Ae],"textord");_e+=xe.text}R=Number(_e),B=R*2}const Q=!B;k.body.forEach(function(_e){for(let Ae=1;Ae<_e.length;Ae+=2){const xe=ut(_e[Ae],"styling");ut(xe.body[0],"ordgroup").body.unshift(V)}if(Q)B<_e.length&&(B=_e.length);else{const Ae=_e.length/2;if(R<Ae)throw new s("Too many math in a row: "+("expected "+R+", but got "+Ae),_e[0])}});for(let _e=0;_e<B;++_e){let Ae="r",xe=0;_e%2===1?Ae="l":_e>0&&Q&&(xe=1),c[_e]={type:"align",align:Ae,pregap:xe,postgap:0}}return k.colSeparationType=Q?"align":"alignat",k};qn({type:"array",names:["array","darray"],props:{numArgs:1},handler(u,a){const b=(Mr(a[0])?[a[0]]:ut(a[0],"ordgroup").body).map(function(R){const V=ei(R).text;if("lcr".indexOf(V)!==-1)return{type:"align",align:V};if(V==="|")return{type:"separator",separator:"|"};if(V===":")return{type:"separator",separator:":"};throw new s("Unknown column alignment: "+V,R)}),k={cols:b,hskipBeforeAndAfter:!0,maxNumCols:b.length};return rr(u.parser,k,hi(u.envName))},htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(u){const a={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[u.envName.replace("*","")];let c="c";const p={hskipBeforeAndAfter:!1,cols:[{type:"align",align:c}]};if(u.envName.charAt(u.envName.length-1)==="*"){const R=u.parser;if(R.consumeSpaces(),R.fetch().text==="["){if(R.consume(),R.consumeSpaces(),c=R.fetch().text,"lcr".indexOf(c)===-1)throw new s("Expected l or c or r",R.nextToken);R.consume(),R.consumeSpaces(),R.expect("]"),R.consume(),p.cols=[{type:"align",align:c}]}}const b=rr(u.parser,p,hi(u.envName)),k=Math.max(0,...b.body.map(R=>R.length));return b.cols=new Array(k).fill({type:"align",align:c}),a?{type:"leftright",mode:u.mode,body:[b],left:a[0],right:a[1],rightColor:void 0}:b},htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(u){const a={arraystretch:.5},c=rr(u.parser,a,"script");return c.colSeparationType="small",c},htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["subarray"],props:{numArgs:1},handler(u,a){const b=(Mr(a[0])?[a[0]]:ut(a[0],"ordgroup").body).map(function(R){const V=ei(R).text;if("lc".indexOf(V)!==-1)return{type:"align",align:V};throw new s("Unknown column alignment: "+V,R)});if(b.length>1)throw new s("{subarray} can contain only one column");let k={cols:b,hskipBeforeAndAfter:!1,arraystretch:.5};if(k=rr(u.parser,k,"script"),k.body.length>0&&k.body[0].length>1)throw new s("{subarray} can contain only one column");return k},htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(u){const a={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},c=rr(u.parser,a,hi(u.envName));return{type:"leftright",mode:u.mode,body:[c],left:u.envName.indexOf("r")>-1?".":"\\{",right:u.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ss,htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(u){L.contains(["gather","gather*"],u.envName)&&Ur(u);const a={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:fi(u.envName),emptySingleRow:!0,leqno:u.parser.settings.leqno};return rr(u.parser,a,"display")},htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ss,htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(u){Ur(u);const a={autoTag:fi(u.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:u.parser.settings.leqno};return rr(u.parser,a,"display")},htmlBuilder:Vn,mathmlBuilder:Hn}),qn({type:"array",names:["CD"],props:{numArgs:0},handler(u){return Ur(u),bo(u.parser)},htmlBuilder:Vn,mathmlBuilder:Hn}),F("\\nonumber","\\gdef\\@eqnsw{0}"),F("\\notag","\\nonumber"),We({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(u,a){throw new s(u.funcName+" valid only within array environment")}});var os=ts;We({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(u,a){let{parser:c,funcName:p}=u;const b=a[0];if(b.type!=="ordgroup")throw new s("Invalid environment name",b);let k="";for(let R=0;R<b.body.length;++R)k+=ut(b.body[R],"textord").text;if(p==="\\begin"){if(!os.hasOwnProperty(k))throw new s("No such environment: "+k,b);const R=os[k],{args:B,optArgs:V}=c.parseArguments("\\begin{"+k+"}",R),Q={mode:c.mode,envName:k,parser:c},_e=R.handler(Q,B,V);c.expect("\\end",!1);const Ae=c.nextToken,xe=ut(c.parseFunction(),"environment");if(xe.name!==k)throw new s("Mismatch: \\begin{"+k+"} matched by \\end{"+xe.name+"}",Ae);return _e}return{type:"environment",mode:c.mode,name:k,nameGroup:b}}});const as=(u,a)=>{const c=u.font,p=a.withFont(c);return kt(u.body,p)},ls=(u,a)=>{const c=u.font,p=a.withFont(c);return Kt(u.body,p)},us={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};We({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(u,a)=>{let{parser:c,funcName:p}=u;const b=Dr(a[0]);let k=p;return k in us&&(k=us[k]),{type:"font",mode:c.mode,font:k.slice(1),body:b}},htmlBuilder:as,mathmlBuilder:ls}),We({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(u,a)=>{let{parser:c}=u;const p=a[0],b=L.isCharacterBox(p);return{type:"mclass",mode:c.mode,mclass:Br(p),body:[{type:"font",mode:c.mode,font:"boldsymbol",body:p}],isCharacterBox:b}}}),We({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(u,a)=>{let{parser:c,funcName:p,breakOnTokenText:b}=u;const{mode:k}=c,R=c.parseExpression(!0,b),B="math"+p.slice(1);return{type:"font",mode:k,font:B,body:{type:"ordgroup",mode:c.mode,body:R}}},htmlBuilder:as,mathmlBuilder:ls});const cs=(u,a)=>{let c=a;return u==="display"?c=c.id>=Oe.SCRIPT.id?c.text():Oe.DISPLAY:u==="text"&&c.size===Oe.DISPLAY.size?c=Oe.TEXT:u==="script"?c=Oe.SCRIPT:u==="scriptscript"&&(c=Oe.SCRIPTSCRIPT),c},mi=(u,a)=>{const c=cs(u.size,a.style),p=c.fracNum(),b=c.fracDen();let k;k=a.havingStyle(p);const R=kt(u.numer,k,a);if(u.continued){const ht=8.5/a.fontMetrics().ptPerEm,$t=3.5/a.fontMetrics().ptPerEm;R.height=R.height<ht?ht:R.height,R.depth=R.depth<$t?$t:R.depth}k=a.havingStyle(b);const B=kt(u.denom,k,a);let V,Q,_e;u.hasBarLine?(u.barSize?(Q=qt(u.barSize,a),V=Se.makeLineSpan("frac-line",a,Q)):V=Se.makeLineSpan("frac-line",a),Q=V.height,_e=V.height):(V=null,Q=0,_e=a.fontMetrics().defaultRuleThickness);let Ae,xe,Le;c.size===Oe.DISPLAY.size||u.size==="display"?(Ae=a.fontMetrics().num1,Q>0?xe=3*_e:xe=7*_e,Le=a.fontMetrics().denom1):(Q>0?(Ae=a.fontMetrics().num2,xe=_e):(Ae=a.fontMetrics().num3,xe=3*_e),Le=a.fontMetrics().denom2);let Ke;if(V){const ht=a.fontMetrics().axisHeight;Ae-R.depth-(ht+.5*Q)<xe&&(Ae+=xe-(Ae-R.depth-(ht+.5*Q))),ht-.5*Q-(B.height-Le)<xe&&(Le+=xe-(ht-.5*Q-(B.height-Le)));const $t=-(ht-.5*Q);Ke=Se.makeVList({positionType:"individualShift",children:[{type:"elem",elem:B,shift:Le},{type:"elem",elem:V,shift:$t},{type:"elem",elem:R,shift:-Ae}]},a)}else{const ht=Ae-R.depth-(B.height-Le);ht<xe&&(Ae+=.5*(xe-ht),Le+=.5*(xe-ht)),Ke=Se.makeVList({positionType:"individualShift",children:[{type:"elem",elem:B,shift:Le},{type:"elem",elem:R,shift:-Ae}]},a)}k=a.havingStyle(c),Ke.height*=k.sizeMultiplier/a.sizeMultiplier,Ke.depth*=k.sizeMultiplier/a.sizeMultiplier;let st;c.size===Oe.DISPLAY.size?st=a.fontMetrics().delim1:c.size===Oe.SCRIPTSCRIPT.size?st=a.havingStyle(Oe.SCRIPT).fontMetrics().delim2:st=a.fontMetrics().delim2;let ft,ct;return u.leftDelim==null?ft=yr(a,["mopen"]):ft=Jn.customSizedDelim(u.leftDelim,st,!0,a.havingStyle(c),u.mode,["mopen"]),u.continued?ct=Se.makeSpan([]):u.rightDelim==null?ct=yr(a,["mclose"]):ct=Jn.customSizedDelim(u.rightDelim,st,!0,a.havingStyle(c),u.mode,["mclose"]),Se.makeSpan(["mord"].concat(k.sizingClasses(a)),[ft,Se.makeSpan(["mfrac"],[Ke]),ct],a)},gi=(u,a)=>{let c=new Pe.MathNode("mfrac",[Kt(u.numer,a),Kt(u.denom,a)]);if(!u.hasBarLine)c.setAttribute("linethickness","0px");else if(u.barSize){const b=qt(u.barSize,a);c.setAttribute("linethickness",ze(b))}const p=cs(u.size,a.style);if(p.size!==a.style.size){c=new Pe.MathNode("mstyle",[c]);const b=p.size===Oe.DISPLAY.size?"true":"false";c.setAttribute("displaystyle",b),c.setAttribute("scriptlevel","0")}if(u.leftDelim!=null||u.rightDelim!=null){const b=[];if(u.leftDelim!=null){const k=new Pe.MathNode("mo",[new Pe.TextNode(u.leftDelim.replace("\\",""))]);k.setAttribute("fence","true"),b.push(k)}if(b.push(c),u.rightDelim!=null){const k=new Pe.MathNode("mo",[new Pe.TextNode(u.rightDelim.replace("\\",""))]);k.setAttribute("fence","true"),b.push(k)}return Qr(b)}return c};We({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(u,a)=>{let{parser:c,funcName:p}=u;const b=a[0],k=a[1];let R,B=null,V=null,Q="auto";switch(p){case"\\dfrac":case"\\frac":case"\\tfrac":R=!0;break;case"\\\\atopfrac":R=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":R=!1,B="(",V=")";break;case"\\\\bracefrac":R=!1,B="\\{",V="\\}";break;case"\\\\brackfrac":R=!1,B="[",V="]";break;default:throw new Error("Unrecognized genfrac command")}switch(p){case"\\dfrac":case"\\dbinom":Q="display";break;case"\\tfrac":case"\\tbinom":Q="text";break}return{type:"genfrac",mode:c.mode,continued:!1,numer:b,denom:k,hasBarLine:R,leftDelim:B,rightDelim:V,size:Q,barSize:null}},htmlBuilder:mi,mathmlBuilder:gi}),We({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(u,a)=>{let{parser:c,funcName:p}=u;const b=a[0],k=a[1];return{type:"genfrac",mode:c.mode,continued:!0,numer:b,denom:k,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),We({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(u){let{parser:a,funcName:c,token:p}=u,b;switch(c){case"\\over":b="\\frac";break;case"\\choose":b="\\binom";break;case"\\atop":b="\\\\atopfrac";break;case"\\brace":b="\\\\bracefrac";break;case"\\brack":b="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:a.mode,replaceWith:b,token:p}}});const ds=["display","text","script","scriptscript"],fs=function(u){let a=null;return u.length>0&&(a=u,a=a==="."?null:a),a};We({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(u,a){let{parser:c}=u;const p=a[4],b=a[5],k=Dr(a[0]),R=k.type==="atom"&&k.family==="open"?fs(k.text):null,B=Dr(a[1]),V=B.type==="atom"&&B.family==="close"?fs(B.text):null,Q=ut(a[2],"size");let _e,Ae=null;Q.isBlank?_e=!0:(Ae=Q.value,_e=Ae.number>0);let xe="auto",Le=a[3];if(Le.type==="ordgroup"){if(Le.body.length>0){const Ke=ut(Le.body[0],"textord");xe=ds[Number(Ke.text)]}}else Le=ut(Le,"textord"),xe=ds[Number(Le.text)];return{type:"genfrac",mode:c.mode,numer:p,denom:b,continued:!1,hasBarLine:_e,barSize:Ae,leftDelim:R,rightDelim:V,size:xe}},htmlBuilder:mi,mathmlBuilder:gi}),We({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(u,a){let{parser:c,funcName:p,token:b}=u;return{type:"infix",mode:c.mode,replaceWith:"\\\\abovefrac",size:ut(a[0],"size").value,token:b}}}),We({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(u,a)=>{let{parser:c,funcName:p}=u;const b=a[0],k=I(ut(a[1],"infix").size),R=a[2],B=k.number>0;return{type:"genfrac",mode:c.mode,numer:b,denom:R,continued:!1,hasBarLine:B,barSize:k,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:mi,mathmlBuilder:gi});const hs=(u,a)=>{const c=a.style;let p,b;u.type==="supsub"?(p=u.sup?kt(u.sup,a.havingStyle(c.sup()),a):kt(u.sub,a.havingStyle(c.sub()),a),b=ut(u.base,"horizBrace")):b=ut(u,"horizBrace");const k=kt(b.base,a.havingBaseStyle(Oe.DISPLAY)),R=Qn.svgSpan(b,a);let B;if(b.isOver?(B=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:k},{type:"kern",size:.1},{type:"elem",elem:R}]},a),B.children[0].children[0].children[1].classes.push("svg-align")):(B=Se.makeVList({positionType:"bottom",positionData:k.depth+.1+R.height,children:[{type:"elem",elem:R},{type:"kern",size:.1},{type:"elem",elem:k}]},a),B.children[0].children[0].children[0].classes.push("svg-align")),p){const V=Se.makeSpan(["mord",b.isOver?"mover":"munder"],[B],a);b.isOver?B=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:V},{type:"kern",size:.2},{type:"elem",elem:p}]},a):B=Se.makeVList({positionType:"bottom",positionData:V.depth+.2+p.height+p.depth,children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:V}]},a)}return Se.makeSpan(["mord",b.isOver?"mover":"munder"],[B],a)};We({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(u,a){let{parser:c,funcName:p}=u;return{type:"horizBrace",mode:c.mode,label:p,isOver:/^\\over/.test(p),base:a[0]}},htmlBuilder:hs,mathmlBuilder:(u,a)=>{const c=Qn.mathMLnode(u.label);return new Pe.MathNode(u.isOver?"mover":"munder",[Kt(u.base,a),c])}}),We({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(u,a)=>{let{parser:c}=u;const p=a[1],b=ut(a[0],"url").url;return c.settings.isTrusted({command:"\\href",url:b})?{type:"href",mode:c.mode,href:b,body:dn(p)}:c.formatUnsupportedCmd("\\href")},htmlBuilder:(u,a)=>{const c=hn(u.body,a,!1);return Se.makeAnchor(u.href,[],c,a)},mathmlBuilder:(u,a)=>{let c=nr(u.body,a);return c instanceof Nn||(c=new Nn("mrow",[c])),c.setAttribute("href",u.href),c}}),We({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(u,a)=>{let{parser:c}=u;const p=ut(a[0],"url").url;if(!c.settings.isTrusted({command:"\\url",url:p}))return c.formatUnsupportedCmd("\\url");const b=[];for(let R=0;R<p.length;R++){let B=p[R];B==="~"&&(B="\\textasciitilde"),b.push({type:"textord",mode:"text",text:B})}const k={type:"text",mode:c.mode,font:"\\texttt",body:b};return{type:"href",mode:c.mode,href:p,body:dn(k)}}}),We({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(u,a){let{parser:c}=u;return{type:"hbox",mode:c.mode,body:dn(a[0])}},htmlBuilder(u,a){const c=hn(u.body,a,!1);return Se.makeFragment(c)},mathmlBuilder(u,a){return new Pe.MathNode("mrow",vn(u.body,a))}}),We({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(u,a)=>{let{parser:c,funcName:p,token:b}=u;const k=ut(a[0],"raw").string,R=a[1];c.settings.strict&&c.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let B;const V={};switch(p){case"\\htmlClass":V.class=k,B={command:"\\htmlClass",class:k};break;case"\\htmlId":V.id=k,B={command:"\\htmlId",id:k};break;case"\\htmlStyle":V.style=k,B={command:"\\htmlStyle",style:k};break;case"\\htmlData":{const Q=k.split(",");for(let _e=0;_e<Q.length;_e++){const Ae=Q[_e].split("=");if(Ae.length!==2)throw new s("Error parsing key-value for \\htmlData");V["data-"+Ae[0].trim()]=Ae[1].trim()}B={command:"\\htmlData",attributes:V};break}default:throw new Error("Unrecognized html command")}return c.settings.isTrusted(B)?{type:"html",mode:c.mode,attributes:V,body:dn(R)}:c.formatUnsupportedCmd(p)},htmlBuilder:(u,a)=>{const c=hn(u.body,a,!1),p=["enclosing"];u.attributes.class&&p.push(...u.attributes.class.trim().split(/\s+/));const b=Se.makeSpan(p,c,a);for(const k in u.attributes)k!=="class"&&u.attributes.hasOwnProperty(k)&&b.setAttribute(k,u.attributes[k]);return b},mathmlBuilder:(u,a)=>nr(u.body,a)}),We({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(u,a)=>{let{parser:c}=u;return{type:"htmlmathml",mode:c.mode,html:dn(a[0]),mathml:dn(a[1])}},htmlBuilder:(u,a)=>{const c=hn(u.html,a,!1);return Se.makeFragment(c)},mathmlBuilder:(u,a)=>nr(u.mathml,a)});const bi=function(u){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(u))return{number:+u,unit:"bp"};{const a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(u);if(!a)throw new s("Invalid size: '"+u+"' in \\includegraphics");const c={number:+(a[1]+a[2]),unit:a[3]};if(!fn(c))throw new s("Invalid unit: '"+c.unit+"' in \\includegraphics.");return c}};We({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(u,a,c)=>{let{parser:p}=u,b={number:0,unit:"em"},k={number:.9,unit:"em"},R={number:0,unit:"em"},B="";if(c[0]){const _e=ut(c[0],"raw").string.split(",");for(let Ae=0;Ae<_e.length;Ae++){const xe=_e[Ae].split("=");if(xe.length===2){const Le=xe[1].trim();switch(xe[0].trim()){case"alt":B=Le;break;case"width":b=bi(Le);break;case"height":k=bi(Le);break;case"totalheight":R=bi(Le);break;default:throw new s("Invalid key: '"+xe[0]+"' in \\includegraphics.")}}}}const V=ut(a[0],"url").url;return B===""&&(B=V,B=B.replace(/^.*[\\/]/,""),B=B.substring(0,B.lastIndexOf("."))),p.settings.isTrusted({command:"\\includegraphics",url:V})?{type:"includegraphics",mode:p.mode,alt:B,width:b,height:k,totalheight:R,src:V}:p.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(u,a)=>{const c=qt(u.height,a);let p=0;u.totalheight.number>0&&(p=qt(u.totalheight,a)-c);let b=0;u.width.number>0&&(b=qt(u.width,a));const k={height:ze(c+p)};b>0&&(k.width=ze(b)),p>0&&(k.verticalAlign=ze(-p));const R=new Un(u.src,u.alt,k);return R.height=c,R.depth=p,R},mathmlBuilder:(u,a)=>{const c=new Pe.MathNode("mglyph",[]);c.setAttribute("alt",u.alt);const p=qt(u.height,a);let b=0;if(u.totalheight.number>0&&(b=qt(u.totalheight,a)-p,c.setAttribute("valign",ze(-b))),c.setAttribute("height",ze(p+b)),u.width.number>0){const k=qt(u.width,a);c.setAttribute("width",ze(k))}return c.setAttribute("src",u.src),c}}),We({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(u,a){let{parser:c,funcName:p}=u;const b=ut(a[0],"size");if(c.settings.strict){const k=p[1]==="m",R=b.value.unit==="mu";k?(R||c.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" supports only mu units, "+("not "+b.value.unit+" units")),c.mode!=="math"&&c.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" works only in math mode")):R&&c.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+p+" doesn't support mu units")}return{type:"kern",mode:c.mode,dimension:b.value}},htmlBuilder(u,a){return Se.makeGlue(u.dimension,a)},mathmlBuilder(u,a){const c=qt(u.dimension,a);return new Pe.SpaceNode(c)}}),We({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(u,a)=>{let{parser:c,funcName:p}=u;const b=a[0];return{type:"lap",mode:c.mode,alignment:p.slice(5),body:b}},htmlBuilder:(u,a)=>{let c;u.alignment==="clap"?(c=Se.makeSpan([],[kt(u.body,a)]),c=Se.makeSpan(["inner"],[c],a)):c=Se.makeSpan(["inner"],[kt(u.body,a)]);const p=Se.makeSpan(["fix"],[]);let b=Se.makeSpan([u.alignment],[c,p],a);const k=Se.makeSpan(["strut"]);return k.style.height=ze(b.height+b.depth),b.depth&&(k.style.verticalAlign=ze(-b.depth)),b.children.unshift(k),b=Se.makeSpan(["thinbox"],[b],a),Se.makeSpan(["mord","vbox"],[b],a)},mathmlBuilder:(u,a)=>{const c=new Pe.MathNode("mpadded",[Kt(u.body,a)]);if(u.alignment!=="rlap"){const p=u.alignment==="llap"?"-1":"-0.5";c.setAttribute("lspace",p+"width")}return c.setAttribute("width","0px"),c}}),We({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(u,a){let{funcName:c,parser:p}=u;const b=p.mode;p.switchMode("math");const k=c==="\\("?"\\)":"$",R=p.parseExpression(!1,k);return p.expect(k),p.switchMode(b),{type:"styling",mode:p.mode,style:"text",body:R}}}),We({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(u,a){throw new s("Mismatched "+u.funcName)}});const ps=(u,a)=>{switch(a.style.size){case Oe.DISPLAY.size:return u.display;case Oe.TEXT.size:return u.text;case Oe.SCRIPT.size:return u.script;case Oe.SCRIPTSCRIPT.size:return u.scriptscript;default:return u.text}};We({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(u,a)=>{let{parser:c}=u;return{type:"mathchoice",mode:c.mode,display:dn(a[0]),text:dn(a[1]),script:dn(a[2]),scriptscript:dn(a[3])}},htmlBuilder:(u,a)=>{const c=ps(u,a),p=hn(c,a,!1);return Se.makeFragment(p)},mathmlBuilder:(u,a)=>{const c=ps(u,a);return nr(c,a)}});const ms=(u,a,c,p,b,k,R)=>{u=Se.makeSpan([],[u]);const B=c&&L.isCharacterBox(c);let V,Q;if(a){const xe=kt(a,p.havingStyle(b.sup()),p);Q={elem:xe,kern:Math.max(p.fontMetrics().bigOpSpacing1,p.fontMetrics().bigOpSpacing3-xe.depth)}}if(c){const xe=kt(c,p.havingStyle(b.sub()),p);V={elem:xe,kern:Math.max(p.fontMetrics().bigOpSpacing2,p.fontMetrics().bigOpSpacing4-xe.height)}}let _e;if(Q&&V){const xe=p.fontMetrics().bigOpSpacing5+V.elem.height+V.elem.depth+V.kern+u.depth+R;_e=Se.makeVList({positionType:"bottom",positionData:xe,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:V.elem,marginLeft:ze(-k)},{type:"kern",size:V.kern},{type:"elem",elem:u},{type:"kern",size:Q.kern},{type:"elem",elem:Q.elem,marginLeft:ze(k)},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else if(V){const xe=u.height-R;_e=Se.makeVList({positionType:"top",positionData:xe,children:[{type:"kern",size:p.fontMetrics().bigOpSpacing5},{type:"elem",elem:V.elem,marginLeft:ze(-k)},{type:"kern",size:V.kern},{type:"elem",elem:u}]},p)}else if(Q){const xe=u.depth+R;_e=Se.makeVList({positionType:"bottom",positionData:xe,children:[{type:"elem",elem:u},{type:"kern",size:Q.kern},{type:"elem",elem:Q.elem,marginLeft:ze(k)},{type:"kern",size:p.fontMetrics().bigOpSpacing5}]},p)}else return u;const Ae=[_e];if(V&&k!==0&&!B){const xe=Se.makeSpan(["mspace"],[],p);xe.style.marginRight=ze(k),Ae.unshift(xe)}return Se.makeSpan(["mop","op-limits"],Ae,p)},gs=["\\smallint"],pr=(u,a)=>{let c,p,b=!1,k;u.type==="supsub"?(c=u.sup,p=u.sub,k=ut(u.base,"op"),b=!0):k=ut(u,"op");const R=a.style;let B=!1;R.size===Oe.DISPLAY.size&&k.symbol&&!L.contains(gs,k.name)&&(B=!0);let V;if(k.symbol){const Ae=B?"Size2-Regular":"Size1-Regular";let xe="";if((k.name==="\\oiint"||k.name==="\\oiiint")&&(xe=k.name.slice(1),k.name=xe==="oiint"?"\\iint":"\\iiint"),V=Se.makeSymbol(k.name,Ae,"math",a,["mop","op-symbol",B?"large-op":"small-op"]),xe.length>0){const Le=V.italic,Ke=Se.staticSvg(xe+"Size"+(B?"2":"1"),a);V=Se.makeVList({positionType:"individualShift",children:[{type:"elem",elem:V,shift:0},{type:"elem",elem:Ke,shift:B?.08:0}]},a),k.name="\\"+xe,V.classes.unshift("mop"),V.italic=Le}}else if(k.body){const Ae=hn(k.body,a,!0);Ae.length===1&&Ae[0]instanceof En?(V=Ae[0],V.classes[0]="mop"):V=Se.makeSpan(["mop"],Ae,a)}else{const Ae=[];for(let xe=1;xe<k.name.length;xe++)Ae.push(Se.mathsym(k.name[xe],k.mode,a));V=Se.makeSpan(["mop"],Ae,a)}let Q=0,_e=0;return(V instanceof En||k.name==="\\oiint"||k.name==="\\oiiint")&&!k.suppressBaseShift&&(Q=(V.height-V.depth)/2-a.fontMetrics().axisHeight,_e=V.italic),b?ms(V,c,p,a,R,_e,Q):(Q&&(V.style.position="relative",V.style.top=ze(Q)),V)},Sr=(u,a)=>{let c;if(u.symbol)c=new Nn("mo",[Rn(u.name,u.mode)]),L.contains(gs,u.name)&&c.setAttribute("largeop","false");else if(u.body)c=new Nn("mo",vn(u.body,a));else{c=new Nn("mi",[new zn(u.name.slice(1))]);const p=new Nn("mo",[Rn("","text")]);u.parentIsSupSub?c=new Nn("mrow",[c,p]):c=Di([c,p])}return c},Ro={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};We({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(u,a)=>{let{parser:c,funcName:p}=u,b=p;return b.length===1&&(b=Ro[b]),{type:"op",mode:c.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:b}},htmlBuilder:pr,mathmlBuilder:Sr}),We({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(u,a)=>{let{parser:c}=u;const p=a[0];return{type:"op",mode:c.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:dn(p)}},htmlBuilder:pr,mathmlBuilder:Sr});const Do={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};We({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(u){let{parser:a,funcName:c}=u;return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:c}},htmlBuilder:pr,mathmlBuilder:Sr}),We({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(u){let{parser:a,funcName:c}=u;return{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:c}},htmlBuilder:pr,mathmlBuilder:Sr}),We({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(u){let{parser:a,funcName:c}=u,p=c;return p.length===1&&(p=Do[p]),{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:p}},htmlBuilder:pr,mathmlBuilder:Sr});const bs=(u,a)=>{let c,p,b=!1,k;u.type==="supsub"?(c=u.sup,p=u.sub,k=ut(u.base,"operatorname"),b=!0):k=ut(u,"operatorname");let R;if(k.body.length>0){const B=k.body.map(Q=>{const _e=Q.text;return typeof _e=="string"?{type:"textord",mode:Q.mode,text:_e}:Q}),V=hn(B,a.withFont("mathrm"),!0);for(let Q=0;Q<V.length;Q++){const _e=V[Q];_e instanceof En&&(_e.text=_e.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}R=Se.makeSpan(["mop"],V,a)}else R=Se.makeSpan(["mop"],[],a);return b?ms(R,c,p,a,a.style,0,0):R};We({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(u,a)=>{let{parser:c,funcName:p}=u;const b=a[0];return{type:"operatorname",mode:c.mode,body:dn(b),alwaysHandleSupSub:p==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:bs,mathmlBuilder:(u,a)=>{let c=vn(u.body,a.withFont("mathrm")),p=!0;for(let R=0;R<c.length;R++){const B=c[R];if(!(B instanceof Pe.SpaceNode))if(B instanceof Pe.MathNode)switch(B.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{const V=B.children[0];B.children.length===1&&V instanceof Pe.TextNode?V.text=V.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):p=!1;break}default:p=!1}else p=!1}if(p){const R=c.map(B=>B.toText()).join("");c=[new Pe.TextNode(R)]}const b=new Pe.MathNode("mi",c);b.setAttribute("mathvariant","normal");const k=new Pe.MathNode("mo",[Rn("","text")]);return u.parentIsSupSub?new Pe.MathNode("mrow",[b,k]):Pe.newDocumentFragment([b,k])}}),F("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ur({type:"ordgroup",htmlBuilder(u,a){return u.semisimple?Se.makeFragment(hn(u.body,a,!1)):Se.makeSpan(["mord"],hn(u.body,a,!0),a)},mathmlBuilder(u,a){return nr(u.body,a,!0)}}),We({type:"overline",names:["\\overline"],props:{numArgs:1},handler(u,a){let{parser:c}=u;const p=a[0];return{type:"overline",mode:c.mode,body:p}},htmlBuilder(u,a){const c=kt(u.body,a.havingCrampedStyle()),p=Se.makeLineSpan("overline-line",a),b=a.fontMetrics().defaultRuleThickness,k=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:3*b},{type:"elem",elem:p},{type:"kern",size:b}]},a);return Se.makeSpan(["mord","overline"],[k],a)},mathmlBuilder(u,a){const c=new Pe.MathNode("mo",[new Pe.TextNode("‾")]);c.setAttribute("stretchy","true");const p=new Pe.MathNode("mover",[Kt(u.body,a),c]);return p.setAttribute("accent","true"),p}}),We({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(u,a)=>{let{parser:c}=u;const p=a[0];return{type:"phantom",mode:c.mode,body:dn(p)}},htmlBuilder:(u,a)=>{const c=hn(u.body,a.withPhantom(),!1);return Se.makeFragment(c)},mathmlBuilder:(u,a)=>{const c=vn(u.body,a);return new Pe.MathNode("mphantom",c)}}),We({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(u,a)=>{let{parser:c}=u;const p=a[0];return{type:"hphantom",mode:c.mode,body:p}},htmlBuilder:(u,a)=>{let c=Se.makeSpan([],[kt(u.body,a.withPhantom())]);if(c.height=0,c.depth=0,c.children)for(let p=0;p<c.children.length;p++)c.children[p].height=0,c.children[p].depth=0;return c=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c}]},a),Se.makeSpan(["mord"],[c],a)},mathmlBuilder:(u,a)=>{const c=vn(dn(u.body),a),p=new Pe.MathNode("mphantom",c),b=new Pe.MathNode("mpadded",[p]);return b.setAttribute("height","0px"),b.setAttribute("depth","0px"),b}}),We({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(u,a)=>{let{parser:c}=u;const p=a[0];return{type:"vphantom",mode:c.mode,body:p}},htmlBuilder:(u,a)=>{const c=Se.makeSpan(["inner"],[kt(u.body,a.withPhantom())]),p=Se.makeSpan(["fix"],[]);return Se.makeSpan(["mord","rlap"],[c,p],a)},mathmlBuilder:(u,a)=>{const c=vn(dn(u.body),a),p=new Pe.MathNode("mphantom",c),b=new Pe.MathNode("mpadded",[p]);return b.setAttribute("width","0px"),b}}),We({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(u,a){let{parser:c}=u;const p=ut(a[0],"size").value,b=a[1];return{type:"raisebox",mode:c.mode,dy:p,body:b}},htmlBuilder(u,a){const c=kt(u.body,a),p=qt(u.dy,a);return Se.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:c}]},a)},mathmlBuilder(u,a){const c=new Pe.MathNode("mpadded",[Kt(u.body,a)]),p=u.dy.number+u.dy.unit;return c.setAttribute("voffset",p),c}}),We({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(u){let{parser:a}=u;return{type:"internal",mode:a.mode}}}),We({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(u,a,c){let{parser:p}=u;const b=c[0],k=ut(a[0],"size"),R=ut(a[1],"size");return{type:"rule",mode:p.mode,shift:b&&ut(b,"size").value,width:k.value,height:R.value}},htmlBuilder(u,a){const c=Se.makeSpan(["mord","rule"],[],a),p=qt(u.width,a),b=qt(u.height,a),k=u.shift?qt(u.shift,a):0;return c.style.borderRightWidth=ze(p),c.style.borderTopWidth=ze(b),c.style.bottom=ze(k),c.width=p,c.height=b+k,c.depth=-k,c.maxFontSize=b*1.125*a.sizeMultiplier,c},mathmlBuilder(u,a){const c=qt(u.width,a),p=qt(u.height,a),b=u.shift?qt(u.shift,a):0,k=a.color&&a.getColor()||"black",R=new Pe.MathNode("mspace");R.setAttribute("mathbackground",k),R.setAttribute("width",ze(c)),R.setAttribute("height",ze(p));const B=new Pe.MathNode("mpadded",[R]);return b>=0?B.setAttribute("height",ze(b)):(B.setAttribute("height",ze(b)),B.setAttribute("depth",ze(-b))),B.setAttribute("voffset",ze(b)),B}});function _s(u,a,c){const p=hn(u,a,!1),b=a.sizeMultiplier/c.sizeMultiplier;for(let k=0;k<p.length;k++){const R=p[k].classes.indexOf("sizing");R<0?Array.prototype.push.apply(p[k].classes,a.sizingClasses(c)):p[k].classes[R+1]==="reset-size"+a.size&&(p[k].classes[R+1]="reset-size"+c.size),p[k].height*=b,p[k].depth*=b}return Se.makeFragment(p)}const ys=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];We({type:"sizing",names:ys,props:{numArgs:0,allowedInText:!0},handler:(u,a)=>{let{breakOnTokenText:c,funcName:p,parser:b}=u;const k=b.parseExpression(!1,c);return{type:"sizing",mode:b.mode,size:ys.indexOf(p)+1,body:k}},htmlBuilder:(u,a)=>{const c=a.havingSize(u.size);return _s(u.body,c,a)},mathmlBuilder:(u,a)=>{const c=a.havingSize(u.size),p=vn(u.body,c),b=new Pe.MathNode("mstyle",p);return b.setAttribute("mathsize",ze(c.sizeMultiplier)),b}}),We({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(u,a,c)=>{let{parser:p}=u,b=!1,k=!1;const R=c[0]&&ut(c[0],"ordgroup");if(R){let V="";for(let Q=0;Q<R.body.length;++Q)if(V=R.body[Q].text,V==="t")b=!0;else if(V==="b")k=!0;else{b=!1,k=!1;break}}else b=!0,k=!0;const B=a[0];return{type:"smash",mode:p.mode,body:B,smashHeight:b,smashDepth:k}},htmlBuilder:(u,a)=>{const c=Se.makeSpan([],[kt(u.body,a)]);if(!u.smashHeight&&!u.smashDepth)return c;if(u.smashHeight&&(c.height=0,c.children))for(let b=0;b<c.children.length;b++)c.children[b].height=0;if(u.smashDepth&&(c.depth=0,c.children))for(let b=0;b<c.children.length;b++)c.children[b].depth=0;const p=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c}]},a);return Se.makeSpan(["mord"],[p],a)},mathmlBuilder:(u,a)=>{const c=new Pe.MathNode("mpadded",[Kt(u.body,a)]);return u.smashHeight&&c.setAttribute("height","0px"),u.smashDepth&&c.setAttribute("depth","0px"),c}}),We({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(u,a,c){let{parser:p}=u;const b=c[0],k=a[0];return{type:"sqrt",mode:p.mode,body:k,index:b}},htmlBuilder(u,a){let c=kt(u.body,a.havingCrampedStyle());c.height===0&&(c.height=a.fontMetrics().xHeight),c=Se.wrapFragment(c,a);const b=a.fontMetrics().defaultRuleThickness;let k=b;a.style.id<Oe.TEXT.id&&(k=a.fontMetrics().xHeight);let R=b+k/4;const B=c.height+c.depth+R+b,{span:V,ruleWidth:Q,advanceWidth:_e}=Jn.sqrtImage(B,a),Ae=V.height-Q;Ae>c.height+c.depth+R&&(R=(R+Ae-c.height-c.depth)/2);const xe=V.height-c.height-R-Q;c.style.paddingLeft=ze(_e);const Le=Se.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c,wrapperClasses:["svg-align"]},{type:"kern",size:-(c.height+xe)},{type:"elem",elem:V},{type:"kern",size:Q}]},a);if(u.index){const Ke=a.havingStyle(Oe.SCRIPTSCRIPT),st=kt(u.index,Ke,a),ft=.6*(Le.height-Le.depth),ct=Se.makeVList({positionType:"shift",positionData:-ft,children:[{type:"elem",elem:st}]},a),ht=Se.makeSpan(["root"],[ct]);return Se.makeSpan(["mord","sqrt"],[ht,Le],a)}else return Se.makeSpan(["mord","sqrt"],[Le],a)},mathmlBuilder(u,a){const{body:c,index:p}=u;return p?new Pe.MathNode("mroot",[Kt(c,a),Kt(p,a)]):new Pe.MathNode("msqrt",[Kt(c,a)])}});const Es={display:Oe.DISPLAY,text:Oe.TEXT,script:Oe.SCRIPT,scriptscript:Oe.SCRIPTSCRIPT};We({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(u,a){let{breakOnTokenText:c,funcName:p,parser:b}=u;const k=b.parseExpression(!0,c),R=p.slice(1,p.length-5);return{type:"styling",mode:b.mode,style:R,body:k}},htmlBuilder(u,a){const c=Es[u.style],p=a.havingStyle(c).withFont("");return _s(u.body,p,a)},mathmlBuilder(u,a){const c=Es[u.style],p=a.havingStyle(c),b=vn(u.body,p),k=new Pe.MathNode("mstyle",b),B={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[u.style];return k.setAttribute("scriptlevel",B[0]),k.setAttribute("displaystyle",B[1]),k}});const Oo=function(u,a){const c=u.base;return c?c.type==="op"?c.limits&&(a.style.size===Oe.DISPLAY.size||c.alwaysHandleSupSub)?pr:null:c.type==="operatorname"?c.alwaysHandleSupSub&&(a.style.size===Oe.DISPLAY.size||c.limits)?bs:null:c.type==="accent"?L.isCharacterBox(c.base)?ti:null:c.type==="horizBrace"&&!u.sub===c.isOver?hs:null:null};ur({type:"supsub",htmlBuilder(u,a){const c=Oo(u,a);if(c)return c(u,a);const{base:p,sup:b,sub:k}=u,R=kt(p,a);let B,V;const Q=a.fontMetrics();let _e=0,Ae=0;const xe=p&&L.isCharacterBox(p);if(b){const $t=a.havingStyle(a.style.sup());B=kt(b,$t,a),xe||(_e=R.height-$t.fontMetrics().supDrop*$t.sizeMultiplier/a.sizeMultiplier)}if(k){const $t=a.havingStyle(a.style.sub());V=kt(k,$t,a),xe||(Ae=R.depth+$t.fontMetrics().subDrop*$t.sizeMultiplier/a.sizeMultiplier)}let Le;a.style===Oe.DISPLAY?Le=Q.sup1:a.style.cramped?Le=Q.sup3:Le=Q.sup2;const Ke=a.sizeMultiplier,st=ze(.5/Q.ptPerEm/Ke);let ft=null;if(V){const $t=u.base&&u.base.type==="op"&&u.base.name&&(u.base.name==="\\oiint"||u.base.name==="\\oiiint");(R instanceof En||$t)&&(ft=ze(-R.italic))}let ct;if(B&&V){_e=Math.max(_e,Le,B.depth+.25*Q.xHeight),Ae=Math.max(Ae,Q.sub2);const Jt=4*Q.defaultRuleThickness;if(_e-B.depth-(V.height-Ae)<Jt){Ae=Jt-(_e-B.depth)+V.height;const pn=.8*Q.xHeight-(_e-B.depth);pn>0&&(_e+=pn,Ae-=pn)}const Sn=[{type:"elem",elem:V,shift:Ae,marginRight:st,marginLeft:ft},{type:"elem",elem:B,shift:-_e,marginRight:st}];ct=Se.makeVList({positionType:"individualShift",children:Sn},a)}else if(V){Ae=Math.max(Ae,Q.sub1,V.height-.8*Q.xHeight);const $t=[{type:"elem",elem:V,marginLeft:ft,marginRight:st}];ct=Se.makeVList({positionType:"shift",positionData:Ae,children:$t},a)}else if(B)_e=Math.max(_e,Le,B.depth+.25*Q.xHeight),ct=Se.makeVList({positionType:"shift",positionData:-_e,children:[{type:"elem",elem:B,marginRight:st}]},a);else throw new Error("supsub must have either sup or sub.");const ht=Kr(R,"right")||"mord";return Se.makeSpan([ht],[R,Se.makeSpan(["msupsub"],[ct])],a)},mathmlBuilder(u,a){let c=!1,p,b;u.base&&u.base.type==="horizBrace"&&(b=!!u.sup,b===u.base.isOver&&(c=!0,p=u.base.isOver)),u.base&&(u.base.type==="op"||u.base.type==="operatorname")&&(u.base.parentIsSupSub=!0);const k=[Kt(u.base,a)];u.sub&&k.push(Kt(u.sub,a)),u.sup&&k.push(Kt(u.sup,a));let R;if(c)R=p?"mover":"munder";else if(u.sub)if(u.sup){const B=u.base;B&&B.type==="op"&&B.limits&&a.style===Oe.DISPLAY||B&&B.type==="operatorname"&&B.alwaysHandleSupSub&&(a.style===Oe.DISPLAY||B.limits)?R="munderover":R="msubsup"}else{const B=u.base;B&&B.type==="op"&&B.limits&&(a.style===Oe.DISPLAY||B.alwaysHandleSupSub)||B&&B.type==="operatorname"&&B.alwaysHandleSupSub&&(B.limits||a.style===Oe.DISPLAY)?R="munder":R="msub"}else{const B=u.base;B&&B.type==="op"&&B.limits&&(a.style===Oe.DISPLAY||B.alwaysHandleSupSub)||B&&B.type==="operatorname"&&B.alwaysHandleSupSub&&(B.limits||a.style===Oe.DISPLAY)?R="mover":R="msup"}return new Pe.MathNode(R,k)}}),ur({type:"atom",htmlBuilder(u,a){return Se.mathsym(u.text,u.mode,a,["m"+u.family])},mathmlBuilder(u,a){const c=new Pe.MathNode("mo",[Rn(u.text,u.mode)]);if(u.family==="bin"){const p=Jr(u,a);p==="bold-italic"&&c.setAttribute("mathvariant",p)}else u.family==="punct"?c.setAttribute("separator","true"):(u.family==="open"||u.family==="close")&&c.setAttribute("stretchy","false");return c}});const As={mi:"italic",mn:"normal",mtext:"normal"};ur({type:"mathord",htmlBuilder(u,a){return Se.makeOrd(u,a,"mathord")},mathmlBuilder(u,a){const c=new Pe.MathNode("mi",[Rn(u.text,u.mode,a)]),p=Jr(u,a)||"italic";return p!==As[c.type]&&c.setAttribute("mathvariant",p),c}}),ur({type:"textord",htmlBuilder(u,a){return Se.makeOrd(u,a,"textord")},mathmlBuilder(u,a){const c=Rn(u.text,u.mode,a),p=Jr(u,a)||"normal";let b;return u.mode==="text"?b=new Pe.MathNode("mtext",[c]):/[0-9]/.test(u.text)?b=new Pe.MathNode("mn",[c]):u.text==="\\prime"?b=new Pe.MathNode("mo",[c]):b=new Pe.MathNode("mi",[c]),p!==As[b.type]&&b.setAttribute("mathvariant",p),b}});const _i={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},yi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ur({type:"spacing",htmlBuilder(u,a){if(yi.hasOwnProperty(u.text)){const c=yi[u.text].className||"";if(u.mode==="text"){const p=Se.makeOrd(u,a,"textord");return p.classes.push(c),p}else return Se.makeSpan(["mspace",c],[Se.mathsym(u.text,u.mode,a)],a)}else{if(_i.hasOwnProperty(u.text))return Se.makeSpan(["mspace",_i[u.text]],[],a);throw new s('Unknown type of space "'+u.text+'"')}},mathmlBuilder(u,a){let c;if(yi.hasOwnProperty(u.text))c=new Pe.MathNode("mtext",[new Pe.TextNode(" ")]);else{if(_i.hasOwnProperty(u.text))return new Pe.MathNode("mspace");throw new s('Unknown type of space "'+u.text+'"')}return c}});const Ss=()=>{const u=new Pe.MathNode("mtd",[]);return u.setAttribute("width","50%"),u};ur({type:"tag",mathmlBuilder(u,a){const c=new Pe.MathNode("mtable",[new Pe.MathNode("mtr",[Ss(),new Pe.MathNode("mtd",[nr(u.body,a)]),Ss(),new Pe.MathNode("mtd",[nr(u.tag,a)])])]);return c.setAttribute("width","100%"),c}});const ws={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},xs={"\\textbf":"textbf","\\textmd":"textmd"},Mo={"\\textit":"textit","\\textup":"textup"},vs=(u,a)=>{const c=u.font;if(c){if(ws[c])return a.withTextFontFamily(ws[c]);if(xs[c])return a.withTextFontWeight(xs[c]);if(c==="\\emph")return a.fontShape==="textit"?a.withTextFontShape("textup"):a.withTextFontShape("textit")}else return a;return a.withTextFontShape(Mo[c])};We({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(u,a){let{parser:c,funcName:p}=u;const b=a[0];return{type:"text",mode:c.mode,body:dn(b),font:p}},htmlBuilder(u,a){const c=vs(u,a),p=hn(u.body,c,!0);return Se.makeSpan(["mord","text"],p,c)},mathmlBuilder(u,a){const c=vs(u,a);return nr(u.body,c)}}),We({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(u,a){let{parser:c}=u;return{type:"underline",mode:c.mode,body:a[0]}},htmlBuilder(u,a){const c=kt(u.body,a),p=Se.makeLineSpan("underline-line",a),b=a.fontMetrics().defaultRuleThickness,k=Se.makeVList({positionType:"top",positionData:c.height,children:[{type:"kern",size:b},{type:"elem",elem:p},{type:"kern",size:3*b},{type:"elem",elem:c}]},a);return Se.makeSpan(["mord","underline"],[k],a)},mathmlBuilder(u,a){const c=new Pe.MathNode("mo",[new Pe.TextNode("‾")]);c.setAttribute("stretchy","true");const p=new Pe.MathNode("munder",[Kt(u.body,a),c]);return p.setAttribute("accentunder","true"),p}}),We({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(u,a){let{parser:c}=u;return{type:"vcenter",mode:c.mode,body:a[0]}},htmlBuilder(u,a){const c=kt(u.body,a),p=a.fontMetrics().axisHeight,b=.5*(c.height-p-(c.depth+p));return Se.makeVList({positionType:"shift",positionData:b,children:[{type:"elem",elem:c}]},a)},mathmlBuilder(u,a){return new Pe.MathNode("mpadded",[Kt(u.body,a)],["vcenter"])}}),We({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(u,a,c){throw new s("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(u,a){const c=Ts(u),p=[],b=a.havingStyle(a.style.text());for(let k=0;k<c.length;k++){let R=c[k];R==="~"&&(R="\\textasciitilde"),p.push(Se.makeSymbol(R,"Typewriter-Regular",u.mode,b,["mord","texttt"]))}return Se.makeSpan(["mord","text"].concat(b.sizingClasses(a)),Se.tryCombineChars(p),b)},mathmlBuilder(u,a){const c=new Pe.TextNode(Ts(u)),p=new Pe.MathNode("mtext",[c]);return p.setAttribute("mathvariant","monospace"),p}});const Ts=u=>u.body.replace(/ /g,u.star?"␣":" ");var ir=Ii;const ks=`[ \r
- ]`,Lo="\\\\[a-zA-Z@]+",Bo="\\\\[^\uD800-\uDFFF]",Fo="("+Lo+")"+ks+"*",Po=`\\\\(
- |[ \r ]+
- ?)[ \r ]*`,Ei="[̀-ͯ]",Uo=new RegExp(Ei+"+$"),$o="("+ks+"+)|"+(Po+"|")+"([!-\\[\\]-‧-豈-]"+(Ei+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ei+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Fo)+("|"+Bo+")");class Ns{constructor(a,c){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=a,this.settings=c,this.tokenRegex=new RegExp($o,"g"),this.catcodes={"%":14,"~":13}}setCatcode(a,c){this.catcodes[a]=c}lex(){const a=this.input,c=this.tokenRegex.lastIndex;if(c===a.length)return new Dn("EOF",new Cn(this,c,c));const p=this.tokenRegex.exec(a);if(p===null||p.index!==c)throw new s("Unexpected character: '"+a[c]+"'",new Dn(a[c],new Cn(this,c,c+1)));const b=p[6]||p[3]||(p[2]?"\\ ":" ");if(this.catcodes[b]===14){const k=a.indexOf(`
- `,this.tokenRegex.lastIndex);return k===-1?(this.tokenRegex.lastIndex=a.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=k+1,this.lex()}return new Dn(b,new Cn(this,c,this.tokenRegex.lastIndex))}}class zo{constructor(a,c){a===void 0&&(a={}),c===void 0&&(c={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=c,this.builtins=a,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new s("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const a=this.undefStack.pop();for(const c in a)a.hasOwnProperty(c)&&(a[c]==null?delete this.current[c]:this.current[c]=a[c])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(a){return this.current.hasOwnProperty(a)||this.builtins.hasOwnProperty(a)}get(a){return this.current.hasOwnProperty(a)?this.current[a]:this.builtins[a]}set(a,c,p){if(p===void 0&&(p=!1),p){for(let b=0;b<this.undefStack.length;b++)delete this.undefStack[b][a];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][a]=c)}else{const b=this.undefStack[this.undefStack.length-1];b&&!b.hasOwnProperty(a)&&(b[a]=this.current[a])}c==null?delete this.current[a]:this.current[a]=c}}var qo=ns;F("\\noexpand",function(u){const a=u.popToken();return u.isExpandable(a.text)&&(a.noexpand=!0,a.treatAsRelax=!0),{tokens:[a],numArgs:0}}),F("\\expandafter",function(u){const a=u.popToken();return u.expandOnce(!0),{tokens:[a],numArgs:0}}),F("\\@firstoftwo",function(u){return{tokens:u.consumeArgs(2)[0],numArgs:0}}),F("\\@secondoftwo",function(u){return{tokens:u.consumeArgs(2)[1],numArgs:0}}),F("\\@ifnextchar",function(u){const a=u.consumeArgs(3);u.consumeSpaces();const c=u.future();return a[0].length===1&&a[0][0].text===c.text?{tokens:a[1],numArgs:0}:{tokens:a[2],numArgs:0}}),F("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),F("\\TextOrMath",function(u){const a=u.consumeArgs(2);return u.mode==="text"?{tokens:a[0],numArgs:0}:{tokens:a[1],numArgs:0}});const Cs={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};F("\\char",function(u){let a=u.popToken(),c,p="";if(a.text==="'")c=8,a=u.popToken();else if(a.text==='"')c=16,a=u.popToken();else if(a.text==="`")if(a=u.popToken(),a.text[0]==="\\")p=a.text.charCodeAt(1);else{if(a.text==="EOF")throw new s("\\char` missing argument");p=a.text.charCodeAt(0)}else c=10;if(c){if(p=Cs[a.text],p==null||p>=c)throw new s("Invalid base-"+c+" digit "+a.text);let b;for(;(b=Cs[u.future().text])!=null&&b<c;)p*=c,p+=b,u.popToken()}return"\\@char{"+p+"}"});const Ai=(u,a,c,p)=>{let b=u.consumeArg().tokens;if(b.length!==1)throw new s("\\newcommand's first argument must be a macro name");const k=b[0].text,R=u.isDefined(k);if(R&&!a)throw new s("\\newcommand{"+k+"} attempting to redefine "+(k+"; use \\renewcommand"));if(!R&&!c)throw new s("\\renewcommand{"+k+"} when command "+k+" does not yet exist; use \\newcommand");let B=0;if(b=u.consumeArg().tokens,b.length===1&&b[0].text==="["){let V="",Q=u.expandNextToken();for(;Q.text!=="]"&&Q.text!=="EOF";)V+=Q.text,Q=u.expandNextToken();if(!V.match(/^\s*[0-9]+\s*$/))throw new s("Invalid number of arguments: "+V);B=parseInt(V),b=u.consumeArg().tokens}return R&&p||u.macros.set(k,{tokens:b,numArgs:B}),""};F("\\newcommand",u=>Ai(u,!1,!0,!1)),F("\\renewcommand",u=>Ai(u,!0,!1,!1)),F("\\providecommand",u=>Ai(u,!0,!0,!0)),F("\\message",u=>{const a=u.consumeArgs(1)[0];return console.log(a.reverse().map(c=>c.text).join("")),""}),F("\\errmessage",u=>{const a=u.consumeArgs(1)[0];return console.error(a.reverse().map(c=>c.text).join("")),""}),F("\\show",u=>{const a=u.popToken(),c=a.text;return console.log(a,u.macros.get(c),ir[c],tn.math[c],tn.text[c]),""}),F("\\bgroup","{"),F("\\egroup","}"),F("~","\\nobreakspace"),F("\\lq","`"),F("\\rq","'"),F("\\aa","\\r a"),F("\\AA","\\r A"),F("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),F("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),F("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),F("ℬ","\\mathscr{B}"),F("ℰ","\\mathscr{E}"),F("ℱ","\\mathscr{F}"),F("ℋ","\\mathscr{H}"),F("ℐ","\\mathscr{I}"),F("ℒ","\\mathscr{L}"),F("ℳ","\\mathscr{M}"),F("ℛ","\\mathscr{R}"),F("ℭ","\\mathfrak{C}"),F("ℌ","\\mathfrak{H}"),F("ℨ","\\mathfrak{Z}"),F("\\Bbbk","\\Bbb{k}"),F("·","\\cdotp"),F("\\llap","\\mathllap{\\textrm{#1}}"),F("\\rlap","\\mathrlap{\\textrm{#1}}"),F("\\clap","\\mathclap{\\textrm{#1}}"),F("\\mathstrut","\\vphantom{(}"),F("\\underbar","\\underline{\\text{#1}}"),F("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),F("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),F("\\ne","\\neq"),F("≠","\\neq"),F("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),F("∉","\\notin"),F("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),F("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),F("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),F("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),F("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),F("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),F("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),F("⟂","\\perp"),F("‼","\\mathclose{!\\mkern-0.8mu!}"),F("∌","\\notni"),F("⌜","\\ulcorner"),F("⌝","\\urcorner"),F("⌞","\\llcorner"),F("⌟","\\lrcorner"),F("©","\\copyright"),F("®","\\textregistered"),F("️","\\textregistered"),F("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),F("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),F("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),F("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),F("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),F("⋮","\\vdots"),F("\\varGamma","\\mathit{\\Gamma}"),F("\\varDelta","\\mathit{\\Delta}"),F("\\varTheta","\\mathit{\\Theta}"),F("\\varLambda","\\mathit{\\Lambda}"),F("\\varXi","\\mathit{\\Xi}"),F("\\varPi","\\mathit{\\Pi}"),F("\\varSigma","\\mathit{\\Sigma}"),F("\\varUpsilon","\\mathit{\\Upsilon}"),F("\\varPhi","\\mathit{\\Phi}"),F("\\varPsi","\\mathit{\\Psi}"),F("\\varOmega","\\mathit{\\Omega}"),F("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),F("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),F("\\boxed","\\fbox{$\\displaystyle{#1}$}"),F("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),F("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),F("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),F("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),F("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const Is={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};F("\\dots",function(u){let a="\\dotso";const c=u.expandAfterFuture().text;return c in Is?a=Is[c]:(c.slice(0,4)==="\\not"||c in tn.math&&L.contains(["bin","rel"],tn.math[c].group))&&(a="\\dotsb"),a});const Si={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};F("\\dotso",function(u){return u.future().text in Si?"\\ldots\\,":"\\ldots"}),F("\\dotsc",function(u){const a=u.future().text;return a in Si&&a!==","?"\\ldots\\,":"\\ldots"}),F("\\cdots",function(u){return u.future().text in Si?"\\@cdots\\,":"\\@cdots"}),F("\\dotsb","\\cdots"),F("\\dotsm","\\cdots"),F("\\dotsi","\\!\\cdots"),F("\\dotsx","\\ldots\\,"),F("\\DOTSI","\\relax"),F("\\DOTSB","\\relax"),F("\\DOTSX","\\relax"),F("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),F("\\,","\\tmspace+{3mu}{.1667em}"),F("\\thinspace","\\,"),F("\\>","\\mskip{4mu}"),F("\\:","\\tmspace+{4mu}{.2222em}"),F("\\medspace","\\:"),F("\\;","\\tmspace+{5mu}{.2777em}"),F("\\thickspace","\\;"),F("\\!","\\tmspace-{3mu}{.1667em}"),F("\\negthinspace","\\!"),F("\\negmedspace","\\tmspace-{4mu}{.2222em}"),F("\\negthickspace","\\tmspace-{5mu}{.277em}"),F("\\enspace","\\kern.5em "),F("\\enskip","\\hskip.5em\\relax"),F("\\quad","\\hskip1em\\relax"),F("\\qquad","\\hskip2em\\relax"),F("\\tag","\\@ifstar\\tag@literal\\tag@paren"),F("\\tag@paren","\\tag@literal{({#1})}"),F("\\tag@literal",u=>{if(u.macros.get("\\df@tag"))throw new s("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),F("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),F("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),F("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),F("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),F("\\newline","\\\\\\relax"),F("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const Rs=ze(ot["Main-Regular"][84][1]-.7*ot["Main-Regular"][65][1]);F("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Rs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),F("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Rs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),F("\\hspace","\\@ifstar\\@hspacer\\@hspace"),F("\\@hspace","\\hskip #1\\relax"),F("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),F("\\ordinarycolon",":"),F("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),F("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),F("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),F("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),F("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),F("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),F("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),F("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),F("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),F("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),F("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),F("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),F("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),F("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),F("∷","\\dblcolon"),F("∹","\\eqcolon"),F("≔","\\coloneqq"),F("≕","\\eqqcolon"),F("⩴","\\Coloneqq"),F("\\ratio","\\vcentcolon"),F("\\coloncolon","\\dblcolon"),F("\\colonequals","\\coloneqq"),F("\\coloncolonequals","\\Coloneqq"),F("\\equalscolon","\\eqqcolon"),F("\\equalscoloncolon","\\Eqqcolon"),F("\\colonminus","\\coloneq"),F("\\coloncolonminus","\\Coloneq"),F("\\minuscolon","\\eqcolon"),F("\\minuscoloncolon","\\Eqcolon"),F("\\coloncolonapprox","\\Colonapprox"),F("\\coloncolonsim","\\Colonsim"),F("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),F("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),F("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),F("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),F("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),F("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),F("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),F("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),F("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),F("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),F("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),F("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),F("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),F("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),F("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),F("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),F("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),F("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),F("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),F("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),F("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),F("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),F("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),F("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),F("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),F("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),F("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),F("\\imath","\\html@mathml{\\@imath}{ı}"),F("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),F("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),F("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),F("⟦","\\llbracket"),F("⟧","\\rrbracket"),F("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),F("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),F("⦃","\\lBrace"),F("⦄","\\rBrace"),F("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),F("⦵","\\minuso"),F("\\darr","\\downarrow"),F("\\dArr","\\Downarrow"),F("\\Darr","\\Downarrow"),F("\\lang","\\langle"),F("\\rang","\\rangle"),F("\\uarr","\\uparrow"),F("\\uArr","\\Uparrow"),F("\\Uarr","\\Uparrow"),F("\\N","\\mathbb{N}"),F("\\R","\\mathbb{R}"),F("\\Z","\\mathbb{Z}"),F("\\alef","\\aleph"),F("\\alefsym","\\aleph"),F("\\Alpha","\\mathrm{A}"),F("\\Beta","\\mathrm{B}"),F("\\bull","\\bullet"),F("\\Chi","\\mathrm{X}"),F("\\clubs","\\clubsuit"),F("\\cnums","\\mathbb{C}"),F("\\Complex","\\mathbb{C}"),F("\\Dagger","\\ddagger"),F("\\diamonds","\\diamondsuit"),F("\\empty","\\emptyset"),F("\\Epsilon","\\mathrm{E}"),F("\\Eta","\\mathrm{H}"),F("\\exist","\\exists"),F("\\harr","\\leftrightarrow"),F("\\hArr","\\Leftrightarrow"),F("\\Harr","\\Leftrightarrow"),F("\\hearts","\\heartsuit"),F("\\image","\\Im"),F("\\infin","\\infty"),F("\\Iota","\\mathrm{I}"),F("\\isin","\\in"),F("\\Kappa","\\mathrm{K}"),F("\\larr","\\leftarrow"),F("\\lArr","\\Leftarrow"),F("\\Larr","\\Leftarrow"),F("\\lrarr","\\leftrightarrow"),F("\\lrArr","\\Leftrightarrow"),F("\\Lrarr","\\Leftrightarrow"),F("\\Mu","\\mathrm{M}"),F("\\natnums","\\mathbb{N}"),F("\\Nu","\\mathrm{N}"),F("\\Omicron","\\mathrm{O}"),F("\\plusmn","\\pm"),F("\\rarr","\\rightarrow"),F("\\rArr","\\Rightarrow"),F("\\Rarr","\\Rightarrow"),F("\\real","\\Re"),F("\\reals","\\mathbb{R}"),F("\\Reals","\\mathbb{R}"),F("\\Rho","\\mathrm{P}"),F("\\sdot","\\cdot"),F("\\sect","\\S"),F("\\spades","\\spadesuit"),F("\\sub","\\subset"),F("\\sube","\\subseteq"),F("\\supe","\\supseteq"),F("\\Tau","\\mathrm{T}"),F("\\thetasym","\\vartheta"),F("\\weierp","\\wp"),F("\\Zeta","\\mathrm{Z}"),F("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),F("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),F("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),F("\\bra","\\mathinner{\\langle{#1}|}"),F("\\ket","\\mathinner{|{#1}\\rangle}"),F("\\braket","\\mathinner{\\langle{#1}\\rangle}"),F("\\Bra","\\left\\langle#1\\right|"),F("\\Ket","\\left|#1\\right\\rangle");const Ds=u=>a=>{const c=a.consumeArg().tokens,p=a.consumeArg().tokens,b=a.consumeArg().tokens,k=a.consumeArg().tokens,R=a.macros.get("|"),B=a.macros.get("\\|");a.macros.beginGroup();const V=Ae=>xe=>{u&&(xe.macros.set("|",R),b.length&&xe.macros.set("\\|",B));let Le=Ae;return!Ae&&b.length&&xe.future().text==="|"&&(xe.popToken(),Le=!0),{tokens:Le?b:p,numArgs:0}};a.macros.set("|",V(!1)),b.length&&a.macros.set("\\|",V(!0));const Q=a.consumeArg().tokens,_e=a.expandTokens([...k,...Q,...c]);return a.macros.endGroup(),{tokens:_e.reverse(),numArgs:0}};F("\\bra@ket",Ds(!1)),F("\\bra@set",Ds(!0)),F("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),F("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),F("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),F("\\angln","{\\angl n}"),F("\\blue","\\textcolor{##6495ed}{#1}"),F("\\orange","\\textcolor{##ffa500}{#1}"),F("\\pink","\\textcolor{##ff00af}{#1}"),F("\\red","\\textcolor{##df0030}{#1}"),F("\\green","\\textcolor{##28ae7b}{#1}"),F("\\gray","\\textcolor{gray}{#1}"),F("\\purple","\\textcolor{##9d38bd}{#1}"),F("\\blueA","\\textcolor{##ccfaff}{#1}"),F("\\blueB","\\textcolor{##80f6ff}{#1}"),F("\\blueC","\\textcolor{##63d9ea}{#1}"),F("\\blueD","\\textcolor{##11accd}{#1}"),F("\\blueE","\\textcolor{##0c7f99}{#1}"),F("\\tealA","\\textcolor{##94fff5}{#1}"),F("\\tealB","\\textcolor{##26edd5}{#1}"),F("\\tealC","\\textcolor{##01d1c1}{#1}"),F("\\tealD","\\textcolor{##01a995}{#1}"),F("\\tealE","\\textcolor{##208170}{#1}"),F("\\greenA","\\textcolor{##b6ffb0}{#1}"),F("\\greenB","\\textcolor{##8af281}{#1}"),F("\\greenC","\\textcolor{##74cf70}{#1}"),F("\\greenD","\\textcolor{##1fab54}{#1}"),F("\\greenE","\\textcolor{##0d923f}{#1}"),F("\\goldA","\\textcolor{##ffd0a9}{#1}"),F("\\goldB","\\textcolor{##ffbb71}{#1}"),F("\\goldC","\\textcolor{##ff9c39}{#1}"),F("\\goldD","\\textcolor{##e07d10}{#1}"),F("\\goldE","\\textcolor{##a75a05}{#1}"),F("\\redA","\\textcolor{##fca9a9}{#1}"),F("\\redB","\\textcolor{##ff8482}{#1}"),F("\\redC","\\textcolor{##f9685d}{#1}"),F("\\redD","\\textcolor{##e84d39}{#1}"),F("\\redE","\\textcolor{##bc2612}{#1}"),F("\\maroonA","\\textcolor{##ffbde0}{#1}"),F("\\maroonB","\\textcolor{##ff92c6}{#1}"),F("\\maroonC","\\textcolor{##ed5fa6}{#1}"),F("\\maroonD","\\textcolor{##ca337c}{#1}"),F("\\maroonE","\\textcolor{##9e034e}{#1}"),F("\\purpleA","\\textcolor{##ddd7ff}{#1}"),F("\\purpleB","\\textcolor{##c6b9fc}{#1}"),F("\\purpleC","\\textcolor{##aa87ff}{#1}"),F("\\purpleD","\\textcolor{##7854ab}{#1}"),F("\\purpleE","\\textcolor{##543b78}{#1}"),F("\\mintA","\\textcolor{##f5f9e8}{#1}"),F("\\mintB","\\textcolor{##edf2df}{#1}"),F("\\mintC","\\textcolor{##e0e5cc}{#1}"),F("\\grayA","\\textcolor{##f6f7f7}{#1}"),F("\\grayB","\\textcolor{##f0f1f2}{#1}"),F("\\grayC","\\textcolor{##e3e5e6}{#1}"),F("\\grayD","\\textcolor{##d6d8da}{#1}"),F("\\grayE","\\textcolor{##babec2}{#1}"),F("\\grayF","\\textcolor{##888d93}{#1}"),F("\\grayG","\\textcolor{##626569}{#1}"),F("\\grayH","\\textcolor{##3b3e40}{#1}"),F("\\grayI","\\textcolor{##21242c}{#1}"),F("\\kaBlue","\\textcolor{##314453}{#1}"),F("\\kaGreen","\\textcolor{##71B307}{#1}");const Os={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Vo{constructor(a,c,p){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=c,this.expansionCount=0,this.feed(a),this.macros=new zo(qo,c.macros),this.mode=p,this.stack=[]}feed(a){this.lexer=new Ns(a,this.settings)}switchMode(a){this.mode=a}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(a){this.stack.push(a)}pushTokens(a){this.stack.push(...a)}scanArgument(a){let c,p,b;if(a){if(this.consumeSpaces(),this.future().text!=="[")return null;c=this.popToken(),{tokens:b,end:p}=this.consumeArg(["]"])}else({tokens:b,start:c,end:p}=this.consumeArg());return this.pushToken(new Dn("EOF",p.loc)),this.pushTokens(b),c.range(p,"")}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(a){const c=[],p=a&&a.length>0;p||this.consumeSpaces();const b=this.future();let k,R=0,B=0;do{if(k=this.popToken(),c.push(k),k.text==="{")++R;else if(k.text==="}"){if(--R,R===-1)throw new s("Extra }",k)}else if(k.text==="EOF")throw new s("Unexpected end of input in a macro argument, expected '"+(a&&p?a[B]:"}")+"'",k);if(a&&p)if((R===0||R===1&&a[B]==="{")&&k.text===a[B]){if(++B,B===a.length){c.splice(-B,B);break}}else B=0}while(R!==0||p);return b.text==="{"&&c[c.length-1].text==="}"&&(c.pop(),c.shift()),c.reverse(),{tokens:c,start:b,end:k}}consumeArgs(a,c){if(c){if(c.length!==a+1)throw new s("The length of delimiters doesn't match the number of args!");const b=c[0];for(let k=0;k<b.length;k++){const R=this.popToken();if(b[k]!==R.text)throw new s("Use of the macro doesn't match its definition",R)}}const p=[];for(let b=0;b<a;b++)p.push(this.consumeArg(c&&c[b+1]).tokens);return p}countExpansion(a){if(this.expansionCount+=a,this.expansionCount>this.settings.maxExpand)throw new s("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(a){const c=this.popToken(),p=c.text,b=c.noexpand?null:this._getExpansion(p);if(b==null||a&&b.unexpandable){if(a&&b==null&&p[0]==="\\"&&!this.isDefined(p))throw new s("Undefined control sequence: "+p);return this.pushToken(c),!1}this.countExpansion(1);let k=b.tokens;const R=this.consumeArgs(b.numArgs,b.delimiters);if(b.numArgs){k=k.slice();for(let B=k.length-1;B>=0;--B){let V=k[B];if(V.text==="#"){if(B===0)throw new s("Incomplete placeholder at end of macro body",V);if(V=k[--B],V.text==="#")k.splice(B+1,1);else if(/^[1-9]$/.test(V.text))k.splice(B,2,...R[+V.text-1]);else throw new s("Not a valid argument number",V)}}}return this.pushTokens(k),k.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){const a=this.stack.pop();return a.treatAsRelax&&(a.text="\\relax"),a}throw new Error}expandMacro(a){return this.macros.has(a)?this.expandTokens([new Dn(a)]):void 0}expandTokens(a){const c=[],p=this.stack.length;for(this.pushTokens(a);this.stack.length>p;)if(this.expandOnce(!0)===!1){const b=this.stack.pop();b.treatAsRelax&&(b.noexpand=!1,b.treatAsRelax=!1),c.push(b)}return this.countExpansion(c.length),c}expandMacroAsText(a){const c=this.expandMacro(a);return c&&c.map(p=>p.text).join("")}_getExpansion(a){const c=this.macros.get(a);if(c==null)return c;if(a.length===1){const b=this.lexer.catcodes[a];if(b!=null&&b!==13)return}const p=typeof c=="function"?c(this):c;if(typeof p=="string"){let b=0;if(p.indexOf("#")!==-1){const Q=p.replace(/##/g,"");for(;Q.indexOf("#"+(b+1))!==-1;)++b}const k=new Ns(p,this.settings),R=[];let B=k.lex();for(;B.text!=="EOF";)R.push(B),B=k.lex();return R.reverse(),{tokens:R,numArgs:b}}return p}isDefined(a){return this.macros.has(a)||ir.hasOwnProperty(a)||tn.math.hasOwnProperty(a)||tn.text.hasOwnProperty(a)||Os.hasOwnProperty(a)}isExpandable(a){const c=this.macros.get(a);return c!=null?typeof c=="string"||typeof c=="function"||!c.unexpandable:ir.hasOwnProperty(a)&&!ir[a].primitive}}const Ms=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,$r=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),wi={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ls={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class zr{constructor(a,c){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Vo(a,c,this.mode),this.settings=c,this.leftrightDepth=0}expect(a,c){if(c===void 0&&(c=!0),this.fetch().text!==a)throw new s("Expected '"+a+"', got '"+this.fetch().text+"'",this.fetch());c&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(a){this.mode=a,this.gullet.switchMode(a)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const a=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),a}finally{this.gullet.endGroups()}}subparse(a){const c=this.nextToken;this.consume(),this.gullet.pushToken(new Dn("}")),this.gullet.pushTokens(a);const p=this.parseExpression(!1);return this.expect("}"),this.nextToken=c,p}parseExpression(a,c){const p=[];for(;;){this.mode==="math"&&this.consumeSpaces();const b=this.fetch();if(zr.endOfExpression.indexOf(b.text)!==-1||c&&b.text===c||a&&ir[b.text]&&ir[b.text].infix)break;const k=this.parseAtom(c);if(k){if(k.type==="internal")continue}else break;p.push(k)}return this.mode==="text"&&this.formLigatures(p),this.handleInfixNodes(p)}handleInfixNodes(a){let c=-1,p;for(let b=0;b<a.length;b++)if(a[b].type==="infix"){if(c!==-1)throw new s("only one infix operator per group",a[b].token);c=b,p=a[b].replaceWith}if(c!==-1&&p){let b,k;const R=a.slice(0,c),B=a.slice(c+1);R.length===1&&R[0].type==="ordgroup"?b=R[0]:b={type:"ordgroup",mode:this.mode,body:R},B.length===1&&B[0].type==="ordgroup"?k=B[0]:k={type:"ordgroup",mode:this.mode,body:B};let V;return p==="\\\\abovefrac"?V=this.callFunction(p,[b,a[c],k],[]):V=this.callFunction(p,[b,k],[]),[V]}else return a}handleSupSubscript(a){const c=this.fetch(),p=c.text;this.consume(),this.consumeSpaces();const b=this.parseGroup(a);if(!b)throw new s("Expected group after '"+p+"'",c);return b}formatUnsupportedCmd(a){const c=[];for(let k=0;k<a.length;k++)c.push({type:"textord",mode:"text",text:a[k]});const p={type:"text",mode:this.mode,body:c};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[p]}}parseAtom(a){const c=this.parseGroup("atom",a);if(this.mode==="text")return c;let p,b;for(;;){this.consumeSpaces();const k=this.fetch();if(k.text==="\\limits"||k.text==="\\nolimits"){if(c&&c.type==="op"){const R=k.text==="\\limits";c.limits=R,c.alwaysHandleSupSub=!0}else if(c&&c.type==="operatorname")c.alwaysHandleSupSub&&(c.limits=k.text==="\\limits");else throw new s("Limit controls must follow a math operator",k);this.consume()}else if(k.text==="^"){if(p)throw new s("Double superscript",k);p=this.handleSupSubscript("superscript")}else if(k.text==="_"){if(b)throw new s("Double subscript",k);b=this.handleSupSubscript("subscript")}else if(k.text==="'"){if(p)throw new s("Double superscript",k);const R={type:"textord",mode:this.mode,text:"\\prime"},B=[R];for(this.consume();this.fetch().text==="'";)B.push(R),this.consume();this.fetch().text==="^"&&B.push(this.handleSupSubscript("superscript")),p={type:"ordgroup",mode:this.mode,body:B}}else if($r[k.text]){const R=Ms.test(k.text),B=[];for(B.push(new Dn($r[k.text])),this.consume();;){const Q=this.fetch().text;if(!$r[Q]||Ms.test(Q)!==R)break;B.unshift(new Dn($r[Q])),this.consume()}const V=this.subparse(B);R?b={type:"ordgroup",mode:"math",body:V}:p={type:"ordgroup",mode:"math",body:V}}else break}return p||b?{type:"supsub",mode:this.mode,base:c,sup:p,sub:b}:c}parseFunction(a,c){const p=this.fetch(),b=p.text,k=ir[b];if(!k)return null;if(this.consume(),c&&c!=="atom"&&!k.allowedInArgument)throw new s("Got function '"+b+"' with no arguments"+(c?" as "+c:""),p);if(this.mode==="text"&&!k.allowedInText)throw new s("Can't use function '"+b+"' in text mode",p);if(this.mode==="math"&&k.allowedInMath===!1)throw new s("Can't use function '"+b+"' in math mode",p);const{args:R,optArgs:B}=this.parseArguments(b,k);return this.callFunction(b,R,B,p,a)}callFunction(a,c,p,b,k){const R={funcName:a,parser:this,token:b,breakOnTokenText:k},B=ir[a];if(B&&B.handler)return B.handler(R,c,p);throw new s("No function handler for "+a)}parseArguments(a,c){const p=c.numArgs+c.numOptionalArgs;if(p===0)return{args:[],optArgs:[]};const b=[],k=[];for(let R=0;R<p;R++){let B=c.argTypes&&c.argTypes[R];const V=R<c.numOptionalArgs;(c.primitive&&B==null||c.type==="sqrt"&&R===1&&k[0]==null)&&(B="primitive");const Q=this.parseGroupOfType("argument to '"+a+"'",B,V);if(V)k.push(Q);else if(Q!=null)b.push(Q);else throw new s("Null argument, please report this as a bug")}return{args:b,optArgs:k}}parseGroupOfType(a,c,p){switch(c){case"color":return this.parseColorGroup(p);case"size":return this.parseSizeGroup(p);case"url":return this.parseUrlGroup(p);case"math":case"text":return this.parseArgumentGroup(p,c);case"hbox":{const b=this.parseArgumentGroup(p,"text");return b!=null?{type:"styling",mode:b.mode,body:[b],style:"text"}:null}case"raw":{const b=this.parseStringGroup("raw",p);return b!=null?{type:"raw",mode:"text",string:b.text}:null}case"primitive":{if(p)throw new s("A primitive argument cannot be optional");const b=this.parseGroup(a);if(b==null)throw new s("Expected group as "+a,this.fetch());return b}case"original":case null:case void 0:return this.parseArgumentGroup(p);default:throw new s("Unknown group type as "+a,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(a,c){const p=this.gullet.scanArgument(c);if(p==null)return null;let b="",k;for(;(k=this.fetch()).text!=="EOF";)b+=k.text,this.consume();return this.consume(),p.text=b,p}parseRegexGroup(a,c){const p=this.fetch();let b=p,k="",R;for(;(R=this.fetch()).text!=="EOF"&&a.test(k+R.text);)b=R,k+=b.text,this.consume();if(k==="")throw new s("Invalid "+c+": '"+p.text+"'",p);return p.range(b,k)}parseColorGroup(a){const c=this.parseStringGroup("color",a);if(c==null)return null;const p=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(c.text);if(!p)throw new s("Invalid color: '"+c.text+"'",c);let b=p[0];return/^[0-9a-f]{6}$/i.test(b)&&(b="#"+b),{type:"color-token",mode:this.mode,color:b}}parseSizeGroup(a){let c,p=!1;if(this.gullet.consumeSpaces(),!a&&this.gullet.future().text!=="{"?c=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):c=this.parseStringGroup("size",a),!c)return null;!a&&c.text.length===0&&(c.text="0pt",p=!0);const b=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(c.text);if(!b)throw new s("Invalid size: '"+c.text+"'",c);const k={number:+(b[1]+b[2]),unit:b[3]};if(!fn(k))throw new s("Invalid unit: '"+k.unit+"'",c);return{type:"size",mode:this.mode,value:k,isBlank:p}}parseUrlGroup(a){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const c=this.parseStringGroup("url",a);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),c==null)return null;const p=c.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:p}}parseArgumentGroup(a,c){const p=this.gullet.scanArgument(a);if(p==null)return null;const b=this.mode;c&&this.switchMode(c),this.gullet.beginGroup();const k=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const R={type:"ordgroup",mode:this.mode,loc:p.loc,body:k};return c&&this.switchMode(b),R}parseGroup(a,c){const p=this.fetch(),b=p.text;let k;if(b==="{"||b==="\\begingroup"){this.consume();const R=b==="{"?"}":"\\endgroup";this.gullet.beginGroup();const B=this.parseExpression(!1,R),V=this.fetch();this.expect(R),this.gullet.endGroup(),k={type:"ordgroup",mode:this.mode,loc:Cn.range(p,V),body:B,semisimple:b==="\\begingroup"||void 0}}else if(k=this.parseFunction(c,a)||this.parseSymbol(),k==null&&b[0]==="\\"&&!Os.hasOwnProperty(b)){if(this.settings.throwOnError)throw new s("Undefined control sequence: "+b,p);k=this.formatUnsupportedCmd(b),this.consume()}return k}formLigatures(a){let c=a.length-1;for(let p=0;p<c;++p){const b=a[p],k=b.text;k==="-"&&a[p+1].text==="-"&&(p+1<c&&a[p+2].text==="-"?(a.splice(p,3,{type:"textord",mode:"text",loc:Cn.range(b,a[p+2]),text:"---"}),c-=2):(a.splice(p,2,{type:"textord",mode:"text",loc:Cn.range(b,a[p+1]),text:"--"}),c-=1)),(k==="'"||k==="`")&&a[p+1].text===k&&(a.splice(p,2,{type:"textord",mode:"text",loc:Cn.range(b,a[p+1]),text:k+k}),c-=1)}}parseSymbol(){const a=this.fetch();let c=a.text;if(/^\\verb[^a-zA-Z]/.test(c)){this.consume();let k=c.slice(5);const R=k.charAt(0)==="*";if(R&&(k=k.slice(1)),k.length<2||k.charAt(0)!==k.slice(-1))throw new s(`\\verb assertion failed --
- please report what input caused this bug`);return k=k.slice(1,-1),{type:"verb",mode:"text",body:k,star:R}}Ls.hasOwnProperty(c[0])&&!tn[this.mode][c[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+c[0]+'" used in math mode',a),c=Ls[c[0]]+c.slice(1));const p=Uo.exec(c);p&&(c=c.substring(0,p.index),c==="i"?c="ı":c==="j"&&(c="ȷ"));let b;if(tn[this.mode][c]){this.settings.strict&&this.mode==="math"&&ar.indexOf(c)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+c[0]+'" used in math mode',a);const k=tn[this.mode][c].group,R=Cn.range(a);let B;if(Tr.hasOwnProperty(k)){const V=k;B={type:"atom",mode:this.mode,family:V,loc:R,text:c}}else B={type:k,mode:this.mode,loc:R,text:c};b=B}else if(c.charCodeAt(0)>=128)this.settings.strict&&(Ve(c.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+c[0]+'" used in math mode',a):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+c[0]+'"'+(" ("+c.charCodeAt(0)+")"),a)),b={type:"textord",mode:"text",loc:Cn.range(a),text:c};else return null;if(this.consume(),p)for(let k=0;k<p[0].length;k++){const R=p[0][k];if(!wi[R])throw new s("Unknown accent ' "+R+"'",a);const B=wi[R][this.mode]||wi[R].text;if(!B)throw new s("Accent "+R+" unsupported in "+this.mode+" mode",a);b={type:"accent",mode:this.mode,loc:Cn.range(a),label:B,isStretchy:!1,isShifty:!0,base:b}}return b}}zr.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var xi=function(u,a){if(!(typeof u=="string"||u instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const c=new zr(u,a);delete c.gullet.macros.current["\\df@tag"];let p=c.parse();if(delete c.gullet.macros.current["\\current@color"],delete c.gullet.macros.current["\\color"],c.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new s("\\tag works only in display equations");p=[{type:"tag",mode:"text",body:p,tag:c.subparse([new Dn("\\df@tag")])}]}return p};let Bs=function(u,a,c){a.textContent="";const p=vi(u,c).toNode();a.appendChild(p)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Bs=function(){throw new s("KaTeX doesn't work in quirks mode.")});const Ho=function(u,a){return vi(u,a).toMarkup()},Go=function(u,a){const c=new z(a);return xi(u,c)},Fs=function(u,a,c){if(c.throwOnError||!(u instanceof s))throw u;const p=Se.makeSpan(["katex-error"],[new En(a)]);return p.setAttribute("title",u.toString()),p.setAttribute("style","color:"+c.errorColor),p},vi=function(u,a){const c=new z(a);try{const p=xi(u,c);return so(p,u,c)}catch(p){return Fs(p,u,c)}};var Yo={version:"0.16.21",render:Bs,renderToString:Ho,ParseError:s,SETTINGS_SCHEMA:Y,__parse:Go,__renderToDomTree:vi,__renderToHTMLTree:function(u,a){const c=new z(a);try{const p=xi(u,c);return oo(p,u,c)}catch(p){return Fs(p,u,c)}},__setFontMetrics:pt,__defineSymbol:_,__defineFunction:We,__defineMacro:F,__domTree:{Span:sr,Anchor:or,SymbolNode:En,SvgNode:Bn,PathNode:$n,LineNode:dr}},jo=Yo;return r=r.default,r}()})})(katex);var katexExports=katex.exports,__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dist,"__esModule",{value:!0});const katex_1=__importDefault(katexExports);function isValidInlineDelim(e,t){const n=e.src[t-1],r=e.src[t],i=e.src[t+1];if(r!=="$")return{can_open:!1,can_close:!1};let s=!1,o=!1;return n!=="$"&&n!=="\\"&&(n===void 0||isWhitespace(n)||!isWordCharacterOrNumber(n))&&(s=!0),i!=="$"&&(i==null||isWhitespace(i)||!isWordCharacterOrNumber(i))&&(o=!0),{can_open:s,can_close:o}}function isWhitespace(e){return/^\s$/u.test(e)}function isWordCharacterOrNumber(e){return/^[\w\d]$/u.test(e)}function isValidBlockDelim(e,t){const n=e.src[t-1],r=e.src[t],i=e.src[t+1],s=e.src[t+2];return r==="$"&&n!=="$"&&n!=="\\"&&i==="$"&&s!=="$"?{can_open:!0,can_close:!0}:{can_open:!1,can_close:!1}}function inlineMath(e,t){if(e.src[e.pos]!=="$")return!1;const n=e.tokens.at(-1);if((n==null?void 0:n.type)==="html_inline"&&/^<\w+.+[^/]>$/.test(n.content))return!1;let r=isValidInlineDelim(e,e.pos);if(!r.can_open)return t||(e.pending+="$"),e.pos+=1,!0;let i=e.pos+1,s=i,o;for(;(s=e.src.indexOf("$",s))!==-1;){for(o=s-1;e.src[o]==="\\";)o-=1;if((s-o)%2==1)break;s+=1}if(s===-1)return t||(e.pending+="$"),e.pos=i,!0;if(s-i===0)return t||(e.pending+="$$"),e.pos=i+1,!0;if(r=isValidInlineDelim(e,s),!r.can_close)return t||(e.pending+="$"),e.pos=i,!0;if(!t){const l=e.push("math_inline","math",0);l.markup="$",l.content=e.src.slice(i,s)}return e.pos=s+1,!0}function blockMath(e,t,n,r){var i,s,o,l=!1,d,f=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(f+2>m||e.src.slice(f,f+2)!=="$$")return!1;f+=2;let g=e.src.slice(f,m);if(r)return!0;for(g.trim().slice(-2)==="$$"&&(g=g.trim().slice(0,-2),l=!0),s=t;!l&&(s++,!(s>=n||(f=e.bMarks[s]+e.tShift[s],m=e.eMarks[s],f<m&&e.tShift[s]<e.blkIndent)));)e.src.slice(f,m).trim().slice(-2)==="$$"?(o=e.src.slice(0,m).lastIndexOf("$$"),i=e.src.slice(f,o),l=!0):e.src.slice(f,m).trim().includes("$$")&&(o=e.src.slice(0,m).trim().indexOf("$$"),i=e.src.slice(f,o),l=!0);return e.line=s+1,d=e.push("math_block","math",0),d.block=!0,d.content=(g&&g.trim()?g+`
- `:"")+e.getLines(t+1,s,e.tShift[t],!0)+(i&&i.trim()?i:""),d.map=[t,e.line],d.markup="$$",!0}function blockBareMath(e,t,n,r){const i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(!e.src.slice(i,s).match(/^\s*\\begin\s*\{([^{}]+)\}/))return!1;if(t>0){const w=e.bMarks[t-1]+e.tShift[t-1],C=e.eMarks[t-1],I=e.src.slice(w,C);if(!/^\s*$/.test(I))return!1}if(r)return!0;const d=[];let f=t,m,g=!1;e:for(;!g&&!(f>=n);f++){const w=e.bMarks[f]+e.tShift[f],C=e.eMarks[f];if(w<C&&e.tShift[f]<e.blkIndent)break;const I=e.src.slice(w,C);for(const D of I.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(D[1]==="\\begin")d.push(D[2].trim());else if(D[1]==="\\end"&&(d.pop(),!d.length)){m=e.src.slice(w,C),g=!0;break e}}e.line=f+1;const E=e.push("math_block","math",0);return E.block=!0,E.content=(e.getLines(t,f,e.tShift[t],!0)+(m??"")).trim(),E.map=[t,e.line],E.markup="$$",!0}function inlineMathBlock(e,t){var n,r,i,s,o;if(e.src.slice(e.pos,e.pos+2)!=="$$")return!1;if(s=isValidBlockDelim(e,e.pos),!s.can_open)return t||(e.pending+="$$"),e.pos+=2,!0;for(n=e.pos+2,r=n;(r=e.src.indexOf("$$",r))!==-1;){for(o=r-1;e.src[o]==="\\";)o-=1;if((r-o)%2==1)break;r+=2}return r===-1?(t||(e.pending+="$$"),e.pos=n,!0):r-n===0?(t||(e.pending+="$$$$"),e.pos=n+2,!0):(s=isValidBlockDelim(e,r),s.can_close?(t||(i=e.push("math_block","math",0),i.block=!0,i.markup="$$",i.content=e.src.slice(n,r)),e.pos=r+2,!0):(t||(e.pending+="$$"),e.pos=n,!0))}function inlineBareBlock(e,t){const n=e.src.slice(e.pos);if(!/^\n\\begin/.test(n))return!1;if(e.pos+=1,t)return!0;const r=n.split(/\n/g).slice(1);let i;const s=[];e:for(var o=0;o<r.length;++o){const f=r[o];for(const m of f.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(m[1]==="\\begin")s.push(m[2].trim());else if(m[1]==="\\end"&&(s.pop(),!s.length)){i=o;break e}}if(typeof i>"u")return!1;const l=r.slice(0,i+1).reduce((f,m)=>f+m.length,0)+i+1,d=e.push("math_inline_bare_block","math",0);return d.block=!0,d.markup="$$",d.content=n.slice(1,l),e.pos=e.pos+l,!0}function handleMathInHtml(e,t,n,r){const i=e.tokens;for(let s=i.length-1;s>=0;s--){const o=i[s],l=[];if(o.type!=="html_block")continue;const d=o.content;for(const f of d.matchAll(r)){if(!f.groups)continue;const m=f.groups.html_before_math,g=f.groups.math,E=f.groups.html_after_math;m&&l.push({...o,type:"html_block",map:null,content:m}),g&&l.push({...o,type:t,map:null,content:g,markup:n,block:!0,tag:"math"}),E&&l.push({...o,type:"html_block",map:null,content:E})}l.length>0&&i.splice(s,1,...l)}return!0}function escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function default_1(e,t){const n=(t==null?void 0:t.katex)??katex_1.default,r=t==null?void 0:t.enableBareBlocks,i=t==null?void 0:t.enableMathBlockInHtml,s=t==null?void 0:t.enableMathInlineInHtml,o=t==null?void 0:t.enableFencedBlocks;e.inline.ruler.after("escape","math_inline",inlineMath),e.inline.ruler.after("escape","math_inline_block",inlineMathBlock),r&&e.inline.ruler.before("text","math_inline_bare_block",inlineBareBlock),e.block.ruler.after("blockquote","math_block",(w,C,I,D)=>r&&blockBareMath(w,C,I,D)?!0:blockMath(w,C,I,D),{alt:["paragraph","reference","blockquote","list"]});const l=/(?<html_before_math>[\s\S]*?)\$\$(?<math>[\s\S]+?)\$\$(?<html_after_math>(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,d=/(?<html_before_math>[\s\S]*?)\$(?<math>.*?)\$(?<html_after_math>(?:(?!\$.*?\$)[\s\S])*)/gm;i&&e.core.ruler.push("math_block_in_html_block",w=>handleMathInHtml(w,"math_block","$$",l)),s&&e.core.ruler.push("math_inline_in_html_block",w=>handleMathInHtml(w,"math_inline","$",d));const f=w=>{const C=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(w);try{return n.renderToString(w,{...t,displayMode:C})}catch(I){return t!=null&&t.throwOnError&&console.log(I),`<span class="katex-error" title="${escapeHtml(w)}">${escapeHtml(I+"")}</span>`}},m=(w,C)=>{const I=w[C].content,L=I.length>2&&I[0]==="`"&&I[I.length-1]==="`"?I.slice(1,-1):I;return f(L)},g=w=>{try{return`<p class="katex-block">${n.renderToString(w,{...t,displayMode:!0})}</p>`}catch(C){return t!=null&&t.throwOnError&&console.log(C),`<p class="katex-block katex-error" title="${escapeHtml(w)}">${escapeHtml(C+"")}</p>`}},E=(w,C)=>g(w[C].content)+`
- `;if(e.renderer.rules.math_inline=m,e.renderer.rules.math_inline_block=E,e.renderer.rules.math_inline_bare_block=E,e.renderer.rules.math_block=E,o){const w="math",C=e.renderer.rules.fence;e.renderer.rules.fence=function(I,D,L,Y,G){const z=I[D];return z.info.trim().toLowerCase()===w&&o?g(z.content)+`
- `:(C==null?void 0:C.call(this,I,D,L,Y,G))||""}}}var _default=dist.default=default_1;function initializeMarkdownIt(){const e=MarkdownIt({html:!0,breaks:!0});return e.use(ins_plugin$1).use(ins_plugin).use(sub_plugin).use(sup_plugin),e}function createTransformHooks(e){return{transformer:e,parser:new Hook,beforeParse:new Hook,afterParse:new Hook,retransform:new Hook}}function definePlugin(e){return e}const svgMarked=`<svg width="16" height="16" viewBox="0 -3 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>
- `,svgUnmarked=`<svg width="16" height="16" viewBox="0 -3 24 24"><path fill-rule="evenodd" d="M6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-5z" clip-rule="evenodd"/></svg>
- `,name$5="checkbox",images={" ":svgUnmarked.trim(),x:svgMarked.trim()},plugin$3={name:name$5,transform(e){return e.parser.tap(t=>{t.core.ruler.before("inline","checkbox",n=>{for(let r=2;r<n.tokens.length;r+=1){const i=n.tokens[r];if(i.type==="inline"&&i.content){const s=n.tokens[r-1].type,o=n.tokens[r-2].type;(s==="heading_open"||s==="paragraph_open"&&o==="list_item_open")&&(i.content=i.content.replace(/^\[(.)\] /,(l,d)=>images[d]?`${images[d]} `:l))}}return!1})}),{}}},name$4="frontmatter",pluginFrontmatter={name:name$4,transform(e){return e.beforeParse.tap((t,n)=>{var r;const{content:i}=n;if(!/^---\r?\n/.test(i))return;const s=/\n---\r?\n/.exec(i);if(!s)return;const o=i.slice(4,s.index).trimEnd();let l;try{l=parse(o.replace(/\r?\n|\r/g,`
- `)),l!=null&&l.markmap&&(l.markmap=normalizeMarkmapJsonOptions(l.markmap))}catch{return}n.frontmatter=l,n.parserOptions={...n.parserOptions,...(r=l==null?void 0:l.markmap)==null?void 0:r.htmlParser},n.frontmatterInfo={lines:i.slice(0,s.index).split(`
- `).length+1,offset:s.index+s[0].length}}),{}}};function normalizeMarkmapJsonOptions(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=normalizeStringArray(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=normalizeNumber(e[t]))}),e}function normalizeStringArray(e){let t;return typeof e=="string"?t=[e]:Array.isArray(e)&&(t=e.filter(n=>n&&typeof n=="string")),t!=null&&t.length?t:void 0}function normalizeNumber(e){if(!isNaN(+e))return+e}function patchJSItem(e,t){return t.type==="script"&&t.data.src?{...t,data:{...t.data,src:e.getFullUrl(t.data.src)}}:t}function patchCSSItem(e,t){return t.type==="stylesheet"&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}const name$3="hljs",preloadScripts$1=["@highlightjs/cdn-assets@11.11.1/highlight.min.js"].map(e=>buildJSItem(e)),styles$1=["@highlightjs/cdn-assets@11.11.1/styles/default.min.css"].map(e=>buildCSSItem(e)),config$1={versions:{hljs:"11.11.1"},preloadScripts:preloadScripts$1,styles:styles$1},plugin$2={name:name$3,config:config$1,transform(e){var t,n,r;let i;const s=((n=(t=plugin$2.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(d=>patchJSItem(e.transformer.urlBuilder,d)))||[],o=()=>(i||(i=loadJS(s)),i);let l=noop;return e.parser.tap(d=>{d.set({highlight:(f,m)=>{l();const{hljs:g}=window;return g?g.highlightAuto(f,m?[m]:void 0).value:(o().then(()=>{e.retransform.call()}),f)}})}),e.beforeParse.tap((d,f)=>{l=()=>{f.features[name$3]=!0}}),{styles:(r=plugin$2.config)==null?void 0:r.styles}}};function addDefaultVersions(e,t,n){return e.map(r=>{if(typeof r=="string"&&!r.includes("://")){r.startsWith("npm:")||(r=`npm:${r}`);const i=4+t.length;r.startsWith(`npm:${t}/`)&&(r=`${r.slice(0,i)}@${n}${r.slice(i)}`)}return r})}var define_define_KATEX_RESOURCES_default=["katex@0.16.18/dist/fonts/KaTeX_AMS-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Script-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size1-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size2-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size3-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size4-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Typewriter-Regular.woff2"];const name$2="katex",preloadScripts=["katex@0.16.18/dist/katex.min.js"].map(e=>buildJSItem(e)),webfontloader=buildJSItem("webfontloader@1.6.28/webfontloader.js");webfontloader.data.defer=!0;const styles=["katex@0.16.18/dist/katex.min.css"].map(e=>buildCSSItem(e)),config={versions:{katex:"0.16.18",webfontloader:"1.6.28"},preloadScripts,scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},webfontloader],styles,resources:define_define_KATEX_RESOURCES_default};function interop(e){return e.default||e}const katexPlugin=interop(_default),plugin$1={name:name$2,config,transform(e){var t,n,r,i;let s;const o=((n=(t=plugin$1.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(m=>patchJSItem(e.transformer.urlBuilder,m)))||[],l=()=>(s||(s=loadJS(o)),s),d=(m,g)=>{const{katex:E}=window;return E?E.renderToString(m,{displayMode:g,throwOnError:!1}):(l().then(()=>{e.retransform.call()}),m)};let f=noop;return e.parser.tap(m=>{m.use(katexPlugin),["math_block","math_inline"].forEach(g=>{const E=(w,C)=>(f(),d(w[C].content,!!w[C].block));m.renderer.rules[g]=E})}),e.beforeParse.tap((m,g)=>{f=()=>{g.features[name$2]=!0}}),e.afterParse.tap((m,g)=>{var E;const w=(E=g.frontmatter)==null?void 0:E.markmap;w&&["extraJs","extraCss"].forEach(C=>{var I,D;const L=w[C];L&&(w[C]=addDefaultVersions(L,name$2,((D=(I=plugin$1.config)==null?void 0:I.versions)==null?void 0:D.katex)||""))})}),{styles:(r=plugin$1.config)==null?void 0:r.styles,scripts:(i=plugin$1.config)==null?void 0:i.scripts}}},name$1="npmUrl",pluginNpmUrl={name:name$1,transform(e){return e.afterParse.tap((t,n)=>{const{frontmatter:r}=n,i=r==null?void 0:r.markmap;i&&["extraJs","extraCss"].forEach(s=>{const o=i[s];o&&(i[s]=o.map(l=>l.startsWith("npm:")?e.transformer.urlBuilder.getFullUrl(l.slice(4)):l))})}),{}}},name="sourceLines",plugin={name,transform(e){let t=0;return e.beforeParse.tap((n,r)=>{var i;t=((i=r.frontmatterInfo)==null?void 0:i.lines)||0}),e.parser.tap(n=>{n.renderer.renderAttrs=wrapFunction(n.renderer.renderAttrs,(r,i)=>{if(i.block&&i.map){const s=i.map.map(o=>o+t);i.attrSet("data-lines",s.join(","))}return r(i)}),n.renderer.rules.fence&&(n.renderer.rules.fence=wrapFunction(n.renderer.rules.fence,(r,i,s,...o)=>{let l=r(i,s,...o);const d=i[s];if(l.startsWith("<pre>")&&d.map){const f=d.map.map(m=>m+t);l=l.slice(0,4)+` data-lines="${f.join(",")}"`+l.slice(4)}return l}))}),{}}},plugins=[pluginFrontmatter,plugin$1,plugin$2,pluginNpmUrl,plugin$3,plugin],builtInPlugins=plugins;function cleanNode(e){for(;!e.content&&e.children.length===1;)e=e.children[0];for(;e.children.length===1&&!e.children[0].content;)e={...e,children:e.children[0].children};return{...e,children:e.children.map(cleanNode)}}class Transformer{constructor(t=builtInPlugins){this.assetsMap={},this.urlBuilder=new UrlBuilder,this.hooks=createTransformHooks(this),this.plugins=t.map(i=>typeof i=="function"?i():i);const n={};for(const{name:i,transform:s}of this.plugins)n[i]=s(this.hooks);this.assetsMap=n;const r=initializeMarkdownIt();this.md=r,this.hooks.parser.call(r)}transform(t,n){var r;const i={content:t,features:{},parserOptions:n};this.hooks.beforeParse.call(this.md,i);let{content:s}=i;i.frontmatterInfo&&(s=s.slice(i.frontmatterInfo.offset));const o=this.md.render(s,{});this.hooks.afterParse.call(this.md,i);const l=cleanNode(buildTree(o,i.parserOptions));return l.content||(l.content=`${((r=i.frontmatter)==null?void 0:r.title)||""}`),{...i,root:l}}resolveJS(t){return patchJSItem(this.urlBuilder,t)}resolveCSS(t){return patchCSSItem(this.urlBuilder,t)}getAssets(t){const n=[],r=[];t??(t=this.plugins.map(i=>i.name));for(const i of t.map(s=>this.assetsMap[s]))i&&(i.styles&&n.push(...i.styles),i.scripts&&r.push(...i.scripts));return{styles:n.map(i=>this.resolveCSS(i)),scripts:r.map(i=>this.resolveJS(i))}}getUsedAssets(t){const n=this.plugins.map(r=>r.name).filter(r=>t[r]);return this.getAssets(n)}}const _sfc_main$8={__name:"MindMap",props:{content:{type:String,default:""},box_style:{type:Object,default:{width:"100%",height:"100%"}},svg_style:{type:Object,default:{width:"100%",height:"100%"}}},emits:["extend"],setup(__props,{expose:__expose,emit:__emit}){const transformer=new Transformer,{scripts,styles}=transformer.getAssets();loadCSS(styles),loadJS(scripts,{getMarkmap:()=>markmap});const props=__props,emits=__emit,svgRef=ref();let end_node_list=[],mark_map,is_pause_observe=!1,plus_icon_list=[],plus_icon_index=1,timer_progress=null;function loopTreeNode(e,t){const n=e.children,r=n.length;if(r===0)end_node_list.push(t);else for(let i=0;i<r;i++){const s=n[i],o=JSON.parse(JSON.stringify(t));o.push(i),loopTreeNode(s,o)}}const update=async e=>{console.log(e,111);const n=transformer.transform(e).root;loopTreeNode(n,[0]),console.log(mark_map,888),await mark_map.setData(n),mark_map.fit(),setTimeout(()=>{attachPlusIcon(n),observeMindMapChanged(n)},500)},initMarkMap=e=>{mark_map=it.create(svgRef.value,{paddingX:0,lineWidth:t=>1}),update(e)},updateMarkMap=()=>{update(props.content)};function observeMindMapChanged(e){const t=new MutationObserver(r=>{if(is_pause_observe)return;let i=0,s=0;r.forEach(o=>{o.type==="childList"?(o.addedNodes.length>0&&(s=s+o.addedNodes.length),o.removedNodes.length>0&&(i=i+o.removedNodes.length)):o.type}),is_pause_observe=!0,setTimeout(()=>{attachPlusIcon(e),is_pause_observe=!1},500)}),n=svgRef.value;t.observe(n,{childList:!0,subtree:!0})}function attachPlusIcon(root_value){end_node_list.forEach((item,index)=>{let str=item.toString();str=str.replace(/,/g,"].children["),str="root_value["+str+"]",str=str.replace("root_value[0].","root_value.");let cur_node=null;eval(`cur_node=${str}`);const result=mark_map.findElement(cur_node);if(!result)return;const node_group=result.g,node_data=result.data;node_group&&node_group.querySelectorAll("foreignObject.markmap-foreign").forEach(t=>{if(t.childNodes.length===1){const r=generatePlusIconDiv(node_data,root_value);t.appendChild(r)}})})}function generatePlusIconDiv(e,t){const n=document.createElement("div");n.setAttribute("class","mindmap-full-svg-extend-wrap");const r=document.createElement("div");r.setAttribute("class","mindmap-svg-icon-wrap"),r.innerHTML=`
- <svg width="16" height="16" class="mindmap-full-svg-extend" data-id="mindmap-full-extend-svg" xmlns="http://www.w3.org/1999/xhtml">
- <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 4c-.368 0-.667.283-.667.727v2.606H4.727l-.127.02c-.404.082-.6.34-.6.647 0 .368.283.667.727.667l2.606-.001v2.607l.02.127c.082.404.34.6.647.6.368 0 .667-.283.667-.727l-.001-2.607h2.607l.127-.019c.404-.082.6-.34.6-.647 0-.368-.283-.667-.727-.667H8.666V4.727L8.648 4.6C8.565 4.196 8.307 4 8 4Z" fill="#1D6FFF" fill-rule="evenodd"></path>
- </svg>
- `,n.appendChild(r);const i=plus_icon_index;return r.setAttribute("data-index",i),r.setAttribute("clickable",1),r.addEventListener("click",function(s){this.getAttribute("clickable")/1!==0&&plus_icon_list.forEach(l=>{l.getAttribute("data-index")/1===i?(l.setAttribute("style","opacity: 1;cursor:pointer;"),mark_map.setOptions({toggleRecursively:!1}),emits("extend",{node:e,full:t,ele:l}),updateIconProgress(l)):(l.setAttribute("clickable",0),l.setAttribute("style","opacity: 0.1;cursor:default;"))})}),plus_icon_list.push(r),plus_icon_index=plus_icon_index+1,n}function genProgressSpan(e){return`<span style="font-size:10px;display: inline-block;text-align:center;">${e}%</span>`}function updateIconProgress(e){if(timer_progress!=null){console.log("正在进行中,不用重复点击");return}let t=0;e.innerHTML=genProgressSpan(t),timer_progress=setInterval(()=>{if(is_pause_observe=!0,t=t+1,e.innerHTML=genProgressSpan(t),t===88){clearInterval(timer_progress);return}},300)}const applyZoom=e=>{const n=svgRef.value.childNodes[1],r=n.getAttribute("transform"),s=r.match(/scale\(([^)]+)\)/)[1]/1,l=`${r.split(" ")[0]} scale(${s+e})`;n.setAttribute("transform",l)},zoomIn=()=>{applyZoom(.1)},zoomOut=()=>{applyZoom(-.1)},zoomReset=()=>{mark_map.fit()},downloadSVG=()=>{const e=mark_map.svg;console.log(e);const t=new Blob([e],{type:"image/png"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="mindmap.png",r.click(),URL.revokeObjectURL(n)},downloadPNG=()=>{const e="png",n="export."+e,r=svgRef.value;var s=new XMLSerializer().serializeToString(r);const o=s.match(/\<g transform="translate\(.+?,(.+?)\) scale\((.+?)\)"/),l=parseFloat(o[2]),d=Math.round(parseFloat(o[1])/l)*1,f=r.getBBox();Math.round(f.x);const m=Math.round(f.y),g=Math.round(f.width),E=Math.round(f.height),w=Math.round(m/l)*1,C=Math.round(g/l)*1,I=Math.round(E/l)*1;s=s.replace(/\<g transform="translate\((.+?)\) scale\((.+?)\)"/,`<g transform="translate(0,${d}) scale(1)"`),s=s.replace(/<svg ([^>]+?)( height=".+?")(.*?)>/,"<svg $1$2>"),s=s.replace(/<svg /,`<svg width="${C}" height="${I}" viewBox="0 ${w} ${C+8} ${I+8}" `);const D=new Image;D.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`,D.onload=()=>{const L=document.createElement("canvas"),Y=L.getContext("2d");L.width=C+16,L.height=I+16,Y.fillStyle="white",Y.fillRect(0,0,L.width,L.height),Y.drawImage(D,0,0,C,I,8,8,C,I);const G=L.toDataURL("image/"+e),z=document.createElement("a");z.style.display="none",z.href=G,z.download=n,document.body.appendChild(z),z.click(),setTimeout(()=>z.remove(),1)}};return watch(()=>props.content,(e,t)=>{clearInterval(timer_progress),is_pause_observe=!1,end_node_list=[],is_pause_observe=!1,plus_icon_list=[],plus_icon_index=1,timer_progress=null,mark_map.destroy(),mark_map=null,console.log(props.content,111),initMarkMap(props.content)}),onMounted(()=>initMarkMap(props.content)),onUpdated(updateMarkMap),__expose({zoomIn,zoomReset,zoomOut,downloadSVG,downloadPNG}),(e,t)=>(openBlock(),createElementBlock("div",{style:normalizeStyle(__props.box_style)},[(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",style:normalizeStyle(__props.svg_style),ref_key:"svgRef",ref:svgRef},null,4))],4))}},MindMap=_export_sfc$1(_sfc_main$8,[["__scopeId","data-v-91f3aea8"]]),_sfc_main$7={__name:"Conversation-chat-mind-tools",props:{isFullScreen:Boolean},emits:["toZoomIn","toZoomOut","toZoomReset","toFullScreen","toDownload","toExitFullScreen"],setup(e,{emit:t}){const n=e,r=t,i=()=>{r("toZoomIn")},s=()=>{r("toZoomOut")},o=()=>{r("toZoomReset")},l=()=>{r("toFullScreen")},d=()=>{r("toExitFullScreen")},f=()=>{r("toDownload")};return(m,g)=>{const E=resolveComponent("icon-plus"),w=Tooltip,C=resolveComponent("icon-minus"),I=resolveComponent("icon-scan"),D=resolveComponent("icon-fullscreen"),L=resolveComponent("icon-fullscreen-exit"),Y=resolveComponent("icon-download");return openBlock(),createElementBlock(Fragment$1,null,[createVNode(w,{content:m.$t("conversation.zoom_in"),position:"top",mini:""},{default:withCtx(()=>[createVNode(E,{class:"icon",onClick:i})]),_:1},8,["content"]),createVNode(w,{content:m.$t("conversation.zoom_out"),position:"top",mini:""},{default:withCtx(()=>[createVNode(C,{class:"icon",onClick:s})]),_:1},8,["content"]),createVNode(w,{content:m.$t("conversation.fit"),position:"top",mini:""},{default:withCtx(()=>[createVNode(I,{class:"icon",onClick:o})]),_:1},8,["content"]),createVNode(w,{content:m.$t("conversation.full_screen"),position:"top",mini:""},{default:withCtx(()=>[n.isFullScreen?(openBlock(),createBlock(L,{key:1,class:"icon",onClick:d})):(openBlock(),createBlock(D,{key:0,class:"icon",onClick:l}))]),_:1},8,["content"]),createVNode(w,{content:m.$t("conversation.download"),position:"top",mini:""},{default:withCtx(()=>[createVNode(Y,{class:"icon",onClick:f})]),_:1},8,["content"])],64)}}},ConversationChatMindMapTools=_export_sfc$1(_sfc_main$7,[["__scopeId","data-v-0fb9867a"]]),_hoisted_1$5={class:"page-list"},_hoisted_2$4={class:"list-item-title"},_hoisted_3$4={class:"item-index"},_hoisted_4$4=["onClick"],_hoisted_5$1={class:"item-des"},_hoisted_6$1={class:"item-bottom"},_hoisted_7$1={class:"item-origin"},_sfc_main$6={__name:"Web-page-list",props:{search_list:{type:Array,default:()=>[]}},setup(e){const t=e,n=computed(()=>t.search_list),r=i=>{window.open(i.url,"__blank")};return(i,s)=>{const o=Link,l=Empty;return openBlock(),createElementBlock(Fragment$1,null,[createBaseVNode("div",_hoisted_1$5,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(n.value,(d,f)=>(openBlock(),createElementBlock("div",{class:"page-list-item",key:f},[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("span",_hoisted_3$4,toDisplayString(f+1),1),createBaseVNode("span",{class:"item-title",onClick:m=>r(d)},toDisplayString(d.title),9,_hoisted_4$4)]),createBaseVNode("div",_hoisted_5$1,toDisplayString(d.content),1),createBaseVNode("div",_hoisted_6$1,[createBaseVNode("div",_hoisted_7$1,[s[0]||(s[0]=createBaseVNode("img",{src:""},null,-1)),createBaseVNode("span",null,toDisplayString(d.engine),1)]),createVNode(o,{onClick:m=>r(d)},{default:withCtx(()=>[createTextVNode(toDisplayString(d.url),1)]),_:2},1032,["onClick"]),createBaseVNode("div",null,toDisplayString(d.time),1)])]))),128))]),n.value.length?createCommentVNode("",!0):(openBlock(),createBlock(l,{key:0}))],64)}}},WebPageList=_export_sfc$1(_sfc_main$6,[["__scopeId","data-v-e0421438"]]),_hoisted_1$4={class:"web-page"},_hoisted_2$3={class:"header"},_hoisted_3$3={class:"header-left"},_hoisted_4$3={class:"header-right"},_sfc_main$5={__name:"Conversation-chat-web-page",props:{search_list:{type:Array,default:()=>[]}},emits:["toClose"],setup(e,{emit:t}){const n=t,r=()=>{n("toClose")};return(i,s)=>{const o=resolveComponent("icon-close"),l=Button;return openBlock(),createElementBlock("div",_hoisted_1$4,[createBaseVNode("div",_hoisted_2$3,[createBaseVNode("div",_hoisted_3$3,toDisplayString(i.$t("conversation.web_page_title")),1),createBaseVNode("div",_hoisted_4$3,[createVNode(l,{class:"btn",onClick:r},{default:withCtx(()=>[createVNode(o)]),_:1})])]),createVNode(WebPageList,{class:"page-list",search_list:e.search_list},null,8,["search_list"])])}}},ConversationChatWebPage=_export_sfc$1(_sfc_main$5,[["__scopeId","data-v-2313f042"]]),file_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFWSURBVDiNvZS/TsJQFMZ/57aaUjDRuLhoMWHChOBsnHTgAVycjIkPgJOv4QsYeQDcHRzZxSY4kRAmXYwOUIjSXgctQWnLP+M33XPO/X75TnJz4Y8lP6pGPmOvGAeBltVEk6LT23RvJgLtduEeKE6TRMNlz3HPY4HpVn5DK/MJqEmgr5JggZIzgb0oqBkefJYtRQBIs7vtVhLjNfLVVMa8FSin2gVGoWrSapHaeez0OoMSUBcoW61idjHgNxSk/rttRt0FoJHPWGt6PWrUf5WXL+C4YoFp2zjSH3IdPdOnXajMBPSVaqoYk6+kGeeLBfadhxpQi5vPDEy3CqVA9EVYKyXP3S33eG5goMgIkg1rHbC0UMKe41aB6jSQUc3/Dv8LOFzZ4L2vMQGds9qFk+nsOhd6w87c39eI6p7j7o4lBPA6g33bNg4FEj/YYT548zz/bsYAs+kTB/tofKoXUmIAAAAASUVORK5CYII=",file_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFESURBVDiNrZSxTgJBEIa/AU4hoTAxZygpeACtjZUWPIAkmiBq4gNg5Wv4AkbC2YG9hSU9PAC9ho2JBQkkhBsLvQvo3nEn/NXOzM63/2STgQ1LFgO3psVMgWMfdmKbfMajJ3leCdyrax9hP4kThXvjyW0k0L3Sksx5A3oKD7EOhRuUQxs0FxyyU/K+A8DQeNKKA7o17UqBF1Ga7oWyCM2smMwq05GxTqgiDASapTMtrwUMoCiD3/mc7TJ8//jMYddWc2Z8mI6MbbVIIHlOt+DRVtIs10ArHRCGUU0/NasigcaTHtCLeTAd0K1rFbgLE8K78eT830AyFEUph7HirOXQtKULdJNAln1sWBsHhiPP80xlDkDFbehlom6lEvQGqeX11dA+mmx9hRIGo7Yc/HEIoBOOZJsTlfgFG7KUT53ymspAWn0Bk4Rgv8IngDsAAAAASUVORK5CYII=",file_3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAFbSURBVDiNrZS9TgJBFIXPWVd2QUxMbOxYExIQGq2NlRY8gI2VMfEBsPI1fAEjD4C9hSU9NCAYEqTSxsRikZGEuRYgP7q77Aqnmrl3zpdzM8kFVizOXuo5SW4OB8dCbgWZBOI6Tet+IfAlo6og9kMlEdykWvaVL7CTc3eozVcSFS1yGwgDLgEeekHNyUmv2aN52N5t2qUgYD0n5Q2tHoQsdjMKs1BjwWSeyjfo9gy7ALImRLGT7TtLAX+gFNR+102vx8Dox+Oitr16fdrv+QZdr54vMKHVKcE7z56oCwClSEBDow2DniZqafv5fIGp53gFQMWvHxnYyagCieuZXG9O0zr7N9AAkwJxphW9vlTCVMsqAyiHgcwHWbFWDpyObAwVtAkRSXezg/MwZhGdBsfesebX195XFSKh1tdEZM15sg7+JgTQY+woMRycwNCBC3YibXx8mrHHSAGi6hvwFHOS+0mwlwAAAABJRU5ErkJggg==",edit_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAEnSURBVDiNzdQhS0NRFADg784nGAQFDQbDgmHRahAMgr/B/yCIwTAsD7YFm39CMAgKBjGpIFgWDIuLBoOgwSC4t2fYnE/0jflm8KTL4ZwPzrmXyx9HKNKUxmZ1bYCSixB7LgymVRWRc5T7qbYJKyH22PN/j11iETuoYknH1kfNyGAGm5faDDUHuq5AMPMr8BtWd5xWVZScoKPrcGQwF8vmGpof9UMvZSSs7jjbkwsWwXLBotiP4DjYN3Bc7AuYxsoSt+NgEA1OiW0sUBwj+w6DNTyEmqOiWI/R/z0ST2ijhXVMDUaPTXszl6tMSkLs/nPkjuX+NpdQFjR17Ye60/46zpSs5YIJ6Z7V0HDTAyNNiV2plshNiL18aUg1cD1kzleT7oZs4h/FO8oTmImYRjiTAAAAAElFTkSuQmCC",_hoisted_1$3={class:"dialog-common-used"},_hoisted_2$2=["onClick"],_hoisted_3$2=["src"],_hoisted_4$2={class:"dialog-common-used-item-text"},_sfc_main$4={__name:"DialogCommonUsed",emits:["updateAskTxt"],setup(e,{emit:t}){const n=t,r=ref([{value:"总结文本",icon:file_1},{value:"帮我写",icon:edit_1},{value:"方案构思",icon:file_2},{value:"提供建议",icon:file_3}]),i=s=>{n("updateAskTxt",s.value)};return(s,o)=>(openBlock(),createElementBlock("div",_hoisted_1$3,[(openBlock(!0),createElementBlock(Fragment$1,null,renderList(r.value,l=>(openBlock(),createElementBlock("div",{class:"dialog-common-used-item",key:l.value,onClick:d=>i(l)},[createBaseVNode("img",{src:l.icon,alt:""},null,8,_hoisted_3$2),createBaseVNode("div",_hoisted_4$2,toDisplayString(l.value),1)],8,_hoisted_2$2))),128))]))}},DialogCommonUsed=_export_sfc$1(_sfc_main$4,[["__scopeId","data-v-77a71edc"]]),_imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAE5SURBVDiNrZMxSwNBEIW/20mR0tIikAixs7Q9OBErBUGwsLMRLIT8BVt/gem0sE2nncXCXf6BhUIgIVyRwuLKFLe3Ft6d6+IFoj7YYt4wb97M7sIfEfhEFEU9Y8wAOAL6JT0BHkXkRmu9aBQIw/AcuAXaDQ2XwEUcxw8VIV7xHdBa4bgFnHS73bf5fP5SO4iiaNMYM13R2UcmItta63cFkOf5lVecAzPv5E5+o6yp7R57HdI4jrdcIgzDKdCrYqXUIXCtAIIg6LMmrLUdAFXGy3UFKEeqHEx+ITCDrx2MgF0n2SlndtHx4lHtQCk1BDIn2eJzYe5x30cqIsNaQGudWWtP+X5VTciLojjTWi9rAYAkSZ6ttQfAorEU0qIo9sbjcVIRP32mtjHmEtgHdkpXr8CTiNxXnf8NH8/MaKVF6/OkAAAAAElFTkSuQmCC",_hoisted_1$2={class:"stop-sse"},_sfc_main$3={__name:"DialogStopSse",emits:["stopResponse"],setup(e,{emit:t}){const n=t,r=()=>{n("stopResponse")};return(i,s)=>{const o=Button;return openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(o,{class:"stop-btn",onClick:r},{default:withCtx(()=>s[0]||(s[0]=[createBaseVNode("img",{class:"icon",src:_imports_0,alt:""},null,-1),createTextVNode(" 停止响应 ")])),_:1})])}}},DialogStopSse=_export_sfc$1(_sfc_main$3,[["__scopeId","data-v-f286cc35"]]);async function getBytes(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function getLines(e){let t,n,r,i=!1;return function(o){t===void 0?(t=o,n=0,r=-1):t=concat(t,o);const l=t.length;let d=0;for(;n<l;){i&&(t[n]===10&&(d=++n),i=!1);let f=-1;for(;n<l&&f===-1;++n)switch(t[n]){case 58:r===-1&&(r=n-d);break;case 13:i=!0;case 10:f=n;break}if(f===-1)break;e(t.subarray(d,f),r),d=n,r=-1}d===l?t=void 0:d!==0&&(t=t.subarray(d),n-=d)}}function getMessages(e,t,n){let r=newMessage();const i=new TextDecoder;return function(o,l){if(o.length===0)n==null||n(r),r=newMessage();else if(l>0){const d=i.decode(o.subarray(0,l)),f=l+(o[l+1]===32?2:1),m=i.decode(o.subarray(f));switch(d){case"data":r.data=r.data?r.data+`
- `+m:m;break;case"event":r.event=m;break;case"id":e(r.id=m);break;case"retry":const g=parseInt(m,10);isNaN(g)||t(r.retry=g);break}}}}function concat(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function newMessage(){return{data:"",event:"",id:"",retry:void 0}}var __rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const EventStreamContentType="text/event-stream",DefaultRetryInterval=1e3,LastEventId="last-event-id";function fetchEventSource(e,t){var{signal:n,headers:r,onopen:i,onmessage:s,onclose:o,onerror:l,openWhenHidden:d,fetch:f}=t,m=__rest(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((g,E)=>{const w=Object.assign({},r);w.accept||(w.accept=EventStreamContentType);let C;function I(){C.abort(),document.hidden||K()}d||document.addEventListener("visibilitychange",I);let D=DefaultRetryInterval,L=0;function Y(){document.removeEventListener("visibilitychange",I),window.clearTimeout(L),C.abort()}n==null||n.addEventListener("abort",()=>{Y(),g()});const G=f??window.fetch,z=i??defaultOnOpen;async function K(){var X;C=new AbortController;try{const ye=await G(e,Object.assign(Object.assign({},m),{headers:w,signal:C.signal}));await z(ye),await getBytes(ye.body,getLines(getMessages(be=>{be?w[LastEventId]=be:delete w[LastEventId]},be=>{D=be},s))),o==null||o(),Y(),g()}catch(ye){if(!C.signal.aborted)try{const be=(X=l==null?void 0:l(ye))!==null&&X!==void 0?X:D;window.clearTimeout(L),L=window.setTimeout(K,be)}catch(be){Y(),E(be)}}}K()})}function defaultOnOpen(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(EventStreamContentType)))throw new Error(`Expected content-type to be ${EventStreamContentType}, Actual: ${t}`)}function getSseUrl(e,t){const n=e;let r="";if(r=getConfigField("API_BASE_URL"),["agent-dialog"].includes(t))return r+`/api/v1/chat/${n}/completions`;if(["advanced-chat","agent-chat","chat"].includes(t))return r+`/api/v1/agent/${n}/completions`;if(["workflow"].includes(t))return r+`/api/v1/workflow/${n}/completions`;if(["agent-basic"].includes(t))return r+`/api/v1/complex/${n}/completions`;if(!e)return r+"/api/v1/complex/chat/completions";console.log(r)}function getToken(){return kuky_Authorization.get()}function useFetchEventSource(){const e=ref([]),t=ref(!1),n=ref(null),r=ref(!1);let i=null;const s=(d,f=l)=>{t.value=!0,r.value=!1,n.value=null;const{agent_id:m,session_id:g,mode:E,query:w,files:C,inputs:I,knowledgeId:D,chatMode:L,isDeep:Y,parentId:G}=d;console.log("sse_url");let z;m?z={sessionId:g,query:w,files:C,inputs:I}:z={sessionId:g,query:w,files:C,knowledgeId:D,chatMode:L,isDeep:Y,parentId:G};const K=getSseUrl(m,E);K&&(console.log("sse_url",K),i=new AbortController,fetchEventSource(K,{method:"POST",headers:{Authorization:`Bearer ${getToken()}`,"Content-Type":"application/json",Accept:"text/event-stream",Connection:"keep-alive"},body:JSON.stringify(z),signal:i.signal,onmessage(X){f(X)},onclose(){console.log("Connection closed by server"),r.value=!1,t.value=!1},onerror(X){throw console.error("Error received:",X),n.value=X,t.value=!1,r.value=!1,Error("Error received:",X)}}))},o=()=>{i.abort(),t.value=!1,r.value=!1,console.log("Stream aborted")},l=d=>{try{const f=JSON.parse(d.data);console.log("Received message:",f)}catch(f){console.error("Failed to parse message:",f)}};return{startStream:s,stopStream:o,messages_list:e,isLoading:t,error:n,isConnected:r}}var md5$1={exports:{}},crypt={exports:{}};(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],i=0,s=0;i<n.length;i++,s+=8)r[s>>>5]|=n[i]<<24-s%32;return r},wordsToBytes:function(n){for(var r=[],i=0;i<n.length*32;i+=8)r.push(n[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(n){for(var r=[],i=0;i<n.length;i++)r.push((n[i]>>>4).toString(16)),r.push((n[i]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substr(i,2),16));return r},bytesToBase64:function(n){for(var r=[],i=0;i<n.length;i+=3)for(var s=n[i]<<16|n[i+1]<<8|n[i+2],o=0;o<4;o++)i*8+o*6<=n.length*8?r.push(e.charAt(s>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,s=0;i<n.length;s=++i%4)s!=0&&r.push((e.indexOf(n.charAt(i-1))&Math.pow(2,-2*s+8)-1)<<s*2|e.indexOf(n.charAt(i))>>>6-s*2);return r}};crypt.exports=t})();var cryptExports=crypt.exports,charenc={utf8:{stringToBytes:function(e){return charenc.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(charenc.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},charenc_1=charenc;/*!
- * Determine if an object is a Buffer
- *
- * @author Feross Aboukhadijeh <https://feross.org>
- * @license MIT
- */var isBuffer_1=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&isBuffer(e.slice(0,0))}(function(){var e=cryptExports,t=charenc_1.utf8,n=isBuffer_1,r=charenc_1.bin,i=function(s,o){s.constructor==String?o&&o.encoding==="binary"?s=r.stringToBytes(s):s=t.stringToBytes(s):n(s)?s=Array.prototype.slice.call(s,0):!Array.isArray(s)&&s.constructor!==Uint8Array&&(s=s.toString());for(var l=e.bytesToWords(s),d=s.length*8,f=1732584193,m=-271733879,g=-1732584194,E=271733878,w=0;w<l.length;w++)l[w]=(l[w]<<8|l[w]>>>24)&16711935|(l[w]<<24|l[w]>>>8)&4278255360;l[d>>>5]|=128<<d%32,l[(d+64>>>9<<4)+14]=d;for(var C=i._ff,I=i._gg,D=i._hh,L=i._ii,w=0;w<l.length;w+=16){var Y=f,G=m,z=g,K=E;f=C(f,m,g,E,l[w+0],7,-680876936),E=C(E,f,m,g,l[w+1],12,-389564586),g=C(g,E,f,m,l[w+2],17,606105819),m=C(m,g,E,f,l[w+3],22,-1044525330),f=C(f,m,g,E,l[w+4],7,-176418897),E=C(E,f,m,g,l[w+5],12,1200080426),g=C(g,E,f,m,l[w+6],17,-1473231341),m=C(m,g,E,f,l[w+7],22,-45705983),f=C(f,m,g,E,l[w+8],7,1770035416),E=C(E,f,m,g,l[w+9],12,-1958414417),g=C(g,E,f,m,l[w+10],17,-42063),m=C(m,g,E,f,l[w+11],22,-1990404162),f=C(f,m,g,E,l[w+12],7,1804603682),E=C(E,f,m,g,l[w+13],12,-40341101),g=C(g,E,f,m,l[w+14],17,-1502002290),m=C(m,g,E,f,l[w+15],22,1236535329),f=I(f,m,g,E,l[w+1],5,-165796510),E=I(E,f,m,g,l[w+6],9,-1069501632),g=I(g,E,f,m,l[w+11],14,643717713),m=I(m,g,E,f,l[w+0],20,-373897302),f=I(f,m,g,E,l[w+5],5,-701558691),E=I(E,f,m,g,l[w+10],9,38016083),g=I(g,E,f,m,l[w+15],14,-660478335),m=I(m,g,E,f,l[w+4],20,-405537848),f=I(f,m,g,E,l[w+9],5,568446438),E=I(E,f,m,g,l[w+14],9,-1019803690),g=I(g,E,f,m,l[w+3],14,-187363961),m=I(m,g,E,f,l[w+8],20,1163531501),f=I(f,m,g,E,l[w+13],5,-1444681467),E=I(E,f,m,g,l[w+2],9,-51403784),g=I(g,E,f,m,l[w+7],14,1735328473),m=I(m,g,E,f,l[w+12],20,-1926607734),f=D(f,m,g,E,l[w+5],4,-378558),E=D(E,f,m,g,l[w+8],11,-2022574463),g=D(g,E,f,m,l[w+11],16,1839030562),m=D(m,g,E,f,l[w+14],23,-35309556),f=D(f,m,g,E,l[w+1],4,-1530992060),E=D(E,f,m,g,l[w+4],11,1272893353),g=D(g,E,f,m,l[w+7],16,-155497632),m=D(m,g,E,f,l[w+10],23,-1094730640),f=D(f,m,g,E,l[w+13],4,681279174),E=D(E,f,m,g,l[w+0],11,-358537222),g=D(g,E,f,m,l[w+3],16,-722521979),m=D(m,g,E,f,l[w+6],23,76029189),f=D(f,m,g,E,l[w+9],4,-640364487),E=D(E,f,m,g,l[w+12],11,-421815835),g=D(g,E,f,m,l[w+15],16,530742520),m=D(m,g,E,f,l[w+2],23,-995338651),f=L(f,m,g,E,l[w+0],6,-198630844),E=L(E,f,m,g,l[w+7],10,1126891415),g=L(g,E,f,m,l[w+14],15,-1416354905),m=L(m,g,E,f,l[w+5],21,-57434055),f=L(f,m,g,E,l[w+12],6,1700485571),E=L(E,f,m,g,l[w+3],10,-1894986606),g=L(g,E,f,m,l[w+10],15,-1051523),m=L(m,g,E,f,l[w+1],21,-2054922799),f=L(f,m,g,E,l[w+8],6,1873313359),E=L(E,f,m,g,l[w+15],10,-30611744),g=L(g,E,f,m,l[w+6],15,-1560198380),m=L(m,g,E,f,l[w+13],21,1309151649),f=L(f,m,g,E,l[w+4],6,-145523070),E=L(E,f,m,g,l[w+11],10,-1120210379),g=L(g,E,f,m,l[w+2],15,718787259),m=L(m,g,E,f,l[w+9],21,-343485551),f=f+Y>>>0,m=m+G>>>0,g=g+z>>>0,E=E+K>>>0}return e.endian([f,m,g,E])};i._ff=function(s,o,l,d,f,m,g){var E=s+(o&l|~o&d)+(f>>>0)+g;return(E<<m|E>>>32-m)+o},i._gg=function(s,o,l,d,f,m,g){var E=s+(o&d|l&~d)+(f>>>0)+g;return(E<<m|E>>>32-m)+o},i._hh=function(s,o,l,d,f,m,g){var E=s+(o^l^d)+(f>>>0)+g;return(E<<m|E>>>32-m)+o},i._ii=function(s,o,l,d,f,m,g){var E=s+(l^(o|~d))+(f>>>0)+g;return(E<<m|E>>>32-m)+o},i._blocksize=16,i._digestsize=16,md5$1.exports=function(s,o){if(s==null)throw new Error("Illegal argument "+s);var l=e.wordsToBytes(i(s,o));return o&&o.asBytes?l:o&&o.asString?r.bytesToString(l):e.bytesToHex(l)}})();var md5Exports=md5$1.exports;const md5=getDefaultExportFromCjs$1(md5Exports);function generateClientUniqueId(e){return e?md5(e):Date.now()+""}function formatDialogQuestionByHistory(e,t){var r;return(r=t==null?void 0:t.agent)!=null&&r.icon,{client_custom_chat_type:0,client_custom_item_type:"q",client_custom_chat_status:2,client_custom_icon:getIcon4Question(),client_custom_unique_id:generateClientUniqueId(e.content),question:e.content}}function formatDialogAnswerAttachedHtmlBeforeRender(e){let t="";if(e.client_custom_linked_code&&(t=t+e.client_custom_linked_code),e.client_custom_linked_sql&&(t=t+e.client_custom_linked_sql),e.client_custom_linked_image){const n=formatStaticAssetsUrl_Dify(e.client_custom_linked_image);t=t+`<img src="${n}" />`}return e.client_custom_linked_download_files&&(t=t+'<div class="agent-answer-download-container"></div>'),e.client_custom_attached_html_before_render=t,e}function formatDialogAnswerFromHistory(e,t){const r={client_custom_chat_type:0,client_custom_item_type:"a",client_custom_chat_status:2,client_custom_icon:getIcon4Answer(t),client_custom_unique_id:generateClientUniqueId(e.answer),answer:e.answer,client_custom_running_msg:"",client_custom_chat_message_id:e.id,parent_id:e.parentId||""};e.type,e.message;const i=e.reference;e.step_message;const s=e.files;e.message_files;const o=e.download_url,l=e.file_url,d=e.file_name,f=e.image_url,m=e.excel_url,g=e.excel_name,E=e.code,w=e.sql;if(m&&g&&(r.client_custom_linked_download_files={file_name:g,file_url:m}),l&&d&&(r.client_custom_linked_download_files={file_name:d,file_url:l}),o){const C=decodeURIComponent(o),I=decodeURIComponent(o).split("/"),D=I[I.length-1];r.client_custom_linked_download_files={file_name:D,file_url:C}}if(E){const C=formatCodePython(E);r.client_custom_linked_code=C}if(w){const C=formatCodeSql(w);r.client_custom_linked_sql=C}if(f&&(r.client_custom_linked_image=f),s&&s[0]){const C=s[0],D=`http://127.0.0.1${C.file_url}`,Y=new URL(D).searchParams.get("file_type");let G=C.file_name;Y==="word"&&(G=G+".docx"),r.client_custom_linked_download_files={file_name:G,file_url:C.file_url}}if(r.answer=formatRefferenceFlag(r.answer),i){const C=formatRefferenceString(i);C&&(r.answer=r.answer+`
- ${C}
- `),r.client_custom_linked_refference_full_content=i}return formatDialogAnswerAttachedHtmlBeforeRender(r),r}function formatDialogHistoryMessages(e,t){const n=[];return e.forEach(r=>{const i=r.role;if(i==="user"){const s=formatDialogQuestionByHistory(r,t);n.push(s)}if(i==="assistant"){const s=formatDialogAnswerFromHistory(r,t);n.push(s)}}),n}function formatDialogQuestionByClient(e,t,n=[]){const r=Date.now(),i=getIcon4Question();return{client_custom_item_type:"q",client_custom_create_time:r,client_custom_unique_id:generateClientUniqueId(e+r),client_custom_upload_file_list:t,client_custom_icon:i,client_custom_knowledge_id:n,question:e}}function formatDialogAnswerForLoading(e){return{client_custom_chat_type:2,client_custom_item_type:"a",client_custom_chat_status:0,client_custom_icon:getIcon4Answer(e),client_custom_unique_id:"loading_"+Date.now(),question:"",answer:""}}function formatDialogAnswerForException(e,t){return{client_custom_chat_type:1,client_custom_item_type:"a",client_custom_chat_status:2,client_custom_icon:getIcon4Answer(e),client_custom_unique_id:"exception_"+Date.now(),question:"",answer:`<div style="color: red;">${t.message}</div>`}}let fountThink=!1,message_id="";function formatDialogAnswerFromSseReceiveMessage(e,t,n,r){const i=e.data;message_id!==(e==null?void 0:e.message_id)&&(fountThink=!1,message_id=e==null?void 0:e.message_id);const s=jsonParse(jsonStringify(t)),o=getIcon4Answer(n),l=e.event,d=i==null?void 0:i.answer,f=i.reference;i.step_message;const m=i.files,g=i.message_files,E=i.download_url,w=i.file_url,C=i.file_name,I=i.image_url,D=i.excel_url,L=i.excel_name,Y=i.code,G=i.sql,z={client_custom_chat_type:2,client_custom_item_type:"a",client_custom_chat_status:1,client_custom_icon:o,question:i.question,client_custom_running_msg:"",client_custom_chat_message_id:"",deep_answer:"",parent_id:""};Object.keys(e).includes("isDeep")&&(z.client_custom_item_think=e.isDeep),Object.keys(e).includes("isInternet")&&(z.client_custom_item_internet=e.isInternet,i.title==="SearXNG 搜索"&&(z.client_custom_item_internet_list=i.outputs.json));for(let ye in s)ye==="client_custom_chat_type"||ye==="client_custom_chat_status"||(z[ye]=s[ye]);let K=0,X="";if(l==="message"){if(K=1,z.answer=d,D&&L&&(z.client_custom_linked_download_files={file_name:L+".xlsx",file_url:D}),w&&C&&(z.client_custom_linked_download_files={file_name:C+".docx",file_url:w}),E){const ye=decodeURIComponent(E),be=decodeURIComponent(E).split("/"),Ce=be[be.length-1];z.client_custom_linked_download_files={file_name:Ce,file_url:ye}}if(Y){const ye=formatCodePython(Y);z.client_custom_linked_code=ye}if(G){const ye=formatCodeSql(G);z.client_custom_linked_sql=ye}if(I&&(z.client_custom_linked_image=I),z.answer=formatRefferenceFlag(z.answer),f){const ye=formatRefferenceString(f);ye&&(z.answer=z.answer+`${ye}`),z.client_custom_linked_refference_full_content=f}}if(l==="stream"){if(K=1,e.isDeep?fountThink?z.answer=z.answer+=i.answer:(z.client_custom_chat_deep_loading=!0,z.deep_answer=z.deep_answer+=i.answer,i.answer=="</think>"&&(z.client_custom_chat_deep_loading=!1,fountThink=!0)):z.answer=z.answer+=i.answer,e.parent_id&&(z.parent_id=e.parent_id),m&&m[0]){const ye=m[0],Ce=`http://127.0.0.1${ye.file_url}`,He=new URL(Ce).searchParams.get("file_type");let Fe=ye.file_name;He==="word"&&(Fe=Fe+".docx"),z.client_custom_linked_download_files={file_name:Fe,file_url:ye.file_url}}if(E){const ye=decodeURIComponent(E),be=decodeURIComponent(E).split("/"),Ce=be[be.length-1];z.client_custom_linked_download_files={file_name:Ce,file_url:ye}}}if(l==="system"?(K=1,z.client_custom_running_msg=d):z.client_custom_running_msg="",["workflow_started","node_started","node_finished"].includes(l)&&(K=1,z.client_custom_running_msg=i.title),["workflow_finished"].includes(l)){if(K=1,i.outputs.output&&(z.answer=i.outputs.output||""),i.outputs.file&&(z.client_custom_linked_download_files={file_name:i.outputs.file.filename,file_url:i.outputs.file.url}),i.outputs.fileList){const ye=i.outputs.fileList;z.client_custom_linked_download_files_List=[];for(const be of ye)z.client_custom_linked_download_files_List.push({file_name:be.filename,file_url:be.url})}K=2}if(l==="message_file"&&(K=1,i.type=="image"&&(z.client_custom_linked_image=i.url),i.type=="document"&&i.url)){const be=path.split("/").pop();z.client_custom_linked_download_files={file_name:be,file_url:i.url}}return l==="message_end"&&(console.log(11112222),K=2,z.client_custom_chat_status=2,z.client_custom_chat_type=1,g&&Array.isArray(g)&&g.forEach((ye,be)=>{}),d&&(z.answer=d)),l==="error"&&(K=3,z.client_custom_chat_status=2,z.client_custom_chat_type=1,z.answer=d),z.client_custom_unique_id=generateClientUniqueId(z.answer),formatDialogAnswerAttachedHtmlBeforeRender(z),e.message_id&&(z.client_custom_chat_message_id=e.message_id),z.client_custom_chat_message_id=e.message_id||"",{status:K,message:X,data:z}}const _hoisted_1$1={class:"word-viewer"},_hoisted_2$1={class:"word-viewer-header"},_hoisted_3$1={class:"word-viewer-header-btns"},_hoisted_4$1={class:"word-viewer-body"},_sfc_main$2={__name:"ConversationChatWordViewer",props:{edit_txt:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=computed(()=>n.edit_txt),i=t,s=ref(null),o=()=>{i("close")},l=()=>{if(s.value){const d=s.value.getMarkDownContent();copyText(d),Message.success("已复制")}};return(d,f)=>{const m=resolveComponent("icon-copy"),g=Button,E=resolveComponent("icon-download"),w=resolveComponent("icon-close");return openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,[createVNode(g,{class:"btn",onClick:l},{icon:withCtx(()=>[createVNode(m)]),default:withCtx(()=>[f[0]||(f[0]=createTextVNode("复制"))]),_:1}),createVNode(g,{class:"btn"},{icon:withCtx(()=>[createVNode(E)]),default:withCtx(()=>[f[1]||(f[1]=createTextVNode("下载"))]),_:1}),createVNode(g,{class:"btn",onClick:o},{default:withCtx(()=>[createVNode(w)]),_:1})])]),createBaseVNode("div",_hoisted_4$1,[createVNode(Editor,{ref_key:"editor",ref:s,content:r.value},null,8,["content"])])])}}},ConversationChatWordViewer=_export_sfc$1(_sfc_main$2,[["__scopeId","data-v-95e1489a"]]);function useEleSize(e){const t=ref(0),n=ref(0),{proxy:r}=getCurrentInstance(),i=()=>{const s=r.$refs[e];t.value=s.offsetHeight,n.value=s.offsetWidth};return onMounted(()=>{i(),window.addEventListener("resize",i)}),onUnmounted(()=>{window.removeEventListener("resize",i)}),{height:t,width:n}}function useInputClear(e){const{proxy:t}=getCurrentInstance();return()=>{const n=t.$refs[e];n&&n.clear&&typeof n.clear=="function"&&n.clear()}}function useInputGetOptions(e){const{proxy:t}=getCurrentInstance();return()=>{const n=t.$refs[e];return n&&n.getOptions&&typeof n.getOptions=="function"?n.getOptions():null}}function useScroll2Bottom(e){const{proxy:t}=getCurrentInstance();return n=>{const r=t.$refs[e];r&&r.scroll2Bottom&&typeof r.scroll2Bottom=="function"&&r.scroll2Bottom(n)}}const _hoisted_1={class:"conversation-chat-container"},_hoisted_2={class:"conversation-chat-main",ref:"chat_scrren_container"},_hoisted_3={key:2,class:"mind_map_error"},_hoisted_4={class:"conversation-chat-mind-map-tools"},_hoisted_5={key:0,class:"conversation-chat-mind-map-spin"},_hoisted_6={key:1,class:"conversation-chat-web-page"},_hoisted_7={key:1,class:"conversation-chat-expand"},header_height=30,footer_height=30,_sfc_main$1={__name:"ConversationChatContainer",props:{agent_id:String,CHAT_AGENT_INFOMATION:Object,session_id:String,conversation_params:Object},emits:["updateSessionId"],setup(e,{expose:t,emit:n}){const r=e,i=n,s=useI18n$1(),o=useInputClear("dialog_input"),l=useInputClear("dialog_input_top"),d=useInputGetOptions("dialog_input_top"),f=useScroll2Bottom("list_scroller"),m=()=>{nextTick(()=>{f()})},g=ref(100),{width:E,height:w}=useEleSize("chat_scrren_container"),C=computed(()=>w.value-header_height-footer_height-g.value-20);computed(()=>({}));const I=computed(()=>({height:header_height+"px"})),D=computed(()=>({height:w-30-30+"px"})),L=computed(()=>({height:footer_height+"px"})),Y=computed(()=>fn.value||Yt.value?{width:"55%"}:{width:"100%"}),G=computed(()=>fn.value||Yt.value?{width:"35%",transition:"width 0.2s ease"}:{width:0,transition:"width 0.2s ease"}),z=computed(()=>ze.value?{position:"relative"}:{position:""}),K=computed(()=>Wt.value?{height:"20%",transition:"all 0.2s ease"}:{height:"80%",transition:"all 0.2s ease"}),X=computed(()=>fn.value||Yt.value?{paddingRight:"3%",paddingLeft:"3%",boxSizing:"border-box"}:{paddingRight:"20%",paddingLeft:"20%",boxSizing:"border-box"}),ye=ref([]),be=ref([]),Ce=ref([]),Ne=ref(null),He=ref(0),Fe=ref({}),Xe=computed(()=>[].concat(ye.value,be.value)),Ee=ref(!1),$e=ref(!1),Ie=computed(()=>r.CHAT_AGENT_INFOMATION.agent.menuId/1),we=computed(()=>r.CHAT_AGENT_INFOMATION.agent.name||"新会话"),De=computed(()=>r.CHAT_AGENT_INFOMATION.agent.mode),qe=computed(()=>!!(r.conversation_params&&r.conversation_params.user_input_form&&r.conversation_params.user_input_form.length)),Ge=computed(()=>{let $=!1;return r.conversation_params&&r.conversation_params.retriever_resource&&($=r.conversation_params.retriever_resource.enabled),$}),Oe=computed(()=>!!Ge.value),fe=computed(()=>Ie.value===1?"合并Excel":""),Te=computed(()=>{let $=!1;return r.conversation_params&&r.conversation_params.file_upload&&($=r.conversation_params.file_upload.enabled),$}),Re=computed(()=>{if(!Te.value)return!1;const Ye=Ie.value;return Ye===1&&He.value===0||Ye===7&&He.value===0}),Ve=computed(()=>{const $=Ie.value;return $===1?".xlsx":$===3?".txt,.md,.markdown,.pdf,.html,.xlsx,.xls,.docx,.csv,.eml,.msg,.pptx,.ppt,.xml,.epub":$===5?".xlsx,.xls,.csv":$===6?".jpg,.jpeg,.png":$===9?".docx":"*"}),je=computed(()=>Ie.value===1?[]:["copy","retry","edit","download"]),Je=computed(()=>fn.value||Yt.value),dt=$=>{},Yt=ref(!1),In=ref(""),Gn=()=>{Yt.value=!1},Yn=ref(""),gr=$=>{Yn.value=$},Zn=$=>{console.log($,11),In.value=$.answer,fn.value=!1,Yt.value=!0},cr=async $=>{const Ye=Xe.value.findIndex(Be=>Be.client_custom_chat_message_id===$.client_custom_chat_message_id);if(Ye!=-1){const Be=Xe.value[Ye-1];console.log(Be,11),Be.client_custom_upload_file_list.length||Be.client_custom_knowledge_id.length}},bn=$=>{},Ln=$=>{Message.error({content:$,position:"top"})},_n=$=>{const Ye=formatDialogAnswerForException(r.CHAT_AGENT_INFOMATION,$);be.value.pop(),be.value.push(Ye),Ee.value=!1,m()},ot=$=>{$.width,setTimeout(()=>{g.value=$.height})},Wt=ref(!1),Zt=ref(""),pt=ref(),yn=ref(""),mn=ref(""),Pn=ref(""),jn=ref(""),Ue=ref(null),Qe=ref(!1),at=computed(()=>{if(fn.value)return{width:"100%",height:"calc(100% - 30px)"}}),gt=computed(()=>{if(fn.value)return{width:"100%",height:"100%"}}),an=async $=>{const{node:Ye,full:Be,el:Pt}=$;console.log(Ye),Pn.value=Tn(Ye.content),getMindMapData({messageId:jn.value,query:Pn.value}).then(un=>{un.code/1===200?(Zt.value=un.data.mindmap,yn.value=un.data.mindmap,console.log(yn.value)):yn.value=Zt.value})};function Tn($){const Ye=document.createElement("textarea");return Ye.innerHTML=$,Ye.value}const fn=ref(!1),qt=ref(!1),ze=ref(!1),gn=ref(!1),wr=()=>{gn.value=!1},xr=computed(()=>!Yt.value&&!Wt.value),Vr=()=>{fn.value=!fn.value,fn.value?(yn.value=Zt.value,setTimeout(()=>{qt.value=!0},200),gn.value=!0):(qt.value=!1,gn.value=!1)},vr=()=>{pt.value.zoomIn()},sr=()=>{pt.value.zoomOut()},or=()=>{pt.value.zoomReset()},Un=ref({height:"",width:"",position:"",zIndex:""}),Hr=()=>{Qe.value||Ue.value&&(Un.value.height=Ue.value.style.height,Un.value.width=Ue.value.style.width,Un.value.position=Ue.value.style.position,Un.value.zIndex=Ue.value.style.zIndex,Ue.value.style.height=window.innerHeight-90+"px",Ue.value.style.width=window.innerWidth-10+"px",Ue.value.style.position="absolute",Ue.value.style.top="0",Ue.value.style.left="0",Ue.value.style.zIndex="9995",Qe.value=!0,or())},En=()=>{Ue.value&&(Ue.value.style.height=Un.value.height,Ue.value.style.width=Un.value.width,Ue.value.style.position=Un.value.position,Ue.value.style.zIndex=Un.value.zIndex,Qe.value=!1,or())},Bn=()=>{pt.value.downloadPNG()},$n=()=>{dr(),Wt.value=!0,Xe.value=[],ye.value=[],be.value=[],fn.value=!1},dr=()=>{Xe.value=[],Wt.value&&(Wt.value=!1,br())},br=()=>{ye.value.push({answer:"Hi,我是Smart~ <br> 很高兴遇见你!你可以随时把网址或文件发给我,我来帮你看看",client_custom_chat_status:"2",client_custom_chat_type:"0",client_custom_item_type:"a",client_custom_item_think:!1,client_custom_item_think_content:"",client_custom_item_internet:!1,client_custom_item_internet_list:[],client_custom_chat_message_id:""})},er=ref({}),{startStream:Tr,stopStream:kr}=useFetchEventSource(),fr=async $=>{if(Wt.value=!1,Xe.value.length||br(),!r.agent_id){tn($);return}let Ye=$.text;const Be=$.files;$.config,er.value={},console.log($,111);const Pt=Be.length,un=Oe.value,Ze=Re.value;if(un){if(!Ye){const Vt=s.t("conversation.please_input_text");Ln(Vt);return}}else Ye=fe.value;if(Ze&&Pt===0){const Vt=s.t("conversation.please_upload_file");Ln(Vt);return}const vt=d(),Ut=formatDialogQuestionByClient(Ye,Be);console.log(Ut,999),Fe.value=Ut,be.value.push(Fe.value);const tr=formatDialogAnswerForLoading(r.CHAT_AGENT_INFOMATION);be.value.push(tr),Wt.value=!1,o(),l(),Ce.value=[],Fe.value=null,Ee.value=!0,m();const W=r.agent_id;if(Ne.value===null){const Vt=r.session_id;if(Vt)Ne.value=Vt;else{if(!W)return;try{const cn=await getDialogChatId(W);if(cn.code/1===200){const Wn=cn.data;Ne.value=Wn.chat_id}else{_n({message:`code: ${cn.code} message: ${cn.msg}`});return}}catch(cn){console.log("err-nfsdnakiuwirea7",cn),_n({message:cn.message});return}}}if(vt&&vt.files){const Vt=vt.files,cn=Ne.value,Wn=Ie.value;for(const An in Vt){const lt=Vt[An].map(kn=>kn.file),ar=await uploadFileByAgentInfo(W,cn,lt,Wn);ar&&ar.length&&(Vt[An]=Vt[An].map(kn=>{const _r=ar.find(Gr=>Gr.name===kn.name);return _r&&(kn.upload_file_id=_r.id,kn.url=""),kn}),Vt[An].some(kn=>kn.limit_1)&&(Vt[An]=Vt[An][0]))}vt.options={...vt.options,...Vt}}let wn=null;if(Pt!==0){const Vt=Ne.value;if(W)try{const cn=Ie.value,Wn=await uploadFileByAgentInfo(W,Vt,Be,cn);Wn.length&&(wn=Wn.map(An=>({...An,url:"",type:getFileType(An),transfer_method:"local_file",upload_file_id:An.id})))}catch(cn){console.log("err-fhskafhakfjslkfjl",cn),_n({message:cn.message});return}}const me={agent_id:W,mode:De.value,query:Ye,files:wn||[],inputs:vt?vt.options:[],session_id:r.session_id||""};Tr(me,Me)},tn=async $=>{var me;let Ye=$.text;const Be=$.files,Pt=$.config;er.value=$.config;let un="";if(Xe.value.length){const Vt=Xe.value[Xe.value.length-1];console.log(Vt,111),Vt.parent_id&&(un=Vt.parent_id)}Pn.value=$.text;const Ze=Be.length;if(!Ye){const Vt=s.t("conversation.please_input_text");Ln(Vt);return}d();const vt=((me=er.value)==null?void 0:me.knowledgeId)||[],Ut=formatDialogQuestionByClient(Ye,Be,vt);Fe.value=Ut,be.value.push(Fe.value);const tr=formatDialogAnswerForLoading(r.CHAT_AGENT_INFOMATION);be.value.push(tr),o(),l(),Ce.value=[],Fe.value=null,Ee.value=!0,m();let W=null;if(Ze!==0)try{W=(await uploadNewChatInfo(1,Be)).map(cn=>({...cn,url:"",type:getFileType(cn),transfer_method:"local_file",upload_file_id:cn.id}))}catch(Vt){_n({message:Vt.message})}const wn={query:Ye,files:W,session_id:r.session_id||"",knowledgeId:Pt.knowledgeId,chatMode:Pt.chatMode,isDeep:Pt.isDeep,parentId:un};Tr(wn,Me)},_=ref([]),N=$=>{_.value=[...$.client_custom_item_internet_list],fn.value||(fn.value=!0),gn.value||(gn.value=!0)},Me=$=>{var vt;const Ye=JSON.parse($.data);if(Ye.session_id&&i("updateSessionId",Ye.session_id),Ye.message_id&&(jn.value=Ye.message_id),Ye.event==="message_end"){if(kr(),console.log(r.agent_id,11),r.agent_id)return;fn.value=!0,ze.value=!0,getMindMapData({messageId:jn.value,query:Pn.value}).then(Ut=>{console.log(Ut,11111),Ut.code/1===200?(Zt.value=Ut.data.mindmap,yn.value=Ut.data.mindmap,mn.value="",Ut.data.mindmap||(mn.value="文本内容太少,不足以生成思维导图,请重新尝试")):(console.log(Ut),mn.value="文本内容太少,不足以生成思维导图,请重新尝试")}).catch(Ut=>{mn.value="文本内容太少,不足以生成思维导图,请重新尝试"}).finally(()=>{ze.value=!1,setTimeout(()=>{qt.value=!0},200)})}if(Ye.event==="node_finished"&&Ye.data.title&&Ye.data.title==="SearXNG 搜索"&&(vt=Ye.data.outputs)!=null&&vt.json&&(_.value=Ye.data.outputs.json,_.value.length&&(gn.value=!0)),Ye.event==="error"||Ye.message==="error"){_n({message:Ye.error});return}const Be=be.value[be.value.length-1];Object.keys(er.value)&&(Ye.isDeep=er.value.isDeep/1===2,Ye.isInternet=er.value.chatMode/1===2);const Pt=formatDialogAnswerFromSseReceiveMessage(Ye,Be,r.CHAT_AGENT_INFOMATION),un=Pt.status,Ze=()=>{const Ut=Pt.data;be.value.pop(),be.value.push(Ut),m()};if(un===1&&(Ze(),$e.value=!0),un===2){Ze();const Ut=Pt.suggest;Ut&&(Ce.value=Ut),Ee.value=!1,$e.value=!1}un===3&&(Ze(),Ee.value=!1,$e.value=!1)},O=()=>{kr(),$e.value=!1,Ee.value=!1;const $=be.value.pop();$.client_custom_chat_status=2,be.value.push($),m()};return watch(()=>r.agent_id,()=>{r.agent_id&&(Wt.value=!1)}),watch(()=>r.session_id,()=>{if(r.session_id){if(Xe.value.length)return;getHistoryLogs(r.session_id).then($=>{if($.code/1===200){const Be=$.data.message,Pt=formatDialogHistoryMessages(Be,r.CHAT_AGENT_INFOMATION);Pt.length!==0&&(Wt.value=!1,m()),ye.value=Pt}else Wt.value=!1,Ln("历史会话异常:"+$.msg)}).catch($=>{console.log("err-mfsjakfjsdkalfjs",$),Wt.value=!1,Ln("历史会话错误:"+$.message)})}}),onMounted(()=>{const $=r.agent_id,Ye=r.session_id;!$&&!Ye?Wt.value=!0:Wt.value=!1,Ye&&getHistoryLogs(Ye).then(Be=>{if(Be.code/1===200){const un=Be.data.message,Ze=formatDialogHistoryMessages(un,r.CHAT_AGENT_INFOMATION);Ze.length!==0&&(Wt.value=!1,m()),ye.value=Ze}else Wt.value=!1,Ln("历史会话异常:"+Be.msg)}).catch(Be=>{console.log("err-mfsjakfjsdkalfjs",Be),Wt.value=!1,Ln("历史会话错误:"+Be.message)})}),onUnmounted(()=>{}),t({toShowWelcome:$n,toNewChat:dr}),($,Ye)=>{const Be=Spin;return openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("div",_hoisted_2,[Ye[0]||(Ye[0]=createBaseVNode("div",{class:"conversation-chat-main-left"},null,-1)),createBaseVNode("div",{class:"conversation-chat-main-content",style:normalizeStyle(Y.value)},[Wt.value?createCommentVNode("",!0):(openBlock(),createBlock(DialogHeader,{key:0,class:"conversation-chat-header",agent_name:we.value,style:normalizeStyle(I.value)},null,8,["agent_name","style"])),createBaseVNode("div",{class:"conversation-chat-content",style:normalizeStyle(D.value)},[createBaseVNode("div",{class:"conversation-chat-main-container",style:normalizeStyle(K.value)},[Wt.value?(openBlock(),createBlock(DialogWelcome,{key:0,class:"conversation-chat-area"})):createCommentVNode("",!0),Wt.value?createCommentVNode("",!0):(openBlock(),createBlock(DialogList,{key:1,ref:"list_scroller",class:"conversation-chat-area",height:C.value,width:unref(E)/2,agent_id:e.agent_id,list:Xe.value,suggestion:Ce.value,answer_action_list:je.value,is_show_right_page:Je.value,onShare:dt,onEdit:Zn,onRetry:cr,onToSearchPage:N,onSubmit:bn,style:normalizeStyle(X.value)},null,8,["height","width","agent_id","list","suggestion","answer_action_list","is_show_right_page","style"]))],4),createVNode(DialogInput,{ref:"dialog_input",class:"conversation-chat-input",style:normalizeStyle(X.value),ask_input_text:Yn.value,disabled:Ee.value,enable_text_input:Ge.value,enable_file_upload:Te.value,file_accept:Ve.value,agent_id:e.agent_id,onSizeChange:ot,onSubmit:fr},createSlots({top:withCtx(()=>[$e.value?(openBlock(),createBlock(DialogStopSse,{key:0,onStopResponse:O})):createCommentVNode("",!0)]),_:2},[qe.value?{name:"top",fn:withCtx(()=>[createVNode(DialogInputTop,{user_input_form:e.conversation_params.user_input_form,ref:"dialog_input_top"},null,8,["user_input_form"])]),key:"0"}:void 0]),1032,["style","ask_input_text","disabled","enable_text_input","enable_file_upload","file_accept","agent_id"]),Wt.value?(openBlock(),createBlock(DialogCommonUsed,{key:0,style:normalizeStyle(X.value),onUpdateAskTxt:gr},null,8,["style"])):createCommentVNode("",!0)],4),createVNode(DialogFooter,{class:"conversation-chat-footer",style:normalizeStyle(L.value)},null,8,["style"])],4),createBaseVNode("div",{class:"conversation-chat-main-right",style:normalizeStyle(G.value)},[fn.value?(openBlock(),createElementBlock("div",{key:0,class:"conversation-chat-expand",style:normalizeStyle(z.value)},[createBaseVNode("div",{class:"conversation-chat-mind-map",ref_key:"fullScreen_mindMap",ref:Ue},[Qe.value?(openBlock(),createElementBlock("button",{key:0,class:"exit-button",onClick:En},"X")):createCommentVNode("",!0),qt.value?(openBlock(),createBlock(MindMap,{key:1,ref_key:"mind_map",ref:pt,content:yn.value,box_style:at.value,svg_style:gt.value,onExtend:an},null,8,["content","box_style","svg_style"])):createCommentVNode("",!0),mn.value.length?(openBlock(),createElementBlock("div",_hoisted_3,toDisplayString(mn.value),1)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4,[createVNode(ConversationChatMindMapTools,{isFullScreen:Qe.value,onToZoomIn:vr,onToZoomOut:sr,onToZoomReset:or,onToDownload:Bn,onToFullScreen:Hr,onToExitFullScreen:En},null,8,["isFullScreen"])])],512),ze.value?(openBlock(),createElementBlock("div",_hoisted_5,[createVNode(Be,{tip:"加载中..."})])):createCommentVNode("",!0),gn.value?(openBlock(),createElementBlock("div",_hoisted_6,[createVNode(ConversationChatWebPage,{search_list:_.value,onToClose:wr},null,8,["search_list"])])):createCommentVNode("",!0)],4)):createCommentVNode("",!0),Yt.value?(openBlock(),createElementBlock("div",_hoisted_7,[createVNode(ConversationChatWordViewer,{edit_txt:In.value,onClose:Gn},null,8,["edit_txt"])])):createCommentVNode("",!0)],4)],512),xr.value?(openBlock(),createBlock(ChatAsideExpandBtn,{key:0,onToggleRight:Vr})):createCommentVNode("",!0)])}}},ConversationChatContainer=_export_sfc$1(_sfc_main$1,[["__scopeId","data-v-fb3d4ed1"]]),client_agent_config={"9d75142a-66eb-4e23-b7d4-03efe4584915":{text_limit:250,file_upload:!0,file_accept:".jpg,.png",file_limit:1,file_message:"支持上传 .png, .jpg,大小不超过10M"}};function getChatAgentClientConfig(e){return e&&e in client_agent_config?client_agent_config[e]:null}function getChatAgentInfomation(e){const n=useAllAgentStore().getInfo(e);if(n){const r=getChatAgentClientConfig(e);return r?{id:e,config:r,agent:n}:{id:e,config:{},agent:n}}else return{id:e,config:{},agent:{}}}const conversationQAParameter=e=>{const n=`/api/v1/chat/${e}/parameters`;return new Promise((r,i)=>{ajax({url:n,method:"get"}).then(s=>{console.log("conversationQAParameter",s),Object.keys(s).length?r({code:200,data:s}):r(s)}).catch(i)})};function useConversationChatParameters(){const e=ref(1),t=ref(""),n=ref({});return{getConversationParams:i=>{if(e.value=2,t.value="",!i){n.value={retriever_resource:!0,file_upload:{enable:!0}},e.value=3,t.value="success";return}conversationQAParameter(i).then(s=>{if(s.code/1===200){const o=s.data;n.value=o,console.log(n.value),e.value=3,t.value="success"}else e.value=4,t.value=s.msg}).catch(s=>{console.log(s),e.value=5,t.value=s.message})},api_status:e,api_message:t,conversation_params:n}}const _sfc_main={__name:"ConversationQA",setup(e){const{getConversationParams:t,conversation_params:n}=useConversationChatParameters(),r=useRoute(),i=useRouter(),s=useAllAgentStore(),o=ref(""),l=ref(""),d=ref(null),f=ref(o.value+window.location.href);watch(r,X=>{f.value=o.value+window.location.href});const m=ref({agent:{},config:{}}),g=ref(1),E=ref(""),w=()=>{i.back()},C={paddingLeft:0,paddingRight:0};async function I(X){if(!X)return!1;const ye=s.getList();return ye.length===0?!0:!!ye.find(Ce=>Ce.id===X)}async function D(){return null}function L(X){X||t(void 0),m.value=getChatAgentInfomation(X),o.value=X,t(o.value)}const Y=X=>{l.value=X},G=()=>{d.value&&d.value.toShowWelcome()},z=async()=>{await K(),d.value&&d.value.toNewChat()};watch(()=>r,X=>{r.query.chat&&z()},{deep:!0,immediate:!0});async function K(){const X=useRoute(),ye=X==null?void 0:X.query;let be,Ce;if(ye&&ye.agent&&(be=ye.agent),ye&&ye.session&&(Ce=ye.session),be){if(!await I(be)){g.value=3,E.value="非法操作:参数异常";return}l.value=Ce,L(be),g.value=2,E.value="success"}else{g.value=2,E.value="success";const Ne=await D();o.value=Ne,L(Ne)}l.value=Ce}return onBeforeRouteUpdate(async(X,ye)=>{(X.path==="/chat"||X.path==="/chat/qa")&&(X.query.session||(l.value=null))}),onMounted(async()=>{await K()}),onBeforeUpdate(async()=>{await K()}),(X,ye)=>{const be=Button,Ce=Space,Ne=Result;return openBlock(),createBlock(LayoutExperience,null,{default:withCtx(()=>[createVNode(ContentContainer,{containerStyle:C},{default:withCtx(()=>[createVNode(ChatAsideMenu,{onOpenWelcome:G,onToNewChat:z}),g.value===2?(openBlock(),createBlock(ConversationChatContainer,{ref_key:"conversation_chat_container",ref:d,agent_id:o.value,CHAT_AGENT_INFOMATION:m.value,session_id:l.value,key:f.value,conversation_params:unref(n),onUpdateSessionId:Y},null,8,["agent_id","CHAT_AGENT_INFOMATION","session_id","conversation_params"])):createCommentVNode("",!0),g.value===3?(openBlock(),createBlock(Ne,{key:1,status:"error",title:E.value},{extra:withCtx(()=>[createVNode(Ce,null,{default:withCtx(()=>[createVNode(be,{type:"primary",onClick:w},{default:withCtx(()=>[createTextVNode(toDisplayString(X.$t("conversation.back")),1)]),_:1})]),_:1})]),_:1},8,["title"])):createCommentVNode("",!0)]),_:1})]),_:1})}}},ConversationQA=_export_sfc$1(_sfc_main,[["__scopeId","data-v-5d422792"]]);export{ConversationQA as default};
|