@farris/x-ui 0.4.3 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/farris.x-ui.esm.js +33607 -10095
- package/farris.x-ui.umd.cjs +624 -79
- package/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/index.css +4 -1
- package/markdown/src/composition/normalize-display-math.d.ts +5 -0
- package/markdown/test/katex-assets.spec.d.ts +1 -0
- package/markdown/test/markdown.spec.d.ts +1 -0
- package/package.json +4 -1
package/farris.x-ui.umd.cjs
CHANGED
|
@@ -1,105 +1,650 @@
|
|
|
1
|
-
(function(V,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(V=typeof globalThis<"u"?globalThis:V||self,i(V.FarrisX={},V.vue))})(this,function(V,i){"use strict";var M2=Object.defineProperty;var wc=V=>{throw TypeError(V)};var B2=(V,i,ve)=>i in V?M2(V,i,{enumerable:!0,configurable:!0,writable:!0,value:ve}):V[i]=ve;var ge=(V,i,ve)=>B2(V,typeof i!="symbol"?i+"":i,ve),vi=(V,i,ve)=>i.has(V)||wc("Cannot "+ve);var k=(V,i,ve)=>(vi(V,i,"read from private field"),ve?ve.call(V):i.get(V)),se=(V,i,ve)=>i.has(V)?wc("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(V):i.set(V,ve),ne=(V,i,ve,lt)=>(vi(V,i,"write to private field"),lt?lt.call(V,ve):i.set(V,ve),ve),J=(V,i,ve)=>(vi(V,i,"access private method"),ve);var Xo=(V,i,ve,lt)=>({set _(Mr){ne(V,i,Mr,ve)},get _(){return k(V,i,lt)}});var Jl,It,On,ec,tc,st,tt,mt,ln,pt,Ln,Vn,gt,Se,bt,Ce,be,ie,We,nt,Me,Ie,yt,Oe,wt,xt,rt,ot,vt,Kt,Xe,Pn,Y,ki,cn,Pt,Or,ut,xc,dn,Rn,Lr,Qt,Jt,Ai,Go,qo,ye,Ci,Rr,en,_i,Mn;const ve={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},lt=i.defineComponent({name:"AppPreviewMessage",props:ve,setup(e){const t=i.ref(!1);function n(){var h;const a=(h=e.content)==null?void 0:h.appConfig;if(!a)return"";const s=a.ws??"",l=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${l}&boId=${d}&ws=${s}&version=2.0#/home`}function r(){var s,l;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((l=e.content)==null?void 0:l.appName)})}function u(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function o(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:l,createdDatetime:d}=a;return i.createVNode("div",{class:"f-chat-message-app-preview"},[i.createVNode("div",{class:"f-chat-app-preview-message"},[s]),i.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:u,onClick:r,role:"button",tabindex:0,onKeydown:f=>f.key==="Enter"&&r()},[i.createVNode("div",{class:"f-chat-app-preview-card-left"},[i.createVNode("span",{class:"f-chat-app-preview-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),i.createVNode("div",{class:"f-chat-app-preview-card-middle"},[i.createVNode("div",{class:"f-chat-app-preview-app-name"},[l]),i.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),i.createVNode("div",{class:"f-chat-app-preview-card-right"},[i.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&i.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:o,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});lt.install=e=>{e.component(lt.name,lt)};const Mr={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},header:{type:String,default:"sender"},placement:{type:String,default:"start"},showAvatar:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},attachments:{type:Array,default:()=>[]},onPreview:{type:Function,default:void 0},onUserAuthConfirm:{type:Function,default:void 0},compositeTailRender:{type:Function,default:void 0},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},Zo={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},vc="/api/runtime/attachment";function kc(){try{const e=Zo==null?void 0:Zo.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function Ac(e){var n;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:typeof window<"u"&&((n=window.location)!=null&&n.origin)&&t.startsWith("/")?`${window.location.origin}${t}`:t}function Cc(e){return`${vc}/${encodeURIComponent(e)}/download`}function Yo(e){const t=String(e??"").trim();if(!t)return"";const n=Cc(t),r=kc();return r?`${r}${n}`:n}function Ei(e){const t=e.trim().match(/\/api\/runtime\/attachment\/([^/]+)\/download(?:\?|#|$)/i);if(!(t!=null&&t[1]))return"";try{return decodeURIComponent(t[1]).trim()}catch{return t[1].trim()}}function Si(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function _c(e){if(!e)return null;const t=/filename\*=UTF-8''([^;]+)|filename="([^"]+)"|filename=([^;]+)/i.exec(e),n=(t==null?void 0:t[1])??(t==null?void 0:t[2])??(t==null?void 0:t[3]);if(!n)return null;try{return decodeURIComponent(n.trim())}catch{return n.trim()}}function Ni(e){const t=Ac(e);if(typeof window>"u")return t;try{const n=new URL(t);if(n.origin!==window.location.origin&&n.pathname.startsWith("/api/"))return`${n.pathname}${n.search}${n.hash}`}catch{}return t}function Ec(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=Si(t),r.rel="noopener noreferrer",r.style.display="none",document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function Sc(e){const t=document.createElement("a");t.href=Ni(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function mn(e){const t=String(e.fileId??"").trim();if(t)return Yo(t);const n=String(e.url??"").trim();if(!n)return;const r=Ei(n);if(r)return Yo(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Br(e,t){const n=Si(t),r=Ni(e);try{const u=await fetch(r,{credentials:"include",mode:"cors"});if(!u.ok)throw new Error(`download_http_${u.status}`);const o=await u.blob(),a=_c(u.headers.get("Content-Disposition"))??n;Ec(o,a)}catch{Sc(e)}}function ke(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(r=>{e[r]=!0}):Array.isArray(t)?t.forEach(n=>{n&&(e[n]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r&&(e[n]=!0)})),e}function Ee(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var o,a;const u=r.split(":");if(u.length>=2&&((o=u[0])!=null&&o.trim())&&((a=u[1])!=null&&a.trim())){const s=u[0].trim(),l=u.slice(1).join(":").trim();e[s]=l}}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r!==void 0&&r!==null&&(e[n]=r)})),e}function $n(e){return e||null}function Fi(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function zr(e){return e?typeof e!="string"?e:Fi(e)?i.h("img",{src:e,alt:"icon",class:"fx-prompt--item-icon-image",onError:t=>{const n=t.target;n.style.display="none",n.parentElement.innerHTML='<i class="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?i.h("i",{class:e}):e:null}function Ti(e,t,n,r={}){const{charInterval:u=30}=r,o=i.ref({});let a=[],s=new Set;const l=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(m=>clearInterval(m)),a=[]},c=()=>{f(),o.value={},s.clear()},h=()=>{f(),o.value={},s.clear()},p=()=>{const m=e();if(!m||Object.keys(m).length===0){o.value={};return}if(!d()){o.value={...m},s=new Set(Object.keys(m));return}const x=Object.keys(m);x.forEach(g=>{o.value.hasOwnProperty(g)||(o.value[g]="")});const v=x.filter(g=>!s.has(g));if(v.length===0)return;let y=0;const b=()=>{var F;if(y>=v.length)return;const g=v[y],w=m[g];if(!w){s.add(g),y++,b();return}let A=((F=o.value[g])==null?void 0:F.length)||0;const N=setInterval(()=>{A<w.length?(o.value={...o.value,[g]:w.slice(0,A+1)},A++):(clearInterval(N),a=a.filter(_=>_!==N),s.add(g),y++,b())},u);a.push(N)};b()};return i.watch(()=>e(),()=>{l()&&p()},{immediate:!0}),i.watch(n,()=>{h(),l()&&p()}),i.watch(t,m=>{m?p():c()}),i.onMounted(()=>{l()&&p()}),{displayContent:o}}function jr(){const e=i.reactive({}),t=[],n=i.ref(null);let r=null;const u=30,o=m=>{const x=e[m];return!x||x.displayedLength>=x.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(m=>o(m))),s=()=>{for(const m of t)if(!o(m))return m;return null},l=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const m=e[n.value];m&&(m.displayedLength<m.rawValue.length?(m.displayedLength++,m.displayedValue=m.rawValue.slice(0,m.displayedLength),m.isStreaming=!0):(m.isStreaming=!1,m.displayedValue=m.rawValue,n.value=s(),n.value||d()))},d=()=>{r&&(clearInterval(r),r=null)},f=()=>{r||(r=setInterval(l,u))},c=()=>{d(),Object.keys(e).forEach(m=>{delete e[m]}),t.length=0,n.value=null},h=(m,x)=>{if(e[m]){p(m,x);return}t.push(m),e[m]={rawValue:x??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===m)&&f()},p=(m,x)=>{const v=e[m];if(!v){h(m,x);return}v.rawValue=x??"",!r&&!o(m)&&(!n.value||n.value===m)&&f()};return i.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(m=>m.isStreaming)},isAllDone:a,startStreaming:f,reset:c,registerProperty:h,updatePropertyValue:p}}function Ko(){const e=i.ref(null),t=i.ref(0),n=i.ref(!1);let r=null;const u=()=>{e.value=Date.now(),n.value=!0,r=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},o=()=>{r&&(clearInterval(r),r=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:u,stop:o,reset:()=>{o(),e.value=null,t.value=0,n.value=!1}}}const Nc={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function Fc(e){return e?e.startsWith("mcp:")?"tool_mcp":Nc[e]??"thinking_tool":"thinking_tool"}function Qo(){return{getToolIconClass:Fc}}function Tc(e){return e.scrollWidth>e.clientWidth}function Di(){Tc(this)?this.title=this.textContent??"":this.removeAttribute("title")}function Ii(){this.removeAttribute("title")}const Oi={mounted(e){e.addEventListener("mouseenter",Di),e.addEventListener("mouseleave",Ii)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",Di),e.removeEventListener("mouseleave",Ii)}};function Dc(e,t){const n=i.computed(()=>{var u;return Ee({},(u=e.styles)==null?void 0:u.header)});function r(){return t.slots.header&&i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[t.slots.header()])}return{renderHeader:r}}function Ic(e,t){var o;const n=i.ref(((o=e.content)==null?void 0:o.sender)??"发送人"),r=i.computed(()=>{var a;return Ee({},(a=e.styles)==null?void 0:a.header)});function u(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:u}}const Li={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Oc={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function Vi(){return{getFileIcon:(u,o="file-type-",a="")=>{var d;const s={pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",csv:"xls",ppt:"ppt",pptx:"ppt",txt:"txt",zip:"zip",rar:"zip",image:"img",img:"img",md:"md",audio:"any",form:"form",report:"report",board:"board",html:"html",json:"json"};let l=u?s[u.toLowerCase()]:"";if(!l&&a){const f=((d=a.split(".").pop())==null?void 0:d.toLowerCase())||"";l=f?s[f]:""}return`${o}${l||"any"}`},formatFileName:u=>(u==null?void 0:u.replace(/\.[^.]+$/,""))??"",formatFileSize:u=>u?u<1024?u+" B":u<1048576?(u/1024).toFixed(1)+" KB":(u/1048576).toFixed(1)+" MB":"",formatFileTime:u=>{if(!u)return"";const o=new Date(u),a=o.getFullYear(),s=String(o.getMonth()+1).padStart(2,"0"),l=String(o.getDate()).padStart(2,"0");return`${a}-${s}-${l}`}}}function tn({status:e,variant:t=""}){let n="";return t?n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()} variant--${t.toLowerCase()} `:n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`,i.createVNode("span",{class:n,"aria-hidden":!0},null)}const Pi=i.defineComponent({name:"FXBubbleAttachment",props:Oc,emits:["preview","batchPreview"],setup(e,t){const n=i.computed(()=>e.attachments??[]),r=i.computed(()=>{var y;return((y=n.value)==null?void 0:y.length)>0}),{formatFileName:u,formatFileSize:o,formatFileTime:a,getFileIcon:s}=Vi(),l=i.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),d=i.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function f(y,b){b.pending||t.emit("preview",b)}async function c(y,b){y.stopPropagation(),y.preventDefault();const g=mn(b);g&&await Br(g,b.name)}function h(y){y.stopPropagation(),y.preventDefault(),t.emit("batchPreview",n.value)}function p(y){switch(y.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function m(y){if(!y)return null;const b=p(y.type);return i.createVNode("div",{class:"file-info f-utils-fill"},[i.createVNode("span",{class:"file-name",title:y.name},[y.name]),i.createVNode("div",{class:"file-info-footer"},[i.createVNode("span",{class:`file-icon ${s(y.type,"file-type-",y.name)}`},null),b&&i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"file-type"},[p(y.type)])]),y.size&&i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"file-info-divider"},null),i.createTextVNode(" "),i.createVNode("span",{class:"file-size"},[o(y.size)])])])])}function x(y,b){const g=mn(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item "+s(y.type,"attachment-type-",y.name)+(y.pending?" status-working":""),key:b,onClick:w=>f(w,y)},[i.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation"},[i.createVNode("div",{class:l.value},[i.createVNode("span",{class:"f-chat-bubble-attachment-icon file-icon "+s(y.type,"file-type-",y.name)},null),i.createVNode("span",{class:d.value,title:y.name},[u(y.name)]),y.pending===!0&&i.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[i.createVNode(tn,{status:"Working",variant:"attachment"},null),i.createTextVNode(" 生成中")]),y.timestamp?i.createVNode("span",{class:"f-chat-bubble-attachment-text"},[i.createTextVNode("创建时间:"),a(y.timestamp)]):y.size?i.createVNode("span",{class:"f-chat-bubble-attachment-size"},[i.createTextVNode("文件大小:"),o(y.size)]):null])]),e.showDownloadButton!==!1&&g?i.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:w=>c(w,y)},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function v(y,b){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:b},[m(y)])}return()=>r.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,b)=>e.role==="user"?v(y,b):x(y,b)),e.enableBatchPreview&&i.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:h},[i.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[i.createTextVNode("查看全部文件")]),i.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),Ri=i.defineComponent({name:"FXBubbleFileContentFooter",props:Li,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ee({},e.customStyle),()=>i.createVNode(Pi,{attachments:n.value,onPreview:r=>{var u;return(u=e.onPreviewFile)==null?void 0:u.call(e,r)},onBatchPreview:r=>{var u;return(u=e.onBatchPreviewFile)==null?void 0:u.call(e,r)}},null)}}),Lc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},Vc=i.defineComponent({name:"FXBubblePageContentFooter",props:Lc,setup(e,t){const n=i.ref(),r=i.computed(()=>{var a,s;const o={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(o.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(o.height=`${e.customStyle.height}px`),o}),u=o=>{var a,s;((a=o.data)==null?void 0:a.type)==="navigation"&&((s=o.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(o.data.url)};return i.onMounted(()=>{window.addEventListener("message",u)}),i.onUnmounted(()=>{window.removeEventListener("message",u)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Mi(){function e(u,o){const{fileContent:a,height:s,width:l}=u;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:o==null?void 0:o.onPreviewFile,onBatchPreviewFile:o==null?void 0:o.onBatchPreviewFile}}function t(u,o){const{pageUrl:a,height:s,width:l}=u;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:o==null?void 0:o.onNavigate}}function n(u,o){const a=e(u,o);return i.h(Ri,a)}function r(u,o){const a=t(u,o);return i.h(Vc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Pc={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}},Jo="assistant-widget",ct="```";function Un(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function Bi(e,t){let n=t;for(;n<e.length&&/[a-zA-Z0-9-]/.test(e[n]);)n+=1;return{lang:e.slice(t,n),next:n}}function zi(e){const t=e.toLowerCase();return t.length===0||t.length>Jo.length?!1:Jo.startsWith(t)}function Rc(e){return e.toLowerCase()===Jo}function Mc(e,t){let n=0;for(;n<t;){const r=e.indexOf(ct,n);if(r===-1||r>=t)break;let u=r+ct.length;u=Un(e,u);const{lang:o}=Bi(e,u);if(o.length>0)return!0;n=r+ct.length}return!1}function ji(e,t){if(!e.startsWith(ct,t))return null;let n=t+ct.length;n=Un(e,n);const{lang:r,next:u}=Bi(e,n);return r.length===0?e.slice(u).trim().length===0?Mc(e,t)?null:{fenceStart:t,bodyStart:u,langComplete:!1}:null:zi(r)?(n=Un(e,u),{fenceStart:t,bodyStart:n,langComplete:Rc(r)}):null}function eu(e,t=0){const n=Un(e,t);return ji(e,n)}function Bc(e,t,n){if(t<n)return!1;const r=e.slice(t+ct.length);return r.length===0?!0:r.startsWith("`")?!1:(/^\s*[\r\n]/.test(r)||/^\s*$/.test(r),!0)}function Hr(e,t){let n=t;for(;n<=e.length;){const r=e.indexOf(ct,n);if(r===-1)return-1;if(Bc(e,r,t))return r;n=r+1}return-1}function zc(e){const t=eu(e,0);if(!(t!=null&&t.langComplete))return null;const n=Hr(e,t.bodyStart);return n===-1?null:e.slice(t.bodyStart,n).trim()}function Hi(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function jc(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?zi(t[1]??""):!1}function Hc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf(ct,n);if(r===-1)return null;const u=ji(e,r);if(u)return{fenceIdx:r,open:u};n=r+ct.length}return null}function $i(e){if(!e)return!1;const t=eu(e,0);if(!(t!=null&&t.langComplete))return!1;const n=Hr(e,t.bodyStart);return n===-1?!1:Un(e,n+ct.length)>=e.length}function $c(e){if(!e)return!1;if($i(e)||jc(e))return!0;const t=eu(e,0);return t?t.langComplete?Hr(e,t.bodyStart)===-1:!0:!1}function Uc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Hc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const{fenceIdx:u,open:o}=r;if(u>n&&t.push(e.slice(n,u)),!o.langComplete){t.push(e.slice(u));break}const a=Hr(e,o.bodyStart);if(a===-1){t.push(e.slice(u));break}const s=a+ct.length;t.push(Hi(e.slice(u,s))),n=s}return t.filter(r=>r.trim().length>0)}function Ui(e){const t=zc(Hi(e.trim()));if(t==null||t==="")return null;try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function Wc(e){var n;const t=Ui(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const Xc=/^```\s*dynamic-component\b[\s\S]*?```$/,Gc=/^```\s*dynamic-component\b/,qc=/^```\s*dynamic-component\b\s*/,Zc=/\s*```\s*$/;function Yc(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function Wi(e){return e.replace(qc,"").replace(Zc,"").trim()}function Kc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf("```",n);if(r<0)return null;const o=e.slice(r+3).match(/^\s*dynamic-component\b/);if(o)return{fenceStart:r,contentStart:r+3+o[0].length};n=r+3}return null}function Qc(e){return e?Xc.test(e)||Gc.test(e):!1}function Jc(e){const t=Wi(e);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object"||Array.isArray(n))return null;const r=n;return typeof r.instanceId!="string"?null:{...r,instanceId:r.instanceId,name:typeof r.name=="string"?r.name:void 0,componentId:typeof r.componentId=="string"?r.componentId:void 0,jsUrl:typeof r.jsUrl=="string"?r.jsUrl:"",url:typeof r.url=="string"?r.url:"",title:typeof r.title=="string"?r.title:"预览",position:r.position==="inline"?"inline":"right",width:typeof r.width=="string"?r.width:void 0,isFullscreen:typeof r.isFullscreen=="boolean"?r.isFullscreen:!1,autoOpen:typeof r.autoOpen=="boolean"?r.autoOpen:!1,fileRe:typeof r.fileRe=="string"?r.fileRe:void 0,target:r.target==="preview"||r.target==="previewExtra"?r.target:r.renderArea==="previewExtra"?"previewExtra":r.renderArea==="preview"?"preview":void 0}}function ed(e){const t=Wi(e);if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function td(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Kc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const u=e.slice(n,r.fenceStart);u&&t.push(u);const o=e.indexOf("```",r.contentStart);if(o===-1){t.push(e.slice(r.fenceStart));break}const a=o+3,s=e.slice(r.fenceStart,a);t.push(Yc(s)),n=a}return t.filter(r=>r.length>0)}var Pe=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(Pe||{});function nd(e){var u;if(!e)return[];const t=[],n=new Set,r=Uc(e);for(const o of r)if($c(o))if($i(o)){const a=Ui(o);t.push({type:Pe.AssistantWidgetComplete,raw:o,widgetData:a,widgetUrl:(u=a==null?void 0:a.renderer)==null?void 0:u.url,widgetImplOptions:Wc(o)})}else t.push({type:Pe.AssistantWidgetPending,raw:o});else{const a=td(o);for(const s of a)if(Qc(s))if(s.endsWith("```")){const l=Jc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Pe.DynamicComponentComplete,raw:s,config:l})}}else{const l=ed(s);t.push({type:Pe.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Pe.Text,raw:s})}return t}const Xi={};function rd(e){let t=Xi[e];if(t)return t;t=Xi[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 pn(e,t){typeof t!="string"&&(t=pn.defaultChars);const n=rd(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let o=0,a=r.length;o<a;o+=3){const s=parseInt(r.slice(o+1,o+3),16);if(s<128){u+=n[s];continue}if((s&224)===192&&o+3<a){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?u+="��":u+=String.fromCharCode(d),o+=3;continue}}if((s&240)===224&&o+6<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+9),16);if((l&192)===128&&(d&192)===128){const f=s<<12&61440|l<<6&4032|d&63;f<2048||f>=55296&&f<=57343?u+="���":u+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+9),16),f=parseInt(r.slice(o+10,o+12),16);if((l&192)===128&&(d&192)===128&&(f&192)===128){let c=s<<18&1835008|l<<12&258048|d<<6&4032|f&63;c<65536||c>1114111?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),o+=9;continue}}u+="�"}return u})}pn.defaultChars=";/?:@&=+$,#",pn.componentChars="";const Gi={};function od(e){let t=Gi[e];if(t)return t;t=Gi[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 Wn(e,t,n){typeof t!="string"&&(n=t,t=Wn.defaultChars),typeof n>"u"&&(n=!0);const r=od(t);let u="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){u+=e.slice(o,o+3),o+=2;continue}if(s<128){u+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}Wn.defaultChars=";/?:@&=+$,-_.!~*'()#",Wn.componentChars="-_.!~*'()";function tu(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 $r(){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 ud=/^([a-z0-9.+-]+:)/i,id=/:[0-9]*$/,ad=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,sd=["<",">",'"',"`"," ","\r",`
|
|
2
|
-
`," "],ld=["{","}","|","\\","^","`"].concat(sd),cd=["'"].concat(ld),qi=["%","/","?",";","#"].concat(cd),Zi=["/","?","#"],dd=255,Yi=/^[+a-z0-9A-Z_-]{0,63}$/,fd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ki={javascript:!0,"javascript:":!0},Qi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function nu(e,t){if(e&&e instanceof $r)return e;const n=new $r;return n.parse(e,t),n}$r.prototype.parse=function(e,t){let n,r,u,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const d=ad.exec(o);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=ud.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=o.substr(0,2)==="//",u&&!(a&&Ki[a])&&(o=o.substr(2),this.slashes=!0)),!Ki[a]&&(u||a&&!Qi[a])){let d=-1;for(let m=0;m<Zi.length;m++)r=o.indexOf(Zi[m]),r!==-1&&(d===-1||r<d)&&(d=r);let f,c;d===-1?c=o.lastIndexOf("@"):c=o.lastIndexOf("@",d),c!==-1&&(f=o.slice(0,c),o=o.slice(c+1),this.auth=f),d=-1;for(let m=0;m<qi.length;m++)r=o.indexOf(qi[m]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=o.length),o[d-1]===":"&&d--;const h=o.slice(0,d);o=o.slice(d),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let x=0,v=m.length;x<v;x++){const y=m[x];if(y&&!y.match(Yi)){let b="";for(let g=0,w=y.length;g<w;g++)y.charCodeAt(g)>127?b+="x":b+=y[g];if(!b.match(Yi)){const g=m.slice(0,x),w=m.slice(x+1),A=y.match(fd);A&&(g.push(A[1]),w.unshift(A[2])),w.length&&(o=w.join(".")+o),this.hostname=g.join(".");break}}}}this.hostname.length>dd&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Qi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},$r.prototype.parseHost=function(e){let t=id.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 hd=Object.freeze(Object.defineProperty({__proto__:null,decode:pn,encode:Wn,format:tu,parse:nu},Symbol.toStringTag,{value:"Module"})),Ji=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ea=/[\0-\x1F\x7F-\x9F]/,md=/[\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]/,ru=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,ta=/[\$\+<->\^`\|~\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]/,na=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,pd=Object.freeze(Object.defineProperty({__proto__:null,Any:Ji,Cc:ea,Cf:md,P:ru,S:ta,Z:na},Symbol.toStringTag,{value:"Module"})),gd=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))),bd=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var ou;const yd=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]]),wd=(ou=String.fromCodePoint)!==null&&ou!==void 0?ou: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 xd(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=yd.get(e))!==null&&t!==void 0?t:e}var Fe;(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"})(Fe||(Fe={}));const vd=32;var jt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jt||(jt={}));function uu(e){return e>=Fe.ZERO&&e<=Fe.NINE}function kd(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_F||e>=Fe.LOWER_A&&e<=Fe.LOWER_F}function Ad(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_Z||e>=Fe.LOWER_A&&e<=Fe.LOWER_Z||uu(e)}function Cd(e){return e===Fe.EQUALS||Ad(e)}var Te;(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"})(Te||(Te={}));var Ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ht||(Ht={}));class _d{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Te.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ht.Strict}startEntity(t){this.decodeMode=t,this.state=Te.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Te.EntityStart:return t.charCodeAt(n)===Fe.NUM?(this.state=Te.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Te.NamedEntity,this.stateNamedEntity(t,n));case Te.NumericStart:return this.stateNumericStart(t,n);case Te.NumericDecimal:return this.stateNumericDecimal(t,n);case Te.NumericHex:return this.stateNumericHex(t,n);case Te.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|vd)===Fe.LOWER_X?(this.state=Te.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Te.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const o=r-n;this.result=this.result*Math.pow(u,o)+parseInt(t.substr(n,o),u),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(uu(u)||kd(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(uu(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,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===Fe.SEMI)this.consumed+=1;else if(this.decodeMode===Ht.Strict)return 0;return this.emitCodePoint(xd(this.result),this.consumed),this.errors&&(t!==Fe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Ed(r,u,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Ht.Attribute&&(o===0||Cd(a))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14,o!==0){if(a===Fe.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ht.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&jt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~jt.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case Te.NamedEntity:return this.result!==0&&(this.decodeMode!==Ht.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Te.NumericDecimal:return this.emitNumericEntity(0,2);case Te.NumericHex:return this.emitNumericEntity(0,3);case Te.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Te.EntityStart:return 0}}}function ra(e){let t="";const n=new _d(e,r=>t+=wd(r));return function(u,o){let a=0,s=0;for(;(s=u.indexOf("&",s))>=0;){t+=u.slice(a,s),n.startEntity(o);const d=n.write(u,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+u.slice(a);return t="",l}}function Ed(e,t,n,r){const u=(t&jt.BRANCH_LENGTH)>>7,o=t&jt.JUMP_TABLE;if(u===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=u?-1:e[n+l]-1}let a=n,s=a+u-1;for(;a<=s;){const l=a+s>>>1,d=e[l];if(d<r)a=l+1;else if(d>r)s=l-1;else return e[l+u]}return-1}const Sd=ra(gd);ra(bd);function oa(e,t=Ht.Legacy){return Sd(e,t)}function Nd(e){return Object.prototype.toString.call(e)}function iu(e){return Nd(e)==="[object String]"}const Fd=Object.prototype.hasOwnProperty;function Td(e,t){return Fd.call(e,t)}function Ur(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 ua(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function au(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 Wr(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 ia=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Dd=/&([a-z#][a-z0-9]{1,31});/gi,Id=new RegExp(ia.source+"|"+Dd.source,"gi"),Od=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ld(e,t){if(t.charCodeAt(0)===35&&Od.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return au(r)?Wr(r):e}const n=oa(e);return n!==e?n:e}function Vd(e){return e.indexOf("\\")<0?e:e.replace(ia,"$1")}function gn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Id,function(t,n,r){return n||Ld(t,r)})}const Pd=/[&<>"]/,Rd=/[&<>"]/g,Md={"&":"&","<":"<",">":">",'"':"""};function Bd(e){return Md[e]}function $t(e){return Pd.test(e)?e.replace(Rd,Bd):e}const zd=/[.?*+^$[\]\\(){}|-]/g;function jd(e){return e.replace(zd,"\\$&")}function me(e){switch(e){case 9:case 32:return!0}return!1}function Xn(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 Gn(e){return ru.test(e)||ta.test(e)}function qn(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 Xr(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Hd=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:ua,assign:Ur,escapeHtml:$t,escapeRE:jd,fromCodePoint:Wr,has:Td,isMdAsciiPunct:qn,isPunctChar:Gn,isSpace:me,isString:iu,isValidEntityCode:au,isWhiteSpace:Xn,lib:{mdurl:hd,ucmicro:pd},normalizeReference:Xr,unescapeAll:gn,unescapeMd:Vd},Symbol.toStringTag,{value:"Module"}));function $d(e,t,n){let r,u,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){u=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let d=-1;return u&&(d=e.pos),e.pos=l,d}function Ud(e,t,n){let r,u=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return o;if(r===62)return o.pos=u+1,o.str=gn(e.slice(t+1,u)),o.ok=!0,o;if(r===92&&u+1<n){u+=2;continue}u++}return o}let a=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}u++}return t===u||a!==0||(o.str=gn(e.slice(t,u)),o.pos=u,o.ok=!0),o}function Wd(e,t,n,r){let u,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(u=e.charCodeAt(o),u===a.marker)return a.pos=o+1,a.str+=gn(e.slice(t,o)),a.ok=!0,a;if(u===40&&a.marker===41)return a;u===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=gn(e.slice(t,o)),a}const Xd=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Ud,parseLinkLabel:$d,parseLinkTitle:Wd},Symbol.toStringTag,{value:"Module"})),At={};At.code_inline=function(e,t,n,r,u){const o=e[t];return"<code"+u.renderAttrs(o)+">"+$t(o.content)+"</code>"},At.code_block=function(e,t,n,r,u){const o=e[t];return"<pre"+u.renderAttrs(o)+"><code>"+$t(e[t].content)+`</code></pre>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
(function(le,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(le=typeof globalThis<"u"?globalThis:le||self,d(le.FarrisX={},le.vue))})(this,function(le,d){"use strict";var Cw=Object.defineProperty;var om=le=>{throw TypeError(le)};var Sw=(le,d,Wt)=>d in le?Cw(le,d,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):le[d]=Wt;var Bt=(le,d,Wt)=>Sw(le,typeof d!="symbol"?d+"":d,Wt),B1=(le,d,Wt)=>d.has(le)||om("Cannot "+Wt);var V=(le,d,Wt)=>(B1(le,d,"read from private field"),Wt?Wt.call(le):d.get(le)),ct=(le,d,Wt)=>d.has(le)?om("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(le):d.set(le,Wt),Xe=(le,d,Wt,Cr)=>(B1(le,d,"write to private field"),Cr?Cr.call(le,Wt):d.set(le,Wt),Wt),je=(le,d,Wt)=>(B1(le,d,"access private method"),Wt);var Ms=(le,d,Wt,Cr)=>({set _(Cu){Xe(le,d,Cu,Wt)},get _(){return V(le,d,Cr)}});var $h,an,ti,Uh,Wh,vr,ur,Nr,wa,_r,ri,ni,zr,f0,Ir,i0,_t,tt,q0,or,T0,A0,Or,D0,Lr,Rr,sr,lr,Pr,Xn,j0,ai,Oe,M1,xa,An,mu,cr,lm,Aa,ii,pu,ia,ua,N1,Ns,_s,Ot,_1,ku,oa,z1,ui;const Wt={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},Cr=d.defineComponent({name:"AppPreviewMessage",props:Wt,setup(e){const t=d.ref(!1);function r(){var w;const s=(w=e.content)==null?void 0:w.appConfig;if(!s)return"";const c=s.ws??"",f=s.appPath??"",p=s.appObjectId??"";return`${s.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${f}&boId=${p}&ws=${c}&version=2.0#/home`}function n(){var c,f;const s=(c=e.content)==null?void 0:c.previewConfig;s&&e.onOpen&&e.onOpen({...s,title:s.title??((f=e.content)==null?void 0:f.appName)})}function i(s){const c=s.target;c!=null&&c.closest(".f-chat-app-preview-open-btn")||s.preventDefault()}function a(s){s.stopPropagation();const c=r();c&&window.open(c,"_blank")}return()=>{const s=e.content;if(!s)return null;const{message:c,appName:f,createdDatetime:p}=s;return d.createVNode("div",{class:"f-chat-message-app-preview"},[d.createVNode("div",{class:"f-chat-app-preview-message"},[c]),d.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:i,onClick:n,role:"button",tabindex:0,onKeydown:g=>g.key==="Enter"&&n()},[d.createVNode("div",{class:"f-chat-app-preview-card-left"},[d.createVNode("span",{class:"f-chat-app-preview-icon"},[d.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),d.createVNode("div",{class:"f-chat-app-preview-card-middle"},[d.createVNode("div",{class:"f-chat-app-preview-app-name"},[f]),d.createVNode("div",{class:"f-chat-app-preview-datetime"},[p])]),d.createVNode("div",{class:"f-chat-app-preview-card-right"},[d.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&d.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:a,title:"在新页签中打开","aria-label":"在新页签中打开"},[d.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});Cr.install=e=>{e.component(Cr.name,Cr)};const Cu={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},header:{type:String,default:"sender"},placement:{type:String,default:"start"},showAvatar:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},attachments:{type:Array,default:()=>[]},onPreview:{type:Function,default:void 0},onUserAuthConfirm:{type:Function,default:void 0},compositeTailRender:{type:Function,default:void 0},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},zs={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},cm="/api/runtime/attachment";function dm(){try{const e=zs==null?void 0:zs.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function fm(e){var r;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:typeof window<"u"&&((r=window.location)!=null&&r.origin)&&t.startsWith("/")?`${window.location.origin}${t}`:t}function hm(e){return`${cm}/${encodeURIComponent(e)}/download`}function Is(e){const t=String(e??"").trim();if(!t)return"";const r=hm(t),n=dm();return n?`${n}${r}`:r}function I1(e){const t=e.trim().match(/\/api\/runtime\/attachment\/([^/]+)\/download(?:\?|#|$)/i);if(!(t!=null&&t[1]))return"";try{return decodeURIComponent(t[1]).trim()}catch{return t[1].trim()}}function O1(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function mm(e){if(!e)return null;const t=/filename\*=UTF-8''([^;]+)|filename="([^"]+)"|filename=([^;]+)/i.exec(e),r=(t==null?void 0:t[1])??(t==null?void 0:t[2])??(t==null?void 0:t[3]);if(!r)return null;try{return decodeURIComponent(r.trim())}catch{return r.trim()}}function L1(e){const t=fm(e);if(typeof window>"u")return t;try{const r=new URL(t);if(r.origin!==window.location.origin&&r.pathname.startsWith("/api/"))return`${r.pathname}${r.search}${r.hash}`}catch{}return t}function pm(e,t){const r=URL.createObjectURL(e),n=document.createElement("a");n.href=r,n.download=O1(t),n.rel="noopener noreferrer",n.style.display="none",document.body.appendChild(n),n.click(),n.remove(),URL.revokeObjectURL(r)}function gm(e){const t=document.createElement("a");t.href=L1(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function Ea(e){const t=String(e.fileId??"").trim();if(t)return Is(t);const r=String(e.url??"").trim();if(!r)return;const n=I1(r);if(n)return Is(n);if(r.startsWith("http://")||r.startsWith("https://")||r.startsWith("/"))return r}async function Su(e,t){const r=O1(t),n=L1(e);try{const i=await fetch(n,{credentials:"include",mode:"cors"});if(!i.ok)throw new Error(`download_http_${i.status}`);const a=await i.blob(),s=mm(i.headers.get("Content-Disposition"))??r;pm(a,s)}catch{gm(e)}}function Kt(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(n=>{e[n]=!0}):Array.isArray(t)?t.forEach(r=>{r&&(e[r]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{r&&n&&(e[r]=!0)})),e}function c0(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(n=>{var a,s;const i=n.split(":");if(i.length>=2&&((a=i[0])!=null&&a.trim())&&((s=i[1])!=null&&s.trim())){const c=i[0].trim(),f=i.slice(1).join(":").trim();e[c]=f}}):typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{r&&n!==void 0&&n!==null&&(e[r]=n)})),e}function pi(e){return e||null}function R1(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Eu(e){return e?typeof e!="string"?e:R1(e)?d.h("img",{src:e,alt:"icon",class:"fx-prompt--item-icon-image",onError:t=>{const r=t.target;r.style.display="none",r.parentElement.innerHTML='<i class="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?d.h("i",{class:e}):e:null}function P1(e,t,r,n={}){const{charInterval:i=30}=n,a=d.ref({});let s=[],c=new Set;const f=()=>typeof t=="function"?t():t.value,p=()=>typeof r=="function"?r():r.value,g=()=>{s.forEach(C=>clearInterval(C)),s=[]},m=()=>{g(),a.value={},c.clear()},w=()=>{g(),a.value={},c.clear()},k=()=>{const C=e();if(!C||Object.keys(C).length===0){a.value={};return}if(!p()){a.value={...C},c=new Set(Object.keys(C));return}const B=Object.keys(C);B.forEach(F=>{a.value.hasOwnProperty(F)||(a.value[F]="")});const _=B.filter(F=>!c.has(F));if(_.length===0)return;let T=0;const S=()=>{var Y;if(T>=_.length)return;const F=_[T],z=C[F];if(!z){c.add(F),T++,S();return}let R=((Y=a.value[F])==null?void 0:Y.length)||0;const $=setInterval(()=>{R<z.length?(a.value={...a.value,[F]:z.slice(0,R+1)},R++):(clearInterval($),s=s.filter(q=>q!==$),c.add(F),T++,S())},i);s.push($)};S()};return d.watch(()=>e(),()=>{f()&&k()},{immediate:!0}),d.watch(r,()=>{w(),f()&&k()}),d.watch(t,C=>{C?k():m()}),d.onMounted(()=>{f()&&k()}),{displayContent:a}}function Fu(){const e=d.reactive({}),t=[],r=d.ref(null);let n=null;const i=30,a=C=>{const B=e[C];return!B||B.displayedLength>=B.rawValue.length},s=d.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(C=>a(C))),c=()=>{for(const C of t)if(!a(C))return C;return null},f=()=>{if(!r.value&&(r.value=c(),!r.value)){p();return}const C=e[r.value];C&&(C.displayedLength<C.rawValue.length?(C.displayedLength++,C.displayedValue=C.rawValue.slice(0,C.displayedLength),C.isStreaming=!0):(C.isStreaming=!1,C.displayedValue=C.rawValue,r.value=c(),r.value||p()))},p=()=>{n&&(clearInterval(n),n=null)},g=()=>{n||(n=setInterval(f,i))},m=()=>{p(),Object.keys(e).forEach(C=>{delete e[C]}),t.length=0,r.value=null},w=(C,B)=>{if(e[C]){k(C,B);return}t.push(C),e[C]={rawValue:B??"",displayedLength:0,isStreaming:!1,displayedValue:""},n||(!r.value||r.value===C)&&g()},k=(C,B)=>{const _=e[C];if(!_){w(C,B);return}_.rawValue=B??"",!n&&!a(C)&&(!r.value||r.value===C)&&g()};return d.onUnmounted(()=>{p()}),{propertyStates:e,currentProperty:r,get isAnyStreaming(){return Object.values(e).some(C=>C.isStreaming)},isAllDone:s,startStreaming:g,reset:m,registerProperty:w,updatePropertyValue:k}}function Os(){const e=d.ref(null),t=d.ref(0),r=d.ref(!1);let n=null;const i=()=>{e.value=Date.now(),r.value=!0,n=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},a=()=>{n&&(clearInterval(n),n=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:r,start:i,stop:a,reset:()=>{a(),e.value=null,t.value=0,r.value=!1}}}const bm={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function ym(e){return e?e.startsWith("mcp:")?"tool_mcp":bm[e]??"thinking_tool":"thinking_tool"}function Ls(){return{getToolIconClass:ym}}function vm(e){return e.scrollWidth>e.clientWidth}function V1(){vm(this)?this.title=this.textContent??"":this.removeAttribute("title")}function H1(){this.removeAttribute("title")}const q1={mounted(e){e.addEventListener("mouseenter",V1),e.addEventListener("mouseleave",H1)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",V1),e.removeEventListener("mouseleave",H1)}};function wm(e,t){const r=d.computed(()=>{var i;return c0({},(i=e.styles)==null?void 0:i.header)});function n(){return t.slots.header&&d.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[t.slots.header()])}return{renderHeader:n}}function xm(e,t){var a;const r=d.ref(((a=e.content)==null?void 0:a.sender)??"发送人"),n=d.computed(()=>{var s;return c0({},(s=e.styles)==null?void 0:s.header)});function i(){return d.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[r.value])}return{renderHeader:i}}const j1={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Am={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function $1(){return{getFileIcon:(i,a="file-type-",s="")=>{var p;const c={pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",csv:"xls",ppt:"ppt",pptx:"ppt",txt:"txt",zip:"zip",rar:"zip",image:"img",img:"img",md:"md",audio:"any",form:"form",report:"report",board:"board",html:"html",json:"json"};let f=i?c[i.toLowerCase()]:"";if(!f&&s){const g=((p=s.split(".").pop())==null?void 0:p.toLowerCase())||"";f=g?c[g]:""}return`${a}${f||"any"}`},formatFileName:i=>(i==null?void 0:i.replace(/\.[^.]+$/,""))??"",formatFileSize:i=>i?i<1024?i+" B":i<1048576?(i/1024).toFixed(1)+" KB":(i/1048576).toFixed(1)+" MB":"",formatFileTime:i=>{if(!i)return"";const a=new Date(i),s=a.getFullYear(),c=String(a.getMonth()+1).padStart(2,"0"),f=String(a.getDate()).padStart(2,"0");return`${s}-${c}-${f}`}}}function sa({status:e,variant:t=""}){let r="";return t?r=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()} variant--${t.toLowerCase()} `:r=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`,d.createVNode("span",{class:r,"aria-hidden":!0},null)}const U1=d.defineComponent({name:"FXBubbleAttachment",props:Am,emits:["preview","batchPreview"],setup(e,t){const r=d.computed(()=>e.attachments??[]),n=d.computed(()=>{var T;return((T=r.value)==null?void 0:T.length)>0}),{formatFileName:i,formatFileSize:a,formatFileTime:s,getFileIcon:c}=$1(),f=d.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),p=d.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function g(T,S){S.pending||t.emit("preview",S)}async function m(T,S){T.stopPropagation(),T.preventDefault();const F=Ea(S);F&&await Su(F,S.name)}function w(T){T.stopPropagation(),T.preventDefault(),t.emit("batchPreview",r.value)}function k(T){switch(T.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function C(T){if(!T)return null;const S=k(T.type);return d.createVNode("div",{class:"file-info f-utils-fill"},[d.createVNode("span",{class:"file-name",title:T.name},[T.name]),d.createVNode("div",{class:"file-info-footer"},[d.createVNode("span",{class:`file-icon ${c(T.type,"file-type-",T.name)}`},null),S&&d.createVNode(d.Fragment,null,[d.createVNode("span",{class:"file-type"},[k(T.type)])]),T.size&&d.createVNode(d.Fragment,null,[d.createVNode("div",{class:"file-info-divider"},null),d.createTextVNode(" "),d.createVNode("span",{class:"file-size"},[a(T.size)])])])])}function B(T,S){const F=Ea(T);return d.createVNode("div",{class:"f-chat-bubble-attachment-item "+c(T.type,"attachment-type-",T.name)+(T.pending?" status-working":""),key:S,onClick:z=>g(z,T)},[d.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation"},[d.createVNode("div",{class:f.value},[d.createVNode("span",{class:"f-chat-bubble-attachment-icon file-icon "+c(T.type,"file-type-",T.name)},null),d.createVNode("span",{class:p.value,title:T.name},[i(T.name)]),T.pending===!0&&d.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[d.createVNode(sa,{status:"Working",variant:"attachment"},null),d.createTextVNode(" 生成中")]),T.timestamp?d.createVNode("span",{class:"f-chat-bubble-attachment-text"},[d.createTextVNode("创建时间:"),s(T.timestamp)]):T.size?d.createVNode("span",{class:"f-chat-bubble-attachment-size"},[d.createTextVNode("文件大小:"),a(T.size)]):null])]),e.showDownloadButton!==!1&&F?d.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:z=>m(z,T)},[d.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function _(T,S){return d.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:S},[C(T)])}return()=>n.value?d.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[r.value.map((T,S)=>e.role==="user"?_(T,S):B(T,S)),e.enableBatchPreview&&d.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:w},[d.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[d.createTextVNode("查看全部文件")]),d.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),W1=d.defineComponent({name:"FXBubbleFileContentFooter",props:j1,setup(e,t){const r=d.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return c0({},e.customStyle),()=>d.createVNode(U1,{attachments:r.value,onPreview:n=>{var i;return(i=e.onPreviewFile)==null?void 0:i.call(e,n)},onBatchPreview:n=>{var i;return(i=e.onBatchPreviewFile)==null?void 0:i.call(e,n)}},null)}}),Dm={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},km=d.defineComponent({name:"FXBubblePageContentFooter",props:Dm,setup(e,t){const r=d.ref(),n=d.computed(()=>{var s,c;const a={width:"100%",height:"100%",border:"none"};return(s=e.customStyle)!=null&&s.width&&(a.width=e.customStyle.width),(c=e.customStyle)!=null&&c.height&&(a.height=`${e.customStyle.height}px`),a}),i=a=>{var s,c;((s=a.data)==null?void 0:s.type)==="navigation"&&((c=a.data)!=null&&c.url)&&e.onNavigate&&e.onNavigate(a.data.url)};return d.onMounted(()=>{window.addEventListener("message",i)}),d.onUnmounted(()=>{window.removeEventListener("message",i)}),()=>d.createVNode("iframe",{ref:r,src:e.pageUrl,style:n.value,scrolling:"auto"},null)}});function G1(){function e(i,a){const{fileContent:s,height:c,width:f}=i;return{file:s,customStyle:{width:f||"100%",height:c||"100%"},onPreviewFile:a==null?void 0:a.onPreviewFile,onBatchPreviewFile:a==null?void 0:a.onBatchPreviewFile}}function t(i,a){const{pageUrl:s,height:c,width:f}=i;return{pageUrl:s,customStyle:{width:f||"100%",height:c||"100%"},onNavigate:a==null?void 0:a.onNavigate}}function r(i,a){const s=e(i,a);return d.h(W1,s)}function n(i,a){const s=t(i,a);return d.h(km,s)}return{renderFileEmbeddedContent:r,renderPageEmbeddedContent:n}}const Cm={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}},Rs="assistant-widget",Sr="```";function gi(e,t){let r=t;for(;r<e.length&&/\s/.test(e[r]);)r+=1;return r}function X1(e,t){let r=t;for(;r<e.length&&/[a-zA-Z0-9-]/.test(e[r]);)r+=1;return{lang:e.slice(t,r),next:r}}function Y1(e){const t=e.toLowerCase();return t.length===0||t.length>Rs.length?!1:Rs.startsWith(t)}function Sm(e){return e.toLowerCase()===Rs}function Em(e,t){let r=0;for(;r<t;){const n=e.indexOf(Sr,r);if(n===-1||n>=t)break;let i=n+Sr.length;i=gi(e,i);const{lang:a}=X1(e,i);if(a.length>0)return!0;r=n+Sr.length}return!1}function Z1(e,t){if(!e.startsWith(Sr,t))return null;let r=t+Sr.length;r=gi(e,r);const{lang:n,next:i}=X1(e,r);return n.length===0?e.slice(i).trim().length===0?Em(e,t)?null:{fenceStart:t,bodyStart:i,langComplete:!1}:null:Y1(n)?(r=gi(e,i),{fenceStart:t,bodyStart:r,langComplete:Sm(n)}):null}function Ps(e,t=0){const r=gi(e,t);return Z1(e,r)}function Fm(e,t,r){if(t<r)return!1;const n=e.slice(t+Sr.length);return n.length===0?!0:n.startsWith("`")?!1:(/^\s*[\r\n]/.test(n)||/^\s*$/.test(n),!0)}function Tu(e,t){let r=t;for(;r<=e.length;){const n=e.indexOf(Sr,r);if(n===-1)return-1;if(Fm(e,n,t))return n;r=n+1}return-1}function Tm(e){const t=Ps(e,0);if(!(t!=null&&t.langComplete))return null;const r=Tu(e,t.bodyStart);return r===-1?null:e.slice(t.bodyStart,r).trim()}function K1(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function Bm(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?Y1(t[1]??""):!1}function Mm(e,t){let r=t;for(;r<e.length;){const n=e.indexOf(Sr,r);if(n===-1)return null;const i=Z1(e,n);if(i)return{fenceIdx:n,open:i};r=n+Sr.length}return null}function Q1(e){if(!e)return!1;const t=Ps(e,0);if(!(t!=null&&t.langComplete))return!1;const r=Tu(e,t.bodyStart);return r===-1?!1:gi(e,r+Sr.length)>=e.length}function Nm(e){if(!e)return!1;if(Q1(e)||Bm(e))return!0;const t=Ps(e,0);return t?t.langComplete?Tu(e,t.bodyStart)===-1:!0:!1}function _m(e){if(!e)return[];const t=[];let r=0;for(;r<e.length;){const n=Mm(e,r);if(!n){const f=e.slice(r);f&&t.push(f);break}const{fenceIdx:i,open:a}=n;if(i>r&&t.push(e.slice(r,i)),!a.langComplete){t.push(e.slice(i));break}const s=Tu(e,a.bodyStart);if(s===-1){t.push(e.slice(i));break}const c=s+Sr.length;t.push(K1(e.slice(i,c))),r=c}return t.filter(n=>n.trim().length>0)}function J1(e){const t=Tm(K1(e.trim()));if(t==null||t==="")return null;try{return JSON.parse(t)}catch(r){return console.error("Failed to parse JSON:",r),null}}function zm(e){var r;const t=J1(e);return((r=t==null?void 0:t.renderer)==null?void 0:r.widgetImplOptions)||{}}const Im=/^```\s*dynamic-component\b[\s\S]*?```$/,Om=/^```\s*dynamic-component\b/,Lm=/^```\s*dynamic-component\b\s*/,Rm=/\s*```\s*$/;function Pm(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function ed(e){return e.replace(Lm,"").replace(Rm,"").trim()}function Vm(e,t){let r=t;for(;r<e.length;){const n=e.indexOf("```",r);if(n<0)return null;const a=e.slice(n+3).match(/^\s*dynamic-component\b/);if(a)return{fenceStart:n,contentStart:n+3+a[0].length};r=n+3}return null}function Hm(e){return e?Im.test(e)||Om.test(e):!1}function qm(e){const t=ed(e);if(!t)return null;let r;try{r=JSON.parse(t)}catch{return null}if(!r||typeof r!="object"||Array.isArray(r))return null;const n=r;return typeof n.instanceId!="string"?null:{...n,instanceId:n.instanceId,name:typeof n.name=="string"?n.name:void 0,componentId:typeof n.componentId=="string"?n.componentId:void 0,jsUrl:typeof n.jsUrl=="string"?n.jsUrl:"",url:typeof n.url=="string"?n.url:"",title:typeof n.title=="string"?n.title:"预览",position:n.position==="inline"?"inline":"right",width:typeof n.width=="string"?n.width:void 0,isFullscreen:typeof n.isFullscreen=="boolean"?n.isFullscreen:!1,autoOpen:typeof n.autoOpen=="boolean"?n.autoOpen:!1,fileRe:typeof n.fileRe=="string"?n.fileRe:void 0,target:n.target==="preview"||n.target==="previewExtra"?n.target:n.renderArea==="previewExtra"?"previewExtra":n.renderArea==="preview"?"preview":void 0}}function jm(e){const t=ed(e);if(!t)return null;const r=t.match(/"position"\s*:\s*"(inline|right)"/);return r?{position:r[1]}:null}function $m(e){if(!e)return[];const t=[];let r=0;for(;r<e.length;){const n=Vm(e,r);if(!n){const f=e.slice(r);f&&t.push(f);break}const i=e.slice(r,n.fenceStart);i&&t.push(i);const a=e.indexOf("```",n.contentStart);if(a===-1){t.push(e.slice(n.fenceStart));break}const s=a+3,c=e.slice(n.fenceStart,s);t.push(Pm(c)),r=s}return t.filter(n=>n.length>0)}var S0=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(S0||{});function Um(e){var i;if(!e)return[];const t=[],r=new Set,n=_m(e);for(const a of n)if(Nm(a))if(Q1(a)){const s=J1(a);t.push({type:S0.AssistantWidgetComplete,raw:a,widgetData:s,widgetUrl:(i=s==null?void 0:s.renderer)==null?void 0:i.url,widgetImplOptions:zm(a)})}else t.push({type:S0.AssistantWidgetPending,raw:a});else{const s=$m(a);for(const c of s)if(Hm(c))if(c.endsWith("```")){const f=qm(c);if(f!=null&&f.instanceId){if(r.has(f.instanceId))continue;r.add(f.instanceId),t.push({type:S0.DynamicComponentComplete,raw:c,config:f})}}else{const f=jm(c);t.push({type:S0.DynamicComponentPending,raw:c,position:(f==null?void 0:f.position)??null})}else c.trim()&&t.push({type:S0.Text,raw:c})}return t}/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:td,setPrototypeOf:rd,isFrozen:Wm,getPrototypeOf:Gm,getOwnPropertyDescriptor:Xm}=Object;let{freeze:_0,seal:pr,create:Bu}=Object,{apply:Vs,construct:Hs}=typeof Reflect<"u"&&Reflect;_0||(_0=function(t){return t}),pr||(pr=function(t){return t}),Vs||(Vs=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(r,i)}),Hs||(Hs=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new t(...n)});const Mu=I0(Array.prototype.forEach),Ym=I0(Array.prototype.lastIndexOf),nd=I0(Array.prototype.pop),bi=I0(Array.prototype.push),Zm=I0(Array.prototype.splice),Nu=I0(String.prototype.toLowerCase),qs=I0(String.prototype.toString),js=I0(String.prototype.match),yi=I0(String.prototype.replace),Km=I0(String.prototype.indexOf),Qm=I0(String.prototype.trim),J0=I0(Object.prototype.hasOwnProperty),z0=I0(RegExp.prototype.test),vi=Jm(TypeError);function I0(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Vs(e,t,n)}}function Jm(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Hs(e,r)}}function lt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nu;rd&&rd(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(Wm(t)||(t[n]=a),i=a)}e[i]=!0}return e}function e6(e){for(let t=0;t<e.length;t++)J0(e,t)||(e[t]=null);return e}function $r(e){const t=Bu(null);for(const[r,n]of td(e))J0(e,r)&&(Array.isArray(n)?t[r]=e6(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=$r(n):t[r]=n);return t}function wi(e,t){for(;e!==null;){const n=Xm(e,t);if(n){if(n.get)return I0(n.get);if(typeof n.value=="function")return I0(n.value)}e=Gm(e)}function r(){return null}return r}const ad=_0(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$s=_0(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Us=_0(["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"]),t6=_0(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ws=_0(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),r6=_0(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),id=_0(["#text"]),ud=_0(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gs=_0(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),od=_0(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),_u=_0(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),n6=pr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),a6=pr(/<%[\w\W]*|[\w\W]*%>/gm),i6=pr(/\$\{[\w\W]*/gm),u6=pr(/^data-[\-\w.\u00B7-\uFFFF]+$/),o6=pr(/^aria-[\-\w]+$/),sd=pr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),s6=pr(/^(?:\w+script|data):/i),l6=pr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ld=pr(/^html$/i),c6=pr(/^[a-z][.\w]*(-[.\w]+)+$/i);var cd=Object.freeze({__proto__:null,ARIA_ATTR:o6,ATTR_WHITESPACE:l6,CUSTOM_ELEMENT:c6,DATA_ATTR:u6,DOCTYPE_NAME:ld,ERB_EXPR:a6,IS_ALLOWED_URI:sd,IS_SCRIPT_OR_DATA:s6,MUSTACHE_EXPR:n6,TMPLIT_EXPR:i6});const xi={element:1,text:3,progressingInstruction:7,comment:8,document:9},d6=function(){return typeof window>"u"?null:window},f6=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},dd=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function fd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d6();const t=Ue=>fd(Ue);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==xi.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:c,Element:f,NodeFilter:p,NamedNodeMap:g=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:w,trustedTypes:k}=e,C=f.prototype,B=wi(C,"cloneNode"),_=wi(C,"remove"),T=wi(C,"nextSibling"),S=wi(C,"childNodes"),F=wi(C,"parentNode");if(typeof s=="function"){const Ue=r.createElement("template");Ue.content&&Ue.content.ownerDocument&&(r=Ue.content.ownerDocument)}let z,R="";const{implementation:$,createNodeIterator:Y,createDocumentFragment:q,getElementsByTagName:pe}=r,{importNode:he}=n;let ce=dd();t.isSupported=typeof td=="function"&&typeof F=="function"&&$&&$.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:ae,TMPLIT_EXPR:xe,DATA_ATTR:Se,ARIA_ATTR:te,IS_SCRIPT_OR_DATA:ye,ATTR_WHITESPACE:ne,CUSTOM_ELEMENT:Ne}=cd;let{IS_ALLOWED_URI:We}=cd,X=null;const Z=lt({},[...ad,...$s,...Us,...Ws,...id]);let Q=null;const ue=lt({},[...ud,...Gs,...od,..._u]);let fe=Object.seal(Bu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,ie=null;const me=Object.seal(Bu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,Le=!0,Ye=!1,Ke=!0,ut=!1,ot=!0,st=!1,Xt=!1,$0=!1,Jt=!1,ft=!1,Ce=!1,dr=!0,Da=!1;const Yn="user-content-";let Zn=!0,Vr=!1,U0={},C0=null;const un=lt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Dn=null;const B0=lt({},["audio","video","img","source","image","track"]);let fr=null;const Hr=lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kn="http://www.w3.org/1998/Math/MathML",oi="http://www.w3.org/2000/svg",qr="http://www.w3.org/1999/xhtml";let Qn=qr,K0=!1,Jn=null;const us=lt({},[Kn,oi,qr],qs);let si=lt({},["mi","mo","mn","ms","mtext"]),ea=lt({},["annotation-xml"]);const gu=lt({},["title","style","font","a","script"]);let ka=null;const Kc=["application/xhtml+xml","text/html"],Qc="text/html";let Vt=null,kt=null;const y=r.createElement("form"),x=function(K){return K instanceof RegExp||K instanceof Function},we=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kt&&kt===K)){if((!K||typeof K!="object")&&(K={}),K=$r(K),ka=Kc.indexOf(K.PARSER_MEDIA_TYPE)===-1?Qc:K.PARSER_MEDIA_TYPE,Vt=ka==="application/xhtml+xml"?qs:Nu,X=J0(K,"ALLOWED_TAGS")?lt({},K.ALLOWED_TAGS,Vt):Z,Q=J0(K,"ALLOWED_ATTR")?lt({},K.ALLOWED_ATTR,Vt):ue,Jn=J0(K,"ALLOWED_NAMESPACES")?lt({},K.ALLOWED_NAMESPACES,qs):us,fr=J0(K,"ADD_URI_SAFE_ATTR")?lt($r(Hr),K.ADD_URI_SAFE_ATTR,Vt):Hr,Dn=J0(K,"ADD_DATA_URI_TAGS")?lt($r(B0),K.ADD_DATA_URI_TAGS,Vt):B0,C0=J0(K,"FORBID_CONTENTS")?lt({},K.FORBID_CONTENTS,Vt):un,ke=J0(K,"FORBID_TAGS")?lt({},K.FORBID_TAGS,Vt):$r({}),ie=J0(K,"FORBID_ATTR")?lt({},K.FORBID_ATTR,Vt):$r({}),U0=J0(K,"USE_PROFILES")?K.USE_PROFILES:!1,ge=K.ALLOW_ARIA_ATTR!==!1,Le=K.ALLOW_DATA_ATTR!==!1,Ye=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Ke=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ut=K.SAFE_FOR_TEMPLATES||!1,ot=K.SAFE_FOR_XML!==!1,st=K.WHOLE_DOCUMENT||!1,Jt=K.RETURN_DOM||!1,ft=K.RETURN_DOM_FRAGMENT||!1,Ce=K.RETURN_TRUSTED_TYPE||!1,$0=K.FORCE_BODY||!1,dr=K.SANITIZE_DOM!==!1,Da=K.SANITIZE_NAMED_PROPS||!1,Zn=K.KEEP_CONTENT!==!1,Vr=K.IN_PLACE||!1,We=K.ALLOWED_URI_REGEXP||sd,Qn=K.NAMESPACE||qr,si=K.MATHML_TEXT_INTEGRATION_POINTS||si,ea=K.HTML_INTEGRATION_POINTS||ea,fe=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&x(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(fe.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&x(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(fe.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ut&&(Le=!1),ft&&(Jt=!0),U0&&(X=lt({},id),Q=Bu(null),U0.html===!0&&(lt(X,ad),lt(Q,ud)),U0.svg===!0&&(lt(X,$s),lt(Q,Gs),lt(Q,_u)),U0.svgFilters===!0&&(lt(X,Us),lt(Q,Gs),lt(Q,_u)),U0.mathMl===!0&&(lt(X,Ws),lt(Q,od),lt(Q,_u))),J0(K,"ADD_TAGS")||(me.tagCheck=null),J0(K,"ADD_ATTR")||(me.attributeCheck=null),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?me.tagCheck=K.ADD_TAGS:(X===Z&&(X=$r(X)),lt(X,K.ADD_TAGS,Vt))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?me.attributeCheck=K.ADD_ATTR:(Q===ue&&(Q=$r(Q)),lt(Q,K.ADD_ATTR,Vt))),K.ADD_URI_SAFE_ATTR&<(fr,K.ADD_URI_SAFE_ATTR,Vt),K.FORBID_CONTENTS&&(C0===un&&(C0=$r(C0)),lt(C0,K.FORBID_CONTENTS,Vt)),K.ADD_FORBID_CONTENTS&&(C0===un&&(C0=$r(C0)),lt(C0,K.ADD_FORBID_CONTENTS,Vt)),Zn&&(X["#text"]=!0),st&<(X,["html","head","body"]),X.table&&(lt(X,["tbody"]),delete ke.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw vi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw vi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');z=K.TRUSTED_TYPES_POLICY,R=z.createHTML("")}else z===void 0&&(z=f6(k,i)),z!==null&&typeof R=="string"&&(R=z.createHTML(""));_0&&_0(K),kt=K}},M=lt({},[...$s,...Us,...t6]),H=lt({},[...Ws,...r6]),Tt=function(K){let de=F(K);(!de||!de.tagName)&&(de={namespaceURI:Qn,tagName:"template"});const qe=Nu(K.tagName),Dt=Nu(de.tagName);return Jn[K.namespaceURI]?K.namespaceURI===oi?de.namespaceURI===qr?qe==="svg":de.namespaceURI===Kn?qe==="svg"&&(Dt==="annotation-xml"||si[Dt]):!!M[qe]:K.namespaceURI===Kn?de.namespaceURI===qr?qe==="math":de.namespaceURI===oi?qe==="math"&&ea[Dt]:!!H[qe]:K.namespaceURI===qr?de.namespaceURI===oi&&!ea[Dt]||de.namespaceURI===Kn&&!si[Dt]?!1:!H[qe]&&(gu[qe]||!M[qe]):!!(ka==="application/xhtml+xml"&&Jn[K.namespaceURI]):!1},ze=function(K){bi(t.removed,{element:K});try{F(K).removeChild(K)}catch{_(K)}},$t=function(K,de){try{bi(t.removed,{attribute:de.getAttributeNode(K),from:de})}catch{bi(t.removed,{attribute:null,from:de})}if(de.removeAttribute(K),K==="is")if(Jt||ft)try{ze(de)}catch{}else try{de.setAttribute(K,"")}catch{}},kn=function(K){let de=null,qe=null;if($0)K="<remove></remove>"+K;else{const Yt=js(K,/^[\r\n\t ]+/);qe=Yt&&Yt[0]}ka==="application/xhtml+xml"&&Qn===qr&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");const Dt=z?z.createHTML(K):K;if(Qn===qr)try{de=new w().parseFromString(Dt,ka)}catch{}if(!de||!de.documentElement){de=$.createDocument(Qn,"template",null);try{de.documentElement.innerHTML=K0?R:Dt}catch{}}const h0=de.body||de.documentElement;return K&&qe&&h0.insertBefore(r.createTextNode(qe),h0.childNodes[0]||null),Qn===qr?pe.call(de,st?"html":"body")[0]:st?de.documentElement:h0},Ge=function(K){return Y.call(K.ownerDocument||K,K,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ht=function(K){return K instanceof m&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof g)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},M0=function(K){return typeof c=="function"&&K instanceof c};function W0(Ue,K,de){Mu(Ue,qe=>{qe.call(t,K,de,kt)})}const U=function(K){let de=null;if(W0(ce.beforeSanitizeElements,K,null),Ht(K))return ze(K),!0;const qe=Vt(K.nodeName);if(W0(ce.uponSanitizeElement,K,{tagName:qe,allowedTags:X}),ot&&K.hasChildNodes()&&!M0(K.firstElementChild)&&z0(/<[/\w!]/g,K.innerHTML)&&z0(/<[/\w!]/g,K.textContent)||K.nodeType===xi.progressingInstruction||ot&&K.nodeType===xi.comment&&z0(/<[/\w]/g,K.data))return ze(K),!0;if(!(me.tagCheck instanceof Function&&me.tagCheck(qe))&&(!X[qe]||ke[qe])){if(!ke[qe]&&J(qe)&&(fe.tagNameCheck instanceof RegExp&&z0(fe.tagNameCheck,qe)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(qe)))return!1;if(Zn&&!C0[qe]){const Dt=F(K)||K.parentNode,h0=S(K)||K.childNodes;if(h0&&Dt){const Yt=h0.length;for(let m0=Yt-1;m0>=0;--m0){const zt=B(h0[m0],!0);zt.__removalCount=(K.__removalCount||0)+1,Dt.insertBefore(zt,T(K))}}}return ze(K),!0}return K instanceof f&&!Tt(K)||(qe==="noscript"||qe==="noembed"||qe==="noframes")&&z0(/<\/no(script|embed|frames)/i,K.innerHTML)?(ze(K),!0):(ut&&K.nodeType===xi.text&&(de=K.textContent,Mu([be,ae,xe],Dt=>{de=yi(de,Dt," ")}),K.textContent!==de&&(bi(t.removed,{element:K.cloneNode()}),K.textContent=de)),W0(ce.afterSanitizeElements,K,null),!1)},wr=function(K,de,qe){if(ie[de]||dr&&(de==="id"||de==="name")&&(qe in r||qe in y))return!1;if(!(Le&&!ie[de]&&z0(Se,de))){if(!(ge&&z0(te,de))){if(!(me.attributeCheck instanceof Function&&me.attributeCheck(de,K))){if(!Q[de]||ie[de]){if(!(J(K)&&(fe.tagNameCheck instanceof RegExp&&z0(fe.tagNameCheck,K)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(K))&&(fe.attributeNameCheck instanceof RegExp&&z0(fe.attributeNameCheck,de)||fe.attributeNameCheck instanceof Function&&fe.attributeNameCheck(de,K))||de==="is"&&fe.allowCustomizedBuiltInElements&&(fe.tagNameCheck instanceof RegExp&&z0(fe.tagNameCheck,qe)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(qe))))return!1}else if(!fr[de]){if(!z0(We,yi(qe,ne,""))){if(!((de==="src"||de==="xlink:href"||de==="href")&&K!=="script"&&Km(qe,"data:")===0&&Dn[K])){if(!(Ye&&!z0(ye,yi(qe,ne,"")))){if(qe)return!1}}}}}}}return!0},J=function(K){return K!=="annotation-xml"&&js(K,Ne)},bu=function(K){W0(ce.beforeSanitizeAttributes,K,null);const{attributes:de}=K;if(!de||Ht(K))return;const qe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Q,forceKeepAttr:void 0};let Dt=de.length;for(;Dt--;){const h0=de[Dt],{name:Yt,namespaceURI:m0,value:zt}=h0,on=Vt(Yt),yu=zt;let Zt=Yt==="value"?yu:Qm(yu);if(qe.attrName=on,qe.attrValue=Zt,qe.keepAttr=!0,qe.forceKeepAttr=void 0,W0(ce.uponSanitizeAttribute,K,qe),Zt=qe.attrValue,Da&&(on==="id"||on==="name")&&($t(Yt,K),Zt=Yn+Zt),ot&&z0(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Zt)){$t(Yt,K);continue}if(on==="attributename"&&js(Zt,"href")){$t(Yt,K);continue}if(qe.forceKeepAttr)continue;if(!qe.keepAttr){$t(Yt,K);continue}if(!Ke&&z0(/\/>/i,Zt)){$t(Yt,K);continue}ut&&Mu([be,ae,xe],vu=>{Zt=yi(Zt,vu," ")});const ss=Vt(K.nodeName);if(!wr(ss,on,Zt)){$t(Yt,K);continue}if(z&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!m0)switch(k.getAttributeType(ss,on)){case"TrustedHTML":{Zt=z.createHTML(Zt);break}case"TrustedScriptURL":{Zt=z.createScriptURL(Zt);break}}if(Zt!==yu)try{m0?K.setAttributeNS(m0,Yt,Zt):K.setAttribute(Yt,Zt),Ht(K)?ze(K):nd(t.removed)}catch{$t(Yt,K)}}W0(ce.afterSanitizeAttributes,K,null)},os=function Ue(K){let de=null;const qe=Ge(K);for(W0(ce.beforeSanitizeShadowDOM,K,null);de=qe.nextNode();)W0(ce.uponSanitizeShadowNode,de,null),U(de),bu(de),de.content instanceof a&&Ue(de.content);W0(ce.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(Ue){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=null,qe=null,Dt=null,h0=null;if(K0=!Ue,K0&&(Ue="<!-->"),typeof Ue!="string"&&!M0(Ue))if(typeof Ue.toString=="function"){if(Ue=Ue.toString(),typeof Ue!="string")throw vi("dirty is not a string, aborting")}else throw vi("toString is not a function");if(!t.isSupported)return Ue;if(Xt||we(K),t.removed=[],typeof Ue=="string"&&(Vr=!1),Vr){if(Ue.nodeName){const zt=Vt(Ue.nodeName);if(!X[zt]||ke[zt])throw vi("root node is forbidden and cannot be sanitized in-place")}}else if(Ue instanceof c)de=kn("<!---->"),qe=de.ownerDocument.importNode(Ue,!0),qe.nodeType===xi.element&&qe.nodeName==="BODY"||qe.nodeName==="HTML"?de=qe:de.appendChild(qe);else{if(!Jt&&!ut&&!st&&Ue.indexOf("<")===-1)return z&&Ce?z.createHTML(Ue):Ue;if(de=kn(Ue),!de)return Jt?null:Ce?R:""}de&&$0&&ze(de.firstChild);const Yt=Ge(Vr?Ue:de);for(;Dt=Yt.nextNode();)U(Dt),bu(Dt),Dt.content instanceof a&&os(Dt.content);if(Vr)return Ue;if(Jt){if(ft)for(h0=q.call(de.ownerDocument);de.firstChild;)h0.appendChild(de.firstChild);else h0=de;return(Q.shadowroot||Q.shadowrootmode)&&(h0=he.call(n,h0,!0)),h0}let m0=st?de.outerHTML:de.innerHTML;return st&&X["!doctype"]&&de.ownerDocument&&de.ownerDocument.doctype&&de.ownerDocument.doctype.name&&z0(ld,de.ownerDocument.doctype.name)&&(m0="<!DOCTYPE "+de.ownerDocument.doctype.name+`>
|
|
2
|
+
`+m0),ut&&Mu([be,ae,xe],zt=>{m0=yi(m0,zt," ")}),z&&Ce?z.createHTML(m0):m0},t.setConfig=function(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};we(Ue),Xt=!0},t.clearConfig=function(){kt=null,Xt=!1},t.isValidAttribute=function(Ue,K,de){kt||we({});const qe=Vt(Ue),Dt=Vt(K);return wr(qe,Dt,de)},t.addHook=function(Ue,K){typeof K=="function"&&bi(ce[Ue],K)},t.removeHook=function(Ue,K){if(K!==void 0){const de=Ym(ce[Ue],K);return de===-1?void 0:Zm(ce[Ue],de,1)[0]}return nd(ce[Ue])},t.removeHooks=function(Ue){ce[Ue]=[]},t.removeAllHooks=function(){ce=dd()},t}var h6=fd();class Te extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var c=s.lexer.input;i=s.start,a=s.end,i===c.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var f=c.slice(i,a).replace(/[^]/g,"$&̲"),p;i>15?p="…"+c.slice(i-15,i):p=c.slice(0,i);var g;a+15<c.length?g=c.slice(a,a+15)+"…":g=c.slice(a),n+=p+f+g}super(n),this.name="ParseError",Object.setPrototypeOf(this,Te.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}}var m6=/([A-Z])/g,Xs=e=>e.replace(m6,"-$1").toLowerCase(),p6={"&":"&",">":">","<":"<",'"':""","'":"'"},g6=/[&><"']/g,E0=e=>String(e).replace(g6,t=>p6[t]),zu=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?zu(e.body[0]):e:e.type==="font"?zu(e.body):e,b6=new Set(["mathord","textord","atom"]),dn=e=>b6.has(zu(e).type),y6=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Ys={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:e=>"#"+e},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:(e,t)=>(t.push(e),t)},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:e=>Math.max(0,e),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:e=>Math.max(0,e),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:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function v6(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Zs{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(Ys)){var n=Ys[r],i=t[r];this[r]=i!==void 0?n.processor?n.processor(i):i:v6(n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Te("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=y6(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Tn{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return Ur[w6[this.id]]}sub(){return Ur[x6[this.id]]}fracNum(){return Ur[A6[this.id]]}fracDen(){return Ur[D6[this.id]]}cramp(){return Ur[k6[this.id]]}text(){return Ur[C6[this.id]]}isTight(){return this.size>=2}}var Ks=0,Iu=1,Fa=2,fn=3,Ai=4,gr=5,Ta=6,O0=7,Ur=[new Tn(Ks,0,!1),new Tn(Iu,0,!0),new Tn(Fa,1,!1),new Tn(fn,1,!0),new Tn(Ai,2,!1),new Tn(gr,2,!0),new Tn(Ta,3,!1),new Tn(O0,3,!0)],w6=[Ai,gr,Ai,gr,Ta,O0,Ta,O0],x6=[gr,gr,gr,gr,O0,O0,O0,O0],A6=[Fa,fn,Ai,gr,Ta,O0,Ta,O0],D6=[fn,fn,gr,gr,O0,O0,O0,O0],k6=[Iu,Iu,fn,fn,gr,gr,O0,O0],C6=[Ks,Iu,Fa,fn,Fa,fn,Fa,fn],et={DISPLAY:Ur[Ks],TEXT:Ur[Fa],SCRIPT:Ur[Ai],SCRIPTSCRIPT:Ur[Ta]},Qs=[{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 S6(e){for(var t=0;t<Qs.length;t++)for(var r=Qs[t],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(e>=i[0]&&e<=i[1])return r.name}return null}var Ou=[];Qs.forEach(e=>e.blocks.forEach(t=>Ou.push(...t)));function hd(e){for(var t=0;t<Ou.length;t+=2)if(e>=Ou[t]&&e<=Ou[t+1])return!0;return!1}var Ba=80,E6=function(t,r){return"M95,"+(622+t+r)+`
|
|
3
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
4
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
5
|
+
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
|
|
6
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
7
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
8
|
+
l`+t/2.075+" -"+t+`
|
|
9
|
+
c5.3,-9.3,12,-14,20,-14
|
|
10
|
+
H400000v`+(40+t)+`H845.2724
|
|
11
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
12
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
13
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},F6=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
14
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
15
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
16
|
+
l`+t/2.084+" -"+t+`
|
|
17
|
+
c4.7,-7.3,11,-11,19,-11
|
|
18
|
+
H40000v`+(40+t)+`H1012.3
|
|
19
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
20
|
+
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
|
|
21
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
22
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
23
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},T6=function(t,r){return"M983 "+(10+t+r)+`
|
|
24
|
+
l`+t/3.13+" -"+t+`
|
|
25
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
26
|
+
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
|
|
27
|
+
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
|
|
28
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
29
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
30
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
31
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
32
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},B6=function(t,r){return"M424,"+(2398+t+r)+`
|
|
33
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
34
|
+
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
|
|
35
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
36
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
37
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
38
|
+
v`+(40+t)+`H1014.6
|
|
39
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
40
|
+
c-2,6,-10,9,-24,9
|
|
41
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
42
|
+
h400000v`+(40+t)+"h-400000z"},M6=function(t,r){return"M473,"+(2713+t+r)+`
|
|
43
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
44
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
45
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
46
|
+
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
|
|
47
|
+
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
|
|
48
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
49
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},N6=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},_6=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
50
|
+
H742v`+i+`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
|
|
51
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
52
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
53
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},z6=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=E6(r,Ba);break;case"sqrtSize1":i=F6(r,Ba);break;case"sqrtSize2":i=T6(r,Ba);break;case"sqrtSize3":i=B6(r,Ba);break;case"sqrtSize4":i=M6(r,Ba);break;case"sqrtTall":i=_6(r,Ba,n)}return i},I6=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},md={doubleleftarrow:`M262 157
|
|
54
|
+
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
|
|
55
|
+
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
|
|
56
|
+
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
|
|
57
|
+
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
|
|
58
|
+
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
|
|
59
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
60
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
61
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
62
|
+
-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
|
|
63
|
+
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
|
|
64
|
+
-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
|
|
65
|
+
-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
|
|
66
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
67
|
+
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
|
|
68
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
69
|
+
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
|
|
70
|
+
-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
|
|
71
|
+
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
|
|
72
|
+
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
|
|
73
|
+
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
|
|
74
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
75
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
76
|
+
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
|
|
77
|
+
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
|
|
78
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
79
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
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
|
|
81
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
82
|
+
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
|
|
83
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
84
|
+
-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
|
|
85
|
+
-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
|
|
86
|
+
-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
|
|
87
|
+
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
|
|
88
|
+
-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
|
|
89
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
90
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
91
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
92
|
+
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
|
|
93
|
+
-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
|
|
94
|
+
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
|
|
95
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
96
|
+
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
|
|
97
|
+
-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
|
|
98
|
+
-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
|
|
99
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
100
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z
|
|
101
|
+
M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z
|
|
102
|
+
M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
103
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
104
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
105
|
+
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
|
|
106
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
107
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
108
|
+
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
|
|
109
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
110
|
+
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
|
|
111
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
112
|
+
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
|
|
113
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
114
|
+
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
|
|
115
|
+
-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
|
|
116
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
117
|
+
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
|
|
118
|
+
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
|
|
119
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
120
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
121
|
+
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
|
|
122
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
123
|
+
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
|
|
124
|
+
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
|
|
125
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
126
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
127
|
+
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
|
|
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
|
|
129
|
+
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
|
|
130
|
+
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
|
|
131
|
+
-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
|
|
132
|
+
-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
|
|
133
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
134
|
+
-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
|
|
135
|
+
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
|
|
136
|
+
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
|
|
137
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
138
|
+
-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
|
|
139
|
+
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
|
|
140
|
+
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
|
|
141
|
+
-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
|
|
142
|
+
-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
|
|
143
|
+
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
|
|
144
|
+
-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
|
|
145
|
+
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
|
|
146
|
+
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
|
|
147
|
+
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
|
|
148
|
+
-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
|
|
149
|
+
-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
|
|
150
|
+
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
|
|
151
|
+
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
|
|
152
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
153
|
+
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
|
|
154
|
+
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
|
|
155
|
+
-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
|
|
156
|
+
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
|
|
157
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z
|
|
158
|
+
M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z
|
|
159
|
+
M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
160
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
161
|
+
-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
|
|
162
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
163
|
+
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
|
|
164
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
165
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
166
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
167
|
+
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
|
|
168
|
+
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
|
|
169
|
+
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
|
|
170
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
171
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
172
|
+
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
|
|
173
|
+
-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
|
|
174
|
+
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
|
|
175
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
176
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
177
|
+
-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
|
|
178
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
179
|
+
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
|
|
180
|
+
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
|
|
181
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
182
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
183
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
184
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
185
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
186
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
187
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
188
|
+
-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
|
|
189
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
190
|
+
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
|
|
191
|
+
-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
|
|
192
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
193
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
194
|
+
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
|
|
195
|
+
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
|
|
196
|
+
-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
|
|
197
|
+
-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
|
|
198
|
+
-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,
|
|
199
|
+
-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,
|
|
200
|
+
-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,
|
|
201
|
+
-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,
|
|
202
|
+
-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
|
|
203
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
204
|
+
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
|
|
205
|
+
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
|
|
206
|
+
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
|
|
207
|
+
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
|
|
208
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
209
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
210
|
+
-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
|
|
211
|
+
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
|
|
212
|
+
-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
|
|
213
|
+
-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
|
|
214
|
+
-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
|
|
215
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
216
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
217
|
+
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
|
|
218
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
219
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
220
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
221
|
+
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,
|
|
222
|
+
-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
|
|
223
|
+
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
|
|
224
|
+
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
|
|
225
|
+
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,
|
|
226
|
+
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,
|
|
227
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
228
|
+
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
|
|
229
|
+
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,
|
|
230
|
+
-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
|
|
231
|
+
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
|
|
232
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},O6=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
|
|
233
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
234
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
235
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
236
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
237
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
238
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
239
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
240
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
241
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
242
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
243
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
244
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
245
|
+
M347 1759 V0 h-84 V1759 v`+r+" 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
|
|
246
|
+
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,
|
|
247
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
248
|
+
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
|
|
249
|
+
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,
|
|
250
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
251
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
252
|
+
-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,
|
|
253
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
254
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
255
|
+
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
|
|
256
|
+
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
|
|
257
|
+
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
|
|
258
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
259
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
260
|
+
-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 Ma{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Js={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},L6={ex:!0,em:!0,mu:!0},pd=function(t){return typeof t!="string"&&(t=t.unit),t in Js||t in L6||t==="ex"},qt=function(t,r){var n;if(t.unit in Js)n=Js[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new Te("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},_e=function(t){return+t.toFixed(4)+"em"},Bn=function(t){return t.filter(r=>r).join(" ")},gd=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},bd=function(t){var r=document.createElement(t);r.className=Bn(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},R6=/[\s"'>/=\x00-\x1f]/,yd=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+E0(Bn(this.classes))+'"');var n="";for(var i of Object.keys(this.style))n+=Xs(i)+":"+this.style[i]+";";n&&(r+=' style="'+E0(n)+'"');for(var a of Object.keys(this.attributes)){if(R6.test(a))throw new Te("Invalid attribute name '"+a+"'");r+=" "+a+'="'+E0(this.attributes[a])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Na{constructor(t,r,n,i){gd.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return bd.call(this,"span")}toMarkup(){return yd.call(this,"span")}}class Lu{constructor(t,r,n,i){gd.call(this,r,i),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return bd.call(this,"a")}toMarkup(){return yd.call(this,"a")}}class P6{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+E0(this.src)+'"'+(' alt="'+E0(this.alt)+'"'),r="";for(var n of Object.keys(this.style))r+=Xs(n)+":"+this.style[n]+";";return r&&(t+=' style="'+E0(r)+'"'),t+="'/>",t}}var V6={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class er{constructor(t,r,n,i,a,s,c,f){this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=c||[],this.style=f||{},this.maxFontSize=0;var p=S6(this.text.charCodeAt(0));p&&this.classes.push(p+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=V6[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=_e(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Bn(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=E0(Bn(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+_e(this.italic)+";");for(var i of Object.keys(this.style))n+=Xs(i)+":"+this.style[i]+";";n&&(t=!0,r+=' style="'+E0(n)+'"');var a=E0(this.text);return t?(r+=">",r+=a,r+="</span>",r):a}}class hn{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+E0(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class Mn{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",md[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+E0(this.alternate)+'"/>':'<path d="'+E0(md[this.pathName])+'"/>'}}class el{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+E0(this.attributes[r])+'"';return t+="/>",t}}function H6(e){if(e instanceof er)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function q6(e){if(e instanceof Na)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var j6=e=>e instanceof Na||e instanceof Lu||e instanceof Ma,Wr={"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]}},Ru={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]},vd={Å:"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 $6(e,t){Wr[e]=t}function tl(e,t,r){if(!Wr[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=Wr[t][n];if(!i&&e[0]in vd&&(n=vd[e[0]].charCodeAt(0),i=Wr[t][n]),!i&&r==="text"&&hd(n)&&(i=Wr[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var rl={};function U6(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!rl[t]){var r=rl[t]={cssEmPerMu:Ru.quad[t]/18};for(var n in Ru)Ru.hasOwnProperty(n)&&(r[n]=Ru[n][t])}return rl[t]}var W6={bin:1,close:1,inner:1,open:1,punct:1,rel:1},G6={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Lt={math:{},text:{}};function v(e,t,r,n,i,a){Lt[e][i]={font:t,group:r,replace:n},a&&n&&(Lt[e][n]=Lt[e][i])}var A="math",De="text",N="main",j="ams",Rt="accent-token",He="bin",L0="close",_a="inner",Ze="mathord",t0="op-token",tr="open",Di="punct",W="rel",mn="spacing",ee="textord";v(A,N,W,"≡","\\equiv",!0),v(A,N,W,"≺","\\prec",!0),v(A,N,W,"≻","\\succ",!0),v(A,N,W,"∼","\\sim",!0),v(A,N,W,"⊥","\\perp"),v(A,N,W,"⪯","\\preceq",!0),v(A,N,W,"⪰","\\succeq",!0),v(A,N,W,"≃","\\simeq",!0),v(A,N,W,"∣","\\mid",!0),v(A,N,W,"≪","\\ll",!0),v(A,N,W,"≫","\\gg",!0),v(A,N,W,"≍","\\asymp",!0),v(A,N,W,"∥","\\parallel"),v(A,N,W,"⋈","\\bowtie",!0),v(A,N,W,"⌣","\\smile",!0),v(A,N,W,"⊑","\\sqsubseteq",!0),v(A,N,W,"⊒","\\sqsupseteq",!0),v(A,N,W,"≐","\\doteq",!0),v(A,N,W,"⌢","\\frown",!0),v(A,N,W,"∋","\\ni",!0),v(A,N,W,"∝","\\propto",!0),v(A,N,W,"⊢","\\vdash",!0),v(A,N,W,"⊣","\\dashv",!0),v(A,N,W,"∋","\\owns"),v(A,N,Di,".","\\ldotp"),v(A,N,Di,"⋅","\\cdotp"),v(A,N,Di,"⋅","·"),v(De,N,ee,"⋅","·"),v(A,N,ee,"#","\\#"),v(De,N,ee,"#","\\#"),v(A,N,ee,"&","\\&"),v(De,N,ee,"&","\\&"),v(A,N,ee,"ℵ","\\aleph",!0),v(A,N,ee,"∀","\\forall",!0),v(A,N,ee,"ℏ","\\hbar",!0),v(A,N,ee,"∃","\\exists",!0),v(A,N,ee,"∇","\\nabla",!0),v(A,N,ee,"♭","\\flat",!0),v(A,N,ee,"ℓ","\\ell",!0),v(A,N,ee,"♮","\\natural",!0),v(A,N,ee,"♣","\\clubsuit",!0),v(A,N,ee,"℘","\\wp",!0),v(A,N,ee,"♯","\\sharp",!0),v(A,N,ee,"♢","\\diamondsuit",!0),v(A,N,ee,"ℜ","\\Re",!0),v(A,N,ee,"♡","\\heartsuit",!0),v(A,N,ee,"ℑ","\\Im",!0),v(A,N,ee,"♠","\\spadesuit",!0),v(A,N,ee,"§","\\S",!0),v(De,N,ee,"§","\\S"),v(A,N,ee,"¶","\\P",!0),v(De,N,ee,"¶","\\P"),v(A,N,ee,"†","\\dag"),v(De,N,ee,"†","\\dag"),v(De,N,ee,"†","\\textdagger"),v(A,N,ee,"‡","\\ddag"),v(De,N,ee,"‡","\\ddag"),v(De,N,ee,"‡","\\textdaggerdbl"),v(A,N,L0,"⎱","\\rmoustache",!0),v(A,N,tr,"⎰","\\lmoustache",!0),v(A,N,L0,"⟯","\\rgroup",!0),v(A,N,tr,"⟮","\\lgroup",!0),v(A,N,He,"∓","\\mp",!0),v(A,N,He,"⊖","\\ominus",!0),v(A,N,He,"⊎","\\uplus",!0),v(A,N,He,"⊓","\\sqcap",!0),v(A,N,He,"∗","\\ast"),v(A,N,He,"⊔","\\sqcup",!0),v(A,N,He,"◯","\\bigcirc",!0),v(A,N,He,"∙","\\bullet",!0),v(A,N,He,"‡","\\ddagger"),v(A,N,He,"≀","\\wr",!0),v(A,N,He,"⨿","\\amalg"),v(A,N,He,"&","\\And"),v(A,N,W,"⟵","\\longleftarrow",!0),v(A,N,W,"⇐","\\Leftarrow",!0),v(A,N,W,"⟸","\\Longleftarrow",!0),v(A,N,W,"⟶","\\longrightarrow",!0),v(A,N,W,"⇒","\\Rightarrow",!0),v(A,N,W,"⟹","\\Longrightarrow",!0),v(A,N,W,"↔","\\leftrightarrow",!0),v(A,N,W,"⟷","\\longleftrightarrow",!0),v(A,N,W,"⇔","\\Leftrightarrow",!0),v(A,N,W,"⟺","\\Longleftrightarrow",!0),v(A,N,W,"↦","\\mapsto",!0),v(A,N,W,"⟼","\\longmapsto",!0),v(A,N,W,"↗","\\nearrow",!0),v(A,N,W,"↩","\\hookleftarrow",!0),v(A,N,W,"↪","\\hookrightarrow",!0),v(A,N,W,"↘","\\searrow",!0),v(A,N,W,"↼","\\leftharpoonup",!0),v(A,N,W,"⇀","\\rightharpoonup",!0),v(A,N,W,"↙","\\swarrow",!0),v(A,N,W,"↽","\\leftharpoondown",!0),v(A,N,W,"⇁","\\rightharpoondown",!0),v(A,N,W,"↖","\\nwarrow",!0),v(A,N,W,"⇌","\\rightleftharpoons",!0),v(A,j,W,"≮","\\nless",!0),v(A,j,W,"","\\@nleqslant"),v(A,j,W,"","\\@nleqq"),v(A,j,W,"⪇","\\lneq",!0),v(A,j,W,"≨","\\lneqq",!0),v(A,j,W,"","\\@lvertneqq"),v(A,j,W,"⋦","\\lnsim",!0),v(A,j,W,"⪉","\\lnapprox",!0),v(A,j,W,"⊀","\\nprec",!0),v(A,j,W,"⋠","\\npreceq",!0),v(A,j,W,"⋨","\\precnsim",!0),v(A,j,W,"⪹","\\precnapprox",!0),v(A,j,W,"≁","\\nsim",!0),v(A,j,W,"","\\@nshortmid"),v(A,j,W,"∤","\\nmid",!0),v(A,j,W,"⊬","\\nvdash",!0),v(A,j,W,"⊭","\\nvDash",!0),v(A,j,W,"⋪","\\ntriangleleft"),v(A,j,W,"⋬","\\ntrianglelefteq",!0),v(A,j,W,"⊊","\\subsetneq",!0),v(A,j,W,"","\\@varsubsetneq"),v(A,j,W,"⫋","\\subsetneqq",!0),v(A,j,W,"","\\@varsubsetneqq"),v(A,j,W,"≯","\\ngtr",!0),v(A,j,W,"","\\@ngeqslant"),v(A,j,W,"","\\@ngeqq"),v(A,j,W,"⪈","\\gneq",!0),v(A,j,W,"≩","\\gneqq",!0),v(A,j,W,"","\\@gvertneqq"),v(A,j,W,"⋧","\\gnsim",!0),v(A,j,W,"⪊","\\gnapprox",!0),v(A,j,W,"⊁","\\nsucc",!0),v(A,j,W,"⋡","\\nsucceq",!0),v(A,j,W,"⋩","\\succnsim",!0),v(A,j,W,"⪺","\\succnapprox",!0),v(A,j,W,"≆","\\ncong",!0),v(A,j,W,"","\\@nshortparallel"),v(A,j,W,"∦","\\nparallel",!0),v(A,j,W,"⊯","\\nVDash",!0),v(A,j,W,"⋫","\\ntriangleright"),v(A,j,W,"⋭","\\ntrianglerighteq",!0),v(A,j,W,"","\\@nsupseteqq"),v(A,j,W,"⊋","\\supsetneq",!0),v(A,j,W,"","\\@varsupsetneq"),v(A,j,W,"⫌","\\supsetneqq",!0),v(A,j,W,"","\\@varsupsetneqq"),v(A,j,W,"⊮","\\nVdash",!0),v(A,j,W,"⪵","\\precneqq",!0),v(A,j,W,"⪶","\\succneqq",!0),v(A,j,W,"","\\@nsubseteqq"),v(A,j,He,"⊴","\\unlhd"),v(A,j,He,"⊵","\\unrhd"),v(A,j,W,"↚","\\nleftarrow",!0),v(A,j,W,"↛","\\nrightarrow",!0),v(A,j,W,"⇍","\\nLeftarrow",!0),v(A,j,W,"⇏","\\nRightarrow",!0),v(A,j,W,"↮","\\nleftrightarrow",!0),v(A,j,W,"⇎","\\nLeftrightarrow",!0),v(A,j,W,"△","\\vartriangle"),v(A,j,ee,"ℏ","\\hslash"),v(A,j,ee,"▽","\\triangledown"),v(A,j,ee,"◊","\\lozenge"),v(A,j,ee,"Ⓢ","\\circledS"),v(A,j,ee,"®","\\circledR"),v(De,j,ee,"®","\\circledR"),v(A,j,ee,"∡","\\measuredangle",!0),v(A,j,ee,"∄","\\nexists"),v(A,j,ee,"℧","\\mho"),v(A,j,ee,"Ⅎ","\\Finv",!0),v(A,j,ee,"⅁","\\Game",!0),v(A,j,ee,"‵","\\backprime"),v(A,j,ee,"▲","\\blacktriangle"),v(A,j,ee,"▼","\\blacktriangledown"),v(A,j,ee,"■","\\blacksquare"),v(A,j,ee,"⧫","\\blacklozenge"),v(A,j,ee,"★","\\bigstar"),v(A,j,ee,"∢","\\sphericalangle",!0),v(A,j,ee,"∁","\\complement",!0),v(A,j,ee,"ð","\\eth",!0),v(De,N,ee,"ð","ð"),v(A,j,ee,"╱","\\diagup"),v(A,j,ee,"╲","\\diagdown"),v(A,j,ee,"□","\\square"),v(A,j,ee,"□","\\Box"),v(A,j,ee,"◊","\\Diamond"),v(A,j,ee,"¥","\\yen",!0),v(De,j,ee,"¥","\\yen",!0),v(A,j,ee,"✓","\\checkmark",!0),v(De,j,ee,"✓","\\checkmark"),v(A,j,ee,"ℶ","\\beth",!0),v(A,j,ee,"ℸ","\\daleth",!0),v(A,j,ee,"ℷ","\\gimel",!0),v(A,j,ee,"ϝ","\\digamma",!0),v(A,j,ee,"ϰ","\\varkappa"),v(A,j,tr,"┌","\\@ulcorner",!0),v(A,j,L0,"┐","\\@urcorner",!0),v(A,j,tr,"└","\\@llcorner",!0),v(A,j,L0,"┘","\\@lrcorner",!0),v(A,j,W,"≦","\\leqq",!0),v(A,j,W,"⩽","\\leqslant",!0),v(A,j,W,"⪕","\\eqslantless",!0),v(A,j,W,"≲","\\lesssim",!0),v(A,j,W,"⪅","\\lessapprox",!0),v(A,j,W,"≊","\\approxeq",!0),v(A,j,He,"⋖","\\lessdot"),v(A,j,W,"⋘","\\lll",!0),v(A,j,W,"≶","\\lessgtr",!0),v(A,j,W,"⋚","\\lesseqgtr",!0),v(A,j,W,"⪋","\\lesseqqgtr",!0),v(A,j,W,"≑","\\doteqdot"),v(A,j,W,"≓","\\risingdotseq",!0),v(A,j,W,"≒","\\fallingdotseq",!0),v(A,j,W,"∽","\\backsim",!0),v(A,j,W,"⋍","\\backsimeq",!0),v(A,j,W,"⫅","\\subseteqq",!0),v(A,j,W,"⋐","\\Subset",!0),v(A,j,W,"⊏","\\sqsubset",!0),v(A,j,W,"≼","\\preccurlyeq",!0),v(A,j,W,"⋞","\\curlyeqprec",!0),v(A,j,W,"≾","\\precsim",!0),v(A,j,W,"⪷","\\precapprox",!0),v(A,j,W,"⊲","\\vartriangleleft"),v(A,j,W,"⊴","\\trianglelefteq"),v(A,j,W,"⊨","\\vDash",!0),v(A,j,W,"⊪","\\Vvdash",!0),v(A,j,W,"⌣","\\smallsmile"),v(A,j,W,"⌢","\\smallfrown"),v(A,j,W,"≏","\\bumpeq",!0),v(A,j,W,"≎","\\Bumpeq",!0),v(A,j,W,"≧","\\geqq",!0),v(A,j,W,"⩾","\\geqslant",!0),v(A,j,W,"⪖","\\eqslantgtr",!0),v(A,j,W,"≳","\\gtrsim",!0),v(A,j,W,"⪆","\\gtrapprox",!0),v(A,j,He,"⋗","\\gtrdot"),v(A,j,W,"⋙","\\ggg",!0),v(A,j,W,"≷","\\gtrless",!0),v(A,j,W,"⋛","\\gtreqless",!0),v(A,j,W,"⪌","\\gtreqqless",!0),v(A,j,W,"≖","\\eqcirc",!0),v(A,j,W,"≗","\\circeq",!0),v(A,j,W,"≜","\\triangleq",!0),v(A,j,W,"∼","\\thicksim"),v(A,j,W,"≈","\\thickapprox"),v(A,j,W,"⫆","\\supseteqq",!0),v(A,j,W,"⋑","\\Supset",!0),v(A,j,W,"⊐","\\sqsupset",!0),v(A,j,W,"≽","\\succcurlyeq",!0),v(A,j,W,"⋟","\\curlyeqsucc",!0),v(A,j,W,"≿","\\succsim",!0),v(A,j,W,"⪸","\\succapprox",!0),v(A,j,W,"⊳","\\vartriangleright"),v(A,j,W,"⊵","\\trianglerighteq"),v(A,j,W,"⊩","\\Vdash",!0),v(A,j,W,"∣","\\shortmid"),v(A,j,W,"∥","\\shortparallel"),v(A,j,W,"≬","\\between",!0),v(A,j,W,"⋔","\\pitchfork",!0),v(A,j,W,"∝","\\varpropto"),v(A,j,W,"◀","\\blacktriangleleft"),v(A,j,W,"∴","\\therefore",!0),v(A,j,W,"∍","\\backepsilon"),v(A,j,W,"▶","\\blacktriangleright"),v(A,j,W,"∵","\\because",!0),v(A,j,W,"⋘","\\llless"),v(A,j,W,"⋙","\\gggtr"),v(A,j,He,"⊲","\\lhd"),v(A,j,He,"⊳","\\rhd"),v(A,j,W,"≂","\\eqsim",!0),v(A,N,W,"⋈","\\Join"),v(A,j,W,"≑","\\Doteq",!0),v(A,j,He,"∔","\\dotplus",!0),v(A,j,He,"∖","\\smallsetminus"),v(A,j,He,"⋒","\\Cap",!0),v(A,j,He,"⋓","\\Cup",!0),v(A,j,He,"⩞","\\doublebarwedge",!0),v(A,j,He,"⊟","\\boxminus",!0),v(A,j,He,"⊞","\\boxplus",!0),v(A,j,He,"⋇","\\divideontimes",!0),v(A,j,He,"⋉","\\ltimes",!0),v(A,j,He,"⋊","\\rtimes",!0),v(A,j,He,"⋋","\\leftthreetimes",!0),v(A,j,He,"⋌","\\rightthreetimes",!0),v(A,j,He,"⋏","\\curlywedge",!0),v(A,j,He,"⋎","\\curlyvee",!0),v(A,j,He,"⊝","\\circleddash",!0),v(A,j,He,"⊛","\\circledast",!0),v(A,j,He,"⋅","\\centerdot"),v(A,j,He,"⊺","\\intercal",!0),v(A,j,He,"⋒","\\doublecap"),v(A,j,He,"⋓","\\doublecup"),v(A,j,He,"⊠","\\boxtimes",!0),v(A,j,W,"⇢","\\dashrightarrow",!0),v(A,j,W,"⇠","\\dashleftarrow",!0),v(A,j,W,"⇇","\\leftleftarrows",!0),v(A,j,W,"⇆","\\leftrightarrows",!0),v(A,j,W,"⇚","\\Lleftarrow",!0),v(A,j,W,"↞","\\twoheadleftarrow",!0),v(A,j,W,"↢","\\leftarrowtail",!0),v(A,j,W,"↫","\\looparrowleft",!0),v(A,j,W,"⇋","\\leftrightharpoons",!0),v(A,j,W,"↶","\\curvearrowleft",!0),v(A,j,W,"↺","\\circlearrowleft",!0),v(A,j,W,"↰","\\Lsh",!0),v(A,j,W,"⇈","\\upuparrows",!0),v(A,j,W,"↿","\\upharpoonleft",!0),v(A,j,W,"⇃","\\downharpoonleft",!0),v(A,N,W,"⊶","\\origof",!0),v(A,N,W,"⊷","\\imageof",!0),v(A,j,W,"⊸","\\multimap",!0),v(A,j,W,"↭","\\leftrightsquigarrow",!0),v(A,j,W,"⇉","\\rightrightarrows",!0),v(A,j,W,"⇄","\\rightleftarrows",!0),v(A,j,W,"↠","\\twoheadrightarrow",!0),v(A,j,W,"↣","\\rightarrowtail",!0),v(A,j,W,"↬","\\looparrowright",!0),v(A,j,W,"↷","\\curvearrowright",!0),v(A,j,W,"↻","\\circlearrowright",!0),v(A,j,W,"↱","\\Rsh",!0),v(A,j,W,"⇊","\\downdownarrows",!0),v(A,j,W,"↾","\\upharpoonright",!0),v(A,j,W,"⇂","\\downharpoonright",!0),v(A,j,W,"⇝","\\rightsquigarrow",!0),v(A,j,W,"⇝","\\leadsto"),v(A,j,W,"⇛","\\Rrightarrow",!0),v(A,j,W,"↾","\\restriction"),v(A,N,ee,"‘","`"),v(A,N,ee,"$","\\$"),v(De,N,ee,"$","\\$"),v(De,N,ee,"$","\\textdollar"),v(A,N,ee,"%","\\%"),v(De,N,ee,"%","\\%"),v(A,N,ee,"_","\\_"),v(De,N,ee,"_","\\_"),v(De,N,ee,"_","\\textunderscore"),v(A,N,ee,"∠","\\angle",!0),v(A,N,ee,"∞","\\infty",!0),v(A,N,ee,"′","\\prime"),v(A,N,ee,"△","\\triangle"),v(A,N,ee,"Γ","\\Gamma",!0),v(A,N,ee,"Δ","\\Delta",!0),v(A,N,ee,"Θ","\\Theta",!0),v(A,N,ee,"Λ","\\Lambda",!0),v(A,N,ee,"Ξ","\\Xi",!0),v(A,N,ee,"Π","\\Pi",!0),v(A,N,ee,"Σ","\\Sigma",!0),v(A,N,ee,"Υ","\\Upsilon",!0),v(A,N,ee,"Φ","\\Phi",!0),v(A,N,ee,"Ψ","\\Psi",!0),v(A,N,ee,"Ω","\\Omega",!0),v(A,N,ee,"A","Α"),v(A,N,ee,"B","Β"),v(A,N,ee,"E","Ε"),v(A,N,ee,"Z","Ζ"),v(A,N,ee,"H","Η"),v(A,N,ee,"I","Ι"),v(A,N,ee,"K","Κ"),v(A,N,ee,"M","Μ"),v(A,N,ee,"N","Ν"),v(A,N,ee,"O","Ο"),v(A,N,ee,"P","Ρ"),v(A,N,ee,"T","Τ"),v(A,N,ee,"X","Χ"),v(A,N,ee,"¬","\\neg",!0),v(A,N,ee,"¬","\\lnot"),v(A,N,ee,"⊤","\\top"),v(A,N,ee,"⊥","\\bot"),v(A,N,ee,"∅","\\emptyset"),v(A,j,ee,"∅","\\varnothing"),v(A,N,Ze,"α","\\alpha",!0),v(A,N,Ze,"β","\\beta",!0),v(A,N,Ze,"γ","\\gamma",!0),v(A,N,Ze,"δ","\\delta",!0),v(A,N,Ze,"ϵ","\\epsilon",!0),v(A,N,Ze,"ζ","\\zeta",!0),v(A,N,Ze,"η","\\eta",!0),v(A,N,Ze,"θ","\\theta",!0),v(A,N,Ze,"ι","\\iota",!0),v(A,N,Ze,"κ","\\kappa",!0),v(A,N,Ze,"λ","\\lambda",!0),v(A,N,Ze,"μ","\\mu",!0),v(A,N,Ze,"ν","\\nu",!0),v(A,N,Ze,"ξ","\\xi",!0),v(A,N,Ze,"ο","\\omicron",!0),v(A,N,Ze,"π","\\pi",!0),v(A,N,Ze,"ρ","\\rho",!0),v(A,N,Ze,"σ","\\sigma",!0),v(A,N,Ze,"τ","\\tau",!0),v(A,N,Ze,"υ","\\upsilon",!0),v(A,N,Ze,"ϕ","\\phi",!0),v(A,N,Ze,"χ","\\chi",!0),v(A,N,Ze,"ψ","\\psi",!0),v(A,N,Ze,"ω","\\omega",!0),v(A,N,Ze,"ε","\\varepsilon",!0),v(A,N,Ze,"ϑ","\\vartheta",!0),v(A,N,Ze,"ϖ","\\varpi",!0),v(A,N,Ze,"ϱ","\\varrho",!0),v(A,N,Ze,"ς","\\varsigma",!0),v(A,N,Ze,"φ","\\varphi",!0),v(A,N,He,"∗","*",!0),v(A,N,He,"+","+"),v(A,N,He,"−","-",!0),v(A,N,He,"⋅","\\cdot",!0),v(A,N,He,"∘","\\circ",!0),v(A,N,He,"÷","\\div",!0),v(A,N,He,"±","\\pm",!0),v(A,N,He,"×","\\times",!0),v(A,N,He,"∩","\\cap",!0),v(A,N,He,"∪","\\cup",!0),v(A,N,He,"∖","\\setminus",!0),v(A,N,He,"∧","\\land"),v(A,N,He,"∨","\\lor"),v(A,N,He,"∧","\\wedge",!0),v(A,N,He,"∨","\\vee",!0),v(A,N,ee,"√","\\surd"),v(A,N,tr,"⟨","\\langle",!0),v(A,N,tr,"∣","\\lvert"),v(A,N,tr,"∥","\\lVert"),v(A,N,L0,"?","?"),v(A,N,L0,"!","!"),v(A,N,L0,"⟩","\\rangle",!0),v(A,N,L0,"∣","\\rvert"),v(A,N,L0,"∥","\\rVert"),v(A,N,W,"=","="),v(A,N,W,":",":"),v(A,N,W,"≈","\\approx",!0),v(A,N,W,"≅","\\cong",!0),v(A,N,W,"≥","\\ge"),v(A,N,W,"≥","\\geq",!0),v(A,N,W,"←","\\gets"),v(A,N,W,">","\\gt",!0),v(A,N,W,"∈","\\in",!0),v(A,N,W,"","\\@not"),v(A,N,W,"⊂","\\subset",!0),v(A,N,W,"⊃","\\supset",!0),v(A,N,W,"⊆","\\subseteq",!0),v(A,N,W,"⊇","\\supseteq",!0),v(A,j,W,"⊈","\\nsubseteq",!0),v(A,j,W,"⊉","\\nsupseteq",!0),v(A,N,W,"⊨","\\models"),v(A,N,W,"←","\\leftarrow",!0),v(A,N,W,"≤","\\le"),v(A,N,W,"≤","\\leq",!0),v(A,N,W,"<","\\lt",!0),v(A,N,W,"→","\\rightarrow",!0),v(A,N,W,"→","\\to"),v(A,j,W,"≱","\\ngeq",!0),v(A,j,W,"≰","\\nleq",!0),v(A,N,mn," ","\\ "),v(A,N,mn," ","\\space"),v(A,N,mn," ","\\nobreakspace"),v(De,N,mn," ","\\ "),v(De,N,mn," "," "),v(De,N,mn," ","\\space"),v(De,N,mn," ","\\nobreakspace"),v(A,N,mn,null,"\\nobreak"),v(A,N,mn,null,"\\allowbreak"),v(A,N,Di,",",","),v(A,N,Di,";",";"),v(A,j,He,"⊼","\\barwedge",!0),v(A,j,He,"⊻","\\veebar",!0),v(A,N,He,"⊙","\\odot",!0),v(A,N,He,"⊕","\\oplus",!0),v(A,N,He,"⊗","\\otimes",!0),v(A,N,ee,"∂","\\partial",!0),v(A,N,He,"⊘","\\oslash",!0),v(A,j,He,"⊚","\\circledcirc",!0),v(A,j,He,"⊡","\\boxdot",!0),v(A,N,He,"△","\\bigtriangleup"),v(A,N,He,"▽","\\bigtriangledown"),v(A,N,He,"†","\\dagger"),v(A,N,He,"⋄","\\diamond"),v(A,N,He,"⋆","\\star"),v(A,N,He,"◃","\\triangleleft"),v(A,N,He,"▹","\\triangleright"),v(A,N,tr,"{","\\{"),v(De,N,ee,"{","\\{"),v(De,N,ee,"{","\\textbraceleft"),v(A,N,L0,"}","\\}"),v(De,N,ee,"}","\\}"),v(De,N,ee,"}","\\textbraceright"),v(A,N,tr,"{","\\lbrace"),v(A,N,L0,"}","\\rbrace"),v(A,N,tr,"[","\\lbrack",!0),v(De,N,ee,"[","\\lbrack",!0),v(A,N,L0,"]","\\rbrack",!0),v(De,N,ee,"]","\\rbrack",!0),v(A,N,tr,"(","\\lparen",!0),v(A,N,L0,")","\\rparen",!0),v(De,N,ee,"<","\\textless",!0),v(De,N,ee,">","\\textgreater",!0),v(A,N,tr,"⌊","\\lfloor",!0),v(A,N,L0,"⌋","\\rfloor",!0),v(A,N,tr,"⌈","\\lceil",!0),v(A,N,L0,"⌉","\\rceil",!0),v(A,N,ee,"\\","\\backslash"),v(A,N,ee,"∣","|"),v(A,N,ee,"∣","\\vert"),v(De,N,ee,"|","\\textbar",!0),v(A,N,ee,"∥","\\|"),v(A,N,ee,"∥","\\Vert"),v(De,N,ee,"∥","\\textbardbl"),v(De,N,ee,"~","\\textasciitilde"),v(De,N,ee,"\\","\\textbackslash"),v(De,N,ee,"^","\\textasciicircum"),v(A,N,W,"↑","\\uparrow",!0),v(A,N,W,"⇑","\\Uparrow",!0),v(A,N,W,"↓","\\downarrow",!0),v(A,N,W,"⇓","\\Downarrow",!0),v(A,N,W,"↕","\\updownarrow",!0),v(A,N,W,"⇕","\\Updownarrow",!0),v(A,N,t0,"∐","\\coprod"),v(A,N,t0,"⋁","\\bigvee"),v(A,N,t0,"⋀","\\bigwedge"),v(A,N,t0,"⨄","\\biguplus"),v(A,N,t0,"⋂","\\bigcap"),v(A,N,t0,"⋃","\\bigcup"),v(A,N,t0,"∫","\\int"),v(A,N,t0,"∫","\\intop"),v(A,N,t0,"∬","\\iint"),v(A,N,t0,"∭","\\iiint"),v(A,N,t0,"∏","\\prod"),v(A,N,t0,"∑","\\sum"),v(A,N,t0,"⨂","\\bigotimes"),v(A,N,t0,"⨁","\\bigoplus"),v(A,N,t0,"⨀","\\bigodot"),v(A,N,t0,"∮","\\oint"),v(A,N,t0,"∯","\\oiint"),v(A,N,t0,"∰","\\oiiint"),v(A,N,t0,"⨆","\\bigsqcup"),v(A,N,t0,"∫","\\smallint"),v(De,N,_a,"…","\\textellipsis"),v(A,N,_a,"…","\\mathellipsis"),v(De,N,_a,"…","\\ldots",!0),v(A,N,_a,"…","\\ldots",!0),v(A,N,_a,"⋯","\\@cdots",!0),v(A,N,_a,"⋱","\\ddots",!0),v(A,N,ee,"⋮","\\varvdots"),v(De,N,ee,"⋮","\\varvdots"),v(A,N,Rt,"ˊ","\\acute"),v(A,N,Rt,"ˋ","\\grave"),v(A,N,Rt,"¨","\\ddot"),v(A,N,Rt,"~","\\tilde"),v(A,N,Rt,"ˉ","\\bar"),v(A,N,Rt,"˘","\\breve"),v(A,N,Rt,"ˇ","\\check"),v(A,N,Rt,"^","\\hat"),v(A,N,Rt,"⃗","\\vec"),v(A,N,Rt,"˙","\\dot"),v(A,N,Rt,"˚","\\mathring"),v(A,N,Ze,"","\\@imath"),v(A,N,Ze,"","\\@jmath"),v(A,N,ee,"ı","ı"),v(A,N,ee,"ȷ","ȷ"),v(De,N,ee,"ı","\\i",!0),v(De,N,ee,"ȷ","\\j",!0),v(De,N,ee,"ß","\\ss",!0),v(De,N,ee,"æ","\\ae",!0),v(De,N,ee,"œ","\\oe",!0),v(De,N,ee,"ø","\\o",!0),v(De,N,ee,"Æ","\\AE",!0),v(De,N,ee,"Œ","\\OE",!0),v(De,N,ee,"Ø","\\O",!0),v(De,N,Rt,"ˊ","\\'"),v(De,N,Rt,"ˋ","\\`"),v(De,N,Rt,"ˆ","\\^"),v(De,N,Rt,"˜","\\~"),v(De,N,Rt,"ˉ","\\="),v(De,N,Rt,"˘","\\u"),v(De,N,Rt,"˙","\\."),v(De,N,Rt,"¸","\\c"),v(De,N,Rt,"˚","\\r"),v(De,N,Rt,"ˇ","\\v"),v(De,N,Rt,"¨",'\\"'),v(De,N,Rt,"˝","\\H"),v(De,N,Rt,"◯","\\textcircled");var wd={"--":!0,"---":!0,"``":!0,"''":!0};v(De,N,ee,"–","--",!0),v(De,N,ee,"–","\\textendash"),v(De,N,ee,"—","---",!0),v(De,N,ee,"—","\\textemdash"),v(De,N,ee,"‘","`",!0),v(De,N,ee,"‘","\\textquoteleft"),v(De,N,ee,"’","'",!0),v(De,N,ee,"’","\\textquoteright"),v(De,N,ee,"“","``",!0),v(De,N,ee,"“","\\textquotedblleft"),v(De,N,ee,"”","''",!0),v(De,N,ee,"”","\\textquotedblright"),v(A,N,ee,"°","\\degree",!0),v(De,N,ee,"°","\\degree"),v(De,N,ee,"°","\\textdegree",!0),v(A,N,ee,"£","\\pounds"),v(A,N,ee,"£","\\mathsterling",!0),v(De,N,ee,"£","\\pounds"),v(De,N,ee,"£","\\textsterling",!0),v(A,j,ee,"✠","\\maltese"),v(De,j,ee,"✠","\\maltese");for(var xd='0123456789/@."',nl=0;nl<xd.length;nl++){var Ad=xd.charAt(nl);v(A,N,ee,Ad,Ad)}for(var Dd='0123456789!@*()-=+";:?/.,',al=0;al<Dd.length;al++){var kd=Dd.charAt(al);v(De,N,ee,kd,kd)}for(var Pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",il=0;il<Pu.length;il++){var Vu=Pu.charAt(il);v(A,N,Ze,Vu,Vu),v(De,N,ee,Vu,Vu)}v(A,j,ee,"C","ℂ"),v(De,j,ee,"C","ℂ"),v(A,j,ee,"H","ℍ"),v(De,j,ee,"H","ℍ"),v(A,j,ee,"N","ℕ"),v(De,j,ee,"N","ℕ"),v(A,j,ee,"P","ℙ"),v(De,j,ee,"P","ℙ"),v(A,j,ee,"Q","ℚ"),v(De,j,ee,"Q","ℚ"),v(A,j,ee,"R","ℝ"),v(De,j,ee,"R","ℝ"),v(A,j,ee,"Z","ℤ"),v(De,j,ee,"Z","ℤ"),v(A,N,Ze,"h","ℎ"),v(De,N,Ze,"h","ℎ");for(var Qe="",R0=0;R0<Pu.length;R0++){var Gt=Pu.charAt(R0);Qe=String.fromCharCode(55349,56320+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56372+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56424+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56580+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56684+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56736+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56788+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56840+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56944+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),R0<26&&(Qe=String.fromCharCode(55349,56632+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe),Qe=String.fromCharCode(55349,56476+R0),v(A,N,Ze,Gt,Qe),v(De,N,ee,Gt,Qe))}Qe="𝕜",v(A,N,Ze,"k",Qe),v(De,N,ee,"k",Qe);for(var la=0;la<10;la++){var Nn=la.toString();Qe=String.fromCharCode(55349,57294+la),v(A,N,Ze,Nn,Qe),v(De,N,ee,Nn,Qe),Qe=String.fromCharCode(55349,57314+la),v(A,N,Ze,Nn,Qe),v(De,N,ee,Nn,Qe),Qe=String.fromCharCode(55349,57324+la),v(A,N,Ze,Nn,Qe),v(De,N,ee,Nn,Qe),Qe=String.fromCharCode(55349,57334+la),v(A,N,Ze,Nn,Qe),v(De,N,ee,Nn,Qe)}for(var ul="ÐÞþ",ol=0;ol<ul.length;ol++){var Hu=ul.charAt(ol);v(A,N,Ze,Hu,Hu),v(De,N,ee,Hu,Hu)}var qu=[["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"]],Cd=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],X6=(e,t)=>{var r=e.charCodeAt(0),n=e.charCodeAt(1),i=(r-55296)*1024+(n-56320)+65536,a=t==="math"?0:1;if(119808<=i&&i<120484){var s=Math.floor((i-119808)/26);return[qu[s][2],qu[s][a]]}else if(120782<=i&&i<=120831){var c=Math.floor((i-120782)/10);return[Cd[c][2],Cd[c][a]]}else{if(i===120485||i===120486)return[qu[0][2],qu[0][a]];if(120486<i&&i<120782)return["",""];throw new Te("Unsupported character: "+e)}},ju=function(t,r,n){if(Lt[n][t]){var i=Lt[n][t].replace;i&&(t=i)}return{value:t,metrics:tl(t,r,n)}},P0=function(t,r,n,i,a){var s=ju(t,r,n),c=s.metrics;t=s.value;var f;if(c){var p=c.italic;(n==="text"||i&&i.font==="mathit")&&(p=0),f=new er(t,c.height,c.depth,p,c.skew,c.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),f=new er(t,0,0,0,0,0,a);if(i){f.maxFontSize=i.sizeMultiplier,i.style.isTight()&&f.classes.push("mtight");var g=i.getColor();g&&(f.style.color=g)}return f},sl=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&ju(t,"Main-Bold",r).metrics?P0(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||Lt[r][t].font==="main"?P0(t,"Main-Regular",r,n,i):P0(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},Y6=function(t,r,n,i,a){return a!=="textord"&&ju(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},$u=function(t,r,n){var i=t.mode,a=t.text,s=["mord"],c=i==="math"||i==="text"&&r.font,f=c?r.font:r.fontFamily,p="",g="";if(a.charCodeAt(0)===55349&&([p,g]=X6(a,i)),p.length>0)return P0(a,p,i,r,s.concat(g));if(f){var m,w;if(f==="boldsymbol"){var k=Y6(a,i,r,s,n);m=k.fontName,w=[k.fontClass]}else c?(m=cl[f].fontName,w=[f]):(m=Uu(f,r.fontWeight,r.fontShape),w=[f,r.fontWeight,r.fontShape]);if(ju(a,m,i).metrics)return P0(a,m,i,r,s.concat(w));if(wd.hasOwnProperty(a)&&m.slice(0,10)==="Typewriter"){for(var C=[],B=0;B<a.length;B++)C.push(P0(a[B],m,i,r,s.concat(w)));return pn(C)}}if(n==="mathord")return P0(a,"Math-Italic",i,r,s.concat(["mathnormal"]));if(n==="textord"){var _=Lt[i][a]&&Lt[i][a].font;if(_==="ams"){var T=Uu("amsrm",r.fontWeight,r.fontShape);return P0(a,T,i,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(_==="main"||!_){var S=Uu("textrm",r.fontWeight,r.fontShape);return P0(a,S,i,r,s.concat(r.fontWeight,r.fontShape))}else{var F=Uu(_,r.fontWeight,r.fontShape);return P0(a,F,i,r,s.concat(F,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Z6=(e,t)=>{if(Bn(e.classes)!==Bn(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Sd=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof er&&n instanceof er&&Z6(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},ll=function(t){for(var r=0,n=0,i=0,a=0;a<t.children.length;a++){var s=t.children[a];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Ee=function(t,r,n,i){var a=new Na(t,r,n,i);return ll(a),a},_n=(e,t,r,n)=>new Na(e,t,r,n),za=function(t,r,n){var i=Ee([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=_e(i.height),i.maxFontSize=1,i},K6=function(t,r,n,i){var a=new Lu(t,r,n,i);return ll(a),a},pn=function(t){var r=new Ma(t);return ll(r),r},Ia=function(t,r){return t instanceof Ma?Ee([],[t],r):t},Q6=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s<r.length;s++){var c=-r[s].shift-a-r[s].elem.depth,f=c-(r[s-1].elem.height+r[s-1].elem.depth);a=a+c,n.push({type:"kern",size:f}),n.push(r[s])}return{children:n,depth:i}}var p;if(t.positionType==="top"){for(var g=t.positionData,m=0;m<t.children.length;m++){var w=t.children[m];g-=w.type==="kern"?w.size:w.elem.height+w.elem.depth}p=g}else if(t.positionType==="bottom")p=-t.positionData;else{var k=t.children[0];if(k.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")p=-k.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")p=-k.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:p}},pt=function(t,r){for(var{children:n,depth:i}=Q6(t),a=0,s=0;s<n.length;s++){var c=n[s];if(c.type==="elem"){var f=c.elem;a=Math.max(a,f.maxFontSize,f.height)}}a+=2;var p=Ee(["pstrut"],[]);p.style.height=_e(a);for(var g=[],m=i,w=i,k=i,C=0;C<n.length;C++){var B=n[C];if(B.type==="kern")k+=B.size;else{var _=B.elem,T=B.wrapperClasses||[],S=B.wrapperStyle||{},F=Ee(T,[p,_],void 0,S);F.style.top=_e(-a-k-_.depth),B.marginLeft&&(F.style.marginLeft=B.marginLeft),B.marginRight&&(F.style.marginRight=B.marginRight),g.push(F),k+=_.height+_.depth}m=Math.min(m,k),w=Math.max(w,k)}var z=Ee(["vlist"],g);z.style.height=_e(w);var R;if(m<0){var $=Ee([],[]),Y=Ee(["vlist"],[$]);Y.style.height=_e(-m);var q=Ee(["vlist-s"],[new er("")]);R=[Ee(["vlist-r"],[z,q]),Ee(["vlist-r"],[Y])]}else R=[Ee(["vlist-r"],[z])];var pe=Ee(["vlist-t"],R);return R.length===2&&pe.classes.push("vlist-t2"),pe.height=w,pe.depth=-m,pe},Ed=(e,t)=>{var r=Ee(["mspace"],[],t),n=qt(e,t);return r.style.marginRight=_e(n),r},Uu=function(t,r,n){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},cl={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"}},Fd={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Td=function(t,r){var[n,i,a]=Fd[t],s=new Mn(n),c=new hn([s],{width:_e(i),height:_e(a),style:"width:"+_e(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),f=_n(["overlay"],[c],r);return f.height=a,f.style.height=_e(a),f.style.width=_e(i),f},jt={number:3,unit:"mu"},ca={number:4,unit:"mu"},gn={number:5,unit:"mu"},J6={mord:{mop:jt,mbin:ca,mrel:gn,minner:jt},mop:{mord:jt,mop:jt,mrel:gn,minner:jt},mbin:{mord:ca,mop:ca,mopen:ca,minner:ca},mrel:{mord:gn,mop:gn,mopen:gn,minner:gn},mopen:{},mclose:{mop:jt,mbin:ca,mrel:gn,minner:jt},mpunct:{mord:jt,mop:jt,mrel:gn,mopen:jt,mclose:jt,mpunct:jt,minner:jt},minner:{mord:jt,mop:jt,mbin:ca,mrel:gn,mopen:jt,mpunct:jt,minner:jt}},e5={mord:{mop:jt},mop:{mord:jt,mop:jt},mbin:{},mrel:{},mopen:{},mclose:{mop:jt},mpunct:{},minner:{mop:jt}},Bd={},Wu={},Gu={};function Pe(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,c={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},f=0;f<r.length;++f)Bd[r[f]]=c;t&&(a&&(Wu[t]=a),s&&(Gu[t]=s))}function da(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Pe({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Xu=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},r0=function(t){return t.type==="ordgroup"?t.body:[t]},t5=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),r5=new Set(["rightmost","mrel","mclose","mpunct"]),n5={display:et.DISPLAY,text:et.TEXT,script:et.SCRIPT,scriptscript:et.SCRIPTSCRIPT},a5={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},d0=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s<t.length;s++){var c=gt(t[s],r);if(c instanceof Ma){var f=c.children;a.push(...f)}else a.push(c)}if(Sd(a),!n)return a;var p=r;if(t.length===1){var g=t[0];g.type==="sizing"?p=r.havingSize(g.size):g.type==="styling"&&(p=r.havingStyle(n5[g.style]))}var m=Ee([i[0]||"leftmost"],[],r),w=Ee([i[1]||"rightmost"],[],r),k=n==="root";return dl(a,(C,B)=>{var _=B.classes[0],T=C.classes[0];_==="mbin"&&r5.has(T)?B.classes[0]="mord":T==="mbin"&&t5.has(_)&&(C.classes[0]="mord")},{node:m},w,k),dl(a,(C,B)=>{var _,T,S=hl(B),F=hl(C),z=S&&F?C.hasClass("mtight")?(_=e5[S])==null?void 0:_[F]:(T=J6[S])==null?void 0:T[F]:null;if(z)return Ed(z,p)},{node:m},w,k),a},dl=function(t,r,n,i,a){i&&t.push(i);for(var s=0;s<t.length;s++){var c=t[s],f=Md(c);if(f){dl(f.children,r,n,null,a);continue}var p=!c.hasClass("mspace");if(p){var g=r(c,n.node);g&&(n.insertAfter?n.insertAfter(g):(t.unshift(g),s++))}p?n.node=c:a&&c.hasClass("newline")&&(n.node=Ee(["leftmost"])),n.insertAfter=(m=>w=>{t.splice(m+1,0,w),s++})(s)}i&&t.pop()},Md=function(t){return t instanceof Ma||t instanceof Lu||t instanceof Na&&t.hasClass("enclosing")?t:null},fl=function(t,r){var n=Md(t);if(n){var i=n.children;if(i.length){if(r==="right")return fl(i[i.length-1],"right");if(r==="left")return fl(i[0],"left")}}return t},hl=function(t,r){if(!t)return null;r&&(t=fl(t,r));var n=t.classes[0];return a5[n]||null},ki=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Ee(r.concat(n))},gt=function(t,r,n){if(!t)return Ee();if(Wu[t.type]){var i=Wu[t.type](t,r);if(n&&r.size!==n.size){i=Ee(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Te("Got group of unknown type: '"+t.type+"'")};function Yu(e,t){var r=Ee(["base"],e,t),n=Ee(["strut"]);return n.style.height=_e(r.height+r.depth),r.depth&&(n.style.verticalAlign=_e(-r.depth)),r.children.unshift(n),r}function ml(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=d0(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],c=0;c<n.length;c++)if(s.push(n[c]),n[c].hasClass("mbin")||n[c].hasClass("mrel")||n[c].hasClass("allowbreak")){for(var f=!1;c<n.length-1&&n[c+1].hasClass("mspace")&&!n[c+1].hasClass("newline");)c++,s.push(n[c]),n[c].hasClass("nobreak")&&(f=!0);f||(a.push(Yu(s,t)),s=[])}else n[c].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(Yu(s,t)),s=[]),a.push(n[c]));s.length>0&&a.push(Yu(s,t));var p;r?(p=Yu(d0(r,t,!0),t),p.classes=["tag"],a.push(p)):i&&a.push(i);var g=Ee(["katex-html"],a);if(g.setAttribute("aria-hidden","true"),p){var m=p.children[0];m.style.height=_e(g.height+g.depth),g.depth&&(m.style.verticalAlign=_e(-g.depth))}return g}function Nd(e){return new Ma(e)}class Be{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Bn(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof n0&&this.children[n+1]instanceof n0){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof n0;)i+=this.children[++n].toText();t.appendChild(new n0(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=E0(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+E0(Bn(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class n0{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return E0(this.toText())}toText(){return this.text}}class _d{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",_e(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+_e(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var i5=new Set(["\\imath","\\jmath"]),u5=new Set(["mrow","mtable"]),br=function(t,r,n){return Lt[r][t]&&Lt[r][t].replace&&t.charCodeAt(0)!==55349&&!(wd.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Lt[r][t].replace),new n0(t)},pl=function(t){return t.length===1?t[0]:new Be("mrow",t)},gl=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=t.text;if(i5.has(a))return null;if(Lt[i][a]){var s=Lt[i][a].replace;s&&(a=s)}var c=cl[n].fontName;return tl(a,c,i)?cl[n].variant:null};function bl(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof n0&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof n0&&r.text===","}else return!1}var rr=function(t,r,n){if(t.length===1){var i=Ct(t[0],r);return n&&i instanceof Be&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,c=0;c<t.length;c++){var f=Ct(t[c],r);if(f instanceof Be&&s instanceof Be){if(f.type==="mtext"&&s.type==="mtext"&&f.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...f.children);continue}else if(f.type==="mn"&&s.type==="mn"){s.children.push(...f.children);continue}else if(bl(f)&&s.type==="mn"){s.children.push(...f.children);continue}else if(f.type==="mn"&&bl(s))f.children=[...s.children,...f.children],a.pop();else if((f.type==="msup"||f.type==="msub")&&f.children.length>=1&&(s.type==="mn"||bl(s))){var p=f.children[0];p instanceof Be&&p.type==="mn"&&(p.children=[...s.children,...p.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var g=s.children[0];if(g instanceof n0&&g.text==="̸"&&(f.type==="mo"||f.type==="mi"||f.type==="mn")){var m=f.children[0];m instanceof n0&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),a.pop())}}}a.push(f),s=f}return a},zn=function(t,r,n){return pl(rr(t,r,n))},Ct=function(t,r){if(!t)return new Be("mrow");if(Gu[t.type]){var n=Gu[t.type](t,r);return n}else throw new Te("Got group of unknown type: '"+t.type+"'")};function zd(e,t,r,n,i){var a=rr(e,r),s;a.length===1&&a[0]instanceof Be&&u5.has(a[0].type)?s=a[0]:s=new Be("mrow",a);var c=new Be("annotation",[new n0(t)]);c.setAttribute("encoding","application/x-tex");var f=new Be("semantics",[s,c]),p=new Be("math",[f]);p.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&p.setAttribute("display","block");var g=i?"katex":"katex-mathml";return Ee([g],[p])}var o5=[[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]],Id=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Od=function(t,r){return r.size<2?t:o5[t-1][r.size-1]};class bn{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||bn.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Id[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={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};return Object.assign(r,t),new bn(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Od(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Id[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Od(bn.BASESIZE,t);return this.size===r&&this.textSize===bn.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==bn.BASESIZE?["sizing","reset-size"+this.size,"size"+bn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=U6(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}bn.BASESIZE=6;var Ld=function(t){return new bn({style:t.displayMode?et.DISPLAY:et.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Rd=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Ee(n,[t])}return t},s5=function(t,r,n){var i=Ld(n),a;if(n.output==="mathml")return zd(t,r,i,n.displayMode,!0);if(n.output==="html"){var s=ml(t,i);a=Ee(["katex"],[s])}else{var c=zd(t,r,i,n.displayMode,!1),f=ml(t,i);a=Ee(["katex"],[c,f])}return Rd(a,n)},l5=function(t,r,n){var i=Ld(n),a=ml(t,i),s=Ee(["katex"],[a]);return Rd(s,n)},c5={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},Zu=function(t){var r=new Be("mo",[new n0(c5[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},d5={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},f5=new Set(["widehat","widecheck","widetilde","utilde"]),Ku=function(t,r){function n(){var c=4e5,f=t.label.slice(1);if(f5.has(f)){var p=t,g=p.base.type==="ordgroup"?p.base.body.length:1,m,w,k;if(g>5)f==="widehat"||f==="widecheck"?(m=420,c=2364,k=.42,w=f+"4"):(m=312,c=2340,k=.34,w="tilde4");else{var C=[1,1,2,2,3,3][g];f==="widehat"||f==="widecheck"?(c=[0,1062,2364,2364,2364][C],m=[0,239,300,360,420][C],k=[0,.24,.3,.3,.36,.42][C],w=f+C):(c=[0,600,1033,2339,2340][C],m=[0,260,286,306,312][C],k=[0,.26,.286,.3,.306,.34][C],w="tilde"+C)}var B=new Mn(w),_=new hn([B],{width:"100%",height:_e(k),viewBox:"0 0 "+c+" "+m,preserveAspectRatio:"none"});return{span:_n([],[_],r),minWidth:0,height:k}}else{var T=[],S=d5[f],[F,z,R]=S,$=R/1e3,Y=F.length,q,pe;if(Y===1){var he=S[3];q=["hide-tail"],pe=[he]}else if(Y===2)q=["halfarrow-left","halfarrow-right"],pe=["xMinYMin","xMaxYMin"];else if(Y===3)q=["brace-left","brace-center","brace-right"],pe=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
261
|
+
`+Y+" children.");for(var ce=0;ce<Y;ce++){var be=new Mn(F[ce]),ae=new hn([be],{width:"400em",height:_e($),viewBox:"0 0 "+c+" "+R,preserveAspectRatio:pe[ce]+" slice"}),xe=_n([q[ce]],[ae],r);if(Y===1)return{span:xe,minWidth:z,height:$};xe.style.height=_e($),T.push(xe)}return{span:Ee(["stretchy"],T,r),minWidth:z,height:$}}}var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=_e(s),a>0&&(i.style.minWidth=_e(a)),i},h5=function(t,r,n,i,a){var s,c=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=Ee(["stretchy",r],[],a),r==="fbox"){var f=a.color&&a.getColor();f&&(s.style.borderColor=f)}}else{var p=[];/^[bx]cancel$/.test(r)&&p.push(new el({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&p.push(new el({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new hn(p,{width:"100%",height:_e(c)});s=_n([],[g],a)}return s.height=c,s.style.height=_e(c),s};function nt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Qu(e){var t=Ju(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Ju(e){return e&&(e.type==="atom"||G6.hasOwnProperty(e.type))?e:null}var Pd=e=>{if(e instanceof er)return e;if(j6(e)&&e.children.length===1)return Pd(e.children[0])},yl=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=nt(e.base,"accent"),r=n.base,e.base=r,i=q6(gt(e,t)),e.base=n):(n=nt(e,"accent"),r=n.base);var a=gt(r,t.havingCrampedStyle()),s=n.isShifty&&dn(r),c=0;if(s){var f,p;c=(f=(p=Pd(a))==null?void 0:p.skew)!=null?f:0}var g=n.label==="\\c",m=g?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),w;if(n.isStretchy)w=Ku(n,t),w=pt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:w,wrapperClasses:["svg-align"],wrapperStyle:c>0?{width:"calc(100% - "+_e(2*c)+")",marginLeft:_e(2*c)}:void 0}]});else{var k,C;n.label==="\\vec"?(k=Td("vec",t),C=Fd.vec[1]):(k=$u({mode:n.mode,text:n.label},t,"textord"),k=H6(k),k.italic=0,C=k.width,g&&(m+=k.depth)),w=Ee(["accent-body"],[k]);var B=n.label==="\\textcircled";B&&(w.classes.push("accent-full"),m=a.height);var _=c;B||(_-=C/2),w.style.left=_e(_),n.label==="\\textcircled"&&(w.style.top=".2em"),w=pt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-m},{type:"elem",elem:w}]})}var T=Ee(["mord","accent"],[w],t);return i?(i.children[0]=T,i.height=Math.max(T.height,i.height),i.classes[0]="mord",i):T},Vd=(e,t)=>{var r=e.isStretchy?Zu(e.label):new Be("mo",[br(e.label,e.mode)]),n=new Be("mover",[Ct(e.base,t),r]);return n.setAttribute("accent","true"),n},m5=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Pe({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:(e,t)=>{var r=Xu(t[0]),n=!m5.test(e.funcName),i=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:yl,mathmlBuilder:Vd}),Pe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:yl,mathmlBuilder:Vd}),Pe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(e,t)=>{var r=gt(e.base,t),n=Ku(e,t),i=e.label==="\\utilde"?.12:0,a=pt({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]});return Ee(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Zu(e.label),n=new Be("munder",[Ct(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var eo=e=>{var t=new Be("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Pe({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(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=Ia(gt(e.body,n,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=Ia(gt(e.below,n,t),t),s.classes.push(a+"-arrow-pad"));var c=Ku(e,t),f=-t.fontMetrics().axisHeight+.5*c.height,p=-t.fontMetrics().axisHeight-.5*c.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(p-=i.depth);var g;if(s){var m=-t.fontMetrics().axisHeight+s.height+.5*c.height+.111;g=pt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:p},{type:"elem",elem:c,shift:f},{type:"elem",elem:s,shift:m}]})}else g=pt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:p},{type:"elem",elem:c,shift:f}]});return g.children[0].children[0].children[1].classes.push("svg-align"),Ee(["mrel","x-arrow"],[g],t)},mathmlBuilder(e,t){var r=Zu(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=eo(Ct(e.body,t));if(e.below){var a=eo(Ct(e.below,t));n=new Be("munderover",[r,a,i])}else n=new Be("mover",[r,i])}else if(e.below){var s=eo(Ct(e.below,t));n=new Be("munder",[r,s])}else n=eo(),n=new Be("mover",[r,n]);return n}});function Hd(e,t){var r=d0(e.body,t,!0);return Ee([e.mclass],r,t)}function qd(e,t){var r,n=rr(e.body,t);return e.mclass==="minner"?r=new Be("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new Be("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new Be("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Pe({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:r0(i),isCharacterBox:dn(i)}},htmlBuilder:Hd,mathmlBuilder:qd});var to=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Pe({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:to(t[0]),body:r0(t[1]),isCharacterBox:dn(t[1])}}}),Pe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,i=t[1],a=t[0],s;n!=="\\stackrel"?s=to(i):s="mrel";var c={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:r0(i)},f={type:"supsub",mode:a.mode,base:c,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[f],isCharacterBox:dn(f)}},htmlBuilder:Hd,mathmlBuilder:qd}),Pe({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:to(t[0]),body:r0(t[0])}},htmlBuilder(e,t){var r=d0(e.body,t,!0),n=Ee([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=rr(e.body,t),n=new Be("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var p5={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},jd=()=>({type:"styling",body:[],mode:"math",style:"display"}),$d=e=>e.type==="textord"&&e.text==="@",g5=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function b5(e,t,r){var n=p5[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),c=r.callFunction("\\\\cdright",[t[1]],[]),f={type:"ordgroup",mode:"math",body:[i,s,c]};return r.callFunction("\\\\cdparent",[f],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var p={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[p],[])}default:return{type:"textord",text:" ",mode:"math"}}}function y5(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Te("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],a=0;a<t.length;a++){for(var s=t[a],c=jd(),f=0;f<s.length;f++)if(!$d(s[f]))c.body.push(s[f]);else{n.push(c),f+=1;var p=Qu(s[f]).text,g=new Array(2);if(g[0]={type:"ordgroup",mode:"math",body:[]},g[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(p))if("<>AV".includes(p))for(var m=0;m<2;m++){for(var w=!0,k=f+1;k<s.length;k++){if(g5(s[k],p)){w=!1,f=k;break}if($d(s[k]))throw new Te("Missing a "+p+" character to complete a CD arrow.",s[k]);g[m].body.push(s[k])}if(w)throw new Te("Missing a "+p+" character to complete a CD arrow.",s[f])}else throw new Te('Expected one of "<>AV=|." after @',s[f]);var C=b5(p,g,e),B={type:"styling",body:[C],mode:"math",style:"display"};n.push(B),c=jd()}a%2===0?n.push(c):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var _=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:_,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}Pe({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Ia(gt(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=_e(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Be("mrow",[Ct(e.label,t)]);return r=new Be("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Be("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),Pe({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Ia(gt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Be("mrow",[Ct(e.fragment,t)])}}),Pe({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=nt(t[0],"ordgroup"),i=n.body,a="",s=0;s<i.length;s++){var c=nt(i[s],"textord");a+=c.text}var f=parseInt(a),p;if(isNaN(f))throw new Te("\\@char has non-numeric argument "+a);if(f<0||f>=1114111)throw new Te("\\@char with invalid code point "+a);return f<=65535?p=String.fromCharCode(f):(f-=65536,p=String.fromCharCode((f>>10)+55296,(f&1023)+56320)),{type:"textord",mode:r.mode,text:p}}});var Ud=(e,t)=>{var r=d0(e.body,t.withColor(e.color),!1);return pn(r)},Wd=(e,t)=>{var r=rr(e.body,t.withColor(e.color)),n=new Be("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Pe({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=nt(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:r0(i)}},htmlBuilder:Ud,mathmlBuilder:Wd}),Pe({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,i=nt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:Ud,mathmlBuilder:Wd}),Pe({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&nt(i,"size").value}},htmlBuilder(e,t){var r=Ee(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=_e(qt(e.size,t)))),r},mathmlBuilder(e,t){var r=new Be("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",_e(qt(e.size,t)))),r}});var vl={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Gd=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Te("Expected a control sequence",e);return t},v5=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Xd=(e,t,r,n)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)};Pe({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(vl[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=vl[n.text]),nt(t.parseFunction(),"internal");throw new Te("Invalid token after macro prefix",n)}}),Pe({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Te("Expected a control sequence",n);for(var a=0,s,c=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),c[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Te('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new Te('Argument number "'+n.text+'" out of order');a++,c.push([])}else{if(n.text==="EOF")throw new Te("Expected a macro definition");c[a].push(n.text)}var{tokens:f}=t.gullet.consumeArg();return s&&f.unshift(s),(r==="\\edef"||r==="\\xdef")&&(f=t.gullet.expandTokens(f),f.reverse()),t.gullet.macros.set(i,{tokens:f,numArgs:a,delimiters:c},r===vl[r]),{type:"internal",mode:t.mode}}}),Pe({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Gd(t.gullet.popToken());t.gullet.consumeSpaces();var i=v5(t);return Xd(t,n,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}}),Pe({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Gd(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Xd(t,n,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var Ci=function(t,r,n){var i=Lt.math[t]&&Lt.math[t].replace,a=tl(i||t,r,n);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},wl=function(t,r,n,i){var a=n.havingBaseStyle(r),s=Ee(i.concat(a.sizingClasses(n)),[t],n),c=a.sizeMultiplier/n.sizeMultiplier;return s.height*=c,s.depth*=c,s.maxFontSize=a.sizeMultiplier,s},Yd=function(t,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=_e(a),t.height-=a,t.depth+=a},w5=function(t,r,n,i,a,s){var c=P0(t,"Main-Regular",a,i),f=wl(c,r,i,s);return Yd(f,i,r),f},x5=function(t,r,n,i){return P0(t,"Size"+r+"-Regular",n,i)},Zd=function(t,r,n,i,a,s){var c=x5(t,r,a,i),f=wl(Ee(["delimsizing","size"+r],[c],i),et.TEXT,i,s);return n&&Yd(f,i,et.TEXT),f},xl=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Ee(["delimsizinginner",i],[Ee([],[P0(t,r,n)])]);return{type:"elem",elem:a}},Al=function(t,r,n){var i=Wr["Size4-Regular"][t.charCodeAt(0)]?Wr["Size4-Regular"][t.charCodeAt(0)][4]:Wr["Size1-Regular"][t.charCodeAt(0)][4],a=new Mn("inner",I6(t,Math.round(1e3*r))),s=new hn([a],{width:_e(i),height:_e(r),style:"width:"+_e(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),c=_n([],[s],n);return c.height=r,c.style.height=_e(r),c.style.width=_e(i),{type:"elem",elem:c}},Dl=.008,ro={type:"kern",size:-1*Dl},A5=new Set(["|","\\lvert","\\rvert","\\vert"]),D5=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Kd=function(t,r,n,i,a,s){var c,f,p,g,m="",w=0;c=p=g=t,f=null;var k="Size1-Regular";t==="\\uparrow"?p=g="⏐":t==="\\Uparrow"?p=g="‖":t==="\\downarrow"?c=p="⏐":t==="\\Downarrow"?c=p="‖":t==="\\updownarrow"?(c="\\uparrow",p="⏐",g="\\downarrow"):t==="\\Updownarrow"?(c="\\Uparrow",p="‖",g="\\Downarrow"):A5.has(t)?(p="∣",m="vert",w=333):D5.has(t)?(p="∥",m="doublevert",w=556):t==="["||t==="\\lbrack"?(c="⎡",p="⎢",g="⎣",k="Size4-Regular",m="lbrack",w=667):t==="]"||t==="\\rbrack"?(c="⎤",p="⎥",g="⎦",k="Size4-Regular",m="rbrack",w=667):t==="\\lfloor"||t==="⌊"?(p=c="⎢",g="⎣",k="Size4-Regular",m="lfloor",w=667):t==="\\lceil"||t==="⌈"?(c="⎡",p=g="⎢",k="Size4-Regular",m="lceil",w=667):t==="\\rfloor"||t==="⌋"?(p=c="⎥",g="⎦",k="Size4-Regular",m="rfloor",w=667):t==="\\rceil"||t==="⌉"?(c="⎤",p=g="⎥",k="Size4-Regular",m="rceil",w=667):t==="("||t==="\\lparen"?(c="⎛",p="⎜",g="⎝",k="Size4-Regular",m="lparen",w=875):t===")"||t==="\\rparen"?(c="⎞",p="⎟",g="⎠",k="Size4-Regular",m="rparen",w=875):t==="\\{"||t==="\\lbrace"?(c="⎧",f="⎨",g="⎩",p="⎪",k="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(c="⎫",f="⎬",g="⎭",p="⎪",k="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(c="⎧",g="⎩",p="⎪",k="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(c="⎫",g="⎭",p="⎪",k="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(c="⎧",g="⎭",p="⎪",k="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(c="⎫",g="⎩",p="⎪",k="Size4-Regular");var C=Ci(c,k,a),B=C.height+C.depth,_=Ci(p,k,a),T=_.height+_.depth,S=Ci(g,k,a),F=S.height+S.depth,z=0,R=1;if(f!==null){var $=Ci(f,k,a);z=$.height+$.depth,R=2}var Y=B+F+z,q=Math.max(0,Math.ceil((r-Y)/(R*T))),pe=Y+q*R*T,he=i.fontMetrics().axisHeight;n&&(he*=i.sizeMultiplier);var ce=pe/2-he,be=[];if(m.length>0){var ae=pe-B-F,xe=Math.round(pe*1e3),Se=O6(m,Math.round(ae*1e3)),te=new Mn(m,Se),ye=_e(w/1e3),ne=_e(xe/1e3),Ne=new hn([te],{width:ye,height:ne,viewBox:"0 0 "+w+" "+xe}),We=_n([],[Ne],i);We.height=xe/1e3,We.style.width=ye,We.style.height=ne,be.push({type:"elem",elem:We})}else{if(be.push(xl(g,k,a)),be.push(ro),f===null){var X=pe-B-F+2*Dl;be.push(Al(p,X,i))}else{var Z=(pe-B-F-z)/2+2*Dl;be.push(Al(p,Z,i)),be.push(ro),be.push(xl(f,k,a)),be.push(ro),be.push(Al(p,Z,i))}be.push(ro),be.push(xl(c,k,a))}var Q=i.havingBaseStyle(et.TEXT),ue=pt({positionType:"bottom",positionData:ce,children:be});return wl(Ee(["delimsizing","mult"],[ue],Q),et.TEXT,i,s)},kl=80,Cl=.08,Sl=function(t,r,n,i,a){var s=z6(t,i,n),c=new Mn(t,s),f=new hn([c],{width:"400em",height:_e(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return _n(["hide-tail"],[f],a)},k5=function(t,r){var n=r.havingBaseSizing(),i=r2("\\surd",t*n.sizeMultiplier,t2,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),c,f=0,p=0,g=0,m;return i.type==="small"?(g=1e3+1e3*s+kl,t<1?a=1:t<1.4&&(a=.7),f=(1+s+Cl)/a,p=(1+s)/a,c=Sl("sqrtMain",f,g,s,r),c.style.minWidth="0.853em",m=.833/a):i.type==="large"?(g=(1e3+kl)*Si[i.size],p=(Si[i.size]+s)/a,f=(Si[i.size]+s+Cl)/a,c=Sl("sqrtSize"+i.size,f,g,s,r),c.style.minWidth="1.02em",m=1/a):(f=t+s+Cl,p=t+s,g=Math.floor(1e3*t+s)+kl,c=Sl("sqrtTall",f,g,s,r),c.style.minWidth="0.742em",m=1.056),c.height=p,c.style.height=_e(f),{span:c,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},Qd=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),C5=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Jd=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Si=[0,1.2,1.8,2.4,3],e2=function(t,r,n,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Qd.has(t)||Jd.has(t))return Zd(t,r,!1,n,i,a);if(C5.has(t))return Kd(t,Si[r],!1,n,i,a);throw new Te("Illegal delimiter: '"+t+"'")},S5=[{type:"small",style:et.SCRIPTSCRIPT},{type:"small",style:et.SCRIPT},{type:"small",style:et.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],E5=[{type:"small",style:et.SCRIPTSCRIPT},{type:"small",style:et.SCRIPT},{type:"small",style:et.TEXT},{type:"stack"}],t2=[{type:"small",style:et.SCRIPTSCRIPT},{type:"small",style:et.SCRIPT},{type:"small",style:et.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],F5=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},r2=function(t,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;s<n.length;s++){var c=n[s];if(c.type==="stack")break;var f=Ci(t,F5(c),"math"),p=f.height+f.depth;if(c.type==="small"){var g=i.havingBaseStyle(c.style);p*=g.sizeMultiplier}if(p>r)return c}return n[n.length-1]},El=function(t,r,n,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var c;Jd.has(t)?c=S5:Qd.has(t)?c=t2:c=E5;var f=r2(t,r,c,i);return f.type==="small"?w5(t,f.style,n,i,a,s):f.type==="large"?Zd(t,f.size,n,i,a,s):Kd(t,r,n,i,a,s)},Fl=function(t,r,n,i,a,s){var c=i.fontMetrics().axisHeight*i.sizeMultiplier,f=901,p=5/i.fontMetrics().ptPerEm,g=Math.max(r-c,n+c),m=Math.max(g/500*f,2*g-p);return El(t,m,!0,i,a,s)},n2={"\\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}},T5=new Set(["(","\\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 no(e,t){var r=Ju(e);if(r&&T5.has(r.text))return r;throw r?new Te("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Te("Invalid delimiter type '"+e.type+"'",e)}Pe({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:(e,t)=>{var r=no(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:n2[e.funcName].size,mclass:n2[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Ee([e.mclass]):e2(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(br(e.delim,e.mode));var r=new Be("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=_e(Si[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function a2(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Pe({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Te("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:no(t[0],e).text,color:r}}}),Pe({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=no(t[0],e),n=e.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=nt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{a2(e);for(var r=d0(e.body,t,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s<r.length;s++)r[s].isMiddle?a=!0:(n=Math.max(r[s].height,n),i=Math.max(r[s].depth,i));n*=t.sizeMultiplier,i*=t.sizeMultiplier;var c;if(e.left==="."?c=ki(t,["mopen"]):c=Fl(e.left,n,i,t,e.mode,["mopen"]),r.unshift(c),a)for(var f=1;f<r.length;f++){var p=r[f],g=p.isMiddle;g&&(r[f]=Fl(g.delim,n,i,g.options,e.mode,[]))}var m;if(e.right===".")m=ki(t,["mclose"]);else{var w=e.rightColor?t.withColor(e.rightColor):t;m=Fl(e.right,n,i,w,e.mode,["mclose"])}return r.push(m),Ee(["minner"],r,t)},mathmlBuilder:(e,t)=>{a2(e);var r=rr(e.body,t);if(e.left!=="."){var n=new Be("mo",[br(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new Be("mo",[br(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return pl(r)}}),Pe({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=no(t[0],e);if(!e.parser.leftrightDepth)throw new Te("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=ki(t,[]);else{r=e2(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?br("|","text"):br(e.delim,e.mode),n=new Be("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var ao=(e,t)=>{var r=Ia(gt(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,a,s=0,c=dn(e.body);if(n==="sout")a=Ee(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var f=qt({number:.6,unit:"pt"},t),p=qt({number:.35,unit:"ex"},t),g=t.havingBaseSizing();i=i/g.sizeMultiplier;var m=r.height+r.depth+f+p;r.style.paddingLeft=_e(m/2+f);var w=Math.floor(1e3*m*i),k=N6(w),C=new hn([new Mn("phase",k)],{width:"400em",height:_e(w/1e3),viewBox:"0 0 400000 "+w,preserveAspectRatio:"xMinYMin slice"});a=_n(["hide-tail"],[C],t),a.style.height=_e(m),s=r.depth+f+p}else{/cancel/.test(n)?c||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var B=0,_=0,T=0;/box/.test(n)?(T=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),B=t.fontMetrics().fboxsep+(n==="colorbox"?0:T),_=B):n==="angl"?(T=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),B=4*T,_=Math.max(0,.25-r.depth)):(B=c?.2:0,_=B),a=h5(r,n,B,_,t),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=_e(T)):n==="angl"&&T!==.049&&(a.style.borderTopWidth=_e(T),a.style.borderRightWidth=_e(T)),s=r.depth+_,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=pt({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var F=/cancel|phase/.test(n)?["svg-align"]:[];S=pt({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:F}]})}return/cancel/.test(n)&&(S.height=r.height,S.depth=r.depth),/cancel/.test(n)&&!c?Ee(["mord","cancel-lap"],[S],t):Ee(["mord"],[S],t)},io=(e,t)=>{var r=0,n=new Be(e.label.includes("colorbox")?"mpadded":"menclose",[Ct(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+_e(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Pe({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=nt(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:ao,mathmlBuilder:io}),Pe({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:i}=e,a=nt(t[0],"color-token").color,s=nt(t[1],"color-token").color,c=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:c}},htmlBuilder:ao,mathmlBuilder:io}),Pe({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),Pe({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:ao,mathmlBuilder:io}),Pe({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var i=t[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:ao,mathmlBuilder:io}),Pe({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var i2={};function Gr(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,c={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},f=0;f<r.length;++f)i2[r[f]]=c;a&&(Wu[t]=a),s&&(Gu[t]=s)}var u2={};function O(e,t){u2[e]=t}class X0{constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new X0(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}let Er=class sm{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new sm(r,X0.range(this,t))}};function o2(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var uo=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Te("{"+e.envName+"} can be used only in display mode.")},B5=new Set(["gather","gather*"]);function Tl(e){if(!e.includes("ed"))return!e.includes("*")}function In(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:c,autoTag:f,singleRow:p,emptySingleRow:g,maxNumCols:m,leqno:w}=t;if(e.gullet.beginGroup(),p||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var k=e.gullet.expandMacroAsText("\\arraystretch");if(k==null)s=1;else if(s=parseFloat(k),!s||s<0)throw new Te("Invalid \\arraystretch: "+k)}e.gullet.beginGroup();var C=[],B=[C],_=[],T=[],S=f!=null?[]:void 0;function F(){f&&e.gullet.macros.set("\\@eqnsw","1",!0)}function z(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new Er("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!f&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(F(),T.push(o2(e));;){var R=e.parseExpression(!1,p?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var $={type:"ordgroup",mode:e.mode,body:R};r&&($={type:"styling",mode:e.mode,style:r,body:[$]}),C.push($);var Y=e.fetch().text;if(Y==="&"){if(m&&C.length===m){if(p||c)throw new Te("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(Y==="\\end"){z(),C.length===1&&$.type==="styling"&&$.body.length===1&&$.body[0].type==="ordgroup"&&$.body[0].body.length===0&&(B.length>1||!g)&&B.pop(),T.length<B.length+1&&T.push([]);break}else if(Y==="\\\\"){e.consume();var q=void 0;e.gullet.future().text!==" "&&(q=e.parseSizeGroup(!0)),_.push(q?q.value:null),z(),T.push(o2(e)),C=[],B.push(C),F()}else throw new Te("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:B,cols:a,rowGaps:_,hskipBeforeAndAfter:n,hLinesBeforeRow:T,colSeparationType:c,tags:S,leqno:w}}function Bl(e){return e.slice(0,1)==="d"?"display":"text"}var Xr=function(t,r){var n,i,a=t.body.length,s=t.hLinesBeforeRow,c=0,f=new Array(a),p=[],g=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),m=1/r.fontMetrics().ptPerEm,w=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var k=r.havingStyle(et.SCRIPT).sizeMultiplier;w=.2778*(k/r.sizeMultiplier)}var C=t.colSeparationType==="CD"?qt({number:3,unit:"ex"},r):12*m,B=3*m,_=t.arraystretch*C,T=.7*_,S=.3*_,F=0;function z(un){for(var Dn=0;Dn<un.length;++Dn)Dn>0&&(F+=.25),p.push({pos:F,isDashed:un[Dn]})}for(z(s[0]),n=0;n<t.body.length;++n){var R=t.body[n],$=T,Y=S;c<R.length&&(c=R.length);var q=new Array(R.length);for(i=0;i<R.length;++i){var pe=gt(R[i],r);Y<pe.depth&&(Y=pe.depth),$<pe.height&&($=pe.height),q[i]=pe}var he=t.rowGaps[n],ce=0;he&&(ce=qt(he,r),ce>0&&(ce+=S,Y<ce&&(Y=ce),ce=0)),t.addJot&&n<t.body.length-1&&(Y+=B),q.height=$,q.depth=Y,F+=$,q.pos=F,F+=Y+ce,f[n]=q,z(s[n+1])}var be=F/2+r.fontMetrics().axisHeight,ae=t.cols||[],xe=[],Se,te,ye=[];if(t.tags&&t.tags.some(un=>un))for(n=0;n<a;++n){var ne=f[n],Ne=ne.pos-be,We=t.tags[n],X=void 0;We===!0?X=Ee(["eqn-num"],[],r):We===!1?X=Ee([],[],r):X=Ee([],d0(We,r,!0),r),X.depth=ne.depth,X.height=ne.height,ye.push({type:"elem",elem:X,shift:Ne})}for(i=0,te=0;i<c||te<ae.length;++i,++te){for(var Z,Q=ae[te],ue=!0;((fe=Q)==null?void 0:fe.type)==="separator";){var fe;if(ue||(Se=Ee(["arraycolsep"],[]),Se.style.width=_e(r.fontMetrics().doubleRuleSep),xe.push(Se)),Q.separator==="|"||Q.separator===":"){var ke=Q.separator==="|"?"solid":"dashed",ie=Ee(["vertical-separator"],[],r);ie.style.height=_e(F),ie.style.borderRightWidth=_e(g),ie.style.borderRightStyle=ke,ie.style.margin="0 "+_e(-g/2);var me=F-be;me&&(ie.style.verticalAlign=_e(-me)),xe.push(ie)}else throw new Te("Invalid separator type: "+Q.separator);te++,Q=ae[te],ue=!1}if(!(i>=c)){var ge=void 0;if(i>0||t.hskipBeforeAndAfter){var Le,Ye;ge=(Le=(Ye=Q)==null?void 0:Ye.pregap)!=null?Le:w,ge!==0&&(Se=Ee(["arraycolsep"],[]),Se.style.width=_e(ge),xe.push(Se))}var Ke=[];for(n=0;n<a;++n){var ut=f[n],ot=ut[i];if(ot){var st=ut.pos-be;ot.depth=ut.depth,ot.height=ut.height,Ke.push({type:"elem",elem:ot,shift:st})}}var Xt=pt({positionType:"individualShift",children:Ke}),$0=Ee(["col-align-"+(((Z=Q)==null?void 0:Z.align)||"c")],[Xt]);if(xe.push($0),i<c-1||t.hskipBeforeAndAfter){var Jt,ft;ge=(Jt=(ft=Q)==null?void 0:ft.postgap)!=null?Jt:w,ge!==0&&(Se=Ee(["arraycolsep"],[]),Se.style.width=_e(ge),xe.push(Se))}}}var Ce=Ee(["mtable"],xe);if(p.length>0){for(var dr=za("hline",r,g),Da=za("hdashline",r,g),Yn=[{type:"elem",elem:Ce,shift:0}];p.length>0;){var Zn=p.pop(),Vr=Zn.pos-be;Zn.isDashed?Yn.push({type:"elem",elem:Da,shift:Vr}):Yn.push({type:"elem",elem:dr,shift:Vr})}Ce=pt({positionType:"individualShift",children:Yn})}if(ye.length===0)return Ee(["mord"],[Ce],r);var U0=pt({positionType:"individualShift",children:ye}),C0=Ee(["tag"],[U0],r);return pn([Ce,C0])},M5={c:"center ",l:"left ",r:"right "},Yr=function(t,r){for(var n=[],i=new Be("mtd",[],["mtr-glue"]),a=new Be("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var c=t.body[s],f=[],p=0;p<c.length;p++)f.push(new Be("mtd",[Ct(c[p],r)]));t.tags&&t.tags[s]&&(f.unshift(i),f.push(i),t.leqno?f.unshift(a):f.push(a)),n.push(new Be("mtr",f))}var g=new Be("mtable",n),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);g.setAttribute("rowspacing",_e(m));var w="",k="";if(t.cols&&t.cols.length>0){var C=t.cols,B="",_=!1,T=0,S=C.length;C[0].type==="separator"&&(w+="top ",T=1),C[C.length-1].type==="separator"&&(w+="bottom ",S-=1);for(var F=T;F<S;F++){var z=C[F];z.type==="align"?(k+=M5[z.align],_&&(B+="none "),_=!0):z.type==="separator"&&_&&(B+=z.separator==="|"?"solid ":"dashed ",_=!1)}g.setAttribute("columnalign",k.trim()),/[sd]/.test(B)&&g.setAttribute("columnlines",B.trim())}if(t.colSeparationType==="align"){for(var R=t.cols||[],$="",Y=1;Y<R.length;Y++)$+=Y%2?"0em ":"1em ";g.setAttribute("columnspacing",$.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?g.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?g.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?g.setAttribute("columnspacing","0.5em"):g.setAttribute("columnspacing","1em");var q="",pe=t.hLinesBeforeRow;w+=pe[0].length>0?"left ":"",w+=pe[pe.length-1].length>0?"right ":"";for(var he=1;he<pe.length-1;he++)q+=pe[he].length===0?"none ":pe[he][0]?"dashed ":"solid ";return/[sd]/.test(q)&&g.setAttribute("rowlines",q.trim()),w!==""&&(g=new Be("menclose",[g]),g.setAttribute("notation",w.trim())),t.arraystretch&&t.arraystretch<1&&(g=new Be("mstyle",[g]),g.setAttribute("scriptlevel","1")),g},s2=function(t,r){t.envName.includes("ed")||uo(t);var n=[],i=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",s=In(t.parser,{cols:n,addJot:!0,autoTag:a?void 0:Tl(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),c=0,f=0,p={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var g="",m=0;m<r[0].body.length;m++){var w=nt(r[0].body[m],"textord");g+=w.text}c=Number(g),f=c*2}var k=!f;s.body.forEach(function(T){for(var S=1;S<T.length;S+=2){var F=nt(T[S],"styling"),z=nt(F.body[0],"ordgroup");z.body.unshift(p)}if(k)f<T.length&&(f=T.length);else{var R=T.length/2;if(c<R)throw new Te("Too many math in a row: "+("expected "+c+", but got "+R),T[0])}});for(var C=0;C<f;++C){var B="r",_=0;C%2===1?B="l":C>0&&k&&(_=1),n[C]={type:"align",align:B,pregap:_,postgap:0}}return s.colSeparationType=k?"align":"alignat",s};Gr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Ju(t[0]),n=r?[t[0]]:nt(t[0],"ordgroup").body,i=n.map(function(s){var c=Qu(s),f=c.text;if("lcr".includes(f))return{type:"align",align:f};if(f==="|")return{type:"separator",separator:"|"};if(f===":")return{type:"separator",separator:":"};throw new Te("Unknown column alignment: "+f,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return In(e.parser,a,Bl(e.envName))},htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new Te("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=In(e.parser,n,Bl(e.envName)),s=Math.max(0,...a.body.map(c=>c.length));return a.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=In(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Ju(t[0]),n=r?[t[0]]:nt(t[0],"ordgroup").body,i=n.map(function(c){var f=Qu(c),p=f.text;if("lc".includes(p))return{type:"align",align:p};throw new Te("Unknown column alignment: "+p,c)});if(i.length>1)throw new Te("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},s=In(e.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new Te("{subarray} can contain only one column");return s},htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=In(e.parser,t,Bl(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:s2,htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){B5.has(e.envName)&&uo(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Tl(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return In(e.parser,t,"display")},htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:s2,htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){uo(e);var t={autoTag:Tl(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return In(e.parser,t,"display")},htmlBuilder:Xr,mathmlBuilder:Yr}),Gr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return uo(e),y5(e.parser)},htmlBuilder:Xr,mathmlBuilder:Yr}),O("\\nonumber","\\gdef\\@eqnsw{0}"),O("\\notag","\\nonumber"),Pe({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Te(e.funcName+" valid only within array environment")}});var l2=i2;Pe({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new Te("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=nt(i.body[s],"textord").text;if(n==="\\begin"){if(!l2.hasOwnProperty(a))throw new Te("No such environment: "+a,i);var c=l2[a],{args:f,optArgs:p}=r.parseArguments("\\begin{"+a+"}",c),g={mode:r.mode,envName:a,parser:r},m=c.handler(g,f,p);r.expect("\\end",!1);var w=r.nextToken,k=nt(r.parseFunction(),"environment");if(k.name!==a)throw new Te("Mismatch: \\begin{"+a+"} matched by \\end{"+k.name+"}",w);return m}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var c2=(e,t)=>{var r=e.font,n=t.withFont(r);return gt(e.body,n)},d2=(e,t)=>{var r=e.font,n=t.withFont(r);return Ct(e.body,n)},f2={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Pe({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=Xu(t[0]),a=n;return a in f2&&(a=f2[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:c2,mathmlBuilder:d2}),Pe({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:to(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:dn(n)}}}),Pe({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:i}=e,{mode:a}=r,s=r.parseExpression(!0,i),c="math"+n.slice(1);return{type:"font",mode:a,font:c,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:c2,mathmlBuilder:d2});var N5=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),a;a=t.havingStyle(n);var s=gt(e.numer,a,t);if(e.continued){var c=8.5/t.fontMetrics().ptPerEm,f=3.5/t.fontMetrics().ptPerEm;s.height=s.height<c?c:s.height,s.depth=s.depth<f?f:s.depth}a=t.havingStyle(i);var p=gt(e.denom,a,t),g,m,w;e.hasBarLine?(e.barSize?(m=qt(e.barSize,t),g=za("frac-line",t,m)):g=za("frac-line",t),m=g.height,w=g.height):(g=null,m=0,w=t.fontMetrics().defaultRuleThickness);var k,C,B;r.size===et.DISPLAY.size?(k=t.fontMetrics().num1,m>0?C=3*w:C=7*w,B=t.fontMetrics().denom1):(m>0?(k=t.fontMetrics().num2,C=w):(k=t.fontMetrics().num3,C=3*w),B=t.fontMetrics().denom2);var _;if(g){var S=t.fontMetrics().axisHeight;k-s.depth-(S+.5*m)<C&&(k+=C-(k-s.depth-(S+.5*m))),S-.5*m-(p.height-B)<C&&(B+=C-(S-.5*m-(p.height-B)));var F=-(S-.5*m);_=pt({positionType:"individualShift",children:[{type:"elem",elem:p,shift:B},{type:"elem",elem:g,shift:F},{type:"elem",elem:s,shift:-k}]})}else{var T=k-s.depth-(p.height-B);T<C&&(k+=.5*(C-T),B+=.5*(C-T)),_=pt({positionType:"individualShift",children:[{type:"elem",elem:p,shift:B},{type:"elem",elem:s,shift:-k}]})}a=t.havingStyle(r),_.height*=a.sizeMultiplier/t.sizeMultiplier,_.depth*=a.sizeMultiplier/t.sizeMultiplier;var z;r.size===et.DISPLAY.size?z=t.fontMetrics().delim1:r.size===et.SCRIPTSCRIPT.size?z=t.havingStyle(et.SCRIPT).fontMetrics().delim2:z=t.fontMetrics().delim2;var R,$;return e.leftDelim==null?R=ki(t,["mopen"]):R=El(e.leftDelim,z,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?$=Ee([]):e.rightDelim==null?$=ki(t,["mclose"]):$=El(e.rightDelim,z,!0,t.havingStyle(r),e.mode,["mclose"]),Ee(["mord"].concat(a.sizingClasses(t)),[R,Ee(["mfrac"],[_]),$],t)},_5=(e,t)=>{var r=new Be("mfrac",[Ct(e.numer,t),Ct(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=qt(e.barSize,t);r.setAttribute("linethickness",_e(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new Be("mo",[new n0(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),i.push(a)}if(i.push(r),e.rightDelim!=null){var s=new Be("mo",[new n0(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}return pl(i)}return r},h2=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Pe({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=t[1],s,c=null,f=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,c="(",f=")";break;case"\\\\bracefrac":s=!1,c="\\{",f="\\}";break;case"\\\\brackfrac":s=!1,c="[",f="]";break;default:throw new Error("Unrecognized genfrac command")}var p=n==="\\cfrac",g=null;return p||n.startsWith("\\d")?g="display":n.startsWith("\\t")&&(g="text"),h2({type:"genfrac",mode:r.mode,numer:i,denom:a,continued:p,hasBarLine:s,leftDelim:c,rightDelim:f,barSize:null},g)},htmlBuilder:N5,mathmlBuilder:_5}),Pe({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:n}}});var m2=["display","text","script","scriptscript"],p2=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};Pe({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],i=t[5],a=Xu(t[0]),s=a.type==="atom"&&a.family==="open"?p2(a.text):null,c=Xu(t[1]),f=c.type==="atom"&&c.family==="close"?p2(c.text):null,p=nt(t[2],"size"),g,m=null;p.isBlank?g=!0:(m=p.value,g=m.number>0);var w=null,k=t[3];if(k.type==="ordgroup"){if(k.body.length>0){var C=nt(k.body[0],"textord");w=m2[Number(C.text)]}}else k=nt(k,"textord"),w=m2[Number(k.text)];return h2({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:g,barSize:m,leftDelim:s,rightDelim:f},w)}}),Pe({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:nt(t[0],"size").value,token:i}}}),Pe({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0],a=nt(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=t[2],c=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:c,barSize:a,leftDelim:null,rightDelim:null}}});var g2=(e,t)=>{var r=t.style,n,i;e.type==="supsub"?(n=e.sup?gt(e.sup,t.havingStyle(r.sup()),t):gt(e.sub,t.havingStyle(r.sub()),t),i=nt(e.base,"horizBrace")):i=nt(e,"horizBrace");var a=gt(i.base,t.havingBaseStyle(et.DISPLAY)),s=Ku(i,t),c;if(i.isOver?(c=pt({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]}),c.children[0].children[0].children[1].classes.push("svg-align")):(c=pt({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]}),c.children[0].children[0].children[0].classes.push("svg-align")),n){var f=Ee(["minner",i.isOver?"mover":"munder"],[c],t);i.isOver?c=pt({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:n}]}):c=pt({positionType:"bottom",positionData:f.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:f}]})}return Ee(["minner",i.isOver?"mover":"munder"],[c],t)},z5=(e,t)=>{var r=Zu(e.label);return new Be(e.isOver?"mover":"munder",[Ct(e.base,t),r])};Pe({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:g2,mathmlBuilder:z5}),Pe({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],i=nt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:r0(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=d0(e.body,t,!1);return K6(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=zn(e.body,t);return r instanceof Be||(r=new Be("mrow",[r])),r.setAttribute("href",e.href),r}}),Pe({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=nt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var s=n[a];s==="~"&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var c={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:r0(c)}}}),Pe({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:r0(t[0])}},htmlBuilder(e,t){var r=d0(e.body,t,!1);return pn(r)},mathmlBuilder(e,t){return new Be("mrow",rr(e.body,t))}}),Pe({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:i}=e,a=nt(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c,f={};switch(n){case"\\htmlClass":f.class=a,c={command:"\\htmlClass",class:a};break;case"\\htmlId":f.id=a,c={command:"\\htmlId",id:a};break;case"\\htmlStyle":f.style=a,c={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var p=a.split(","),g=0;g<p.length;g++){var m=p[g],w=m.indexOf("=");if(w<0)throw new Te("\\htmlData key/value '"+m+"' missing equals sign");var k=m.slice(0,w),C=m.slice(w+1);f["data-"+k.trim()]=C}c={command:"\\htmlData",attributes:f};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(c)?{type:"html",mode:r.mode,attributes:f,body:r0(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=d0(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Ee(n,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>zn(e.body,t)}),Pe({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:r0(t[0]),mathml:r0(t[1])}},htmlBuilder:(e,t)=>{var r=d0(e.html,t,!1);return pn(r)},mathmlBuilder:(e,t)=>zn(e.mathml,t)});var Ml=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Te("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!pd(n))throw new Te("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Pe({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},c="";if(r[0])for(var f=nt(r[0],"raw").string,p=f.split(","),g=0;g<p.length;g++){var m=p[g].split("=");if(m.length===2){var w=m[1].trim();switch(m[0].trim()){case"alt":c=w;break;case"width":i=Ml(w);break;case"height":a=Ml(w);break;case"totalheight":s=Ml(w);break;default:throw new Te("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var k=nt(t[0],"url").url;return c===""&&(c=k,c=c.replace(/^.*[\\/]/,""),c=c.substring(0,c.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:k})?{type:"includegraphics",mode:n.mode,alt:c,width:i,height:a,totalheight:s,src:k}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=qt(e.height,t),n=0;e.totalheight.number>0&&(n=qt(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=qt(e.width,t));var a={height:_e(r+n)};i>0&&(a.width=_e(i)),n>0&&(a.verticalAlign=_e(-n));var s=new P6(e.src,e.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new Be("mglyph",[]);r.setAttribute("alt",e.alt);var n=qt(e.height,t),i=0;if(e.totalheight.number>0&&(i=qt(e.totalheight,t)-n,r.setAttribute("valign",_e(-i))),r.setAttribute("height",_e(n+i)),e.width.number>0){var a=qt(e.width,t);r.setAttribute("width",_e(a))}return r.setAttribute("src",e.src),r}}),Pe({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=nt(t[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return Ed(e.dimension,t)},mathmlBuilder(e,t){var r=qt(e.dimension,t);return new _d(r)}}),Pe({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Ee([],[gt(e.body,t)]),r=Ee(["inner"],[r],t)):r=Ee(["inner"],[gt(e.body,t)]);var n=Ee(["fix"],[]),i=Ee([e.alignment],[r,n],t),a=Ee(["strut"]);return a.style.height=_e(i.height+i.depth),i.depth&&(a.style.verticalAlign=_e(-i.depth)),i.children.unshift(a),i=Ee(["thinbox"],[i],t),Ee(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Be("mpadded",[Ct(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),Pe({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}}),Pe({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Te("Mismatched "+e.funcName)}});var b2=(e,t)=>{switch(t.style.size){case et.DISPLAY.size:return e.display;case et.TEXT.size:return e.text;case et.SCRIPT.size:return e.script;case et.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Pe({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:r0(t[0]),text:r0(t[1]),script:r0(t[2]),scriptscript:r0(t[3])}},htmlBuilder:(e,t)=>{var r=b2(e,t),n=d0(r,t,!1);return pn(n)},mathmlBuilder:(e,t)=>{var r=b2(e,t);return zn(r,t)}});var y2=(e,t,r,n,i,a,s)=>{e=Ee([],[e]);var c=r&&dn(r),f,p;if(t){var g=gt(t,n.havingStyle(i.sup()),n);p={elem:g,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-g.depth)}}if(r){var m=gt(r,n.havingStyle(i.sub()),n);f={elem:m,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-m.height)}}var w;if(p&&f){var k=n.fontMetrics().bigOpSpacing5+f.elem.height+f.elem.depth+f.kern+e.depth+s;w=pt({positionType:"bottom",positionData:k,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:_e(-a)},{type:"kern",size:f.kern},{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:_e(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(f){var C=e.height-s;w=pt({positionType:"top",positionData:C,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:f.elem,marginLeft:_e(-a)},{type:"kern",size:f.kern},{type:"elem",elem:e}]})}else if(p){var B=e.depth+s;w=pt({positionType:"bottom",positionData:B,children:[{type:"elem",elem:e},{type:"kern",size:p.kern},{type:"elem",elem:p.elem,marginLeft:_e(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var _=[w];if(f&&a!==0&&!c){var T=Ee(["mspace"],[],n);T.style.marginRight=_e(a),_.unshift(T)}return Ee(["mop","op-limits"],_,n)},v2=new Set(["\\smallint"]),Oa=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=nt(e.base,"op"),i=!0):a=nt(e,"op");var s=t.style,c=!1;s.size===et.DISPLAY.size&&a.symbol&&!v2.has(a.name)&&(c=!0);var f;if(a.symbol){var p=c?"Size2-Regular":"Size1-Regular",g="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(g=a.name.slice(1),a.name=g==="oiint"?"\\iint":"\\iiint"),f=P0(a.name,p,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),g.length>0){var m=f.italic,w=Td(g+"Size"+(c?"2":"1"),t);f=pt({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:w,shift:c?.08:0}]}),a.name="\\"+g,f.classes.unshift("mop"),f.italic=m}}else if(a.body){var k=d0(a.body,t,!0);k.length===1&&k[0]instanceof er?(f=k[0],f.classes[0]="mop"):f=Ee(["mop"],k,t)}else{for(var C=[],B=1;B<a.name.length;B++)C.push(sl(a.name[B],a.mode,t));f=Ee(["mop"],C,t)}var _=0,T=0;return(f instanceof er||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(_=(f.height-f.depth)/2-t.fontMetrics().axisHeight,T=f.italic||0),i?y2(f,r,n,t,s,T,_):(_&&(f.style.position="relative",f.style.top=_e(_)),f)},Ei=(e,t)=>{var r;if(e.symbol)r=new Be("mo",[br(e.name,e.mode)]),v2.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Be("mo",rr(e.body,t));else{r=new Be("mi",[new n0(e.name.slice(1))]);var n=new Be("mo",[br("","text")]);e.parentIsSupSub?r=new Be("mrow",[r,n]):r=Nd([r,n])}return r},I5={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Pe({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=I5[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Oa,mathmlBuilder:Ei}),Pe({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:r0(n)}},htmlBuilder:Oa,mathmlBuilder:Ei});var O5={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Pe({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(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Oa,mathmlBuilder:Ei}),Pe({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Oa,mathmlBuilder:Ei}),Pe({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=O5[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Oa,mathmlBuilder:Ei});var w2=(e,t)=>{var r,n,i=!1,a;e.type==="supsub"?(r=e.sup,n=e.sub,a=nt(e.base,"operatorname"),i=!0):a=nt(e,"operatorname");var s;if(a.body.length>0){for(var c=a.body.map(m=>{var w="text"in m?m.text:void 0;return typeof w=="string"?{type:"textord",mode:m.mode,text:w}:m}),f=d0(c,t.withFont("mathrm"),!0),p=0;p<f.length;p++){var g=f[p];g instanceof er&&(g.text=g.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=Ee(["mop"],f,t)}else s=Ee(["mop"],[],t);return i?y2(s,r,n,t,t.style,0,0):s},L5=(e,t)=>{for(var r=rr(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof _d))if(a instanceof Be)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof n0?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var c=r.map(g=>g.toText()).join("");r=[new n0(c)]}var f=new Be("mi",r);f.setAttribute("mathvariant","normal");var p=new Be("mo",[br("","text")]);return e.parentIsSupSub?new Be("mrow",[f,p]):Nd([f,p])};Pe({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:r0(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:w2,mathmlBuilder:L5}),O("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),da({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?pn(d0(e.body,t,!1)):Ee(["mord"],d0(e.body,t,!0),t)},mathmlBuilder(e,t){return zn(e.body,t,!0)}}),Pe({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=gt(e.body,t.havingCrampedStyle()),n=za("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=pt({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]});return Ee(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new Be("mo",[new n0("‾")]);r.setAttribute("stretchy","true");var n=new Be("mover",[Ct(e.body,t),r]);return n.setAttribute("accent","true"),n}}),Pe({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:r0(n)}},htmlBuilder:(e,t)=>{var r=d0(e.body,t.withPhantom(),!1);return pn(r)},mathmlBuilder:(e,t)=>{var r=rr(e.body,t);return new Be("mphantom",r)}}),O("\\hphantom","\\smash{\\phantom{#1}}"),Pe({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Ee(["inner"],[gt(e.body,t.withPhantom())]),n=Ee(["fix"],[]);return Ee(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=rr(r0(e.body),t),n=new Be("mphantom",r),i=new Be("mpadded",[n]);return i.setAttribute("width","0px"),i}}),Pe({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=nt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=gt(e.body,t),n=qt(e.dy,t);return pt({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Be("mpadded",[Ct(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),Pe({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Pe({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],a=nt(t[0],"size"),s=nt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&nt(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var r=Ee(["mord","rule"],[],t),n=qt(e.width,t),i=qt(e.height,t),a=e.shift?qt(e.shift,t):0;return r.style.borderRightWidth=_e(n),r.style.borderTopWidth=_e(i),r.style.bottom=_e(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=qt(e.width,t),n=qt(e.height,t),i=e.shift?qt(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Be("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",_e(r)),s.setAttribute("height",_e(n));var c=new Be("mpadded",[s]);return i>=0?c.setAttribute("height",_e(i)):(c.setAttribute("height",_e(i)),c.setAttribute("depth",_e(-i))),c.setAttribute("voffset",_e(i)),c}});function x2(e,t,r){for(var n=d0(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var s=n[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[a].classes,t.sizingClasses(r)):n[a].classes[s+1]==="reset-size"+t.size&&(n[a].classes[s+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return pn(n)}var A2=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],R5=(e,t)=>{var r=t.havingSize(e.size);return x2(e.body,r,t)};Pe({type:"sizing",names:A2,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:A2.indexOf(n)+1,body:a}},htmlBuilder:R5,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=rr(e.body,r),i=new Be("mstyle",n);return i.setAttribute("mathsize",_e(r.sizeMultiplier)),i}}),Pe({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,a=!1,s=r[0]&&nt(r[0],"ordgroup");if(s)for(var c="",f=0;f<s.body.length;++f){var p=s.body[f];if(c=Qu(p).text,c==="t")i=!0;else if(c==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var g=t[0];return{type:"smash",mode:n.mode,body:g,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var r=Ee([],[gt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return Ee(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var i=pt({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Ee(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Be("mpadded",[Ct(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),Pe({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],a=t[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(e,t){var r=gt(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Ia(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,a=i;t.style.id<et.TEXT.id&&(a=t.fontMetrics().xHeight);var s=i+a/4,c=r.height+r.depth+s+i,{span:f,ruleWidth:p,advanceWidth:g}=k5(c,t),m=f.height-p;m>r.height+r.depth+s&&(s=(s+m-r.height-r.depth)/2);var w=f.height-r.height-s-p;r.style.paddingLeft=_e(g);var k=pt({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+w)},{type:"elem",elem:f},{type:"kern",size:p}]});if(e.index){var C=t.havingStyle(et.SCRIPTSCRIPT),B=gt(e.index,C,t),_=.6*(k.height-k.depth),T=pt({positionType:"shift",positionData:-_,children:[{type:"elem",elem:B}]}),S=Ee(["root"],[T]);return Ee(["mord","sqrt"],[S,k],t)}else return Ee(["mord","sqrt"],[k],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Be("mroot",[Ct(r,t),Ct(n,t)]):new Be("msqrt",[Ct(r,t)])}});var D2={display:et.DISPLAY,text:et.TEXT,script:et.SCRIPT,scriptscript:et.SCRIPTSCRIPT};Pe({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:i}=e,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var r=D2[e.style],n=t.havingStyle(r).withFont("");return x2(e.body,n,t)},mathmlBuilder(e,t){var r=D2[e.style],n=t.havingStyle(r),i=rr(e.body,n),a=new Be("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},c=s[e.style];return a.setAttribute("scriptlevel",c[0]),a.setAttribute("displaystyle",c[1]),a}});var P5=function(t,r){var n=t.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===et.DISPLAY.size||n.alwaysHandleSupSub);return i?Oa:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===et.DISPLAY.size||n.limits);return a?w2:null}else{if(n.type==="accent")return dn(n.base)?yl:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?g2:null}else return null}else return null};da({type:"supsub",htmlBuilder(e,t){var r=P5(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,s=gt(n,t),c,f,p=t.fontMetrics(),g=0,m=0,w=n&&dn(n);if(i){var k=t.havingStyle(t.style.sup());c=gt(i,k,t),w||(g=s.height-k.fontMetrics().supDrop*k.sizeMultiplier/t.sizeMultiplier)}if(a){var C=t.havingStyle(t.style.sub());f=gt(a,C,t),w||(m=s.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var B;t.style===et.DISPLAY?B=p.sup1:t.style.cramped?B=p.sup3:B=p.sup2;var _=t.sizeMultiplier,T=_e(.5/p.ptPerEm/_),S=null;if(f){var F=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof er||F)&&(S=_e(-s.italic))}var z;if(c&&f){g=Math.max(g,B,c.depth+.25*p.xHeight),m=Math.max(m,p.sub2);var R=p.defaultRuleThickness,$=4*R;if(g-c.depth-(f.height-m)<$){m=$-(g-c.depth)+f.height;var Y=.8*p.xHeight-(g-c.depth);Y>0&&(g+=Y,m-=Y)}var q=[{type:"elem",elem:f,shift:m,marginRight:T,marginLeft:S},{type:"elem",elem:c,shift:-g,marginRight:T}];z=pt({positionType:"individualShift",children:q})}else if(f){m=Math.max(m,p.sub1,f.height-.8*p.xHeight);var pe=[{type:"elem",elem:f,marginLeft:S,marginRight:T}];z=pt({positionType:"shift",positionData:m,children:pe})}else if(c)g=Math.max(g,B,c.depth+.25*p.xHeight),z=pt({positionType:"shift",positionData:-g,children:[{type:"elem",elem:c,marginRight:T}]});else throw new Error("supsub must have either sup or sub.");var he=hl(s,"right")||"mord";return Ee([he],[s,Ee(["msupsub"],[z])],t)},mathmlBuilder(e,t){var r=!1,n,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ct(e.base,t)];e.sub&&a.push(Ct(e.sub,t)),e.sup&&a.push(Ct(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var p=e.base;p&&p.type==="op"&&p.limits&&t.style===et.DISPLAY||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(t.style===et.DISPLAY||p.limits)?s="munderover":s="msubsup"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===et.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===et.DISPLAY)?s="munder":s="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===et.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===et.DISPLAY)?s="mover":s="msup"}return new Be(s,a)}}),da({type:"atom",htmlBuilder(e,t){return sl(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Be("mo",[br(e.text,e.mode)]);if(e.family==="bin"){var n=gl(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var k2={mi:"italic",mn:"normal",mtext:"normal"};da({type:"mathord",htmlBuilder(e,t){return $u(e,t,"mathord")},mathmlBuilder(e,t){var r=new Be("mi",[br(e.text,e.mode,t)]),n=gl(e,t)||"italic";return n!==k2[r.type]&&r.setAttribute("mathvariant",n),r}}),da({type:"textord",htmlBuilder(e,t){return $u(e,t,"textord")},mathmlBuilder(e,t){var r=br(e.text,e.mode,t),n=gl(e,t)||"normal",i;return e.mode==="text"?i=new Be("mtext",[r]):/[0-9]/.test(e.text)?i=new Be("mn",[r]):e.text==="\\prime"?i=new Be("mo",[r]):i=new Be("mi",[r]),n!==k2[i.type]&&i.setAttribute("mathvariant",n),i}});var Nl={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},_l={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};da({type:"spacing",htmlBuilder(e,t){if(_l.hasOwnProperty(e.text)){var r=_l[e.text].className||"";if(e.mode==="text"){var n=$u(e,t,"textord");return n.classes.push(r),n}else return Ee(["mspace",r],[sl(e.text,e.mode,t)],t)}else{if(Nl.hasOwnProperty(e.text))return Ee(["mspace",Nl[e.text]],[],t);throw new Te('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(_l.hasOwnProperty(e.text))r=new Be("mtext",[new n0(" ")]);else{if(Nl.hasOwnProperty(e.text))return new Be("mspace");throw new Te('Unknown type of space "'+e.text+'"')}return r}});var C2=()=>{var e=new Be("mtd",[]);return e.setAttribute("width","50%"),e};da({type:"tag",mathmlBuilder(e,t){var r=new Be("mtable",[new Be("mtr",[C2(),new Be("mtd",[zn(e.body,t)]),C2(),new Be("mtd",[zn(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var S2={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},E2={"\\textbf":"textbf","\\textmd":"textmd"},V5={"\\textit":"textit","\\textup":"textup"},F2=(e,t)=>{var r=e.font;if(r){if(S2[r])return t.withTextFontFamily(S2[r]);if(E2[r])return t.withTextFontWeight(E2[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(V5[r])};Pe({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"text",mode:r.mode,body:r0(i),font:n}},htmlBuilder(e,t){var r=F2(e,t),n=d0(e.body,r,!0);return Ee(["mord","text"],n,r)},mathmlBuilder(e,t){var r=F2(e,t);return zn(e.body,r)}}),Pe({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=gt(e.body,t),n=za("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=pt({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]});return Ee(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new Be("mo",[new n0("‾")]);r.setAttribute("stretchy","true");var n=new Be("munder",[Ct(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),Pe({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=gt(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return pt({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new Be("mpadded",[Ct(e.body,t)],["vcenter"])}}),Pe({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Te("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=T2(e),n=[],i=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),n.push(P0(s,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Ee(["mord","text"].concat(i.sizingClasses(t)),Sd(n),i)},mathmlBuilder(e,t){var r=new n0(T2(e)),n=new Be("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var T2=e=>e.body.replace(/ /g,e.star?"␣":" "),On=Bd,B2=`[ \r
|
|
262
|
+
]`,H5="\\\\[a-zA-Z@]+",q5="\\\\[^\uD800-\uDFFF]",j5="("+H5+")"+B2+"*",$5=`\\\\(
|
|
263
|
+
|[ \r ]+
|
|
264
|
+
?)[ \r ]*`,zl="[̀-ͯ]",U5=new RegExp(zl+"+$"),W5="("+B2+"+)|"+($5+"|")+"([!-\\[\\]-‧-豈-]"+(zl+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(zl+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+j5)+("|"+q5+")");class M2{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(W5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Er("EOF",new X0(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new Te("Unexpected character: '"+t[r]+"'",new Er(t[r],new X0(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(`
|
|
265
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.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=a+1,this.lex()}return new Er(i,new X0(this,r,this.tokenRegex.lastIndex))}}class G5{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Te("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var X5=u2;O("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),O("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),O("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),O("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),O("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),O("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),O("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var N2={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};O("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Te("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=N2[t.text],n==null||n>=r)throw new Te("Invalid base-"+r+" digit "+t.text);for(var i;(i=N2[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var Il=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new Te("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new Te("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new Te("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var c=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var f="",p=e.expandNextToken();p.text!=="]"&&p.text!=="EOF";)f+=p.text,p=e.expandNextToken();if(!f.match(/^\s*[0-9]+\s*$/))throw new Te("Invalid number of arguments: "+f);c=parseInt(f),i=e.consumeArg().tokens}return s&&n||e.macros.set(a,{tokens:i,numArgs:c}),""};O("\\newcommand",e=>Il(e,!1,!0,!1)),O("\\renewcommand",e=>Il(e,!0,!1,!1)),O("\\providecommand",e=>Il(e,!0,!0,!0)),O("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""}),O("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""}),O("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),On[r],Lt.math[r],Lt.text[r]),""}),O("\\bgroup","{"),O("\\egroup","}"),O("~","\\nobreakspace"),O("\\lq","`"),O("\\rq","'"),O("\\aa","\\r a"),O("\\AA","\\r A"),O("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),O("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),O("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),O("ℬ","\\mathscr{B}"),O("ℰ","\\mathscr{E}"),O("ℱ","\\mathscr{F}"),O("ℋ","\\mathscr{H}"),O("ℐ","\\mathscr{I}"),O("ℒ","\\mathscr{L}"),O("ℳ","\\mathscr{M}"),O("ℛ","\\mathscr{R}"),O("ℭ","\\mathfrak{C}"),O("ℌ","\\mathfrak{H}"),O("ℨ","\\mathfrak{Z}"),O("\\Bbbk","\\Bbb{k}"),O("\\llap","\\mathllap{\\textrm{#1}}"),O("\\rlap","\\mathrlap{\\textrm{#1}}"),O("\\clap","\\mathclap{\\textrm{#1}}"),O("\\mathstrut","\\vphantom{(}"),O("\\underbar","\\underline{\\text{#1}}"),O("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),O("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),O("\\ne","\\neq"),O("≠","\\neq"),O("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),O("∉","\\notin"),O("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),O("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),O("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),O("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),O("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),O("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),O("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),O("⟂","\\perp"),O("‼","\\mathclose{!\\mkern-0.8mu!}"),O("∌","\\notni"),O("⌜","\\ulcorner"),O("⌝","\\urcorner"),O("⌞","\\llcorner"),O("⌟","\\lrcorner"),O("©","\\copyright"),O("®","\\textregistered"),O("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),O("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),O("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),O("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),O("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),O("⋮","\\vdots"),O("\\varGamma","\\mathit{\\Gamma}"),O("\\varDelta","\\mathit{\\Delta}"),O("\\varTheta","\\mathit{\\Theta}"),O("\\varLambda","\\mathit{\\Lambda}"),O("\\varXi","\\mathit{\\Xi}"),O("\\varPi","\\mathit{\\Pi}"),O("\\varSigma","\\mathit{\\Sigma}"),O("\\varUpsilon","\\mathit{\\Upsilon}"),O("\\varPhi","\\mathit{\\Phi}"),O("\\varPsi","\\mathit{\\Psi}"),O("\\varOmega","\\mathit{\\Omega}"),O("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),O("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),O("\\boxed","\\fbox{$\\displaystyle{#1}$}"),O("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),O("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),O("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),O("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),O("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var _2={",":"\\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"},Y5=new Set(["bin","rel"]);O("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in _2?t=_2[r]:(r.slice(0,4)==="\\not"||r in Lt.math&&Y5.has(Lt.math[r].group))&&(t="\\dotsb"),t});var Ol={")":!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};O("\\dotso",function(e){var t=e.future().text;return t in Ol?"\\ldots\\,":"\\ldots"}),O("\\dotsc",function(e){var t=e.future().text;return t in Ol&&t!==","?"\\ldots\\,":"\\ldots"}),O("\\cdots",function(e){var t=e.future().text;return t in Ol?"\\@cdots\\,":"\\@cdots"}),O("\\dotsb","\\cdots"),O("\\dotsm","\\cdots"),O("\\dotsi","\\!\\cdots"),O("\\dotsx","\\ldots\\,"),O("\\DOTSI","\\relax"),O("\\DOTSB","\\relax"),O("\\DOTSX","\\relax"),O("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),O("\\,","\\tmspace+{3mu}{.1667em}"),O("\\thinspace","\\,"),O("\\>","\\mskip{4mu}"),O("\\:","\\tmspace+{4mu}{.2222em}"),O("\\medspace","\\:"),O("\\;","\\tmspace+{5mu}{.2777em}"),O("\\thickspace","\\;"),O("\\!","\\tmspace-{3mu}{.1667em}"),O("\\negthinspace","\\!"),O("\\negmedspace","\\tmspace-{4mu}{.2222em}"),O("\\negthickspace","\\tmspace-{5mu}{.277em}"),O("\\enspace","\\kern.5em "),O("\\enskip","\\hskip.5em\\relax"),O("\\quad","\\hskip1em\\relax"),O("\\qquad","\\hskip2em\\relax"),O("\\tag","\\@ifstar\\tag@literal\\tag@paren"),O("\\tag@paren","\\tag@literal{({#1})}"),O("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Te("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),O("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),O("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),O("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),O("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),O("\\newline","\\\\\\relax"),O("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var z2=_e(Wr["Main-Regular"][84][1]-.7*Wr["Main-Regular"][65][1]);O("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+z2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),O("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+z2+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),O("\\hspace","\\@ifstar\\@hspacer\\@hspace"),O("\\@hspace","\\hskip #1\\relax"),O("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),O("\\ordinarycolon",":"),O("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),O("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),O("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),O("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),O("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),O("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),O("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),O("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),O("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),O("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),O("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),O("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),O("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),O("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),O("∷","\\dblcolon"),O("∹","\\eqcolon"),O("≔","\\coloneqq"),O("≕","\\eqqcolon"),O("⩴","\\Coloneqq"),O("\\ratio","\\vcentcolon"),O("\\coloncolon","\\dblcolon"),O("\\colonequals","\\coloneqq"),O("\\coloncolonequals","\\Coloneqq"),O("\\equalscolon","\\eqqcolon"),O("\\equalscoloncolon","\\Eqqcolon"),O("\\colonminus","\\coloneq"),O("\\coloncolonminus","\\Coloneq"),O("\\minuscolon","\\eqcolon"),O("\\minuscoloncolon","\\Eqcolon"),O("\\coloncolonapprox","\\Colonapprox"),O("\\coloncolonsim","\\Colonsim"),O("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),O("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),O("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),O("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),O("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),O("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),O("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),O("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),O("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),O("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),O("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),O("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),O("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),O("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),O("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),O("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),O("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),O("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),O("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),O("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),O("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),O("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),O("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),O("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),O("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),O("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),O("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),O("\\imath","\\html@mathml{\\@imath}{ı}"),O("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),O("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),O("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),O("⟦","\\llbracket"),O("⟧","\\rrbracket"),O("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),O("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),O("⦃","\\lBrace"),O("⦄","\\rBrace"),O("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),O("⦵","\\minuso"),O("\\darr","\\downarrow"),O("\\dArr","\\Downarrow"),O("\\Darr","\\Downarrow"),O("\\lang","\\langle"),O("\\rang","\\rangle"),O("\\uarr","\\uparrow"),O("\\uArr","\\Uparrow"),O("\\Uarr","\\Uparrow"),O("\\N","\\mathbb{N}"),O("\\R","\\mathbb{R}"),O("\\Z","\\mathbb{Z}"),O("\\alef","\\aleph"),O("\\alefsym","\\aleph"),O("\\Alpha","\\mathrm{A}"),O("\\Beta","\\mathrm{B}"),O("\\bull","\\bullet"),O("\\Chi","\\mathrm{X}"),O("\\clubs","\\clubsuit"),O("\\cnums","\\mathbb{C}"),O("\\Complex","\\mathbb{C}"),O("\\Dagger","\\ddagger"),O("\\diamonds","\\diamondsuit"),O("\\empty","\\emptyset"),O("\\Epsilon","\\mathrm{E}"),O("\\Eta","\\mathrm{H}"),O("\\exist","\\exists"),O("\\harr","\\leftrightarrow"),O("\\hArr","\\Leftrightarrow"),O("\\Harr","\\Leftrightarrow"),O("\\hearts","\\heartsuit"),O("\\image","\\Im"),O("\\infin","\\infty"),O("\\Iota","\\mathrm{I}"),O("\\isin","\\in"),O("\\Kappa","\\mathrm{K}"),O("\\larr","\\leftarrow"),O("\\lArr","\\Leftarrow"),O("\\Larr","\\Leftarrow"),O("\\lrarr","\\leftrightarrow"),O("\\lrArr","\\Leftrightarrow"),O("\\Lrarr","\\Leftrightarrow"),O("\\Mu","\\mathrm{M}"),O("\\natnums","\\mathbb{N}"),O("\\Nu","\\mathrm{N}"),O("\\Omicron","\\mathrm{O}"),O("\\plusmn","\\pm"),O("\\rarr","\\rightarrow"),O("\\rArr","\\Rightarrow"),O("\\Rarr","\\Rightarrow"),O("\\real","\\Re"),O("\\reals","\\mathbb{R}"),O("\\Reals","\\mathbb{R}"),O("\\Rho","\\mathrm{P}"),O("\\sdot","\\cdot"),O("\\sect","\\S"),O("\\spades","\\spadesuit"),O("\\sub","\\subset"),O("\\sube","\\subseteq"),O("\\supe","\\supseteq"),O("\\Tau","\\mathrm{T}"),O("\\thetasym","\\vartheta"),O("\\weierp","\\wp"),O("\\Zeta","\\mathrm{Z}"),O("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),O("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),O("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),O("\\bra","\\mathinner{\\langle{#1}|}"),O("\\ket","\\mathinner{|{#1}\\rangle}"),O("\\braket","\\mathinner{\\langle{#1}\\rangle}"),O("\\Bra","\\left\\langle#1\\right|"),O("\\Ket","\\left|#1\\right\\rangle");var I2=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),c=t.macros.get("\\|");t.macros.beginGroup();var f=m=>w=>{e&&(w.macros.set("|",s),i.length&&w.macros.set("\\|",c));var k=m;if(!m&&i.length){var C=w.future();C.text==="|"&&(w.popToken(),k=!0)}return{tokens:k?i:n,numArgs:0}};t.macros.set("|",f(!1)),i.length&&t.macros.set("\\|",f(!0));var p=t.consumeArg().tokens,g=t.expandTokens([...a,...p,...r]);return t.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};O("\\bra@ket",I2(!1)),O("\\bra@set",I2(!0)),O("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),O("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),O("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),O("\\angln","{\\angl n}"),O("\\blue","\\textcolor{##6495ed}{#1}"),O("\\orange","\\textcolor{##ffa500}{#1}"),O("\\pink","\\textcolor{##ff00af}{#1}"),O("\\red","\\textcolor{##df0030}{#1}"),O("\\green","\\textcolor{##28ae7b}{#1}"),O("\\gray","\\textcolor{gray}{#1}"),O("\\purple","\\textcolor{##9d38bd}{#1}"),O("\\blueA","\\textcolor{##ccfaff}{#1}"),O("\\blueB","\\textcolor{##80f6ff}{#1}"),O("\\blueC","\\textcolor{##63d9ea}{#1}"),O("\\blueD","\\textcolor{##11accd}{#1}"),O("\\blueE","\\textcolor{##0c7f99}{#1}"),O("\\tealA","\\textcolor{##94fff5}{#1}"),O("\\tealB","\\textcolor{##26edd5}{#1}"),O("\\tealC","\\textcolor{##01d1c1}{#1}"),O("\\tealD","\\textcolor{##01a995}{#1}"),O("\\tealE","\\textcolor{##208170}{#1}"),O("\\greenA","\\textcolor{##b6ffb0}{#1}"),O("\\greenB","\\textcolor{##8af281}{#1}"),O("\\greenC","\\textcolor{##74cf70}{#1}"),O("\\greenD","\\textcolor{##1fab54}{#1}"),O("\\greenE","\\textcolor{##0d923f}{#1}"),O("\\goldA","\\textcolor{##ffd0a9}{#1}"),O("\\goldB","\\textcolor{##ffbb71}{#1}"),O("\\goldC","\\textcolor{##ff9c39}{#1}"),O("\\goldD","\\textcolor{##e07d10}{#1}"),O("\\goldE","\\textcolor{##a75a05}{#1}"),O("\\redA","\\textcolor{##fca9a9}{#1}"),O("\\redB","\\textcolor{##ff8482}{#1}"),O("\\redC","\\textcolor{##f9685d}{#1}"),O("\\redD","\\textcolor{##e84d39}{#1}"),O("\\redE","\\textcolor{##bc2612}{#1}"),O("\\maroonA","\\textcolor{##ffbde0}{#1}"),O("\\maroonB","\\textcolor{##ff92c6}{#1}"),O("\\maroonC","\\textcolor{##ed5fa6}{#1}"),O("\\maroonD","\\textcolor{##ca337c}{#1}"),O("\\maroonE","\\textcolor{##9e034e}{#1}"),O("\\purpleA","\\textcolor{##ddd7ff}{#1}"),O("\\purpleB","\\textcolor{##c6b9fc}{#1}"),O("\\purpleC","\\textcolor{##aa87ff}{#1}"),O("\\purpleD","\\textcolor{##7854ab}{#1}"),O("\\purpleE","\\textcolor{##543b78}{#1}"),O("\\mintA","\\textcolor{##f5f9e8}{#1}"),O("\\mintB","\\textcolor{##edf2df}{#1}"),O("\\mintC","\\textcolor{##e0e5cc}{#1}"),O("\\grayA","\\textcolor{##f6f7f7}{#1}"),O("\\grayB","\\textcolor{##f0f1f2}{#1}"),O("\\grayC","\\textcolor{##e3e5e6}{#1}"),O("\\grayD","\\textcolor{##d6d8da}{#1}"),O("\\grayE","\\textcolor{##babec2}{#1}"),O("\\grayF","\\textcolor{##888d93}{#1}"),O("\\grayG","\\textcolor{##626569}{#1}"),O("\\grayH","\\textcolor{##3b3e40}{#1}"),O("\\grayI","\\textcolor{##21242c}{#1}"),O("\\kaBlue","\\textcolor{##314453}{#1}"),O("\\kaGreen","\\textcolor{##71B307}{#1}");var O2={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Z5{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new G5(X5,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new M2(t,this.settings)}switchMode(t){this.mode=t}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(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new Er("EOF",n.loc)),this.pushTokens(i),new Er("",X0.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,c=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Te("Extra }",a)}else if(a.text==="EOF")throw new Te("Unexpected end of input in a macro argument, expected '"+(t&&n?t[c]:"}")+"'",a);if(t&&n)if((s===0||s===1&&t[c]==="{")&&a.text===t[c]){if(++c,c===t.length){r.splice(-c,c);break}}else c=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Te("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new Te("Use of the macro doesn't match its definition",a)}}for(var s=[],c=0;c<t;c++)s.push(this.consumeArg(r&&r[c+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Te("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new Te("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var c=a.length-1;c>=0;--c){var f=a[c];if(f.text==="#"){if(c===0)throw new Te("Incomplete placeholder at end of macro body",f);if(f=a[--c],f.text==="#")a.splice(c+1,1);else if(/^[1-9]$/.test(f.text))a.splice(c,2,...s[+f.text-1]);else throw new Te("Not a valid argument number",f)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Er(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.includes("#"))for(var s=i.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var c=new M2(i,this.settings),f=[],p=c.lex();p.text!=="EOF";)f.push(p),p=c.lex();f.reverse();var g={tokens:f,numArgs:a};return g}return i}isDefined(t){return this.macros.has(t)||On.hasOwnProperty(t)||Lt.math.hasOwnProperty(t)||Lt.text.hasOwnProperty(t)||O2.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:On.hasOwnProperty(t)&&!On[t].primitive}}var L2=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,oo=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Ll={"́":{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"}},R2={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class so{constructor(t,r){this.mode="math",this.gullet=new Z5(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Te("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Er("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(so.endOfExpression.has(i.text)||r&&i.text===r||t&&On[i.text]&&On[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var a=t[i];if(a.type==="infix"){if(r!==-1)throw new Te("only one infix operator per group",a.token);r=i,n=a.replaceWith}}if(r!==-1&&n){var s,c,f=t.slice(0,r),p=t.slice(r+1);f.length===1&&f[0].type==="ordgroup"?s=f[0]:s={type:"ordgroup",mode:this.mode,body:f},p.length===1&&p[0].type==="ordgroup"?c=p[0]:c={type:"ordgroup",mode:this.mode,body:p};var g;return n==="\\\\abovefrac"?g=this.callFunction(n,[s,t[r],c],[]):g=this.callFunction(n,[s,c],[]),[g]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var a;i=this.parseGroup(t)}while(((a=i)==null?void 0:a.type)==="internal");if(!i)throw new Te("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new Te("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new Te("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new Te("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new Te("Double superscript",a);var c={type:"textord",mode:this.mode,text:"\\prime"},f=[c];for(this.consume();this.fetch().text==="'";)f.push(c),this.consume();this.fetch().text==="^"&&f.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:f}}else if(oo[a.text]){var p=L2.test(a.text),g=[];for(g.push(new Er(oo[a.text])),this.consume();;){var m=this.fetch().text;if(!oo[m]||L2.test(m)!==p)break;g.unshift(new Er(oo[m])),this.consume()}var w=this.subparse(g);p?i={type:"ordgroup",mode:"math",body:w}:n={type:"ordgroup",mode:"math",body:w}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(t,r){var n=this.fetch(),i=n.text,a=On[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new Te("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new Te("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new Te("Can't use function '"+i+"' in math mode",n);var{args:s,optArgs:c}=this.parseArguments(i,a);return this.callFunction(i,s,c,n,t)}callFunction(t,r,n,i,a){var s={funcName:t,parser:this,token:i,breakOnTokenText:a},c=On[t];if(c&&c.handler)return c.handler(s,r,n);throw new Te("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<n;s++){var c=r.argTypes&&r.argTypes[s],f=s<r.numOptionalArgs;("primitive"in r&&r.primitive&&c==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(c="primitive");var p=this.parseGroupOfType("argument to '"+t+"'",c,f);if(f)a.push(p);else if(p!=null)i.push(p);else throw new Te("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new Te("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new Te("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Te("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,a="",s;(s=this.fetch()).text!=="EOF"&&t.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new Te("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new Te("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new Te("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!pd(a))throw new Te("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),s}parseGroup(t,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var c=this.parseExpression(!1,s),f=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:X0.range(n,f),body:c,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&i[0]==="\\"&&!O2.hasOwnProperty(i)){if(this.settings.throwOnError)throw new Te("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var a=i.text,s=t[n+1];if(!(!s||s.type!=="textord")){if(a==="-"&&s.text==="-"){var c=t[n+2];n+1<r&&c&&c.type==="textord"&&c.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:X0.range(i,c),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:X0.range(i,s),text:"--"}),r-=1)}(a==="'"||a==="`")&&s.text===a&&(t.splice(n,2,{type:"textord",mode:"text",loc:X0.range(i,s),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Te(`\\verb assertion failed --
|
|
266
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}R2.hasOwnProperty(r[0])&&!Lt[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=R2[r[0]]+r.slice(1));var a=U5.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Lt[this.mode][r]){this.settings.strict&&this.mode==="math"&&ul.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var c=Lt[this.mode][r].group,f=X0.range(t),p;if(W6.hasOwnProperty(c)){var g=c;p={type:"atom",mode:this.mode,family:g,loc:f,text:r}}else p={type:c,mode:this.mode,loc:f,text:r};s=p}else if(r.charCodeAt(0)>=128)this.settings.strict&&(hd(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:X0.range(t),text:r};else return null;if(this.consume(),a)for(var m=0;m<a[0].length;m++){var w=a[0][m];if(!Ll[w])throw new Te("Unknown accent ' "+w+"'",t);var k=Ll[w][this.mode]||Ll[w].text;if(!k)throw new Te("Accent "+w+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:X0.range(t),label:k,isStretchy:!1,isShifty:!0,base:s}}return s}}so.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var Rl=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new so(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new Te("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Er("\\df@tag")])}]}return i},P2=function(t,r,n){r.textContent="";var i=Pl(t,n).toNode();r.appendChild(i)};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."),P2=function(){throw new Te("KaTeX doesn't work in quirks mode.")});var K5=function(t,r){var n=Pl(t,r).toMarkup();return n},Q5=function(t,r){var n=new Zs(r);return Rl(t,n)},V2=function(t,r,n){if(n.throwOnError||!(t instanceof Te))throw t;var i=Ee(["katex-error"],[new er(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},Pl=function(t,r){var n=new Zs(r);try{var i=Rl(t,n);return s5(i,t,n)}catch(a){return V2(a,t,n)}},J5=function(t,r){var n=new Zs(r);try{var i=Rl(t,n);return l5(i,t,n)}catch(a){return V2(a,t,n)}},e7="0.16.44",t7={Span:Na,Anchor:Lu,SymbolNode:er,SvgNode:hn,PathNode:Mn,LineNode:el},r7={version:e7,render:P2,renderToString:K5,ParseError:Te,SETTINGS_SCHEMA:Ys,__parse:Q5,__renderToDomTree:Pl,__renderToHTMLTree:J5,__setFontMetrics:$6,__defineSymbol:v,__defineFunction:Pe,__defineMacro:O,__domTree:t7};const H2={};function n7(e){let t=H2[e];if(t)return t;t=H2[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);t.push(n)}for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}function La(e,t){typeof t!="string"&&(t=La.defaultChars);const r=n7(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let i="";for(let a=0,s=n.length;a<s;a+=3){const c=parseInt(n.slice(a+1,a+3),16);if(c<128){i+=r[c];continue}if((c&224)===192&&a+3<s){const f=parseInt(n.slice(a+4,a+6),16);if((f&192)===128){const p=c<<6&1984|f&63;p<128?i+="��":i+=String.fromCharCode(p),a+=3;continue}}if((c&240)===224&&a+6<s){const f=parseInt(n.slice(a+4,a+6),16),p=parseInt(n.slice(a+7,a+9),16);if((f&192)===128&&(p&192)===128){const g=c<<12&61440|f<<6&4032|p&63;g<2048||g>=55296&&g<=57343?i+="���":i+=String.fromCharCode(g),a+=6;continue}}if((c&248)===240&&a+9<s){const f=parseInt(n.slice(a+4,a+6),16),p=parseInt(n.slice(a+7,a+9),16),g=parseInt(n.slice(a+10,a+12),16);if((f&192)===128&&(p&192)===128&&(g&192)===128){let m=c<<18&1835008|f<<12&258048|p<<6&4032|g&63;m<65536||m>1114111?i+="����":(m-=65536,i+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),a+=9;continue}}i+="�"}return i})}La.defaultChars=";/?:@&=+$,#",La.componentChars="";const q2={};function a7(e){let t=q2[e];if(t)return t;t=q2[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}function Fi(e,t,r){typeof t!="string"&&(r=t,t=Fi.defaultChars),typeof r>"u"&&(r=!0);const n=a7(t);let i="";for(let a=0,s=e.length;a<s;a++){const c=e.charCodeAt(a);if(r&&c===37&&a+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3))){i+=e.slice(a,a+3),a+=2;continue}if(c<128){i+=n[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&a+1<s){const f=e.charCodeAt(a+1);if(f>=56320&&f<=57343){i+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[a])}return i}Fi.defaultChars=";/?:@&=+$,-_.!~*'()#",Fi.componentChars="-_.!~*'()";function Vl(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 lo(){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 i7=/^([a-z0-9.+-]+:)/i,u7=/:[0-9]*$/,o7=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s7=["<",">",'"',"`"," ","\r",`
|
|
267
|
+
`," "],l7=["{","}","|","\\","^","`"].concat(s7),c7=["'"].concat(l7),j2=["%","/","?",";","#"].concat(c7),$2=["/","?","#"],d7=255,U2=/^[+a-z0-9A-Z_-]{0,63}$/,f7=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,W2={javascript:!0,"javascript:":!0},G2={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Hl(e,t){if(e&&e instanceof lo)return e;const r=new lo;return r.parse(e,t),r}lo.prototype.parse=function(e,t){let r,n,i,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const p=o7.exec(a);if(p)return this.pathname=p[1],p[2]&&(this.search=p[2]),this}let s=i7.exec(a);if(s&&(s=s[0],r=s.toLowerCase(),this.protocol=s,a=a.substr(s.length)),(t||s||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(s&&W2[s])&&(a=a.substr(2),this.slashes=!0)),!W2[s]&&(i||s&&!G2[s])){let p=-1;for(let C=0;C<$2.length;C++)n=a.indexOf($2[C]),n!==-1&&(p===-1||n<p)&&(p=n);let g,m;p===-1?m=a.lastIndexOf("@"):m=a.lastIndexOf("@",p),m!==-1&&(g=a.slice(0,m),a=a.slice(m+1),this.auth=g),p=-1;for(let C=0;C<j2.length;C++)n=a.indexOf(j2[C]),n!==-1&&(p===-1||n<p)&&(p=n);p===-1&&(p=a.length),a[p-1]===":"&&p--;const w=a.slice(0,p);a=a.slice(p),this.parseHost(w),this.hostname=this.hostname||"";const k=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!k){const C=this.hostname.split(/\./);for(let B=0,_=C.length;B<_;B++){const T=C[B];if(T&&!T.match(U2)){let S="";for(let F=0,z=T.length;F<z;F++)T.charCodeAt(F)>127?S+="x":S+=T[F];if(!S.match(U2)){const F=C.slice(0,B),z=C.slice(B+1),R=T.match(f7);R&&(F.push(R[1]),z.unshift(R[2])),z.length&&(a=z.join(".")+a),this.hostname=F.join(".");break}}}}this.hostname.length>d7&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const c=a.indexOf("#");c!==-1&&(this.hash=a.substr(c),a=a.slice(0,c));const f=a.indexOf("?");return f!==-1&&(this.search=a.substr(f),a=a.slice(0,f)),a&&(this.pathname=a),G2[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},lo.prototype.parseHost=function(e){let t=u7.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 h7=Object.freeze(Object.defineProperty({__proto__:null,decode:La,encode:Fi,format:Vl,parse:Hl},Symbol.toStringTag,{value:"Module"})),X2=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Y2=/[\0-\x1F\x7F-\x9F]/,m7=/[\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]/,ql=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Z2=/[\$\+<->\^`\|~\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]/,K2=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,p7=Object.freeze(Object.defineProperty({__proto__:null,Any:X2,Cc:Y2,Cf:m7,P:ql,S:Z2,Z:K2},Symbol.toStringTag,{value:"Module"})),g7=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))),b7=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var jl;const y7=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]]),v7=(jl=String.fromCodePoint)!==null&&jl!==void 0?jl: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 w7(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=y7.get(e))!==null&&t!==void 0?t:e}var y0;(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"})(y0||(y0={}));const x7=32;var Ln;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ln||(Ln={}));function $l(e){return e>=y0.ZERO&&e<=y0.NINE}function A7(e){return e>=y0.UPPER_A&&e<=y0.UPPER_F||e>=y0.LOWER_A&&e<=y0.LOWER_F}function D7(e){return e>=y0.UPPER_A&&e<=y0.UPPER_Z||e>=y0.LOWER_A&&e<=y0.LOWER_Z||$l(e)}function k7(e){return e===y0.EQUALS||D7(e)}var v0;(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"})(v0||(v0={}));var Rn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Rn||(Rn={}));class C7{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=v0.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Rn.Strict}startEntity(t){this.decodeMode=t,this.state=v0.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case v0.EntityStart:return t.charCodeAt(r)===y0.NUM?(this.state=v0.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=v0.NamedEntity,this.stateNamedEntity(t,r));case v0.NumericStart:return this.stateNumericStart(t,r);case v0.NumericDecimal:return this.stateNumericDecimal(t,r);case v0.NumericHex:return this.stateNumericHex(t,r);case v0.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|x7)===y0.LOWER_X?(this.state=v0.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=v0.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){const a=n-r;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if($l(i)||A7(i))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const i=t.charCodeAt(r);if($l(i))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===y0.SEMI)this.consumed+=1;else if(this.decodeMode===Rn.Strict)return 0;return this.emitCodePoint(w7(this.result),this.consumed),this.errors&&(t!==y0.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let i=n[this.treeIndex],a=(i&Ln.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=S7(n,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Rn.Attribute&&(a===0||k7(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],a=(i&Ln.VALUE_LENGTH)>>14,a!==0){if(s===y0.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Rn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,i=(n[r]&Ln.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~Ln.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case v0.NamedEntity:return this.result!==0&&(this.decodeMode!==Rn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case v0.NumericDecimal:return this.emitNumericEntity(0,2);case v0.NumericHex:return this.emitNumericEntity(0,3);case v0.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case v0.EntityStart:return 0}}}function Q2(e){let t="";const r=new C7(e,n=>t+=v7(n));return function(i,a){let s=0,c=0;for(;(c=i.indexOf("&",c))>=0;){t+=i.slice(s,c),r.startEntity(a);const p=r.write(i,c+1);if(p<0){s=c+r.end();break}s=c+p,c=p===0?s+1:s}const f=t+i.slice(s);return t="",f}}function S7(e,t,r,n){const i=(t&Ln.BRANCH_LENGTH)>>7,a=t&Ln.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const f=n-a;return f<0||f>=i?-1:e[r+f]-1}let s=r,c=s+i-1;for(;s<=c;){const f=s+c>>>1,p=e[f];if(p<n)s=f+1;else if(p>n)c=f-1;else return e[f+i]}return-1}const E7=Q2(g7);Q2(b7);function J2(e,t=Rn.Legacy){return E7(e,t)}function F7(e){return Object.prototype.toString.call(e)}function Ul(e){return F7(e)==="[object String]"}const T7=Object.prototype.hasOwnProperty;function B7(e,t){return T7.call(e,t)}function co(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function e4(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function Wl(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 fo(e){if(e>65535){e-=65536;const t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const t4=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,M7=/&([a-z#][a-z0-9]{1,31});/gi,N7=new RegExp(t4.source+"|"+M7.source,"gi"),_7=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function z7(e,t){if(t.charCodeAt(0)===35&&_7.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Wl(n)?fo(n):e}const r=J2(e);return r!==e?r:e}function I7(e){return e.indexOf("\\")<0?e:e.replace(t4,"$1")}function Ra(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(N7,function(t,r,n){return r||z7(t,n)})}const O7=/[&<>"]/,L7=/[&<>"]/g,R7={"&":"&","<":"<",">":">",'"':"""};function P7(e){return R7[e]}function Pn(e){return O7.test(e)?e.replace(L7,P7):e}const V7=/[.?*+^$[\]\\(){}|-]/g;function H7(e){return e.replace(V7,"\\$&")}function Et(e){switch(e){case 9:case 32:return!0}return!1}function Ti(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 Bi(e){return ql.test(e)||Z2.test(e)}function Mi(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 ho(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const q7=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:e4,assign:co,escapeHtml:Pn,escapeRE:H7,fromCodePoint:fo,has:B7,isMdAsciiPunct:Mi,isPunctChar:Bi,isSpace:Et,isString:Ul,isValidEntityCode:Wl,isWhiteSpace:Ti,lib:{mdurl:h7,ucmicro:p7},normalizeReference:ho,unescapeAll:Ra,unescapeMd:I7},Symbol.toStringTag,{value:"Module"}));function j7(e,t,r){let n,i,a,s;const c=e.posMax,f=e.pos;for(e.pos=t+1,n=1;e.pos<c;){if(a=e.src.charCodeAt(e.pos),a===93&&(n--,n===0)){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),a===91){if(s===e.pos-1)n++;else if(r)return e.pos=f,-1}}let p=-1;return i&&(p=e.pos),e.pos=f,p}function $7(e,t,r){let n,i=t;const a={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<r;){if(n=e.charCodeAt(i),n===10||n===60)return a;if(n===62)return a.pos=i+1,a.str=Ra(e.slice(t+1,i)),a.ok=!0,a;if(n===92&&i+1<r){i+=2;continue}i++}return a}let s=0;for(;i<r&&(n=e.charCodeAt(i),!(n===32||n<32||n===127));){if(n===92&&i+1<r){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(n===40&&(s++,s>32))return a;if(n===41){if(s===0)break;s--}i++}return t===i||s!==0||(a.str=Ra(e.slice(t,i)),a.pos=i,a.ok=!0),a}function U7(e,t,r,n){let i,a=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)s.str=n.str,s.marker=n.marker;else{if(a>=r)return s;let c=e.charCodeAt(a);if(c!==34&&c!==39&&c!==40)return s;t++,a++,c===40&&(c=41),s.marker=c}for(;a<r;){if(i=e.charCodeAt(a),i===s.marker)return s.pos=a+1,s.str+=Ra(e.slice(t,a)),s.ok=!0,s;if(i===40&&s.marker===41)return s;i===92&&a+1<r&&a++,a++}return s.can_continue=!0,s.str+=Ra(e.slice(t,a)),s}const W7=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:$7,parseLinkLabel:j7,parseLinkTitle:U7},Symbol.toStringTag,{value:"Module"})),Zr={};Zr.code_inline=function(e,t,r,n,i){const a=e[t];return"<code"+i.renderAttrs(a)+">"+Pn(a.content)+"</code>"},Zr.code_block=function(e,t,r,n,i){const a=e[t];return"<pre"+i.renderAttrs(a)+"><code>"+Pn(e[t].content)+`</code></pre>
|
|
268
|
+
`},Zr.fence=function(e,t,r,n,i){const a=e[t],s=a.info?Ra(a.info).trim():"";let c="",f="";if(s){const g=s.split(/(\s+)/g);c=g[0],f=g.slice(2).join("")}let p;if(r.highlight?p=r.highlight(a.content,c,f)||Pn(a.content):p=Pn(a.content),p.indexOf("<pre")===0)return p+`
|
|
269
|
+
`;if(s){const g=a.attrIndex("class"),m=a.attrs?a.attrs.slice():[];g<0?m.push(["class",r.langPrefix+c]):(m[g]=m[g].slice(),m[g][1]+=" "+r.langPrefix+c);const w={attrs:m};return`<pre><code${i.renderAttrs(w)}>${p}</code></pre>
|
|
270
|
+
`}return`<pre><code${i.renderAttrs(a)}>${p}</code></pre>
|
|
271
|
+
`},Zr.image=function(e,t,r,n,i){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(e,t,r)},Zr.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
|
|
7
272
|
`:`<br>
|
|
8
|
-
`},
|
|
273
|
+
`},Zr.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
|
|
9
274
|
`:`<br>
|
|
10
275
|
`:`
|
|
11
|
-
`},
|
|
12
|
-
`),
|
|
13
|
-
`:">",
|
|
14
|
-
`;break}return
|
|
15
|
-
`),t=t.replace(qd,"�"),e.src=t}function Yd(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 Kd(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function Qd(e){return/^<a[>\s]/i.test(e)}function Jd(e){return/^<\/a\s*>/i.test(e)}function ef(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 u=t[n].children,o=0;for(let a=u.length-1;a>=0;a--){const s=u[a];if(s.type==="link_close"){for(a--;u[a].level!==s.level&&u[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Qd(s.content)&&o>0&&o--,Jd(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let d=e.md.linkify.match(l);const f=[];let c=s.level,h=0;d.length>0&&d[0].index===0&&a>0&&u[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;p<d.length;p++){const m=d[p].url,x=e.md.normalizeLink(m);if(!e.md.validateLink(x))continue;let v=d[p].text;d[p].schema?d[p].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,"");const y=d[p].index;if(y>h){const A=new e.Token("text","",0);A.content=l.slice(h,y),A.level=c,f.push(A)}const b=new e.Token("link_open","a",1);b.attrs=[["href",x]],b.level=c++,b.markup="linkify",b.info="auto",f.push(b);const g=new e.Token("text","",0);g.content=v,g.level=c,f.push(g);const w=new e.Token("link_close","a",-1);w.level=--c,w.markup="linkify",w.info="auto",f.push(w),h=d[p].lastIndex}if(h<l.length){const p=new e.Token("text","",0);p.content=l.slice(h),p.level=c,f.push(p)}t[n].children=u=ua(u,a,f)}}}}const sa=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tf=/\((c|tm|r)\)/i,nf=/\((c|tm|r)\)/ig,rf={c:"©",r:"®",tm:"™"};function of(e,t){return rf[t.toLowerCase()]}function uf(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(nf,of)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function af(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&sa.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 sf(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(tf.test(e.tokens[t].content)&&uf(e.tokens[t].children),sa.test(e.tokens[t].content)&&af(e.tokens[t].children))}const lf=/['"]/,la=/['"]/g,ca="’";function Gr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function cf(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const o=e[u],a=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,d=s.length;e:for(;l<d;){la.lastIndex=l;const f=la.exec(s);if(!f)break;let c=!0,h=!0;l=f.index+1;const p=f[0]==="'";let m=32;if(f.index-1>=0)m=s.charCodeAt(f.index-1);else for(n=u-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let x=32;if(l<d)x=s.charCodeAt(l);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const v=qn(m)||Gn(String.fromCharCode(m)),y=qn(x)||Gn(String.fromCharCode(x)),b=Xn(m),g=Xn(x);if(g?c=!1:y&&(b||v||(c=!1)),b?h=!1:v&&(g||y||(h=!1)),x===34&&f[0]==='"'&&m>=48&&m<=57&&(h=c=!1),c&&h&&(c=v,h=y),!c&&!h){p&&(o.content=Gr(o.content,f.index,ca));continue}if(h)for(n=r.length-1;n>=0;n--){let w=r[n];if(r[n].level<a)break;if(w.single===p&&r[n].level===a){w=r[n];let A,N;p?(A=t.md.options.quotes[2],N=t.md.options.quotes[3]):(A=t.md.options.quotes[0],N=t.md.options.quotes[1]),o.content=Gr(o.content,f.index,N),e[w.token].content=Gr(e[w.token].content,w.pos,A),l+=N.length-1,w.token===u&&(l+=A.length-1),s=o.content,d=s.length,r.length=n;continue e}}c?r.push({token:u,pos:f.index,single:p,level:a}):h&&p&&(o.content=Gr(o.content,f.index,ca))}}}function df(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!lf.test(e.tokens[t].content)||cf(e.tokens[t].children,e)}function ff(e){let t,n;const r=e.tokens,u=r.length;for(let o=0;o<u;o++){if(r[o].type!=="inline")continue;const a=r[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const su=[["normalize",Zd],["block",Yd],["inline",Kd],["linkify",ef],["replacements",sf],["smartquotes",df],["text_join",ff]];function lu(){this.ruler=new qe;for(let e=0;e<su.length;e++)this.ruler.push(su[e][0],su[e][1])}lu.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},lu.prototype.State=aa;function Ct(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 u=this.src;for(let o=0,a=0,s=0,l=0,d=u.length,f=!1;a<d;a++){const c=u.charCodeAt(a);if(!f)if(me(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=a+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ct.prototype.push=function(e,t,n){const r=new dt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Ct.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Ct.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Ct.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!me(r))break}return t},Ct.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!me(this.src.charCodeAt(--t)))return t+1;return t},Ct.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},Ct.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},Ct.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const o=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const d=this.bMarks[s];let f=d,c;for(s+1<n||u?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<r;){const h=this.src.charCodeAt(f);if(me(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>r?o[a]=new Array(l-r+1).join(" ")+this.src.slice(f,c):o[a]=this.src.slice(f,c)}return o.join("")},Ct.prototype.Token=dt;const hf=65536;function cu(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function da(e){const t=[],n=e.length;let r=0,u=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)u===124&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=u===92,r++,u=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function mf(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];if(o>=e.eMarks[u])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[u])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!me(s)||a===45&&me(s))return!1;for(;o<e.eMarks[u];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!me(w))return!1;o++}let l=cu(e,t+1),d=l.split("|");const f=[];for(let w=0;w<d.length;w++){const A=d[w].trim();if(!A){if(w===0||w===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(A))return!1;A.charCodeAt(A.length-1)===58?f.push(A.charCodeAt(0)===58?"center":"right"):A.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=cu(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=da(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const c=d.length;if(c===0||c!==f.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),x=[t,0];m.map=x;const v=e.push("thead_open","thead",1);v.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let w=0;w<d.length;w++){const A=e.push("th_open","th",1);f[w]&&(A.attrs=[["style","text-align:"+f[w]]]);const N=e.push("inline","",0);N.content=d[w].trim(),N.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b,g=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let w=!1;for(let N=0,F=p.length;N<F;N++)if(p[N](e,u,n,!0)){w=!0;break}if(w||(l=cu(e,u).trim(),!l)||e.sCount[u]-e.blkIndent>=4||(d=da(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),g+=c-d.length,g>hf))break;if(u===t+2){const N=e.push("tbody_open","tbody",1);N.map=b=[t+2,0]}const A=e.push("tr_open","tr",1);A.map=[u,u+1];for(let N=0;N<c;N++){const F=e.push("td_open","td",1);f[N]&&(F.attrs=[["style","text-align:"+f[N]]]);const _=e.push("inline","",0);_.content=d[N]?d[N].trim():"",_.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=u),e.push("table_close","table",-1),x[1]=u,e.parentType=h,e.line=u,!0}function pf(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const o=e.push("code_block","code",0);return o.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
16
|
-
`,o.map=[t,e.line],!0}function gf(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>o)return!1;const a=e.src.charCodeAt(u);if(a!==126&&a!==96)return!1;let s=u;u=e.skipChars(u,a);let l=u-s;if(l<3)return!1;const d=e.src.slice(s,u),f=e.src.slice(u,o);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let c=t,h=!1;for(;c++,!(c>=n||(u=s=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(u)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(u=e.skipChars(u,a),!(u-s<l)&&(u=e.skipSpaces(u),!(u<o)))){h=!0;break}l=e.sCount[t],e.line=c+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,c,l,!0),p.markup=d,p.map=[t,e.line],!0}function bf(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==62)return!1;if(r)return!0;const s=[],l=[],d=[],f=[],c=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const g=e.sCount[m]<e.blkIndent;if(u=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],u>=o)break;if(e.src.charCodeAt(u++)===62&&!g){let A=e.sCount[m]+1,N,F;e.src.charCodeAt(u)===32?(u++,A++,F=!1,N=!0):e.src.charCodeAt(u)===9?(N=!0,(e.bsCount[m]+A)%4===3?(u++,A++,F=!1):F=!0):N=!1;let _=A;for(s.push(e.bMarks[m]),e.bMarks[m]=u;u<o;){const G=e.src.charCodeAt(u);if(me(G))G===9?_+=4-(_+e.bsCount[m]+(F?1:0))%4:_++;else break;u++}p=u>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(N?1:0),d.push(e.sCount[m]),e.sCount[m]=_-A,f.push(e.tShift[m]),e.tShift[m]=u-e.bMarks[m];continue}if(p)break;let w=!1;for(let A=0,N=c.length;A<N;A++)if(c[A](e,m,n,!0)){w=!0;break}if(w){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]=-1}const x=e.blkIndent;e.blkIndent=0;const v=e.push("blockquote_open","blockquote",1);v.markup=">";const y=[t,0];v.map=y,e.md.block.tokenize(e,t,m);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=a,e.parentType=h,y[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=d[g],e.bsCount[g+t]=l[g];return e.blkIndent=x,!0}function yf(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<u;){const d=e.src.charCodeAt(o++);if(d!==a&&!me(d))return!1;d===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function fa(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!me(o))return-1}return r}function ha(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let o=e.src.charCodeAt(u++);if(o<48||o>57)return-1;for(;;){if(u>=r)return-1;if(o=e.src.charCodeAt(u++),o>=48&&o<=57){if(u-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return u<r&&(o=e.src.charCodeAt(u),!me(o))?-1:u}function wf(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;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 xf(e,t,n,r){let u,o,a,s,l=t,d=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let c,h,p;if((p=ha(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,p-1)),f&&h!==1)return!1}else if((p=fa(e,l))>=0)c=!1;else return!1;if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),x=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const v=[l,0];s.map=v,s.markup=String.fromCharCode(m);let y=!1;const b=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){o=p,u=e.eMarks[l];const w=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let A=w;for(;o<u;){const q=e.src.charCodeAt(o);if(q===9)A+=4-(A+e.bsCount[l])%4;else if(q===32)A++;else break;o++}const N=o;let F;N>=u?F=1:F=A-w,F>4&&(F=1);const _=w+F;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const G=[l,0];s.map=G,c&&(s.info=e.src.slice(a,p-1));const $=e.tight,M=e.tShift[l],H=e.sCount[l],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=_,e.tight=!0,e.tShift[l]=N-e.bMarks[l],e.sCount[l]=A,N>=u&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||y)&&(d=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=I,e.tShift[l]=M,e.sCount[l]=H,e.tight=$,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,G[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let X=!1;for(let q=0,D=b.length;q<D;q++)if(b[q](e,l,n,!0)){X=!0;break}if(X)break;if(c){if(p=ha(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=fa(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return c?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),v[1]=l,e.line=l,e.parentType=g,d&&wf(e,x),!0}function vf(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function s(b){const g=e.lineMax;if(b>=g||e.isEmpty(b))return null;let w=!1;if(e.sCount[b]-e.blkIndent>3&&(w=!0),e.sCount[b]<0&&(w=!0),!w){const F=e.md.block.ruler.getRules("reference"),_=e.parentType;e.parentType="reference";let G=!1;for(let $=0,M=F.length;$<M;$++)if(F[$](e,b,g,!0)){G=!0;break}if(e.parentType=_,G)return null}const A=e.bMarks[b]+e.tShift[b],N=e.eMarks[b];return e.src.slice(A,N+1)}let l=e.src.slice(u,o+1);o=l.length;let d=-1;for(u=1;u<o;u++){const b=l.charCodeAt(u);if(b===91)return!1;if(b===93){d=u;break}else if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(b===92&&(u++,u<o&&l.charCodeAt(u)===10)){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(u=d+2;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}const f=e.md.helpers.parseLinkDestination(l,u,o);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;u=f.pos;const h=u,p=a,m=u;for(;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}let x=e.md.helpers.parseLinkTitle(l,u,o);for(;x.can_continue;){const b=s(a);if(b===null)break;l+=b,u=o,o=l.length,a++,x=e.md.helpers.parseLinkTitle(l,u,o,x)}let v;for(u<o&&m!==u&&x.ok?(v=x.str,u=x.pos):(v="",u=h,a=p);u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10&&v)for(v="",u=h,a=p;u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10)return!1;const y=Xr(l.slice(1,d));return y?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:v,href:c}),e.line=a),!0):!1}const kf=["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"],Af="[a-zA-Z_:][a-zA-Z0-9:._-]*",Cf="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",ma="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Af+"(?:\\s*=\\s*"+Cf+")?)")+"*\\s*\\/?>",pa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",_f="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Ef="<[?][\\s\\S]*?[?]>",Sf="<![A-Za-z][^>]*>",Nf="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Ff=new RegExp("^(?:"+ma+"|"+pa+"|"+_f+"|"+Ef+"|"+Sf+"|"+Nf+")"),Tf=new RegExp("^(?:"+ma+"|"+pa+")"),yn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+kf.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Tf.source+"\\s*$"),/^$/,!1]];function Df(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let a=e.src.slice(u,o),s=0;for(;s<yn.length&&!yn[s][0].test(a);s++);if(s===yn.length)return!1;if(r)return yn[s][2];let l=t+1;if(!yn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(u,o),yn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}function If(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(u);if(a!==35||u>=o)return!1;let s=1;for(a=e.src.charCodeAt(++u);a===35&&u<o&&s<=6;)s++,a=e.src.charCodeAt(++u);if(s>6||u<o&&!me(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,u);const l=e.skipCharsBack(o,35,u);l>u&&me(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const d=e.push("heading_open","h"+String(s),1);d.markup="########".slice(0,s),d.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(u,o).trim(),f.map=[t,e.line],f.children=[];const c=e.push("heading_close","h"+String(s),-1);return c.markup="########".slice(0,s),!0}function Of(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(a=e.src.charCodeAt(p),(a===45||a===61)&&(p=e.skipChars(p,a),p=e.skipSpaces(p),p>=m))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](e,s,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(o),1);d.markup=String.fromCharCode(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const c=e.push("heading_close","h"+String(o),-1);return c.markup=String.fromCharCode(a),e.parentType=u,!0}function Lf(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let d=!1;for(let f=0,c=r.length;f<c;f++)if(r[f](e,o,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=u,!0}const qr=[["table",mf,["paragraph","reference"]],["code",pf],["fence",gf,["paragraph","reference","blockquote","list"]],["blockquote",bf,["paragraph","reference","blockquote","list"]],["hr",yf,["paragraph","reference","blockquote","list"]],["list",xf,["paragraph","reference","blockquote"]],["reference",vf],["html_block",Df,["paragraph","reference","blockquote"]],["heading",If,["paragraph","reference","blockquote"]],["lheading",Of],["paragraph",Lf]];function Zr(){this.ruler=new qe;for(let e=0;e<qr.length;e++)this.ruler.push(qr[e][0],qr[e][1],{alt:(qr[e][2]||[]).slice()})}Zr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,o=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<u;f++)if(d=r[f](e,a,n,!1),d){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!d)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Zr.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)},Zr.prototype.State=Ct;function Zn(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}Zn.prototype.pushPending=function(){const e=new dt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Zn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new dt(e,t,n);let u=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=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r},Zn.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=qn(u)||Gn(String.fromCharCode(u)),d=qn(s)||Gn(String.fromCharCode(s)),f=Xn(u),c=Xn(s),h=!c&&(!d||f||l),p=!f&&(!l||c||d);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||d),length:a}},Zn.prototype.Token=dt;function Vf(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 Pf(e,t){let n=e.pos;for(;n<e.posMax&&!Vf(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Rf=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Mf(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 u=e.pending.match(Rf);if(!u)return!1;const o=u[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));const d=e.md.normalizeLink(s);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=s.length-o.length,!0}function Bf(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),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<u&&me(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const du=[];for(let e=0;e<256;e++)du.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){du[e.charCodeAt(0)]=1});function zf(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!me(u));)n++;return e.pos=n,!0}let o=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);u<256&&du[u]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function jf(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(u,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=u)return t||(e.pending+=a),e.pos+=s,!0;let l=n,d;for(;(d=e.src.indexOf("`",l))!==-1;){for(l=d+1;l<o&&e.src.charCodeAt(l)===96;)l++;const f=l-d;if(f===s){if(!t){const c=e.push("code_inline","code",0);c.markup=a,c.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function Hf(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let o=u.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function ga(e,t){let n;const r=[],u=t.length;for(let o=0;o<u;o++){const a=t[o];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const o=r.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function $f(e){const t=e.tokens_meta,n=e.tokens_meta.length;ga(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ga(e,t[r].delimiters)}const ba={tokenize:Hf,postProcess:$f};function Uf(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let o=0;o<u.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function ya(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const o=t[u.end],a=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===o.token+1,s=String.fromCharCode(u.marker),l=e.tokens[u.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const d=e.tokens[o.token];d.type=a?"strong_close":"em_close",d.tag=a?"strong":"em",d.nesting=-1,d.markup=a?s+s:s,d.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[u.end+1].token].content="",r--)}}function Wf(e){const t=e.tokens_meta,n=e.tokens_meta.length;ya(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ya(e,t[r].delimiters)}const wa={tokenize:Uf,postProcess:Wf};function Xf(e,t){let n,r,u,o,a="",s="",l=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,c=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<c&&e.src.charCodeAt(m)===40){for(d=!1,m++;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(m>=c)return!1;if(l=m,u=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),u.ok){for(a=e.md.normalizeLink(u.str),e.md.validateLink(a)?m=u.pos:a="",l=m;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(u=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&l!==m&&u.ok)for(s=u.str,m=u.pos;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);}(m>=c||e.src.charCodeAt(m)!==41)&&(d=!0),m++}if(d){if(typeof e.env.references>"u")return!1;if(m<c&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(h,p)),o=e.env.references[Xr(r)],!o)return e.pos=f,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=p;const x=e.push("link_open","a",1),v=[["href",a]];x.attrs=v,s&&v.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=c,!0}function Gf(e,t){let n,r,u,o,a,s,l,d,f="";const c=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(o>=h)return!1;for(d=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),d=o;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&d!==o&&s.ok)for(l=s.str,o=s.pos;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=c,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(d=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?u=e.src.slice(d,o++):o=m+1):o=m+1,u||(u=e.src.slice(p,m)),a=e.env.references[Xr(u)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){r=e.src.slice(p,m);const x=[];e.md.inline.parse(r,e.md,e.env,x);const v=e.push("image","img",0),y=[["src",f],["alt",""]];v.attrs=y,v.children=x,v.content=r,l&&y.push(["title",l])}return e.pos=o,e.posMax=h,!0}const qf=/^([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])?)*)$/,Zf=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Yf(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(Zf.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}if(qf.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}return!1}function Kf(e){return/^<a[>\s]/i.test(e)}function Qf(e){return/^<\/a\s*>/i.test(e)}function Jf(e){const t=e|32;return t>=97&&t<=122}function e0(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 u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!Jf(u))return!1;const o=e.src.slice(r).match(Ff);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],Kf(a.content)&&e.linkLevel++,Qf(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const t0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,n0=/^&([a-z][a-z0-9]{1,31});/i;function r0(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 o=e.src.slice(n).match(t0);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=au(a)?Wr(a):Wr(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(n0);if(o){const a=oa(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function xa(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const o=[];for(let a=0;a<n;a++){const s=e[a];if(o.push(0),(e[r].marker!==s.marker||u!==s.token-1)&&(r=a),u=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let d=r-o[r]-1,f=d;for(;d>l;d-=o[d]+1){const c=e[d];if(c.marker===s.marker&&c.open&&c.end<0){let h=!1;if((c.close||s.open)&&(c.length+s.length)%3===0&&(c.length%3!==0||s.length%3!==0)&&(h=!0),!h){const p=d>0&&!e[d-1].open?o[d-1]+1:0;o[a]=a-d+p,o[d]=p,s.open=!1,c.end=a,c.close=!1,f=-1,u=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function o0(e){const t=e.tokens_meta,n=e.tokens_meta.length;xa(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&xa(t[r].delimiters)}function u0(e){let t,n,r=0;const u=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<o&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const fu=[["text",Pf],["linkify",Mf],["newline",Bf],["escape",zf],["backticks",jf],["strikethrough",ba.tokenize],["emphasis",wa.tokenize],["link",Xf],["image",Gf],["autolink",Yf],["html_inline",e0],["entity",r0]],hu=[["balance_pairs",o0],["strikethrough",ba.postProcess],["emphasis",wa.postProcess],["fragments_join",u0]];function Yn(){this.ruler=new qe;for(let e=0;e<fu.length;e++)this.ruler.push(fu[e][0],fu[e][1]);this.ruler2=new qe;for(let e=0;e<hu.length;e++)this.ruler2.push(hu[e][0],hu[e][1])}Yn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<u){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},Yn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let a=!1;if(e.level<u){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Yn.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](u)},Yn.prototype.State=Zn;function i0(e){const t={};e=e||{},t.src_Any=Ji.source,t.src_Cc=ea.source,t.src_Z=na.source,t.src_P=ru.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 mu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Yr(e){return Object.prototype.toString.call(e)}function a0(e){return Yr(e)==="[object String]"}function s0(e){return Yr(e)==="[object Object]"}function l0(e){return Yr(e)==="[object RegExp]"}function va(e){return Yr(e)==="[object Function]"}function c0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ka={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function d0(e){return Object.keys(e||{}).reduce(function(t,n){return t||ka.hasOwnProperty(n)},!1)}const f0={"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}}},h0="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]",m0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p0(e){e.__index__=-1,e.__text_cache__=""}function g0(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Aa(){return function(e,t){t.normalize(e)}}function Kr(e){const t=e.re=i0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(h0),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.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 u=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,s0(l)){l0(l.validate)?d.validate=g0(l.validate):va(l.validate)?d.validate=l.validate:o(s,l),va(l.normalize)?d.normalize=l.normalize:l.normalize?o(s,l):d.normalize=Aa();return}if(a0(l)){u.push(s);return}o(s,l)}),u.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:Aa()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(c0).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","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"),p0(e)}function b0(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function pu(e,t){const n=new b0(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t||d0(e)&&(t=e,e={}),this.__opts__=mu({},ka,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=mu({},f0,e),this.__compiled__={},this.__tlds__=m0,this.__tlds_replaced__=!1,this.re={},Kr(this)}Ke.prototype.add=function(t,n){return this.__schemas__[t]=n,Kr(this),this},Ke.prototype.set=function(t){return this.__opts__=mu(this.__opts__,t),this},Ke.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,o,a,s,l,d,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=t.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(u=t.match(this.re.email_fuzzy))!==null&&(a=u.index+u[1].length,s=u.index+u[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},Ke.prototype.pretest=function(t){return this.re.pretest.test(t)},Ke.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},Ke.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(pu(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(pu(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},Ke.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,pu(this,0)):null},Ke.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,o){return r!==o[u-1]}).reverse(),Kr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Kr(this),this)},Ke.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ke.prototype.onCompile=function(){};const wn=2147483647,_t=36,gu=1,Kn=26,y0=38,w0=700,Ca=72,_a=128,Ea="-",x0=/^xn--/,v0=/[^\0-\x7F]/,k0=/[\x2E\u3002\uFF0E\uFF61]/g,A0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},bu=_t-gu,Et=Math.floor,yu=String.fromCharCode;function Ut(e){throw new RangeError(A0[e])}function C0(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Sa(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(k0,".");const u=e.split("."),o=C0(u,t).join(".");return r+o}function Na(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((u&1023)<<10)+(o&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const _0=e=>String.fromCodePoint(...e),E0=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:_t},Fa=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ta=function(e,t,n){let r=0;for(e=n?Et(e/w0):e>>1,e+=Et(e/t);e>bu*Kn>>1;r+=_t)e=Et(e/bu);return Et(r+(bu+1)*e/(e+y0))},Da=function(e){const t=[],n=e.length;let r=0,u=_a,o=Ca,a=e.lastIndexOf(Ea);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ut("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let f=1,c=_t;;c+=_t){s>=n&&Ut("invalid-input");const h=E0(e.charCodeAt(s++));h>=_t&&Ut("invalid-input"),h>Et((wn-r)/f)&&Ut("overflow"),r+=h*f;const p=c<=o?gu:c>=o+Kn?Kn:c-o;if(h<p)break;const m=_t-p;f>Et(wn/m)&&Ut("overflow"),f*=m}const d=t.length+1;o=Ta(r-l,d,l==0),Et(r/d)>wn-u&&Ut("overflow"),u+=Et(r/d),r%=d,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Ia=function(e){const t=[];e=Na(e);const n=e.length;let r=_a,u=0,o=Ca;for(const l of e)l<128&&t.push(yu(l));const a=t.length;let s=a;for(a&&t.push(Ea);s<n;){let l=wn;for(const f of e)f>=r&&f<l&&(l=f);const d=s+1;l-r>Et((wn-u)/d)&&Ut("overflow"),u+=(l-r)*d,r=l;for(const f of e)if(f<r&&++u>wn&&Ut("overflow"),f===r){let c=u;for(let h=_t;;h+=_t){const p=h<=o?gu:h>=o+Kn?Kn:h-o;if(c<p)break;const m=c-p,x=_t-p;t.push(yu(Fa(p+m%x,0))),c=Et(m/x)}t.push(yu(Fa(c,0))),o=Ta(u,d,s===a),u=0,++s}++u,++r}return t.join("")},Oa={version:"2.3.1",ucs2:{decode:Na,encode:_0},decode:Da,encode:Ia,toASCII:function(e){return Sa(e,function(t){return v0.test(t)?"xn--"+Ia(t):t})},toUnicode:function(e){return Sa(e,function(t){return x0.test(t)?Da(t.slice(4).toLowerCase()):t})}},S0={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},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"]}}},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"]}}}},N0=/^(vbscript|javascript|file|data):/,F0=/^data:image\/(gif|png|jpeg|webp);/;function T0(e){const t=e.trim().toLowerCase();return N0.test(t)?F0.test(t):!0}const La=["http:","https:","mailto:"];function D0(e){const t=nu(e,!0);if(t.hostname&&(!t.protocol||La.indexOf(t.protocol)>=0))try{t.hostname=Oa.toASCII(t.hostname)}catch{}return Wn(tu(t))}function I0(e){const t=nu(e,!0);if(t.hostname&&(!t.protocol||La.indexOf(t.protocol)>=0))try{t.hostname=Oa.toUnicode(t.hostname)}catch{}return pn(tu(t),pn.defaultChars+"%")}function Qe(e,t){if(!(this instanceof Qe))return new Qe(e,t);t||iu(e)||(t=e||{},e="default"),this.inline=new Yn,this.block=new Zr,this.core=new lu,this.renderer=new bn,this.linkify=new Ke,this.validateLink=T0,this.normalizeLink=D0,this.normalizeLinkText=I0,this.utils=Hd,this.helpers=Ur({},Xd),this.options={},this.configure(e),t&&this.set(t)}Qe.prototype.set=function(e){return Ur(this.options,e),this},Qe.prototype.configure=function(e){const t=this;if(iu(e)){const n=e;if(e=S0[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},Qe.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Qe.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Qe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Qe.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},Qe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Qe.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Qe.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Va,setPrototypeOf:Pa,isFrozen:O0,getPrototypeOf:L0,getOwnPropertyDescriptor:V0}=Object;let{freeze:je,seal:it,create:Qr}=Object,{apply:wu,construct:xu}=typeof Reflect<"u"&&Reflect;je||(je=function(t){return t}),it||(it=function(t){return t}),wu||(wu=function(t,n){for(var r=arguments.length,u=new Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return t.apply(n,u)}),xu||(xu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return new t(...r)});const Jr=$e(Array.prototype.forEach),P0=$e(Array.prototype.lastIndexOf),Ra=$e(Array.prototype.pop),Qn=$e(Array.prototype.push),R0=$e(Array.prototype.splice),eo=$e(String.prototype.toLowerCase),vu=$e(String.prototype.toString),ku=$e(String.prototype.match),Jn=$e(String.prototype.replace),M0=$e(String.prototype.indexOf),B0=$e(String.prototype.trim),Je=$e(Object.prototype.hasOwnProperty),He=$e(RegExp.prototype.test),er=z0(TypeError);function $e(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return wu(e,t,r)}}function z0(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xu(e,n)}}function ae(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eo;Pa&&Pa(e,null);let r=t.length;for(;r--;){let u=t[r];if(typeof u=="string"){const o=n(u);o!==u&&(O0(t)||(t[r]=o),u=o)}e[u]=!0}return e}function j0(e){for(let t=0;t<e.length;t++)Je(e,t)||(e[t]=null);return e}function St(e){const t=Qr(null);for(const[n,r]of Va(e))Je(e,n)&&(Array.isArray(r)?t[n]=j0(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=St(r):t[n]=r);return t}function tr(e,t){for(;e!==null;){const r=V0(e,t);if(r){if(r.get)return $e(r.get);if(typeof r.value=="function")return $e(r.value)}e=L0(e)}function n(){return null}return n}const Ma=je(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Au=je(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Cu=je(["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"]),H0=je(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_u=je(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$0=je(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ba=je(["#text"]),za=je(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Eu=je(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ja=je(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),to=je(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),U0=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W0=it(/<%[\w\W]*|[\w\W]*%>/gm),X0=it(/\$\{[\w\W]*/gm),G0=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),q0=it(/^aria-[\-\w]+$/),Ha=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z0=it(/^(?:\w+script|data):/i),Y0=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$a=it(/^html$/i),K0=it(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ua=Object.freeze({__proto__:null,ARIA_ATTR:q0,ATTR_WHITESPACE:Y0,CUSTOM_ELEMENT:K0,DATA_ATTR:G0,DOCTYPE_NAME:$a,ERB_EXPR:W0,IS_ALLOWED_URI:Ha,IS_SCRIPT_OR_DATA:Z0,MUSTACHE_EXPR:U0,TMPLIT_EXPR:X0});const nr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Q0=function(){return typeof window>"u"?null:window},J0=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";n&&n.hasAttribute(u)&&(r=n.getAttribute(u));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Wa=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Xa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q0();const t=te=>Xa(te);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==nr.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,u=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:p}=e,m=l.prototype,x=tr(m,"cloneNode"),v=tr(m,"remove"),y=tr(m,"nextSibling"),b=tr(m,"childNodes"),g=tr(m,"parentNode");if(typeof a=="function"){const te=n.createElement("template");te.content&&te.content.ownerDocument&&(n=te.content.ownerDocument)}let w,A="";const{implementation:N,createNodeIterator:F,createDocumentFragment:_,getElementsByTagName:G}=n,{importNode:$}=r;let M=Wa();t.isSupported=typeof Va=="function"&&typeof g=="function"&&N&&N.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:I,TMPLIT_EXPR:X,DATA_ATTR:q,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:z,CUSTOM_ELEMENT:Z}=Ua;let{IS_ALLOWED_URI:ue}=Ua,C=null;const S=ae({},[...Ma,...Au,...Cu,..._u,...Ba]);let T=null;const O=ae({},[...za,...Eu,...ja,...to]);let P=Object.seal(Qr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,L=null;const R=Object.seal(Qr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let B=!0,Q=!0,re=!1,oe=!0,ce=!1,le=!0,he=!1,Be=!1,kt=!1,Ge=!1,Rt=!1,fn=!1,nc=!0,rc=!1;const T2="user-content-";let hi=!0,Vr=!1,Bn={},Ot=null;const mi=ae({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let oc=null;const uc=ae({},["audio","video","img","source","image","track"]);let pi=null;const ic=ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ho="http://www.w3.org/1998/Math/MathML",$o="http://www.w3.org/2000/svg",Mt="http://www.w3.org/1999/xhtml";let zn=Mt,gi=!1,bi=null;const D2=ae({},[Ho,$o,Mt],vu);let Uo=ae({},["mi","mo","mn","ms","mtext"]),Wo=ae({},["annotation-xml"]);const I2=ae({},["title","style","font","a","script"]);let Pr=null;const O2=["application/xhtml+xml","text/html"],L2="text/html";let Ne=null,jn=null;const V2=n.createElement("form"),ac=function(E){return E instanceof RegExp||E instanceof Function},yi=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jn&&jn===E)){if((!E||typeof E!="object")&&(E={}),E=St(E),Pr=O2.indexOf(E.PARSER_MEDIA_TYPE)===-1?L2:E.PARSER_MEDIA_TYPE,Ne=Pr==="application/xhtml+xml"?vu:eo,C=Je(E,"ALLOWED_TAGS")?ae({},E.ALLOWED_TAGS,Ne):S,T=Je(E,"ALLOWED_ATTR")?ae({},E.ALLOWED_ATTR,Ne):O,bi=Je(E,"ALLOWED_NAMESPACES")?ae({},E.ALLOWED_NAMESPACES,vu):D2,pi=Je(E,"ADD_URI_SAFE_ATTR")?ae(St(ic),E.ADD_URI_SAFE_ATTR,Ne):ic,oc=Je(E,"ADD_DATA_URI_TAGS")?ae(St(uc),E.ADD_DATA_URI_TAGS,Ne):uc,Ot=Je(E,"FORBID_CONTENTS")?ae({},E.FORBID_CONTENTS,Ne):mi,U=Je(E,"FORBID_TAGS")?ae({},E.FORBID_TAGS,Ne):St({}),L=Je(E,"FORBID_ATTR")?ae({},E.FORBID_ATTR,Ne):St({}),Bn=Je(E,"USE_PROFILES")?E.USE_PROFILES:!1,B=E.ALLOW_ARIA_ATTR!==!1,Q=E.ALLOW_DATA_ATTR!==!1,re=E.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=E.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=E.SAFE_FOR_TEMPLATES||!1,le=E.SAFE_FOR_XML!==!1,he=E.WHOLE_DOCUMENT||!1,Ge=E.RETURN_DOM||!1,Rt=E.RETURN_DOM_FRAGMENT||!1,fn=E.RETURN_TRUSTED_TYPE||!1,kt=E.FORCE_BODY||!1,nc=E.SANITIZE_DOM!==!1,rc=E.SANITIZE_NAMED_PROPS||!1,hi=E.KEEP_CONTENT!==!1,Vr=E.IN_PLACE||!1,ue=E.ALLOWED_URI_REGEXP||Ha,zn=E.NAMESPACE||Mt,Uo=E.MATHML_TEXT_INTEGRATION_POINTS||Uo,Wo=E.HTML_INTEGRATION_POINTS||Wo,P=E.CUSTOM_ELEMENT_HANDLING||{},E.CUSTOM_ELEMENT_HANDLING&&ac(E.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=E.CUSTOM_ELEMENT_HANDLING.tagNameCheck),E.CUSTOM_ELEMENT_HANDLING&&ac(E.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=E.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),E.CUSTOM_ELEMENT_HANDLING&&typeof E.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=E.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(Q=!1),Rt&&(Ge=!0),Bn&&(C=ae({},Ba),T=Qr(null),Bn.html===!0&&(ae(C,Ma),ae(T,za)),Bn.svg===!0&&(ae(C,Au),ae(T,Eu),ae(T,to)),Bn.svgFilters===!0&&(ae(C,Cu),ae(T,Eu),ae(T,to)),Bn.mathMl===!0&&(ae(C,_u),ae(T,ja),ae(T,to))),Je(E,"ADD_TAGS")||(R.tagCheck=null),Je(E,"ADD_ATTR")||(R.attributeCheck=null),E.ADD_TAGS&&(typeof E.ADD_TAGS=="function"?R.tagCheck=E.ADD_TAGS:(C===S&&(C=St(C)),ae(C,E.ADD_TAGS,Ne))),E.ADD_ATTR&&(typeof E.ADD_ATTR=="function"?R.attributeCheck=E.ADD_ATTR:(T===O&&(T=St(T)),ae(T,E.ADD_ATTR,Ne))),E.ADD_URI_SAFE_ATTR&&ae(pi,E.ADD_URI_SAFE_ATTR,Ne),E.FORBID_CONTENTS&&(Ot===mi&&(Ot=St(Ot)),ae(Ot,E.FORBID_CONTENTS,Ne)),E.ADD_FORBID_CONTENTS&&(Ot===mi&&(Ot=St(Ot)),ae(Ot,E.ADD_FORBID_CONTENTS,Ne)),hi&&(C["#text"]=!0),he&&ae(C,["html","head","body"]),C.table&&(ae(C,["tbody"]),delete U.tbody),E.TRUSTED_TYPES_POLICY){if(typeof E.TRUSTED_TYPES_POLICY.createHTML!="function")throw er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof E.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw er('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=E.TRUSTED_TYPES_POLICY,A=w.createHTML("")}else w===void 0&&(w=J0(p,u)),w!==null&&typeof A=="string"&&(A=w.createHTML(""));je&&je(E),jn=E}},sc=ae({},[...Au,...Cu,...H0]),lc=ae({},[..._u,...$0]),P2=function(E){let W=g(E);(!W||!W.tagName)&&(W={namespaceURI:zn,tagName:"template"});const ee=eo(E.tagName),xe=eo(W.tagName);return bi[E.namespaceURI]?E.namespaceURI===$o?W.namespaceURI===Mt?ee==="svg":W.namespaceURI===Ho?ee==="svg"&&(xe==="annotation-xml"||Uo[xe]):!!sc[ee]:E.namespaceURI===Ho?W.namespaceURI===Mt?ee==="math":W.namespaceURI===$o?ee==="math"&&Wo[xe]:!!lc[ee]:E.namespaceURI===Mt?W.namespaceURI===$o&&!Wo[xe]||W.namespaceURI===Ho&&!Uo[xe]?!1:!lc[ee]&&(I2[ee]||!sc[ee]):!!(Pr==="application/xhtml+xml"&&bi[E.namespaceURI]):!1},Lt=function(E){Qn(t.removed,{element:E});try{g(E).removeChild(E)}catch{v(E)}},hn=function(E,W){try{Qn(t.removed,{attribute:W.getAttributeNode(E),from:W})}catch{Qn(t.removed,{attribute:null,from:W})}if(W.removeAttribute(E),E==="is")if(Ge||Rt)try{Lt(W)}catch{}else try{W.setAttribute(E,"")}catch{}},cc=function(E){let W=null,ee=null;if(kt)E="<remove></remove>"+E;else{const _e=ku(E,/^[\r\n\t ]+/);ee=_e&&_e[0]}Pr==="application/xhtml+xml"&&zn===Mt&&(E='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+E+"</body></html>");const xe=w?w.createHTML(E):E;if(zn===Mt)try{W=new h().parseFromString(xe,Pr)}catch{}if(!W||!W.documentElement){W=N.createDocument(zn,"template",null);try{W.documentElement.innerHTML=gi?A:xe}catch{}}const ze=W.body||W.documentElement;return E&&ee&&ze.insertBefore(n.createTextNode(ee),ze.childNodes[0]||null),zn===Mt?G.call(W,he?"html":"body")[0]:he?W.documentElement:ze},dc=function(E){return F.call(E.ownerDocument||E,E,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},wi=function(E){return E instanceof c&&(typeof E.nodeName!="string"||typeof E.textContent!="string"||typeof E.removeChild!="function"||!(E.attributes instanceof f)||typeof E.removeAttribute!="function"||typeof E.setAttribute!="function"||typeof E.namespaceURI!="string"||typeof E.insertBefore!="function"||typeof E.hasChildNodes!="function")},fc=function(E){return typeof s=="function"&&E instanceof s};function Bt(te,E,W){Jr(te,ee=>{ee.call(t,E,W,jn)})}const hc=function(E){let W=null;if(Bt(M.beforeSanitizeElements,E,null),wi(E))return Lt(E),!0;const ee=Ne(E.nodeName);if(Bt(M.uponSanitizeElement,E,{tagName:ee,allowedTags:C}),le&&E.hasChildNodes()&&!fc(E.firstElementChild)&&He(/<[/\w!]/g,E.innerHTML)&&He(/<[/\w!]/g,E.textContent)||E.nodeType===nr.progressingInstruction||le&&E.nodeType===nr.comment&&He(/<[/\w]/g,E.data))return Lt(E),!0;if(!(R.tagCheck instanceof Function&&R.tagCheck(ee))&&(!C[ee]||U[ee])){if(!U[ee]&&pc(ee)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee)))return!1;if(hi&&!Ot[ee]){const xe=g(E)||E.parentNode,ze=b(E)||E.childNodes;if(ze&&xe){const _e=ze.length;for(let Ye=_e-1;Ye>=0;--Ye){const zt=x(ze[Ye],!0);zt.__removalCount=(E.__removalCount||0)+1,xe.insertBefore(zt,y(E))}}}return Lt(E),!0}return E instanceof l&&!P2(E)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&He(/<\/no(script|embed|frames)/i,E.innerHTML)?(Lt(E),!0):(ce&&E.nodeType===nr.text&&(W=E.textContent,Jr([H,I,X],xe=>{W=Jn(W,xe," ")}),E.textContent!==W&&(Qn(t.removed,{element:E.cloneNode()}),E.textContent=W)),Bt(M.afterSanitizeElements,E,null),!1)},mc=function(E,W,ee){if(L[W]||nc&&(W==="id"||W==="name")&&(ee in n||ee in V2))return!1;if(!(Q&&!L[W]&&He(q,W))){if(!(B&&He(D,W))){if(!(R.attributeCheck instanceof Function&&R.attributeCheck(W,E))){if(!T[W]||L[W]){if(!(pc(E)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,E)||P.tagNameCheck instanceof Function&&P.tagNameCheck(E))&&(P.attributeNameCheck instanceof RegExp&&He(P.attributeNameCheck,W)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(W,E))||W==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee))))return!1}else if(!pi[W]){if(!He(ue,Jn(ee,z,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&E!=="script"&&M0(ee,"data:")===0&&oc[E])){if(!(re&&!He(j,Jn(ee,z,"")))){if(ee)return!1}}}}}}}return!0},pc=function(E){return E!=="annotation-xml"&&ku(E,Z)},gc=function(E){Bt(M.beforeSanitizeAttributes,E,null);const{attributes:W}=E;if(!W||wi(E))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0};let xe=W.length;for(;xe--;){const ze=W[xe],{name:_e,namespaceURI:Ye,value:zt}=ze,Hn=Ne(_e),xi=zt;let Ve=_e==="value"?xi:B0(xi);if(ee.attrName=Hn,ee.attrValue=Ve,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Bt(M.uponSanitizeAttribute,E,ee),Ve=ee.attrValue,rc&&(Hn==="id"||Hn==="name")&&(hn(_e,E),Ve=T2+Ve),le&&He(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ve)){hn(_e,E);continue}if(Hn==="attributename"&&ku(Ve,"href")){hn(_e,E);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){hn(_e,E);continue}if(!oe&&He(/\/>/i,Ve)){hn(_e,E);continue}ce&&Jr([H,I,X],yc=>{Ve=Jn(Ve,yc," ")});const bc=Ne(E.nodeName);if(!mc(bc,Hn,Ve)){hn(_e,E);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ye)switch(p.getAttributeType(bc,Hn)){case"TrustedHTML":{Ve=w.createHTML(Ve);break}case"TrustedScriptURL":{Ve=w.createScriptURL(Ve);break}}if(Ve!==xi)try{Ye?E.setAttributeNS(Ye,_e,Ve):E.setAttribute(_e,Ve),wi(E)?Lt(E):Ra(t.removed)}catch{hn(_e,E)}}Bt(M.afterSanitizeAttributes,E,null)},R2=function te(E){let W=null;const ee=dc(E);for(Bt(M.beforeSanitizeShadowDOM,E,null);W=ee.nextNode();)Bt(M.uponSanitizeShadowNode,W,null),hc(W),gc(W),W.content instanceof o&&te(W.content);Bt(M.afterSanitizeShadowDOM,E,null)};return t.sanitize=function(te){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,ee=null,xe=null,ze=null;if(gi=!te,gi&&(te="<!-->"),typeof te!="string"&&!fc(te))if(typeof te.toString=="function"){if(te=te.toString(),typeof te!="string")throw er("dirty is not a string, aborting")}else throw er("toString is not a function");if(!t.isSupported)return te;if(Be||yi(E),t.removed=[],typeof te=="string"&&(Vr=!1),Vr){if(te.nodeName){const zt=Ne(te.nodeName);if(!C[zt]||U[zt])throw er("root node is forbidden and cannot be sanitized in-place")}}else if(te instanceof s)W=cc("<!---->"),ee=W.ownerDocument.importNode(te,!0),ee.nodeType===nr.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?W=ee:W.appendChild(ee);else{if(!Ge&&!ce&&!he&&te.indexOf("<")===-1)return w&&fn?w.createHTML(te):te;if(W=cc(te),!W)return Ge?null:fn?A:""}W&&kt&&Lt(W.firstChild);const _e=dc(Vr?te:W);for(;xe=_e.nextNode();)hc(xe),gc(xe),xe.content instanceof o&&R2(xe.content);if(Vr)return te;if(Ge){if(Rt)for(ze=_.call(W.ownerDocument);W.firstChild;)ze.appendChild(W.firstChild);else ze=W;return(T.shadowroot||T.shadowrootmode)&&(ze=$.call(r,ze,!0)),ze}let Ye=he?W.outerHTML:W.innerHTML;return he&&C["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&He($a,W.ownerDocument.doctype.name)&&(Ye="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
17
|
-
|
|
276
|
+
`},Zr.text=function(e,t){return Pn(e[t].content)},Zr.html_block=function(e,t){return e[t].content},Zr.html_inline=function(e,t){return e[t].content};function Pa(){this.rules=co({},Zr)}Pa.prototype.renderAttrs=function(t){let r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r<n;r++)i+=" "+Pn(t.attrs[r][0])+'="'+Pn(t.attrs[r][1])+'"';return i},Pa.prototype.renderToken=function(t,r,n){const i=t[r];let a="";if(i.hidden)return"";i.block&&i.nesting!==-1&&r&&t[r-1].hidden&&(a+=`
|
|
277
|
+
`),a+=(i.nesting===-1?"</":"<")+i.tag,a+=this.renderAttrs(i),i.nesting===0&&n.xhtmlOut&&(a+=" /");let s=!1;if(i.block&&(s=!0,i.nesting===1&&r+1<t.length)){const c=t[r+1];(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===i.tag)&&(s=!1)}return a+=s?`>
|
|
278
|
+
`:">",a},Pa.prototype.renderInline=function(e,t,r){let n="";const i=this.rules;for(let a=0,s=e.length;a<s;a++){const c=e[a].type;typeof i[c]<"u"?n+=i[c](e,a,t,r,this):n+=this.renderToken(e,a,t)}return n},Pa.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,a=e.length;i<a;i++)switch(e[i].type){case"text":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"html_inline":case"html_block":n+=e[i].content;break;case"softbreak":case"hardbreak":n+=`
|
|
279
|
+
`;break}return n},Pa.prototype.render=function(e,t,r){let n="";const i=this.rules;for(let a=0,s=e.length;a<s;a++){const c=e[a].type;c==="inline"?n+=this.renderInline(e[a].children,t,r):typeof i[c]<"u"?n+=i[c](e,a,t,r,this):n+=this.renderToken(e,a,t,r)}return n};function Y0(){this.__rules__=[],this.__cache__=null}Y0.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Y0.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})},Y0.prototype.at=function(e,t,r){const n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null},Y0.prototype.before=function(e,t,r,n){const i=this.__find__(e),a=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},Y0.prototype.after=function(e,t,r,n){const i=this.__find__(e),a=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:a.alt||[]}),this.__cache__=null},Y0.prototype.push=function(e,t,r){const n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},Y0.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!0,r.push(n)},this),this.__cache__=null,r},Y0.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)},Y0.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const r=[];return e.forEach(function(n){const i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!1,r.push(n)},this),this.__cache__=null,r},Y0.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Fr(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Fr.prototype.attrIndex=function(t){if(!this.attrs)return-1;const r=this.attrs;for(let n=0,i=r.length;n<i;n++)if(r[n][0]===t)return n;return-1},Fr.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},Fr.prototype.attrSet=function(t,r){const n=this.attrIndex(t),i=[t,r];n<0?this.attrPush(i):this.attrs[n]=i},Fr.prototype.attrGet=function(t){const r=this.attrIndex(t);let n=null;return r>=0&&(n=this.attrs[r][1]),n},Fr.prototype.attrJoin=function(t,r){const n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function r4(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}r4.prototype.Token=Fr;const G7=/\r\n?|\n/g,X7=/\0/g;function Y7(e){let t;t=e.src.replace(G7,`
|
|
280
|
+
`),t=t.replace(X7,"�"),e.src=t}function Z7(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 K7(e){const t=e.tokens;for(let r=0,n=t.length;r<n;r++){const i=t[r];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function Q7(e){return/^<a[>\s]/i.test(e)}function J7(e){return/^<\/a\s*>/i.test(e)}function e8(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r<n;r++){if(t[r].type!=="inline"||!e.md.linkify.pretest(t[r].content))continue;let i=t[r].children,a=0;for(let s=i.length-1;s>=0;s--){const c=i[s];if(c.type==="link_close"){for(s--;i[s].level!==c.level&&i[s].type!=="link_open";)s--;continue}if(c.type==="html_inline"&&(Q7(c.content)&&a>0&&a--,J7(c.content)&&a++),!(a>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const f=c.content;let p=e.md.linkify.match(f);const g=[];let m=c.level,w=0;p.length>0&&p[0].index===0&&s>0&&i[s-1].type==="text_special"&&(p=p.slice(1));for(let k=0;k<p.length;k++){const C=p[k].url,B=e.md.normalizeLink(C);if(!e.md.validateLink(B))continue;let _=p[k].text;p[k].schema?p[k].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,"");const T=p[k].index;if(T>w){const R=new e.Token("text","",0);R.content=f.slice(w,T),R.level=m,g.push(R)}const S=new e.Token("link_open","a",1);S.attrs=[["href",B]],S.level=m++,S.markup="linkify",S.info="auto",g.push(S);const F=new e.Token("text","",0);F.content=_,F.level=m,g.push(F);const z=new e.Token("link_close","a",-1);z.level=--m,z.markup="linkify",z.info="auto",g.push(z),w=p[k].lastIndex}if(w<f.length){const k=new e.Token("text","",0);k.content=f.slice(w),k.level=m,g.push(k)}t[r].children=i=e4(i,s,g)}}}}const n4=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t8=/\((c|tm|r)\)/i,r8=/\((c|tm|r)\)/ig,n8={c:"©",r:"®",tm:"™"};function a8(e,t){return n8[t.toLowerCase()]}function i8(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(r8,a8)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function u8(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&n4.test(n.content)&&(n.content=n.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–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function o8(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(t8.test(e.tokens[t].content)&&i8(e.tokens[t].children),n4.test(e.tokens[t].content)&&u8(e.tokens[t].children))}const s8=/['"]/,a4=/['"]/g,i4="’";function mo(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function l8(e,t){let r;const n=[];for(let i=0;i<e.length;i++){const a=e[i],s=e[i].level;for(r=n.length-1;r>=0&&!(n[r].level<=s);r--);if(n.length=r+1,a.type!=="text")continue;let c=a.content,f=0,p=c.length;e:for(;f<p;){a4.lastIndex=f;const g=a4.exec(c);if(!g)break;let m=!0,w=!0;f=g.index+1;const k=g[0]==="'";let C=32;if(g.index-1>=0)C=c.charCodeAt(g.index-1);else for(r=i-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){C=e[r].content.charCodeAt(e[r].content.length-1);break}let B=32;if(f<p)B=c.charCodeAt(f);else for(r=i+1;r<e.length&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r++)if(e[r].content){B=e[r].content.charCodeAt(0);break}const _=Mi(C)||Bi(String.fromCharCode(C)),T=Mi(B)||Bi(String.fromCharCode(B)),S=Ti(C),F=Ti(B);if(F?m=!1:T&&(S||_||(m=!1)),S?w=!1:_&&(F||T||(w=!1)),B===34&&g[0]==='"'&&C>=48&&C<=57&&(w=m=!1),m&&w&&(m=_,w=T),!m&&!w){k&&(a.content=mo(a.content,g.index,i4));continue}if(w)for(r=n.length-1;r>=0;r--){let z=n[r];if(n[r].level<s)break;if(z.single===k&&n[r].level===s){z=n[r];let R,$;k?(R=t.md.options.quotes[2],$=t.md.options.quotes[3]):(R=t.md.options.quotes[0],$=t.md.options.quotes[1]),a.content=mo(a.content,g.index,$),e[z.token].content=mo(e[z.token].content,z.pos,R),f+=$.length-1,z.token===i&&(f+=R.length-1),c=a.content,p=c.length,n.length=r;continue e}}m?n.push({token:i,pos:g.index,single:k,level:s}):w&&k&&(a.content=mo(a.content,g.index,i4))}}}function c8(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!s8.test(e.tokens[t].content)||l8(e.tokens[t].children,e)}function d8(e){let t,r;const n=e.tokens,i=n.length;for(let a=0;a<i;a++){if(n[a].type!=="inline")continue;const s=n[a].children,c=s.length;for(t=0;t<c;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=r=0;t<c;t++)s[t].type==="text"&&t+1<c&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==r&&(s[r]=s[t]),r++);t!==r&&(s.length=r)}}const Gl=[["normalize",Y7],["block",Z7],["inline",K7],["linkify",e8],["replacements",o8],["smartquotes",c8],["text_join",d8]];function Xl(){this.ruler=new Y0;for(let e=0;e<Gl.length;e++)this.ruler.push(Gl[e][0],Gl[e][1])}Xl.prototype.process=function(e){const t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},Xl.prototype.State=r4;function Kr(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,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 a=0,s=0,c=0,f=0,p=i.length,g=!1;s<p;s++){const m=i.charCodeAt(s);if(!g)if(Et(m)){c++,m===9?f+=4-f%4:f++;continue}else g=!0;(m===10||s===p-1)&&(m!==10&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),g=!1,c=0,f=0,a=s+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}Kr.prototype.push=function(e,t,r){const n=new Fr(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Kr.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Kr.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Kr.prototype.skipSpaces=function(t){for(let r=this.src.length;t<r;t++){const n=this.src.charCodeAt(t);if(!Et(n))break}return t},Kr.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!Et(this.src.charCodeAt(--t)))return t+1;return t},Kr.prototype.skipChars=function(t,r){for(let n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t},Kr.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t},Kr.prototype.getLines=function(t,r,n,i){if(t>=r)return"";const a=new Array(r-t);for(let s=0,c=t;c<r;c++,s++){let f=0;const p=this.bMarks[c];let g=p,m;for(c+1<r||i?m=this.eMarks[c]+1:m=this.eMarks[c];g<m&&f<n;){const w=this.src.charCodeAt(g);if(Et(w))w===9?f+=4-(f+this.bsCount[c])%4:f++;else if(g-p<this.tShift[c])f++;else break;g++}f>n?a[s]=new Array(f-n+1).join(" ")+this.src.slice(g,m):a[s]=this.src.slice(g,m)}return a.join("")},Kr.prototype.Token=Fr;const f8=65536;function Yl(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function u4(e){const t=[],r=e.length;let n=0,i=e.charCodeAt(n),a=!1,s=0,c="";for(;n<r;)i===124&&(a?(c+=e.substring(s,n-1),s=n):(t.push(c+e.substring(s,n)),c="",s=n+1)),a=i===92,n++,i=e.charCodeAt(n);return t.push(c+e.substring(s)),t}function h8(e,t,r,n){if(t+2>r)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;const s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58||a>=e.eMarks[i])return!1;const c=e.src.charCodeAt(a++);if(c!==124&&c!==45&&c!==58&&!Et(c)||s===45&&Et(c))return!1;for(;a<e.eMarks[i];){const z=e.src.charCodeAt(a);if(z!==124&&z!==45&&z!==58&&!Et(z))return!1;a++}let f=Yl(e,t+1),p=f.split("|");const g=[];for(let z=0;z<p.length;z++){const R=p[z].trim();if(!R){if(z===0||z===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(R))return!1;R.charCodeAt(R.length-1)===58?g.push(R.charCodeAt(0)===58?"center":"right"):R.charCodeAt(0)===58?g.push("left"):g.push("")}if(f=Yl(e,t).trim(),f.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;p=u4(f),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop();const m=p.length;if(m===0||m!==g.length)return!1;if(n)return!0;const w=e.parentType;e.parentType="table";const k=e.md.block.ruler.getRules("blockquote"),C=e.push("table_open","table",1),B=[t,0];C.map=B;const _=e.push("thead_open","thead",1);_.map=[t,t+1];const T=e.push("tr_open","tr",1);T.map=[t,t+1];for(let z=0;z<p.length;z++){const R=e.push("th_open","th",1);g[z]&&(R.attrs=[["style","text-align:"+g[z]]]);const $=e.push("inline","",0);$.content=p[z].trim(),$.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let S,F=0;for(i=t+2;i<r&&!(e.sCount[i]<e.blkIndent);i++){let z=!1;for(let $=0,Y=k.length;$<Y;$++)if(k[$](e,i,r,!0)){z=!0;break}if(z||(f=Yl(e,i).trim(),!f)||e.sCount[i]-e.blkIndent>=4||(p=u4(f),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),F+=m-p.length,F>f8))break;if(i===t+2){const $=e.push("tbody_open","tbody",1);$.map=S=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[i,i+1];for(let $=0;$<m;$++){const Y=e.push("td_open","td",1);g[$]&&(Y.attrs=[["style","text-align:"+g[$]]]);const q=e.push("inline","",0);q.content=p[$]?p[$].trim():"",q.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return S&&(e.push("tbody_close","tbody",-1),S[1]=i),e.push("table_close","table",-1),B[1]=i,e.parentType=w,e.line=i,!0}function m8(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,i=n;continue}break}e.line=i;const a=e.push("code_block","code",0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+`
|
|
281
|
+
`,a.map=[t,e.line],!0}function p8(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;const s=e.src.charCodeAt(i);if(s!==126&&s!==96)return!1;let c=i;i=e.skipChars(i,s);let f=i-c;if(f<3)return!1;const p=e.src.slice(c,i),g=e.src.slice(i,a);if(s===96&&g.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let m=t,w=!1;for(;m++,!(m>=r||(i=c=e.bMarks[m]+e.tShift[m],a=e.eMarks[m],i<a&&e.sCount[m]<e.blkIndent));)if(e.src.charCodeAt(i)===s&&!(e.sCount[m]-e.blkIndent>=4)&&(i=e.skipChars(i,s),!(i-c<f)&&(i=e.skipSpaces(i),!(i<a)))){w=!0;break}f=e.sCount[t],e.line=m+(w?1:0);const k=e.push("fence","code",0);return k.info=g,k.content=e.getLines(t+1,m,f,!0),k.markup=p,k.map=[t,e.line],!0}function g8(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(n)return!0;const c=[],f=[],p=[],g=[],m=e.md.block.ruler.getRules("blockquote"),w=e.parentType;e.parentType="blockquote";let k=!1,C;for(C=t;C<r;C++){const F=e.sCount[C]<e.blkIndent;if(i=e.bMarks[C]+e.tShift[C],a=e.eMarks[C],i>=a)break;if(e.src.charCodeAt(i++)===62&&!F){let R=e.sCount[C]+1,$,Y;e.src.charCodeAt(i)===32?(i++,R++,Y=!1,$=!0):e.src.charCodeAt(i)===9?($=!0,(e.bsCount[C]+R)%4===3?(i++,R++,Y=!1):Y=!0):$=!1;let q=R;for(c.push(e.bMarks[C]),e.bMarks[C]=i;i<a;){const pe=e.src.charCodeAt(i);if(Et(pe))pe===9?q+=4-(q+e.bsCount[C]+(Y?1:0))%4:q++;else break;i++}k=i>=a,f.push(e.bsCount[C]),e.bsCount[C]=e.sCount[C]+1+($?1:0),p.push(e.sCount[C]),e.sCount[C]=q-R,g.push(e.tShift[C]),e.tShift[C]=i-e.bMarks[C];continue}if(k)break;let z=!1;for(let R=0,$=m.length;R<$;R++)if(m[R](e,C,r,!0)){z=!0;break}if(z){e.lineMax=C,e.blkIndent!==0&&(c.push(e.bMarks[C]),f.push(e.bsCount[C]),g.push(e.tShift[C]),p.push(e.sCount[C]),e.sCount[C]-=e.blkIndent);break}c.push(e.bMarks[C]),f.push(e.bsCount[C]),g.push(e.tShift[C]),p.push(e.sCount[C]),e.sCount[C]=-1}const B=e.blkIndent;e.blkIndent=0;const _=e.push("blockquote_open","blockquote",1);_.markup=">";const T=[t,0];_.map=T,e.md.block.tokenize(e,t,C);const S=e.push("blockquote_close","blockquote",-1);S.markup=">",e.lineMax=s,e.parentType=w,T[1]=e.line;for(let F=0;F<g.length;F++)e.bMarks[F+t]=c[F],e.tShift[F+t]=g[F],e.sCount[F+t]=p[F],e.bsCount[F+t]=f[F];return e.blkIndent=B,!0}function b8(e,t,r,n){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(a++);if(s!==42&&s!==45&&s!==95)return!1;let c=1;for(;a<i;){const p=e.src.charCodeAt(a++);if(p!==s&&!Et(p))return!1;p===s&&c++}if(c<3)return!1;if(n)return!0;e.line=t+1;const f=e.push("hr","hr",0);return f.map=[t,e.line],f.markup=Array(c+1).join(String.fromCharCode(s)),!0}function o4(e,t){const r=e.eMarks[t];let n=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(n++);if(i!==42&&i!==45&&i!==43)return-1;if(n<r){const a=e.src.charCodeAt(n);if(!Et(a))return-1}return n}function s4(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];let i=r;if(i+1>=n)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=n)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-r>=10)return-1;continue}if(a===41||a===46)break;return-1}return i<n&&(a=e.src.charCodeAt(i),!Et(a))?-1:i}function y8(e,t){const r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function v8(e,t,r,n){let i,a,s,c,f=t,p=!0;if(e.sCount[f]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[f]-e.listIndent>=4&&e.sCount[f]<e.blkIndent)return!1;let g=!1;n&&e.parentType==="paragraph"&&e.sCount[f]>=e.blkIndent&&(g=!0);let m,w,k;if((k=s4(e,f))>=0){if(m=!0,s=e.bMarks[f]+e.tShift[f],w=Number(e.src.slice(s,k-1)),g&&w!==1)return!1}else if((k=o4(e,f))>=0)m=!1;else return!1;if(g&&e.skipSpaces(k)>=e.eMarks[f])return!1;if(n)return!0;const C=e.src.charCodeAt(k-1),B=e.tokens.length;m?(c=e.push("ordered_list_open","ol",1),w!==1&&(c.attrs=[["start",w]])):c=e.push("bullet_list_open","ul",1);const _=[f,0];c.map=_,c.markup=String.fromCharCode(C);let T=!1;const S=e.md.block.ruler.getRules("list"),F=e.parentType;for(e.parentType="list";f<r;){a=k,i=e.eMarks[f];const z=e.sCount[f]+k-(e.bMarks[f]+e.tShift[f]);let R=z;for(;a<i;){const Se=e.src.charCodeAt(a);if(Se===9)R+=4-(R+e.bsCount[f])%4;else if(Se===32)R++;else break;a++}const $=a;let Y;$>=i?Y=1:Y=R-z,Y>4&&(Y=1);const q=z+Y;c=e.push("list_item_open","li",1),c.markup=String.fromCharCode(C);const pe=[f,0];c.map=pe,m&&(c.info=e.src.slice(s,k-1));const he=e.tight,ce=e.tShift[f],be=e.sCount[f],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=q,e.tight=!0,e.tShift[f]=$-e.bMarks[f],e.sCount[f]=R,$>=i&&e.isEmpty(f+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,f,r,!0),(!e.tight||T)&&(p=!1),T=e.line-f>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[f]=ce,e.sCount[f]=be,e.tight=he,c=e.push("list_item_close","li",-1),c.markup=String.fromCharCode(C),f=e.line,pe[1]=f,f>=r||e.sCount[f]<e.blkIndent||e.sCount[f]-e.blkIndent>=4)break;let xe=!1;for(let Se=0,te=S.length;Se<te;Se++)if(S[Se](e,f,r,!0)){xe=!0;break}if(xe)break;if(m){if(k=s4(e,f),k<0)break;s=e.bMarks[f]+e.tShift[f]}else if(k=o4(e,f),k<0)break;if(C!==e.src.charCodeAt(k-1))break}return m?c=e.push("ordered_list_close","ol",-1):c=e.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(C),_[1]=f,e.line=f,e.parentType=F,p&&y8(e,B),!0}function w8(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function c(S){const F=e.lineMax;if(S>=F||e.isEmpty(S))return null;let z=!1;if(e.sCount[S]-e.blkIndent>3&&(z=!0),e.sCount[S]<0&&(z=!0),!z){const Y=e.md.block.ruler.getRules("reference"),q=e.parentType;e.parentType="reference";let pe=!1;for(let he=0,ce=Y.length;he<ce;he++)if(Y[he](e,S,F,!0)){pe=!0;break}if(e.parentType=q,pe)return null}const R=e.bMarks[S]+e.tShift[S],$=e.eMarks[S];return e.src.slice(R,$+1)}let f=e.src.slice(i,a+1);a=f.length;let p=-1;for(i=1;i<a;i++){const S=f.charCodeAt(i);if(S===91)return!1;if(S===93){p=i;break}else if(S===10){const F=c(s);F!==null&&(f+=F,a=f.length,s++)}else if(S===92&&(i++,i<a&&f.charCodeAt(i)===10)){const F=c(s);F!==null&&(f+=F,a=f.length,s++)}}if(p<0||f.charCodeAt(p+1)!==58)return!1;for(i=p+2;i<a;i++){const S=f.charCodeAt(i);if(S===10){const F=c(s);F!==null&&(f+=F,a=f.length,s++)}else if(!Et(S))break}const g=e.md.helpers.parseLinkDestination(f,i,a);if(!g.ok)return!1;const m=e.md.normalizeLink(g.str);if(!e.md.validateLink(m))return!1;i=g.pos;const w=i,k=s,C=i;for(;i<a;i++){const S=f.charCodeAt(i);if(S===10){const F=c(s);F!==null&&(f+=F,a=f.length,s++)}else if(!Et(S))break}let B=e.md.helpers.parseLinkTitle(f,i,a);for(;B.can_continue;){const S=c(s);if(S===null)break;f+=S,i=a,a=f.length,s++,B=e.md.helpers.parseLinkTitle(f,i,a,B)}let _;for(i<a&&C!==i&&B.ok?(_=B.str,i=B.pos):(_="",i=w,s=k);i<a;){const S=f.charCodeAt(i);if(!Et(S))break;i++}if(i<a&&f.charCodeAt(i)!==10&&_)for(_="",i=w,s=k;i<a;){const S=f.charCodeAt(i);if(!Et(S))break;i++}if(i<a&&f.charCodeAt(i)!==10)return!1;const T=ho(f.slice(1,p));return T?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[T]>"u"&&(e.env.references[T]={title:_,href:m}),e.line=s),!0):!1}const x8=["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"],A8="[a-zA-Z_:][a-zA-Z0-9:._-]*",D8="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",l4="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+A8+"(?:\\s*=\\s*"+D8+")?)")+"*\\s*\\/?>",c4="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",k8="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",C8="<[?][\\s\\S]*?[?]>",S8="<![A-Za-z][^>]*>",E8="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",F8=new RegExp("^(?:"+l4+"|"+c4+"|"+k8+"|"+C8+"|"+S8+"|"+E8+")"),T8=new RegExp("^(?:"+l4+"|"+c4+")"),Va=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+x8.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(T8.source+"\\s*$"),/^$/,!1]];function B8(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let s=e.src.slice(i,a),c=0;for(;c<Va.length&&!Va[c][0].test(s);c++);if(c===Va.length)return!1;if(n)return Va[c][2];let f=t+1;if(!Va[c][1].test(s)){for(;f<r&&!(e.sCount[f]<e.blkIndent);f++)if(i=e.bMarks[f]+e.tShift[f],a=e.eMarks[f],s=e.src.slice(i,a),Va[c][1].test(s)){s.length!==0&&f++;break}}e.line=f;const p=e.push("html_block","",0);return p.map=[t,f],p.content=e.getLines(t,f,e.blkIndent,!0),!0}function M8(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(i);if(s!==35||i>=a)return!1;let c=1;for(s=e.src.charCodeAt(++i);s===35&&i<a&&c<=6;)c++,s=e.src.charCodeAt(++i);if(c>6||i<a&&!Et(s))return!1;if(n)return!0;a=e.skipSpacesBack(a,i);const f=e.skipCharsBack(a,35,i);f>i&&Et(e.src.charCodeAt(f-1))&&(a=f),e.line=t+1;const p=e.push("heading_open","h"+String(c),1);p.markup="########".slice(0,c),p.map=[t,e.line];const g=e.push("inline","",0);g.content=e.src.slice(i,a).trim(),g.map=[t,e.line],g.children=[];const m=e.push("heading_close","h"+String(c),-1);return m.markup="########".slice(0,c),!0}function N8(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let a=0,s,c=t+1;for(;c<r&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3)continue;if(e.sCount[c]>=e.blkIndent){let k=e.bMarks[c]+e.tShift[c];const C=e.eMarks[c];if(k<C&&(s=e.src.charCodeAt(k),(s===45||s===61)&&(k=e.skipChars(k,s),k=e.skipSpaces(k),k>=C))){a=s===61?1:2;break}}if(e.sCount[c]<0)continue;let w=!1;for(let k=0,C=n.length;k<C;k++)if(n[k](e,c,r,!0)){w=!0;break}if(w)break}if(!a)return!1;const f=e.getLines(t,c,e.blkIndent,!1).trim();e.line=c+1;const p=e.push("heading_open","h"+String(a),1);p.markup=String.fromCharCode(s),p.map=[t,e.line];const g=e.push("inline","",0);g.content=f,g.map=[t,e.line-1],g.children=[];const m=e.push("heading_close","h"+String(a),-1);return m.markup=String.fromCharCode(s),e.parentType=i,!0}function _8(e,t,r){const n=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let a=t+1;for(e.parentType="paragraph";a<r&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3||e.sCount[a]<0)continue;let p=!1;for(let g=0,m=n.length;g<m;g++)if(n[g](e,a,r,!0)){p=!0;break}if(p)break}const s=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a;const c=e.push("paragraph_open","p",1);c.map=[t,e.line];const f=e.push("inline","",0);return f.content=s,f.map=[t,e.line],f.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const po=[["table",h8,["paragraph","reference"]],["code",m8],["fence",p8,["paragraph","reference","blockquote","list"]],["blockquote",g8,["paragraph","reference","blockquote","list"]],["hr",b8,["paragraph","reference","blockquote","list"]],["list",v8,["paragraph","reference","blockquote"]],["reference",w8],["html_block",B8,["paragraph","reference","blockquote"]],["heading",M8,["paragraph","reference","blockquote"]],["lheading",N8],["paragraph",_8]];function go(){this.ruler=new Y0;for(let e=0;e<po.length;e++)this.ruler.push(po[e][0],po[e][1],{alt:(po[e][2]||[]).slice()})}go.prototype.tokenize=function(e,t,r){const n=this.ruler.getRules(""),i=n.length,a=e.md.options.maxNesting;let s=t,c=!1;for(;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r||e.sCount[s]<e.blkIndent));){if(e.level>=a){e.line=r;break}const f=e.line;let p=!1;for(let g=0;g<i;g++)if(p=n[g](e,s,r,!1),p){if(f>=e.line)throw new Error("block rule didn't increment state.line");break}if(!p)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),s=e.line,s<r&&e.isEmpty(s)&&(c=!0,s++,e.line=s)}},go.prototype.parse=function(e,t,r,n){if(!e)return;const i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)},go.prototype.State=Kr;function Ni(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.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}Ni.prototype.pushPending=function(){const e=new Fr("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Ni.prototype.push=function(e,t,r){this.pending&&this.pushPending();const n=new Fr(e,t,r);let i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},Ni.prototype.scanDelims=function(e,t){const r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<r&&this.src.charCodeAt(a)===n;)a++;const s=a-e,c=a<r?this.src.charCodeAt(a):32,f=Mi(i)||Bi(String.fromCharCode(i)),p=Mi(c)||Bi(String.fromCharCode(c)),g=Ti(i),m=Ti(c),w=!m&&(!p||g||f),k=!g&&(!f||m||p);return{can_open:w&&(t||!k||f),can_close:k&&(t||!w||p),length:s}},Ni.prototype.Token=Fr;function z8(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 I8(e,t){let r=e.pos;for(;r<e.posMax&&!z8(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}const O8=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function L8(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const i=e.pending.match(O8);if(!i)return!1;const a=i[1],s=e.md.linkify.matchAtStart(e.src.slice(r-a.length));if(!s)return!1;let c=s.url;if(c.length<=a.length)return!1;let f=c.length;for(;f>0&&c.charCodeAt(f-1)===42;)f--;f!==c.length&&(c=c.slice(0,f));const p=e.md.normalizeLink(c);if(!e.md.validateLink(p))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const g=e.push("link_open","a",1);g.attrs=[["href",p]],g.markup="linkify",g.info="auto";const m=e.push("text","",0);m.content=e.md.normalizeLinkText(c);const w=e.push("link_close","a",-1);w.markup="linkify",w.info="auto"}return e.pos+=c.length-a.length,!0}function R8(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let a=n-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),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(r++;r<i&&Et(e.src.charCodeAt(r));)r++;return e.pos=r,!0}const Zl=[];for(let e=0;e<256;e++)Zl.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Zl[e.charCodeAt(0)]=1});function P8(e,t){let r=e.pos;const n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let i=e.src.charCodeAt(r);if(i===10){for(t||e.push("hardbreak","br",0),r++;r<n&&(i=e.src.charCodeAt(r),!!Et(i));)r++;return e.pos=r,!0}let a=e.src[r];if(i>=55296&&i<=56319&&r+1<n){const c=e.src.charCodeAt(r+1);c>=56320&&c<=57343&&(a+=e.src[r+1],r++)}const s="\\"+a;if(!t){const c=e.push("text_special","",0);i<256&&Zl[i]!==0?c.content=a:c.content=s,c.markup=s,c.info="escape"}return e.pos=r+1,!0}function V8(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const i=r;r++;const a=e.posMax;for(;r<a&&e.src.charCodeAt(r)===96;)r++;const s=e.src.slice(i,r),c=s.length;if(e.backticksScanned&&(e.backticks[c]||0)<=i)return t||(e.pending+=s),e.pos+=c,!0;let f=r,p;for(;(p=e.src.indexOf("`",f))!==-1;){for(f=p+1;f<a&&e.src.charCodeAt(f)===96;)f++;const g=f-p;if(g===c){if(!t){const m=e.push("code_inline","code",0);m.markup=s,m.content=e.src.slice(r,p).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=f,!0}e.backticks[g]=p}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=c,!0}function H8(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==126)return!1;const i=e.scanDelims(e.pos,!0);let a=i.length;const s=String.fromCharCode(n);if(a<2)return!1;let c;a%2&&(c=e.push("text","",0),c.content=s,a--);for(let f=0;f<a;f+=2)c=e.push("text","",0),c.content=s+s,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function d4(e,t){let r;const n=[],i=t.length;for(let a=0;a<i;a++){const s=t[a];if(s.marker!==126||s.end===-1)continue;const c=t[s.end];r=e.tokens[s.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=e.tokens[c.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",e.tokens[c.token-1].type==="text"&&e.tokens[c.token-1].content==="~"&&n.push(c.token-1)}for(;n.length;){const a=n.pop();let s=a+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,a!==s&&(r=e.tokens[s],e.tokens[s]=e.tokens[a],e.tokens[a]=r)}}function q8(e){const t=e.tokens_meta,r=e.tokens_meta.length;d4(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&d4(e,t[n].delimiters)}const f4={tokenize:H8,postProcess:q8};function j8(e,t){const r=e.pos,n=e.src.charCodeAt(r);if(t||n!==95&&n!==42)return!1;const i=e.scanDelims(e.pos,n===42);for(let a=0;a<i.length;a++){const s=e.push("text","",0);s.content=String.fromCharCode(n),e.delimiters.push({marker:n,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 h4(e,t){const r=t.length;for(let n=r-1;n>=0;n--){const i=t[n];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const a=t[i.end],s=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===a.token+1,c=String.fromCharCode(i.marker),f=e.tokens[i.token];f.type=s?"strong_open":"em_open",f.tag=s?"strong":"em",f.nesting=1,f.markup=s?c+c:c,f.content="";const p=e.tokens[a.token];p.type=s?"strong_close":"em_close",p.tag=s?"strong":"em",p.nesting=-1,p.markup=s?c+c:c,p.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}function $8(e){const t=e.tokens_meta,r=e.tokens_meta.length;h4(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&h4(e,t[n].delimiters)}const m4={tokenize:j8,postProcess:$8};function U8(e,t){let r,n,i,a,s="",c="",f=e.pos,p=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const g=e.pos,m=e.posMax,w=e.pos+1,k=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(k<0)return!1;let C=k+1;if(C<m&&e.src.charCodeAt(C)===40){for(p=!1,C++;C<m&&(r=e.src.charCodeAt(C),!(!Et(r)&&r!==10));C++);if(C>=m)return!1;if(f=C,i=e.md.helpers.parseLinkDestination(e.src,C,e.posMax),i.ok){for(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?C=i.pos:s="",f=C;C<m&&(r=e.src.charCodeAt(C),!(!Et(r)&&r!==10));C++);if(i=e.md.helpers.parseLinkTitle(e.src,C,e.posMax),C<m&&f!==C&&i.ok)for(c=i.str,C=i.pos;C<m&&(r=e.src.charCodeAt(C),!(!Et(r)&&r!==10));C++);}(C>=m||e.src.charCodeAt(C)!==41)&&(p=!0),C++}if(p){if(typeof e.env.references>"u")return!1;if(C<m&&e.src.charCodeAt(C)===91?(f=C+1,C=e.md.helpers.parseLinkLabel(e,C),C>=0?n=e.src.slice(f,C++):C=k+1):C=k+1,n||(n=e.src.slice(w,k)),a=e.env.references[ho(n)],!a)return e.pos=g,!1;s=a.href,c=a.title}if(!t){e.pos=w,e.posMax=k;const B=e.push("link_open","a",1),_=[["href",s]];B.attrs=_,c&&_.push(["title",c]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=C,e.posMax=m,!0}function W8(e,t){let r,n,i,a,s,c,f,p,g="";const m=e.pos,w=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const k=e.pos+2,C=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(C<0)return!1;if(a=C+1,a<w&&e.src.charCodeAt(a)===40){for(a++;a<w&&(r=e.src.charCodeAt(a),!(!Et(r)&&r!==10));a++);if(a>=w)return!1;for(p=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok&&(g=e.md.normalizeLink(c.str),e.md.validateLink(g)?a=c.pos:g=""),p=a;a<w&&(r=e.src.charCodeAt(a),!(!Et(r)&&r!==10));a++);if(c=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<w&&p!==a&&c.ok)for(f=c.str,a=c.pos;a<w&&(r=e.src.charCodeAt(a),!(!Et(r)&&r!==10));a++);else f="";if(a>=w||e.src.charCodeAt(a)!==41)return e.pos=m,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a<w&&e.src.charCodeAt(a)===91?(p=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?i=e.src.slice(p,a++):a=C+1):a=C+1,i||(i=e.src.slice(k,C)),s=e.env.references[ho(i)],!s)return e.pos=m,!1;g=s.href,f=s.title}if(!t){n=e.src.slice(k,C);const B=[];e.md.inline.parse(n,e.md,e.env,B);const _=e.push("image","img",0),T=[["src",g],["alt",""]];_.attrs=T,_.children=B,_.content=n,f&&T.push(["title",f])}return e.pos=a,e.posMax=w,!0}const G8=/^([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])?)*)$/,X8=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Y8(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;const s=e.src.charCodeAt(r);if(s===60)return!1;if(s===62)break}const a=e.src.slice(n+1,r);if(X8.test(a)){const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",s]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const p=e.push("link_close","a",-1);p.markup="autolink",p.info="auto"}return e.pos+=a.length+2,!0}if(G8.test(a)){const s=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(s))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",s]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(a);const p=e.push("link_close","a",-1);p.markup="autolink",p.info="auto"}return e.pos+=a.length+2,!0}return!1}function Z8(e){return/^<a[>\s]/i.test(e)}function K8(e){return/^<\/a\s*>/i.test(e)}function Q8(e){const t=e|32;return t>=97&&t<=122}function J8(e,t){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const i=e.src.charCodeAt(n+1);if(i!==33&&i!==63&&i!==47&&!Q8(i))return!1;const a=e.src.slice(n).match(F8);if(!a)return!1;if(!t){const s=e.push("html_inline","",0);s.content=a[0],Z8(s.content)&&e.linkLevel++,K8(s.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const ep=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,tp=/^&([a-z][a-z0-9]{1,31});/i;function rp(e,t){const r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){const a=e.src.slice(r).match(ep);if(a){if(!t){const s=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),c=e.push("text_special","",0);c.content=Wl(s)?fo(s):fo(65533),c.markup=a[0],c.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(r).match(tp);if(a){const s=J2(a[0]);if(s!==a[0]){if(!t){const c=e.push("text_special","",0);c.content=s,c.markup=a[0],c.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function p4(e){const t={},r=e.length;if(!r)return;let n=0,i=-2;const a=[];for(let s=0;s<r;s++){const c=e[s];if(a.push(0),(e[n].marker!==c.marker||i!==c.token-1)&&(n=s),i=c.token,c.length=c.length||0,!c.close)continue;t.hasOwnProperty(c.marker)||(t[c.marker]=[-1,-1,-1,-1,-1,-1]);const f=t[c.marker][(c.open?3:0)+c.length%3];let p=n-a[n]-1,g=p;for(;p>f;p-=a[p]+1){const m=e[p];if(m.marker===c.marker&&m.open&&m.end<0){let w=!1;if((m.close||c.open)&&(m.length+c.length)%3===0&&(m.length%3!==0||c.length%3!==0)&&(w=!0),!w){const k=p>0&&!e[p-1].open?a[p-1]+1:0;a[s]=s-p+k,a[p]=k,c.open=!1,m.end=s,m.close=!1,g=-1,i=-2;break}}}g!==-1&&(t[c.marker][(c.open?3:0)+(c.length||0)%3]=g)}}function np(e){const t=e.tokens_meta,r=e.tokens_meta.length;p4(e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&p4(t[n].delimiters)}function ap(e){let t,r,n=0;const i=e.tokens,a=e.tokens.length;for(t=r=0;t<a;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,i[t].type==="text"&&t+1<a&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}const Kl=[["text",I8],["linkify",L8],["newline",R8],["escape",P8],["backticks",V8],["strikethrough",f4.tokenize],["emphasis",m4.tokenize],["link",U8],["image",W8],["autolink",Y8],["html_inline",J8],["entity",rp]],Ql=[["balance_pairs",np],["strikethrough",f4.postProcess],["emphasis",m4.postProcess],["fragments_join",ap]];function _i(){this.ruler=new Y0;for(let e=0;e<Kl.length;e++)this.ruler.push(Kl[e][0],Kl[e][1]);this.ruler2=new Y0;for(let e=0;e<Ql.length;e++)this.ruler2.push(Ql[e][0],Ql[e][1])}_i.prototype.skipToken=function(e){const t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,a=e.cache;if(typeof a[t]<"u"){e.pos=a[t];return}let s=!1;if(e.level<i){for(let c=0;c<n;c++)if(e.level++,s=r[c](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,a[t]=e.pos},_i.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){const a=e.pos;let s=!1;if(e.level<i){for(let c=0;c<r;c++)if(s=t[c](e,!1),s){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},_i.prototype.parse=function(e,t,r,n){const i=new this.State(e,t,r,n);this.tokenize(i);const a=this.ruler2.getRules(""),s=a.length;for(let c=0;c<s;c++)a[c](i)},_i.prototype.State=Ni;function ip(e){const t={};e=e||{},t.src_Any=X2.source,t.src_Cc=Y2.source,t.src_Z=K2.source,t.src_P=ql.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 r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+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="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+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="(^|"+r+'|"|\\(|'+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 Jl(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function bo(e){return Object.prototype.toString.call(e)}function up(e){return bo(e)==="[object String]"}function op(e){return bo(e)==="[object Object]"}function sp(e){return bo(e)==="[object RegExp]"}function g4(e){return bo(e)==="[object Function]"}function lp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const b4={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function cp(e){return Object.keys(e||{}).reduce(function(t,r){return t||b4.hasOwnProperty(r)},!1)}const dp={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},fp="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]",hp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function mp(e){e.__index__=-1,e.__text_cache__=""}function pp(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function y4(){return function(e,t){t.normalize(e)}}function yo(e){const t=e.re=ip(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(fp),r.push(t.src_xn),t.src_tlds=r.join("|");function n(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function a(c,f){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+f)}Object.keys(e.__schemas__).forEach(function(c){const f=e.__schemas__[c];if(f===null)return;const p={validate:null,link:null};if(e.__compiled__[c]=p,op(f)){sp(f.validate)?p.validate=pp(f.validate):g4(f.validate)?p.validate=f.validate:a(c,f),g4(f.normalize)?p.normalize=f.normalize:f.normalize?a(c,f):p.normalize=y4();return}if(up(f)){i.push(c);return}a(c,f)}),i.forEach(function(c){e.__compiled__[e.__schemas__[c]]&&(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:y4()};const s=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(lp).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","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"),mp(e)}function gp(e,t){const r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function ec(e,t){const r=new gp(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function nr(e,t){if(!(this instanceof nr))return new nr(e,t);t||cp(e)&&(t=e,e={}),this.__opts__=Jl({},b4,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Jl({},dp,e),this.__compiled__={},this.__tlds__=hp,this.__tlds_replaced__=!1,this.re={},yo(this)}nr.prototype.add=function(t,r){return this.__schemas__[t]=r,yo(this),this},nr.prototype.set=function(t){return this.__opts__=Jl(this.__opts__,t),this},nr.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,i,a,s,c,f,p,g;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(r=f.exec(t))!==null;)if(a=this.testSchemaAt(t,r[2],f.lastIndex),a){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(g=t.indexOf("@"),g>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,c=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=c))),this.__index__>=0},nr.prototype.pretest=function(t){return this.re.pretest.test(t)},nr.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0},nr.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(ec(this,n)),n=this.__last_index__);let i=n?t.slice(n):t;for(;this.test(i);)r.push(ec(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},nr.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,ec(this,0)):null},nr.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,a){return n!==a[i-1]}).reverse(),yo(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,yo(this),this)},nr.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},nr.prototype.onCompile=function(){};const Ha=2147483647,Qr=36,tc=1,zi=26,bp=38,yp=700,v4=72,w4=128,x4="-",vp=/^xn--/,wp=/[^\0-\x7F]/,xp=/[\x2E\u3002\uFF0E\uFF61]/g,Ap={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},rc=Qr-tc,Jr=Math.floor,nc=String.fromCharCode;function Vn(e){throw new RangeError(Ap[e])}function Dp(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function A4(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(xp,".");const i=e.split("."),a=Dp(i,t).join(".");return n+a}function D4(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const a=e.charCodeAt(r++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}const kp=e=>String.fromCodePoint(...e),Cp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Qr},k4=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},C4=function(e,t,r){let n=0;for(e=r?Jr(e/yp):e>>1,e+=Jr(e/t);e>rc*zi>>1;n+=Qr)e=Jr(e/rc);return Jr(n+(rc+1)*e/(e+bp))},S4=function(e){const t=[],r=e.length;let n=0,i=w4,a=v4,s=e.lastIndexOf(x4);s<0&&(s=0);for(let c=0;c<s;++c)e.charCodeAt(c)>=128&&Vn("not-basic"),t.push(e.charCodeAt(c));for(let c=s>0?s+1:0;c<r;){const f=n;for(let g=1,m=Qr;;m+=Qr){c>=r&&Vn("invalid-input");const w=Cp(e.charCodeAt(c++));w>=Qr&&Vn("invalid-input"),w>Jr((Ha-n)/g)&&Vn("overflow"),n+=w*g;const k=m<=a?tc:m>=a+zi?zi:m-a;if(w<k)break;const C=Qr-k;g>Jr(Ha/C)&&Vn("overflow"),g*=C}const p=t.length+1;a=C4(n-f,p,f==0),Jr(n/p)>Ha-i&&Vn("overflow"),i+=Jr(n/p),n%=p,t.splice(n++,0,i)}return String.fromCodePoint(...t)},E4=function(e){const t=[];e=D4(e);const r=e.length;let n=w4,i=0,a=v4;for(const f of e)f<128&&t.push(nc(f));const s=t.length;let c=s;for(s&&t.push(x4);c<r;){let f=Ha;for(const g of e)g>=n&&g<f&&(f=g);const p=c+1;f-n>Jr((Ha-i)/p)&&Vn("overflow"),i+=(f-n)*p,n=f;for(const g of e)if(g<n&&++i>Ha&&Vn("overflow"),g===n){let m=i;for(let w=Qr;;w+=Qr){const k=w<=a?tc:w>=a+zi?zi:w-a;if(m<k)break;const C=m-k,B=Qr-k;t.push(nc(k4(k+C%B,0))),m=Jr(C/B)}t.push(nc(k4(m,0))),a=C4(i,p,c===s),i=0,++c}++i,++n}return t.join("")},F4={version:"2.3.1",ucs2:{decode:D4,encode:kp},decode:S4,encode:E4,toASCII:function(e){return A4(e,function(t){return wp.test(t)?"xn--"+E4(t):t})},toUnicode:function(e){return A4(e,function(t){return vp.test(t)?S4(t.slice(4).toLowerCase()):t})}},Sp={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},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"]}}},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"]}}}},Ep=/^(vbscript|javascript|file|data):/,Fp=/^data:image\/(gif|png|jpeg|webp);/;function Tp(e){const t=e.trim().toLowerCase();return Ep.test(t)?Fp.test(t):!0}const T4=["http:","https:","mailto:"];function Bp(e){const t=Hl(e,!0);if(t.hostname&&(!t.protocol||T4.indexOf(t.protocol)>=0))try{t.hostname=F4.toASCII(t.hostname)}catch{}return Fi(Vl(t))}function Mp(e){const t=Hl(e,!0);if(t.hostname&&(!t.protocol||T4.indexOf(t.protocol)>=0))try{t.hostname=F4.toUnicode(t.hostname)}catch{}return La(Vl(t),La.defaultChars+"%")}function ar(e,t){if(!(this instanceof ar))return new ar(e,t);t||Ul(e)||(t=e||{},e="default"),this.inline=new _i,this.block=new go,this.core=new Xl,this.renderer=new Pa,this.linkify=new nr,this.validateLink=Tp,this.normalizeLink=Bp,this.normalizeLinkText=Mp,this.utils=q7,this.helpers=co({},W7),this.options={},this.configure(e),t&&this.set(t)}ar.prototype.set=function(e){return co(this.options,e),this},ar.prototype.configure=function(e){const t=this;if(Ul(e)){const r=e;if(e=Sp[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", 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(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},ar.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},ar.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},ar.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},ar.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},ar.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},ar.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},ar.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var B4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var N4={exports:{}},ac={exports:{}},_4;function Np(){return _4||(_4=1,function(e,t){(function(n,i){e.exports=i()})(typeof self<"u"?self:B4,function(){return function(){var r={};(function(){r.d=function(o,u){for(var l in u)r.o(u,l)&&!r.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:u[l]})}})(),function(){r.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)}}();var n={};r.d(n,{default:function(){return kw}});class i extends Error{constructor(u,l){let h="KaTeX parse error: "+u,b,D;const E=l&&l.loc;if(E&&E.start<=E.end){const I=E.lexer.input;b=E.start,D=E.end,b===I.length?h+=" at end of input: ":h+=" at position "+(b+1)+": ";const P=I.slice(b,D).replace(/[^]/g,"$&̲");let G;b>15?G="…"+I.slice(b-15,b):G=I.slice(0,b);let re;D+15<I.length?re=I.slice(D,D+15)+"…":re=I.slice(D),h+=G+P+re}super(h),this.name="ParseError",Object.setPrototypeOf(this,i.prototype),this.position=b,b!=null&&D!=null&&(this.length=D-b),this.rawMessage=u}}var a=i;const s=/([A-Z])/g,c=o=>o.replace(s,"-$1").toLowerCase(),f={"&":"&",">":">","<":"<",'"':""","'":"'"},p=/[&><"']/g,g=o=>String(o).replace(p,u=>f[u]),m=o=>o.type==="ordgroup"||o.type==="color"?o.body.length===1?m(o.body[0]):o:o.type==="font"?m(o.body):o,w=new Set(["mathord","textord","atom"]),k=o=>w.has(m(o).type),C=o=>{const u=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(o);return u?u[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(u[1])?null:u[1].toLowerCase():"_relative"},B={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:o=>"#"+o},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:(o,u)=>(u.push(o),u)},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:o=>Math.max(0,o),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:o=>Math.max(0,o),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:o=>Math.max(0,o),cli:"-e, --max-expand <n>",cliProcessor:o=>o==="Infinity"?1/0:parseInt(o)},globalGroup:{type:"boolean",cli:!1}};function _(o){if("default"in o)return o.default;const u=o.type,l=Array.isArray(u)?u[0]:u;if(typeof l!="string")return l.enum[0];switch(l){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class T{constructor(u){u===void 0&&(u={}),u=u||{};for(const l of Object.keys(B)){const h=B[l],b=u[l];this[l]=b!==void 0?h.processor?h.processor(b):b:_(h)}}reportNonstrict(u,l,h){let b=this.strict;if(typeof b=="function"&&(b=b(u,l,h)),!(!b||b==="ignore")){if(b===!0||b==="error")throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+(l+" ["+u+"]"),h);b==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(l+" ["+u+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+b+"': "+l+" ["+u+"]"))}}useStrictBehavior(u,l,h){let b=this.strict;if(typeof b=="function")try{b=b(u,l,h)}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': "+(l+" ["+u+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+b+"': "+l+" ["+u+"]")),!1)}isTrusted(u){if("url"in u&&u.url&&!u.protocol){const h=C(u.url);if(h==null)return!1;u.protocol=h}return!!(typeof this.trust=="function"?this.trust(u):this.trust)}}class S{constructor(u,l,h){this.id=u,this.size=l,this.cramped=h}sup(){return ce[be[this.id]]}sub(){return ce[ae[this.id]]}fracNum(){return ce[xe[this.id]]}fracDen(){return ce[Se[this.id]]}cramp(){return ce[te[this.id]]}text(){return ce[ye[this.id]]}isTight(){return this.size>=2}}const F=0,z=1,R=2,$=3,Y=4,q=5,pe=6,he=7,ce=[new S(F,0,!1),new S(z,0,!0),new S(R,1,!1),new S($,1,!0),new S(Y,2,!1),new S(q,2,!0),new S(pe,3,!1),new S(he,3,!0)],be=[Y,q,Y,q,pe,he,pe,he],ae=[q,q,q,q,he,he,he,he],xe=[R,$,Y,q,pe,he,pe,he],Se=[$,$,q,q,he,he,he,he],te=[z,z,$,$,q,q,he,he],ye=[F,z,R,$,R,$,R,$];var ne={DISPLAY:ce[F],TEXT:ce[R],SCRIPT:ce[Y],SCRIPTSCRIPT:ce[pe]};const Ne=[{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 We(o){for(let u=0;u<Ne.length;u++){const l=Ne[u];for(let h=0;h<l.blocks.length;h++){const b=l.blocks[h];if(o>=b[0]&&o<=b[1])return l.name}}return null}const X=[];Ne.forEach(o=>o.blocks.forEach(u=>X.push(...u)));function Z(o){for(let u=0;u<X.length;u+=2)if(o>=X[u]&&o<=X[u+1])return!0;return!1}const Q=80,ue=function(o,u){return"M95,"+(622+o+u)+`
|
|
282
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
283
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
284
|
+
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
|
|
285
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
286
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
287
|
+
l`+o/2.075+" -"+o+`
|
|
288
|
+
c5.3,-9.3,12,-14,20,-14
|
|
289
|
+
H400000v`+(40+o)+`H845.2724
|
|
290
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
291
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
292
|
+
M`+(834+o)+" "+u+"h400000v"+(40+o)+"h-400000z"},fe=function(o,u){return"M263,"+(601+o+u)+`c0.7,0,18,39.7,52,119
|
|
293
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
294
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
295
|
+
l`+o/2.084+" -"+o+`
|
|
296
|
+
c4.7,-7.3,11,-11,19,-11
|
|
297
|
+
H40000v`+(40+o)+`H1012.3
|
|
298
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
299
|
+
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
|
|
300
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
301
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
302
|
+
M`+(1001+o)+" "+u+"h400000v"+(40+o)+"h-400000z"},ke=function(o,u){return"M983 "+(10+o+u)+`
|
|
303
|
+
l`+o/3.13+" -"+o+`
|
|
304
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+o)+`
|
|
305
|
+
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
|
|
306
|
+
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
|
|
307
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
308
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
309
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
310
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
311
|
+
M`+(1001+o)+" "+u+"h400000v"+(40+o)+"h-400000z"},ie=function(o,u){return"M424,"+(2398+o+u)+`
|
|
312
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
313
|
+
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
|
|
314
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
315
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
316
|
+
l`+o/4.223+" -"+o+`c4,-6.7,10,-10,18,-10 H400000
|
|
317
|
+
v`+(40+o)+`H1014.6
|
|
318
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
319
|
+
c-2,6,-10,9,-24,9
|
|
320
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+o)+" "+u+`
|
|
321
|
+
h400000v`+(40+o)+"h-400000z"},me=function(o,u){return"M473,"+(2713+o+u)+`
|
|
322
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+o/5.298+" -"+o+`
|
|
323
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+o)+`H1017.7
|
|
324
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
325
|
+
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
|
|
326
|
+
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
|
|
327
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
328
|
+
606zM`+(1001+o)+" "+u+"h400000v"+(40+o)+"H1017.7z"},ge=function(o){const u=o/2;return"M400000 "+o+" H0 L"+u+" 0 l65 45 L145 "+(o-80)+" H400000z"},Le=function(o,u,l){const h=l-54-u-o;return"M702 "+(o+u)+"H400000"+(40+o)+`
|
|
329
|
+
H742v`+h+`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
|
|
330
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
331
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
332
|
+
219 661 l218 661zM702 `+u+"H400000v"+(40+o)+"H742z"},Ye=function(o,u,l){u=1e3*u;let h="";switch(o){case"sqrtMain":h=ue(u,Q);break;case"sqrtSize1":h=fe(u,Q);break;case"sqrtSize2":h=ke(u,Q);break;case"sqrtSize3":h=ie(u,Q);break;case"sqrtSize4":h=me(u,Q);break;case"sqrtTall":h=Le(u,Q,l)}return h},Ke=function(o,u){switch(o){case"⎜":return"M291 0 H417 V"+u+" H291z M291 0 H417 V"+u+" H291z";case"∣":return"M145 0 H188 V"+u+" H145z M145 0 H188 V"+u+" H145z";case"∥":return"M145 0 H188 V"+u+" H145z M145 0 H188 V"+u+" H145z"+("M367 0 H410 V"+u+" H367z M367 0 H410 V"+u+" H367z");case"⎟":return"M457 0 H583 V"+u+" H457z M457 0 H583 V"+u+" H457z";case"⎢":return"M319 0 H403 V"+u+" H319z M319 0 H403 V"+u+" H319z";case"⎥":return"M263 0 H347 V"+u+" H263z M263 0 H347 V"+u+" H263z";case"⎪":return"M384 0 H504 V"+u+" H384z M384 0 H504 V"+u+" H384z";case"⏐":return"M312 0 H355 V"+u+" H312z M312 0 H355 V"+u+" H312z";case"‖":return"M257 0 H300 V"+u+" H257z M257 0 H300 V"+u+" H257z"+("M478 0 H521 V"+u+" H478z M478 0 H521 V"+u+" H478z");default:return""}},ut={doubleleftarrow:`M262 157
|
|
333
|
+
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
|
|
334
|
+
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
|
|
335
|
+
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
|
|
336
|
+
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
|
|
337
|
+
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
|
|
338
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
339
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
340
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
341
|
+
-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
|
|
342
|
+
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
|
|
343
|
+
-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
|
|
344
|
+
-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
|
|
345
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
346
|
+
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
|
|
347
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
348
|
+
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
|
|
349
|
+
-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
|
|
350
|
+
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
|
|
351
|
+
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
|
|
352
|
+
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
|
|
353
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
354
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
355
|
+
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
|
|
356
|
+
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
|
|
357
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
358
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
359
|
+
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
|
|
360
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
361
|
+
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
|
|
362
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
363
|
+
-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
|
|
364
|
+
-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
|
|
365
|
+
-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
|
|
366
|
+
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
|
|
367
|
+
-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
|
|
368
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
369
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
370
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
371
|
+
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
|
|
372
|
+
-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
|
|
373
|
+
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
|
|
374
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
375
|
+
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
|
|
376
|
+
-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
|
|
377
|
+
-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
|
|
378
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
379
|
+
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z
|
|
380
|
+
M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z
|
|
381
|
+
M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
382
|
+
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
383
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
384
|
+
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
|
|
385
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
386
|
+
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
387
|
+
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
|
|
388
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
389
|
+
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
|
|
390
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
391
|
+
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
|
|
392
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
393
|
+
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
|
|
394
|
+
-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
|
|
395
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
396
|
+
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
|
|
397
|
+
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
|
|
398
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
399
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
400
|
+
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
|
|
401
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
402
|
+
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
|
|
403
|
+
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
|
|
404
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
405
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
406
|
+
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
|
|
407
|
+
-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
|
|
408
|
+
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
|
|
409
|
+
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
|
|
410
|
+
-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
|
|
411
|
+
-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
|
|
412
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
413
|
+
-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
|
|
414
|
+
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
|
|
415
|
+
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
|
|
416
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
417
|
+
-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
|
|
418
|
+
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
|
|
419
|
+
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
|
|
420
|
+
-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
|
|
421
|
+
-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
|
|
422
|
+
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
|
|
423
|
+
-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
|
|
424
|
+
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
|
|
425
|
+
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
|
|
426
|
+
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
|
|
427
|
+
-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
|
|
428
|
+
-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
|
|
429
|
+
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
|
|
430
|
+
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
|
|
431
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
432
|
+
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
|
|
433
|
+
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
|
|
434
|
+
-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
|
|
435
|
+
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
|
|
436
|
+
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z
|
|
437
|
+
M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z
|
|
438
|
+
M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
439
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
440
|
+
-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
|
|
441
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
442
|
+
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
|
|
443
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
444
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
445
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
446
|
+
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
|
|
447
|
+
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
|
|
448
|
+
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
|
|
449
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
450
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
451
|
+
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
|
|
452
|
+
-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
|
|
453
|
+
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
|
|
454
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
455
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
456
|
+
-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
|
|
457
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
458
|
+
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
|
|
459
|
+
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
|
|
460
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
461
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
462
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
463
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
464
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
465
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
466
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
467
|
+
-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
|
|
468
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
469
|
+
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
|
|
470
|
+
-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
|
|
471
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
472
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
473
|
+
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
|
|
474
|
+
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
|
|
475
|
+
-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
|
|
476
|
+
-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
|
|
477
|
+
-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,
|
|
478
|
+
-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,
|
|
479
|
+
-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,
|
|
480
|
+
-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,
|
|
481
|
+
-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
|
|
482
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
483
|
+
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
|
|
484
|
+
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
|
|
485
|
+
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
|
|
486
|
+
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
|
|
487
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
488
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
489
|
+
-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
|
|
490
|
+
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
|
|
491
|
+
-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
|
|
492
|
+
-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
|
|
493
|
+
-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
|
|
494
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
495
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
496
|
+
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
|
|
497
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
498
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
499
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
500
|
+
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,
|
|
501
|
+
-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
|
|
502
|
+
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
|
|
503
|
+
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
|
|
504
|
+
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,
|
|
505
|
+
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,
|
|
506
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
507
|
+
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
|
|
508
|
+
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,
|
|
509
|
+
-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
|
|
510
|
+
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
|
|
511
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ot=function(o,u){switch(o){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+u+` v1759 h347 v-84
|
|
512
|
+
H403z M403 1759 V0 H319 V1759 v`+u+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+u+` v1759 H0 v84 H347z
|
|
513
|
+
M347 1759 V0 H263 V1759 v`+u+" v1759 h84z";case"vert":return"M145 15 v585 v"+u+` v585 c2.667,10,9.667,15,21,15
|
|
514
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
515
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+u+" v585 h43z";case"doublevert":return"M145 15 v585 v"+u+` v585 c2.667,10,9.667,15,21,15
|
|
516
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
517
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+u+` v585 h43z
|
|
518
|
+
M367 15 v585 v`+u+` v585 c2.667,10,9.667,15,21,15
|
|
519
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
520
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+u+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+u+` v1715 h263 v84 H319z
|
|
521
|
+
MM319 602 V0 H403 V602 v`+u+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+u+` v1799 H0 v-84 H319z
|
|
522
|
+
MM319 602 V0 H403 V602 v`+u+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+u+` v602 h84z
|
|
523
|
+
M403 1759 V0 H319 V1759 v`+u+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+u+` v602 h84z
|
|
524
|
+
M347 1759 V0 h-84 V1759 v`+u+" 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
|
|
525
|
+
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,
|
|
526
|
+
-36,557 l0,`+(u+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
527
|
+
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
|
|
528
|
+
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,
|
|
529
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
530
|
+
l0,-`+(u+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
531
|
+
-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,
|
|
532
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
533
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(u+9)+`
|
|
534
|
+
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
|
|
535
|
+
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
|
|
536
|
+
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
|
|
537
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
538
|
+
l0,-`+(u+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
539
|
+
-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 st{constructor(u){this.children=u,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(u){return this.classes.includes(u)}toNode(){const u=document.createDocumentFragment();for(let l=0;l<this.children.length;l++)u.appendChild(this.children[l].toNode());return u}toMarkup(){let u="";for(let l=0;l<this.children.length;l++)u+=this.children[l].toMarkup();return u}toText(){const u=l=>l.toText();return this.children.map(u).join("")}}const Xt={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},$0={ex:!0,em:!0,mu:!0},Jt=function(o){return typeof o!="string"&&(o=o.unit),o in Xt||o in $0||o==="ex"},ft=function(o,u){let l;if(o.unit in Xt)l=Xt[o.unit]/u.fontMetrics().ptPerEm/u.sizeMultiplier;else if(o.unit==="mu")l=u.fontMetrics().cssEmPerMu;else{let h;if(u.style.isTight()?h=u.havingStyle(u.style.text()):h=u,o.unit==="ex")l=h.fontMetrics().xHeight;else if(o.unit==="em")l=h.fontMetrics().quad;else throw new a("Invalid unit: '"+o.unit+"'");h!==u&&(l*=h.sizeMultiplier/u.sizeMultiplier)}return Math.min(o.number*l,u.maxSize)},Ce=function(o){return+o.toFixed(4)+"em"},dr=function(o){return o.filter(u=>u).join(" ")},Da=function(o,u,l){if(this.classes=o||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=l||{},u){u.style.isTight()&&this.classes.push("mtight");const h=u.getColor();h&&(this.style.color=h)}},Yn=function(o){const u=document.createElement(o);u.className=dr(this.classes);for(const l of Object.keys(this.style))u.style[l]=this.style[l];for(const l of Object.keys(this.attributes))u.setAttribute(l,this.attributes[l]);for(let l=0;l<this.children.length;l++)u.appendChild(this.children[l].toNode());return u},Zn=/[\s"'>/=\x00-\x1f]/,Vr=function(o){let u="<"+o;this.classes.length&&(u+=' class="'+g(dr(this.classes))+'"');let l="";for(const h of Object.keys(this.style))l+=c(h)+":"+this.style[h]+";";l&&(u+=' style="'+g(l)+'"');for(const h of Object.keys(this.attributes)){if(Zn.test(h))throw new a("Invalid attribute name '"+h+"'");u+=" "+h+'="'+g(this.attributes[h])+'"'}u+=">";for(let h=0;h<this.children.length;h++)u+=this.children[h].toMarkup();return u+="</"+o+">",u};class U0{constructor(u,l,h,b){Da.call(this,u,h,b),this.children=l||[]}setAttribute(u,l){this.attributes[u]=l}hasClass(u){return this.classes.includes(u)}toNode(){return Yn.call(this,"span")}toMarkup(){return Vr.call(this,"span")}}class C0{constructor(u,l,h,b){Da.call(this,l,b),this.children=h||[],this.setAttribute("href",u)}setAttribute(u,l){this.attributes[u]=l}hasClass(u){return this.classes.includes(u)}toNode(){return Yn.call(this,"a")}toMarkup(){return Vr.call(this,"a")}}class un{constructor(u,l,h){this.alt=l,this.src=u,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=h}hasClass(u){return this.classes.includes(u)}toNode(){const u=document.createElement("img");u.src=this.src,u.alt=this.alt,u.className="mord";for(const l of Object.keys(this.style))u.style[l]=this.style[l];return u}toMarkup(){let u='<img src="'+g(this.src)+'"'+(' alt="'+g(this.alt)+'"'),l="";for(const h of Object.keys(this.style))l+=c(h)+":"+this.style[h]+";";return l&&(u+=' style="'+g(l)+'"'),u+="'/>",u}}const Dn={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class B0{constructor(u,l,h,b,D,E,I,P){this.text=u,this.height=l||0,this.depth=h||0,this.italic=b||0,this.skew=D||0,this.width=E||0,this.classes=I||[],this.style=P||{},this.maxFontSize=0;const G=We(this.text.charCodeAt(0));G&&this.classes.push(G+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Dn[this.text])}hasClass(u){return this.classes.includes(u)}toNode(){const u=document.createTextNode(this.text);let l=null;this.italic>0&&(l=document.createElement("span"),l.style.marginRight=Ce(this.italic)),this.classes.length>0&&(l=l||document.createElement("span"),l.className=dr(this.classes));for(const h of Object.keys(this.style))l=l||document.createElement("span"),l.style[h]=this.style[h];return l?(l.appendChild(u),l):u}toMarkup(){let u=!1,l="<span";this.classes.length&&(u=!0,l+=' class="',l+=g(dr(this.classes)),l+='"');let h="";this.italic>0&&(h+="margin-right:"+Ce(this.italic)+";");for(const D of Object.keys(this.style))h+=c(D)+":"+this.style[D]+";";h&&(u=!0,l+=' style="'+g(h)+'"');const b=g(this.text);return u?(l+=">",l+=b,l+="</span>",l):b}}class fr{constructor(u,l){this.children=u||[],this.attributes=l||{}}toNode(){const l=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const h of Object.keys(this.attributes))l.setAttribute(h,this.attributes[h]);for(let h=0;h<this.children.length;h++)l.appendChild(this.children[h].toNode());return l}toMarkup(){let u='<svg xmlns="http://www.w3.org/2000/svg"';for(const l of Object.keys(this.attributes))u+=" "+l+'="'+g(this.attributes[l])+'"';u+=">";for(let l=0;l<this.children.length;l++)u+=this.children[l].toMarkup();return u+="</svg>",u}}class Hr{constructor(u,l){this.pathName=u,this.alternate=l}toNode(){const l=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?l.setAttribute("d",this.alternate):l.setAttribute("d",ut[this.pathName]),l}toMarkup(){return this.alternate?'<path d="'+g(this.alternate)+'"/>':'<path d="'+g(ut[this.pathName])+'"/>'}}class Kn{constructor(u){this.attributes=u||{}}toNode(){const l=document.createElementNS("http://www.w3.org/2000/svg","line");for(const h of Object.keys(this.attributes))l.setAttribute(h,this.attributes[h]);return l}toMarkup(){let u="<line";for(const l of Object.keys(this.attributes))u+=" "+l+'="'+g(this.attributes[l])+'"';return u+="/>",u}}function oi(o){if(o instanceof B0)return o;throw new Error("Expected symbolNode but got "+String(o)+".")}function qr(o){if(o instanceof U0)return o;throw new Error("Expected span<HtmlDomNode> but got "+String(o)+".")}const Qn=o=>o instanceof U0||o instanceof C0||o instanceof st;var K0={"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 Jn={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]},us={Å:"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 si(o,u){K0[o]=u}function ea(o,u,l){if(!K0[u])throw new Error("Font metrics not found for font: "+u+".");let h=o.charCodeAt(0),b=K0[u][h];if(!b&&o[0]in us&&(h=us[o[0]].charCodeAt(0),b=K0[u][h]),!b&&l==="text"&&Z(h)&&(b=K0[u][77]),b)return{depth:b[0],height:b[1],italic:b[2],skew:b[3],width:b[4]}}const gu={};function ka(o){let u;if(o>=5?u=0:o>=3?u=1:u=2,!gu[u]){const l=gu[u]={cssEmPerMu:Jn.quad[u]/18};for(const h in Jn)Jn.hasOwnProperty(h)&&(l[h]=Jn[h][u])}return gu[u]}const Kc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Qc={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Vt={math:{},text:{}};var kt=Vt;function y(o,u,l,h,b,D){Vt[o][b]={font:u,group:l,replace:h},D&&h&&(Vt[o][h]=Vt[o][b])}const x="math",we="text",M="main",H="ams",Tt="accent-token",ze="bin",$t="close",kn="inner",Ge="mathord",Ht="op-token",M0="open",W0="punct",U="rel",wr="spacing",J="textord";y(x,M,U,"≡","\\equiv",!0),y(x,M,U,"≺","\\prec",!0),y(x,M,U,"≻","\\succ",!0),y(x,M,U,"∼","\\sim",!0),y(x,M,U,"⊥","\\perp"),y(x,M,U,"⪯","\\preceq",!0),y(x,M,U,"⪰","\\succeq",!0),y(x,M,U,"≃","\\simeq",!0),y(x,M,U,"∣","\\mid",!0),y(x,M,U,"≪","\\ll",!0),y(x,M,U,"≫","\\gg",!0),y(x,M,U,"≍","\\asymp",!0),y(x,M,U,"∥","\\parallel"),y(x,M,U,"⋈","\\bowtie",!0),y(x,M,U,"⌣","\\smile",!0),y(x,M,U,"⊑","\\sqsubseteq",!0),y(x,M,U,"⊒","\\sqsupseteq",!0),y(x,M,U,"≐","\\doteq",!0),y(x,M,U,"⌢","\\frown",!0),y(x,M,U,"∋","\\ni",!0),y(x,M,U,"∝","\\propto",!0),y(x,M,U,"⊢","\\vdash",!0),y(x,M,U,"⊣","\\dashv",!0),y(x,M,U,"∋","\\owns"),y(x,M,W0,".","\\ldotp"),y(x,M,W0,"⋅","\\cdotp"),y(x,M,W0,"⋅","·"),y(we,M,J,"⋅","·"),y(x,M,J,"#","\\#"),y(we,M,J,"#","\\#"),y(x,M,J,"&","\\&"),y(we,M,J,"&","\\&"),y(x,M,J,"ℵ","\\aleph",!0),y(x,M,J,"∀","\\forall",!0),y(x,M,J,"ℏ","\\hbar",!0),y(x,M,J,"∃","\\exists",!0),y(x,M,J,"∇","\\nabla",!0),y(x,M,J,"♭","\\flat",!0),y(x,M,J,"ℓ","\\ell",!0),y(x,M,J,"♮","\\natural",!0),y(x,M,J,"♣","\\clubsuit",!0),y(x,M,J,"℘","\\wp",!0),y(x,M,J,"♯","\\sharp",!0),y(x,M,J,"♢","\\diamondsuit",!0),y(x,M,J,"ℜ","\\Re",!0),y(x,M,J,"♡","\\heartsuit",!0),y(x,M,J,"ℑ","\\Im",!0),y(x,M,J,"♠","\\spadesuit",!0),y(x,M,J,"§","\\S",!0),y(we,M,J,"§","\\S"),y(x,M,J,"¶","\\P",!0),y(we,M,J,"¶","\\P"),y(x,M,J,"†","\\dag"),y(we,M,J,"†","\\dag"),y(we,M,J,"†","\\textdagger"),y(x,M,J,"‡","\\ddag"),y(we,M,J,"‡","\\ddag"),y(we,M,J,"‡","\\textdaggerdbl"),y(x,M,$t,"⎱","\\rmoustache",!0),y(x,M,M0,"⎰","\\lmoustache",!0),y(x,M,$t,"⟯","\\rgroup",!0),y(x,M,M0,"⟮","\\lgroup",!0),y(x,M,ze,"∓","\\mp",!0),y(x,M,ze,"⊖","\\ominus",!0),y(x,M,ze,"⊎","\\uplus",!0),y(x,M,ze,"⊓","\\sqcap",!0),y(x,M,ze,"∗","\\ast"),y(x,M,ze,"⊔","\\sqcup",!0),y(x,M,ze,"◯","\\bigcirc",!0),y(x,M,ze,"∙","\\bullet",!0),y(x,M,ze,"‡","\\ddagger"),y(x,M,ze,"≀","\\wr",!0),y(x,M,ze,"⨿","\\amalg"),y(x,M,ze,"&","\\And"),y(x,M,U,"⟵","\\longleftarrow",!0),y(x,M,U,"⇐","\\Leftarrow",!0),y(x,M,U,"⟸","\\Longleftarrow",!0),y(x,M,U,"⟶","\\longrightarrow",!0),y(x,M,U,"⇒","\\Rightarrow",!0),y(x,M,U,"⟹","\\Longrightarrow",!0),y(x,M,U,"↔","\\leftrightarrow",!0),y(x,M,U,"⟷","\\longleftrightarrow",!0),y(x,M,U,"⇔","\\Leftrightarrow",!0),y(x,M,U,"⟺","\\Longleftrightarrow",!0),y(x,M,U,"↦","\\mapsto",!0),y(x,M,U,"⟼","\\longmapsto",!0),y(x,M,U,"↗","\\nearrow",!0),y(x,M,U,"↩","\\hookleftarrow",!0),y(x,M,U,"↪","\\hookrightarrow",!0),y(x,M,U,"↘","\\searrow",!0),y(x,M,U,"↼","\\leftharpoonup",!0),y(x,M,U,"⇀","\\rightharpoonup",!0),y(x,M,U,"↙","\\swarrow",!0),y(x,M,U,"↽","\\leftharpoondown",!0),y(x,M,U,"⇁","\\rightharpoondown",!0),y(x,M,U,"↖","\\nwarrow",!0),y(x,M,U,"⇌","\\rightleftharpoons",!0),y(x,H,U,"≮","\\nless",!0),y(x,H,U,"","\\@nleqslant"),y(x,H,U,"","\\@nleqq"),y(x,H,U,"⪇","\\lneq",!0),y(x,H,U,"≨","\\lneqq",!0),y(x,H,U,"","\\@lvertneqq"),y(x,H,U,"⋦","\\lnsim",!0),y(x,H,U,"⪉","\\lnapprox",!0),y(x,H,U,"⊀","\\nprec",!0),y(x,H,U,"⋠","\\npreceq",!0),y(x,H,U,"⋨","\\precnsim",!0),y(x,H,U,"⪹","\\precnapprox",!0),y(x,H,U,"≁","\\nsim",!0),y(x,H,U,"","\\@nshortmid"),y(x,H,U,"∤","\\nmid",!0),y(x,H,U,"⊬","\\nvdash",!0),y(x,H,U,"⊭","\\nvDash",!0),y(x,H,U,"⋪","\\ntriangleleft"),y(x,H,U,"⋬","\\ntrianglelefteq",!0),y(x,H,U,"⊊","\\subsetneq",!0),y(x,H,U,"","\\@varsubsetneq"),y(x,H,U,"⫋","\\subsetneqq",!0),y(x,H,U,"","\\@varsubsetneqq"),y(x,H,U,"≯","\\ngtr",!0),y(x,H,U,"","\\@ngeqslant"),y(x,H,U,"","\\@ngeqq"),y(x,H,U,"⪈","\\gneq",!0),y(x,H,U,"≩","\\gneqq",!0),y(x,H,U,"","\\@gvertneqq"),y(x,H,U,"⋧","\\gnsim",!0),y(x,H,U,"⪊","\\gnapprox",!0),y(x,H,U,"⊁","\\nsucc",!0),y(x,H,U,"⋡","\\nsucceq",!0),y(x,H,U,"⋩","\\succnsim",!0),y(x,H,U,"⪺","\\succnapprox",!0),y(x,H,U,"≆","\\ncong",!0),y(x,H,U,"","\\@nshortparallel"),y(x,H,U,"∦","\\nparallel",!0),y(x,H,U,"⊯","\\nVDash",!0),y(x,H,U,"⋫","\\ntriangleright"),y(x,H,U,"⋭","\\ntrianglerighteq",!0),y(x,H,U,"","\\@nsupseteqq"),y(x,H,U,"⊋","\\supsetneq",!0),y(x,H,U,"","\\@varsupsetneq"),y(x,H,U,"⫌","\\supsetneqq",!0),y(x,H,U,"","\\@varsupsetneqq"),y(x,H,U,"⊮","\\nVdash",!0),y(x,H,U,"⪵","\\precneqq",!0),y(x,H,U,"⪶","\\succneqq",!0),y(x,H,U,"","\\@nsubseteqq"),y(x,H,ze,"⊴","\\unlhd"),y(x,H,ze,"⊵","\\unrhd"),y(x,H,U,"↚","\\nleftarrow",!0),y(x,H,U,"↛","\\nrightarrow",!0),y(x,H,U,"⇍","\\nLeftarrow",!0),y(x,H,U,"⇏","\\nRightarrow",!0),y(x,H,U,"↮","\\nleftrightarrow",!0),y(x,H,U,"⇎","\\nLeftrightarrow",!0),y(x,H,U,"△","\\vartriangle"),y(x,H,J,"ℏ","\\hslash"),y(x,H,J,"▽","\\triangledown"),y(x,H,J,"◊","\\lozenge"),y(x,H,J,"Ⓢ","\\circledS"),y(x,H,J,"®","\\circledR"),y(we,H,J,"®","\\circledR"),y(x,H,J,"∡","\\measuredangle",!0),y(x,H,J,"∄","\\nexists"),y(x,H,J,"℧","\\mho"),y(x,H,J,"Ⅎ","\\Finv",!0),y(x,H,J,"⅁","\\Game",!0),y(x,H,J,"‵","\\backprime"),y(x,H,J,"▲","\\blacktriangle"),y(x,H,J,"▼","\\blacktriangledown"),y(x,H,J,"■","\\blacksquare"),y(x,H,J,"⧫","\\blacklozenge"),y(x,H,J,"★","\\bigstar"),y(x,H,J,"∢","\\sphericalangle",!0),y(x,H,J,"∁","\\complement",!0),y(x,H,J,"ð","\\eth",!0),y(we,M,J,"ð","ð"),y(x,H,J,"╱","\\diagup"),y(x,H,J,"╲","\\diagdown"),y(x,H,J,"□","\\square"),y(x,H,J,"□","\\Box"),y(x,H,J,"◊","\\Diamond"),y(x,H,J,"¥","\\yen",!0),y(we,H,J,"¥","\\yen",!0),y(x,H,J,"✓","\\checkmark",!0),y(we,H,J,"✓","\\checkmark"),y(x,H,J,"ℶ","\\beth",!0),y(x,H,J,"ℸ","\\daleth",!0),y(x,H,J,"ℷ","\\gimel",!0),y(x,H,J,"ϝ","\\digamma",!0),y(x,H,J,"ϰ","\\varkappa"),y(x,H,M0,"┌","\\@ulcorner",!0),y(x,H,$t,"┐","\\@urcorner",!0),y(x,H,M0,"└","\\@llcorner",!0),y(x,H,$t,"┘","\\@lrcorner",!0),y(x,H,U,"≦","\\leqq",!0),y(x,H,U,"⩽","\\leqslant",!0),y(x,H,U,"⪕","\\eqslantless",!0),y(x,H,U,"≲","\\lesssim",!0),y(x,H,U,"⪅","\\lessapprox",!0),y(x,H,U,"≊","\\approxeq",!0),y(x,H,ze,"⋖","\\lessdot"),y(x,H,U,"⋘","\\lll",!0),y(x,H,U,"≶","\\lessgtr",!0),y(x,H,U,"⋚","\\lesseqgtr",!0),y(x,H,U,"⪋","\\lesseqqgtr",!0),y(x,H,U,"≑","\\doteqdot"),y(x,H,U,"≓","\\risingdotseq",!0),y(x,H,U,"≒","\\fallingdotseq",!0),y(x,H,U,"∽","\\backsim",!0),y(x,H,U,"⋍","\\backsimeq",!0),y(x,H,U,"⫅","\\subseteqq",!0),y(x,H,U,"⋐","\\Subset",!0),y(x,H,U,"⊏","\\sqsubset",!0),y(x,H,U,"≼","\\preccurlyeq",!0),y(x,H,U,"⋞","\\curlyeqprec",!0),y(x,H,U,"≾","\\precsim",!0),y(x,H,U,"⪷","\\precapprox",!0),y(x,H,U,"⊲","\\vartriangleleft"),y(x,H,U,"⊴","\\trianglelefteq"),y(x,H,U,"⊨","\\vDash",!0),y(x,H,U,"⊪","\\Vvdash",!0),y(x,H,U,"⌣","\\smallsmile"),y(x,H,U,"⌢","\\smallfrown"),y(x,H,U,"≏","\\bumpeq",!0),y(x,H,U,"≎","\\Bumpeq",!0),y(x,H,U,"≧","\\geqq",!0),y(x,H,U,"⩾","\\geqslant",!0),y(x,H,U,"⪖","\\eqslantgtr",!0),y(x,H,U,"≳","\\gtrsim",!0),y(x,H,U,"⪆","\\gtrapprox",!0),y(x,H,ze,"⋗","\\gtrdot"),y(x,H,U,"⋙","\\ggg",!0),y(x,H,U,"≷","\\gtrless",!0),y(x,H,U,"⋛","\\gtreqless",!0),y(x,H,U,"⪌","\\gtreqqless",!0),y(x,H,U,"≖","\\eqcirc",!0),y(x,H,U,"≗","\\circeq",!0),y(x,H,U,"≜","\\triangleq",!0),y(x,H,U,"∼","\\thicksim"),y(x,H,U,"≈","\\thickapprox"),y(x,H,U,"⫆","\\supseteqq",!0),y(x,H,U,"⋑","\\Supset",!0),y(x,H,U,"⊐","\\sqsupset",!0),y(x,H,U,"≽","\\succcurlyeq",!0),y(x,H,U,"⋟","\\curlyeqsucc",!0),y(x,H,U,"≿","\\succsim",!0),y(x,H,U,"⪸","\\succapprox",!0),y(x,H,U,"⊳","\\vartriangleright"),y(x,H,U,"⊵","\\trianglerighteq"),y(x,H,U,"⊩","\\Vdash",!0),y(x,H,U,"∣","\\shortmid"),y(x,H,U,"∥","\\shortparallel"),y(x,H,U,"≬","\\between",!0),y(x,H,U,"⋔","\\pitchfork",!0),y(x,H,U,"∝","\\varpropto"),y(x,H,U,"◀","\\blacktriangleleft"),y(x,H,U,"∴","\\therefore",!0),y(x,H,U,"∍","\\backepsilon"),y(x,H,U,"▶","\\blacktriangleright"),y(x,H,U,"∵","\\because",!0),y(x,H,U,"⋘","\\llless"),y(x,H,U,"⋙","\\gggtr"),y(x,H,ze,"⊲","\\lhd"),y(x,H,ze,"⊳","\\rhd"),y(x,H,U,"≂","\\eqsim",!0),y(x,M,U,"⋈","\\Join"),y(x,H,U,"≑","\\Doteq",!0),y(x,H,ze,"∔","\\dotplus",!0),y(x,H,ze,"∖","\\smallsetminus"),y(x,H,ze,"⋒","\\Cap",!0),y(x,H,ze,"⋓","\\Cup",!0),y(x,H,ze,"⩞","\\doublebarwedge",!0),y(x,H,ze,"⊟","\\boxminus",!0),y(x,H,ze,"⊞","\\boxplus",!0),y(x,H,ze,"⋇","\\divideontimes",!0),y(x,H,ze,"⋉","\\ltimes",!0),y(x,H,ze,"⋊","\\rtimes",!0),y(x,H,ze,"⋋","\\leftthreetimes",!0),y(x,H,ze,"⋌","\\rightthreetimes",!0),y(x,H,ze,"⋏","\\curlywedge",!0),y(x,H,ze,"⋎","\\curlyvee",!0),y(x,H,ze,"⊝","\\circleddash",!0),y(x,H,ze,"⊛","\\circledast",!0),y(x,H,ze,"⋅","\\centerdot"),y(x,H,ze,"⊺","\\intercal",!0),y(x,H,ze,"⋒","\\doublecap"),y(x,H,ze,"⋓","\\doublecup"),y(x,H,ze,"⊠","\\boxtimes",!0),y(x,H,U,"⇢","\\dashrightarrow",!0),y(x,H,U,"⇠","\\dashleftarrow",!0),y(x,H,U,"⇇","\\leftleftarrows",!0),y(x,H,U,"⇆","\\leftrightarrows",!0),y(x,H,U,"⇚","\\Lleftarrow",!0),y(x,H,U,"↞","\\twoheadleftarrow",!0),y(x,H,U,"↢","\\leftarrowtail",!0),y(x,H,U,"↫","\\looparrowleft",!0),y(x,H,U,"⇋","\\leftrightharpoons",!0),y(x,H,U,"↶","\\curvearrowleft",!0),y(x,H,U,"↺","\\circlearrowleft",!0),y(x,H,U,"↰","\\Lsh",!0),y(x,H,U,"⇈","\\upuparrows",!0),y(x,H,U,"↿","\\upharpoonleft",!0),y(x,H,U,"⇃","\\downharpoonleft",!0),y(x,M,U,"⊶","\\origof",!0),y(x,M,U,"⊷","\\imageof",!0),y(x,H,U,"⊸","\\multimap",!0),y(x,H,U,"↭","\\leftrightsquigarrow",!0),y(x,H,U,"⇉","\\rightrightarrows",!0),y(x,H,U,"⇄","\\rightleftarrows",!0),y(x,H,U,"↠","\\twoheadrightarrow",!0),y(x,H,U,"↣","\\rightarrowtail",!0),y(x,H,U,"↬","\\looparrowright",!0),y(x,H,U,"↷","\\curvearrowright",!0),y(x,H,U,"↻","\\circlearrowright",!0),y(x,H,U,"↱","\\Rsh",!0),y(x,H,U,"⇊","\\downdownarrows",!0),y(x,H,U,"↾","\\upharpoonright",!0),y(x,H,U,"⇂","\\downharpoonright",!0),y(x,H,U,"⇝","\\rightsquigarrow",!0),y(x,H,U,"⇝","\\leadsto"),y(x,H,U,"⇛","\\Rrightarrow",!0),y(x,H,U,"↾","\\restriction"),y(x,M,J,"‘","`"),y(x,M,J,"$","\\$"),y(we,M,J,"$","\\$"),y(we,M,J,"$","\\textdollar"),y(x,M,J,"%","\\%"),y(we,M,J,"%","\\%"),y(x,M,J,"_","\\_"),y(we,M,J,"_","\\_"),y(we,M,J,"_","\\textunderscore"),y(x,M,J,"∠","\\angle",!0),y(x,M,J,"∞","\\infty",!0),y(x,M,J,"′","\\prime"),y(x,M,J,"△","\\triangle"),y(x,M,J,"Γ","\\Gamma",!0),y(x,M,J,"Δ","\\Delta",!0),y(x,M,J,"Θ","\\Theta",!0),y(x,M,J,"Λ","\\Lambda",!0),y(x,M,J,"Ξ","\\Xi",!0),y(x,M,J,"Π","\\Pi",!0),y(x,M,J,"Σ","\\Sigma",!0),y(x,M,J,"Υ","\\Upsilon",!0),y(x,M,J,"Φ","\\Phi",!0),y(x,M,J,"Ψ","\\Psi",!0),y(x,M,J,"Ω","\\Omega",!0),y(x,M,J,"A","Α"),y(x,M,J,"B","Β"),y(x,M,J,"E","Ε"),y(x,M,J,"Z","Ζ"),y(x,M,J,"H","Η"),y(x,M,J,"I","Ι"),y(x,M,J,"K","Κ"),y(x,M,J,"M","Μ"),y(x,M,J,"N","Ν"),y(x,M,J,"O","Ο"),y(x,M,J,"P","Ρ"),y(x,M,J,"T","Τ"),y(x,M,J,"X","Χ"),y(x,M,J,"¬","\\neg",!0),y(x,M,J,"¬","\\lnot"),y(x,M,J,"⊤","\\top"),y(x,M,J,"⊥","\\bot"),y(x,M,J,"∅","\\emptyset"),y(x,H,J,"∅","\\varnothing"),y(x,M,Ge,"α","\\alpha",!0),y(x,M,Ge,"β","\\beta",!0),y(x,M,Ge,"γ","\\gamma",!0),y(x,M,Ge,"δ","\\delta",!0),y(x,M,Ge,"ϵ","\\epsilon",!0),y(x,M,Ge,"ζ","\\zeta",!0),y(x,M,Ge,"η","\\eta",!0),y(x,M,Ge,"θ","\\theta",!0),y(x,M,Ge,"ι","\\iota",!0),y(x,M,Ge,"κ","\\kappa",!0),y(x,M,Ge,"λ","\\lambda",!0),y(x,M,Ge,"μ","\\mu",!0),y(x,M,Ge,"ν","\\nu",!0),y(x,M,Ge,"ξ","\\xi",!0),y(x,M,Ge,"ο","\\omicron",!0),y(x,M,Ge,"π","\\pi",!0),y(x,M,Ge,"ρ","\\rho",!0),y(x,M,Ge,"σ","\\sigma",!0),y(x,M,Ge,"τ","\\tau",!0),y(x,M,Ge,"υ","\\upsilon",!0),y(x,M,Ge,"ϕ","\\phi",!0),y(x,M,Ge,"χ","\\chi",!0),y(x,M,Ge,"ψ","\\psi",!0),y(x,M,Ge,"ω","\\omega",!0),y(x,M,Ge,"ε","\\varepsilon",!0),y(x,M,Ge,"ϑ","\\vartheta",!0),y(x,M,Ge,"ϖ","\\varpi",!0),y(x,M,Ge,"ϱ","\\varrho",!0),y(x,M,Ge,"ς","\\varsigma",!0),y(x,M,Ge,"φ","\\varphi",!0),y(x,M,ze,"∗","*",!0),y(x,M,ze,"+","+"),y(x,M,ze,"−","-",!0),y(x,M,ze,"⋅","\\cdot",!0),y(x,M,ze,"∘","\\circ",!0),y(x,M,ze,"÷","\\div",!0),y(x,M,ze,"±","\\pm",!0),y(x,M,ze,"×","\\times",!0),y(x,M,ze,"∩","\\cap",!0),y(x,M,ze,"∪","\\cup",!0),y(x,M,ze,"∖","\\setminus",!0),y(x,M,ze,"∧","\\land"),y(x,M,ze,"∨","\\lor"),y(x,M,ze,"∧","\\wedge",!0),y(x,M,ze,"∨","\\vee",!0),y(x,M,J,"√","\\surd"),y(x,M,M0,"⟨","\\langle",!0),y(x,M,M0,"∣","\\lvert"),y(x,M,M0,"∥","\\lVert"),y(x,M,$t,"?","?"),y(x,M,$t,"!","!"),y(x,M,$t,"⟩","\\rangle",!0),y(x,M,$t,"∣","\\rvert"),y(x,M,$t,"∥","\\rVert"),y(x,M,U,"=","="),y(x,M,U,":",":"),y(x,M,U,"≈","\\approx",!0),y(x,M,U,"≅","\\cong",!0),y(x,M,U,"≥","\\ge"),y(x,M,U,"≥","\\geq",!0),y(x,M,U,"←","\\gets"),y(x,M,U,">","\\gt",!0),y(x,M,U,"∈","\\in",!0),y(x,M,U,"","\\@not"),y(x,M,U,"⊂","\\subset",!0),y(x,M,U,"⊃","\\supset",!0),y(x,M,U,"⊆","\\subseteq",!0),y(x,M,U,"⊇","\\supseteq",!0),y(x,H,U,"⊈","\\nsubseteq",!0),y(x,H,U,"⊉","\\nsupseteq",!0),y(x,M,U,"⊨","\\models"),y(x,M,U,"←","\\leftarrow",!0),y(x,M,U,"≤","\\le"),y(x,M,U,"≤","\\leq",!0),y(x,M,U,"<","\\lt",!0),y(x,M,U,"→","\\rightarrow",!0),y(x,M,U,"→","\\to"),y(x,H,U,"≱","\\ngeq",!0),y(x,H,U,"≰","\\nleq",!0),y(x,M,wr," ","\\ "),y(x,M,wr," ","\\space"),y(x,M,wr," ","\\nobreakspace"),y(we,M,wr," ","\\ "),y(we,M,wr," "," "),y(we,M,wr," ","\\space"),y(we,M,wr," ","\\nobreakspace"),y(x,M,wr,null,"\\nobreak"),y(x,M,wr,null,"\\allowbreak"),y(x,M,W0,",",","),y(x,M,W0,";",";"),y(x,H,ze,"⊼","\\barwedge",!0),y(x,H,ze,"⊻","\\veebar",!0),y(x,M,ze,"⊙","\\odot",!0),y(x,M,ze,"⊕","\\oplus",!0),y(x,M,ze,"⊗","\\otimes",!0),y(x,M,J,"∂","\\partial",!0),y(x,M,ze,"⊘","\\oslash",!0),y(x,H,ze,"⊚","\\circledcirc",!0),y(x,H,ze,"⊡","\\boxdot",!0),y(x,M,ze,"△","\\bigtriangleup"),y(x,M,ze,"▽","\\bigtriangledown"),y(x,M,ze,"†","\\dagger"),y(x,M,ze,"⋄","\\diamond"),y(x,M,ze,"⋆","\\star"),y(x,M,ze,"◃","\\triangleleft"),y(x,M,ze,"▹","\\triangleright"),y(x,M,M0,"{","\\{"),y(we,M,J,"{","\\{"),y(we,M,J,"{","\\textbraceleft"),y(x,M,$t,"}","\\}"),y(we,M,J,"}","\\}"),y(we,M,J,"}","\\textbraceright"),y(x,M,M0,"{","\\lbrace"),y(x,M,$t,"}","\\rbrace"),y(x,M,M0,"[","\\lbrack",!0),y(we,M,J,"[","\\lbrack",!0),y(x,M,$t,"]","\\rbrack",!0),y(we,M,J,"]","\\rbrack",!0),y(x,M,M0,"(","\\lparen",!0),y(x,M,$t,")","\\rparen",!0),y(we,M,J,"<","\\textless",!0),y(we,M,J,">","\\textgreater",!0),y(x,M,M0,"⌊","\\lfloor",!0),y(x,M,$t,"⌋","\\rfloor",!0),y(x,M,M0,"⌈","\\lceil",!0),y(x,M,$t,"⌉","\\rceil",!0),y(x,M,J,"\\","\\backslash"),y(x,M,J,"∣","|"),y(x,M,J,"∣","\\vert"),y(we,M,J,"|","\\textbar",!0),y(x,M,J,"∥","\\|"),y(x,M,J,"∥","\\Vert"),y(we,M,J,"∥","\\textbardbl"),y(we,M,J,"~","\\textasciitilde"),y(we,M,J,"\\","\\textbackslash"),y(we,M,J,"^","\\textasciicircum"),y(x,M,U,"↑","\\uparrow",!0),y(x,M,U,"⇑","\\Uparrow",!0),y(x,M,U,"↓","\\downarrow",!0),y(x,M,U,"⇓","\\Downarrow",!0),y(x,M,U,"↕","\\updownarrow",!0),y(x,M,U,"⇕","\\Updownarrow",!0),y(x,M,Ht,"∐","\\coprod"),y(x,M,Ht,"⋁","\\bigvee"),y(x,M,Ht,"⋀","\\bigwedge"),y(x,M,Ht,"⨄","\\biguplus"),y(x,M,Ht,"⋂","\\bigcap"),y(x,M,Ht,"⋃","\\bigcup"),y(x,M,Ht,"∫","\\int"),y(x,M,Ht,"∫","\\intop"),y(x,M,Ht,"∬","\\iint"),y(x,M,Ht,"∭","\\iiint"),y(x,M,Ht,"∏","\\prod"),y(x,M,Ht,"∑","\\sum"),y(x,M,Ht,"⨂","\\bigotimes"),y(x,M,Ht,"⨁","\\bigoplus"),y(x,M,Ht,"⨀","\\bigodot"),y(x,M,Ht,"∮","\\oint"),y(x,M,Ht,"∯","\\oiint"),y(x,M,Ht,"∰","\\oiiint"),y(x,M,Ht,"⨆","\\bigsqcup"),y(x,M,Ht,"∫","\\smallint"),y(we,M,kn,"…","\\textellipsis"),y(x,M,kn,"…","\\mathellipsis"),y(we,M,kn,"…","\\ldots",!0),y(x,M,kn,"…","\\ldots",!0),y(x,M,kn,"⋯","\\@cdots",!0),y(x,M,kn,"⋱","\\ddots",!0),y(x,M,J,"⋮","\\varvdots"),y(we,M,J,"⋮","\\varvdots"),y(x,M,Tt,"ˊ","\\acute"),y(x,M,Tt,"ˋ","\\grave"),y(x,M,Tt,"¨","\\ddot"),y(x,M,Tt,"~","\\tilde"),y(x,M,Tt,"ˉ","\\bar"),y(x,M,Tt,"˘","\\breve"),y(x,M,Tt,"ˇ","\\check"),y(x,M,Tt,"^","\\hat"),y(x,M,Tt,"⃗","\\vec"),y(x,M,Tt,"˙","\\dot"),y(x,M,Tt,"˚","\\mathring"),y(x,M,Ge,"","\\@imath"),y(x,M,Ge,"","\\@jmath"),y(x,M,J,"ı","ı"),y(x,M,J,"ȷ","ȷ"),y(we,M,J,"ı","\\i",!0),y(we,M,J,"ȷ","\\j",!0),y(we,M,J,"ß","\\ss",!0),y(we,M,J,"æ","\\ae",!0),y(we,M,J,"œ","\\oe",!0),y(we,M,J,"ø","\\o",!0),y(we,M,J,"Æ","\\AE",!0),y(we,M,J,"Œ","\\OE",!0),y(we,M,J,"Ø","\\O",!0),y(we,M,Tt,"ˊ","\\'"),y(we,M,Tt,"ˋ","\\`"),y(we,M,Tt,"ˆ","\\^"),y(we,M,Tt,"˜","\\~"),y(we,M,Tt,"ˉ","\\="),y(we,M,Tt,"˘","\\u"),y(we,M,Tt,"˙","\\."),y(we,M,Tt,"¸","\\c"),y(we,M,Tt,"˚","\\r"),y(we,M,Tt,"ˇ","\\v"),y(we,M,Tt,"¨",'\\"'),y(we,M,Tt,"˝","\\H"),y(we,M,Tt,"◯","\\textcircled");const bu={"--":!0,"---":!0,"``":!0,"''":!0};y(we,M,J,"–","--",!0),y(we,M,J,"–","\\textendash"),y(we,M,J,"—","---",!0),y(we,M,J,"—","\\textemdash"),y(we,M,J,"‘","`",!0),y(we,M,J,"‘","\\textquoteleft"),y(we,M,J,"’","'",!0),y(we,M,J,"’","\\textquoteright"),y(we,M,J,"“","``",!0),y(we,M,J,"“","\\textquotedblleft"),y(we,M,J,"”","''",!0),y(we,M,J,"”","\\textquotedblright"),y(x,M,J,"°","\\degree",!0),y(we,M,J,"°","\\degree"),y(we,M,J,"°","\\textdegree",!0),y(x,M,J,"£","\\pounds"),y(x,M,J,"£","\\mathsterling",!0),y(we,M,J,"£","\\pounds"),y(we,M,J,"£","\\textsterling",!0),y(x,H,J,"✠","\\maltese"),y(we,H,J,"✠","\\maltese");const os='0123456789/@."';for(let o=0;o<os.length;o++){const u=os.charAt(o);y(x,M,J,u,u)}const Ue='0123456789!@*()-=+";:?/.,';for(let o=0;o<Ue.length;o++){const u=Ue.charAt(o);y(we,M,J,u,u)}const K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let o=0;o<K.length;o++){const u=K.charAt(o);y(x,M,Ge,u,u),y(we,M,J,u,u)}y(x,H,J,"C","ℂ"),y(we,H,J,"C","ℂ"),y(x,H,J,"H","ℍ"),y(we,H,J,"H","ℍ"),y(x,H,J,"N","ℕ"),y(we,H,J,"N","ℕ"),y(x,H,J,"P","ℙ"),y(we,H,J,"P","ℙ"),y(x,H,J,"Q","ℚ"),y(we,H,J,"Q","ℚ"),y(x,H,J,"R","ℝ"),y(we,H,J,"R","ℝ"),y(x,H,J,"Z","ℤ"),y(we,H,J,"Z","ℤ"),y(x,M,Ge,"h","ℎ"),y(we,M,Ge,"h","ℎ");let de="";for(let o=0;o<K.length;o++){const u=K.charAt(o);de=String.fromCharCode(55349,56320+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56372+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56424+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56580+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56684+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56736+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56788+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56840+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56944+o),y(x,M,Ge,u,de),y(we,M,J,u,de),o<26&&(de=String.fromCharCode(55349,56632+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,56476+o),y(x,M,Ge,u,de),y(we,M,J,u,de))}de="𝕜",y(x,M,Ge,"k",de),y(we,M,J,"k",de);for(let o=0;o<10;o++){const u=o.toString();de=String.fromCharCode(55349,57294+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,57314+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,57324+o),y(x,M,Ge,u,de),y(we,M,J,u,de),de=String.fromCharCode(55349,57334+o),y(x,M,Ge,u,de),y(we,M,J,u,de)}const qe="ÐÞþ";for(let o=0;o<qe.length;o++){const u=qe.charAt(o);y(x,M,Ge,u,u),y(we,M,J,u,u)}const Dt=[["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"]],h0=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Yt=(o,u)=>{const l=o.charCodeAt(0),h=o.charCodeAt(1),b=(l-55296)*1024+(h-56320)+65536,D=u==="math"?0:1;if(119808<=b&&b<120484){const E=Math.floor((b-119808)/26);return[Dt[E][2],Dt[E][D]]}else if(120782<=b&&b<=120831){const E=Math.floor((b-120782)/10);return[h0[E][2],h0[E][D]]}else{if(b===120485||b===120486)return[Dt[0][2],Dt[0][D]];if(120486<b&&b<120782)return["",""];throw new a("Unsupported character: "+o)}},m0=function(o,u,l){if(kt[l][o]){const h=kt[l][o].replace;h&&(o=h)}return{value:o,metrics:ea(o,u,l)}},zt=function(o,u,l,h,b){const D=m0(o,u,l),E=D.metrics;o=D.value;let I;if(E){let P=E.italic;(l==="text"||h&&h.font==="mathit")&&(P=0),I=new B0(o,E.height,E.depth,P,E.skew,E.width,b)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+o+"' in style '"+u+"' and mode '"+l+"'")),I=new B0(o,0,0,0,0,0,b);if(h){I.maxFontSize=h.sizeMultiplier,h.style.isTight()&&I.classes.push("mtight");const P=h.getColor();P&&(I.style.color=P)}return I},on=function(o,u,l,h){return h===void 0&&(h=[]),l.font==="boldsymbol"&&m0(o,"Main-Bold",u).metrics?zt(o,"Main-Bold",u,l,h.concat(["mathbf"])):o==="\\"||kt[u][o].font==="main"?zt(o,"Main-Regular",u,l,h):zt(o,"AMS-Regular",u,l,h.concat(["amsrm"]))},yu=function(o,u,l,h,b){return b!=="textord"&&m0(o,"Math-BoldItalic",u).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Zt=function(o,u,l){const h=o.mode,b=o.text,D=["mord"],E=h==="math"||h==="text"&&u.font,I=E?u.font:u.fontFamily;let P="",G="";if(b.charCodeAt(0)===55349&&([P,G]=Yt(b,h)),P.length>0)return zt(b,P,h,u,D.concat(G));if(I){let re,oe;if(I==="boldsymbol"){const se=yu(b,h,u,D,l);re=se.fontName,oe=[se.fontClass]}else E?(re=e1[I].fontName,oe=[I]):(re=ls(I,u.fontWeight,u.fontShape),oe=[I,u.fontWeight,u.fontShape]);if(m0(b,re,h).metrics)return zt(b,re,h,u,D.concat(oe));if(bu.hasOwnProperty(b)&&re.slice(0,10)==="Typewriter"){const se=[];for(let Ae=0;Ae<b.length;Ae++)se.push(zt(b[Ae],re,h,u,D.concat(oe)));return Cn(se)}}if(l==="mathord")return zt(b,"Math-Italic",h,u,D.concat(["mathnormal"]));if(l==="textord"){const re=kt[h][b]&&kt[h][b].font;if(re==="ams"){const oe=ls("amsrm",u.fontWeight,u.fontShape);return zt(b,oe,h,u,D.concat("amsrm",u.fontWeight,u.fontShape))}else if(re==="main"||!re){const oe=ls("textrm",u.fontWeight,u.fontShape);return zt(b,oe,h,u,D.concat(u.fontWeight,u.fontShape))}else{const oe=ls(re,u.fontWeight,u.fontShape);return zt(b,oe,h,u,D.concat(oe,u.fontWeight,u.fontShape))}}else throw new Error("unexpected type: "+l+" in makeOrd")},ss=(o,u)=>{if(dr(o.classes)!==dr(u.classes)||o.skew!==u.skew||o.maxFontSize!==u.maxFontSize||o.italic!==0&&o.hasClass("mathnormal"))return!1;if(o.classes.length===1){const l=o.classes[0];if(l==="mbin"||l==="mord")return!1}for(const l of Object.keys(o.style))if(o.style[l]!==u.style[l])return!1;for(const l of Object.keys(u.style))if(o.style[l]!==u.style[l])return!1;return!0},vu=o=>{for(let u=0;u<o.length-1;u++){const l=o[u],h=o[u+1];l instanceof B0&&h instanceof B0&&ss(l,h)&&(l.text+=h.text,l.height=Math.max(l.height,h.height),l.depth=Math.max(l.depth,h.depth),l.italic=h.italic,o.splice(u+1,1),u--)}return o},Jc=function(o){let u=0,l=0,h=0;for(let b=0;b<o.children.length;b++){const D=o.children[b];D.height>u&&(u=D.height),D.depth>l&&(l=D.depth),D.maxFontSize>h&&(h=D.maxFontSize)}o.height=u,o.depth=l,o.maxFontSize=h},Fe=function(o,u,l,h){const b=new U0(o,u,l,h);return Jc(b),b},ta=(o,u,l,h)=>new U0(o,u,l,h),li=function(o,u,l){const h=Fe([o],[],u);return h.height=Math.max(l||u.fontMetrics().defaultRuleThickness,u.minRuleThickness),h.style.borderBottomWidth=Ce(h.height),h.maxFontSize=1,h},Dv=function(o,u,l,h){const b=new C0(o,u,l,h);return Jc(b),b},Cn=function(o){const u=new st(o);return Jc(u),u},ci=function(o,u){return o instanceof st?Fe([],[o],u):o},kv=function(o){if(o.positionType==="individualShift"){const l=o.children,h=[l[0]],b=-l[0].shift-l[0].elem.depth;let D=b;for(let E=1;E<l.length;E++){const I=-l[E].shift-D-l[E].elem.depth,P=I-(l[E-1].elem.height+l[E-1].elem.depth);D=D+I,h.push({type:"kern",size:P}),h.push(l[E])}return{children:h,depth:b}}let u;if(o.positionType==="top"){let l=o.positionData;for(let h=0;h<o.children.length;h++){const b=o.children[h];l-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}u=l}else if(o.positionType==="bottom")u=-o.positionData;else{const l=o.children[0];if(l.type!=="elem")throw new Error('First child must have type "elem".');if(o.positionType==="shift")u=-l.elem.depth-o.positionData;else if(o.positionType==="firstBaseline")u=-l.elem.depth;else throw new Error("Invalid positionType "+o.positionType+".")}return{children:o.children,depth:u}},vt=function(o,u){const{children:l,depth:h}=kv(o);let b=0;for(let Ae=0;Ae<l.length;Ae++){const Ie=l[Ae];if(Ie.type==="elem"){const $e=Ie.elem;b=Math.max(b,$e.maxFontSize,$e.height)}}b+=2;const D=Fe(["pstrut"],[]);D.style.height=Ce(b);const E=[];let I=h,P=h,G=h;for(let Ae=0;Ae<l.length;Ae++){const Ie=l[Ae];if(Ie.type==="kern")G+=Ie.size;else{const $e=Ie.elem,ht=Ie.wrapperClasses||[],Je=Ie.wrapperStyle||{},mt=Fe(ht,[D,$e],void 0,Je);mt.style.top=Ce(-b-G-$e.depth),Ie.marginLeft&&(mt.style.marginLeft=Ie.marginLeft),Ie.marginRight&&(mt.style.marginRight=Ie.marginRight),E.push(mt),G+=$e.height+$e.depth}I=Math.min(I,G),P=Math.max(P,G)}const re=Fe(["vlist"],E);re.style.height=Ce(P);let oe;if(I<0){const Ae=Fe([],[]),Ie=Fe(["vlist"],[Ae]);Ie.style.height=Ce(-I);const $e=Fe(["vlist-s"],[new B0("")]);oe=[Fe(["vlist-r"],[re,$e]),Fe(["vlist-r"],[Ie])]}else oe=[Fe(["vlist-r"],[re])];const se=Fe(["vlist-t"],oe);return oe.length===2&&se.classes.push("vlist-t2"),se.height=P,se.depth=-I,se},Gh=(o,u)=>{const l=Fe(["mspace"],[],u),h=ft(o,u);return l.style.marginRight=Ce(h),l},ls=function(o,u,l){let h="";switch(o){case"amsrm":h="AMS";break;case"textrm":h="Main";break;case"textsf":h="SansSerif";break;case"texttt":h="Typewriter";break;default:h=o}let b;return u==="textbf"&&l==="textit"?b="BoldItalic":u==="textbf"?b="Bold":u==="textit"?b="Italic":b="Regular",h+"-"+b},e1={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"}},Xh={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Yh=function(o,u){const[l,h,b]=Xh[o],D=new Hr(l),E=new fr([D],{width:Ce(h),height:Ce(b),style:"width:"+Ce(h),viewBox:"0 0 "+1e3*h+" "+1e3*b,preserveAspectRatio:"xMinYMin"}),I=ta(["overlay"],[E],u);return I.height=b,I.style.height=Ce(b),I.style.width=Ce(h),I},Ut={number:3,unit:"mu"},Ca={number:4,unit:"mu"},Sn={number:5,unit:"mu"},Cv={mord:{mop:Ut,mbin:Ca,mrel:Sn,minner:Ut},mop:{mord:Ut,mop:Ut,mrel:Sn,minner:Ut},mbin:{mord:Ca,mop:Ca,mopen:Ca,minner:Ca},mrel:{mord:Sn,mop:Sn,mopen:Sn,minner:Sn},mopen:{},mclose:{mop:Ut,mbin:Ca,mrel:Sn,minner:Ut},mpunct:{mord:Ut,mop:Ut,mrel:Sn,mopen:Ut,mclose:Ut,mpunct:Ut,minner:Ut},minner:{mord:Ut,mop:Ut,mbin:Ca,mrel:Sn,mopen:Ut,mpunct:Ut,minner:Ut}},Sv={mord:{mop:Ut},mop:{mord:Ut,mop:Ut},mbin:{},mrel:{},mopen:{},mclose:{mop:Ut},mpunct:{},minner:{mop:Ut}},Zh={},cs={},ds={};function Ve(o){let{type:u,names:l,props:h,handler:b,htmlBuilder:D,mathmlBuilder:E}=o;const I={type:u,numArgs:h.numArgs,argTypes:h.argTypes,allowedInArgument:!!h.allowedInArgument,allowedInText:!!h.allowedInText,allowedInMath:h.allowedInMath===void 0?!0:h.allowedInMath,numOptionalArgs:h.numOptionalArgs||0,infix:!!h.infix,primitive:!!h.primitive,handler:b};for(let P=0;P<l.length;++P)Zh[l[P]]=I;u&&(D&&(cs[u]=D),E&&(ds[u]=E))}function Sa(o){let{type:u,htmlBuilder:l,mathmlBuilder:h}=o;Ve({type:u,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:l,mathmlBuilder:h})}const fs=function(o){return o.type==="ordgroup"&&o.body.length===1?o.body[0]:o},u0=function(o){return o.type==="ordgroup"?o.body:[o]},Ev=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Fv=new Set(["rightmost","mrel","mclose","mpunct"]),Tv={display:ne.DISPLAY,text:ne.TEXT,script:ne.SCRIPT,scriptscript:ne.SCRIPTSCRIPT},Bv={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},p0=function(o,u,l,h){h===void 0&&(h=[null,null]);const b=[];for(let G=0;G<o.length;G++){const re=wt(o[G],u);if(re instanceof st){const oe=re.children;b.push(...oe)}else b.push(re)}if(vu(b),!l)return b;let D=u;if(o.length===1){const G=o[0];G.type==="sizing"?D=u.havingSize(G.size):G.type==="styling"&&(D=u.havingStyle(Tv[G.style]))}const E=Fe([h[0]||"leftmost"],[],u),I=Fe([h[1]||"rightmost"],[],u),P=l==="root";return t1(b,(G,re)=>{const oe=re.classes[0],se=G.classes[0];oe==="mbin"&&Fv.has(se)?re.classes[0]="mord":se==="mbin"&&Ev.has(oe)&&(G.classes[0]="mord")},{node:E},I,P),t1(b,(G,re)=>{var oe,se;const Ae=n1(re),Ie=n1(G),$e=Ae&&Ie?G.hasClass("mtight")?(oe=Sv[Ae])==null?void 0:oe[Ie]:(se=Cv[Ae])==null?void 0:se[Ie]:null;if($e)return Gh($e,D)},{node:E},I,P),b},t1=function(o,u,l,h,b){h&&o.push(h);let D=0;for(;D<o.length;D++){const E=o[D],I=Kh(E);if(I){t1(I.children,u,l,null,b);continue}const P=!E.hasClass("mspace");if(P){const G=u(E,l.node);G&&(l.insertAfter?l.insertAfter(G):(o.unshift(G),D++))}P?l.node=E:b&&E.hasClass("newline")&&(l.node=Fe(["leftmost"])),l.insertAfter=(G=>re=>{o.splice(G+1,0,re),D++})(D)}h&&o.pop()},Kh=function(o){return o instanceof st||o instanceof C0||o instanceof U0&&o.hasClass("enclosing")?o:null},r1=function(o,u){const l=Kh(o);if(l){const h=l.children;if(h.length){if(u==="right")return r1(h[h.length-1],"right");if(u==="left")return r1(h[0],"left")}}return o},n1=function(o,u){if(!o)return null;u&&(o=r1(o,u));const l=o.classes[0];return Bv[l]||null},wu=function(o,u){const l=["nulldelimiter"].concat(o.baseSizingClasses());return Fe(u.concat(l))},wt=function(o,u,l){if(!o)return Fe();if(cs[o.type]){let h=cs[o.type](o,u);if(l&&u.size!==l.size){h=Fe(u.sizingClasses(l),[h],u);const b=u.sizeMultiplier/l.sizeMultiplier;h.height*=b,h.depth*=b}return h}else throw new a("Got group of unknown type: '"+o.type+"'")};function hs(o,u){const l=Fe(["base"],o,u),h=Fe(["strut"]);return h.style.height=Ce(l.height+l.depth),l.depth&&(h.style.verticalAlign=Ce(-l.depth)),l.children.unshift(h),l}function a1(o,u){let l=null;o.length===1&&o[0].type==="tag"&&(l=o[0].tag,o=o[0].body);const h=p0(o,u,"root");let b;h.length===2&&h[1].hasClass("tag")&&(b=h.pop());const D=[];let E=[];for(let G=0;G<h.length;G++)if(E.push(h[G]),h[G].hasClass("mbin")||h[G].hasClass("mrel")||h[G].hasClass("allowbreak")){let re=!1;for(;G<h.length-1&&h[G+1].hasClass("mspace")&&!h[G+1].hasClass("newline");)G++,E.push(h[G]),h[G].hasClass("nobreak")&&(re=!0);re||(D.push(hs(E,u)),E=[])}else h[G].hasClass("newline")&&(E.pop(),E.length>0&&(D.push(hs(E,u)),E=[]),D.push(h[G]));E.length>0&&D.push(hs(E,u));let I;l?(I=hs(p0(l,u,!0),u),I.classes=["tag"],D.push(I)):b&&D.push(b);const P=Fe(["katex-html"],D);if(P.setAttribute("aria-hidden","true"),I){const G=I.children[0];G.style.height=Ce(P.height+P.depth),P.depth&&(G.style.verticalAlign=Ce(-P.depth))}return P}function Qh(o){return new st(o)}class Me{constructor(u,l,h){this.type=u,this.attributes={},this.children=l||[],this.classes=h||[]}setAttribute(u,l){this.attributes[u]=l}getAttribute(u){return this.attributes[u]}toNode(){const u=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&u.setAttribute(l,this.attributes[l]);this.classes.length>0&&(u.className=dr(this.classes));for(let l=0;l<this.children.length;l++)if(this.children[l]instanceof o0&&this.children[l+1]instanceof o0){let h=this.children[l].toText()+this.children[++l].toText();for(;this.children[l+1]instanceof o0;)h+=this.children[++l].toText();u.appendChild(new o0(h).toNode())}else u.appendChild(this.children[l].toNode());return u}toMarkup(){let u="<"+this.type;for(const l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&(u+=" "+l+'="',u+=g(this.attributes[l]),u+='"');this.classes.length>0&&(u+=' class ="'+g(dr(this.classes))+'"'),u+=">";for(let l=0;l<this.children.length;l++)u+=this.children[l].toMarkup();return u+="</"+this.type+">",u}toText(){return this.children.map(u=>u.toText()).join("")}}class o0{constructor(u){this.text=u}toNode(){return document.createTextNode(this.text)}toMarkup(){return g(this.toText())}toText(){return this.text}}class Jh{constructor(u){this.width=u,u>=.05555&&u<=.05556?this.character=" ":u>=.1666&&u<=.1667?this.character=" ":u>=.2222&&u<=.2223?this.character=" ":u>=.2777&&u<=.2778?this.character=" ":u>=-.05556&&u<=-.05555?this.character=" ":u>=-.1667&&u<=-.1666?this.character=" ":u>=-.2223&&u<=-.2222?this.character=" ":u>=-.2778&&u<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);{const u=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return u.setAttribute("width",Ce(this.width)),u}}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Ce(this.width)+'"/>'}toText(){return this.character?this.character:" "}}const Mv=new Set(["\\imath","\\jmath"]),Nv=new Set(["mrow","mtable"]),xr=function(o,u,l){return kt[u][o]&&kt[u][o].replace&&o.charCodeAt(0)!==55349&&!(bu.hasOwnProperty(o)&&l&&(l.fontFamily&&l.fontFamily.slice(4,6)==="tt"||l.font&&l.font.slice(4,6)==="tt"))&&(o=kt[u][o].replace),new o0(o)},i1=function(o){return o.length===1?o[0]:new Me("mrow",o)},u1=function(o,u){if(u.fontFamily==="texttt")return"monospace";if(u.fontFamily==="textsf")return u.fontShape==="textit"&&u.fontWeight==="textbf"?"sans-serif-bold-italic":u.fontShape==="textit"?"sans-serif-italic":u.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(u.fontShape==="textit"&&u.fontWeight==="textbf")return"bold-italic";if(u.fontShape==="textit")return"italic";if(u.fontWeight==="textbf")return"bold";const l=u.font;if(!l||l==="mathnormal")return null;const h=o.mode;if(l==="mathit")return"italic";if(l==="boldsymbol")return o.type==="textord"?"bold":"bold-italic";if(l==="mathbf")return"bold";if(l==="mathbb")return"double-struck";if(l==="mathsfit")return"sans-serif-italic";if(l==="mathfrak")return"fraktur";if(l==="mathscr"||l==="mathcal")return"script";if(l==="mathsf")return"sans-serif";if(l==="mathtt")return"monospace";let b=o.text;if(Mv.has(b))return null;if(kt[h][b]){const E=kt[h][b].replace;E&&(b=E)}const D=e1[l].fontName;return ea(b,D,h)?e1[l].variant:null};function o1(o){if(!o)return!1;if(o.type==="mi"&&o.children.length===1){const u=o.children[0];return u instanceof o0&&u.text==="."}else if(o.type==="mo"&&o.children.length===1&&o.getAttribute("separator")==="true"&&o.getAttribute("lspace")==="0em"&&o.getAttribute("rspace")==="0em"){const u=o.children[0];return u instanceof o0&&u.text===","}else return!1}const hr=function(o,u,l){if(o.length===1){const D=St(o[0],u);return l&&D instanceof Me&&D.type==="mo"&&(D.setAttribute("lspace","0em"),D.setAttribute("rspace","0em")),[D]}const h=[];let b;for(let D=0;D<o.length;D++){const E=St(o[D],u);if(E instanceof Me&&b instanceof Me){if(E.type==="mtext"&&b.type==="mtext"&&E.getAttribute("mathvariant")===b.getAttribute("mathvariant")){b.children.push(...E.children);continue}else if(E.type==="mn"&&b.type==="mn"){b.children.push(...E.children);continue}else if(o1(E)&&b.type==="mn"){b.children.push(...E.children);continue}else if(E.type==="mn"&&o1(b))E.children=[...b.children,...E.children],h.pop();else if((E.type==="msup"||E.type==="msub")&&E.children.length>=1&&(b.type==="mn"||o1(b))){const I=E.children[0];I instanceof Me&&I.type==="mn"&&(I.children=[...b.children,...I.children],h.pop())}else if(b.type==="mi"&&b.children.length===1){const I=b.children[0];if(I instanceof o0&&I.text==="̸"&&(E.type==="mo"||E.type==="mi"||E.type==="mn")){const P=E.children[0];P instanceof o0&&P.text.length>0&&(P.text=P.text.slice(0,1)+"̸"+P.text.slice(1),h.pop())}}}h.push(E),b=E}return h},ra=function(o,u,l){return i1(hr(o,u,l))},St=function(o,u){if(!o)return new Me("mrow");if(ds[o.type])return ds[o.type](o,u);throw new a("Got group of unknown type: '"+o.type+"'")};function e3(o,u,l,h,b){const D=hr(o,l);let E;D.length===1&&D[0]instanceof Me&&Nv.has(D[0].type)?E=D[0]:E=new Me("mrow",D);const I=new Me("annotation",[new o0(u)]);I.setAttribute("encoding","application/x-tex");const P=new Me("semantics",[E,I]),G=new Me("math",[P]);return G.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),h&&G.setAttribute("display","block"),Fe([b?"katex":"katex-mathml"],[G])}const _v=[[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]],t3=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],r3=function(o,u){return u.size<2?o:_v[o-1][u.size-1]};class En{constructor(u){this.style=u.style,this.color=u.color,this.size=u.size||En.BASESIZE,this.textSize=u.textSize||this.size,this.phantom=!!u.phantom,this.font=u.font||"",this.fontFamily=u.fontFamily||"",this.fontWeight=u.fontWeight||"",this.fontShape=u.fontShape||"",this.sizeMultiplier=t3[this.size-1],this.maxSize=u.maxSize,this.minRuleThickness=u.minRuleThickness,this._fontMetrics=void 0}extend(u){const l={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};return Object.assign(l,u),new En(l)}havingStyle(u){return this.style===u?this:this.extend({style:u,size:r3(this.textSize,u)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(u){return this.size===u&&this.textSize===u?this:this.extend({style:this.style.text(),size:u,textSize:u,sizeMultiplier:t3[u-1]})}havingBaseStyle(u){u=u||this.style.text();const l=r3(En.BASESIZE,u);return this.size===l&&this.textSize===En.BASESIZE&&this.style===u?this:this.extend({style:u,size:l})}havingBaseSizing(){let u;switch(this.style.id){case 4:case 5:u=3;break;case 6:case 7:u=1;break;default:u=6}return this.extend({style:this.style.text(),size:u})}withColor(u){return this.extend({color:u})}withPhantom(){return this.extend({phantom:!0})}withFont(u){return this.extend({font:u})}withTextFontFamily(u){return this.extend({fontFamily:u,font:""})}withTextFontWeight(u){return this.extend({fontWeight:u,font:""})}withTextFontShape(u){return this.extend({fontShape:u,font:""})}sizingClasses(u){return u.size!==this.size?["sizing","reset-size"+u.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==En.BASESIZE?["sizing","reset-size"+this.size,"size"+En.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=ka(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}En.BASESIZE=6;var zv=En;const n3=function(o){return new zv({style:o.displayMode?ne.DISPLAY:ne.TEXT,maxSize:o.maxSize,minRuleThickness:o.minRuleThickness})},a3=function(o,u){if(u.displayMode){const l=["katex-display"];u.leqno&&l.push("leqno"),u.fleqn&&l.push("fleqn"),o=Fe(l,[o])}return o},Iv=function(o,u,l){const h=n3(l);let b;if(l.output==="mathml")return e3(o,u,h,l.displayMode,!0);if(l.output==="html"){const D=a1(o,h);b=Fe(["katex"],[D])}else{const D=e3(o,u,h,l.displayMode,!1),E=a1(o,h);b=Fe(["katex"],[D,E])}return a3(b,l)},Ov=function(o,u,l){const h=n3(l),b=a1(o,h),D=Fe(["katex"],[b]);return a3(D,l)},Lv={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},ms=function(o){const u=new Me("mo",[new o0(Lv[o.replace(/^\\/,"")])]);return u.setAttribute("stretchy","true"),u},Rv={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},Pv=new Set(["widehat","widecheck","widetilde","utilde"]),ps=function(o,u){function l(){let E=4e5;const I=o.label.slice(1);if(Pv.has(I)){const P=o,G=P.base.type==="ordgroup"?P.base.body.length:1;let re,oe,se;if(G>5)I==="widehat"||I==="widecheck"?(re=420,E=2364,se=.42,oe=I+"4"):(re=312,E=2340,se=.34,oe="tilde4");else{const $e=[1,1,2,2,3,3][G];I==="widehat"||I==="widecheck"?(E=[0,1062,2364,2364,2364][$e],re=[0,239,300,360,420][$e],se=[0,.24,.3,.3,.36,.42][$e],oe=I+$e):(E=[0,600,1033,2339,2340][$e],re=[0,260,286,306,312][$e],se=[0,.26,.286,.3,.306,.34][$e],oe="tilde"+$e)}const Ae=new Hr(oe),Ie=new fr([Ae],{width:"100%",height:Ce(se),viewBox:"0 0 "+E+" "+re,preserveAspectRatio:"none"});return{span:ta([],[Ie],u),minWidth:0,height:se}}else{const P=[],G=Rv[I],[re,oe,se]=G,Ae=se/1e3,Ie=re.length;let $e,ht;if(Ie===1){const Je=G[3];$e=["hide-tail"],ht=[Je]}else if(Ie===2)$e=["halfarrow-left","halfarrow-right"],ht=["xMinYMin","xMaxYMin"];else if(Ie===3)$e=["brace-left","brace-center","brace-right"],ht=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
540
|
+
`+Ie+" children.");for(let Je=0;Je<Ie;Je++){const mt=new Hr(re[Je]),At=new fr([mt],{width:"400em",height:Ce(Ae),viewBox:"0 0 "+E+" "+se,preserveAspectRatio:ht[Je]+" slice"}),s0=ta([$e[Je]],[At],u);if(Ie===1)return{span:s0,minWidth:oe,height:Ae};s0.style.height=Ce(Ae),P.push(s0)}return{span:Fe(["stretchy"],P,u),minWidth:oe,height:Ae}}}const{span:h,minWidth:b,height:D}=l();return h.height=D,h.style.height=Ce(D),b>0&&(h.style.minWidth=Ce(b)),h},Vv=function(o,u,l,h,b){let D;const E=o.height+o.depth+l+h;if(/fbox|color|angl/.test(u)){if(D=Fe(["stretchy",u],[],b),u==="fbox"){const I=b.color&&b.getColor();I&&(D.style.borderColor=I)}}else{const I=[];/^[bx]cancel$/.test(u)&&I.push(new Kn({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(u)&&I.push(new Kn({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const P=new fr(I,{width:"100%",height:Ce(E)});D=ta([],[P],b)}return D.height=E,D.style.height=Ce(E),D};function at(o,u){if(!o||o.type!==u)throw new Error("Expected node of type "+u+", but got "+(o?"node of type "+o.type:String(o)));return o}function gs(o){const u=bs(o);if(!u)throw new Error("Expected node of symbol group type, but got "+(o?"node of type "+o.type:String(o)));return u}function bs(o){return o&&(o.type==="atom"||Qc.hasOwnProperty(o.type))?o:null}const i3=o=>{if(o instanceof B0)return o;if(Qn(o)&&o.children.length===1)return i3(o.children[0])},s1=(o,u)=>{let l,h,b;o&&o.type==="supsub"?(h=at(o.base,"accent"),l=h.base,o.base=l,b=qr(wt(o,u)),o.base=h):(h=at(o,"accent"),l=h.base);const D=wt(l,u.havingCrampedStyle()),E=h.isShifty&&k(l);let I=0;if(E){var P,G;I=(P=(G=i3(D))==null?void 0:G.skew)!=null?P:0}const re=h.label==="\\c";let oe=re?D.height+D.depth:Math.min(D.height,u.fontMetrics().xHeight),se;if(h.isStretchy)se=ps(h,u),se=vt({positionType:"firstBaseline",children:[{type:"elem",elem:D},{type:"elem",elem:se,wrapperClasses:["svg-align"],wrapperStyle:I>0?{width:"calc(100% - "+Ce(2*I)+")",marginLeft:Ce(2*I)}:void 0}]});else{let Ie,$e;h.label==="\\vec"?(Ie=Yh("vec",u),$e=Xh.vec[1]):(Ie=Zt({mode:h.mode,text:h.label},u,"textord"),Ie=oi(Ie),Ie.italic=0,$e=Ie.width,re&&(oe+=Ie.depth)),se=Fe(["accent-body"],[Ie]);const ht=h.label==="\\textcircled";ht&&(se.classes.push("accent-full"),oe=D.height);let Je=I;ht||(Je-=$e/2),se.style.left=Ce(Je),h.label==="\\textcircled"&&(se.style.top=".2em"),se=vt({positionType:"firstBaseline",children:[{type:"elem",elem:D},{type:"kern",size:-oe},{type:"elem",elem:se}]})}const Ae=Fe(["mord","accent"],[se],u);return b?(b.children[0]=Ae,b.height=Math.max(Ae.height,b.height),b.classes[0]="mord",b):Ae},u3=(o,u)=>{const l=o.isStretchy?ms(o.label):new Me("mo",[xr(o.label,o.mode)]),h=new Me("mover",[St(o.base,u),l]);return h.setAttribute("accent","true"),h},Hv=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(o=>"\\"+o).join("|"));Ve({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:(o,u)=>{const l=fs(u[0]),h=!Hv.test(o.funcName),b=!h||o.funcName==="\\widehat"||o.funcName==="\\widetilde"||o.funcName==="\\widecheck";return{type:"accent",mode:o.parser.mode,label:o.funcName,isStretchy:h,isShifty:b,base:l}},htmlBuilder:s1,mathmlBuilder:u3}),Ve({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(o,u)=>{const l=u[0];let h=o.parser.mode;return h==="math"&&(o.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+o.funcName+" works only in text mode"),h="text"),{type:"accent",mode:h,label:o.funcName,isStretchy:!1,isShifty:!0,base:l}},htmlBuilder:s1,mathmlBuilder:u3}),Ve({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(o,u)=>{let{parser:l,funcName:h}=o;const b=u[0];return{type:"accentUnder",mode:l.mode,label:h,base:b}},htmlBuilder:(o,u)=>{const l=wt(o.base,u),h=ps(o,u),b=o.label==="\\utilde"?.12:0,D=vt({positionType:"top",positionData:l.height,children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:b},{type:"elem",elem:l}]});return Fe(["mord","accentunder"],[D],u)},mathmlBuilder:(o,u)=>{const l=ms(o.label),h=new Me("munder",[St(o.base,u),l]);return h.setAttribute("accentunder","true"),h}});const ys=o=>{const u=new Me("mpadded",o?[o]:[]);return u.setAttribute("width","+0.6em"),u.setAttribute("lspace","0.3em"),u};Ve({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(o,u,l){let{parser:h,funcName:b}=o;return{type:"xArrow",mode:h.mode,label:b,body:u[0],below:l[0]}},htmlBuilder(o,u){const l=u.style;let h=u.havingStyle(l.sup());const b=ci(wt(o.body,h,u),u),D=o.label.slice(0,2)==="\\x"?"x":"cd";b.classes.push(D+"-arrow-pad");let E;o.below&&(h=u.havingStyle(l.sub()),E=ci(wt(o.below,h,u),u),E.classes.push(D+"-arrow-pad"));const I=ps(o,u),P=-u.fontMetrics().axisHeight+.5*I.height;let G=-u.fontMetrics().axisHeight-.5*I.height-.111;(b.depth>.25||o.label==="\\xleftequilibrium")&&(G-=b.depth);let re;if(E){const oe=-u.fontMetrics().axisHeight+E.height+.5*I.height+.111;re=vt({positionType:"individualShift",children:[{type:"elem",elem:b,shift:G},{type:"elem",elem:I,shift:P},{type:"elem",elem:E,shift:oe}]})}else re=vt({positionType:"individualShift",children:[{type:"elem",elem:b,shift:G},{type:"elem",elem:I,shift:P}]});return re.children[0].children[0].children[1].classes.push("svg-align"),Fe(["mrel","x-arrow"],[re],u)},mathmlBuilder(o,u){const l=ms(o.label);l.setAttribute("minsize",o.label.charAt(0)==="x"?"1.75em":"3.0em");let h;if(o.body){const b=ys(St(o.body,u));if(o.below){const D=ys(St(o.below,u));h=new Me("munderover",[l,D,b])}else h=new Me("mover",[l,b])}else if(o.below){const b=ys(St(o.below,u));h=new Me("munder",[l,b])}else h=ys(),h=new Me("mover",[l,h]);return h}});function o3(o,u){const l=p0(o.body,u,!0);return Fe([o.mclass],l,u)}function s3(o,u){let l;const h=hr(o.body,u);return o.mclass==="minner"?l=new Me("mpadded",h):o.mclass==="mord"?o.isCharacterBox?(l=h[0],l.type="mi"):l=new Me("mi",h):(o.isCharacterBox?(l=h[0],l.type="mo"):l=new Me("mo",h),o.mclass==="mbin"?(l.attributes.lspace="0.22em",l.attributes.rspace="0.22em"):o.mclass==="mpunct"?(l.attributes.lspace="0em",l.attributes.rspace="0.17em"):o.mclass==="mopen"||o.mclass==="mclose"?(l.attributes.lspace="0em",l.attributes.rspace="0em"):o.mclass==="minner"&&(l.attributes.lspace="0.0556em",l.attributes.width="+0.1111em")),l}Ve({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(o,u){let{parser:l,funcName:h}=o;const b=u[0];return{type:"mclass",mode:l.mode,mclass:"m"+h.slice(5),body:u0(b),isCharacterBox:k(b)}},htmlBuilder:o3,mathmlBuilder:s3});const vs=o=>{const u=o.type==="ordgroup"&&o.body.length?o.body[0]:o;return u.type==="atom"&&(u.family==="bin"||u.family==="rel")?"m"+u.family:"mord"};Ve({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(o,u){let{parser:l}=o;return{type:"mclass",mode:l.mode,mclass:vs(u[0]),body:u0(u[1]),isCharacterBox:k(u[1])}}}),Ve({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(o,u){let{parser:l,funcName:h}=o;const b=u[1],D=u[0];let E;h!=="\\stackrel"?E=vs(b):E="mrel";const I={type:"op",mode:b.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:h!=="\\stackrel",body:u0(b)},P={type:"supsub",mode:D.mode,base:I,sup:h==="\\underset"?null:D,sub:h==="\\underset"?D:null};return{type:"mclass",mode:l.mode,mclass:E,body:[P],isCharacterBox:k(P)}},htmlBuilder:o3,mathmlBuilder:s3}),Ve({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(o,u){let{parser:l}=o;return{type:"pmb",mode:l.mode,mclass:vs(u[0]),body:u0(u[0])}},htmlBuilder(o,u){const l=p0(o.body,u,!0),h=Fe([o.mclass],l,u);return h.style.textShadow="0.02em 0.01em 0.04px",h},mathmlBuilder(o,u){const l=hr(o.body,u),h=new Me("mstyle",l);return h.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),h}});const qv={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},l3=()=>({type:"styling",body:[],mode:"math",style:"display"}),c3=o=>o.type==="textord"&&o.text==="@",jv=(o,u)=>(o.type==="mathord"||o.type==="atom")&&o.text===u;function $v(o,u,l){const h=qv[o];switch(h){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return l.callFunction(h,[u[0]],[u[1]]);case"\\uparrow":case"\\downarrow":{const b=l.callFunction("\\\\cdleft",[u[0]],[]),D={type:"atom",text:h,mode:"math",family:"rel"},E=l.callFunction("\\Big",[D],[]),I=l.callFunction("\\\\cdright",[u[1]],[]),P={type:"ordgroup",mode:"math",body:[b,E,I]};return l.callFunction("\\\\cdparent",[P],[])}case"\\\\cdlongequal":return l.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{const b={type:"textord",text:"\\Vert",mode:"math"};return l.callFunction("\\Big",[b],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Uv(o){const u=[];for(o.gullet.beginGroup(),o.gullet.macros.set("\\cr","\\\\\\relax"),o.gullet.beginGroup();;){u.push(o.parseExpression(!1,"\\\\")),o.gullet.endGroup(),o.gullet.beginGroup();const D=o.fetch().text;if(D==="&"||D==="\\\\")o.consume();else if(D==="\\end"){u[u.length-1].length===0&&u.pop();break}else throw new a("Expected \\\\ or \\cr or \\end",o.nextToken)}let l=[];const h=[l];for(let D=0;D<u.length;D++){const E=u[D];let I=l3();for(let P=0;P<E.length;P++)if(!c3(E[P]))I.body.push(E[P]);else{l.push(I),P+=1;const G=gs(E[P]).text,re=new Array(2);if(re[0]={type:"ordgroup",mode:"math",body:[]},re[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(G))if("<>AV".includes(G))for(let Ae=0;Ae<2;Ae++){let Ie=!0;for(let $e=P+1;$e<E.length;$e++){if(jv(E[$e],G)){Ie=!1,P=$e;break}if(c3(E[$e]))throw new a("Missing a "+G+" character to complete a CD arrow.",E[$e]);re[Ae].body.push(E[$e])}if(Ie)throw new a("Missing a "+G+" character to complete a CD arrow.",E[P])}else throw new a('Expected one of "<>AV=|." after @',E[P]);const se={type:"styling",body:[$v(G,re,o)],mode:"math",style:"display"};l.push(se),I=l3()}D%2===0?l.push(I):l.shift(),l=[],h.push(l)}o.gullet.endGroup(),o.gullet.endGroup();const b=new Array(h[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:h,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(h.length+1).fill([])}}Ve({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(o,u){let{parser:l,funcName:h}=o;return{type:"cdlabel",mode:l.mode,side:h.slice(4),label:u[0]}},htmlBuilder(o,u){const l=u.havingStyle(u.style.sup()),h=ci(wt(o.label,l,u),u);return h.classes.push("cd-label-"+o.side),h.style.bottom=Ce(.8-h.depth),h.height=0,h.depth=0,h},mathmlBuilder(o,u){let l=new Me("mrow",[St(o.label,u)]);return l=new Me("mpadded",[l]),l.setAttribute("width","0"),o.side==="left"&&l.setAttribute("lspace","-1width"),l.setAttribute("voffset","0.7em"),l=new Me("mstyle",[l]),l.setAttribute("displaystyle","false"),l.setAttribute("scriptlevel","1"),l}}),Ve({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(o,u){let{parser:l}=o;return{type:"cdlabelparent",mode:l.mode,fragment:u[0]}},htmlBuilder(o,u){const l=ci(wt(o.fragment,u),u);return l.classes.push("cd-vert-arrow"),l},mathmlBuilder(o,u){return new Me("mrow",[St(o.fragment,u)])}}),Ve({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(o,u){let{parser:l}=o;const b=at(u[0],"ordgroup").body;let D="";for(let P=0;P<b.length;P++){const G=at(b[P],"textord");D+=G.text}let E=parseInt(D),I;if(isNaN(E))throw new a("\\@char has non-numeric argument "+D);if(E<0||E>=1114111)throw new a("\\@char with invalid code point "+D);return E<=65535?I=String.fromCharCode(E):(E-=65536,I=String.fromCharCode((E>>10)+55296,(E&1023)+56320)),{type:"textord",mode:l.mode,text:I}}});const d3=(o,u)=>{const l=p0(o.body,u.withColor(o.color),!1);return Cn(l)},f3=(o,u)=>{const l=hr(o.body,u.withColor(o.color)),h=new Me("mstyle",l);return h.setAttribute("mathcolor",o.color),h};Ve({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(o,u){let{parser:l}=o;const h=at(u[0],"color-token").color,b=u[1];return{type:"color",mode:l.mode,color:h,body:u0(b)}},htmlBuilder:d3,mathmlBuilder:f3}),Ve({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(o,u){let{parser:l,breakOnTokenText:h}=o;const b=at(u[0],"color-token").color;l.gullet.macros.set("\\current@color",b);const D=l.parseExpression(!0,h);return{type:"color",mode:l.mode,color:b,body:D}},htmlBuilder:d3,mathmlBuilder:f3}),Ve({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(o,u,l){let{parser:h}=o;const b=h.gullet.future().text==="["?h.parseSizeGroup(!0):null,D=!h.settings.displayMode||!h.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:h.mode,newLine:D,size:b&&at(b,"size").value}},htmlBuilder(o,u){const l=Fe(["mspace"],[],u);return o.newLine&&(l.classes.push("newline"),o.size&&(l.style.marginTop=Ce(ft(o.size,u)))),l},mathmlBuilder(o,u){const l=new Me("mspace");return o.newLine&&(l.setAttribute("linebreak","newline"),o.size&&l.setAttribute("height",Ce(ft(o.size,u)))),l}});const l1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},h3=o=>{const u=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(u))throw new a("Expected a control sequence",o);return u},Wv=o=>{let u=o.gullet.popToken();return u.text==="="&&(u=o.gullet.popToken(),u.text===" "&&(u=o.gullet.popToken())),u},m3=(o,u,l,h)=>{let b=o.gullet.macros.get(l.text);b==null&&(l.noexpand=!0,b={tokens:[l],numArgs:0,unexpandable:!o.gullet.isExpandable(l.text)}),o.gullet.macros.set(u,b,h)};Ve({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(o){let{parser:u,funcName:l}=o;u.consumeSpaces();const h=u.fetch();if(l1[h.text])return(l==="\\global"||l==="\\\\globallong")&&(h.text=l1[h.text]),at(u.parseFunction(),"internal");throw new a("Invalid token after macro prefix",h)}}),Ve({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(o){let{parser:u,funcName:l}=o,h=u.gullet.popToken();const b=h.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(b))throw new a("Expected a control sequence",h);let D=0,E;const I=[[]];for(;u.gullet.future().text!=="{";)if(h=u.gullet.popToken(),h.text==="#"){if(u.gullet.future().text==="{"){E=u.gullet.future(),I[D].push("{");break}if(h=u.gullet.popToken(),!/^[1-9]$/.test(h.text))throw new a('Invalid argument number "'+h.text+'"');if(parseInt(h.text)!==D+1)throw new a('Argument number "'+h.text+'" out of order');D++,I.push([])}else{if(h.text==="EOF")throw new a("Expected a macro definition");I[D].push(h.text)}let{tokens:P}=u.gullet.consumeArg();return E&&P.unshift(E),(l==="\\edef"||l==="\\xdef")&&(P=u.gullet.expandTokens(P),P.reverse()),u.gullet.macros.set(b,{tokens:P,numArgs:D,delimiters:I},l===l1[l]),{type:"internal",mode:u.mode}}}),Ve({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(o){let{parser:u,funcName:l}=o;const h=h3(u.gullet.popToken());u.gullet.consumeSpaces();const b=Wv(u);return m3(u,h,b,l==="\\\\globallet"),{type:"internal",mode:u.mode}}}),Ve({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(o){let{parser:u,funcName:l}=o;const h=h3(u.gullet.popToken()),b=u.gullet.popToken(),D=u.gullet.popToken();return m3(u,h,D,l==="\\\\globalfuture"),u.gullet.pushToken(D),u.gullet.pushToken(b),{type:"internal",mode:u.mode}}});const xu=function(o,u,l){const h=kt.math[o]&&kt.math[o].replace,b=ea(h||o,u,l);if(!b)throw new Error("Unsupported symbol "+o+" and font size "+u+".");return b},c1=function(o,u,l,h){const b=l.havingBaseStyle(u),D=Fe(h.concat(b.sizingClasses(l)),[o],l),E=b.sizeMultiplier/l.sizeMultiplier;return D.height*=E,D.depth*=E,D.maxFontSize=b.sizeMultiplier,D},p3=function(o,u,l){const h=u.havingBaseStyle(l),b=(1-u.sizeMultiplier/h.sizeMultiplier)*u.fontMetrics().axisHeight;o.classes.push("delimcenter"),o.style.top=Ce(b),o.height-=b,o.depth+=b},Gv=function(o,u,l,h,b,D){const E=zt(o,"Main-Regular",b,h),I=c1(E,u,h,D);return p3(I,h,u),I},Xv=function(o,u,l,h){return zt(o,"Size"+u+"-Regular",l,h)},g3=function(o,u,l,h,b,D){const E=Xv(o,u,b,h),I=c1(Fe(["delimsizing","size"+u],[E],h),ne.TEXT,h,D);return l&&p3(I,h,ne.TEXT),I},d1=function(o,u,l){let h;return u==="Size1-Regular"?h="delim-size1":h="delim-size4",{type:"elem",elem:Fe(["delimsizinginner",h],[Fe([],[zt(o,u,l)])])}},f1=function(o,u,l){const h=K0["Size4-Regular"][o.charCodeAt(0)]?K0["Size4-Regular"][o.charCodeAt(0)][4]:K0["Size1-Regular"][o.charCodeAt(0)][4],b=new Hr("inner",Ke(o,Math.round(1e3*u))),D=new fr([b],{width:Ce(h),height:Ce(u),style:"width:"+Ce(h),viewBox:"0 0 "+1e3*h+" "+Math.round(1e3*u),preserveAspectRatio:"xMinYMin"}),E=ta([],[D],l);return E.height=u,E.style.height=Ce(u),E.style.width=Ce(h),{type:"elem",elem:E}},h1=.008,ws={type:"kern",size:-1*h1},Yv=new Set(["|","\\lvert","\\rvert","\\vert"]),Zv=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),b3=function(o,u,l,h,b,D){let E,I,P,G,re="",oe=0;E=P=G=o,I=null;let se="Size1-Regular";o==="\\uparrow"?P=G="⏐":o==="\\Uparrow"?P=G="‖":o==="\\downarrow"?E=P="⏐":o==="\\Downarrow"?E=P="‖":o==="\\updownarrow"?(E="\\uparrow",P="⏐",G="\\downarrow"):o==="\\Updownarrow"?(E="\\Uparrow",P="‖",G="\\Downarrow"):Yv.has(o)?(P="∣",re="vert",oe=333):Zv.has(o)?(P="∥",re="doublevert",oe=556):o==="["||o==="\\lbrack"?(E="⎡",P="⎢",G="⎣",se="Size4-Regular",re="lbrack",oe=667):o==="]"||o==="\\rbrack"?(E="⎤",P="⎥",G="⎦",se="Size4-Regular",re="rbrack",oe=667):o==="\\lfloor"||o==="⌊"?(P=E="⎢",G="⎣",se="Size4-Regular",re="lfloor",oe=667):o==="\\lceil"||o==="⌈"?(E="⎡",P=G="⎢",se="Size4-Regular",re="lceil",oe=667):o==="\\rfloor"||o==="⌋"?(P=E="⎥",G="⎦",se="Size4-Regular",re="rfloor",oe=667):o==="\\rceil"||o==="⌉"?(E="⎤",P=G="⎥",se="Size4-Regular",re="rceil",oe=667):o==="("||o==="\\lparen"?(E="⎛",P="⎜",G="⎝",se="Size4-Regular",re="lparen",oe=875):o===")"||o==="\\rparen"?(E="⎞",P="⎟",G="⎠",se="Size4-Regular",re="rparen",oe=875):o==="\\{"||o==="\\lbrace"?(E="⎧",I="⎨",G="⎩",P="⎪",se="Size4-Regular"):o==="\\}"||o==="\\rbrace"?(E="⎫",I="⎬",G="⎭",P="⎪",se="Size4-Regular"):o==="\\lgroup"||o==="⟮"?(E="⎧",G="⎩",P="⎪",se="Size4-Regular"):o==="\\rgroup"||o==="⟯"?(E="⎫",G="⎭",P="⎪",se="Size4-Regular"):o==="\\lmoustache"||o==="⎰"?(E="⎧",G="⎭",P="⎪",se="Size4-Regular"):(o==="\\rmoustache"||o==="⎱")&&(E="⎫",G="⎩",P="⎪",se="Size4-Regular");const Ae=xu(E,se,b),Ie=Ae.height+Ae.depth,$e=xu(P,se,b),ht=$e.height+$e.depth,Je=xu(G,se,b),mt=Je.height+Je.depth;let At=0,s0=1;if(I!==null){const Ar=xu(I,se,b);At=Ar.height+Ar.depth,s0=2}const g0=Ie+mt+At,b0=Math.max(0,Math.ceil((u-g0)/(s0*ht))),N0=g0+b0*s0*ht;let fi=h.fontMetrics().axisHeight;l&&(fi*=h.sizeMultiplier);const Es=N0/2-fi,G0=[];if(re.length>0){const Ar=N0-Ie-mt,hi=Math.round(N0*1e3),mi=ot(re,Math.round(Ar*1e3)),xt=new Hr(re,mi),e0=Ce(oe/1e3),It=Ce(hi/1e3),l0=new fr([xt],{width:e0,height:It,viewBox:"0 0 "+oe+" "+hi}),Dr=ta([],[l0],h);Dr.height=hi/1e3,Dr.style.width=e0,Dr.style.height=It,G0.push({type:"elem",elem:Dr})}else{if(G0.push(d1(G,se,b)),G0.push(ws),I===null){const Ar=N0-Ie-mt+2*h1;G0.push(f1(P,Ar,h))}else{const Ar=(N0-Ie-mt-At)/2+2*h1;G0.push(f1(P,Ar,h)),G0.push(ws),G0.push(d1(I,se,b)),G0.push(ws),G0.push(f1(P,Ar,h))}G0.push(ws),G0.push(d1(E,se,b))}const Fs=h.havingBaseStyle(ne.TEXT),Ts=vt({positionType:"bottom",positionData:Es,children:G0});return c1(Fe(["delimsizing","mult"],[Ts],Fs),ne.TEXT,h,D)},m1=80,p1=.08,g1=function(o,u,l,h,b){const D=Ye(o,h,l),E=new Hr(o,D),I=new fr([E],{width:"400em",height:Ce(u),viewBox:"0 0 400000 "+l,preserveAspectRatio:"xMinYMin slice"});return ta(["hide-tail"],[I],b)},Kv=function(o,u){const l=u.havingBaseSizing(),h=A3("\\surd",o*l.sizeMultiplier,x3,l);let b=l.sizeMultiplier;const D=Math.max(0,u.minRuleThickness-u.fontMetrics().sqrtRuleThickness);let E,I=0,P=0,G=0,re;return h.type==="small"?(G=1e3+1e3*D+m1,o<1?b=1:o<1.4&&(b=.7),I=(1+D+p1)/b,P=(1+D)/b,E=g1("sqrtMain",I,G,D,u),E.style.minWidth="0.853em",re=.833/b):h.type==="large"?(G=(1e3+m1)*Au[h.size],P=(Au[h.size]+D)/b,I=(Au[h.size]+D+p1)/b,E=g1("sqrtSize"+h.size,I,G,D,u),E.style.minWidth="1.02em",re=1/b):(I=o+D+p1,P=o+D,G=Math.floor(1e3*o+D)+m1,E=g1("sqrtTall",I,G,D,u),E.style.minWidth="0.742em",re=1.056),E.height=P,E.style.height=Ce(I),{span:E,advanceWidth:re,ruleWidth:(u.fontMetrics().sqrtRuleThickness+D)*b}},y3=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),Qv=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),v3=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Au=[0,1.2,1.8,2.4,3],w3=function(o,u,l,h,b){if(o==="<"||o==="\\lt"||o==="⟨"?o="\\langle":(o===">"||o==="\\gt"||o==="⟩")&&(o="\\rangle"),y3.has(o)||v3.has(o))return g3(o,u,!1,l,h,b);if(Qv.has(o))return b3(o,Au[u],!1,l,h,b);throw new a("Illegal delimiter: '"+o+"'")},Jv=[{type:"small",style:ne.SCRIPTSCRIPT},{type:"small",style:ne.SCRIPT},{type:"small",style:ne.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ew=[{type:"small",style:ne.SCRIPTSCRIPT},{type:"small",style:ne.SCRIPT},{type:"small",style:ne.TEXT},{type:"stack"}],x3=[{type:"small",style:ne.SCRIPTSCRIPT},{type:"small",style:ne.SCRIPT},{type:"small",style:ne.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tw=function(o){if(o.type==="small")return"Main-Regular";if(o.type==="large")return"Size"+o.size+"-Regular";if(o.type==="stack")return"Size4-Regular";{const u=o.type;throw new Error("Add support for delim type '"+u+"' here.")}},A3=function(o,u,l,h){const b=Math.min(2,3-h.style.size);for(let D=b;D<l.length;D++){const E=l[D];if(E.type==="stack")break;const I=xu(o,tw(E),"math");let P=I.height+I.depth;if(E.type==="small"){const G=h.havingBaseStyle(E.style);P*=G.sizeMultiplier}if(P>u)return E}return l[l.length-1]},b1=function(o,u,l,h,b,D){o==="<"||o==="\\lt"||o==="⟨"?o="\\langle":(o===">"||o==="\\gt"||o==="⟩")&&(o="\\rangle");let E;v3.has(o)?E=Jv:y3.has(o)?E=x3:E=ew;const I=A3(o,u,E,h);return I.type==="small"?Gv(o,I.style,l,h,b,D):I.type==="large"?g3(o,I.size,l,h,b,D):b3(o,u,l,h,b,D)},y1=function(o,u,l,h,b,D){const E=h.fontMetrics().axisHeight*h.sizeMultiplier,I=901,P=5/h.fontMetrics().ptPerEm,G=Math.max(u-E,l+E),re=Math.max(G/500*I,2*G-P);return b1(o,re,!0,h,b,D)},D3={"\\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}},rw=new Set(["(","\\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 xs(o,u){const l=bs(o);if(l&&rw.has(l.text))return l;throw l?new a("Invalid delimiter '"+l.text+"' after '"+u.funcName+"'",o):new a("Invalid delimiter type '"+o.type+"'",o)}Ve({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:(o,u)=>{const l=xs(u[0],o);return{type:"delimsizing",mode:o.parser.mode,size:D3[o.funcName].size,mclass:D3[o.funcName].mclass,delim:l.text}},htmlBuilder:(o,u)=>o.delim==="."?Fe([o.mclass]):w3(o.delim,o.size,u,o.mode,[o.mclass]),mathmlBuilder:o=>{const u=[];o.delim!=="."&&u.push(xr(o.delim,o.mode));const l=new Me("mo",u);o.mclass==="mopen"||o.mclass==="mclose"?l.setAttribute("fence","true"):l.setAttribute("fence","false"),l.setAttribute("stretchy","true");const h=Ce(Au[o.size]);return l.setAttribute("minsize",h),l.setAttribute("maxsize",h),l}});function k3(o){if(!o.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ve({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(o,u)=>{const l=o.parser.gullet.macros.get("\\current@color");if(l&&typeof l!="string")throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:o.parser.mode,delim:xs(u[0],o).text,color:l}}}),Ve({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(o,u)=>{const l=xs(u[0],o),h=o.parser;++h.leftrightDepth;const b=h.parseExpression(!1);--h.leftrightDepth,h.expect("\\right",!1);const D=at(h.parseFunction(),"leftright-right");return{type:"leftright",mode:h.mode,body:b,left:l.text,right:D.delim,rightColor:D.color}},htmlBuilder:(o,u)=>{k3(o);const l=p0(o.body,u,!0,["mopen","mclose"]);let h=0,b=0,D=!1;for(let P=0;P<l.length;P++)l[P].isMiddle?D=!0:(h=Math.max(l[P].height,h),b=Math.max(l[P].depth,b));h*=u.sizeMultiplier,b*=u.sizeMultiplier;let E;if(o.left==="."?E=wu(u,["mopen"]):E=y1(o.left,h,b,u,o.mode,["mopen"]),l.unshift(E),D)for(let P=1;P<l.length;P++){const re=l[P].isMiddle;re&&(l[P]=y1(re.delim,h,b,re.options,o.mode,[]))}let I;if(o.right===".")I=wu(u,["mclose"]);else{const P=o.rightColor?u.withColor(o.rightColor):u;I=y1(o.right,h,b,P,o.mode,["mclose"])}return l.push(I),Fe(["minner"],l,u)},mathmlBuilder:(o,u)=>{k3(o);const l=hr(o.body,u);if(o.left!=="."){const h=new Me("mo",[xr(o.left,o.mode)]);h.setAttribute("fence","true"),l.unshift(h)}if(o.right!=="."){const h=new Me("mo",[xr(o.right,o.mode)]);h.setAttribute("fence","true"),o.rightColor&&h.setAttribute("mathcolor",o.rightColor),l.push(h)}return i1(l)}}),Ve({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(o,u)=>{const l=xs(u[0],o);if(!o.parser.leftrightDepth)throw new a("\\middle without preceding \\left",l);return{type:"middle",mode:o.parser.mode,delim:l.text}},htmlBuilder:(o,u)=>{let l;if(o.delim===".")l=wu(u,[]);else{l=w3(o.delim,1,u,o.mode,[]);const h={delim:o.delim,options:u};l.isMiddle=h}return l},mathmlBuilder:(o,u)=>{const l=o.delim==="\\vert"||o.delim==="|"?xr("|","text"):xr(o.delim,o.mode),h=new Me("mo",[l]);return h.setAttribute("fence","true"),h.setAttribute("lspace","0.05em"),h.setAttribute("rspace","0.05em"),h}});const As=(o,u)=>{const l=ci(wt(o.body,u),u),h=o.label.slice(1);let b=u.sizeMultiplier,D,E=0;const I=k(o.body);if(h==="sout")D=Fe(["stretchy","sout"]),D.height=u.fontMetrics().defaultRuleThickness/b,E=-.5*u.fontMetrics().xHeight;else if(h==="phase"){const G=ft({number:.6,unit:"pt"},u),re=ft({number:.35,unit:"ex"},u),oe=u.havingBaseSizing();b=b/oe.sizeMultiplier;const se=l.height+l.depth+G+re;l.style.paddingLeft=Ce(se/2+G);const Ae=Math.floor(1e3*se*b),Ie=ge(Ae),$e=new fr([new Hr("phase",Ie)],{width:"400em",height:Ce(Ae/1e3),viewBox:"0 0 400000 "+Ae,preserveAspectRatio:"xMinYMin slice"});D=ta(["hide-tail"],[$e],u),D.style.height=Ce(se),E=l.depth+G+re}else{/cancel/.test(h)?I||l.classes.push("cancel-pad"):h==="angl"?l.classes.push("anglpad"):l.classes.push("boxpad");let G=0,re=0,oe=0;/box/.test(h)?(oe=Math.max(u.fontMetrics().fboxrule,u.minRuleThickness),G=u.fontMetrics().fboxsep+(h==="colorbox"?0:oe),re=G):h==="angl"?(oe=Math.max(u.fontMetrics().defaultRuleThickness,u.minRuleThickness),G=4*oe,re=Math.max(0,.25-l.depth)):(G=I?.2:0,re=G),D=Vv(l,h,G,re,u),/fbox|boxed|fcolorbox/.test(h)?(D.style.borderStyle="solid",D.style.borderWidth=Ce(oe)):h==="angl"&&oe!==.049&&(D.style.borderTopWidth=Ce(oe),D.style.borderRightWidth=Ce(oe)),E=l.depth+re,o.backgroundColor&&(D.style.backgroundColor=o.backgroundColor,o.borderColor&&(D.style.borderColor=o.borderColor))}let P;if(o.backgroundColor)P=vt({positionType:"individualShift",children:[{type:"elem",elem:D,shift:E},{type:"elem",elem:l,shift:0}]});else{const G=/cancel|phase/.test(h)?["svg-align"]:[];P=vt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:D,shift:E,wrapperClasses:G}]})}return/cancel/.test(h)&&(P.height=l.height,P.depth=l.depth),/cancel/.test(h)&&!I?Fe(["mord","cancel-lap"],[P],u):Fe(["mord"],[P],u)},Ds=(o,u)=>{let l=0;const h=new Me(o.label.includes("colorbox")?"mpadded":"menclose",[St(o.body,u)]);switch(o.label){case"\\cancel":h.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":h.setAttribute("notation","downdiagonalstrike");break;case"\\phase":h.setAttribute("notation","phasorangle");break;case"\\sout":h.setAttribute("notation","horizontalstrike");break;case"\\fbox":h.setAttribute("notation","box");break;case"\\angl":h.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(l=u.fontMetrics().fboxsep*u.fontMetrics().ptPerEm,h.setAttribute("width","+"+2*l+"pt"),h.setAttribute("height","+"+2*l+"pt"),h.setAttribute("lspace",l+"pt"),h.setAttribute("voffset",l+"pt"),o.label==="\\fcolorbox"){const b=Math.max(u.fontMetrics().fboxrule,u.minRuleThickness);h.setAttribute("style","border: "+Ce(b)+" solid "+o.borderColor)}break;case"\\xcancel":h.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return o.backgroundColor&&h.setAttribute("mathbackground",o.backgroundColor),h};Ve({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(o,u,l){let{parser:h,funcName:b}=o;const D=at(u[0],"color-token").color,E=u[1];return{type:"enclose",mode:h.mode,label:b,backgroundColor:D,body:E}},htmlBuilder:As,mathmlBuilder:Ds}),Ve({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(o,u,l){let{parser:h,funcName:b}=o;const D=at(u[0],"color-token").color,E=at(u[1],"color-token").color,I=u[2];return{type:"enclose",mode:h.mode,label:b,backgroundColor:E,borderColor:D,body:I}},htmlBuilder:As,mathmlBuilder:Ds}),Ve({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(o,u){let{parser:l}=o;return{type:"enclose",mode:l.mode,label:"\\fbox",body:u[0]}}}),Ve({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(o,u){let{parser:l,funcName:h}=o;const b=u[0];return{type:"enclose",mode:l.mode,label:h,body:b}},htmlBuilder:As,mathmlBuilder:Ds}),Ve({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(o,u){let{parser:l,funcName:h}=o;l.mode==="math"&&l.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");const b=u[0];return{type:"enclose",mode:l.mode,label:h,body:b}},htmlBuilder:As,mathmlBuilder:Ds}),Ve({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(o,u){let{parser:l}=o;return{type:"enclose",mode:l.mode,label:"\\angl",body:u[0]}}});const C3={};function sn(o){let{type:u,names:l,props:h,handler:b,htmlBuilder:D,mathmlBuilder:E}=o;const I={type:u,numArgs:h.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:b};for(let P=0;P<l.length;++P)C3[l[P]]=I;D&&(cs[u]=D),E&&(ds[u]=E)}const S3={};function L(o,u){S3[o]=u}class Q0{constructor(u,l,h){this.lexer=u,this.start=l,this.end=h}static range(u,l){return l?!u||!u.loc||!l.loc||u.loc.lexer!==l.loc.lexer?null:new Q0(u.loc.lexer,u.loc.start,l.loc.end):u&&u.loc}}class mr{constructor(u,l){this.text=u,this.loc=l}range(u,l){return new mr(l,Q0.range(this,u))}}function E3(o){const u=[];o.consumeSpaces();let l=o.fetch().text;for(l==="\\relax"&&(o.consume(),o.consumeSpaces(),l=o.fetch().text);l==="\\hline"||l==="\\hdashline";)o.consume(),u.push(l==="\\hdashline"),o.consumeSpaces(),l=o.fetch().text;return u}const ks=o=>{if(!o.parser.settings.displayMode)throw new a("{"+o.envName+"} can be used only in display mode.")},nw=new Set(["gather","gather*"]);function v1(o){if(!o.includes("ed"))return!o.includes("*")}function na(o,u,l){let{hskipBeforeAndAfter:h,addJot:b,cols:D,arraystretch:E,colSeparationType:I,autoTag:P,singleRow:G,emptySingleRow:re,maxNumCols:oe,leqno:se}=u;if(o.gullet.beginGroup(),G||o.gullet.macros.set("\\cr","\\\\\\relax"),!E){const s0=o.gullet.expandMacroAsText("\\arraystretch");if(s0==null)E=1;else if(E=parseFloat(s0),!E||E<0)throw new a("Invalid \\arraystretch: "+s0)}o.gullet.beginGroup();let Ae=[];const Ie=[Ae],$e=[],ht=[],Je=P!=null?[]:void 0;function mt(){P&&o.gullet.macros.set("\\@eqnsw","1",!0)}function At(){Je&&(o.gullet.macros.get("\\df@tag")?(Je.push(o.subparse([new mr("\\df@tag")])),o.gullet.macros.set("\\df@tag",void 0,!0)):Je.push(!!P&&o.gullet.macros.get("\\@eqnsw")==="1"))}for(mt(),ht.push(E3(o));;){const s0=o.parseExpression(!1,G?"\\end":"\\\\");o.gullet.endGroup(),o.gullet.beginGroup();let g0={type:"ordgroup",mode:o.mode,body:s0};l&&(g0={type:"styling",mode:o.mode,style:l,body:[g0]}),Ae.push(g0);const b0=o.fetch().text;if(b0==="&"){if(oe&&Ae.length===oe){if(G||I)throw new a("Too many tab characters: &",o.nextToken);o.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}o.consume()}else if(b0==="\\end"){At(),Ae.length===1&&g0.type==="styling"&&g0.body.length===1&&g0.body[0].type==="ordgroup"&&g0.body[0].body.length===0&&(Ie.length>1||!re)&&Ie.pop(),ht.length<Ie.length+1&&ht.push([]);break}else if(b0==="\\\\"){o.consume();let N0;o.gullet.future().text!==" "&&(N0=o.parseSizeGroup(!0)),$e.push(N0?N0.value:null),At(),ht.push(E3(o)),Ae=[],Ie.push(Ae),mt()}else throw new a("Expected & or \\\\ or \\cr or \\end",o.nextToken)}return o.gullet.endGroup(),o.gullet.endGroup(),{type:"array",mode:o.mode,addJot:b,arraystretch:E,body:Ie,cols:D,rowGaps:$e,hskipBeforeAndAfter:h,hLinesBeforeRow:ht,colSeparationType:I,tags:Je,leqno:se}}function w1(o){return o.slice(0,1)==="d"?"display":"text"}const ln=function(o,u){let l,h;const b=o.body.length,D=o.hLinesBeforeRow;let E=0;const I=new Array(b),P=[],G=Math.max(u.fontMetrics().arrayRuleWidth,u.minRuleThickness),re=1/u.fontMetrics().ptPerEm;let oe=5*re;o.colSeparationType&&o.colSeparationType==="small"&&(oe=.2778*(u.havingStyle(ne.SCRIPT).sizeMultiplier/u.sizeMultiplier));const se=o.colSeparationType==="CD"?ft({number:3,unit:"ex"},u):12*re,Ae=3*re,Ie=o.arraystretch*se,$e=.7*Ie,ht=.3*Ie;let Je=0;function mt(xt){for(let e0=0;e0<xt.length;++e0)e0>0&&(Je+=.25),P.push({pos:Je,isDashed:xt[e0]})}for(mt(D[0]),l=0;l<o.body.length;++l){const xt=o.body[l];let e0=$e,It=ht;E<xt.length&&(E=xt.length);const l0=new Array(xt.length);for(h=0;h<xt.length;++h){const kr=wt(xt[h],u);It<kr.depth&&(It=kr.depth),e0<kr.height&&(e0=kr.height),l0[h]=kr}const Dr=o.rowGaps[l];let Fn=0;Dr&&(Fn=ft(Dr,u),Fn>0&&(Fn+=ht,It<Fn&&(It=Fn),Fn=0)),o.addJot&&l<o.body.length-1&&(It+=Ae),l0.height=e0,l0.depth=It,Je+=e0,l0.pos=Je,Je+=It+Fn,I[l]=l0,mt(D[l+1])}const At=Je/2+u.fontMetrics().axisHeight,s0=o.cols||[],g0=[];let b0,N0;const fi=[];if(o.tags&&o.tags.some(xt=>xt))for(l=0;l<b;++l){const xt=I[l],e0=xt.pos-At,It=o.tags[l];let l0;It===!0?l0=Fe(["eqn-num"],[],u):It===!1?l0=Fe([],[],u):l0=Fe([],p0(It,u,!0),u),l0.depth=xt.depth,l0.height=xt.height,fi.push({type:"elem",elem:l0,shift:e0})}for(h=0,N0=0;h<E||N0<s0.length;++h,++N0){var Es;let xt=s0[N0],e0=!0;for(;((G0=xt)==null?void 0:G0.type)==="separator";){var G0;if(e0||(b0=Fe(["arraycolsep"],[]),b0.style.width=Ce(u.fontMetrics().doubleRuleSep),g0.push(b0)),xt.separator==="|"||xt.separator===":"){const kr=xt.separator==="|"?"solid":"dashed",jr=Fe(["vertical-separator"],[],u);jr.style.height=Ce(Je),jr.style.borderRightWidth=Ce(G),jr.style.borderRightStyle=kr,jr.style.margin="0 "+Ce(-G/2);const Bs=Je-At;Bs&&(jr.style.verticalAlign=Ce(-Bs)),g0.push(jr)}else throw new a("Invalid separator type: "+xt.separator);N0++,xt=s0[N0],e0=!1}if(h>=E)continue;let It;if(h>0||o.hskipBeforeAndAfter){var Fs,Ts;It=(Fs=(Ts=xt)==null?void 0:Ts.pregap)!=null?Fs:oe,It!==0&&(b0=Fe(["arraycolsep"],[]),b0.style.width=Ce(It),g0.push(b0))}const l0=[];for(l=0;l<b;++l){const kr=I[l],jr=kr[h];if(!jr)continue;const Bs=kr.pos-At;jr.depth=kr.depth,jr.height=kr.height,l0.push({type:"elem",elem:jr,shift:Bs})}const Dr=vt({positionType:"individualShift",children:l0}),Fn=Fe(["col-align-"+(((Es=xt)==null?void 0:Es.align)||"c")],[Dr]);if(g0.push(Fn),h<E-1||o.hskipBeforeAndAfter){var Ar,hi;It=(Ar=(hi=xt)==null?void 0:hi.postgap)!=null?Ar:oe,It!==0&&(b0=Fe(["arraycolsep"],[]),b0.style.width=Ce(It),g0.push(b0))}}let mi=Fe(["mtable"],g0);if(P.length>0){const xt=li("hline",u,G),e0=li("hdashline",u,G),It=[{type:"elem",elem:mi,shift:0}];for(;P.length>0;){const l0=P.pop(),Dr=l0.pos-At;l0.isDashed?It.push({type:"elem",elem:e0,shift:Dr}):It.push({type:"elem",elem:xt,shift:Dr})}mi=vt({positionType:"individualShift",children:It})}if(fi.length===0)return Fe(["mord"],[mi],u);{const xt=vt({positionType:"individualShift",children:fi}),e0=Fe(["tag"],[xt],u);return Cn([mi,e0])}},aw={c:"center ",l:"left ",r:"right "},cn=function(o,u){const l=[],h=new Me("mtd",[],["mtr-glue"]),b=new Me("mtd",[],["mml-eqn-num"]);for(let oe=0;oe<o.body.length;oe++){const se=o.body[oe],Ae=[];for(let Ie=0;Ie<se.length;Ie++)Ae.push(new Me("mtd",[St(se[Ie],u)]));o.tags&&o.tags[oe]&&(Ae.unshift(h),Ae.push(h),o.leqno?Ae.unshift(b):Ae.push(b)),l.push(new Me("mtr",Ae))}let D=new Me("mtable",l);const E=o.arraystretch===.5?.1:.16+o.arraystretch-1+(o.addJot?.09:0);D.setAttribute("rowspacing",Ce(E));let I="",P="";if(o.cols&&o.cols.length>0){const oe=o.cols;let se="",Ae=!1,Ie=0,$e=oe.length;oe[0].type==="separator"&&(I+="top ",Ie=1),oe[oe.length-1].type==="separator"&&(I+="bottom ",$e-=1);for(let ht=Ie;ht<$e;ht++){const Je=oe[ht];Je.type==="align"?(P+=aw[Je.align],Ae&&(se+="none "),Ae=!0):Je.type==="separator"&&Ae&&(se+=Je.separator==="|"?"solid ":"dashed ",Ae=!1)}D.setAttribute("columnalign",P.trim()),/[sd]/.test(se)&&D.setAttribute("columnlines",se.trim())}if(o.colSeparationType==="align"){const oe=o.cols||[];let se="";for(let Ae=1;Ae<oe.length;Ae++)se+=Ae%2?"0em ":"1em ";D.setAttribute("columnspacing",se.trim())}else o.colSeparationType==="alignat"||o.colSeparationType==="gather"?D.setAttribute("columnspacing","0em"):o.colSeparationType==="small"?D.setAttribute("columnspacing","0.2778em"):o.colSeparationType==="CD"?D.setAttribute("columnspacing","0.5em"):D.setAttribute("columnspacing","1em");let G="";const re=o.hLinesBeforeRow;I+=re[0].length>0?"left ":"",I+=re[re.length-1].length>0?"right ":"";for(let oe=1;oe<re.length-1;oe++)G+=re[oe].length===0?"none ":re[oe][0]?"dashed ":"solid ";return/[sd]/.test(G)&&D.setAttribute("rowlines",G.trim()),I!==""&&(D=new Me("menclose",[D]),D.setAttribute("notation",I.trim())),o.arraystretch&&o.arraystretch<1&&(D=new Me("mstyle",[D]),D.setAttribute("scriptlevel","1")),D},F3=function(o,u){o.envName.includes("ed")||ks(o);const l=[],h=o.envName.includes("at")?"alignat":"align",b=o.envName==="split",D=na(o.parser,{cols:l,addJot:!0,autoTag:b?void 0:v1(o.envName),emptySingleRow:!0,colSeparationType:h,maxNumCols:b?2:void 0,leqno:o.parser.settings.leqno},"display");let E=0,I=0;const P={type:"ordgroup",mode:o.mode,body:[]};if(u[0]&&u[0].type==="ordgroup"){let re="";for(let oe=0;oe<u[0].body.length;oe++){const se=at(u[0].body[oe],"textord");re+=se.text}E=Number(re),I=E*2}const G=!I;D.body.forEach(function(re){for(let oe=1;oe<re.length;oe+=2){const se=at(re[oe],"styling");at(se.body[0],"ordgroup").body.unshift(P)}if(G)I<re.length&&(I=re.length);else{const oe=re.length/2;if(E<oe)throw new a("Too many math in a row: "+("expected "+E+", but got "+oe),re[0])}});for(let re=0;re<I;++re){let oe="r",se=0;re%2===1?oe="l":re>0&&G&&(se=1),l[re]={type:"align",align:oe,pregap:se,postgap:0}}return D.colSeparationType=G?"align":"alignat",D};sn({type:"array",names:["array","darray"],props:{numArgs:1},handler(o,u){const b=(bs(u[0])?[u[0]]:at(u[0],"ordgroup").body).map(function(E){const P=gs(E).text;if("lcr".includes(P))return{type:"align",align:P};if(P==="|")return{type:"separator",separator:"|"};if(P===":")return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+P,E)}),D={cols:b,hskipBeforeAndAfter:!0,maxNumCols:b.length};return na(o.parser,D,w1(o.envName))},htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(o){const u={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[o.envName.replace("*","")];let l="c";const h={hskipBeforeAndAfter:!1,cols:[{type:"align",align:l}]};if(o.envName.charAt(o.envName.length-1)==="*"){const E=o.parser;if(E.consumeSpaces(),E.fetch().text==="["){if(E.consume(),E.consumeSpaces(),l=E.fetch().text,!"lcr".includes(l))throw new a("Expected l or c or r",E.nextToken);E.consume(),E.consumeSpaces(),E.expect("]"),E.consume(),h.cols=[{type:"align",align:l}]}}const b=na(o.parser,h,w1(o.envName)),D=Math.max(0,...b.body.map(E=>E.length));return b.cols=new Array(D).fill({type:"align",align:l}),u?{type:"leftright",mode:o.mode,body:[b],left:u[0],right:u[1],rightColor:void 0}:b},htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(o){const u={arraystretch:.5},l=na(o.parser,u,"script");return l.colSeparationType="small",l},htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["subarray"],props:{numArgs:1},handler(o,u){const b=(bs(u[0])?[u[0]]:at(u[0],"ordgroup").body).map(function(I){const G=gs(I).text;if("lc".includes(G))return{type:"align",align:G};throw new a("Unknown column alignment: "+G,I)});if(b.length>1)throw new a("{subarray} can contain only one column");const D={cols:b,hskipBeforeAndAfter:!1,arraystretch:.5},E=na(o.parser,D,"script");if(E.body.length>0&&E.body[0].length>1)throw new a("{subarray} can contain only one column");return E},htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(o){const u={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},l=na(o.parser,u,w1(o.envName));return{type:"leftright",mode:o.mode,body:[l],left:o.envName.includes("r")?".":"\\{",right:o.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:F3,htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(o){nw.has(o.envName)&&ks(o);const u={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:v1(o.envName),emptySingleRow:!0,leqno:o.parser.settings.leqno};return na(o.parser,u,"display")},htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:F3,htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(o){ks(o);const u={autoTag:v1(o.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:o.parser.settings.leqno};return na(o.parser,u,"display")},htmlBuilder:ln,mathmlBuilder:cn}),sn({type:"array",names:["CD"],props:{numArgs:0},handler(o){return ks(o),Uv(o.parser)},htmlBuilder:ln,mathmlBuilder:cn}),L("\\nonumber","\\gdef\\@eqnsw{0}"),L("\\notag","\\nonumber"),Ve({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(o,u){throw new a(o.funcName+" valid only within array environment")}});var T3=C3;Ve({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(o,u){let{parser:l,funcName:h}=o;const b=u[0];if(b.type!=="ordgroup")throw new a("Invalid environment name",b);let D="";for(let E=0;E<b.body.length;++E)D+=at(b.body[E],"textord").text;if(h==="\\begin"){if(!T3.hasOwnProperty(D))throw new a("No such environment: "+D,b);const E=T3[D],{args:I,optArgs:P}=l.parseArguments("\\begin{"+D+"}",E),G={mode:l.mode,envName:D,parser:l},re=E.handler(G,I,P);l.expect("\\end",!1);const oe=l.nextToken,se=at(l.parseFunction(),"environment");if(se.name!==D)throw new a("Mismatch: \\begin{"+D+"} matched by \\end{"+se.name+"}",oe);return re}return{type:"environment",mode:l.mode,name:D,nameGroup:b}}});const B3=(o,u)=>{const l=o.font,h=u.withFont(l);return wt(o.body,h)},M3=(o,u)=>{const l=o.font,h=u.withFont(l);return St(o.body,h)},N3={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ve({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(o,u)=>{let{parser:l,funcName:h}=o;const b=fs(u[0]);let D=h;return D in N3&&(D=N3[D]),{type:"font",mode:l.mode,font:D.slice(1),body:b}},htmlBuilder:B3,mathmlBuilder:M3}),Ve({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(o,u)=>{let{parser:l}=o;const h=u[0];return{type:"mclass",mode:l.mode,mclass:vs(h),body:[{type:"font",mode:l.mode,font:"boldsymbol",body:h}],isCharacterBox:k(h)}}}),Ve({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(o,u)=>{let{parser:l,funcName:h,breakOnTokenText:b}=o;const{mode:D}=l,E=l.parseExpression(!0,b),I="math"+h.slice(1);return{type:"font",mode:D,font:I,body:{type:"ordgroup",mode:l.mode,body:E}}},htmlBuilder:B3,mathmlBuilder:M3});const iw=(o,u)=>{const l=u.style,h=l.fracNum(),b=l.fracDen();let D;D=u.havingStyle(h);const E=wt(o.numer,D,u);if(o.continued){const mt=8.5/u.fontMetrics().ptPerEm,At=3.5/u.fontMetrics().ptPerEm;E.height=E.height<mt?mt:E.height,E.depth=E.depth<At?At:E.depth}D=u.havingStyle(b);const I=wt(o.denom,D,u);let P,G,re;o.hasBarLine?(o.barSize?(G=ft(o.barSize,u),P=li("frac-line",u,G)):P=li("frac-line",u),G=P.height,re=P.height):(P=null,G=0,re=u.fontMetrics().defaultRuleThickness);let oe,se,Ae;l.size===ne.DISPLAY.size?(oe=u.fontMetrics().num1,G>0?se=3*re:se=7*re,Ae=u.fontMetrics().denom1):(G>0?(oe=u.fontMetrics().num2,se=re):(oe=u.fontMetrics().num3,se=3*re),Ae=u.fontMetrics().denom2);let Ie;if(P){const mt=u.fontMetrics().axisHeight;oe-E.depth-(mt+.5*G)<se&&(oe+=se-(oe-E.depth-(mt+.5*G))),mt-.5*G-(I.height-Ae)<se&&(Ae+=se-(mt-.5*G-(I.height-Ae)));const At=-(mt-.5*G);Ie=vt({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ae},{type:"elem",elem:P,shift:At},{type:"elem",elem:E,shift:-oe}]})}else{const mt=oe-E.depth-(I.height-Ae);mt<se&&(oe+=.5*(se-mt),Ae+=.5*(se-mt)),Ie=vt({positionType:"individualShift",children:[{type:"elem",elem:I,shift:Ae},{type:"elem",elem:E,shift:-oe}]})}D=u.havingStyle(l),Ie.height*=D.sizeMultiplier/u.sizeMultiplier,Ie.depth*=D.sizeMultiplier/u.sizeMultiplier;let $e;l.size===ne.DISPLAY.size?$e=u.fontMetrics().delim1:l.size===ne.SCRIPTSCRIPT.size?$e=u.havingStyle(ne.SCRIPT).fontMetrics().delim2:$e=u.fontMetrics().delim2;let ht,Je;return o.leftDelim==null?ht=wu(u,["mopen"]):ht=b1(o.leftDelim,$e,!0,u.havingStyle(l),o.mode,["mopen"]),o.continued?Je=Fe([]):o.rightDelim==null?Je=wu(u,["mclose"]):Je=b1(o.rightDelim,$e,!0,u.havingStyle(l),o.mode,["mclose"]),Fe(["mord"].concat(D.sizingClasses(u)),[ht,Fe(["mfrac"],[Ie]),Je],u)},uw=(o,u)=>{const l=new Me("mfrac",[St(o.numer,u),St(o.denom,u)]);if(!o.hasBarLine)l.setAttribute("linethickness","0px");else if(o.barSize){const h=ft(o.barSize,u);l.setAttribute("linethickness",Ce(h))}if(o.leftDelim!=null||o.rightDelim!=null){const h=[];if(o.leftDelim!=null){const b=new Me("mo",[new o0(o.leftDelim.replace("\\",""))]);b.setAttribute("fence","true"),h.push(b)}if(h.push(l),o.rightDelim!=null){const b=new Me("mo",[new o0(o.rightDelim.replace("\\",""))]);b.setAttribute("fence","true"),h.push(b)}return i1(h)}return l},_3=(o,u)=>u?{type:"styling",mode:o.mode,style:u,body:[o]}:o;Ve({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(o,u)=>{let{parser:l,funcName:h}=o;const b=u[0],D=u[1];let E,I=null,P=null;switch(h){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":E=!0;break;case"\\\\atopfrac":E=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":E=!1,I="(",P=")";break;case"\\\\bracefrac":E=!1,I="\\{",P="\\}";break;case"\\\\brackfrac":E=!1,I="[",P="]";break;default:throw new Error("Unrecognized genfrac command")}const G=h==="\\cfrac";let re=null;return G||h.startsWith("\\d")?re="display":h.startsWith("\\t")&&(re="text"),_3({type:"genfrac",mode:l.mode,numer:b,denom:D,continued:G,hasBarLine:E,leftDelim:I,rightDelim:P,barSize:null},re)},htmlBuilder:iw,mathmlBuilder:uw}),Ve({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(o){let{parser:u,funcName:l,token:h}=o,b;switch(l){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:u.mode,replaceWith:b,token:h}}});const z3=["display","text","script","scriptscript"],I3=function(o){let u=null;return o.length>0&&(u=o,u=u==="."?null:u),u};Ve({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(o,u){let{parser:l}=o;const h=u[4],b=u[5],D=fs(u[0]),E=D.type==="atom"&&D.family==="open"?I3(D.text):null,I=fs(u[1]),P=I.type==="atom"&&I.family==="close"?I3(I.text):null,G=at(u[2],"size");let re,oe=null;G.isBlank?re=!0:(oe=G.value,re=oe.number>0);let se=null,Ae=u[3];if(Ae.type==="ordgroup"){if(Ae.body.length>0){const Ie=at(Ae.body[0],"textord");se=z3[Number(Ie.text)]}}else Ae=at(Ae,"textord"),se=z3[Number(Ae.text)];return _3({type:"genfrac",mode:l.mode,numer:h,denom:b,continued:!1,hasBarLine:re,barSize:oe,leftDelim:E,rightDelim:P},se)}}),Ve({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(o,u){let{parser:l,funcName:h,token:b}=o;return{type:"infix",mode:l.mode,replaceWith:"\\\\abovefrac",size:at(u[0],"size").value,token:b}}}),Ve({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(o,u)=>{let{parser:l,funcName:h}=o;const b=u[0],D=at(u[1],"infix").size;if(!D)throw new Error("\\\\abovefrac expected size, but got "+String(D));const E=u[2],I=D.number>0;return{type:"genfrac",mode:l.mode,numer:b,denom:E,continued:!1,hasBarLine:I,barSize:D,leftDelim:null,rightDelim:null}}});const O3=(o,u)=>{const l=u.style;let h,b;o.type==="supsub"?(h=o.sup?wt(o.sup,u.havingStyle(l.sup()),u):wt(o.sub,u.havingStyle(l.sub()),u),b=at(o.base,"horizBrace")):b=at(o,"horizBrace");const D=wt(b.base,u.havingBaseStyle(ne.DISPLAY)),E=ps(b,u);let I;if(b.isOver?(I=vt({positionType:"firstBaseline",children:[{type:"elem",elem:D},{type:"kern",size:.1},{type:"elem",elem:E}]}),I.children[0].children[0].children[1].classes.push("svg-align")):(I=vt({positionType:"bottom",positionData:D.depth+.1+E.height,children:[{type:"elem",elem:E},{type:"kern",size:.1},{type:"elem",elem:D}]}),I.children[0].children[0].children[0].classes.push("svg-align")),h){const P=Fe(["minner",b.isOver?"mover":"munder"],[I],u);b.isOver?I=vt({positionType:"firstBaseline",children:[{type:"elem",elem:P},{type:"kern",size:.2},{type:"elem",elem:h}]}):I=vt({positionType:"bottom",positionData:P.depth+.2+h.height+h.depth,children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:P}]})}return Fe(["minner",b.isOver?"mover":"munder"],[I],u)};Ve({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(o,u){let{parser:l,funcName:h}=o;return{type:"horizBrace",mode:l.mode,label:h,isOver:h.includes("\\over"),base:u[0]}},htmlBuilder:O3,mathmlBuilder:(o,u)=>{const l=ms(o.label);return new Me(o.isOver?"mover":"munder",[St(o.base,u),l])}}),Ve({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(o,u)=>{let{parser:l}=o;const h=u[1],b=at(u[0],"url").url;return l.settings.isTrusted({command:"\\href",url:b})?{type:"href",mode:l.mode,href:b,body:u0(h)}:l.formatUnsupportedCmd("\\href")},htmlBuilder:(o,u)=>{const l=p0(o.body,u,!1);return Dv(o.href,[],l,u)},mathmlBuilder:(o,u)=>{let l=ra(o.body,u);return l instanceof Me||(l=new Me("mrow",[l])),l.setAttribute("href",o.href),l}}),Ve({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(o,u)=>{let{parser:l}=o;const h=at(u[0],"url").url;if(!l.settings.isTrusted({command:"\\url",url:h}))return l.formatUnsupportedCmd("\\url");const b=[];for(let E=0;E<h.length;E++){let I=h[E];I==="~"&&(I="\\textasciitilde"),b.push({type:"textord",mode:"text",text:I})}const D={type:"text",mode:l.mode,font:"\\texttt",body:b};return{type:"href",mode:l.mode,href:h,body:u0(D)}}}),Ve({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(o,u){let{parser:l}=o;return{type:"hbox",mode:l.mode,body:u0(u[0])}},htmlBuilder(o,u){const l=p0(o.body,u,!1);return Cn(l)},mathmlBuilder(o,u){return new Me("mrow",hr(o.body,u))}}),Ve({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(o,u)=>{let{parser:l,funcName:h,token:b}=o;const D=at(u[0],"raw").string,E=u[1];l.settings.strict&&l.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");let I;const P={};switch(h){case"\\htmlClass":P.class=D,I={command:"\\htmlClass",class:D};break;case"\\htmlId":P.id=D,I={command:"\\htmlId",id:D};break;case"\\htmlStyle":P.style=D,I={command:"\\htmlStyle",style:D};break;case"\\htmlData":{const G=D.split(",");for(let re=0;re<G.length;re++){const oe=G[re],se=oe.indexOf("=");if(se<0)throw new a("\\htmlData key/value '"+oe+"' missing equals sign");const Ae=oe.slice(0,se),Ie=oe.slice(se+1);P["data-"+Ae.trim()]=Ie}I={command:"\\htmlData",attributes:P};break}default:throw new Error("Unrecognized html command")}return l.settings.isTrusted(I)?{type:"html",mode:l.mode,attributes:P,body:u0(E)}:l.formatUnsupportedCmd(h)},htmlBuilder:(o,u)=>{const l=p0(o.body,u,!1),h=["enclosing"];o.attributes.class&&h.push(...o.attributes.class.trim().split(/\s+/));const b=Fe(h,l,u);for(const D in o.attributes)D!=="class"&&o.attributes.hasOwnProperty(D)&&b.setAttribute(D,o.attributes[D]);return b},mathmlBuilder:(o,u)=>ra(o.body,u)}),Ve({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(o,u)=>{let{parser:l}=o;return{type:"htmlmathml",mode:l.mode,html:u0(u[0]),mathml:u0(u[1])}},htmlBuilder:(o,u)=>{const l=p0(o.html,u,!1);return Cn(l)},mathmlBuilder:(o,u)=>ra(o.mathml,u)});const x1=function(o){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(o))return{number:+o,unit:"bp"};{const u=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(o);if(!u)throw new a("Invalid size: '"+o+"' in \\includegraphics");const l={number:+(u[1]+u[2]),unit:u[3]};if(!Jt(l))throw new a("Invalid unit: '"+l.unit+"' in \\includegraphics.");return l}};Ve({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(o,u,l)=>{let{parser:h}=o,b={number:0,unit:"em"},D={number:.9,unit:"em"},E={number:0,unit:"em"},I="";if(l[0]){const re=at(l[0],"raw").string.split(",");for(let oe=0;oe<re.length;oe++){const se=re[oe].split("=");if(se.length===2){const Ae=se[1].trim();switch(se[0].trim()){case"alt":I=Ae;break;case"width":b=x1(Ae);break;case"height":D=x1(Ae);break;case"totalheight":E=x1(Ae);break;default:throw new a("Invalid key: '"+se[0]+"' in \\includegraphics.")}}}}const P=at(u[0],"url").url;return I===""&&(I=P,I=I.replace(/^.*[\\/]/,""),I=I.substring(0,I.lastIndexOf("."))),h.settings.isTrusted({command:"\\includegraphics",url:P})?{type:"includegraphics",mode:h.mode,alt:I,width:b,height:D,totalheight:E,src:P}:h.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(o,u)=>{const l=ft(o.height,u);let h=0;o.totalheight.number>0&&(h=ft(o.totalheight,u)-l);let b=0;o.width.number>0&&(b=ft(o.width,u));const D={height:Ce(l+h)};b>0&&(D.width=Ce(b)),h>0&&(D.verticalAlign=Ce(-h));const E=new un(o.src,o.alt,D);return E.height=l,E.depth=h,E},mathmlBuilder:(o,u)=>{const l=new Me("mglyph",[]);l.setAttribute("alt",o.alt);const h=ft(o.height,u);let b=0;if(o.totalheight.number>0&&(b=ft(o.totalheight,u)-h,l.setAttribute("valign",Ce(-b))),l.setAttribute("height",Ce(h+b)),o.width.number>0){const D=ft(o.width,u);l.setAttribute("width",Ce(D))}return l.setAttribute("src",o.src),l}}),Ve({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(o,u){let{parser:l,funcName:h}=o;const b=at(u[0],"size");if(l.settings.strict){const D=h[1]==="m",E=b.value.unit==="mu";D?(E||l.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+h+" supports only mu units, "+("not "+b.value.unit+" units")),l.mode!=="math"&&l.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+h+" works only in math mode")):E&&l.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+h+" doesn't support mu units")}return{type:"kern",mode:l.mode,dimension:b.value}},htmlBuilder(o,u){return Gh(o.dimension,u)},mathmlBuilder(o,u){const l=ft(o.dimension,u);return new Jh(l)}}),Ve({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(o,u)=>{let{parser:l,funcName:h}=o;const b=u[0];return{type:"lap",mode:l.mode,alignment:h.slice(5),body:b}},htmlBuilder:(o,u)=>{let l;o.alignment==="clap"?(l=Fe([],[wt(o.body,u)]),l=Fe(["inner"],[l],u)):l=Fe(["inner"],[wt(o.body,u)]);const h=Fe(["fix"],[]);let b=Fe([o.alignment],[l,h],u);const D=Fe(["strut"]);return D.style.height=Ce(b.height+b.depth),b.depth&&(D.style.verticalAlign=Ce(-b.depth)),b.children.unshift(D),b=Fe(["thinbox"],[b],u),Fe(["mord","vbox"],[b],u)},mathmlBuilder:(o,u)=>{const l=new Me("mpadded",[St(o.body,u)]);if(o.alignment!=="rlap"){const h=o.alignment==="llap"?"-1":"-0.5";l.setAttribute("lspace",h+"width")}return l.setAttribute("width","0px"),l}}),Ve({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(o,u){let{funcName:l,parser:h}=o;const b=h.mode;h.switchMode("math");const D=l==="\\("?"\\)":"$",E=h.parseExpression(!1,D);return h.expect(D),h.switchMode(b),{type:"styling",mode:h.mode,style:"text",body:E}}}),Ve({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(o,u){throw new a("Mismatched "+o.funcName)}});const L3=(o,u)=>{switch(u.style.size){case ne.DISPLAY.size:return o.display;case ne.TEXT.size:return o.text;case ne.SCRIPT.size:return o.script;case ne.SCRIPTSCRIPT.size:return o.scriptscript;default:return o.text}};Ve({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(o,u)=>{let{parser:l}=o;return{type:"mathchoice",mode:l.mode,display:u0(u[0]),text:u0(u[1]),script:u0(u[2]),scriptscript:u0(u[3])}},htmlBuilder:(o,u)=>{const l=L3(o,u),h=p0(l,u,!1);return Cn(h)},mathmlBuilder:(o,u)=>{const l=L3(o,u);return ra(l,u)}});const R3=(o,u,l,h,b,D,E)=>{o=Fe([],[o]);const I=l&&k(l);let P,G;if(u){const se=wt(u,h.havingStyle(b.sup()),h);G={elem:se,kern:Math.max(h.fontMetrics().bigOpSpacing1,h.fontMetrics().bigOpSpacing3-se.depth)}}if(l){const se=wt(l,h.havingStyle(b.sub()),h);P={elem:se,kern:Math.max(h.fontMetrics().bigOpSpacing2,h.fontMetrics().bigOpSpacing4-se.height)}}let re;if(G&&P){const se=h.fontMetrics().bigOpSpacing5+P.elem.height+P.elem.depth+P.kern+o.depth+E;re=vt({positionType:"bottom",positionData:se,children:[{type:"kern",size:h.fontMetrics().bigOpSpacing5},{type:"elem",elem:P.elem,marginLeft:Ce(-D)},{type:"kern",size:P.kern},{type:"elem",elem:o},{type:"kern",size:G.kern},{type:"elem",elem:G.elem,marginLeft:Ce(D)},{type:"kern",size:h.fontMetrics().bigOpSpacing5}]})}else if(P){const se=o.height-E;re=vt({positionType:"top",positionData:se,children:[{type:"kern",size:h.fontMetrics().bigOpSpacing5},{type:"elem",elem:P.elem,marginLeft:Ce(-D)},{type:"kern",size:P.kern},{type:"elem",elem:o}]})}else if(G){const se=o.depth+E;re=vt({positionType:"bottom",positionData:se,children:[{type:"elem",elem:o},{type:"kern",size:G.kern},{type:"elem",elem:G.elem,marginLeft:Ce(D)},{type:"kern",size:h.fontMetrics().bigOpSpacing5}]})}else return o;const oe=[re];if(P&&D!==0&&!I){const se=Fe(["mspace"],[],h);se.style.marginRight=Ce(D),oe.unshift(se)}return Fe(["mop","op-limits"],oe,h)},P3=new Set(["\\smallint"]),di=(o,u)=>{let l,h,b=!1,D;o.type==="supsub"?(l=o.sup,h=o.sub,D=at(o.base,"op"),b=!0):D=at(o,"op");const E=u.style;let I=!1;E.size===ne.DISPLAY.size&&D.symbol&&!P3.has(D.name)&&(I=!0);let P;if(D.symbol){const oe=I?"Size2-Regular":"Size1-Regular";let se="";if((D.name==="\\oiint"||D.name==="\\oiiint")&&(se=D.name.slice(1),D.name=se==="oiint"?"\\iint":"\\iiint"),P=zt(D.name,oe,"math",u,["mop","op-symbol",I?"large-op":"small-op"]),se.length>0){const Ae=P.italic,Ie=Yh(se+"Size"+(I?"2":"1"),u);P=vt({positionType:"individualShift",children:[{type:"elem",elem:P,shift:0},{type:"elem",elem:Ie,shift:I?.08:0}]}),D.name="\\"+se,P.classes.unshift("mop"),P.italic=Ae}}else if(D.body){const oe=p0(D.body,u,!0);oe.length===1&&oe[0]instanceof B0?(P=oe[0],P.classes[0]="mop"):P=Fe(["mop"],oe,u)}else{const oe=[];for(let se=1;se<D.name.length;se++)oe.push(on(D.name[se],D.mode,u));P=Fe(["mop"],oe,u)}let G=0,re=0;return(P instanceof B0||D.name==="\\oiint"||D.name==="\\oiiint")&&!D.suppressBaseShift&&(G=(P.height-P.depth)/2-u.fontMetrics().axisHeight,re=P.italic||0),b?R3(P,l,h,u,E,re,G):(G&&(P.style.position="relative",P.style.top=Ce(G)),P)},Du=(o,u)=>{let l;if(o.symbol)l=new Me("mo",[xr(o.name,o.mode)]),P3.has(o.name)&&l.setAttribute("largeop","false");else if(o.body)l=new Me("mo",hr(o.body,u));else{l=new Me("mi",[new o0(o.name.slice(1))]);const h=new Me("mo",[xr("","text")]);o.parentIsSupSub?l=new Me("mrow",[l,h]):l=Qh([l,h])}return l},ow={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ve({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(o,u)=>{let{parser:l,funcName:h}=o,b=h;return b.length===1&&(b=ow[b]),{type:"op",mode:l.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:b}},htmlBuilder:di,mathmlBuilder:Du}),Ve({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(o,u)=>{let{parser:l}=o;const h=u[0];return{type:"op",mode:l.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:u0(h)}},htmlBuilder:di,mathmlBuilder:Du});const sw={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ve({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(o){let{parser:u,funcName:l}=o;return{type:"op",mode:u.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:l}},htmlBuilder:di,mathmlBuilder:Du}),Ve({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(o){let{parser:u,funcName:l}=o;return{type:"op",mode:u.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:l}},htmlBuilder:di,mathmlBuilder:Du}),Ve({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(o){let{parser:u,funcName:l}=o,h=l;return h.length===1&&(h=sw[h]),{type:"op",mode:u.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:h}},htmlBuilder:di,mathmlBuilder:Du});const V3=(o,u)=>{let l,h,b=!1,D;o.type==="supsub"?(l=o.sup,h=o.sub,D=at(o.base,"operatorname"),b=!0):D=at(o,"operatorname");let E;if(D.body.length>0){const I=D.body.map(G=>{const re="text"in G?G.text:void 0;return typeof re=="string"?{type:"textord",mode:G.mode,text:re}:G}),P=p0(I,u.withFont("mathrm"),!0);for(let G=0;G<P.length;G++){const re=P[G];re instanceof B0&&(re.text=re.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}E=Fe(["mop"],P,u)}else E=Fe(["mop"],[],u);return b?R3(E,l,h,u,u.style,0,0):E};Ve({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(o,u)=>{let{parser:l,funcName:h}=o;const b=u[0];return{type:"operatorname",mode:l.mode,body:u0(b),alwaysHandleSupSub:h==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:V3,mathmlBuilder:(o,u)=>{let l=hr(o.body,u.withFont("mathrm")),h=!0;for(let E=0;E<l.length;E++){const I=l[E];if(!(I instanceof Jh))if(I instanceof Me)switch(I.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{const P=I.children[0];I.children.length===1&&P instanceof o0?P.text=P.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):h=!1;break}default:h=!1}else h=!1}if(h){const E=l.map(I=>I.toText()).join("");l=[new o0(E)]}const b=new Me("mi",l);b.setAttribute("mathvariant","normal");const D=new Me("mo",[xr("","text")]);return o.parentIsSupSub?new Me("mrow",[b,D]):Qh([b,D])}}),L("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Sa({type:"ordgroup",htmlBuilder(o,u){return o.semisimple?Cn(p0(o.body,u,!1)):Fe(["mord"],p0(o.body,u,!0),u)},mathmlBuilder(o,u){return ra(o.body,u,!0)}}),Ve({type:"overline",names:["\\overline"],props:{numArgs:1},handler(o,u){let{parser:l}=o;const h=u[0];return{type:"overline",mode:l.mode,body:h}},htmlBuilder(o,u){const l=wt(o.body,u.havingCrampedStyle()),h=li("overline-line",u),b=u.fontMetrics().defaultRuleThickness,D=vt({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:3*b},{type:"elem",elem:h},{type:"kern",size:b}]});return Fe(["mord","overline"],[D],u)},mathmlBuilder(o,u){const l=new Me("mo",[new o0("‾")]);l.setAttribute("stretchy","true");const h=new Me("mover",[St(o.body,u),l]);return h.setAttribute("accent","true"),h}}),Ve({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(o,u)=>{let{parser:l}=o;const h=u[0];return{type:"phantom",mode:l.mode,body:u0(h)}},htmlBuilder:(o,u)=>{const l=p0(o.body,u.withPhantom(),!1);return Cn(l)},mathmlBuilder:(o,u)=>{const l=hr(o.body,u);return new Me("mphantom",l)}}),L("\\hphantom","\\smash{\\phantom{#1}}"),Ve({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(o,u)=>{let{parser:l}=o;const h=u[0];return{type:"vphantom",mode:l.mode,body:h}},htmlBuilder:(o,u)=>{const l=Fe(["inner"],[wt(o.body,u.withPhantom())]),h=Fe(["fix"],[]);return Fe(["mord","rlap"],[l,h],u)},mathmlBuilder:(o,u)=>{const l=hr(u0(o.body),u),h=new Me("mphantom",l),b=new Me("mpadded",[h]);return b.setAttribute("width","0px"),b}}),Ve({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(o,u){let{parser:l}=o;const h=at(u[0],"size").value,b=u[1];return{type:"raisebox",mode:l.mode,dy:h,body:b}},htmlBuilder(o,u){const l=wt(o.body,u),h=ft(o.dy,u);return vt({positionType:"shift",positionData:-h,children:[{type:"elem",elem:l}]})},mathmlBuilder(o,u){const l=new Me("mpadded",[St(o.body,u)]),h=o.dy.number+o.dy.unit;return l.setAttribute("voffset",h),l}}),Ve({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(o){let{parser:u}=o;return{type:"internal",mode:u.mode}}}),Ve({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(o,u,l){let{parser:h}=o;const b=l[0],D=at(u[0],"size"),E=at(u[1],"size");return{type:"rule",mode:h.mode,shift:b&&at(b,"size").value,width:D.value,height:E.value}},htmlBuilder(o,u){const l=Fe(["mord","rule"],[],u),h=ft(o.width,u),b=ft(o.height,u),D=o.shift?ft(o.shift,u):0;return l.style.borderRightWidth=Ce(h),l.style.borderTopWidth=Ce(b),l.style.bottom=Ce(D),l.width=h,l.height=b+D,l.depth=-D,l.maxFontSize=b*1.125*u.sizeMultiplier,l},mathmlBuilder(o,u){const l=ft(o.width,u),h=ft(o.height,u),b=o.shift?ft(o.shift,u):0,D=u.color&&u.getColor()||"black",E=new Me("mspace");E.setAttribute("mathbackground",D),E.setAttribute("width",Ce(l)),E.setAttribute("height",Ce(h));const I=new Me("mpadded",[E]);return b>=0?I.setAttribute("height",Ce(b)):(I.setAttribute("height",Ce(b)),I.setAttribute("depth",Ce(-b))),I.setAttribute("voffset",Ce(b)),I}});function H3(o,u,l){const h=p0(o,u,!1),b=u.sizeMultiplier/l.sizeMultiplier;for(let D=0;D<h.length;D++){const E=h[D].classes.indexOf("sizing");E<0?Array.prototype.push.apply(h[D].classes,u.sizingClasses(l)):h[D].classes[E+1]==="reset-size"+u.size&&(h[D].classes[E+1]="reset-size"+l.size),h[D].height*=b,h[D].depth*=b}return Cn(h)}const q3=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Ve({type:"sizing",names:q3,props:{numArgs:0,allowedInText:!0},handler:(o,u)=>{let{breakOnTokenText:l,funcName:h,parser:b}=o;const D=b.parseExpression(!1,l);return{type:"sizing",mode:b.mode,size:q3.indexOf(h)+1,body:D}},htmlBuilder:(o,u)=>{const l=u.havingSize(o.size);return H3(o.body,l,u)},mathmlBuilder:(o,u)=>{const l=u.havingSize(o.size),h=hr(o.body,l),b=new Me("mstyle",h);return b.setAttribute("mathsize",Ce(l.sizeMultiplier)),b}}),Ve({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(o,u,l)=>{let{parser:h}=o,b=!1,D=!1;const E=l[0]&&at(l[0],"ordgroup");if(E){let P="";for(let G=0;G<E.body.length;++G){const re=E.body[G];if(P=gs(re).text,P==="t")b=!0;else if(P==="b")D=!0;else{b=!1,D=!1;break}}}else b=!0,D=!0;const I=u[0];return{type:"smash",mode:h.mode,body:I,smashHeight:b,smashDepth:D}},htmlBuilder:(o,u)=>{const l=Fe([],[wt(o.body,u)]);if(!o.smashHeight&&!o.smashDepth)return l;if(o.smashHeight&&(l.height=0),o.smashDepth&&(l.depth=0),o.smashHeight&&o.smashDepth)return Fe(["mord","smash"],[l],u);if(l.children)for(let b=0;b<l.children.length;b++)o.smashHeight&&(l.children[b].height=0),o.smashDepth&&(l.children[b].depth=0);const h=vt({positionType:"firstBaseline",children:[{type:"elem",elem:l}]});return Fe(["mord"],[h],u)},mathmlBuilder:(o,u)=>{const l=new Me("mpadded",[St(o.body,u)]);return o.smashHeight&&l.setAttribute("height","0px"),o.smashDepth&&l.setAttribute("depth","0px"),l}}),Ve({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(o,u,l){let{parser:h}=o;const b=l[0],D=u[0];return{type:"sqrt",mode:h.mode,body:D,index:b}},htmlBuilder(o,u){let l=wt(o.body,u.havingCrampedStyle());l.height===0&&(l.height=u.fontMetrics().xHeight),l=ci(l,u);const b=u.fontMetrics().defaultRuleThickness;let D=b;u.style.id<ne.TEXT.id&&(D=u.fontMetrics().xHeight);let E=b+D/4;const I=l.height+l.depth+E+b,{span:P,ruleWidth:G,advanceWidth:re}=Kv(I,u),oe=P.height-G;oe>l.height+l.depth+E&&(E=(E+oe-l.height-l.depth)/2);const se=P.height-l.height-E-G;l.style.paddingLeft=Ce(re);const Ae=vt({positionType:"firstBaseline",children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:-(l.height+se)},{type:"elem",elem:P},{type:"kern",size:G}]});if(o.index){const Ie=u.havingStyle(ne.SCRIPTSCRIPT),$e=wt(o.index,Ie,u),ht=.6*(Ae.height-Ae.depth),Je=vt({positionType:"shift",positionData:-ht,children:[{type:"elem",elem:$e}]}),mt=Fe(["root"],[Je]);return Fe(["mord","sqrt"],[mt,Ae],u)}else return Fe(["mord","sqrt"],[Ae],u)},mathmlBuilder(o,u){const{body:l,index:h}=o;return h?new Me("mroot",[St(l,u),St(h,u)]):new Me("msqrt",[St(l,u)])}});const j3={display:ne.DISPLAY,text:ne.TEXT,script:ne.SCRIPT,scriptscript:ne.SCRIPTSCRIPT};Ve({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(o,u){let{breakOnTokenText:l,funcName:h,parser:b}=o;const D=b.parseExpression(!0,l),E=h.slice(1,h.length-5);return{type:"styling",mode:b.mode,style:E,body:D}},htmlBuilder(o,u){const l=j3[o.style],h=u.havingStyle(l).withFont("");return H3(o.body,h,u)},mathmlBuilder(o,u){const l=j3[o.style],h=u.havingStyle(l),b=hr(o.body,h),D=new Me("mstyle",b),I={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[o.style];return D.setAttribute("scriptlevel",I[0]),D.setAttribute("displaystyle",I[1]),D}});const lw=function(o,u){const l=o.base;return l?l.type==="op"?l.limits&&(u.style.size===ne.DISPLAY.size||l.alwaysHandleSupSub)?di:null:l.type==="operatorname"?l.alwaysHandleSupSub&&(u.style.size===ne.DISPLAY.size||l.limits)?V3:null:l.type==="accent"?k(l.base)?s1:null:l.type==="horizBrace"&&!o.sub===l.isOver?O3:null:null};Sa({type:"supsub",htmlBuilder(o,u){const l=lw(o,u);if(l)return l(o,u);const{base:h,sup:b,sub:D}=o,E=wt(h,u);let I,P;const G=u.fontMetrics();let re=0,oe=0;const se=h&&k(h);if(b){const At=u.havingStyle(u.style.sup());I=wt(b,At,u),se||(re=E.height-At.fontMetrics().supDrop*At.sizeMultiplier/u.sizeMultiplier)}if(D){const At=u.havingStyle(u.style.sub());P=wt(D,At,u),se||(oe=E.depth+At.fontMetrics().subDrop*At.sizeMultiplier/u.sizeMultiplier)}let Ae;u.style===ne.DISPLAY?Ae=G.sup1:u.style.cramped?Ae=G.sup3:Ae=G.sup2;const Ie=u.sizeMultiplier,$e=Ce(.5/G.ptPerEm/Ie);let ht=null;if(P){const At=o.base&&o.base.type==="op"&&o.base.name&&(o.base.name==="\\oiint"||o.base.name==="\\oiiint");(E instanceof B0||At)&&(ht=Ce(-E.italic))}let Je;if(I&&P){re=Math.max(re,Ae,I.depth+.25*G.xHeight),oe=Math.max(oe,G.sub2);const s0=4*G.defaultRuleThickness;if(re-I.depth-(P.height-oe)<s0){oe=s0-(re-I.depth)+P.height;const b0=.8*G.xHeight-(re-I.depth);b0>0&&(re+=b0,oe-=b0)}const g0=[{type:"elem",elem:P,shift:oe,marginRight:$e,marginLeft:ht},{type:"elem",elem:I,shift:-re,marginRight:$e}];Je=vt({positionType:"individualShift",children:g0})}else if(P)oe=Math.max(oe,G.sub1,P.height-.8*G.xHeight),Je=vt({positionType:"shift",positionData:oe,children:[{type:"elem",elem:P,marginLeft:ht,marginRight:$e}]});else if(I)re=Math.max(re,Ae,I.depth+.25*G.xHeight),Je=vt({positionType:"shift",positionData:-re,children:[{type:"elem",elem:I,marginRight:$e}]});else throw new Error("supsub must have either sup or sub.");const mt=n1(E,"right")||"mord";return Fe([mt],[E,Fe(["msupsub"],[Je])],u)},mathmlBuilder(o,u){let l=!1,h,b;o.base&&o.base.type==="horizBrace"&&(b=!!o.sup,b===o.base.isOver&&(l=!0,h=o.base.isOver)),o.base&&(o.base.type==="op"||o.base.type==="operatorname")&&(o.base.parentIsSupSub=!0);const D=[St(o.base,u)];o.sub&&D.push(St(o.sub,u)),o.sup&&D.push(St(o.sup,u));let E;if(l)E=h?"mover":"munder";else if(o.sub)if(o.sup){const I=o.base;I&&I.type==="op"&&I.limits&&u.style===ne.DISPLAY||I&&I.type==="operatorname"&&I.alwaysHandleSupSub&&(u.style===ne.DISPLAY||I.limits)?E="munderover":E="msubsup"}else{const I=o.base;I&&I.type==="op"&&I.limits&&(u.style===ne.DISPLAY||I.alwaysHandleSupSub)||I&&I.type==="operatorname"&&I.alwaysHandleSupSub&&(I.limits||u.style===ne.DISPLAY)?E="munder":E="msub"}else{const I=o.base;I&&I.type==="op"&&I.limits&&(u.style===ne.DISPLAY||I.alwaysHandleSupSub)||I&&I.type==="operatorname"&&I.alwaysHandleSupSub&&(I.limits||u.style===ne.DISPLAY)?E="mover":E="msup"}return new Me(E,D)}}),Sa({type:"atom",htmlBuilder(o,u){return on(o.text,o.mode,u,["m"+o.family])},mathmlBuilder(o,u){const l=new Me("mo",[xr(o.text,o.mode)]);if(o.family==="bin"){const h=u1(o,u);h==="bold-italic"&&l.setAttribute("mathvariant",h)}else o.family==="punct"?l.setAttribute("separator","true"):(o.family==="open"||o.family==="close")&&l.setAttribute("stretchy","false");return l}});const $3={mi:"italic",mn:"normal",mtext:"normal"};Sa({type:"mathord",htmlBuilder(o,u){return Zt(o,u,"mathord")},mathmlBuilder(o,u){const l=new Me("mi",[xr(o.text,o.mode,u)]),h=u1(o,u)||"italic";return h!==$3[l.type]&&l.setAttribute("mathvariant",h),l}}),Sa({type:"textord",htmlBuilder(o,u){return Zt(o,u,"textord")},mathmlBuilder(o,u){const l=xr(o.text,o.mode,u),h=u1(o,u)||"normal";let b;return o.mode==="text"?b=new Me("mtext",[l]):/[0-9]/.test(o.text)?b=new Me("mn",[l]):o.text==="\\prime"?b=new Me("mo",[l]):b=new Me("mi",[l]),h!==$3[b.type]&&b.setAttribute("mathvariant",h),b}});const A1={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},D1={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Sa({type:"spacing",htmlBuilder(o,u){if(D1.hasOwnProperty(o.text)){const l=D1[o.text].className||"";if(o.mode==="text"){const h=Zt(o,u,"textord");return h.classes.push(l),h}else return Fe(["mspace",l],[on(o.text,o.mode,u)],u)}else{if(A1.hasOwnProperty(o.text))return Fe(["mspace",A1[o.text]],[],u);throw new a('Unknown type of space "'+o.text+'"')}},mathmlBuilder(o,u){let l;if(D1.hasOwnProperty(o.text))l=new Me("mtext",[new o0(" ")]);else{if(A1.hasOwnProperty(o.text))return new Me("mspace");throw new a('Unknown type of space "'+o.text+'"')}return l}});const U3=()=>{const o=new Me("mtd",[]);return o.setAttribute("width","50%"),o};Sa({type:"tag",mathmlBuilder(o,u){const l=new Me("mtable",[new Me("mtr",[U3(),new Me("mtd",[ra(o.body,u)]),U3(),new Me("mtd",[ra(o.tag,u)])])]);return l.setAttribute("width","100%"),l}});const W3={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},G3={"\\textbf":"textbf","\\textmd":"textmd"},cw={"\\textit":"textit","\\textup":"textup"},X3=(o,u)=>{const l=o.font;if(l){if(W3[l])return u.withTextFontFamily(W3[l]);if(G3[l])return u.withTextFontWeight(G3[l]);if(l==="\\emph")return u.fontShape==="textit"?u.withTextFontShape("textup"):u.withTextFontShape("textit")}else return u;return u.withTextFontShape(cw[l])};Ve({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(o,u){let{parser:l,funcName:h}=o;const b=u[0];return{type:"text",mode:l.mode,body:u0(b),font:h}},htmlBuilder(o,u){const l=X3(o,u),h=p0(o.body,l,!0);return Fe(["mord","text"],h,l)},mathmlBuilder(o,u){const l=X3(o,u);return ra(o.body,l)}}),Ve({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(o,u){let{parser:l}=o;return{type:"underline",mode:l.mode,body:u[0]}},htmlBuilder(o,u){const l=wt(o.body,u),h=li("underline-line",u),b=u.fontMetrics().defaultRuleThickness,D=vt({positionType:"top",positionData:l.height,children:[{type:"kern",size:b},{type:"elem",elem:h},{type:"kern",size:3*b},{type:"elem",elem:l}]});return Fe(["mord","underline"],[D],u)},mathmlBuilder(o,u){const l=new Me("mo",[new o0("‾")]);l.setAttribute("stretchy","true");const h=new Me("munder",[St(o.body,u),l]);return h.setAttribute("accentunder","true"),h}}),Ve({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(o,u){let{parser:l}=o;return{type:"vcenter",mode:l.mode,body:u[0]}},htmlBuilder(o,u){const l=wt(o.body,u),h=u.fontMetrics().axisHeight,b=.5*(l.height-h-(l.depth+h));return vt({positionType:"shift",positionData:b,children:[{type:"elem",elem:l}]})},mathmlBuilder(o,u){return new Me("mpadded",[St(o.body,u)],["vcenter"])}}),Ve({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(o,u,l){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(o,u){const l=Y3(o),h=[],b=u.havingStyle(u.style.text());for(let D=0;D<l.length;D++){let E=l[D];E==="~"&&(E="\\textasciitilde"),h.push(zt(E,"Typewriter-Regular",o.mode,b,["mord","texttt"]))}return Fe(["mord","text"].concat(b.sizingClasses(u)),vu(h),b)},mathmlBuilder(o,u){const l=new o0(Y3(o)),h=new Me("mtext",[l]);return h.setAttribute("mathvariant","monospace"),h}});const Y3=o=>o.body.replace(/ /g,o.star?"␣":" ");var aa=Zh;const Z3=`[ \r
|
|
541
|
+
]`,dw="\\\\[a-zA-Z@]+",fw="\\\\[^\uD800-\uDFFF]",hw="("+dw+")"+Z3+"*",mw=`\\\\(
|
|
542
|
+
|[ \r ]+
|
|
543
|
+
?)[ \r ]*`,k1="[̀-ͯ]",pw=new RegExp(k1+"+$"),gw="("+Z3+"+)|"+(mw+"|")+"([!-\\[\\]-‧-豈-]"+(k1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(k1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+hw)+("|"+fw+")");class K3{constructor(u,l){this.input=u,this.settings=l,this.tokenRegex=new RegExp(gw,"g"),this.catcodes={"%":14,"~":13}}setCatcode(u,l){this.catcodes[u]=l}lex(){const u=this.input,l=this.tokenRegex.lastIndex;if(l===u.length)return new mr("EOF",new Q0(this,l,l));const h=this.tokenRegex.exec(u);if(h===null||h.index!==l)throw new a("Unexpected character: '"+u[l]+"'",new mr(u[l],new Q0(this,l,l+1)));const b=h[6]||h[3]||(h[2]?"\\ ":" ");if(this.catcodes[b]===14){const D=u.indexOf(`
|
|
544
|
+
`,this.tokenRegex.lastIndex);return D===-1?(this.tokenRegex.lastIndex=u.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=D+1,this.lex()}return new mr(b,new Q0(this,l,this.tokenRegex.lastIndex))}}class bw{constructor(u,l){u===void 0&&(u={}),l===void 0&&(l={}),this.current=l,this.builtins=u,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new a("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const u=this.undefStack.pop();for(const l in u)u.hasOwnProperty(l)&&(u[l]==null?delete this.current[l]:this.current[l]=u[l])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(u){return this.current.hasOwnProperty(u)||this.builtins.hasOwnProperty(u)}get(u){return this.current.hasOwnProperty(u)?this.current[u]:this.builtins[u]}set(u,l,h){if(h===void 0&&(h=!1),h){for(let b=0;b<this.undefStack.length;b++)delete this.undefStack[b][u];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][u]=l)}else{const b=this.undefStack[this.undefStack.length-1];b&&!b.hasOwnProperty(u)&&(b[u]=this.current[u])}l==null?delete this.current[u]:this.current[u]=l}}var yw=S3;L("\\noexpand",function(o){const u=o.popToken();return o.isExpandable(u.text)&&(u.noexpand=!0,u.treatAsRelax=!0),{tokens:[u],numArgs:0}}),L("\\expandafter",function(o){const u=o.popToken();return o.expandOnce(!0),{tokens:[u],numArgs:0}}),L("\\@firstoftwo",function(o){return{tokens:o.consumeArgs(2)[0],numArgs:0}}),L("\\@secondoftwo",function(o){return{tokens:o.consumeArgs(2)[1],numArgs:0}}),L("\\@ifnextchar",function(o){const u=o.consumeArgs(3);o.consumeSpaces();const l=o.future();return u[0].length===1&&u[0][0].text===l.text?{tokens:u[1],numArgs:0}:{tokens:u[2],numArgs:0}}),L("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),L("\\TextOrMath",function(o){const u=o.consumeArgs(2);return o.mode==="text"?{tokens:u[0],numArgs:0}:{tokens:u[1],numArgs:0}});const Q3={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};L("\\char",function(o){let u=o.popToken(),l,h=0;if(u.text==="'")l=8,u=o.popToken();else if(u.text==='"')l=16,u=o.popToken();else if(u.text==="`")if(u=o.popToken(),u.text[0]==="\\")h=u.text.charCodeAt(1);else{if(u.text==="EOF")throw new a("\\char` missing argument");h=u.text.charCodeAt(0)}else l=10;if(l){if(h=Q3[u.text],h==null||h>=l)throw new a("Invalid base-"+l+" digit "+u.text);let b;for(;(b=Q3[o.future().text])!=null&&b<l;)h*=l,h+=b,o.popToken()}return"\\@char{"+h+"}"});const C1=(o,u,l,h)=>{let b=o.consumeArg().tokens;if(b.length!==1)throw new a("\\newcommand's first argument must be a macro name");const D=b[0].text,E=o.isDefined(D);if(E&&!u)throw new a("\\newcommand{"+D+"} attempting to redefine "+(D+"; use \\renewcommand"));if(!E&&!l)throw new a("\\renewcommand{"+D+"} when command "+D+" does not yet exist; use \\newcommand");let I=0;if(b=o.consumeArg().tokens,b.length===1&&b[0].text==="["){let P="",G=o.expandNextToken();for(;G.text!=="]"&&G.text!=="EOF";)P+=G.text,G=o.expandNextToken();if(!P.match(/^\s*[0-9]+\s*$/))throw new a("Invalid number of arguments: "+P);I=parseInt(P),b=o.consumeArg().tokens}return E&&h||o.macros.set(D,{tokens:b,numArgs:I}),""};L("\\newcommand",o=>C1(o,!1,!0,!1)),L("\\renewcommand",o=>C1(o,!0,!1,!1)),L("\\providecommand",o=>C1(o,!0,!0,!0)),L("\\message",o=>{const u=o.consumeArgs(1)[0];return console.log(u.reverse().map(l=>l.text).join("")),""}),L("\\errmessage",o=>{const u=o.consumeArgs(1)[0];return console.error(u.reverse().map(l=>l.text).join("")),""}),L("\\show",o=>{const u=o.popToken(),l=u.text;return console.log(u,o.macros.get(l),aa[l],kt.math[l],kt.text[l]),""}),L("\\bgroup","{"),L("\\egroup","}"),L("~","\\nobreakspace"),L("\\lq","`"),L("\\rq","'"),L("\\aa","\\r a"),L("\\AA","\\r A"),L("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),L("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),L("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),L("ℬ","\\mathscr{B}"),L("ℰ","\\mathscr{E}"),L("ℱ","\\mathscr{F}"),L("ℋ","\\mathscr{H}"),L("ℐ","\\mathscr{I}"),L("ℒ","\\mathscr{L}"),L("ℳ","\\mathscr{M}"),L("ℛ","\\mathscr{R}"),L("ℭ","\\mathfrak{C}"),L("ℌ","\\mathfrak{H}"),L("ℨ","\\mathfrak{Z}"),L("\\Bbbk","\\Bbb{k}"),L("\\llap","\\mathllap{\\textrm{#1}}"),L("\\rlap","\\mathrlap{\\textrm{#1}}"),L("\\clap","\\mathclap{\\textrm{#1}}"),L("\\mathstrut","\\vphantom{(}"),L("\\underbar","\\underline{\\text{#1}}"),L("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}'),L("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),L("\\ne","\\neq"),L("≠","\\neq"),L("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),L("∉","\\notin"),L("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),L("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),L("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),L("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),L("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),L("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),L("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),L("⟂","\\perp"),L("‼","\\mathclose{!\\mkern-0.8mu!}"),L("∌","\\notni"),L("⌜","\\ulcorner"),L("⌝","\\urcorner"),L("⌞","\\llcorner"),L("⌟","\\lrcorner"),L("©","\\copyright"),L("®","\\textregistered"),L("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),L("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),L("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),L("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),L("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),L("⋮","\\vdots"),L("\\varGamma","\\mathit{\\Gamma}"),L("\\varDelta","\\mathit{\\Delta}"),L("\\varTheta","\\mathit{\\Theta}"),L("\\varLambda","\\mathit{\\Lambda}"),L("\\varXi","\\mathit{\\Xi}"),L("\\varPi","\\mathit{\\Pi}"),L("\\varSigma","\\mathit{\\Sigma}"),L("\\varUpsilon","\\mathit{\\Upsilon}"),L("\\varPhi","\\mathit{\\Phi}"),L("\\varPsi","\\mathit{\\Psi}"),L("\\varOmega","\\mathit{\\Omega}"),L("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),L("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),L("\\boxed","\\fbox{$\\displaystyle{#1}$}"),L("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),L("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),L("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),L("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),L("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const J3={",":"\\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"},vw=new Set(["bin","rel"]);L("\\dots",function(o){let u="\\dotso";const l=o.expandAfterFuture().text;return l in J3?u=J3[l]:(l.slice(0,4)==="\\not"||l in kt.math&&vw.has(kt.math[l].group))&&(u="\\dotsb"),u});const S1={")":!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};L("\\dotso",function(o){return o.future().text in S1?"\\ldots\\,":"\\ldots"}),L("\\dotsc",function(o){const u=o.future().text;return u in S1&&u!==","?"\\ldots\\,":"\\ldots"}),L("\\cdots",function(o){return o.future().text in S1?"\\@cdots\\,":"\\@cdots"}),L("\\dotsb","\\cdots"),L("\\dotsm","\\cdots"),L("\\dotsi","\\!\\cdots"),L("\\dotsx","\\ldots\\,"),L("\\DOTSI","\\relax"),L("\\DOTSB","\\relax"),L("\\DOTSX","\\relax"),L("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),L("\\,","\\tmspace+{3mu}{.1667em}"),L("\\thinspace","\\,"),L("\\>","\\mskip{4mu}"),L("\\:","\\tmspace+{4mu}{.2222em}"),L("\\medspace","\\:"),L("\\;","\\tmspace+{5mu}{.2777em}"),L("\\thickspace","\\;"),L("\\!","\\tmspace-{3mu}{.1667em}"),L("\\negthinspace","\\!"),L("\\negmedspace","\\tmspace-{4mu}{.2222em}"),L("\\negthickspace","\\tmspace-{5mu}{.277em}"),L("\\enspace","\\kern.5em "),L("\\enskip","\\hskip.5em\\relax"),L("\\quad","\\hskip1em\\relax"),L("\\qquad","\\hskip2em\\relax"),L("\\tag","\\@ifstar\\tag@literal\\tag@paren"),L("\\tag@paren","\\tag@literal{({#1})}"),L("\\tag@literal",o=>{if(o.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),L("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),L("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),L("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),L("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),L("\\newline","\\\\\\relax"),L("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const em=Ce(K0["Main-Regular"][84][1]-.7*K0["Main-Regular"][65][1]);L("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+em+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),L("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+em+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),L("\\hspace","\\@ifstar\\@hspacer\\@hspace"),L("\\@hspace","\\hskip #1\\relax"),L("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),L("\\ordinarycolon",":"),L("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),L("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),L("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),L("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),L("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),L("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),L("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),L("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),L("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),L("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),L("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),L("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),L("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),L("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),L("∷","\\dblcolon"),L("∹","\\eqcolon"),L("≔","\\coloneqq"),L("≕","\\eqqcolon"),L("⩴","\\Coloneqq"),L("\\ratio","\\vcentcolon"),L("\\coloncolon","\\dblcolon"),L("\\colonequals","\\coloneqq"),L("\\coloncolonequals","\\Coloneqq"),L("\\equalscolon","\\eqqcolon"),L("\\equalscoloncolon","\\Eqqcolon"),L("\\colonminus","\\coloneq"),L("\\coloncolonminus","\\Coloneq"),L("\\minuscolon","\\eqcolon"),L("\\minuscoloncolon","\\Eqcolon"),L("\\coloncolonapprox","\\Colonapprox"),L("\\coloncolonsim","\\Colonsim"),L("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),L("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),L("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),L("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),L("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),L("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),L("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),L("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),L("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),L("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),L("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),L("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),L("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),L("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),L("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),L("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),L("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),L("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),L("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),L("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),L("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),L("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),L("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),L("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),L("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),L("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),L("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),L("\\imath","\\html@mathml{\\@imath}{ı}"),L("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),L("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),L("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),L("⟦","\\llbracket"),L("⟧","\\rrbracket"),L("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),L("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),L("⦃","\\lBrace"),L("⦄","\\rBrace"),L("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),L("⦵","\\minuso"),L("\\darr","\\downarrow"),L("\\dArr","\\Downarrow"),L("\\Darr","\\Downarrow"),L("\\lang","\\langle"),L("\\rang","\\rangle"),L("\\uarr","\\uparrow"),L("\\uArr","\\Uparrow"),L("\\Uarr","\\Uparrow"),L("\\N","\\mathbb{N}"),L("\\R","\\mathbb{R}"),L("\\Z","\\mathbb{Z}"),L("\\alef","\\aleph"),L("\\alefsym","\\aleph"),L("\\Alpha","\\mathrm{A}"),L("\\Beta","\\mathrm{B}"),L("\\bull","\\bullet"),L("\\Chi","\\mathrm{X}"),L("\\clubs","\\clubsuit"),L("\\cnums","\\mathbb{C}"),L("\\Complex","\\mathbb{C}"),L("\\Dagger","\\ddagger"),L("\\diamonds","\\diamondsuit"),L("\\empty","\\emptyset"),L("\\Epsilon","\\mathrm{E}"),L("\\Eta","\\mathrm{H}"),L("\\exist","\\exists"),L("\\harr","\\leftrightarrow"),L("\\hArr","\\Leftrightarrow"),L("\\Harr","\\Leftrightarrow"),L("\\hearts","\\heartsuit"),L("\\image","\\Im"),L("\\infin","\\infty"),L("\\Iota","\\mathrm{I}"),L("\\isin","\\in"),L("\\Kappa","\\mathrm{K}"),L("\\larr","\\leftarrow"),L("\\lArr","\\Leftarrow"),L("\\Larr","\\Leftarrow"),L("\\lrarr","\\leftrightarrow"),L("\\lrArr","\\Leftrightarrow"),L("\\Lrarr","\\Leftrightarrow"),L("\\Mu","\\mathrm{M}"),L("\\natnums","\\mathbb{N}"),L("\\Nu","\\mathrm{N}"),L("\\Omicron","\\mathrm{O}"),L("\\plusmn","\\pm"),L("\\rarr","\\rightarrow"),L("\\rArr","\\Rightarrow"),L("\\Rarr","\\Rightarrow"),L("\\real","\\Re"),L("\\reals","\\mathbb{R}"),L("\\Reals","\\mathbb{R}"),L("\\Rho","\\mathrm{P}"),L("\\sdot","\\cdot"),L("\\sect","\\S"),L("\\spades","\\spadesuit"),L("\\sub","\\subset"),L("\\sube","\\subseteq"),L("\\supe","\\supseteq"),L("\\Tau","\\mathrm{T}"),L("\\thetasym","\\vartheta"),L("\\weierp","\\wp"),L("\\Zeta","\\mathrm{Z}"),L("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),L("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),L("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),L("\\bra","\\mathinner{\\langle{#1}|}"),L("\\ket","\\mathinner{|{#1}\\rangle}"),L("\\braket","\\mathinner{\\langle{#1}\\rangle}"),L("\\Bra","\\left\\langle#1\\right|"),L("\\Ket","\\left|#1\\right\\rangle");const tm=o=>u=>{const l=u.consumeArg().tokens,h=u.consumeArg().tokens,b=u.consumeArg().tokens,D=u.consumeArg().tokens,E=u.macros.get("|"),I=u.macros.get("\\|");u.macros.beginGroup();const P=oe=>se=>{o&&(se.macros.set("|",E),b.length&&se.macros.set("\\|",I));let Ae=oe;return!oe&&b.length&&se.future().text==="|"&&(se.popToken(),Ae=!0),{tokens:Ae?b:h,numArgs:0}};u.macros.set("|",P(!1)),b.length&&u.macros.set("\\|",P(!0));const G=u.consumeArg().tokens,re=u.expandTokens([...D,...G,...l]);return u.macros.endGroup(),{tokens:re.reverse(),numArgs:0}};L("\\bra@ket",tm(!1)),L("\\bra@set",tm(!0)),L("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),L("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),L("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),L("\\angln","{\\angl n}"),L("\\blue","\\textcolor{##6495ed}{#1}"),L("\\orange","\\textcolor{##ffa500}{#1}"),L("\\pink","\\textcolor{##ff00af}{#1}"),L("\\red","\\textcolor{##df0030}{#1}"),L("\\green","\\textcolor{##28ae7b}{#1}"),L("\\gray","\\textcolor{gray}{#1}"),L("\\purple","\\textcolor{##9d38bd}{#1}"),L("\\blueA","\\textcolor{##ccfaff}{#1}"),L("\\blueB","\\textcolor{##80f6ff}{#1}"),L("\\blueC","\\textcolor{##63d9ea}{#1}"),L("\\blueD","\\textcolor{##11accd}{#1}"),L("\\blueE","\\textcolor{##0c7f99}{#1}"),L("\\tealA","\\textcolor{##94fff5}{#1}"),L("\\tealB","\\textcolor{##26edd5}{#1}"),L("\\tealC","\\textcolor{##01d1c1}{#1}"),L("\\tealD","\\textcolor{##01a995}{#1}"),L("\\tealE","\\textcolor{##208170}{#1}"),L("\\greenA","\\textcolor{##b6ffb0}{#1}"),L("\\greenB","\\textcolor{##8af281}{#1}"),L("\\greenC","\\textcolor{##74cf70}{#1}"),L("\\greenD","\\textcolor{##1fab54}{#1}"),L("\\greenE","\\textcolor{##0d923f}{#1}"),L("\\goldA","\\textcolor{##ffd0a9}{#1}"),L("\\goldB","\\textcolor{##ffbb71}{#1}"),L("\\goldC","\\textcolor{##ff9c39}{#1}"),L("\\goldD","\\textcolor{##e07d10}{#1}"),L("\\goldE","\\textcolor{##a75a05}{#1}"),L("\\redA","\\textcolor{##fca9a9}{#1}"),L("\\redB","\\textcolor{##ff8482}{#1}"),L("\\redC","\\textcolor{##f9685d}{#1}"),L("\\redD","\\textcolor{##e84d39}{#1}"),L("\\redE","\\textcolor{##bc2612}{#1}"),L("\\maroonA","\\textcolor{##ffbde0}{#1}"),L("\\maroonB","\\textcolor{##ff92c6}{#1}"),L("\\maroonC","\\textcolor{##ed5fa6}{#1}"),L("\\maroonD","\\textcolor{##ca337c}{#1}"),L("\\maroonE","\\textcolor{##9e034e}{#1}"),L("\\purpleA","\\textcolor{##ddd7ff}{#1}"),L("\\purpleB","\\textcolor{##c6b9fc}{#1}"),L("\\purpleC","\\textcolor{##aa87ff}{#1}"),L("\\purpleD","\\textcolor{##7854ab}{#1}"),L("\\purpleE","\\textcolor{##543b78}{#1}"),L("\\mintA","\\textcolor{##f5f9e8}{#1}"),L("\\mintB","\\textcolor{##edf2df}{#1}"),L("\\mintC","\\textcolor{##e0e5cc}{#1}"),L("\\grayA","\\textcolor{##f6f7f7}{#1}"),L("\\grayB","\\textcolor{##f0f1f2}{#1}"),L("\\grayC","\\textcolor{##e3e5e6}{#1}"),L("\\grayD","\\textcolor{##d6d8da}{#1}"),L("\\grayE","\\textcolor{##babec2}{#1}"),L("\\grayF","\\textcolor{##888d93}{#1}"),L("\\grayG","\\textcolor{##626569}{#1}"),L("\\grayH","\\textcolor{##3b3e40}{#1}"),L("\\grayI","\\textcolor{##21242c}{#1}"),L("\\kaBlue","\\textcolor{##314453}{#1}"),L("\\kaGreen","\\textcolor{##71B307}{#1}");const rm={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ww{constructor(u,l,h){this.settings=l,this.expansionCount=0,this.feed(u),this.macros=new bw(yw,l.macros),this.mode=h,this.stack=[]}feed(u){this.lexer=new K3(u,this.settings)}switchMode(u){this.mode=u}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(u){this.stack.push(u)}pushTokens(u){this.stack.push(...u)}scanArgument(u){let l,h,b;if(u){if(this.consumeSpaces(),this.future().text!=="[")return null;l=this.popToken(),{tokens:b,end:h}=this.consumeArg(["]"])}else({tokens:b,start:l,end:h}=this.consumeArg());return this.pushToken(new mr("EOF",h.loc)),this.pushTokens(b),new mr("",Q0.range(l,h))}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(u){const l=[],h=u&&u.length>0;h||this.consumeSpaces();const b=this.future();let D,E=0,I=0;do{if(D=this.popToken(),l.push(D),D.text==="{")++E;else if(D.text==="}"){if(--E,E===-1)throw new a("Extra }",D)}else if(D.text==="EOF")throw new a("Unexpected end of input in a macro argument, expected '"+(u&&h?u[I]:"}")+"'",D);if(u&&h)if((E===0||E===1&&u[I]==="{")&&D.text===u[I]){if(++I,I===u.length){l.splice(-I,I);break}}else I=0}while(E!==0||h);return b.text==="{"&&l[l.length-1].text==="}"&&(l.pop(),l.shift()),l.reverse(),{tokens:l,start:b,end:D}}consumeArgs(u,l){if(l){if(l.length!==u+1)throw new a("The length of delimiters doesn't match the number of args!");const b=l[0];for(let D=0;D<b.length;D++){const E=this.popToken();if(b[D]!==E.text)throw new a("Use of the macro doesn't match its definition",E)}}const h=[];for(let b=0;b<u;b++)h.push(this.consumeArg(l&&l[b+1]).tokens);return h}countExpansion(u){if(this.expansionCount+=u,this.expansionCount>this.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(u){const l=this.popToken(),h=l.text,b=l.noexpand?null:this._getExpansion(h);if(b==null||u&&b.unexpandable){if(u&&b==null&&h[0]==="\\"&&!this.isDefined(h))throw new a("Undefined control sequence: "+h);return this.pushToken(l),!1}this.countExpansion(1);let D=b.tokens;const E=this.consumeArgs(b.numArgs,b.delimiters);if(b.numArgs){D=D.slice();for(let I=D.length-1;I>=0;--I){let P=D[I];if(P.text==="#"){if(I===0)throw new a("Incomplete placeholder at end of macro body",P);if(P=D[--I],P.text==="#")D.splice(I+1,1);else if(/^[1-9]$/.test(P.text))D.splice(I,2,...E[+P.text-1]);else throw new a("Not a valid argument number",P)}}}return this.pushTokens(D),D.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){const u=this.stack.pop();return u.treatAsRelax&&(u.text="\\relax"),u}}expandMacro(u){return this.macros.has(u)?this.expandTokens([new mr(u)]):void 0}expandTokens(u){const l=[],h=this.stack.length;for(this.pushTokens(u);this.stack.length>h;)if(this.expandOnce(!0)===!1){const b=this.stack.pop();b.treatAsRelax&&(b.noexpand=!1,b.treatAsRelax=!1),l.push(b)}return this.countExpansion(l.length),l}expandMacroAsText(u){const l=this.expandMacro(u);return l&&l.map(h=>h.text).join("")}_getExpansion(u){const l=this.macros.get(u);if(l==null)return l;if(u.length===1){const b=this.lexer.catcodes[u];if(b!=null&&b!==13)return}const h=typeof l=="function"?l(this):l;if(typeof h=="string"){let b=0;if(h.includes("#")){const G=h.replace(/##/g,"");for(;G.includes("#"+(b+1));)++b}const D=new K3(h,this.settings),E=[];let I=D.lex();for(;I.text!=="EOF";)E.push(I),I=D.lex();return E.reverse(),{tokens:E,numArgs:b}}return h}isDefined(u){return this.macros.has(u)||aa.hasOwnProperty(u)||kt.math.hasOwnProperty(u)||kt.text.hasOwnProperty(u)||rm.hasOwnProperty(u)}isExpandable(u){const l=this.macros.get(u);return l!=null?typeof l=="string"||typeof l=="function"||!l.unexpandable:aa.hasOwnProperty(u)&&!aa[u].primitive}}const nm=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Cs=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),E1={"́":{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"}},am={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Ss{constructor(u,l){this.mode="math",this.gullet=new ww(u,l,this.mode),this.settings=l,this.leftrightDepth=0,this.nextToken=null}expect(u,l){if(l===void 0&&(l=!0),this.fetch().text!==u)throw new a("Expected '"+u+"', got '"+this.fetch().text+"'",this.fetch());l&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(u){this.mode=u,this.gullet.switchMode(u)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const u=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),u}finally{this.gullet.endGroups()}}subparse(u){const l=this.nextToken;this.consume(),this.gullet.pushToken(new mr("}")),this.gullet.pushTokens(u);const h=this.parseExpression(!1);return this.expect("}"),this.nextToken=l,h}parseExpression(u,l){const h=[];for(;;){this.mode==="math"&&this.consumeSpaces();const b=this.fetch();if(Ss.endOfExpression.has(b.text)||l&&b.text===l||u&&aa[b.text]&&aa[b.text].infix)break;const D=this.parseAtom(l);if(D){if(D.type==="internal")continue}else break;h.push(D)}return this.mode==="text"&&this.formLigatures(h),this.handleInfixNodes(h)}handleInfixNodes(u){let l=-1,h;for(let b=0;b<u.length;b++){const D=u[b];if(D.type==="infix"){if(l!==-1)throw new a("only one infix operator per group",D.token);l=b,h=D.replaceWith}}if(l!==-1&&h){let b,D;const E=u.slice(0,l),I=u.slice(l+1);E.length===1&&E[0].type==="ordgroup"?b=E[0]:b={type:"ordgroup",mode:this.mode,body:E},I.length===1&&I[0].type==="ordgroup"?D=I[0]:D={type:"ordgroup",mode:this.mode,body:I};let P;return h==="\\\\abovefrac"?P=this.callFunction(h,[b,u[l],D],[]):P=this.callFunction(h,[b,D],[]),[P]}else return u}handleSupSubscript(u){const l=this.fetch(),h=l.text;this.consume(),this.consumeSpaces();let b;do{var D;b=this.parseGroup(u)}while(((D=b)==null?void 0:D.type)==="internal");if(!b)throw new a("Expected group after '"+h+"'",l);return b}formatUnsupportedCmd(u){const l=[];for(let D=0;D<u.length;D++)l.push({type:"textord",mode:"text",text:u[D]});const h={type:"text",mode:this.mode,body:l};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[h]}}parseAtom(u){const l=this.parseGroup("atom",u);if((l==null?void 0:l.type)==="internal"||this.mode==="text")return l;let h,b;for(;;){this.consumeSpaces();const D=this.fetch();if(D.text==="\\limits"||D.text==="\\nolimits"){if(l&&l.type==="op"){const E=D.text==="\\limits";l.limits=E,l.alwaysHandleSupSub=!0}else if(l&&l.type==="operatorname")l.alwaysHandleSupSub&&(l.limits=D.text==="\\limits");else throw new a("Limit controls must follow a math operator",D);this.consume()}else if(D.text==="^"){if(h)throw new a("Double superscript",D);h=this.handleSupSubscript("superscript")}else if(D.text==="_"){if(b)throw new a("Double subscript",D);b=this.handleSupSubscript("subscript")}else if(D.text==="'"){if(h)throw new a("Double superscript",D);const E={type:"textord",mode:this.mode,text:"\\prime"},I=[E];for(this.consume();this.fetch().text==="'";)I.push(E),this.consume();this.fetch().text==="^"&&I.push(this.handleSupSubscript("superscript")),h={type:"ordgroup",mode:this.mode,body:I}}else if(Cs[D.text]){const E=nm.test(D.text),I=[];for(I.push(new mr(Cs[D.text])),this.consume();;){const G=this.fetch().text;if(!Cs[G]||nm.test(G)!==E)break;I.unshift(new mr(Cs[G])),this.consume()}const P=this.subparse(I);E?b={type:"ordgroup",mode:"math",body:P}:h={type:"ordgroup",mode:"math",body:P}}else break}return h||b?{type:"supsub",mode:this.mode,base:l,sup:h,sub:b}:l}parseFunction(u,l){const h=this.fetch(),b=h.text,D=aa[b];if(!D)return null;if(this.consume(),l&&l!=="atom"&&!D.allowedInArgument)throw new a("Got function '"+b+"' with no arguments"+(l?" as "+l:""),h);if(this.mode==="text"&&!D.allowedInText)throw new a("Can't use function '"+b+"' in text mode",h);if(this.mode==="math"&&D.allowedInMath===!1)throw new a("Can't use function '"+b+"' in math mode",h);const{args:E,optArgs:I}=this.parseArguments(b,D);return this.callFunction(b,E,I,h,u)}callFunction(u,l,h,b,D){const E={funcName:u,parser:this,token:b,breakOnTokenText:D},I=aa[u];if(I&&I.handler)return I.handler(E,l,h);throw new a("No function handler for "+u)}parseArguments(u,l){const h=l.numArgs+l.numOptionalArgs;if(h===0)return{args:[],optArgs:[]};const b=[],D=[];for(let E=0;E<h;E++){let I=l.argTypes&&l.argTypes[E];const P=E<l.numOptionalArgs;("primitive"in l&&l.primitive&&I==null||l.type==="sqrt"&&E===1&&D[0]==null)&&(I="primitive");const G=this.parseGroupOfType("argument to '"+u+"'",I,P);if(P)D.push(G);else if(G!=null)b.push(G);else throw new a("Null argument, please report this as a bug")}return{args:b,optArgs:D}}parseGroupOfType(u,l,h){switch(l){case"color":return this.parseColorGroup(h);case"size":return this.parseSizeGroup(h);case"url":return this.parseUrlGroup(h);case"math":case"text":return this.parseArgumentGroup(h,l);case"hbox":{const b=this.parseArgumentGroup(h,"text");return b!=null?{type:"styling",mode:b.mode,body:[b],style:"text"}:null}case"raw":{const b=this.parseStringGroup("raw",h);return b!=null?{type:"raw",mode:"text",string:b.text}:null}case"primitive":{if(h)throw new a("A primitive argument cannot be optional");const b=this.parseGroup(u);if(b==null)throw new a("Expected group as "+u,this.fetch());return b}case"original":case null:case void 0:return this.parseArgumentGroup(h);default:throw new a("Unknown group type as "+u,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(u,l){const h=this.gullet.scanArgument(l);if(h==null)return null;let b="",D;for(;(D=this.fetch()).text!=="EOF";)b+=D.text,this.consume();return this.consume(),h.text=b,h}parseRegexGroup(u,l){const h=this.fetch();let b=h,D="",E;for(;(E=this.fetch()).text!=="EOF"&&u.test(D+E.text);)b=E,D+=b.text,this.consume();if(D==="")throw new a("Invalid "+l+": '"+h.text+"'",h);return h.range(b,D)}parseColorGroup(u){const l=this.parseStringGroup("color",u);if(l==null)return null;const h=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(l.text);if(!h)throw new a("Invalid color: '"+l.text+"'",l);let b=h[0];return/^[0-9a-f]{6}$/i.test(b)&&(b="#"+b),{type:"color-token",mode:this.mode,color:b}}parseSizeGroup(u){let l,h=!1;if(this.gullet.consumeSpaces(),!u&&this.gullet.future().text!=="{"?l=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):l=this.parseStringGroup("size",u),!l)return null;!u&&l.text.length===0&&(l.text="0pt",h=!0);const b=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l.text);if(!b)throw new a("Invalid size: '"+l.text+"'",l);const D={number:+(b[1]+b[2]),unit:b[3]};if(!Jt(D))throw new a("Invalid unit: '"+D.unit+"'",l);return{type:"size",mode:this.mode,value:D,isBlank:h}}parseUrlGroup(u){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const l=this.parseStringGroup("url",u);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),l==null)return null;const h=l.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:h}}parseArgumentGroup(u,l){const h=this.gullet.scanArgument(u);if(h==null)return null;const b=this.mode;l&&this.switchMode(l),this.gullet.beginGroup();const D=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const E={type:"ordgroup",mode:this.mode,loc:h.loc,body:D};return l&&this.switchMode(b),E}parseGroup(u,l){const h=this.fetch(),b=h.text;let D;if(b==="{"||b==="\\begingroup"){this.consume();const E=b==="{"?"}":"\\endgroup";this.gullet.beginGroup();const I=this.parseExpression(!1,E),P=this.fetch();this.expect(E),this.gullet.endGroup(),D={type:"ordgroup",mode:this.mode,loc:Q0.range(h,P),body:I,semisimple:b==="\\begingroup"||void 0}}else if(D=this.parseFunction(l,u)||this.parseSymbol(),D==null&&b[0]==="\\"&&!rm.hasOwnProperty(b)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+b,h);D=this.formatUnsupportedCmd(b),this.consume()}return D}formLigatures(u){let l=u.length-1;for(let h=0;h<l;++h){const b=u[h];if(b.type!=="textord")continue;const D=b.text,E=u[h+1];if(!(!E||E.type!=="textord")){if(D==="-"&&E.text==="-"){const I=u[h+2];h+1<l&&I&&I.type==="textord"&&I.text==="-"?(u.splice(h,3,{type:"textord",mode:"text",loc:Q0.range(b,I),text:"---"}),l-=2):(u.splice(h,2,{type:"textord",mode:"text",loc:Q0.range(b,E),text:"--"}),l-=1)}(D==="'"||D==="`")&&E.text===D&&(u.splice(h,2,{type:"textord",mode:"text",loc:Q0.range(b,E),text:D+D}),l-=1)}}}parseSymbol(){const u=this.fetch();let l=u.text;if(/^\\verb[^a-zA-Z]/.test(l)){this.consume();let D=l.slice(5);const E=D.charAt(0)==="*";if(E&&(D=D.slice(1)),D.length<2||D.charAt(0)!==D.slice(-1))throw new a(`\\verb assertion failed --
|
|
545
|
+
please report what input caused this bug`);return D=D.slice(1,-1),{type:"verb",mode:"text",body:D,star:E}}am.hasOwnProperty(l[0])&&!kt[this.mode][l[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+l[0]+'" used in math mode',u),l=am[l[0]]+l.slice(1));const h=pw.exec(l);h&&(l=l.substring(0,h.index),l==="i"?l="ı":l==="j"&&(l="ȷ"));let b;if(kt[this.mode][l]){this.settings.strict&&this.mode==="math"&&qe.includes(l)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+l[0]+'" used in math mode',u);const D=kt[this.mode][l].group,E=Q0.range(u);let I;if(Kc.hasOwnProperty(D)){const P=D;I={type:"atom",mode:this.mode,family:P,loc:E,text:l}}else I={type:D,mode:this.mode,loc:E,text:l};b=I}else if(l.charCodeAt(0)>=128)this.settings.strict&&(Z(l.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+l[0]+'" used in math mode',u):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+l[0]+'"'+(" ("+l.charCodeAt(0)+")"),u)),b={type:"textord",mode:"text",loc:Q0.range(u),text:l};else return null;if(this.consume(),h)for(let D=0;D<h[0].length;D++){const E=h[0][D];if(!E1[E])throw new a("Unknown accent ' "+E+"'",u);const I=E1[E][this.mode]||E1[E].text;if(!I)throw new a("Accent "+E+" unsupported in "+this.mode+" mode",u);b={type:"accent",mode:this.mode,loc:Q0.range(u),label:I,isStretchy:!1,isShifty:!0,base:b}}return b}}Ss.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var F1=function(o,u){if(!(typeof o=="string"||o instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const l=new Ss(o,u);delete l.gullet.macros.current["\\df@tag"];let h=l.parse();if(delete l.gullet.macros.current["\\current@color"],delete l.gullet.macros.current["\\color"],l.gullet.macros.get("\\df@tag")){if(!u.displayMode)throw new a("\\tag works only in display equations");h=[{type:"tag",mode:"text",body:h,tag:l.subparse([new mr("\\df@tag")])}]}return h};let im=function(o,u,l){u.textContent="";const h=T1(o,l).toNode();u.appendChild(h)};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."),im=function(){throw new a("KaTeX doesn't work in quirks mode.")});const xw=function(o,u){return T1(o,u).toMarkup()},Aw=function(o,u){const l=new T(u);return F1(o,l)},um=function(o,u,l){if(l.throwOnError||!(o instanceof a))throw o;const h=Fe(["katex-error"],[new B0(u)]);return h.setAttribute("title",o.toString()),h.setAttribute("style","color:"+l.errorColor),h},T1=function(o,u){const l=new T(u);try{const h=F1(o,l);return Iv(h,o,l)}catch(h){return um(h,o,l)}};var Dw={version:"0.16.44",render:im,renderToString:xw,ParseError:a,SETTINGS_SCHEMA:B,__parse:Aw,__renderToDomTree:T1,__renderToHTMLTree:function(o,u){const l=new T(u);try{const h=F1(o,l);return Ov(h,o,l)}catch(h){return um(h,o,l)}},__setFontMetrics:si,__defineSymbol:y,__defineFunction:Ve,__defineMacro:L,__domTree:{Span:U0,Anchor:C0,SymbolNode:B0,SvgNode:fr,PathNode:Hr,LineNode:Kn}},kw=Dw;return n=n.default,n}()})}(ac)),ac.exports}(function(e){function t(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(n,i){const a=r.mergeDelimiters(i&&i.delimiters),s=i&&i.outerSpace||!1,c=i&&i.katexOptions||{};c.throwOnError=c.throwOnError||!1,c.macros=c.macros||i&&i.macros,r.katex||(i&&typeof i.engine=="object"?r.katex=i.engine:r.katex=Np());for(const f of a.inline)s&&"outerSpace"in f&&(f.outerSpace=!0),n.inline.ruler.before("escape",f.name,r.inline(f)),n.renderer.rules[f.name]=(p,g)=>f.tmpl.replace(/\$1/,r.render(p[g].content,!!f.displayMode,c));for(const f of a.block)n.block.ruler.before("fence",f.name,r.block(f)),n.renderer.rules[f.name]=(p,g)=>f.tmpl.replace(/\$2/,t(p[g].info)).replace(/\$1/,r.render(p[g].content,!0,c))}r.mergeDelimiters=function(n){const i=Array.isArray(n)?n:typeof n=="string"?[n]:["dollars"],a={inline:[],block:[]};for(const s of i)s in r.rules&&(a.inline.push(...r.rules[s].inline),a.block.push(...r.rules[s].block));return a},r.inline=n=>function(i,a){const s=i.pos,c=i.src,p=c.startsWith(n.tag,n.rex.lastIndex=s)&&(!n.pre||n.pre(c,n.outerSpace,s))&&n.rex.exec(c),g=!!p&&s<n.rex.lastIndex&&(!n.post||n.post(c,n.outerSpace,n.rex.lastIndex-1));if(g){if(!a){const m=i.push(n.name,"math",0);m.content=p[1],m.markup=n.tag}i.pos=n.rex.lastIndex}return g},r.block=n=>function(a,s,c,f){const p=a.bMarks[s]+a.tShift[s],g=a.src,w=g.startsWith(n.tag,n.rex.lastIndex=p)&&(!n.pre||n.pre(g,!1,p))&&n.rex.exec(g),k=!!w&&p<n.rex.lastIndex&&(!n.post||n.post(g,!1,n.rex.lastIndex-1));if(k&&!f){const C=n.rex.lastIndex-1;let B;for(B=s;B<c&&!(C>=a.bMarks[B]+a.tShift[B]&&C<=a.eMarks[B]);B++);const _=a.lineMax,T=a.parentType;a.lineMax=B,a.parentType="math",T==="blockquote"&&(w[1]=w[1].replace(/(\n*?^(?:\s*>)+)/gm,""));let S=a.push(n.name,"math",0);S.block=!0,S.tag=n.tag,S.markup="",S.content=w[1],S.info=w[w.length-1],S.map=[s,B+1],a.parentType=T,a.lineMax=_,a.line=B+1}return k},r.render=function(n,i,a){a.displayMode=i;let s;try{s=r.katex.renderToString(n,a)}catch(c){s=t(`${n}:${c.message}`)}return s},r.use=function(n){return r.katex=n,r},r.inlineRuleNames=["math_inline","math_inline_double"],r.blockRuleNames=["math_block","math_block_eqno"],r.$_pre=(n,i,a)=>{const s=a>0?n[a-1].charCodeAt(0):!1;return i?!s||s===32:!s||s!==92&&(s<48||s>57)},r.$_post=(n,i,a)=>{const s=n[a+1]&&n[a+1].charCodeAt(0);return i?!s||s===32||s===46||s===44||s===59:!s||s<48||s>57},r.rules={brackets:{inline:[{name:"math_inline",rex:/\\\((.+?)\\\)/gy,tmpl:"<eq>$1</eq>",tag:"\\("}],block:[{name:"math_block_eqno",rex:/\\\[(((?!\\\]|\\\[)[\s\S])+?)\\\]\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"\\["},{name:"math_block",rex:/\\\[([\s\S]+?)\\\]/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"\\["}]},doxygen:{inline:[{name:"math_inline",rex:/\\f\$(.+?)\\f\$/gy,tmpl:"<eq>$1</eq>",tag:"\\f$"}],block:[{name:"math_block_eqno",rex:/\\f\[([^]+?)\\f\]\s*?\(([^)\s]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"\\f["},{name:"math_block",rex:/\\f\[([^]+?)\\f\]/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"\\f["}]},gitlab:{inline:[{name:"math_inline",rex:/\$`(.+?)`\$/gy,tmpl:"<eq>$1</eq>",tag:"$`"}],block:[{name:"math_block_eqno",rex:/`{3}math\s*([^`]+?)\s*?`{3}\s*\(([^)\r\n]+?)\)/gm,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"```math"},{name:"math_block",rex:/`{3}math\s*([^`]*?)\s*`{3}/gm,tmpl:"<section><eqn>$1</eqn></section>",tag:"```math"}]},julia:{inline:[{name:"math_inline",rex:/`{2}([^`]+?)`{2}/gy,tmpl:"<eq>$1</eq>",tag:"``"},{name:"math_inline",rex:/\$((?:\S?)|(?:\S.*?\S))\$/gy,tmpl:"<eq>$1</eq>",tag:"$",spaceEnclosed:!1,pre:r.$_pre,post:r.$_post}],block:[{name:"math_block_eqno",rex:/`{3}math\s+?([^`]+?)\s+?`{3}\s*?\(([^)$\r\n]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"```math"},{name:"math_block",rex:/`{3}math\s+?([^`]+?)\s+?`{3}/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"```math"}]},kramdown:{inline:[{name:"math_inline",rex:/\${2}(.+?)\${2}/gy,tmpl:"<eq>$1</eq>",tag:"$$"}],block:[{name:"math_block_eqno",rex:/\${2}([^$]+?)\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"$$"},{name:"math_block",rex:/\${2}([^$]+?)\${2}/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"$$"}]},beg_end:{inline:[],block:[{name:"math_block",rex:/(\\(?:begin)\{([a-z]+)\}[\s\S]+?\\(?:end)\{\2\})/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"\\"}]},dollars:{inline:[{name:"math_inline_double",rex:/\${2}([^$]*?[^\\])\${2}/gy,tmpl:"<section><eqn>$1</eqn></section>",tag:"$$",displayMode:!0,pre:r.$_pre,post:r.$_post},{name:"math_inline",rex:/\$((?:[^\s\\])|(?:\S.*?[^\s\\]))\$/gy,tmpl:"<eq>$1</eq>",tag:"$",outerSpace:!1,pre:r.$_pre,post:r.$_post}],block:[{name:"math_block_eqno",rex:/\${2}([^$]*?[^\\])\${2}\s*?\(([^)\s]+?)\)/gmy,tmpl:'<section class="eqno"><eqn>$1</eqn><span>($2)</span></section>',tag:"$$"},{name:"math_block",rex:/\${2}([^$]*?[^\\])\${2}/gmy,tmpl:"<section><eqn>$1</eqn></section>",tag:"$$"}]}},e.exports&&(e.exports=r)})(N4);var _p=N4.exports;const zp=M4(_p),z4={content:{type:Object,required:!0},card:{type:Boolean,default:!0}},Ip=/```[\s\S]*?```|~~~[\s\S]*?~~~|`[^`\n]*`/g,Op=/(^|[^\\])\$\$([^$]*?[^\\])\$\$/gm,Lp=/\u0000MATH_CODE_(\d+)\u0000/g;function Rp(e){if(!e.includes("$$"))return e;const t=[];return e.replace(Ip,i=>(t.push(i),`\0MATH_CODE_${t.length-1}\0`)).replace(Op,(i,a,s)=>`${a}
|
|
546
|
+
|
|
547
|
+
$$${s}$$
|
|
548
|
+
|
|
549
|
+
`).replace(Lp,(i,a)=>t[Number(a)]??"")}const Ii=new ar({html:!0,linkify:!0});Ii.use(zp,{engine:r7,delimiters:"dollars",katexOptions:{throwOnError:!1,strict:!1}}),Ii.linkify.set({fuzzyLink:!1});const Pp=Ii.renderer.rules.link_open??function(e,t,r,n,i){return i.renderToken(e,t,r)};Ii.renderer.rules.link_open=function(e,t,r,n,i){const a=e[t];return a&&(a.attrSet("target","_blank"),a.attrSet("rel","noopener noreferrer")),Pp(e,t,r,n,i)};function Vp(e){let t=e;return t=t.replace(/([\u2026\u3001\u3002\uff0c\uff1a\uff1b\uff1f\uff01)】」』]|[;:,.!?(\[\]])[\t ]*(#{2,6}\s+)/g,`$1
|
|
18
550
|
|
|
19
551
|
$2`),t=t.replace(/(\*\*)(\s*)(#{2,6}\s+)/g,`$1
|
|
20
552
|
|
|
21
|
-
$3`),t}function
|
|
22
|
-
`)).replace(/\u0000CODE(\d+)\u0000/g,(
|
|
23
|
-
`),
|
|
24
|
-
`).trim()}const
|
|
553
|
+
$3`),t}function Hp(e){if(!e)return e;const t=/\r?\n/.test(e),r=[],n=e.replace(/```[\s\S]*?```|~~~[\s\S]*?~~~|`[^`\n]*`/g,a=>(r.push(a),`\0CODE${r.length-1}\0`));return(t?n:n.replace(/\\r\\n|\\n/g,`
|
|
554
|
+
`)).replace(/\u0000CODE(\d+)\u0000/g,(a,s)=>r[Number(s)]??"")}function qp(e){const t=e.split(`
|
|
555
|
+
`),r=t.filter(i=>i.trim().length>0);if(r.length===0)return e.trim();const n=Math.min(...r.map(i=>{var a;return(((a=i.match(/^\s*/))==null?void 0:a[0])??"").length}));return t.map(i=>i.slice(n)).join(`
|
|
556
|
+
`).trim()}const qa=d.defineComponent({name:"FXMarkdownMessage",props:z4,setup(e){const t=d.computed(()=>{var c;const r=Hp(((c=e.content)==null?void 0:c.content)??""),n=Vp(r),i=Rp(n),a=qp(i);if(!a)return"";const s=Ii.render(a);return h6.sanitize(s,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title","target","rel"]})});return()=>{var i;const r=(i=e.content)==null?void 0:i.message,n=e.card?" f-chat-message-markdown--card":"";return d.createVNode("div",{class:`f-chat-message-markdown${n}`},[r&&d.createVNode("div",{class:"f-chat-markdown-message"},[r]),d.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});qa.install=e=>{e.component(qa.name,qa)};const jp=(e,t,r)=>{if(e.type!==S0.Text)return null;const i=e.raw;if(!i)return null;if(typeof i!="string")return i;if(!i.trim())return null;let a=r.shouldShowMarkdown.value?i:i.replace(/\r\n/g,`
|
|
25
557
|
`).replace(/\r/g,`
|
|
26
|
-
`).replace(/\t/g," ");return n.shouldShowMarkdown.value?i.createVNode(xn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:u}},null):i.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[o])};function ih(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ah(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sh=function(){function e(n){var r=this;this._insertTag=function(u){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(u,o),r.tags.push(u)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ah(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ih(u);try{o.insertRule(r,o.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var u;return(u=r.parentNode)==null?void 0:u.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Re="-ms-",ro="-moz-",de="-webkit-",qa="comm",Su="rule",Nu="decl",lh="@import",Za="@keyframes",ch="@layer",dh=Math.abs,oo=String.fromCharCode,fh=Object.assign;function hh(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function Ya(e){return e.trim()}function mh(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,n){return e.replace(t,n)}function Fu(e,t){return e.indexOf(t)}function Le(e,t){return e.charCodeAt(t)|0}function rr(e,t,n){return e.slice(t,n)}function Nt(e){return e.length}function Tu(e){return e.length}function uo(e,t){return t.push(e),e}function ph(e,t){return e.map(t).join("")}var io=1,vn=1,Ka=0,Ze=0,Ae=0,kn="";function ao(e,t,n,r,u,o,a){return{value:e,root:t,parent:n,type:r,props:u,children:o,line:io,column:vn,length:a,return:""}}function or(e,t){return fh(ao("",null,null,"",null,null,0),e,{length:-e.length},t)}function gh(){return Ae}function bh(){return Ae=Ze>0?Le(kn,--Ze):0,vn--,Ae===10&&(vn=1,io--),Ae}function et(){return Ae=Ze<Ka?Le(kn,Ze++):0,vn++,Ae===10&&(vn=1,io++),Ae}function Ft(){return Le(kn,Ze)}function so(){return Ze}function ur(e,t){return rr(kn,e,t)}function ir(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qa(e){return io=vn=1,Ka=Nt(kn=e),Ze=0,[]}function Ja(e){return kn="",e}function lo(e){return Ya(ur(Ze-1,Du(e===91?e+2:e===40?e+1:e)))}function yh(e){for(;(Ae=Ft())&&Ae<33;)et();return ir(e)>2||ir(Ae)>3?"":" "}function wh(e,t){for(;--t&&et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return ur(e,so()+(t<6&&Ft()==32&&et()==32))}function Du(e){for(;et();)switch(Ae){case e:return Ze;case 34:case 39:e!==34&&e!==39&&Du(Ae);break;case 40:e===41&&Du(e);break;case 92:et();break}return Ze}function xh(e,t){for(;et()&&e+Ae!==57;)if(e+Ae===84&&Ft()===47)break;return"/*"+ur(t,Ze-1)+"*"+oo(e===47?e:et())}function vh(e){for(;!ir(Ft());)et();return ur(e,Ze)}function kh(e){return Ja(co("",null,null,null,[""],e=Qa(e),0,[0],e))}function co(e,t,n,r,u,o,a,s,l){for(var d=0,f=0,c=a,h=0,p=0,m=0,x=1,v=1,y=1,b=0,g="",w=u,A=o,N=r,F=g;v;)switch(m=b,b=et()){case 40:if(m!=108&&Le(F,c-1)==58){Fu(F+=fe(lo(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:F+=lo(b);break;case 9:case 10:case 13:case 32:F+=yh(m);break;case 92:F+=wh(so()-1,7);continue;case 47:switch(Ft()){case 42:case 47:uo(Ah(xh(et(),so()),t,n),l);break;default:F+="/"}break;case 123*x:s[d++]=Nt(F)*y;case 125*x:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+f:y==-1&&(F=fe(F,/\f/g,"")),p>0&&Nt(F)-c&&uo(p>32?ts(F+";",r,n,c-1):ts(fe(F," ","")+";",r,n,c-2),l);break;case 59:F+=";";default:if(uo(N=es(F,t,n,d,f,u,s,g,w=[],A=[],c),o),b===123)if(f===0)co(F,t,N,N,w,o,c,s,A);else switch(h===99&&Le(F,3)===110?100:h){case 100:case 108:case 109:case 115:co(e,N,N,r&&uo(es(e,N,N,0,0,u,s,g,u,w=[],c),A),u,A,c,s,r?w:A);break;default:co(F,N,N,N,[""],A,0,s,A)}}d=f=p=0,x=y=1,g=F="",c=a;break;case 58:c=1+Nt(F),p=m;default:if(x<1){if(b==123)--x;else if(b==125&&x++==0&&bh()==125)continue}switch(F+=oo(b),b*x){case 38:y=f>0?1:(F+="\f",-1);break;case 44:s[d++]=(Nt(F)-1)*y,y=1;break;case 64:Ft()===45&&(F+=lo(et())),h=Ft(),f=c=Nt(g=F+=vh(so())),b++;break;case 45:m===45&&Nt(F)==2&&(x=0)}}return o}function es(e,t,n,r,u,o,a,s,l,d,f){for(var c=u-1,h=u===0?o:[""],p=Tu(h),m=0,x=0,v=0;m<r;++m)for(var y=0,b=rr(e,c+1,c=dh(x=a[m])),g=e;y<p;++y)(g=Ya(x>0?h[y]+" "+b:fe(b,/&\f/g,h[y])))&&(l[v++]=g);return ao(e,t,n,u===0?Su:s,l,d,f)}function Ah(e,t,n){return ao(e,t,n,qa,oo(gh()),rr(e,2,-2),0)}function ts(e,t,n,r){return ao(e,t,n,Nu,rr(e,0,r),rr(e,r+1,-1),r)}function An(e,t){for(var n="",r=Tu(e),u=0;u<r;u++)n+=t(e[u],u,e,t)||"";return n}function Ch(e,t,n,r){switch(e.type){case ch:if(e.children.length)break;case lh:case Nu:return e.return=e.return||e.value;case qa:return"";case Za:return e.return=e.value+"{"+An(e.children,r)+"}";case Su:e.value=e.props.join(",")}return Nt(n=An(e.children,r))?e.return=e.value+"{"+n+"}":""}function _h(e){var t=Tu(e);return function(n,r,u,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,u,o)||"";return a}}function Eh(e){return function(t){t.root||(t=t.return)&&e(t)}}function Sh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Nh=function(t,n,r){for(var u=0,o=0;u=o,o=Ft(),u===38&&o===12&&(n[r]=1),!ir(o);)et();return ur(t,Ze)},Fh=function(t,n){var r=-1,u=44;do switch(ir(u)){case 0:u===38&&Ft()===12&&(n[r]=1),t[r]+=Nh(Ze-1,n,r);break;case 2:t[r]+=lo(u);break;case 4:if(u===44){t[++r]=Ft()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=oo(u)}while(u=et());return t},Th=function(t,n){return Ja(Fh(Qa(t),n))},ns=new WeakMap,Dh=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,u=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ns.get(r))&&!u){ns.set(t,!0);for(var o=[],a=Th(n,o),s=r.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},Ih=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function rs(e,t){switch(hh(e,t)){case 5103:return de+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+ro+e+Re+e+e;case 6828:case 4268:return de+e+Re+e+e;case 6165:return de+e+Re+"flex-"+e+e;case 5187:return de+e+fe(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return de+e+Re+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return de+e+Re+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+Re+fe(e,"shrink","negative")+e;case 5292:return de+e+Re+fe(e,"basis","preferred-size")+e;case 6060:return de+"box-"+fe(e,"-grow","")+de+e+Re+fe(e,"grow","positive")+e;case 4554:return de+fe(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,de+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Nt(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+ro+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fu(e,"stretch")?rs(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Nt(e)-3-(~Fu(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Le(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Re+e+e}return e}var Oh=function(t,n,r,u){if(t.length>-1&&!t.return)switch(t.type){case Nu:t.return=rs(t.value,t.length);break;case Za:return An([or(t,{value:fe(t.value,"@","@"+de)})],u);case Su:if(t.length)return ph(t.props,function(o){switch(mh(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return An([or(t,{props:[fe(o,/:(read-\w+)/,":"+ro+"$1")]})],u);case"::placeholder":return An([or(t,{props:[fe(o,/:(plac\w+)/,":"+de+"input-$1")]}),or(t,{props:[fe(o,/:(plac\w+)/,":"+ro+"$1")]}),or(t,{props:[fe(o,/:(plac\w+)/,Re+"input-$1")]})],u)}return""})}},Lh=[Oh],Vh=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var v=x.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var u=t.stylisPlugins||Lh,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var v=x.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(x)});var l,d=[Dh,Ih];{var f,c=[Ch,Eh(function(x){f.insert(x)})],h=_h(d.concat(u,c)),p=function(v){return An(kh(v),h)};l=function(v,y,b,g){f=b,p(v?v+"{"+y.styles+"}":y.styles),g&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new sh({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(s),m};function Ph(e){for(var t=0,n,r=0,u=e.length;u>=4;++r,u-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(u){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mh=/[A-Z]|^ms/g,Bh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,os=function(t){return t.charCodeAt(1)===45},us=function(t){return t!=null&&typeof t!="boolean"},Iu=Sh(function(e){return os(e)?e:e.replace(Mh,"-$&").toLowerCase()}),is=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bh,function(r,u,o){return Wt={name:u,styles:o,next:Wt},u})}return Rh[t]!==1&&!os(t)&&typeof n=="number"&&n!==0?n+"px":n};function fo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var u=n;if(u.anim===1)return Wt={name:u.name,styles:u.styles,next:Wt},u.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wt={name:a.name,styles:a.styles,next:Wt},a=a.next;var s=o.styles+";";return s}return zh(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function zh(e,t,n){var r="";if(Array.isArray(n))for(var u=0;u<n.length;u++)r+=fo(e,t,n[u])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":us(s)&&(r+=Iu(o)+":"+is(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)us(a[l])&&(r+=Iu(o)+":"+is(o,a[l])+";");else{var d=fo(e,t,a);switch(o){case"animation":case"animationName":{r+=Iu(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var as=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function Ou(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,u="";Wt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,u+=fo(n,t,o);else{var a=o;u+=a[0]}for(var s=1;s<e.length;s++)if(u+=fo(n,t,e[s]),r){var l=o;u+=l[s]}as.lastIndex=0;for(var d="",f;(f=as.exec(u))!==null;)d+="-"+f[1];var c=Ph(u)+d;return{name:c,styles:u,next:Wt}}function ss(e,t,n){var r="";return n.split(" ").forEach(function(u){e[u]!==void 0?t.push(e[u]+";"):u&&(r+=u+" ")}),r}var jh=function(t,n,r){var u=t.key+"-"+n.name;t.registered[u]===void 0&&(t.registered[u]=n.styles)},Hh=function(t,n,r){jh(t,n);var u=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+u:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function ls(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function cs(e,t,n){var r=[],u=ss(e,r,n);return r.length<2?n:u+t(r)}var $h=function(t){var n=Vh(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ou(d,n.registered,void 0);return Hh(n,c),n.key+"-"+c.name},u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ou(d,n.registered),h="animation-"+c.name;return ls(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Ou(d,n.registered);ls(n,c)},a=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return cs(n.registered,r,Uh(d))};return{css:r,cx:a,injectGlobal:o,keyframes:u,hydrate:function(l){l.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:ss.bind(null,n.registered),merge:cs.bind(null,n.registered,r)}},Uh=function e(t){for(var n="",r=0;r<t.length;r++){var u=t[r];if(u!=null){var o=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))o=e(u);else{o="";for(var a in u)u[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=u}o&&(n&&(n+=" "),n+=o)}}return n},Wh=$h({key:"css"}),Lu=Wh.css,Xh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ds={exports:{}};/*!
|
|
558
|
+
`).replace(/\t/g," ");return r.shouldShowMarkdown.value?d.createVNode(qa,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:i}},null):d.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[a])};function $p(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Up(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Wp=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Up(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=$p(i);try{a.insertRule(n,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),F0="-ms-",vo="-moz-",bt="-webkit-",I4="comm",ic="rule",uc="decl",Gp="@import",O4="@keyframes",Xp="@layer",Yp=Math.abs,wo=String.fromCharCode,Zp=Object.assign;function Kp(e,t){return k0(e,0)^45?(((t<<2^k0(e,0))<<2^k0(e,1))<<2^k0(e,2))<<2^k0(e,3):0}function L4(e){return e.trim()}function Qp(e,t){return(e=t.exec(e))?e[0]:e}function yt(e,t,r){return e.replace(t,r)}function oc(e,t){return e.indexOf(t)}function k0(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return e.slice(t,r)}function en(e){return e.length}function sc(e){return e.length}function xo(e,t){return t.push(e),e}function Jp(e,t){return e.map(t).join("")}var Ao=1,ja=1,R4=0,Z0=0,a0=0,$a="";function Do(e,t,r,n,i,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Ao,column:ja,length:s,return:""}}function Li(e,t){return Zp(Do("",null,null,"",null,null,0),e,{length:-e.length},t)}function e9(){return a0}function t9(){return a0=Z0>0?k0($a,--Z0):0,ja--,a0===10&&(ja=1,Ao--),a0}function ir(){return a0=Z0<R4?k0($a,Z0++):0,ja++,a0===10&&(ja=1,Ao++),a0}function tn(){return k0($a,Z0)}function ko(){return Z0}function Ri(e,t){return Oi($a,e,t)}function Pi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P4(e){return Ao=ja=1,R4=en($a=e),Z0=0,[]}function V4(e){return $a="",e}function Co(e){return L4(Ri(Z0-1,lc(e===91?e+2:e===40?e+1:e)))}function r9(e){for(;(a0=tn())&&a0<33;)ir();return Pi(e)>2||Pi(a0)>3?"":" "}function n9(e,t){for(;--t&&ir()&&!(a0<48||a0>102||a0>57&&a0<65||a0>70&&a0<97););return Ri(e,ko()+(t<6&&tn()==32&&ir()==32))}function lc(e){for(;ir();)switch(a0){case e:return Z0;case 34:case 39:e!==34&&e!==39&&lc(a0);break;case 40:e===41&&lc(e);break;case 92:ir();break}return Z0}function a9(e,t){for(;ir()&&e+a0!==57;)if(e+a0===84&&tn()===47)break;return"/*"+Ri(t,Z0-1)+"*"+wo(e===47?e:ir())}function i9(e){for(;!Pi(tn());)ir();return Ri(e,Z0)}function u9(e){return V4(So("",null,null,null,[""],e=P4(e),0,[0],e))}function So(e,t,r,n,i,a,s,c,f){for(var p=0,g=0,m=s,w=0,k=0,C=0,B=1,_=1,T=1,S=0,F="",z=i,R=a,$=n,Y=F;_;)switch(C=S,S=ir()){case 40:if(C!=108&&k0(Y,m-1)==58){oc(Y+=yt(Co(S),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:Y+=Co(S);break;case 9:case 10:case 13:case 32:Y+=r9(C);break;case 92:Y+=n9(ko()-1,7);continue;case 47:switch(tn()){case 42:case 47:xo(o9(a9(ir(),ko()),t,r),f);break;default:Y+="/"}break;case 123*B:c[p++]=en(Y)*T;case 125*B:case 59:case 0:switch(S){case 0:case 125:_=0;case 59+g:T==-1&&(Y=yt(Y,/\f/g,"")),k>0&&en(Y)-m&&xo(k>32?q4(Y+";",n,r,m-1):q4(yt(Y," ","")+";",n,r,m-2),f);break;case 59:Y+=";";default:if(xo($=H4(Y,t,r,p,g,i,c,F,z=[],R=[],m),a),S===123)if(g===0)So(Y,t,$,$,z,a,m,c,R);else switch(w===99&&k0(Y,3)===110?100:w){case 100:case 108:case 109:case 115:So(e,$,$,n&&xo(H4(e,$,$,0,0,i,c,F,i,z=[],m),R),i,R,m,c,n?z:R);break;default:So(Y,$,$,$,[""],R,0,c,R)}}p=g=k=0,B=T=1,F=Y="",m=s;break;case 58:m=1+en(Y),k=C;default:if(B<1){if(S==123)--B;else if(S==125&&B++==0&&t9()==125)continue}switch(Y+=wo(S),S*B){case 38:T=g>0?1:(Y+="\f",-1);break;case 44:c[p++]=(en(Y)-1)*T,T=1;break;case 64:tn()===45&&(Y+=Co(ir())),w=tn(),g=m=en(F=Y+=i9(ko())),S++;break;case 45:C===45&&en(Y)==2&&(B=0)}}return a}function H4(e,t,r,n,i,a,s,c,f,p,g){for(var m=i-1,w=i===0?a:[""],k=sc(w),C=0,B=0,_=0;C<n;++C)for(var T=0,S=Oi(e,m+1,m=Yp(B=s[C])),F=e;T<k;++T)(F=L4(B>0?w[T]+" "+S:yt(S,/&\f/g,w[T])))&&(f[_++]=F);return Do(e,t,r,i===0?ic:c,f,p,g)}function o9(e,t,r){return Do(e,t,r,I4,wo(e9()),Oi(e,2,-2),0)}function q4(e,t,r,n){return Do(e,t,r,uc,Oi(e,0,n),Oi(e,n+1,-1),n)}function Ua(e,t){for(var r="",n=sc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function s9(e,t,r,n){switch(e.type){case Xp:if(e.children.length)break;case Gp:case uc:return e.return=e.return||e.value;case I4:return"";case O4:return e.return=e.value+"{"+Ua(e.children,n)+"}";case ic:e.value=e.props.join(",")}return en(r=Ua(e.children,n))?e.return=e.value+"{"+r+"}":""}function l9(e){var t=sc(e);return function(r,n,i,a){for(var s="",c=0;c<t;c++)s+=e[c](r,n,i,a)||"";return s}}function c9(e){return function(t){t.root||(t=t.return)&&e(t)}}function d9(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f9=function(t,r,n){for(var i=0,a=0;i=a,a=tn(),i===38&&a===12&&(r[n]=1),!Pi(a);)ir();return Ri(t,Z0)},h9=function(t,r){var n=-1,i=44;do switch(Pi(i)){case 0:i===38&&tn()===12&&(r[n]=1),t[n]+=f9(Z0-1,r,n);break;case 2:t[n]+=Co(i);break;case 4:if(i===44){t[++n]=tn()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=wo(i)}while(i=ir());return t},m9=function(t,r){return V4(h9(P4(t),r))},j4=new WeakMap,p9=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!j4.get(n))&&!i){j4.set(t,!0);for(var a=[],s=m9(r,a),c=n.props,f=0,p=0;f<s.length;f++)for(var g=0;g<c.length;g++,p++)t.props[p]=a[f]?s[f].replace(/&\f/g,c[g]):c[g]+" "+s[f]}}},g9=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function $4(e,t){switch(Kp(e,t)){case 5103:return bt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bt+e+vo+e+F0+e+e;case 6828:case 4268:return bt+e+F0+e+e;case 6165:return bt+e+F0+"flex-"+e+e;case 5187:return bt+e+yt(e,/(\w+).+(:[^]+)/,bt+"box-$1$2"+F0+"flex-$1$2")+e;case 5443:return bt+e+F0+"flex-item-"+yt(e,/flex-|-self/,"")+e;case 4675:return bt+e+F0+"flex-line-pack"+yt(e,/align-content|flex-|-self/,"")+e;case 5548:return bt+e+F0+yt(e,"shrink","negative")+e;case 5292:return bt+e+F0+yt(e,"basis","preferred-size")+e;case 6060:return bt+"box-"+yt(e,"-grow","")+bt+e+F0+yt(e,"grow","positive")+e;case 4554:return bt+yt(e,/([^-])(transform)/g,"$1"+bt+"$2")+e;case 6187:return yt(yt(yt(e,/(zoom-|grab)/,bt+"$1"),/(image-set)/,bt+"$1"),e,"")+e;case 5495:case 3959:return yt(e,/(image-set\([^]*)/,bt+"$1$`$1");case 4968:return yt(yt(e,/(.+:)(flex-)?(.*)/,bt+"box-pack:$3"+F0+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bt+e+e;case 4095:case 3583:case 4068:case 2532:return yt(e,/(.+)-inline(.+)/,bt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(en(e)-1-t>6)switch(k0(e,t+1)){case 109:if(k0(e,t+4)!==45)break;case 102:return yt(e,/(.+:)(.+)-([^]+)/,"$1"+bt+"$2-$3$1"+vo+(k0(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oc(e,"stretch")?$4(yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(k0(e,t+1)!==115)break;case 6444:switch(k0(e,en(e)-3-(~oc(e,"!important")&&10))){case 107:return yt(e,":",":"+bt)+e;case 101:return yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bt+(k0(e,14)===45?"inline-":"")+"box$3$1"+bt+"$2$3$1"+F0+"$2box$3")+e}break;case 5936:switch(k0(e,t+11)){case 114:return bt+e+F0+yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bt+e+F0+yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bt+e+F0+yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bt+e+F0+e+e}return e}var b9=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case uc:t.return=$4(t.value,t.length);break;case O4:return Ua([Li(t,{value:yt(t.value,"@","@"+bt)})],i);case ic:if(t.length)return Jp(t.props,function(a){switch(Qp(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ua([Li(t,{props:[yt(a,/:(read-\w+)/,":"+vo+"$1")]})],i);case"::placeholder":return Ua([Li(t,{props:[yt(a,/:(plac\w+)/,":"+bt+"input-$1")]}),Li(t,{props:[yt(a,/:(plac\w+)/,":"+vo+"$1")]}),Li(t,{props:[yt(a,/:(plac\w+)/,F0+"input-$1")]})],i)}return""})}},y9=[b9],v9=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(B){var _=B.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(B),B.setAttribute("data-s",""))})}var i=t.stylisPlugins||y9,a={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(B){for(var _=B.getAttribute("data-emotion").split(" "),T=1;T<_.length;T++)a[_[T]]=!0;c.push(B)});var f,p=[p9,g9];{var g,m=[s9,c9(function(B){g.insert(B)})],w=l9(p.concat(i,m)),k=function(_){return Ua(u9(_),w)};f=function(_,T,S,F){g=S,k(_?_+"{"+T.styles+"}":T.styles),F&&(C.inserted[T.name]=!0)}}var C={key:r,sheet:new Wp({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:f};return C.sheet.hydrate(c),C};function w9(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var x9={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},A9=/[A-Z]|^ms/g,D9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,U4=function(t){return t.charCodeAt(1)===45},W4=function(t){return t!=null&&typeof t!="boolean"},cc=d9(function(e){return U4(e)?e:e.replace(A9,"-$&").toLowerCase()}),G4=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(D9,function(n,i,a){return Hn={name:i,styles:a,next:Hn},i})}return x9[t]!==1&&!U4(t)&&typeof r=="number"&&r!==0?r+"px":r};function Eo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Hn={name:i.name,styles:i.styles,next:Hn},i.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Hn={name:s.name,styles:s.styles,next:Hn},s=s.next;var c=a.styles+";";return c}return k9(e,t,r)}}var f=r;if(t==null)return f;var p=t[f];return p!==void 0?p:f}function k9(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Eo(e,t,r[i])+";";else for(var a in r){var s=r[a];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?n+=a+"{"+t[c]+"}":W4(c)&&(n+=cc(a)+":"+G4(a,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var f=0;f<s.length;f++)W4(s[f])&&(n+=cc(a)+":"+G4(a,s[f])+";");else{var p=Eo(e,t,s);switch(a){case"animation":case"animationName":{n+=cc(a)+":"+p+";";break}default:n+=a+"{"+p+"}"}}}return n}var X4=/label:\s*([^\s;{]+)\s*(;|$)/g,Hn;function dc(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Hn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Eo(r,t,a);else{var s=a;i+=s[0]}for(var c=1;c<e.length;c++)if(i+=Eo(r,t,e[c]),n){var f=a;i+=f[c]}X4.lastIndex=0;for(var p="",g;(g=X4.exec(i))!==null;)p+="-"+g[1];var m=w9(i)+p;return{name:m,styles:i,next:Hn}}function Y4(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var C9=function(t,r,n){var i=t.key+"-"+r.name;t.registered[i]===void 0&&(t.registered[i]=r.styles)},S9=function(t,r,n){C9(t,r);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Z4(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function K4(e,t,r){var n=[],i=Y4(e,n,r);return n.length<2?r:i+t(n)}var E9=function(t){var r=v9(t);r.sheet.speedy=function(c){this.isSpeedy=c},r.compat=!0;var n=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=dc(p,r.registered,void 0);return S9(r,m),r.key+"-"+m.name},i=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=dc(p,r.registered),w="animation-"+m.name;return Z4(r,{name:m.name,styles:"@keyframes "+w+"{"+m.styles+"}"}),w},a=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=dc(p,r.registered);Z4(r,m)},s=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];return K4(r.registered,n,F9(p))};return{css:n,cx:s,injectGlobal:a,keyframes:i,hydrate:function(f){f.forEach(function(p){r.inserted[p]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Y4.bind(null,r.registered),merge:K4.bind(null,r.registered,n)}},F9=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{a="";for(var s in i)i[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=i}a&&(r&&(r+=" "),r+=a)}}return r},T9=E9({key:"css"}),fc=T9.css,Q4={exports:{}};/*!
|
|
27
559
|
Copyright (c) 2018 Jed Watson.
|
|
28
560
|
Licensed under the MIT License (MIT), see
|
|
29
561
|
http://jedwatson.github.io/classnames
|
|
30
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function
|
|
562
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",s=0;s<arguments.length;s++){var c=arguments[s];c&&(a=i(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var c in a)t.call(a,c)&&a[c]&&(s=i(s,c));return s}function i(a,s){return s?a?a+" "+s:a+s:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Q4);var B9=Q4.exports;const hc=M4(B9),J4={className:{type:String,default:""},viewStatus:{type:String,default:"full"},widgetAPIURL:{type:String,default:""},widgetOptions:{type:Object,default:()=>({mode:"embedded",implOptions:{}})},widgetData:{type:Object,default:()=>({})}};class M9{constructor(t){Bt(this,"root");if(!t)throw new Error("parentElement is required");this.root=document.createElement("div"),this.root.className="fx-card-container-stage__root",t.appendChild(this.root)}dispose(){this.root.remove()}getElement(){return this.root}}function N9(){function e(t,r){if(t===r)return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null||Array.isArray(t)!==Array.isArray(r))return!1;const n=Object.keys(t),i=Object.keys(r);if(n.length!==i.length)return!1;for(const a of n)if(!i.includes(a)||!e(t[a],r[a]))return!1;return!0}return{deepEqual:e}}var mc={exports:{}};(function(e,t){(function(r,n){n(t)})(B4,function(r){var n=Object.defineProperty,i=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(Z,Q,ue)=>Q in Z?n(Z,Q,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Z[Q]=ue,g=(Z,Q)=>{for(var ue in Q||(Q={}))c.call(Q,ue)&&p(Z,ue,Q[ue]);if(s)for(var ue of s(Q))f.call(Q,ue)&&p(Z,ue,Q[ue]);return Z},m=(Z,Q)=>i(Z,a(Q)),w=(Z,Q,ue)=>new Promise((fe,ke)=>{var ie=Le=>{try{ge(ue.next(Le))}catch(Ye){ke(Ye)}},me=Le=>{try{ge(ue.throw(Le))}catch(Ye){ke(Ye)}},ge=Le=>Le.done?fe(Le.value):Promise.resolve(Le.value).then(ie,me);ge((ue=ue.apply(Z,Q)).next())}),k=(Z=>(Z[Z.NONE=0]="NONE",Z[Z.LOADING=1]="LOADING",Z[Z.LOADED=2]="LOADED",Z[Z.ERROR=3]="ERROR",Z))(k||{});class C{constructor(Q){this.items={},this.factory=Q}getOrCreateItemByURL(Q){let ue=this.items[Q];return ue||(ue=this.items[Q]=this.factory(Q)),ue}tryGetItemByURL(Q){var ue;return(ue=this.items[Q])!=null?ue:null}removeItemByURL(Q){const ue=this.items[Q];return ue&&(this.items[Q]=null,ue)}}const B="__RUNTIME_IMPORT__";function _(Z,Q){var ue,fe;const ke=globalThis,ie=(ue=ke[B])!=null?ue:ke[B]={};return(fe=ie[Z])!=null?fe:ie[Z]=Q()}const T=_("cssCache",()=>new C(Z=>({url:Z,status:k.NONE,el:null,error:null,reject:null})));function S(Z,Q,ue){const fe={handleLoad(){Z.removeEventListener("load",fe.handleLoad),Z.removeEventListener("error",fe.handleError),Q()},handleError(ke){Z.removeEventListener("load",fe.handleLoad),Z.removeEventListener("error",fe.handleError),ue(ke)}};Z.addEventListener("load",fe.handleLoad),Z.addEventListener("error",fe.handleError)}function F(Z){const Q=T.getOrCreateItemByURL(Z),{status:ue,error:fe}=Q;return ue===k.LOADED?Promise.resolve():ue===k.ERROR?Promise.reject(fe):ue===k.LOADING?new Promise((ke,ie)=>{const{el:me}=Q;S(me,()=>ke(),ge=>ie(ge.error))}):(Q.status=k.LOADING,new Promise((ke,ie)=>{const me=document.createElement("link");me.rel="stylesheet",me.href=Z,S(me,()=>{Q.status=k.LOADED,ke()},ge=>{const Le=ge.error||new Error(`Load css failed. href=${Z}`);Q.status=k.ERROR,Q.error=Le,ie(Le)}),Q.el=me,me.setAttribute("data-runtime-import-type","css"),document.head.appendChild(me)}))}function z(Z){return Promise.all(Z.map(Q=>F(Q))).then(()=>Promise.resolve()).catch(Q=>Promise.reject(Q))}const R=_("jsCache",()=>new C(Z=>({url:Z,status:k.NONE,el:null,error:null,reject:null,exportThing:void 0}))),$=globalThis,{define:Y}=$,{keys:q}=Object;let pe=!1;typeof Y<"u"&&!Y.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),pe=!0);const he=_("pendingItemMap",()=>({})),ce=function(...Z){const Q=Z.pop(),{currentScript:ue}=document;if(!ue)throw new Error("currentScript is null.");const{src:fe}=ue,ke=he[fe];if(!ke)throw new Error(`Can NOT find item, src=${fe}`);he[fe]=null;try{let ie=Z[0]||[],me=null;typeof ie=="string"&&(me=ie,ie=Z[1]||[]);const ge=ke.exportThing=(()=>{let Le=!1;const Ye={};let Ke=Q(...ie.map(ut=>ut==="exports"?(Le=!0,Ye):$[ut]));return!Ke&&Le&&(Ke=Ye),Ke})();me&&($[me]=ge),ge&&q(ge).length===1&&ge.default&&(ke.exportThing=ge.default,ke.exportThing.default=ge.default)}catch(ie){ke.status=k.ERROR,ie instanceof Error&&(ke.error=ie),ke.reject(ie)}},be=()=>{const{currentScript:Z}=document;if(Z){const{src:Q}=Z;if(he[Q])return!0}return!1};["amd","cmd"].forEach(Z=>{Object.defineProperty(ce,Z,{get:be})}),ce.runtime_import=!0;function ae(Z,Q){if(pe)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");$.define||($.define=ce),he[Z]=Q}function xe(Z){const Q=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(Z),ue=window;if(Q&&Q.length>0){const fe=Q[1];ue.g_config=ue.g_config||{},ue.g_config.appKey=fe}}function Se(Z,Q,ue){Z.status=k.LOADING,xe(Q);const{umd:fe,crossOrigin:ke}=ue;return new Promise((ie,me)=>{const ge=document.createElement("script");if(ge.src=Q,ge.async=!1,ge.crossOrigin=ke,fe){ge.setAttribute("data-runtime-import-type","javascript-umd"),Z.reject=me;const Le=ge.src;ae(Le,Z)}else ge.setAttribute("data-runtime-import-type","javascript");S(ge,()=>{Z.status=k.LOADED,Z.el=null,ie(Z.exportThing)},Le=>{const Ye=Le.error||new Error(`Load javascript failed. src=${Q}`);Z.status=k.ERROR,Z.error=Ye,Z.el=null,me(Ye)}),Z.el=ge,document.body.appendChild(ge)})}function te(Z,Q){const ue=R.getOrCreateItemByURL(Z),{status:fe,exportThing:ke,error:ie}=ue;if(fe===k.LOADED)return Promise.resolve(ke);if(fe===k.ERROR)return Promise.reject(ie);if(fe===k.LOADING){const{el:me}=ue;return new Promise((ge,Le)=>{S(me,()=>ge(ue.exportThing),Ye=>Le(Ye.error))})}return Se(ue,Z,Q)}function ye(Z,Q){let ue=Promise.resolve();const fe=Z.length-1,{umd:ke}=Q;return Z.forEach((ie,me)=>{const ge=ke&&me===fe;ue=ue.then(()=>te(ie,m(g({},Q),{umd:ge})))}),ue}function ne(Z){return w(this,null,function*(){const{scripts:Q,styles:ue}=Z;if(ue){const{urls:ge}=ue;yield z(ge)}const{dependencies:fe=[],entry:ke,umd:ie=!0,crossOrigin:me="anonymous"}=Q;if((ke?fe.concat([ke]):fe).length)return yield ye(fe.concat([ke]),{umd:ie,crossOrigin:me})})}function Ne(Z,Q){return w(this,null,function*(){const ue=Q??{};return yield ne({scripts:{dependencies:[],entry:Z,umd:ue.umd,crossOrigin:ue.crossOrigin}})})}function We(Z){return w(this,null,function*(){return yield ne({scripts:{dependencies:[],entry:""},styles:{urls:[Z]}})})}const X=ne;r.importComponent=ne,r.importModule=X,r.importScript=Ne,r.importStyle=We,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})})})(mc,mc.exports);var _9=mc.exports;function z9(){async function e(t){return await _9.importScript(t)}return{loadWidgetAPI:e}}const Wa=d.defineComponent({name:"FXWidgetContainer",props:J4,setup(e,t){const{loadWidgetAPI:r}=z9(),{deepEqual:n}=N9(),i=d.ref(null),a=d.ref(null),s=d.ref(null),c=d.ref(null),f=d.ref(null),p=d.computed(()=>{const S=fc`width:100%!important`;return hc("caf-assistant-widget-container__root",S,e.className)}),g=fc`
|
|
31
563
|
overflow: hidden;
|
|
32
|
-
`,
|
|
33
|
-
display: ${
|
|
34
|
-
`;return Vu("caf-assistant-widget-container__error",b)}),p=()=>{const b=a.value;b&&(s.value=new Zh(b))},m=()=>{const b=s.value;b&&(b.dispose(),s.value=null)},x=()=>{const b=o.value,g=u.value;b&&(b.unmount(),b.dispose()),g&&g.cleanup(),o.value=null,u.value=null},v=async()=>{const b=await n(e.widgetAPIURL);if(!b)throw new Error("Failed to load widget API");await b.initialize();const g=b.createWidget();u.value=b,o.value=g},y=b=>{console.error(b),l.value=b};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{x(),await v();const b=a.value,g=o.value;g==null||g.updateOptions(e.widgetOptions),g==null||g.updateData(e.widgetData),b&&g&&await g.mount(b)}catch(b){y(b)}}),i.watch(()=>e.widgetOptions,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateOptions(b)}catch(w){y(w)}}),i.watch(()=>e.widgetData,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateData(b)}catch(w){y(w)}}),i.onMounted(async()=>{try{const b=a.value;if(b){p();const g=s.value;if(g){await v();const w=o.value;w&&(w.updateOptions(e.widgetOptions),w.updateData(e.widgetData),w.mount(g.getElement()),i.nextTick(()=>{b.parentElement&&(b.style.width="100%")}))}}}catch(b){y(b)}}),i.onBeforeUnmount(async()=>{try{x(),m()}catch(b){console.error(b)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),hs=(e,t)=>{var n;if(e.type===Pe.AssistantWidgetComplete){const r=e;return r.widgetUrl?i.createVNode(Cn,{key:`widget-${t}`,widgetAPIURL:r.widgetUrl,widgetOptions:{mode:"embedded",implOptions:r.widgetImplOptions},widgetData:((n=r.widgetData)==null?void 0:n.data)||{}},null):null}return e.type===Pe.AssistantWidgetPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("数据生成中......")])]):null},Jh=6e4,ms=8e3,Ue=new Map,ft=new Map,ar=new Map,Tt=[];function De(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function ho(e){const t=De(e);if(t)for(let n=Tt.length-1;n>=0;n--)Tt[n]===t&&Tt.splice(n,1)}function em(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function mo(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function tm(){return Tt[Tt.length-1]||void 0}function po(e,t){const n=De(t);return n?De(e.instanceId)===n||e.componentId!=null&&De(String(e.componentId))===n||e.name!=null&&De(String(e.name))===n:!1}function Ru(e){const t=De(e);if(!t)return null;const n=Ue.get(t);if(n)return{canonicalKey:t,entry:n};for(const[u,o]of Ue.entries())if(De(u)===t)return{canonicalKey:u,entry:o};const r=[];for(const[u,o]of Ue.entries())po(o.config,t)&&r.push({key:u,entry:o});if(r.length===1){const{key:u,entry:o}=r[0];return u!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${u}" (alias match)`),{canonicalKey:u,entry:o}}if(r.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${r.length} pending matches); refusing`),null;if(Ue.size===1){const[u,o]=[...Ue.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${u}"`),{canonicalKey:u,entry:o}}return null}function ps(e,t){for(const[n,r]of ft){const u=De(n),o=e!==""&&u===e,a=String(t??"").trim(),s=e&&po(r.config,e)||a&&po(r.config,a);if(o||s)return console.warn(`[DynamicComponent] register skipped: id "${e||a}" already active (canonical "${n}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function Mu(){return{pendingKeys:[...Ue.keys()],bootstrapQueue:[...Tt],activeKeys:[...ft.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function nm(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...Mu()})}function rm(e){const t=De(e);if(t){if(ps(t,e))return{ok:!1,reason:"already_active_duplicate"};const r=Ru(t);if(r)return{ok:!0,...r}}else if(ps("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<Tt.length;n++){const r=Tt[n],u=Ru(r);if(u)return Tt.splice(n,1),t&&De(r)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${r}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...u}}return{ok:!1,reason:"no_pending"}}function gs(e){const t=De(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[o,a]of ft.entries())if(De(o)===t)return a;const r=[];for(const o of ft.values())po(o.config,t)&&r.push(o);const u=[...new Map(r.map(o=>[o.config.instanceId,o])).values()];return u.length===1?(u[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${u[0].config.instanceId}" (alias match)`),u[0]):(u.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${u.length} active matches)`),null)}function om(e){const t=De(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[r,u]of ft.entries())if(De(r)===t)return u;return null}function um(e){const t=De(e);if(!t)return t;const n=gs(t);if(n)return n.config.instanceId;const r=Ru(t);return r?r.canonicalKey:t}function Bu(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function bs(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Bu(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function im(e){const t=`fluens-dynamic-component-${e.instanceId}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.width="100%",n.style.height="100%"),n}function ys(e){const t=ft.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=Ue.get(e.instanceId);if(n)return new Promise((u,o)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),u(l)},n.reject=l=>{s(l),o(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const r=im(e);return new Promise((u,o)=>{const a={config:e,container:r,resolve:u,reject:o,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),ho(e.instanceId),mo(e.instanceId),o(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},Jh);a.timeoutId=s,Ue.set(e.instanceId,a),Tt.push(e.instanceId),em(e.instanceId);const l=document.createElement("script");l.src=(e==null?void 0:e.jsUrl)??"",l.dataset.dynamicComponentId=e.instanceId,l.async=!1,l.onload=()=>{a.postLoadRegisterCheckTimerId=window.setTimeout(()=>{a.postLoadRegisterCheckTimerId=void 0,Ue.has(e.instanceId)&&(clearTimeout(s),Ue.delete(e.instanceId),ho(e.instanceId),mo(e.instanceId),o(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${ms}ms after load: ${e.name||e.componentId}`)))},ms)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),ho(e.instanceId),mo(e.instanceId),o(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function ws(e){var u;const t=ft.get(e);if(t){try{t.api.unmount()}catch{}(u=t.scriptElement)==null||u.remove(),ft.delete(e)}const n=Ue.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),Ue.delete(e)),ar.delete(e);const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}function am(e,t){const n=De(e);if(!n)return!1;const r=gs(n);if(r)return bs(r.api,t);const u=um(n),o=ar.get(u)??[],a=o.findIndex(s=>s.messageId===t.messageId);return a>=0?o[a]=Bu(t):o.push(Bu(t)),ar.set(u,o),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=Mu,window.__fluens_dynamic_component_register=function(e,t){const n=De(e),r=rm(e);if(!r.ok){if(r.reason==="already_active_duplicate")return;nm(n),console.warn(`[DynamicComponent] no pending for register id "${n}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:u,entry:o}=r;ho(u),mo(u),o.postLoadRegisterCheckTimerId!=null&&(clearTimeout(o.postLoadRegisterCheckTimerId),o.postLoadRegisterCheckTimerId=void 0),clearTimeout(o.timeoutId),Ue.delete(u);const a={config:o.config,container:o.container,api:t,scriptElement:document.currentScript};ft.set(u,a),a.container.parentElement;try{t.mount(o.container,o.config)}catch(l){console.error(`Failed to mount dynamic component: ${u}`,l)}const s=[u];n&&n!==u&&s.push(n);for(const l of s){const d=ar.get(l);d&&d.length>0&&(ar.delete(l),d.forEach(f=>bs(t,f)))}o.resolve(t)});const _n=i.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=i.ref("loading"),n=i.ref(""),r=i.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),u=i.computed(()=>e.config.position==="inline"),o=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...u.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&u.value?{padding:"16px 0"}:{},...t.value==="ready"&&!u.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{o.value||(t.value="loading",n.value="",ys(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{o.value||ws(e.config.instanceId)}),()=>o.value?null:i.createVNode("div",{class:"f-chat-dynamic-component-body",style:a.value},[i.createVNode("div",{id:r.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&i.createVNode("div",{class:"f-chat-dynamic-component-loading"},[i.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),i.createVNode("span",null,[i.createTextVNode("加载中......")])]),t.value==="error"&&i.createVNode("div",{class:"f-chat-dynamic-component-error"},[i.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[i.createTextVNode("!")]),i.createVNode("span",null,[n.value])])])}}),xs=(e,t,n)=>{if(e.type===Pe.DynamicComponentComplete){const r=e;if(!r.config)return null;if(r.config.position==="inline")return i.createVNode(_n,{key:`dc-${t}`,config:r.config},null);const u={type:"file",fileContent:{type:"md",name:r.config.title}},o={onPreviewFile:a=>{n.emit("showDynamicComponent",r.config)}};return n.emitDynamicComponentsDetectedOnce(r.config),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(u,o)])}return e.type===Pe.DynamicComponentPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("组件加载中......")])]):null};function sm(){return{[Pe.Text]:uh,[Pe.AssistantWidgetComplete]:hs,[Pe.AssistantWidgetPending]:hs,[Pe.DynamicComponentComplete]:xs,[Pe.DynamicComponentPending]:xs}}const lm=i.defineComponent({name:"FXBubbleTextContent",props:Pc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=Mi(),{propertyStates:r,registerProperty:u,updatePropertyValue:o,startStreaming:a}=jr();u("title",e.title??""),u("subtitle",e.subtitle??""),u("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([y,b,g])=>{o("title",y??""),o("subtitle",b??""),o("text",g??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var y,b,g;return l.value?{title:((y=r.title)==null?void 0:y.displayedValue)??"",subtitle:((b=r.subtitle)==null?void 0:b.displayedValue)??"",text:((g=r.text)==null?void 0:g.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>nd(d.value.text)),c=new Set;function h(y){const b=String(y.instanceId??"").trim();!b||c.has(b)||(c.add(b),i.nextTick(()=>{var g;t.emit("dynamicComponentsDetected",[y]),(g=e.onDynamicComponentsDetected)==null||g.call(e,[y])}))}function p(y,...b){var g;t.emit(y,...b),y==="showDynamicComponent"&&((g=e.onShowDynamicComponent)==null||g.call(e,b[0]))}const m={shouldShowMarkdown:s,emit:p,emitDynamicComponentsDetectedOnce:h,renderFileEmbeddedContent:n},x=sm(),v=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((y,b)=>{var g;return(g=x[y.type])==null?void 0:g.call(x,y,b,m)})]);return i.onMounted(()=>{l.value&&a()}),()=>i.createVNode(i.Fragment,null,[d.value.title&&i.createVNode("div",{class:"f-chat-bubble-content-title"},[d.value.title]),d.value.subtitle&&i.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[d.value.subtitle]),v()])}}),cm={content:{type:Object},outputMode:{type:String,default:"full"}},dm=i.defineComponent({name:"FXBubbleThink",props:cm,setup(e,t){var G;const{propertyStates:n,registerProperty:r,updatePropertyValue:u,isAllDone:o}=jr(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Ko(),c=i.ref(((G=e.content)==null?void 0:G.completed)!==!0),h=i.ref(null),p=i.ref(null),m=i.ref(!1),x=i.ref(!1),v=i.computed(()=>e.outputMode==="streaming"),y=i.computed(()=>{var $;return($=e.content)==null?void 0:$.completed}),b=i.computed(()=>{var M,H;if(y.value){const I=s.value?`(用时${a.value}秒)`:"";return((M=e.content)==null?void 0:M.title)??"思考完成"+I}return((H=e.content)==null?void 0:H.title)??"正在思考......"}),g=i.computed(()=>{var $,M;return v.value?(($=n.content)==null?void 0:$.displayedValue)??"":((M=e.content)==null?void 0:M.content)??""}),w=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!y.value,"is-completed":y.value})),A=()=>{const $=h.value;if(!$||!m.value){x.value=!1;return}x.value=$.scrollTop>0};i.watch(()=>y.value,$=>{$?d():l()},{immediate:!0}),i.watch(()=>y.value,$=>{$&&(c.value=!1)}),i.watch(()=>e.content,$=>{$&&(n.content?u("content",$.content??""):r("content",$.content??""))},{immediate:!0}),i.watch(g,async()=>{if(c.value){await i.nextTick();const $=h.value;if(!$)return;await i.nextTick(),m.value=$.scrollHeight>$.clientHeight,m.value?($.scrollTop=$.scrollHeight,x.value=!0):x.value=!1}},{immediate:!0}),i.watch(c,async $=>{if($){await i.nextTick();const M=h.value;if(!M)return;await i.nextTick(),m.value=M.scrollHeight>M.clientHeight,m.value?(M.scrollTop=M.scrollHeight,x.value=!0):x.value=!1}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(v.value?o.value:!0)&&y.value:!0}}});const N=()=>{c.value=!c.value},F=()=>y.value?null:i.createVNode(tn,{status:"Working",variant:"thinking"},null),_=()=>!g.value||!c.value?null:i.createVNode("div",{class:"f-chat-bubble-thinking-content"},[i.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:h,onScroll:A},[m.value&&x.value&&i.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),i.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[i.createVNode("div",{ref:p,class:"f-chat-bubble-thinking-content-text",innerHTML:g.value},null)])])]);return()=>i.createVNode("div",{class:w.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:N},[F(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:b.value},null),g.value&&i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:c.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null)]),_()])}}),fm={content:{type:Object}},vs={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},theme:{type:String,default:"default"},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function},enableDrag:{type:Boolean,default:!1},renderWhenShown:{type:Boolean,default:!1}};function hm(e){const t=e.host?e.host:"body",n=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),r=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),u=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),o=i.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),a=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:u,hostTop:n,hostWidth:o,hostHeight:a,hostBottom:r}}function mm(e,t,n,r){const u=i.ref(e.offsetX||0),o=i.ref(e.offsetY||0),a=i.ref(-1),s=i.ref(-1),l=i.ref(-1),d=i.ref(-1),f=i.ref(e.placement),c=i.ref(0),h=i.ref(0),p=i.ref(0),m=i.computed(()=>document.documentElement.scrollLeft),x=i.computed(()=>document.documentElement.scrollTop),{hostLeft:v,hostTop:y,hostWidth:b,hostHeight:g,hostBottom:w}=r;i.watch(()=>e.offsetX,L=>{u.value=L});const A=i.computed(()=>{const L={left:`${h.value}px`,top:`${p.value}px`,transform:`translate(${u.value}px, ${o.value}px)`};return e.zIndex!==-1&&(L["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(L.width=`${a.value}px`):a.value!==-1&&(L.width=`${a.value}px`),e.minWidth!==-1&&(L.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(L,e.customStyles),s.value>0&&(L.maxHeight=s.value+"px"),L}),N=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function F(L){if(L&&e.keepWidthWithReference){const R=L.getBoundingClientRect();a.value=Math.max(e.minWidth,R.width)}}function _(L,R){const B=b.value-L.width-4;return B>0?B:R}function G(L,R){const B=g.value-L.height-12;return B>0?B:R}function $(L,R,B){const Q=c.value,re=R.left-v.value+R.width/2+m.value,oe=R.top-y.value-(L.height+B.height)+x.value;return{popoverLeft:re,popoverTop:oe,arrowLeft:Q}}function M(L,R,B){const Q=R.top-y.value+(R.height+B.height)+x.value,re=G(L,Q);return Math.min(Q,re)}function H(L,R){const B=_(R,L),Q=L<=B?c.value:L-B;return{popoverLeft:Math.min(L,B),arrowLeft:Q,maxHeight:0}}function I(L,R){const B=_(R,L),Q=L<=B?c.value:L-B;return{popoverLeft:L,arrowLeft:Q,maxHeight:0}}function X(L,R,B){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=I(Q,L),{popoverTop:ce}=$(L,R,B);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function q(L,R,B){const Q=R.left-v.value+R.width/2-(B.width/2-(L.left-v.value))+m.value,{arrowLeft:re,popoverLeft:oe}=H(Q,L),ce=M(L,R,B);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function D(L,R,B){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=H(Q,L),ce=M(L,R,B);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function j(L,R,B){const Q=R.right-v.value-L.width+m.value,oe=Math.max(Q,4),ce=oe-Q,le=L.width-B.width-20-ce,he=M(L,R,B);return{popoverLeft:oe,popoverTop:he,arrowLeft:le,maxHeight:0}}function z(L,R,B){const Q=R.left-v.value;let re=0,oe=0,ce=0,le=0,he="bottom-left";window.innerWidth-Q>L.width?re=Q+m.value:(re=R.right-L.width+m.value,ce=L.width-B.width-20);let Be=0;if(e.limitContentBySpace){const fn={topHeight:R.top-y.value-B.height-8,bottomHeight:w.value-R.bottom-B.height-8};Be=Math.max(fn.topHeight,fn.bottomHeight),L.height>Be&&(le=Be,n.value.classList.add("popover-limitmax"))}const kt=le?Math.floor(le):L.height,Ge=R.top-y.value+(R.height+B.height);return w.value-Ge>kt?oe=Ge+x.value:(oe=R.top-kt-B.height+x.value,w.value-Ge>R.top?(oe=Ge+x.value,kt>R.top&&(oe=w.value-kt)):(oe=oe<0?0:oe,he="top")),n.value.classList.add("popover-"+he,"bs-popover-"+he),{popoverLeft:re<0?5:re,popoverTop:oe,arrowLeft:ce,maxHeight:le}}function Z(L,R,B){const Q=R.left+R.width,re=0;let oe=0,ce=L.height;if(e.limitContentBySpace){const Rt=g.value-16-Math.abs(o.value);L.height>Rt?(oe=Rt,ce=Rt,n.value.classList.add("popover-limitmax")):n.value.classList.remove("popover-limitmax")}const le=Math.max(R.top-(ce/2-R.height/2),y.value);let he=y.value+g.value-ce-o.value;he<0&&(he=le);const Be=Math.min(le,he);return{popoverLeft:Q,popoverTop:Be,arrowLeft:re,maxHeight:oe}}function ue(L,R,B){const Q=R.left+R.width,re=Math.max(R.top-R.height,y.value);let oe=y.value+g.value-L.height;oe<0&&(oe=re);const ce=Math.min(re,oe);return{popoverLeft:Q,popoverTop:ce,arrowLeft:0,maxHeight:0}}function C(L,R,B){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=R.top-y.value-(L.height+B.height)+x.value,oe=L.width/2-B.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}function S(L,R,B){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=M(L,R,B),oe=L.width/2-B.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}const T=new Map([["top",$],["top-left",X],["top-center",C],["bottom",q],["bottom-left",D],["bottom-right",j],["bottom-center",S],["right",Z],["right-top",ue],["auto",z]]);function O(L){var oe;e.keepWidthWithReference&&F(L);const R=L.getBoundingClientRect();l.value=R.top,d.value=R.left;const B=t.value?t.value.getBoundingClientRect():{height:4,width:4},Q=(oe=n.value)==null?void 0:oe.getBoundingClientRect();a.value=Q.width;const re=T.get(f.value);if(re){const{arrowLeft:ce,popoverLeft:le,popoverTop:he,maxHeight:Be}=re(Q,R,B);c.value=ce,h.value=le,p.value=he,s.value=Be||-1}}function P(L){if(L){const R=L.getBoundingClientRect();(R.left!==d.value||R.top!==l.value)&&O(L)}}function U(){f.value=e.placement,c.value=0,h.value=0,p.value=0,a.value=-1}return{arrowStyle:N,popoverStyle:A,position:f,popoverWidth:a,fitToReference:F,followToReferencePosition:P,locateToReference:O,resetPosition:U}}function pm(e,t,n,r,u,o,a,s){const l=i.ref(e.visible),d=i.computed(()=>l.value),f=i.ref(!1),{fitToReference:c,followToReferencePosition:h,locateToReference:p,resetPosition:m}=a;function x(){f.value=!0}function v(){f.value=!1}i.watch(()=>e.visible,async A=>{A&&e.reference?(s.value||(s.value=!0,await i.nextTick()),await i.nextTick(),g(e.reference)):A||b()},{flush:"post"});let y;async function b(){l.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(l.value=!1,document.body.removeEventListener("click",y),document.body.removeEventListener("mousedown",y),document.body.removeEventListener("wheel",y,!0),document.removeEventListener("scroll",y),e.enableDrag&&(document.removeEventListener("dragstart",x),document.removeEventListener("dragend",v),f.value=!1),m(),t.emit("hidden"),e.renderWhenShown&&(s.value=!1)))}y=A=>{var _;if(f.value||!u.value)return;const N=u.value.contains(A.target);if(A.type==="scroll"||A.type==="wheel"&&N){b();return}if(A.target.closest(".time-picker-panel"))return;const F=(_=A.target)==null?void 0:_.closest(".popover");if(F&&r.value&&F===r.value){A.type!=="scroll"&&A.type!=="wheel"&&A.stopPropagation();return}if(!N&&l.value){const G=u.value.closest(".popover");G&&G.removeEventListener("click",y),b()}};async function g(A){if(e.renderWhenShown&&!s.value&&(s.value=!0,await i.nextTick()),r.value&&(e.showArrow===!1||e.showArrow&&n.value)&&A){m(),l.value=!0,u.value=A,o.value&&c(A),await i.nextTick(),p(A),document.body.addEventListener("click",y),document.body.addEventListener("mousedown",y),document.body.addEventListener("wheel",y,!0),document.addEventListener("scroll",y),e.enableDrag&&(document.addEventListener("dragstart",x),document.addEventListener("dragend",v)),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",y));const N=A.closest(".popover");N&&N.addEventListener("click",y),t.emit("shown")}}function w(){l.value&&u.value&&h(u.value)}return t.expose({hide:b,popoverRef:r,show:g,shown:d,isShow:l,updatePosition:w}),{showPopover:l,hidePopverOnClickBodyHandler:y}}function gm(e,t,n,r,u,o){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=u;function d(){var f;if(o.value&&((f=o.value.style)==null?void 0:f.display)!=="none"&&n.value){l(n.value);const c=n.value.getBoundingClientRect();r.value&&c.width!==a.value&&s(n.value)}}return{onResize:d}}function bm(e,t=500){const n=i.ref(e.value);let r;const u=i.watch(e,a=>{clearTimeout(r),r=setTimeout(()=>{n.value=a},t)}),o=()=>{clearTimeout(r),u()};return i.onUnmounted(o),{delayedValue:n,cleanup:o}}const nn=i.defineComponent({name:"FXPopover",props:vs,emits:["shown","hidden"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(e.reference),o=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=i.ref(!e.renderWhenShown||e.visible),l=hm(e),{host:d}=l,f=mm(e,n,r,l),{position:c,arrowStyle:h,popoverStyle:p,fitToReference:m,locateToReference:x}=f,{showPopover:v,hidePopverOnClickBodyHandler:y}=pm(e,t,n,r,u,o,f,s),{onResize:b}=gm(e,t,u,o,f,r),g=i.computed(()=>{let _=c.value;const G=`popover in popover-${_}`,$=`bs-popover-${_}`,M={"popover-fitcontent":e.fitContent,fade:!0};M[G]=!0,M[$]=!0,e.theme==="dark"&&(M["popover-theme-dark"]=!0);const H=(e.class||"").split(" ");return e.isSimpleTips&&H.unshift("popover-tips"),H.reduce((I,X)=>(I[X]=!0,I),M),M}),w=i.computed(()=>({"popover-content":!0,"popover-body":!0})),A=i.computed(()=>{const _={};return _.opacity=v.value?1:0,_.visibility=v.value?"visible":"hidden",_.zIndex=1060,_}),N=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:F}=bm(A,50);return i.onMounted(()=>{var _;s.value&&(o.value&&m(u.value),e.reference&&x(u.value)),window.addEventListener("resize",b),(_=r.value)==null||_.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",y),window.removeEventListener("resize",b),v.value=!1}),()=>s.value?i.createVNode(i.Teleport,{to:d},{default:()=>{var _;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:r,class:g.value,style:{...p.value,...F.value},onMousedown:G=>{e.enableDrag||G.stopPropagation()},onClick:G=>{G.stopPropagation()}},[N.value&&i.createVNode("div",{ref:n,class:"popover-arrow arrow",style:h.value},null),a.value&&i.createVNode("h3",{class:"popover-title popover-header"},[e.title]),i.createVNode("div",{class:w.value},[t.slots.default&&((_=t.slots)==null?void 0:_.default())])]),[[i.vShow,v.value]])]}}):null}}),go="FarrisX_PopoverInstancesKey";window[go]=window[go]||new WeakMap;function zu(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&!r.value.isShow&&(r.value.show(n),window[go].set(n,r.value))}function ks(e,t,n){e.stopPropagation(),t.value.value.hide(),window[go].delete(n)}function ym(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&(r.value.isShow?ks(e,t,n):zu(e,t,n))}function As(e,t,n){t.arg&&t.arg==="toggle"?ym(e,t,n):zu(e,t,n)}const Cs={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",r=>zu(r,t,e)),e.addEventListener("mouseleave",r=>ks(r,t,e))):t.modifiers.click?e.addEventListener("click",r=>As(r,t,e)):e.addEventListener("click",r=>As(r,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};nn.install=e=>{e.component(nn.name,nn),e.directive("fxpopover",Cs)};const _s={type:{type:String,default:"StartedToDo"},status:{type:String,default:"NotStart"},message:{type:String,default:""},taskDetail:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"hover"},initExpanded:{type:Boolean,default:!1},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},loading:Object,shimmer:{type:Boolean,default:!0},outputMode:{type:String,default:"streaming"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},Es={items:{type:Array,default:()=>[]}},Ss={id:{type:Number||String,default:0},status:{type:String},task:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"expand"},initExpanded:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!1},shimmer:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:String,default:""},outputMode:{type:String,default:"full"}},bo=i.defineComponent({name:"FXTodoListItemView",props:Ss,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:u,startStreaming:o}=jr();r("title",e.title??""),r("task",e.task??""),r("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([p,m,x])=>{u("title",p??""),u("task",m??""),u("detail",x??"")});const a=i.computed(()=>["f-chat-todo-item",{"is-done":e.status==="Done","is-working":e.status==="Working","is-not-start":e.status==="NotStart","no-shimmer":!e.shimmer}]),s=i.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function l(){t("click",e,e.id)}const d=i.computed(()=>e.outputMode==="streaming"),f=i.computed(()=>{var p;return d.value?((p=n.title)==null?void 0:p.displayedValue)??"":e.title??""}),c=i.computed(()=>{var p;return d.value?((p=n.task)==null?void 0:p.displayedValue)??"":e.task??""}),h=i.computed(()=>{var p;return d.value?((p=n.detail)==null?void 0:p.displayedValue)??"":e.message??""});return i.onMounted(()=>{d.value&&o()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(rn,{todoList:e.todoList,status:e.status,message:e.task,taskDetail:e.message,detailViewMode:e.detailViewMode,initExpanded:e.initExpanded,showLoading:e.showLoading,showLabel:e.showLabel,outputMode:e.outputMode},null),!e.todoList||e.todoList.length===0&&i.createVNode(i.Fragment,null,[e.showLoading&&i.createVNode(tn,{status:e.status??"Done",variant:"todo"},null),f.value?i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[f.value]),i.createVNode("div",{class:"f-chat-todo-task-description"},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null]):i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null])])])}}),sr=i.defineComponent({name:"FXTodoListView",props:Es,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?i.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,r)=>i.createVNode(bo,i.mergeProps({key:r},n),null))]):null}}}),wm=300,xm={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},rn=i.defineComponent({name:"FXStartedTodo",props:_s,setup(e){const t=i.ref(null),n=i.ref(null),r=i.ref(null),u=i.ref(null),o=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=Ti(()=>({detail:e.taskDetail??""}),()=>!0,o,{charInterval:30}),s=i.ref(e.initExpanded),l=i.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!s.value}));function d(){e.detailViewMode!=="expand"&&(u.value!=null&&(window.clearTimeout(u.value),u.value=null),r.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),r.value=null},wm))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),u.value=window.setTimeout(()=>{var b,g;(g=(b=n.value)==null?void 0:b.hide)==null||g.call(b),u.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const b=a.value.detail??"";return i.createVNode(i.Fragment,null,[b?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[b]):null,i.createVNode(sr,{items:e.todoList},null)])}function h(){e.detailViewMode==="expand"&&(s.value=!s.value)}function p(){return e.detailViewMode==="expand"?i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:s.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null):null}function m(){return e.detailViewMode==="hover"&&i.createVNode(nn,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{u.value!=null&&(window.clearTimeout(u.value),u.value=null)},onMouseleave:f},[c()])]})}const x=i.computed(()=>e.listStatus==="completed"),v=i.computed(()=>{const b=e.todoList??[],g=e.totalCount??b.length;return{done:e.completedCount??b.filter(A=>(A==null?void 0:A.status)==="Done").length,total:g}});function y(){if(!x.value)return null;const{done:b,total:g}=v.value,w=g>0?`已完成 (${b}/${g})`:"已完成";return i.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":w},[w])}return()=>i.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":x.value}],onMouseenter:d,onMouseleave:f},[i.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:h},[e.showLabel&&i.createVNode("span",{class:"f-chat-started-todo-label"},[xm[e.status]]),i.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),y(),p()]),e.detailViewMode==="expand"&&i.createVNode("div",{class:l.value},[c()]),m()])}});rn.install=e=>{e.component(rn.name,rn)};const vm=i.defineComponent({name:"FXBubbleThoughtChain",props:fm,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:u,stop:o,reset:a}=Ko(),s=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.status)==="Done"}),l=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.message)??"正在思考......"}),d=i.computed(()=>{var p,m;const c=((p=e.content)==null?void 0:p.doneMessage)??((m=e.content)==null?void 0:m.message)??"思考完成",h=r.value?`(用时${n.value}秒)`:"";return""+c+h}),f=i.computed(()=>s.value?d.value:l.value);return i.watch(()=>{var c;return(c=e.content)==null?void 0:c.status},c=>{c==="Working"?u():c==="Done"?o():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,p,m,x,v;return e.content?i.createVNode(rn,{status:((c=e.content)==null?void 0:c.status)??"Working",message:f.value,todoList:(h=e.content)==null?void 0:h.todoList,detailViewMode:((p=e.content)==null?void 0:p.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(m=e.content)==null?void 0:m.listStatus,completedCount:(x=e.content)==null?void 0:x.completedCount,totalCount:(v=e.content)==null?void 0:v.totalCount},null):null}}}),lr=i.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-auth"},[i.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),i.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>i.createVNode("button",{key:t.optionId,type:"button",class:"f-ec-auth-btn",onClick:()=>{var n;(n=e.onConfirm)==null||n.call(e,t.optionId,t.name,t.message??t.name),console.info("[UserAuth]",t.optionId,t.name)}},[t.name]))])])}}),km=300,En=i.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),{getToolIconClass:n}=Qo(),r=i.computed(()=>e.content.success===!1),u=i.ref(!1);let o=setTimeout(()=>{u.value=!0},km);i.onBeforeUnmount(()=>{o&&clearTimeout(o)});const a=i.computed(()=>t.value),s=i.computed(()=>u.value&&!t.value),l=i.computed(()=>r.value?"执行完成":a.value?"执行成功":"调用中"),d=i.ref(!1),f=i.computed(()=>({"f-chat-tool-use":!0,"is-done":a.value,"is-error":r.value})),c=i.computed(()=>({"f-chat-tool-use-status":!0,"is-done":a.value&&!r.value,"is-run":s.value&&!r.value,"is-error":r.value}));i.watch(()=>t.value,(p,m)=>{p&&!m&&(d.value=!1)},{flush:"post"});const h=()=>t.value?i.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>i.createVNode("div",{class:f.value},[i.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{d.value=!d.value}},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(e.content.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),i.createVNode("div",{class:c.value},[r.value?i.createVNode(tn,{status:"Error",variant:"tool-use"},null):i.createVNode(tn,{status:a.value?"Done":s.value?"Working":"NotStart",variant:"tool-use"},null),i.createVNode("span",{class:"f-chat-tool-use-status-text"},[l.value])]),i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:d.value?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"}},null)]),d.value&&i.createVNode("div",{class:"f-chat-tool-use-content"},[h()])])}});En.install=e=>{e.component(En.name,En)};const cr=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":lr,"fx-app-preview-inline":lt,FXToolUse:En},props:Mr,setup(e,t){const n=i.shallowRef(),r=i.ref(),u=i.ref(),o=i.computed(()=>!!e.showAvatar),a=i.computed(()=>o.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var I;return Ee({},(I=e.styles)==null?void 0:I.footer)}),d=I=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(I.type==="md"&&I.content){e.onPreview({content:I.content,contentType:"markdown"});return}if(I!=null&&I.url){const X=I!=null&&I.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:I.url,previewMode:X,title:I.name})}}},f=I=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const X=I==null?void 0:I.filter(D=>D.type==="md"&&D.content);if(X.length===0)return;const q=Object.fromEntries(X.map(D=>[D.name,D.content??""]));e.onPreview({contentMap:q,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=Mi(),p=i.ref(""),m=i.computed(()=>{var X,q;if((X=e.content)!=null&&X.footerContent)return e.content.footerContent;const I=(q=e.content)==null?void 0:q.structuredContent;return I&&(I.footerTemplate||I.footerUrl||I.footerFile)?{type:I.footerUrl?"page":I.footerFile?"file":"template",pageUrl:I.footerUrl,fileContent:I.footerFile,template:I.footerTemplate,width:I.footerWidth,height:I.footerHeight}:null});i.watch(()=>{var I;return(I=m.value)==null?void 0:I.width},I=>{if(!I){p.value="";return}if(I.endsWith("%")){const X=parseFloat(I);isNaN(X)||i.nextTick(()=>{var D,j;const q=(j=(D=n.value)==null?void 0:D.parentElement)==null?void 0:j.clientWidth;q&&(p.value=`${q*X/100}px`)})}else p.value=I},{immediate:!0});const x=I=>{if(!I||I.length===0)return"我";const X=I.charAt(0);return/[\u4e00-\u9fa5]/.test(X)?X:X.toUpperCase()};function v(){return e.header==="ContentHeader"?Dc:Ic}const y=v(),{renderHeader:b}=y(e,t),g=()=>{var q,D,j;const I=((q=e.content)==null?void 0:q.sender)??"发送人",X=x(((D=e.content)==null?void 0:D.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(j=e.content)!=null&&j.avatar?i.createVNode("img",{src:e.content.avatar,alt:I},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[X])])},w=()=>{var X;const I=(X=e.content)==null?void 0:X.toolUseAboveText;return I!=null&&I.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[I.map((q,D)=>i.createVNode(En,{key:q.toolUseId??`tu-${D}`,content:q},null))]):null},A=()=>{var I;return(I=e.content)!=null&&I.thinkingContent?i.createVNode(dm,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},N=()=>{var I;return(I=e.content)!=null&&I.startedTodo?i.createVNode(vm,{ref:u,content:e.content.startedTodo},null):null},F=I=>{if(!(I!=null&&I.type))return null;const{type:X}=I;return X==="page"&&I.pageUrl?h(I,{onNavigate:q=>{var D;(D=e.onPreview)==null||D.call(e,{url:q})}}):X==="file"&&I.fileContent?c(I,{onPreviewFile:d,onBatchPreviewFile:f}):X==="template"&&I.template?I.template():null},_=()=>{var D,j,z;if(!((z=(j=(D=e.content)==null?void 0:D.structuredContent)==null?void 0:j.sections)!=null&&z.length))return null;const{sections:I,showDivider:X}=e.content.structuredContent,q=Z=>{const{content:ue,label:C}=Z;return C||ue&&typeof ue=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),Z.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[Z.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[Z.content])]):F(Z.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":X}]},[I.map((Z,ue)=>i.createVNode("div",{key:ue,class:["f-chat-bubble-structured-section",{"section-divider":Z.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[Z.icon&&(Z.icon.startsWith("http")||Z.icon.startsWith("//")||Z.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(Z.icon)?i.createVNode("img",{alt:Z.title,src:Z.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${Z.icon}`,style:Z.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[Z.title])]),Z.items&&Z.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[Z.items.map((C,S)=>i.createVNode("div",{key:S,class:"f-chat-bubble-structured-section-item"},[q(C)]))])]))])},G=()=>{const I=m.value;if(!I)return null;const X={};return p.value&&(X.width=p.value),I.height&&(X.height=`${I.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:X},[F(I)])},$=()=>{const I=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(Pi,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:I,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},M=()=>{var X;const I=(X=e.content)==null?void 0:X.compositeInlineBlocks;return I!=null&&I.length?I.map((q,D)=>q.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${D}`,content:q.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${D}`,content:q.content,onOpen:e.onPreview},null)):null},H=()=>{var I,X,q,D,j,z;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&b(),$(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(I=e.content)!=null&&I.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[A(),w()]),N(),_(),i.createVNode(lm,{title:((X=e.content)==null?void 0:X.title)??"",subtitle:((q=e.content)==null?void 0:q.subtitle)??"",text:typeof((D=e.content)==null?void 0:D.text)=="string"?e.content.text:"",textFormat:((j=e.content)==null?void 0:j.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),G(),(z=e.compositeTailRender)==null?void 0:z.call(e),M()]),s.value&&i.createVNode("div",{class:"f-chat-bubble-footer",style:l.value},[t.slots.leftFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>i.createVNode("div",{class:"f-chat-bubble-container",ref:n},[i.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?i.createVNode(i.Fragment,null,[o.value&&g(),H()]):i.createVNode(i.Fragment,null,[H(),o.value&&g()])])])}}),Ns={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},ju=i.defineComponent({name:"FXBubbleAction",props:Ns,setup(e,t){const n=i.computed(()=>Ee({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});cr.install=e=>{e.component(cr.name,cr),e.component(ju.name,ju)};const Fs={items:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},direction:{type:String,default:"horizontal"},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:3e3},loop:{type:Boolean,default:!0},trigger:{type:String,default:"click"},indicatorPosition:{type:String,default:"inside"},arrowVisibility:{type:String,default:"hover"},showIndicator:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},height:{type:[String,Number],default:"400px"},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[String,Array,Object],default:""},customStyle:{type:[Object,String],default:""},buttonPosition:{type:String,default:"inner"}},Ts={item:{type:Object,default:()=>({})},index:{type:Number,default:0},active:{type:Boolean,default:!1},showInfo:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},yo=i.defineComponent({name:"FXCarouselItem",props:Ts,emits:["click"],setup(e,{slots:t,emit:n}){const r=i.computed(()=>{var c;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return ke(f,(c=e.classNames)==null?void 0:c.item)}),u=i.computed(()=>{var c,h;const f=Ee({},(c=e.styles)==null?void 0:c.item);return Ee(f,(h=e.styles)==null?void 0:h.item)}),o=()=>{var f,c,h;return e.item.image?i.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(c=e.styles)==null?void 0:c.image,src:e.item.image,alt:(h=e.item.title)==null?void 0:h.toString()},null):null},a=()=>{var f,c,h,p;return e.item.content?i.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(c=e.styles)==null?void 0:c.content},[e.item.content]):t.default?i.createVNode("div",{class:["fx-carousel--item-content",(h=e.classNames)==null?void 0:h.content],style:(p=e.styles)==null?void 0:p.content},[t.default()]):null},s=()=>{var f,c;return e.item.title?i.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[e.item.title]):null},l=()=>{var f,c;return e.item.description?i.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>i.createVNode("div",{class:r.value,style:u.value,onClick:d},[o(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function Am(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:u=!0,direction:o="horizontal"}=e,a=i.ref(0),s=i.ref(!1),l=i.ref(null),d=i.computed(()=>t.length),f=i.computed(()=>d.value<=1);i.computed(()=>a.value===0?u?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?u?0:a.value:a.value+1);const c=i.computed(()=>{const g=-a.value*100;return{transform:o==="horizontal"?`translateX(${g}%)`:`translateY(${g}%)`,transition:"transform 0.5s ease"}}),h=g=>{g<0||g>=d.value||(a.value,a.value=g)},p=()=>{f.value||(a.value===d.value-1?h(u?0:a.value):h(a.value+1))},m=()=>{f.value||(a.value===0?h(u?d.value-1:0):h(a.value-1))},x=()=>{!n||f.value||(v(),l.value=window.setInterval(()=>{s.value||p()},r))},v=()=>{l.value&&(clearInterval(l.value),l.value=null)},y=()=>{s.value=!0,n&&v()},b=()=>{s.value=!1,n&&x()};return i.onMounted(()=>{x()}),i.onUnmounted(()=>{v()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:p,prev:m,handleMouseEnter:y,handleMouseLeave:b}}const dr=i.defineComponent({name:"FXCarousel",props:Fs,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:u,trackStyle:o,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=Am({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),c=A=>{n("update:modelValue",A),n("change",A,r.value)},h=i.computed(()=>{var N;const A={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":u.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return ke(A,(N=e.classNames)==null?void 0:N.root)}),p=i.computed(()=>{var F;const A={height:typeof e.height=="number"?`${e.height}px`:e.height},N=Ee(A,e.customStyle);return Ee(N,(F=e.styles)==null?void 0:F.root)}),m=i.computed(()=>{var N;const A={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return ke(A,(N=e.classNames)==null?void 0:N.container)}),x=i.computed(()=>{var N;return ke({"fx-carousel--track":!0},(N=e.classNames)==null?void 0:N.track)}),v=i.computed(()=>{var N;const A={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return ke(A,(N=e.classNames)==null?void 0:N.indicator)}),y=A=>{var F,_;const N={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":A==="left","fx-carousel--arrow-right":A==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return N[`fx-carousel--arrow-${e.buttonPosition}`]=!0,ke(N,A==="left"?(F=e.classNames)==null?void 0:F.arrowLeft:(_=e.classNames)==null?void 0:_.arrowRight)},b=A=>{var _,G;if(u.value)return null;const N=A==="left"?l:s,F=t[A==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:y(A),style:A==="left"?(_=e.styles)==null?void 0:_.arrowLeft:(G=e.styles)==null?void 0:G.arrowRight,onClick:N,"aria-label":`${A} arrow`},[F?F():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${A==="left"?"left":"right"}`},null)])},g=()=>{var A;return u.value||!e.showIndicator?null:i.createVNode("div",{class:v.value,style:(A=e.styles)==null?void 0:A.indicator},[e.items.map((N,F)=>{var _,G;return i.createVNode("button",{"aria-label":`indicator ${F}`,key:F,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":F===r.value}],style:F===r.value?(_=e.styles)==null?void 0:_.indicatorItemActive:(G=e.styles)==null?void 0:G.indicatorItem,onClick:()=>{a(F),c(F)}},null)})])},w=()=>i.createVNode("div",{class:x.value,style:o.value},[e.items.map((A,N)=>i.createVNode(yo,{key:A.id||`item_${N}`,item:A,showInfo:e.showInfo,index:N,active:N===r.value,styles:e.styles,classNames:e.classNames,onClick:(F,_,G)=>{n("item-click",F,_,G)}},{default:()=>{var F,_;return[(F=t.item)==null?void 0:F.call(t,{item:A,index:N,active:N===r.value}),(_=t[`item${N}`])==null?void 0:_.call(t,{item:A,index:N,active:N===r.value})]}}))]);return()=>{var A;return i.createVNode("div",{class:h.value,style:p.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&b("left"),i.createVNode("div",{class:m.value,style:(A=e.styles)==null?void 0:A.container},[e.buttonPosition==="inner"&&b("left"),w(),e.buttonPosition==="inner"&&b("right")]),e.buttonPosition==="outer"&&b("right"),g()])}}});dr.install=e=>{e.component(dr.name,dr),e.component(yo.name,yo)};const Ds={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function Cm(e){const t=i.ref(-1),n=i.ref(-1),r=i.ref(0),u=i.ref(0),o=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:o.value?"block":"none",left:`${r.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${u.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const v={display:a.value||o.value?"block":"none"};return u.value>0&&(v.cursor="n-resize"),v});function f(v,y,b,g){const w=e.value;if(w){const{left:A,right:N,width:F}=w.getBoundingClientRect();let _=v.clientX-A;g==="right"&&(_=N-v.clientX),_>y&&(_=y),_<b&&(_=b),g==="right"&&(_=F-_),r.value=_}}function c(v,y,b,g){const w=e.value;if(w){const{top:A,bottom:N,height:F}=w.getBoundingClientRect();let _=v.clientY-A;g==="bottom"&&(_=N-v.clientY),_>y&&(_=y),_<b&&(_=b),g==="bottom"&&(_=F-_),u.value=_}}function h(){const v=e.value;if(v){const{width:y,height:b}=v.getBoundingClientRect();return{width:y,height:b}}return null}function p(){const v=e.value;return v?Array.from(v.querySelectorAll("[data-position]")).reduce((y,b)=>{const g=b.getAttribute("data-position");return y=Object.assign(y,{[g]:b}),y},{}):null}function m(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.right,A=g==null?void 0:g.left;if(v==="left"&&A)return w?b.width-w.clientWidth-y:b.width-y;if(v==="right"&&w)return A?b.width-A.clientWidth-y:b.width-y}}function x(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.bottom,A=g==null?void 0:g.top;if(v==="top"&&A)return w?b.height-w.clientHeight-y:b.height-y;if(v==="bottom"&&w)return A?b.height-A.clientHeight-y:b.height-y}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:o,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:u,horizontalResizeHandleOffset:r,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:m,getPanelMaxHeight:x}}const Sn=i.defineComponent({name:"FXSplitter",props:Ds,emits:[],setup(e,t){const n=i.ref(),r=Cm(n),{horizontalResizeHandleStyle:u,verticalResizeHandleStyle:o,resizeOverlayStyle:a}=r;i.provide("splitter",{useResizeHandleComposition:r});const s=i.computed(()=>ke({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ee(d,e==null?void 0:e.customStyle)});return()=>i.createVNode("div",{class:s.value,ref:n,style:l.value},[t.slots.default&&t.slots.default(),i.createVNode("div",{class:"f-splitter-resize-overlay",style:a.value},null),i.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:u.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:o.value},null)])}}),_m={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function Em(e,t){const n=i.ref(e.width),r=i.ref(e.height),{horizontalResizeBarPosition:u,horizontalResizeHandleOffset:o,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:p}=t;let m="",x,v,y;const b=()=>e.maxWidth?e.maxWidth:h(m,e.minWidth)||0,g=()=>e.maxHeight?e.maxHeight:p(m,e.minHeight)||0;function w(F){if((m==="left"||m==="right")&&v){const{left:_}=v.getBoundingClientRect(),{width:G}=x.getBoundingClientRect(),$=F.clientX-_;let M=m==="left"?(G||0)+($-u.value):(G||0)-($-u.value);M=e.minWidth>0?Math.max(e.minWidth,M):M;const H=b();H!=null&&H>0&&(M=H>M?M:H),n.value=M}if((m==="top"||m==="bottom")&&v){const{top:_}=v.getBoundingClientRect(),{height:G}=x.getBoundingClientRect(),$=F.clientY-_;let M=m==="top"?(G||0)+($-l.value):(G||0)-($-l.value);M=e.minHeight>0?Math.max(e.minHeight,M):M;const H=g();H!=null&&H>0&&(M=H>M?M:H),r.value=M}o.value=0,d.value=0,u.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.body.style.userSelect="",m="",x=null,v=null}function A(F,_,G){if(m=_,x=G,a.value=!0,v=F.composedPath().find(M=>M.className.split(" ")[0]==="f-splitter"),v){const{left:M}=v.getBoundingClientRect();o.value=F.clientX-M,u.value=F.clientX-M;const H=b();y=I=>f(I,H,e.minWidth,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}function N(F,_,G){if(m=_,x=G,s.value=!0,v=F.composedPath().find(M=>M.className.split(" ")[0]==="f-splitter"),v){const{top:M}=v.getBoundingClientRect();d.value=F.clientY-M,l.value=F.clientY-M;const H=g();y=I=>c(I,H,e.minHeight,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:r,onClickSplitterHorizontalResizeBar:A,onClickSplitterVerticalResizeBar:N}}const fr=i.defineComponent({name:"FSplitterPane",props:_m,emits:[],setup(e,t){const n=i.ref(),r=i.inject("splitter"),{useResizeHandleComposition:u}=r,o=Em(e,u),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=o,f=i.ref(e.position),c=i.computed(()=>{const g={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return g["f-splitter-pane-"+f.value]=!0,ke(g,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(g=>["e","n","s","w"].find(w=>w===g)):[]),p=i.computed(()=>{const g={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(w=>w==="e")||h.value.find(w=>w==="w"))&&(g.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||h.value.find(w=>w==="s")||h.value.find(w=>w==="n"))&&(g.height=`${a.value}px`),e.visible||(g.display="none"),Ee(g,e==null?void 0:e.customStyle)}),m=i.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":f.value==="left","f-splitter-resize-bar-n":f.value==="bottom","f-splitter-resize-bar-s":f.value==="top","f-splitter-resize-bar-w":f.value==="right"}));function x(g){return{e:"left",w:"right",s:"top",n:"bottom"}[g]||g}function v(g,w){w=x(w),["left","right"].find(A=>A===w)&&l(g,w,n.value),["top","bottom"].find(A=>A===w)&&d(g,w,n.value)}function y(){return h.value.length>0?h.value.map(g=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+g,onMousedown:w=>v(w,g)},null)):i.createVNode("span",{class:m.value,onMousedown:g=>v(g,f.value)},null)}function b(){s.value=e.width,a.value=e.height,p.value}return t.expose({reset:b}),()=>i.createVNode("div",{ref:n,class:c.value,style:p.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&y()])}});Sn.install=e=>{e.component(Sn.name,Sn),e.component(fr.name,fr)};const Is={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},Os={content:{type:String,default:null}},Sm=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},Nm=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},hr=(e,t=new WeakMap)=>{if(e===null||Sm(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return Nm(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const r=new Map;return t.set(e,r),e.forEach((u,o)=>{r.set(o,hr(u,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const u of e)r.add(hr(u,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(u=>{r.push(hr(u,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=hr(e[r],t));return n},Fm=(e,t=200)=>{let n=0;return(...r)=>new Promise(u=>{n&&(clearTimeout(n),u("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,u("done")},t)})},Hu=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,wo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Tm=new Set(["__proto__","constructor","prototype"]),Dm=e=>!Tm.has(e),$u=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return Uu(e,t,n);const{excludeKeys:r}=n,u=e,o=t;for(const a of Object.keys(o)){if(!Dm(a))continue;const s=o[a],l=u[a];r&&r(a)?u[a]=s:Array.isArray(s)&&Array.isArray(l)?u[a]=Uu(l,s,n):wo(s)&&wo(l)?u[a]=$u(l,s,n):u[a]=s}return e},Uu=(e,t,n)=>{const r=e.slice();return t.forEach((u,o)=>{const a=r[o];Array.isArray(u)&&Array.isArray(a)?r[o]=Uu(a,u,n):wo(u)&&wo(a)?r[o]=$u(a,u,n):r[o]=u}),r},K="md-editor",pe="https://unpkg.com",Im=`${pe}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ls={main:`${pe}/prettier@3.8.1/standalone.js`,markdown:`${pe}/prettier@3.8.1/plugins/markdown.js`},Om={css:`${pe}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${pe}/cropperjs@1.6.2/dist/cropper.min.js`},Lm=`${pe}/screenfull@5.2.0/dist/screenfull.js`,Vm=`${pe}/mermaid@11.12.3/dist/mermaid.min.js`,Pm={js:`${pe}/katex@0.16.33/dist/katex.min.js`,css:`${pe}/katex@0.16.33/dist/katex.min.css`},Wu={a11y:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Rm=`${pe}/echarts@6.0.0/dist/echarts.min.js`,Vs={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},ht={editorExtensions:{highlight:{js:Im,css:Wu},prettier:{standaloneJs:Ls.main,parserMarkdownJs:Ls.markdown},cropper:{...Om},screenfull:{js:Lm},mermaid:{js:Vm,enableZoom:!0},katex:{...Pm},echarts:{js:Rm}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},Mm=({instance:e,ctx:t,props:n={}},r="default")=>{const u=(e==null?void 0:e.$slots[r])||(t==null?void 0:t.slots[r]);return(u?u(e):"")||n[r]},Bm="buildFinished",Xu="errorCatcher",Gu="catalogChanged",zm="pushCatalog",Ps="rerender",jm="taskStateChanged";class Hm{constructor(){ge(this,"pools",{})}remove(t,n,r){const u=this.pools[t]&&this.pools[t][n];u&&(this.pools[t][n]=u.filter(o=>o!==r))}clear(t){this.pools[t]={}}on(t,n){return this.pools[t]||(this.pools[t]={}),this.pools[t][n.name]||(this.pools[t][n.name]=[]),this.pools[t][n.name].push(n.callback),this.pools[t][n.name].includes(n.callback)}emit(t,n,...r){this.pools[t]||(this.pools[t]={});const u=this.pools[t][n];u&&u.forEach(o=>{try{o(...r)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const at=new Hm,$m=(e,t)=>{if(!e)return e;const n=t.split(`
|
|
35
|
-
`),r=['<span rn-wrapper aria-hidden="true">'];return n.forEach(()=>{r.push("<span></span>")}),r.push("</span>"),`<span class="${K}-code-block">${e}</span>${r.join("")}`};async function Rs(e){if(typeof e=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");let n=!1;if(t.value=e,t.style.position="fixed",t.style.opacity=0,t.style.zIndex="-10000",t.style.top="-10000",document.body.appendChild(t),t.select(),n=document.execCommand("copy"),document.body.removeChild(t),n)return;throw new Error('Failed to copy content via "execCommand"!')}}}const Um={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${K}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${K}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${K}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${K}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${K}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},Dt=(e,t)=>typeof t[e]=="string"?t[e]:Um[e],Xt=(e,t,n="")=>{var u;const r=document.getElementById(t.id);if(r)n!==""&&(Reflect.get(window,n)?(u=t.onload)==null||u.call(r,new Event("load")):t.onload&&r.addEventListener("load",t.onload));else{const o={...t};o.onload=null;const a=Xm(e,o);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},Wm=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Xt(e,t)},Xm=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},Gm=(e,t)=>{const n=new Map;return e==null||e.forEach(r=>{let u=r.querySelector(`.${K}-mermaid-action`);u?u.querySelector(`.${K}-mermaid-copy`)||u.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-copy">${Dt("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-copy">${Dt("copy",t.customIcon)}</span></div>`),u=r.querySelector(`.${K}-mermaid-action`));const o=u.querySelector(`.${K}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),Rs(r.dataset.content||"").then(()=>{o.innerHTML=Dt("check",t.customIcon)}).catch(()=>{o.innerHTML=Dt("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{o.innerHTML=Dt("copy",t.customIcon)},1500)})};o.addEventListener("click",s),n.set(r,{removeClick:()=>{o.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:r})=>{r==null||r()}),n.clear()}},qm=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,u=0,o=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${u}px, ${o}px) scale(${r})`},h=w=>{w.touches.length===1?(a=!0,s=w.touches[0].clientX-u,l=w.touches[0].clientY-o):w.touches.length===2&&(d=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY),f=r)},p=w=>{if(w.preventDefault(),a&&w.touches.length===1)u=w.touches[0].clientX-s,o=w.touches[0].clientY-l,c();else if(w.touches.length===2){const A=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)/d,N=r;r=f*(1+(A-1));const F=(w.touches[0].clientX+w.touches[1].clientX)/2,_=(w.touches[0].clientY+w.touches[1].clientY)/2,G=n.getBoundingClientRect(),$=(F-G.left)/N,M=(_-G.top)/N;u-=$*(r-N),o-=M*(r-N),c()}},m=()=>{a=!1},x=w=>{w.preventDefault();const A=.02,N=r;w.deltaY<0?r+=A:r=Math.max(.1,r-A);const F=n.getBoundingClientRect(),_=w.clientX-F.left,G=w.clientY-F.top;u-=_/N*(r-N),o-=G/N*(r-N),c()},v=w=>{a=!0,s=w.clientX-u,l=w.clientY-o},y=w=>{a&&(u=w.clientX-s,o=w.clientY-l,c())},b=()=>{a=!1},g=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",m),t.addEventListener("wheel",x,{passive:!1}),t.addEventListener("mousedown",v),t.addEventListener("mousemove",y),t.addEventListener("mouseup",b),t.addEventListener("mouseleave",g),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",m),t.removeEventListener("wheel",x),t.removeEventListener("mousedown",v),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",b),t.removeEventListener("mouseleave",g)}};return(t,n)=>{const r=new Map;return t==null||t.forEach(u=>{let o=u.querySelector(`.${K}-mermaid-action`);o?o.querySelector(`.${K}-mermaid-zoom`)||o.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-zoom">${Dt("pin-off",n.customIcon)}</span>`):(u.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-zoom">${Dt("pin-off",n.customIcon)}</span></div>`),o=u.querySelector(`.${K}-mermaid-action`));const a=o.querySelector(`.${K}-mermaid-zoom`),s=()=>{const l=r.get(u);if(l!=null&&l.removeEvent)l.removeEvent(),u.removeAttribute("data-grab"),r.set(u,{removeClick:l.removeClick}),a.innerHTML=Dt("pin-off",n.customIcon);else{const d=e(u);u.setAttribute("data-grab",""),r.set(u,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=Dt("pin",n.customIcon)}};a.addEventListener("click",s),r.set(u,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:u,removeClick:o})=>{u==null||u(),o==null||o()}),r.clear()}}})(),Ms=new Set([!0,!1,"alt","title"]);function Bs(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function zs(e,t){e&&e.attrs&&(e.attrs=Bs(e.attrs,t))}function Zm(e,t){if(!Ms.has(e))throw new TypeError(`figcaption must be one of: ${[...Ms]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(zs(t,"title"),n[1]):void 0}function Ym(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let u=1,o=n.tokens.length;u<o-1;++u){const a=n.tokens[u];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[d,f,c]=a.children;if(d.type!=="link_open"||f.type!=="image"||c.type!=="link_close")continue}if(u!==0&&n.tokens[u-1].type!=="paragraph_open"||u!==o-1&&n.tokens[u+1].type!=="paragraph_close")continue;const s=n.tokens[u-1];let l;if(s.type="figure_open",s.tag="figure",n.tokens[u+1].type="figure_close",n.tokens[u+1].tag="figure",t.dataType&&n.tokens[u-1].attrPush(["data-type","image"]),t.link&&a.children.length===1){[l]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",l.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=Zm(t.figcaption,l);if(d){const[f]=e.parseInline(d,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...f.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=Bs(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=l.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[u-1].attrPush(["tabindex",r]),r++),t.lazy&&(l.attrs.some(([d])=>d==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([d])=>d==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,c=l.attrs.length;f<c&&!d;f++){const h=l.attrs[f];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,d=!0)}d||l.attrs.push(["class",t.classes])}if(t.removeSrc){const d=l.attrs.find(([f])=>f==="src");l.attrs.push(["data-src",d[1]]),zs(l,"src")}}})}const Km=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Qm(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 u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const a=e.push("sub_open","sub",1);a.markup="~";const s=e.push("text","",0);s.content=o.replace(Km,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Jm(e){e.inline.ruler.after("emphasis","sub",Qm)}const ep=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function tp(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 u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const a=e.push("sup_open","sup",1);a.markup="^";const s=e.push("text","",0);s.content=o.replace(ep,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function np(e){e.inline.ruler.after("emphasis","sup",tp)}var rp=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,js=new Set,qu=typeof process=="object"&&process?process:{},Hs=(e,t,n,r)=>{typeof qu.emitWarning=="function"?qu.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},xo=globalThis.AbortController,$s=globalThis.AbortSignal;if(typeof xo>"u"){$s=class{constructor(){ge(this,"onabort");ge(this,"_onabort",[]);ge(this,"reason");ge(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},xo=class{constructor(){ge(this,"signal",new $s);t()}abort(n){var r,u;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let o of this.signal._onabort)o(n);(u=(r=this.signal).onabort)==null||u.call(r,n)}}};let e=((Jl=qu.env)==null?void 0:Jl.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,Hs("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var op=e=>!js.has(e),Gt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Us=e=>Gt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?vo:null:null,vo=class extends Array{constructor(t){super(t),this.fill(0)}},up=(It=class{constructor(t,n){ge(this,"heap");ge(this,"length");if(!k(It,On))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=Us(t);if(!n)return[];ne(It,On,!0);let r=new It(t,n);return ne(It,On,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},On=new WeakMap,se(It,On,!1),It),ip=(Mn=class{constructor(t){se(this,Y);se(this,st);se(this,tt);se(this,mt);se(this,ln);se(this,pt);se(this,Ln);se(this,Vn);se(this,gt);ge(this,"ttl");ge(this,"ttlResolution");ge(this,"ttlAutopurge");ge(this,"updateAgeOnGet");ge(this,"updateAgeOnHas");ge(this,"allowStale");ge(this,"noDisposeOnSet");ge(this,"noUpdateTTL");ge(this,"maxEntrySize");ge(this,"sizeCalculation");ge(this,"noDeleteOnFetchRejection");ge(this,"noDeleteOnStaleGet");ge(this,"allowStaleOnFetchAbort");ge(this,"allowStaleOnFetchRejection");ge(this,"ignoreFetchAbort");se(this,Se);se(this,bt);se(this,Ce);se(this,be);se(this,ie);se(this,We);se(this,nt);se(this,Me);se(this,Ie);se(this,yt);se(this,Oe);se(this,wt);se(this,xt);se(this,rt);se(this,ot);se(this,vt);se(this,Kt);se(this,Xe);se(this,Pn);se(this,cn,()=>{});se(this,Pt,()=>{});se(this,Or,()=>{});se(this,ut,()=>!1);se(this,dn,t=>{});se(this,Rn,(t,n,r)=>{});se(this,Lr,(t,n,r,u)=>{if(r||u)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});ge(this,ec,"LRUCache");let{max:n=0,ttl:r,ttlResolution:u=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:p,maxSize:m=0,maxEntrySize:x=0,sizeCalculation:v,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:N,ignoreFetchAbort:F,perf:_}=t;if(_!==void 0&&typeof(_==null?void 0:_.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ne(this,gt,_??rp),n!==0&&!Gt(n))throw new TypeError("max option must be a nonnegative integer");let G=n?Us(n):Array;if(!G)throw new Error("invalid max value: "+n);if(ne(this,st,n),ne(this,tt,m),this.maxEntrySize=x||k(this,tt),this.sizeCalculation=v,this.sizeCalculation){if(!k(this,tt)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(ne(this,Vn,b),y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(ne(this,Ln,y),ne(this,Kt,!!y),ne(this,Ce,new Map),ne(this,be,new Array(n).fill(void 0)),ne(this,ie,new Array(n).fill(void 0)),ne(this,We,new G(n)),ne(this,nt,new G(n)),ne(this,Me,0),ne(this,Ie,0),ne(this,yt,up.create(n)),ne(this,Se,0),ne(this,bt,0),typeof d=="function"&&ne(this,mt,d),typeof f=="function"&&ne(this,ln,f),typeof c=="function"?(ne(this,pt,c),ne(this,Oe,[])):(ne(this,pt,void 0),ne(this,Oe,void 0)),ne(this,vt,!!k(this,mt)),ne(this,Pn,!!k(this,ln)),ne(this,Xe,!!k(this,pt)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(k(this,tt)!==0&&!Gt(k(this,tt)))throw new TypeError("maxSize must be a positive integer if specified");if(!Gt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");J(this,Y,xc).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Gt(u)||u===0?u:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!Gt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");J(this,Y,ki).call(this)}if(k(this,st)===0&&this.ttl===0&&k(this,tt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!k(this,st)&&!k(this,tt)){let $="LRU_CACHE_UNBOUNDED";op($)&&(js.add($),Hs("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",$,Mn))}}get perf(){return k(this,gt)}static unsafeExposeInternals(t){return{starts:k(t,xt),ttls:k(t,rt),autopurgeTimers:k(t,ot),sizes:k(t,wt),keyMap:k(t,Ce),keyList:k(t,be),valList:k(t,ie),next:k(t,We),prev:k(t,nt),get head(){return k(t,Me)},get tail(){return k(t,Ie)},free:k(t,yt),isBackgroundFetch:n=>{var r;return J(r=t,Y,ye).call(r,n)},backgroundFetch:(n,r,u,o)=>{var a;return J(a=t,Y,qo).call(a,n,r,u,o)},moveToTail:n=>{var r;return J(r=t,Y,Rr).call(r,n)},indexes:n=>{var r;return J(r=t,Y,Qt).call(r,n)},rindexes:n=>{var r;return J(r=t,Y,Jt).call(r,n)},isStale:n=>{var r;return k(r=t,ut).call(r,n)}}}get max(){return k(this,st)}get maxSize(){return k(this,tt)}get calculatedSize(){return k(this,bt)}get size(){return k(this,Se)}get fetchMethod(){return k(this,Ln)}get memoMethod(){return k(this,Vn)}get dispose(){return k(this,mt)}get onInsert(){return k(this,ln)}get disposeAfter(){return k(this,pt)}getRemainingTTL(t){return k(this,Ce).has(t)?1/0:0}*entries(){for(let t of J(this,Y,Qt).call(this))k(this,ie)[t]!==void 0&&k(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield[k(this,be)[t],k(this,ie)[t]])}*rentries(){for(let t of J(this,Y,Jt).call(this))k(this,ie)[t]!==void 0&&k(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield[k(this,be)[t],k(this,ie)[t]])}*keys(){for(let t of J(this,Y,Qt).call(this)){let n=k(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield n)}}*rkeys(){for(let t of J(this,Y,Jt).call(this)){let n=k(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield n)}}*values(){for(let t of J(this,Y,Qt).call(this))k(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield k(this,ie)[t])}*rvalues(){for(let t of J(this,Y,Jt).call(this))k(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,k(this,ie)[t])&&(yield k(this,ie)[t])}[(tc=Symbol.iterator,ec=Symbol.toStringTag,tc)](){return this.entries()}find(t,n={}){for(let r of J(this,Y,Qt).call(this)){let u=k(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o!==void 0&&t(o,k(this,be)[r],this))return this.get(k(this,be)[r],n)}}forEach(t,n=this){for(let r of J(this,Y,Qt).call(this)){let u=k(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,k(this,be)[r],this)}}rforEach(t,n=this){for(let r of J(this,Y,Jt).call(this)){let u=k(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,k(this,be)[r],this)}}purgeStale(){let t=!1;for(let n of J(this,Y,Jt).call(this,{allowStale:!0}))k(this,ut).call(this,n)&&(J(this,Y,en).call(this,k(this,be)[n],"expire"),t=!0);return t}info(t){let n=k(this,Ce).get(t);if(n===void 0)return;let r=k(this,ie)[n],u=J(this,Y,ye).call(this,r)?r.__staleWhileFetching:r;if(u===void 0)return;let o={value:u};if(k(this,rt)&&k(this,xt)){let a=k(this,rt)[n],s=k(this,xt)[n];if(a&&s){let l=a-(k(this,gt).now()-s);o.ttl=l,o.start=Date.now()}}return k(this,wt)&&(o.size=k(this,wt)[n]),o}dump(){let t=[];for(let n of J(this,Y,Qt).call(this,{allowStale:!0})){let r=k(this,be)[n],u=k(this,ie)[n],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o===void 0||r===void 0)continue;let a={value:o};if(k(this,rt)&&k(this,xt)){a.ttl=k(this,rt)[n];let s=k(this,gt).now()-k(this,xt)[n];a.start=Math.floor(Date.now()-s)}k(this,wt)&&(a.size=k(this,wt)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let u=Date.now()-r.start;r.start=k(this,gt).now()-u}this.set(n,r.value,r)}}set(t,n,r={}){var h,p,m,x,v,y,b;if(n===void 0)return this.delete(t),this;let{ttl:u=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=k(this,Lr).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),J(this,Y,en).call(this,t,"set"),this;let c=k(this,Se)===0?void 0:k(this,Ce).get(t);if(c===void 0)c=k(this,Se)===0?k(this,Ie):k(this,yt).length!==0?k(this,yt).pop():k(this,Se)===k(this,st)?J(this,Y,Go).call(this,!1):k(this,Se),k(this,be)[c]=t,k(this,ie)[c]=n,k(this,Ce).set(t,c),k(this,We)[k(this,Ie)]=c,k(this,nt)[c]=k(this,Ie),ne(this,Ie,c),Xo(this,Se)._++,k(this,Rn).call(this,c,f,l),l&&(l.set="add"),d=!1,k(this,Pn)&&((h=k(this,ln))==null||h.call(this,n,t,"add"));else{J(this,Y,Rr).call(this,c);let g=k(this,ie)[c];if(n!==g){if(k(this,Kt)&&J(this,Y,ye).call(this,g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=g;w!==void 0&&!a&&(k(this,vt)&&((p=k(this,mt))==null||p.call(this,w,t,"set")),k(this,Xe)&&((m=k(this,Oe))==null||m.push([w,t,"set"])))}else a||(k(this,vt)&&((x=k(this,mt))==null||x.call(this,g,t,"set")),k(this,Xe)&&((v=k(this,Oe))==null||v.push([g,t,"set"])));if(k(this,dn).call(this,c),k(this,Rn).call(this,c,f,l),k(this,ie)[c]=n,l){l.set="replace";let w=g&&J(this,Y,ye).call(this,g)?g.__staleWhileFetching:g;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update");k(this,Pn)&&((y=this.onInsert)==null||y.call(this,n,t,n===g?"update":"replace"))}if(u!==0&&!k(this,rt)&&J(this,Y,ki).call(this),k(this,rt)&&(d||k(this,Or).call(this,c,u,o),l&&k(this,Pt).call(this,l,c)),!a&&k(this,Xe)&&k(this,Oe)){let g=k(this,Oe),w;for(;w=g==null?void 0:g.shift();)(b=k(this,pt))==null||b.call(this,...w)}return this}pop(){var t;try{for(;k(this,Se);){let n=k(this,ie)[k(this,Me)];if(J(this,Y,Go).call(this,!0),J(this,Y,ye).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(k(this,Xe)&&k(this,Oe)){let n=k(this,Oe),r;for(;r=n==null?void 0:n.shift();)(t=k(this,pt))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:u}=n,o=k(this,Ce).get(t);if(o!==void 0){let a=k(this,ie)[o];if(J(this,Y,ye).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(k(this,ut).call(this,o))u&&(u.has="stale",k(this,Pt).call(this,u,o));else return r&&k(this,cn).call(this,o),u&&(u.has="hit",k(this,Pt).call(this,u,o)),!0}else u&&(u.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,u=k(this,Ce).get(t);if(u===void 0||!r&&k(this,ut).call(this,u))return;let o=k(this,ie)[u];return J(this,Y,ye).call(this,o)?o.__staleWhileFetching:o}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:x,forceRefresh:v=!1,status:y,signal:b}=n;if(!k(this,Kt))return y&&(y.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,status:y});let g={allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:b},w=k(this,Ce).get(t);if(w===void 0){y&&(y.fetch="miss");let A=J(this,Y,qo).call(this,t,w,g,x);return A.__returned=A}else{let A=k(this,ie)[w];if(J(this,Y,ye).call(this,A)){let G=r&&A.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",G&&(y.returnedStale=!0)),G?A.__staleWhileFetching:A.__returned=A}let N=k(this,ut).call(this,w);if(!v&&!N)return y&&(y.fetch="hit"),J(this,Y,Rr).call(this,w),u&&k(this,cn).call(this,w),y&&k(this,Pt).call(this,y,w),A;let F=J(this,Y,qo).call(this,t,w,g,x),_=F.__staleWhileFetching!==void 0&&r;return y&&(y.fetch=N?"stale":"refresh",_&&N&&(y.returnedStale=!0)),_?F.__staleWhileFetching:F.__returned=F}}async forceFetch(t,n={}){let r=await this.fetch(t,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(t,n={}){let r=k(this,Vn);if(!r)throw new Error("no memoMethod provided to constructor");let{context:u,forceRefresh:o,...a}=n,s=this.get(t,a);if(!o&&s!==void 0)return s;let l=r(t,s,{options:a,context:u});return this.set(t,l,a),l}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=n,s=k(this,Ce).get(t);if(s!==void 0){let l=k(this,ie)[s],d=J(this,Y,ye).call(this,l);return a&&k(this,Pt).call(this,a,s),k(this,ut).call(this,s)?(a&&(a.get="stale"),d?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||J(this,Y,en).call(this,t,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(J(this,Y,Rr).call(this,s),u&&k(this,cn).call(this,s),l))}else a&&(a.get="miss")}delete(t){return J(this,Y,en).call(this,t,"delete")}clear(){return J(this,Y,_i).call(this,"delete")}},st=new WeakMap,tt=new WeakMap,mt=new WeakMap,ln=new WeakMap,pt=new WeakMap,Ln=new WeakMap,Vn=new WeakMap,gt=new WeakMap,Se=new WeakMap,bt=new WeakMap,Ce=new WeakMap,be=new WeakMap,ie=new WeakMap,We=new WeakMap,nt=new WeakMap,Me=new WeakMap,Ie=new WeakMap,yt=new WeakMap,Oe=new WeakMap,wt=new WeakMap,xt=new WeakMap,rt=new WeakMap,ot=new WeakMap,vt=new WeakMap,Kt=new WeakMap,Xe=new WeakMap,Pn=new WeakMap,Y=new WeakSet,ki=function(){let t=new vo(k(this,st)),n=new vo(k(this,st));ne(this,rt,t),ne(this,xt,n);let r=this.ttlAutopurge?new Array(k(this,st)):void 0;ne(this,ot,r),ne(this,Or,(s,l,d=k(this,gt).now())=>{n[s]=l!==0?d:0,t[s]=l,u(s,l)}),ne(this,cn,s=>{n[s]=t[s]!==0?k(this,gt).now():0,u(s,t[s])});let u=this.ttlAutopurge?(s,l)=>{if(r!=null&&r[s]&&(clearTimeout(r[s]),r[s]=void 0),l&&l!==0&&r){let d=setTimeout(()=>{k(this,ut).call(this,s)&&J(this,Y,en).call(this,k(this,be)[s],"expire")},l+1);d.unref&&d.unref(),r[s]=d}}:()=>{};ne(this,Pt,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=o||a();let c=s.now-f;s.remainingTTL=d-c}});let o=0,a=()=>{let s=k(this,gt).now();if(this.ttlResolution>0){o=s;let l=setTimeout(()=>o=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=k(this,Ce).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(o||a())-f;return d-c},ne(this,ut,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(o||a())-l>d})},cn=new WeakMap,Pt=new WeakMap,Or=new WeakMap,ut=new WeakMap,xc=function(){let t=new vo(k(this,st));ne(this,bt,0),ne(this,wt,t),ne(this,dn,n=>{ne(this,bt,k(this,bt)-t[n]),t[n]=0}),ne(this,Lr,(n,r,u,o)=>{if(J(this,Y,ye).call(this,r))return 0;if(!Gt(u))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(u=o(r,n),!Gt(u))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return u}),ne(this,Rn,(n,r,u)=>{if(t[n]=r,k(this,tt)){let o=k(this,tt)-t[n];for(;k(this,bt)>o;)J(this,Y,Go).call(this,!0)}ne(this,bt,k(this,bt)+t[n]),u&&(u.entrySize=r,u.totalCalculatedSize=k(this,bt))})},dn=new WeakMap,Rn=new WeakMap,Lr=new WeakMap,Qt=function*({allowStale:t=this.allowStale}={}){if(k(this,Se))for(let n=k(this,Ie);!(!J(this,Y,Ai).call(this,n)||((t||!k(this,ut).call(this,n))&&(yield n),n===k(this,Me)));)n=k(this,nt)[n]},Jt=function*({allowStale:t=this.allowStale}={}){if(k(this,Se))for(let n=k(this,Me);!(!J(this,Y,Ai).call(this,n)||((t||!k(this,ut).call(this,n))&&(yield n),n===k(this,Ie)));)n=k(this,We)[n]},Ai=function(t){return t!==void 0&&k(this,Ce).get(k(this,be)[t])===t},Go=function(t){var o,a,s;let n=k(this,Me),r=k(this,be)[n],u=k(this,ie)[n];return k(this,Kt)&&J(this,Y,ye).call(this,u)?u.__abortController.abort(new Error("evicted")):(k(this,vt)||k(this,Xe))&&(k(this,vt)&&((o=k(this,mt))==null||o.call(this,u,r,"evict")),k(this,Xe)&&((a=k(this,Oe))==null||a.push([u,r,"evict"]))),k(this,dn).call(this,n),(s=k(this,ot))!=null&&s[n]&&(clearTimeout(k(this,ot)[n]),k(this,ot)[n]=void 0),t&&(k(this,be)[n]=void 0,k(this,ie)[n]=void 0,k(this,yt).push(n)),k(this,Se)===1?(ne(this,Me,ne(this,Ie,0)),k(this,yt).length=0):ne(this,Me,k(this,We)[n]),k(this,Ce).delete(r),Xo(this,Se)._--,n},qo=function(t,n,r,u){let o=n===void 0?void 0:k(this,ie)[n];if(J(this,Y,ye).call(this,o))return o;let a=new xo,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:u},d=(x,v=!1)=>{let{aborted:y}=a.signal,b=r.ignoreFetchAbort&&x!==void 0,g=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&x!==void 0);if(r.status&&(y&&!v?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,b&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),y&&!b&&!v)return c(a.signal.reason,g);let w=p,A=k(this,ie)[n];return(A===p||b&&v&&A===void 0)&&(x===void 0?w.__staleWhileFetching!==void 0?k(this,ie)[n]=w.__staleWhileFetching:J(this,Y,en).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,x,l.options))),x},f=x=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=x),c(x,!1)),c=(x,v)=>{let{aborted:y}=a.signal,b=y&&r.allowStaleOnFetchAbort,g=b||r.allowStaleOnFetchRejection,w=g||r.noDeleteOnFetchRejection,A=p;if(k(this,ie)[n]===p&&(!w||!v&&A.__staleWhileFetching===void 0?J(this,Y,en).call(this,t,"fetch"):b||(k(this,ie)[n]=A.__staleWhileFetching)),g)return r.status&&A.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),A.__staleWhileFetching;if(A.__returned===A)throw x},h=(x,v)=>{var b;let y=(b=k(this,Ln))==null?void 0:b.call(this,t,o,l);y&&y instanceof Promise&&y.then(g=>x(g===void 0?void 0:g),v),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(x(void 0),r.allowStaleOnFetchAbort&&(x=g=>d(g,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(d,f),m=Object.assign(p,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(t,m,{...l.options,status:void 0}),n=k(this,Ce).get(t)):k(this,ie)[n]=m,m},ye=function(t){if(!k(this,Kt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof xo},Ci=function(t,n){k(this,nt)[n]=t,k(this,We)[t]=n},Rr=function(t){t!==k(this,Ie)&&(t===k(this,Me)?ne(this,Me,k(this,We)[t]):J(this,Y,Ci).call(this,k(this,nt)[t],k(this,We)[t]),J(this,Y,Ci).call(this,k(this,Ie),t),ne(this,Ie,t))},en=function(t,n){var u,o,a,s,l,d;let r=!1;if(k(this,Se)!==0){let f=k(this,Ce).get(t);if(f!==void 0)if((u=k(this,ot))!=null&&u[f]&&(clearTimeout((o=k(this,ot))==null?void 0:o[f]),k(this,ot)[f]=void 0),r=!0,k(this,Se)===1)J(this,Y,_i).call(this,n);else{k(this,dn).call(this,f);let c=k(this,ie)[f];if(J(this,Y,ye).call(this,c)?c.__abortController.abort(new Error("deleted")):(k(this,vt)||k(this,Xe))&&(k(this,vt)&&((a=k(this,mt))==null||a.call(this,c,t,n)),k(this,Xe)&&((s=k(this,Oe))==null||s.push([c,t,n]))),k(this,Ce).delete(t),k(this,be)[f]=void 0,k(this,ie)[f]=void 0,f===k(this,Ie))ne(this,Ie,k(this,nt)[f]);else if(f===k(this,Me))ne(this,Me,k(this,We)[f]);else{let h=k(this,nt)[f];k(this,We)[h]=k(this,We)[f];let p=k(this,We)[f];k(this,nt)[p]=k(this,nt)[f]}Xo(this,Se)._--,k(this,yt).push(f)}}if(k(this,Xe)&&((l=k(this,Oe))!=null&&l.length)){let f=k(this,Oe),c;for(;c=f==null?void 0:f.shift();)(d=k(this,pt))==null||d.call(this,...c)}return r},_i=function(t){var n,r,u,o;for(let a of J(this,Y,Jt).call(this,{allowStale:!0})){let s=k(this,ie)[a];if(J(this,Y,ye).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=k(this,be)[a];k(this,vt)&&((n=k(this,mt))==null||n.call(this,s,l,t)),k(this,Xe)&&((r=k(this,Oe))==null||r.push([s,l,t]))}}if(k(this,Ce).clear(),k(this,ie).fill(void 0),k(this,be).fill(void 0),k(this,rt)&&k(this,xt)){k(this,rt).fill(0),k(this,xt).fill(0);for(let a of k(this,ot)??[])a!==void 0&&clearTimeout(a);(u=k(this,ot))==null||u.fill(void 0)}if(k(this,wt)&&k(this,wt).fill(0),ne(this,Me,0),ne(this,Ie,0),k(this,yt).length=0,ne(this,bt,0),ne(this,Se,0),k(this,Xe)&&k(this,Oe)){let a=k(this,Oe),s;for(;s=a==null?void 0:a.shift();)(o=k(this,pt))==null||o.call(this,...s)}},Mn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko=function(t){return t.tagName==="IMG"},ap=function(t){return NodeList.prototype.isPrototypeOf(t)},Ao=function(t){return t&&t.nodeType===1},Ws=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},Xs=function(t){try{return Array.isArray(t)?t.filter(ko):ap(t)?[].slice.call(t).filter(ko):Ao(t)?[t].filter(ko):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(ko):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
564
|
+
`,m=hc("caf-assistant-widget-container__inner",g),w=d.computed(()=>{const S=fc`
|
|
565
|
+
display: ${f.value?"block":"none"};
|
|
566
|
+
`;return hc("caf-assistant-widget-container__error",S)}),k=()=>{const S=s.value;S&&(c.value=new M9(S))},C=()=>{const S=c.value;S&&(S.dispose(),c.value=null)},B=()=>{const S=a.value,F=i.value;S&&(S.unmount(),S.dispose()),F&&F.cleanup(),a.value=null,i.value=null},_=async()=>{const S=await r(e.widgetAPIURL);if(!S)throw new Error("Failed to load widget API");await S.initialize();const F=S.createWidget();i.value=S,a.value=F},T=S=>{console.error(S),f.value=S};return d.watch(()=>e.widgetAPIURL,async()=>{if(s.value)try{B(),await _();const S=s.value,F=a.value;F==null||F.updateOptions(e.widgetOptions),F==null||F.updateData(e.widgetData),S&&F&&await F.mount(S)}catch(S){T(S)}}),d.watch(()=>e.widgetOptions,(S,F)=>{try{const z=a.value;z&&(!F||!n(F,S))&&z.updateOptions(S)}catch(z){T(z)}}),d.watch(()=>e.widgetData,(S,F)=>{try{const z=a.value;z&&(!F||!n(F,S))&&z.updateData(S)}catch(z){T(z)}}),d.onMounted(async()=>{try{const S=s.value;if(S){k();const F=c.value;if(F){await _();const z=a.value;z&&(z.updateOptions(e.widgetOptions),z.updateData(e.widgetData),z.mount(F.getElement()),d.nextTick(()=>{S.parentElement&&(S.style.width="100%")}))}}}catch(S){T(S)}}),d.onBeforeUnmount(async()=>{try{B(),C()}catch(S){console.error(S)}}),()=>d.createVNode("div",{class:p.value},[d.createVNode("div",{ref:s,class:m},null),d.createVNode("div",{class:w.value},null)])}}),ef=(e,t)=>{var r;if(e.type===S0.AssistantWidgetComplete){const n=e;return n.widgetUrl?d.createVNode(Wa,{key:`widget-${t}`,widgetAPIURL:n.widgetUrl,widgetOptions:{mode:"embedded",implOptions:n.widgetImplOptions},widgetData:((r=n.widgetData)==null?void 0:r.data)||{}},null):null}return e.type===S0.AssistantWidgetPending?d.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[d.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),d.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[d.createTextVNode("数据生成中......")])]):null},I9=6e4,tf=8e3,V0=new Map,Tr=new Map,Vi=new Map,rn=[];function w0(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function Fo(e){const t=w0(e);if(t)for(let r=rn.length-1;r>=0;r--)rn[r]===t&&rn.splice(r,1)}function O9(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function To(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function L9(){return rn[rn.length-1]||void 0}function Bo(e,t){const r=w0(t);return r?w0(e.instanceId)===r||e.componentId!=null&&w0(String(e.componentId))===r||e.name!=null&&w0(String(e.name))===r:!1}function pc(e){const t=w0(e);if(!t)return null;const r=V0.get(t);if(r)return{canonicalKey:t,entry:r};for(const[i,a]of V0.entries())if(w0(i)===t)return{canonicalKey:i,entry:a};const n=[];for(const[i,a]of V0.entries())Bo(a.config,t)&&n.push({key:i,entry:a});if(n.length===1){const{key:i,entry:a}=n[0];return i!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${i}" (alias match)`),{canonicalKey:i,entry:a}}if(n.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${n.length} pending matches); refusing`),null;if(V0.size===1){const[i,a]=[...V0.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${i}"`),{canonicalKey:i,entry:a}}return null}function rf(e,t){for(const[r,n]of Tr){const i=w0(r),a=e!==""&&i===e,s=String(t??"").trim(),c=e&&Bo(n.config,e)||s&&Bo(n.config,s);if(a||c)return console.warn(`[DynamicComponent] register skipped: id "${e||s}" already active (canonical "${r}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function gc(){return{pendingKeys:[...V0.keys()],bootstrapQueue:[...rn],activeKeys:[...Tr.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function R9(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...gc()})}function P9(e){const t=w0(e);if(t){if(rf(t,e))return{ok:!1,reason:"already_active_duplicate"};const n=pc(t);if(n)return{ok:!0,...n}}else if(rf("",e))return{ok:!1,reason:"already_active_duplicate"};for(let r=0;r<rn.length;r++){const n=rn[r],i=pc(n);if(i)return rn.splice(r,1),t&&w0(n)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${n}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...i}}return{ok:!1,reason:"no_pending"}}function nf(e){const t=w0(e);if(!t)return null;const r=Tr.get(t);if(r)return r;for(const[a,s]of Tr.entries())if(w0(a)===t)return s;const n=[];for(const a of Tr.values())Bo(a.config,t)&&n.push(a);const i=[...new Map(n.map(a=>[a.config.instanceId,a])).values()];return i.length===1?(i[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${i[0].config.instanceId}" (alias match)`),i[0]):(i.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${i.length} active matches)`),null)}function V9(e){const t=w0(e);if(!t)return null;const r=Tr.get(t);if(r)return r;for(const[n,i]of Tr.entries())if(w0(n)===t)return i;return null}function H9(e){const t=w0(e);if(!t)return t;const r=nf(t);if(r)return r.config.instanceId;const n=pc(t);return n?n.canonicalKey:t}function bc(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function af(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(bc(t)),!0}catch(r){return console.warn("[DynamicComponent] onAssistantMessage failed",r),!1}}function q9(e){const t=`fluens-dynamic-component-${e.instanceId}`;let r=document.getElementById(t);return r||(r=document.createElement("div"),r.id=t,r.style.width="100%",r.style.height="100%"),r}function uf(e){const t=Tr.get(e.instanceId);if(t)return Promise.resolve(t.api);const r=V0.get(e.instanceId);if(r)return new Promise((i,a)=>{const s=r.resolve,c=r.reject;r.resolve=f=>{s(f),i(f)},r.reject=f=>{c(f),a(f)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const n=q9(e);return new Promise((i,a)=>{const s={config:e,container:n,resolve:i,reject:a,timeoutId:0},c=setTimeout(()=>{s.postLoadRegisterCheckTimerId!=null&&(clearTimeout(s.postLoadRegisterCheckTimerId),s.postLoadRegisterCheckTimerId=void 0),V0.delete(e.instanceId),Fo(e.instanceId),To(e.instanceId),a(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},I9);s.timeoutId=c,V0.set(e.instanceId,s),rn.push(e.instanceId),O9(e.instanceId);const f=document.createElement("script");f.src=(e==null?void 0:e.jsUrl)??"",f.dataset.dynamicComponentId=e.instanceId,f.async=!1,f.onload=()=>{s.postLoadRegisterCheckTimerId=window.setTimeout(()=>{s.postLoadRegisterCheckTimerId=void 0,V0.has(e.instanceId)&&(clearTimeout(c),V0.delete(e.instanceId),Fo(e.instanceId),To(e.instanceId),a(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${tf}ms after load: ${e.name||e.componentId}`)))},tf)},f.onerror=()=>{clearTimeout(c),s.postLoadRegisterCheckTimerId!=null&&(clearTimeout(s.postLoadRegisterCheckTimerId),s.postLoadRegisterCheckTimerId=void 0),V0.delete(e.instanceId),Fo(e.instanceId),To(e.instanceId),a(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(f)})}function of(e){var i;const t=Tr.get(e);if(t){try{t.api.unmount()}catch{}(i=t.scriptElement)==null||i.remove(),Tr.delete(e)}const r=V0.get(e);r&&(r.postLoadRegisterCheckTimerId!=null&&(clearTimeout(r.postLoadRegisterCheckTimerId),r.postLoadRegisterCheckTimerId=void 0),clearTimeout(r.timeoutId),V0.delete(e)),Vi.delete(e);const n=document.getElementById(`fluens-dynamic-component-${e}`);n&&n.remove()}function j9(e,t){const r=w0(e);if(!r)return!1;const n=nf(r);if(n)return af(n.api,t);const i=H9(r),a=Vi.get(i)??[],s=a.findIndex(c=>c.messageId===t.messageId);return s>=0?a[s]=bc(t):a.push(bc(t)),Vi.set(i,a),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=gc,window.__fluens_dynamic_component_register=function(e,t){const r=w0(e),n=P9(e);if(!n.ok){if(n.reason==="already_active_duplicate")return;R9(r),console.warn(`[DynamicComponent] no pending for register id "${r}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:i,entry:a}=n;Fo(i),To(i),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),clearTimeout(a.timeoutId),V0.delete(i);const s={config:a.config,container:a.container,api:t,scriptElement:document.currentScript};Tr.set(i,s),s.container.parentElement;try{t.mount(a.container,a.config)}catch(f){console.error(`Failed to mount dynamic component: ${i}`,f)}const c=[i];r&&r!==i&&c.push(r);for(const f of c){const p=Vi.get(f);p&&p.length>0&&(Vi.delete(f),p.forEach(g=>af(t,g)))}a.resolve(t)});const Ga=d.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=d.ref("loading"),r=d.ref(""),n=d.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),i=d.computed(()=>e.config.position==="inline"),a=d.computed(()=>!e.config.jsUrl&&!!e.config.url),s=d.computed(()=>({...i.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&i.value?{padding:"16px 0"}:{},...t.value==="ready"&&!i.value?{height:"100%",overflow:"hidden"}:{}}));return d.onMounted(()=>{a.value||(t.value="loading",r.value="",uf(e.config).then(()=>{t.value="ready"}).catch(c=>{t.value="error",r.value=c.message||"Unknown error"}))}),d.onUnmounted(()=>{a.value||of(e.config.instanceId)}),()=>a.value?null:d.createVNode("div",{class:"f-chat-dynamic-component-body",style:s.value},[d.createVNode("div",{id:n.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&d.createVNode("div",{class:"f-chat-dynamic-component-loading"},[d.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),d.createVNode("span",null,[d.createTextVNode("加载中......")])]),t.value==="error"&&d.createVNode("div",{class:"f-chat-dynamic-component-error"},[d.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[d.createTextVNode("!")]),d.createVNode("span",null,[r.value])])])}}),sf=(e,t,r)=>{if(e.type===S0.DynamicComponentComplete){const n=e;if(!n.config)return null;if(n.config.position==="inline")return d.createVNode(Ga,{key:`dc-${t}`,config:n.config},null);const i={type:"file",fileContent:{type:"md",name:n.config.title}},a={onPreviewFile:s=>{r.emit("showDynamicComponent",n.config)}};return r.emitDynamicComponentsDetectedOnce(n.config),d.createVNode("div",{style:{padding:"16px 0"}},[r.renderFileEmbeddedContent(i,a)])}return e.type===S0.DynamicComponentPending?d.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[d.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),d.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[d.createTextVNode("组件加载中......")])]):null};function $9(){return{[S0.Text]:jp,[S0.AssistantWidgetComplete]:ef,[S0.AssistantWidgetPending]:ef,[S0.DynamicComponentComplete]:sf,[S0.DynamicComponentPending]:sf}}const U9=d.defineComponent({name:"FXBubbleTextContent",props:Cm,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:r}=G1(),{propertyStates:n,registerProperty:i,updatePropertyValue:a,startStreaming:s}=Fu();i("title",e.title??""),i("subtitle",e.subtitle??""),i("text",e.text??""),d.watch([()=>e.title,()=>e.subtitle,()=>e.text],([T,S,F])=>{a("title",T??""),a("subtitle",S??""),a("text",F??"")});const c=d.computed(()=>e.textFormat==="markdown"),f=d.ref(!1),p=d.computed(()=>{var T,S,F;return f.value?{title:((T=n.title)==null?void 0:T.displayedValue)??"",subtitle:((S=n.subtitle)==null?void 0:S.displayedValue)??"",text:((F=n.text)==null?void 0:F.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),g=d.computed(()=>Um(p.value.text)),m=new Set;function w(T){const S=String(T.instanceId??"").trim();!S||m.has(S)||(m.add(S),d.nextTick(()=>{var F;t.emit("dynamicComponentsDetected",[T]),(F=e.onDynamicComponentsDetected)==null||F.call(e,[T])}))}function k(T,...S){var F;t.emit(T,...S),T==="showDynamicComponent"&&((F=e.onShowDynamicComponent)==null||F.call(e,S[0]))}const C={shouldShowMarkdown:c,emit:k,emitDynamicComponentsDetectedOnce:w,renderFileEmbeddedContent:r},B=$9(),_=()=>g.value.length===0?null:d.createVNode("div",{class:"f-chat-bubble-text-collection"},[g.value.map((T,S)=>{var F;return(F=B[T.type])==null?void 0:F.call(B,T,S,C)})]);return d.onMounted(()=>{f.value&&s()}),()=>d.createVNode(d.Fragment,null,[p.value.title&&d.createVNode("div",{class:"f-chat-bubble-content-title"},[p.value.title]),p.value.subtitle&&d.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[p.value.subtitle]),_()])}}),W9={content:{type:Object},outputMode:{type:String,default:"full"}},G9=d.defineComponent({name:"FXBubbleThink",props:W9,setup(e,t){var pe;const{propertyStates:r,registerProperty:n,updatePropertyValue:i,isAllDone:a}=Fu(),{elapsedSeconds:s,hasEverStarted:c,start:f,stop:p,reset:g}=Os(),m=d.ref(((pe=e.content)==null?void 0:pe.completed)!==!0),w=d.ref(null),k=d.ref(null),C=d.ref(!1),B=d.ref(!1),_=d.computed(()=>e.outputMode==="streaming"),T=d.computed(()=>{var he;return(he=e.content)==null?void 0:he.completed}),S=d.computed(()=>{var ce,be;if(T.value){const ae=c.value?`(用时${s.value}秒)`:"";return((ce=e.content)==null?void 0:ce.title)??"思考完成"+ae}return((be=e.content)==null?void 0:be.title)??"正在思考......"}),F=d.computed(()=>{var he,ce;return _.value?((he=r.content)==null?void 0:he.displayedValue)??"":((ce=e.content)==null?void 0:ce.content)??""}),z=d.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!T.value,"is-completed":T.value})),R=()=>{const he=w.value;if(!he||!C.value){B.value=!1;return}B.value=he.scrollTop>0};d.watch(()=>T.value,he=>{he?p():f()},{immediate:!0}),d.watch(()=>T.value,he=>{he&&(m.value=!1)}),d.watch(()=>e.content,he=>{he&&(r.content?i("content",he.content??""):n("content",he.content??""))},{immediate:!0}),d.watch(F,async()=>{if(m.value){await d.nextTick();const he=w.value;if(!he)return;await d.nextTick(),C.value=he.scrollHeight>he.clientHeight,C.value?(he.scrollTop=he.scrollHeight,B.value=!0):B.value=!1}},{immediate:!0}),d.watch(m,async he=>{if(he){await d.nextTick();const ce=w.value;if(!ce)return;await d.nextTick(),C.value=ce.scrollHeight>ce.clientHeight,C.value?(ce.scrollTop=ce.scrollHeight,B.value=!0):B.value=!1}}),d.onUnmounted(()=>{g()}),t.expose({instance:{get loadDone(){return e.content?(_.value?a.value:!0)&&T.value:!0}}});const $=()=>{m.value=!m.value},Y=()=>T.value?null:d.createVNode(sa,{status:"Working",variant:"thinking"},null),q=()=>!F.value||!m.value?null:d.createVNode("div",{class:"f-chat-bubble-thinking-content"},[d.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:w,onScroll:R},[C.value&&B.value&&d.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),d.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[d.createVNode("div",{ref:k,class:"f-chat-bubble-thinking-content-text",innerHTML:F.value},null)])])]);return()=>d.createVNode("div",{class:z.value},[d.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:$},[Y(),d.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:S.value},null),F.value&&d.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:m.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null)]),q()])}}),X9={content:{type:Object}},lf={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},theme:{type:String,default:"default"},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function},enableDrag:{type:Boolean,default:!1},renderWhenShown:{type:Boolean,default:!1}};function Y9(e){const t=e.host?e.host:"body",r=d.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),n=d.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),i=d.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),a=d.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),s=d.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:i,hostTop:r,hostWidth:a,hostHeight:s,hostBottom:n}}function Z9(e,t,r,n){const i=d.ref(e.offsetX||0),a=d.ref(e.offsetY||0),s=d.ref(-1),c=d.ref(-1),f=d.ref(-1),p=d.ref(-1),g=d.ref(e.placement),m=d.ref(0),w=d.ref(0),k=d.ref(0),C=d.computed(()=>document.documentElement.scrollLeft),B=d.computed(()=>document.documentElement.scrollTop),{hostLeft:_,hostTop:T,hostWidth:S,hostHeight:F,hostBottom:z}=n;d.watch(()=>e.offsetX,ie=>{i.value=ie});const R=d.computed(()=>{const ie={left:`${w.value}px`,top:`${k.value}px`,transform:`translate(${i.value}px, ${a.value}px)`};return e.zIndex!==-1&&(ie["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&r.value&&s.value>=r.value.getBoundingClientRect().width&&(ie.width=`${s.value}px`):s.value!==-1&&(ie.width=`${s.value}px`),e.minWidth!==-1&&(ie.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(ie,e.customStyles),c.value>0&&(ie.maxHeight=c.value+"px"),ie}),$=d.computed(()=>({left:`${m.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function Y(ie){if(ie&&e.keepWidthWithReference){const me=ie.getBoundingClientRect();s.value=Math.max(e.minWidth,me.width)}}function q(ie,me){const ge=S.value-ie.width-4;return ge>0?ge:me}function pe(ie,me){const ge=F.value-ie.height-12;return ge>0?ge:me}function he(ie,me,ge){const Le=m.value,Ye=me.left-_.value+me.width/2+C.value,Ke=me.top-T.value-(ie.height+ge.height)+B.value;return{popoverLeft:Ye,popoverTop:Ke,arrowLeft:Le}}function ce(ie,me,ge){const Le=me.top-T.value+(me.height+ge.height)+B.value,Ye=pe(ie,Le);return Math.min(Le,Ye)}function be(ie,me){const ge=q(me,ie),Le=ie<=ge?m.value:ie-ge;return{popoverLeft:Math.min(ie,ge),arrowLeft:Le,maxHeight:0}}function ae(ie,me){const ge=q(me,ie),Le=ie<=ge?m.value:ie-ge;return{popoverLeft:ie,arrowLeft:Le,maxHeight:0}}function xe(ie,me,ge){const Le=me.left-_.value+C.value,{arrowLeft:Ye,popoverLeft:Ke}=ae(Le,ie),{popoverTop:ut}=he(ie,me,ge);return{popoverLeft:Ke,popoverTop:ut,arrowLeft:Ye,maxHeight:0}}function Se(ie,me,ge){const Le=me.left-_.value+me.width/2-(ge.width/2-(ie.left-_.value))+C.value,{arrowLeft:Ye,popoverLeft:Ke}=be(Le,ie),ut=ce(ie,me,ge);return{popoverLeft:Ke,popoverTop:ut,arrowLeft:Ye,maxHeight:0}}function te(ie,me,ge){const Le=me.left-_.value+C.value,{arrowLeft:Ye,popoverLeft:Ke}=be(Le,ie),ut=ce(ie,me,ge);return{popoverLeft:Ke,popoverTop:ut,arrowLeft:Ye,maxHeight:0}}function ye(ie,me,ge){const Le=me.right-_.value-ie.width+C.value,Ke=Math.max(Le,4),ut=Ke-Le,ot=ie.width-ge.width-20-ut,st=ce(ie,me,ge);return{popoverLeft:Ke,popoverTop:st,arrowLeft:ot,maxHeight:0}}function ne(ie,me,ge){const Le=me.left-_.value;let Ye=0,Ke=0,ut=0,ot=0,st="bottom-left";window.innerWidth-Le>ie.width?Ye=Le+C.value:(Ye=me.right-ie.width+C.value,ut=ie.width-ge.width-20);let Xt=0;if(e.limitContentBySpace){const Ce={topHeight:me.top-T.value-ge.height-8,bottomHeight:z.value-me.bottom-ge.height-8};Xt=Math.max(Ce.topHeight,Ce.bottomHeight),ie.height>Xt&&(ot=Xt,r.value.classList.add("popover-limitmax"))}const $0=ot?Math.floor(ot):ie.height,Jt=me.top-T.value+(me.height+ge.height);return z.value-Jt>$0?Ke=Jt+B.value:(Ke=me.top-$0-ge.height+B.value,z.value-Jt>me.top?(Ke=Jt+B.value,$0>me.top&&(Ke=z.value-$0)):(Ke=Ke<0?0:Ke,st="top")),r.value.classList.add("popover-"+st,"bs-popover-"+st),{popoverLeft:Ye<0?5:Ye,popoverTop:Ke,arrowLeft:ut,maxHeight:ot}}function Ne(ie,me,ge){const Le=me.left+me.width,Ye=0;let Ke=0,ut=ie.height;if(e.limitContentBySpace){const ft=F.value-16-Math.abs(a.value);ie.height>ft?(Ke=ft,ut=ft,r.value.classList.add("popover-limitmax")):r.value.classList.remove("popover-limitmax")}const ot=Math.max(me.top-(ut/2-me.height/2),T.value);let st=T.value+F.value-ut-a.value;st<0&&(st=ot);const Xt=Math.min(ot,st);return{popoverLeft:Le,popoverTop:Xt,arrowLeft:Ye,maxHeight:Ke}}function We(ie,me,ge){const Le=me.left+me.width,Ye=Math.max(me.top-me.height,T.value);let Ke=T.value+F.value-ie.height;Ke<0&&(Ke=Ye);const ut=Math.min(Ye,Ke);return{popoverLeft:Le,popoverTop:ut,arrowLeft:0,maxHeight:0}}function X(ie,me,ge){const Le=me.left-_.value+me.width/2-ie.width/2+C.value,Ye=me.top-T.value-(ie.height+ge.height)+B.value,Ke=ie.width/2-ge.width/2;return{popoverLeft:Le,popoverTop:Ye,arrowLeft:Ke,maxHeight:0}}function Z(ie,me,ge){const Le=me.left-_.value+me.width/2-ie.width/2+C.value,Ye=ce(ie,me,ge),Ke=ie.width/2-ge.width/2;return{popoverLeft:Le,popoverTop:Ye,arrowLeft:Ke,maxHeight:0}}const Q=new Map([["top",he],["top-left",xe],["top-center",X],["bottom",Se],["bottom-left",te],["bottom-right",ye],["bottom-center",Z],["right",Ne],["right-top",We],["auto",ne]]);function ue(ie){var Ke;e.keepWidthWithReference&&Y(ie);const me=ie.getBoundingClientRect();f.value=me.top,p.value=me.left;const ge=t.value?t.value.getBoundingClientRect():{height:4,width:4},Le=(Ke=r.value)==null?void 0:Ke.getBoundingClientRect();s.value=Le.width;const Ye=Q.get(g.value);if(Ye){const{arrowLeft:ut,popoverLeft:ot,popoverTop:st,maxHeight:Xt}=Ye(Le,me,ge);m.value=ut,w.value=ot,k.value=st,c.value=Xt||-1}}function fe(ie){if(ie){const me=ie.getBoundingClientRect();(me.left!==p.value||me.top!==f.value)&&ue(ie)}}function ke(){g.value=e.placement,m.value=0,w.value=0,k.value=0,s.value=-1}return{arrowStyle:$,popoverStyle:R,position:g,popoverWidth:s,fitToReference:Y,followToReferencePosition:fe,locateToReference:ue,resetPosition:ke}}function K9(e,t,r,n,i,a,s,c){const f=d.ref(e.visible),p=d.computed(()=>f.value),g=d.ref(!1),{fitToReference:m,followToReferencePosition:w,locateToReference:k,resetPosition:C}=s;function B(){g.value=!0}function _(){g.value=!1}d.watch(()=>e.visible,async R=>{R&&e.reference?(c.value||(c.value=!0,await d.nextTick()),await d.nextTick(),F(e.reference)):R||S()},{flush:"post"});let T;async function S(){f.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(f.value=!1,document.body.removeEventListener("click",T),document.body.removeEventListener("mousedown",T),document.body.removeEventListener("wheel",T,!0),document.removeEventListener("scroll",T),e.enableDrag&&(document.removeEventListener("dragstart",B),document.removeEventListener("dragend",_),g.value=!1),C(),t.emit("hidden"),e.renderWhenShown&&(c.value=!1)))}T=R=>{var q;if(g.value||!i.value)return;const $=i.value.contains(R.target);if(R.type==="scroll"||R.type==="wheel"&&$){S();return}if(R.target.closest(".time-picker-panel"))return;const Y=(q=R.target)==null?void 0:q.closest(".popover");if(Y&&n.value&&Y===n.value){R.type!=="scroll"&&R.type!=="wheel"&&R.stopPropagation();return}if(!$&&f.value){const pe=i.value.closest(".popover");pe&&pe.removeEventListener("click",T),S()}};async function F(R){if(e.renderWhenShown&&!c.value&&(c.value=!0,await d.nextTick()),n.value&&(e.showArrow===!1||e.showArrow&&r.value)&&R){C(),f.value=!0,i.value=R,a.value&&m(R),await d.nextTick(),k(R),document.body.addEventListener("click",T),document.body.addEventListener("mousedown",T),document.body.addEventListener("wheel",T,!0),document.addEventListener("scroll",T),e.enableDrag&&(document.addEventListener("dragstart",B),document.addEventListener("dragend",_)),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",T));const $=R.closest(".popover");$&&$.addEventListener("click",T),t.emit("shown")}}function z(){f.value&&i.value&&w(i.value)}return t.expose({hide:S,popoverRef:n,show:F,shown:p,isShow:f,updatePosition:z}),{showPopover:f,hidePopverOnClickBodyHandler:T}}function Q9(e,t,r,n,i,a){const{popoverWidth:s,fitToReference:c,followToReferencePosition:f}=i;function p(){var g;if(a.value&&((g=a.value.style)==null?void 0:g.display)!=="none"&&r.value){f(r.value);const m=r.value.getBoundingClientRect();n.value&&m.width!==s.value&&c(r.value)}}return{onResize:p}}function J9(e,t=500){const r=d.ref(e.value);let n;const i=d.watch(e,s=>{clearTimeout(n),n=setTimeout(()=>{r.value=s},t)}),a=()=>{clearTimeout(n),i()};return d.onUnmounted(a),{delayedValue:r,cleanup:a}}const fa=d.defineComponent({name:"FXPopover",props:lf,emits:["shown","hidden"],setup(e,t){const r=d.ref(),n=d.ref(),i=d.ref(e.reference),a=d.ref(e.keepWidthWithReference),s=d.computed(()=>!!e.title),c=d.ref(!e.renderWhenShown||e.visible),f=Y9(e),{host:p}=f,g=Z9(e,r,n,f),{position:m,arrowStyle:w,popoverStyle:k,fitToReference:C,locateToReference:B}=g,{showPopover:_,hidePopverOnClickBodyHandler:T}=K9(e,t,r,n,i,a,g,c),{onResize:S}=Q9(e,t,i,a,g,n),F=d.computed(()=>{let q=m.value;const pe=`popover in popover-${q}`,he=`bs-popover-${q}`,ce={"popover-fitcontent":e.fitContent,fade:!0};ce[pe]=!0,ce[he]=!0,e.theme==="dark"&&(ce["popover-theme-dark"]=!0);const be=(e.class||"").split(" ");return e.isSimpleTips&&be.unshift("popover-tips"),be.reduce((ae,xe)=>(ae[xe]=!0,ae),ce),ce}),z=d.computed(()=>({"popover-content":!0,"popover-body":!0})),R=d.computed(()=>{const q={};return q.opacity=_.value?1:0,q.visibility=_.value?"visible":"hidden",q.zIndex=1060,q}),$=d.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:Y}=J9(R,50);return d.onMounted(()=>{var q;c.value&&(a.value&&C(i.value),e.reference&&B(i.value)),window.addEventListener("resize",S),(q=n.value)==null||q.focus()}),d.onUnmounted(()=>{document.body.removeEventListener("click",T),window.removeEventListener("resize",S),_.value=!1}),()=>c.value?d.createVNode(d.Teleport,{to:p},{default:()=>{var q;return[d.withDirectives(d.createVNode("div",{tabindex:"-1",ref:n,class:F.value,style:{...k.value,...Y.value},onMousedown:pe=>{e.enableDrag||pe.stopPropagation()},onClick:pe=>{pe.stopPropagation()}},[$.value&&d.createVNode("div",{ref:r,class:"popover-arrow arrow",style:w.value},null),s.value&&d.createVNode("h3",{class:"popover-title popover-header"},[e.title]),d.createVNode("div",{class:z.value},[t.slots.default&&((q=t.slots)==null?void 0:q.default())])]),[[d.vShow,_.value]])]}}):null}}),Mo="FarrisX_PopoverInstancesKey";window[Mo]=window[Mo]||new WeakMap;function yc(e,t,r){e.stopPropagation();const n=t.value;n&&n.value&&!n.value.isShow&&(n.value.show(r),window[Mo].set(r,n.value))}function cf(e,t,r){e.stopPropagation(),t.value.value.hide(),window[Mo].delete(r)}function eg(e,t,r){e.stopPropagation();const n=t.value;n&&n.value&&(n.value.isShow?cf(e,t,r):yc(e,t,r))}function df(e,t,r){t.arg&&t.arg==="toggle"?eg(e,t,r):yc(e,t,r)}const ff={mounted:(e,t,r)=>{t.modifiers.hover?(e.addEventListener("mouseenter",n=>yc(n,t,e)),e.addEventListener("mouseleave",n=>cf(n,t,e))):t.modifiers.click?e.addEventListener("click",n=>df(n,t,e)):e.addEventListener("click",n=>df(n,t,e)),e.classList.add("v-popover")},unMounted:(e,t,r)=>{}};fa.install=e=>{e.component(fa.name,fa),e.directive("fxpopover",ff)};const hf={type:{type:String,default:"StartedToDo"},status:{type:String,default:"NotStart"},message:{type:String,default:""},taskDetail:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"hover"},initExpanded:{type:Boolean,default:!1},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},loading:Object,shimmer:{type:Boolean,default:!0},outputMode:{type:String,default:"streaming"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},mf={items:{type:Array,default:()=>[]}},pf={id:{type:Number||String,default:0},status:{type:String},task:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"expand"},initExpanded:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!1},shimmer:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:String,default:""},outputMode:{type:String,default:"full"}},No=d.defineComponent({name:"FXTodoListItemView",props:pf,emits:["click"],setup(e,{emit:t}){const{propertyStates:r,registerProperty:n,updatePropertyValue:i,startStreaming:a}=Fu();n("title",e.title??""),n("task",e.task??""),n("detail",e.message??""),d.watch([()=>e.title,()=>e.task,()=>e.message],([k,C,B])=>{i("title",k??""),i("task",C??""),i("detail",B??"")});const s=d.computed(()=>["f-chat-todo-item",{"is-done":e.status==="Done","is-working":e.status==="Working","is-not-start":e.status==="NotStart","no-shimmer":!e.shimmer}]),c=d.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function f(){t("click",e,e.id)}const p=d.computed(()=>e.outputMode==="streaming"),g=d.computed(()=>{var k;return p.value?((k=r.title)==null?void 0:k.displayedValue)??"":e.title??""}),m=d.computed(()=>{var k;return p.value?((k=r.task)==null?void 0:k.displayedValue)??"":e.task??""}),w=d.computed(()=>{var k;return p.value?((k=r.detail)==null?void 0:k.displayedValue)??"":e.message??""});return d.onMounted(()=>{p.value&&a()}),()=>d.createVNode("li",{key:e.id,class:s.value,onClick:f},[e.todoList&&e.todoList.length>0&&d.createVNode(ha,{todoList:e.todoList,status:e.status,message:e.task,taskDetail:e.message,detailViewMode:e.detailViewMode,initExpanded:e.initExpanded,showLoading:e.showLoading,showLabel:e.showLabel,outputMode:e.outputMode},null),!e.todoList||e.todoList.length===0&&d.createVNode(d.Fragment,null,[e.showLoading&&d.createVNode(sa,{status:e.status??"Done",variant:"todo"},null),g.value?d.createVNode("div",{class:"f-chat-todo-task-wrapper"},[d.createVNode("span",{class:c.value},[g.value]),d.createVNode("div",{class:"f-chat-todo-task-description"},[m.value]),w.value?d.withDirectives(d.createVNode("div",{class:"f-chat-todo-task-description"},[w.value]),[[d.resolveDirective("overflow-tooltip")]]):null]):d.createVNode("div",{class:"f-chat-todo-task-wrapper"},[d.createVNode("span",{class:c.value},[m.value]),w.value?d.withDirectives(d.createVNode("div",{class:"f-chat-todo-task-description"},[w.value]),[[d.resolveDirective("overflow-tooltip")]]):null])])])}}),Hi=d.defineComponent({name:"FXTodoListView",props:mf,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?d.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((r,n)=>d.createVNode(No,d.mergeProps({key:n},r),null))]):null}}}),tg=300,rg={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},ha=d.defineComponent({name:"FXStartedTodo",props:hf,setup(e){const t=d.ref(null),r=d.ref(null),n=d.ref(null),i=d.ref(null),a=d.computed(()=>e.outputMode==="streaming"),{displayContent:s}=P1(()=>({detail:e.taskDetail??""}),()=>!0,a,{charInterval:30}),c=d.ref(e.initExpanded),f=d.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!c.value}));function p(){e.detailViewMode!=="expand"&&(i.value!=null&&(window.clearTimeout(i.value),i.value=null),n.value=window.setTimeout(()=>{t.value&&r.value&&r.value.show(t.value),n.value=null},tg))}function g(){e.detailViewMode!=="expand"&&(n.value!=null&&(window.clearTimeout(n.value),n.value=null),i.value=window.setTimeout(()=>{var S,F;(F=(S=r.value)==null?void 0:S.hide)==null||F.call(S),i.value=null},150))}function m(){if(e.detailViewMode==="none")return null;const S=s.value.detail??"";return d.createVNode(d.Fragment,null,[S?d.createVNode("div",{class:"f-chat-started-todo-task-detail"},[S]):null,d.createVNode(Hi,{items:e.todoList},null)])}function w(){e.detailViewMode==="expand"&&(c.value=!c.value)}function k(){return e.detailViewMode==="expand"?d.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:c.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null):null}function C(){return e.detailViewMode==="hover"&&d.createVNode(fa,{ref:r,class:"f-chat-started-todo-popover"},{default:()=>[d.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{i.value!=null&&(window.clearTimeout(i.value),i.value=null)},onMouseleave:g},[m()])]})}const B=d.computed(()=>e.listStatus==="completed"),_=d.computed(()=>{const S=e.todoList??[],F=e.totalCount??S.length;return{done:e.completedCount??S.filter(R=>(R==null?void 0:R.status)==="Done").length,total:F}});function T(){if(!B.value)return null;const{done:S,total:F}=_.value,z=F>0?`已完成 (${S}/${F})`:"已完成";return d.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":z},[z])}return()=>d.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":B.value}],onMouseenter:p,onMouseleave:g},[d.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:w},[e.showLabel&&d.createVNode("span",{class:"f-chat-started-todo-label"},[rg[e.status]]),d.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),T(),k()]),e.detailViewMode==="expand"&&d.createVNode("div",{class:f.value},[m()]),C()])}});ha.install=e=>{e.component(ha.name,ha)};const ng=d.defineComponent({name:"FXBubbleThoughtChain",props:X9,setup(e,t){const{elapsedSeconds:r,hasEverStarted:n,start:i,stop:a,reset:s}=Os(),c=d.computed(()=>{var m;return((m=e.content)==null?void 0:m.status)==="Done"}),f=d.computed(()=>{var m;return((m=e.content)==null?void 0:m.message)??"正在思考......"}),p=d.computed(()=>{var k,C;const m=((k=e.content)==null?void 0:k.doneMessage)??((C=e.content)==null?void 0:C.message)??"思考完成",w=n.value?`(用时${r.value}秒)`:"";return""+m+w}),g=d.computed(()=>c.value?p.value:f.value);return d.watch(()=>{var m;return(m=e.content)==null?void 0:m.status},m=>{m==="Working"?i():m==="Done"?a():s()},{immediate:!0}),d.onUnmounted(()=>{s()}),t.expose({instance:{get loadDone(){return e.content?c.value:!0}}}),()=>{var m,w,k,C,B,_;return e.content?d.createVNode(ha,{status:((m=e.content)==null?void 0:m.status)??"Working",message:g.value,todoList:(w=e.content)==null?void 0:w.todoList,detailViewMode:((k=e.content)==null?void 0:k.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(C=e.content)==null?void 0:C.listStatus,completedCount:(B=e.content)==null?void 0:B.completedCount,totalCount:(_=e.content)==null?void 0:_.totalCount},null):null}}}),qi=d.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>d.createVNode("div",{class:"f-ec-auth"},[d.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),d.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>d.createVNode("button",{key:t.optionId,type:"button",class:"f-ec-auth-btn",onClick:()=>{var r;(r=e.onConfirm)==null||r.call(e,t.optionId,t.name,t.message??t.name),console.info("[UserAuth]",t.optionId,t.name)}},[t.name]))])])}}),ag=300,Xa=d.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=d.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),{getToolIconClass:r}=Ls(),n=d.computed(()=>e.content.success===!1),i=d.ref(!1);let a=setTimeout(()=>{i.value=!0},ag);d.onBeforeUnmount(()=>{a&&clearTimeout(a)});const s=d.computed(()=>t.value),c=d.computed(()=>i.value&&!t.value),f=d.computed(()=>n.value?"执行完成":s.value?"执行成功":"调用中"),p=d.ref(!1),g=d.computed(()=>({"f-chat-tool-use":!0,"is-done":s.value,"is-error":n.value})),m=d.computed(()=>({"f-chat-tool-use-status":!0,"is-done":s.value&&!n.value,"is-run":c.value&&!n.value,"is-error":n.value}));d.watch(()=>t.value,(k,C)=>{k&&!C&&(p.value=!1)},{flush:"post"});const w=()=>t.value?d.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>d.createVNode("div",{class:g.value},[d.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{p.value=!p.value}},[d.createVNode("i",{class:"fx-icon fx-icon-"+r(e.content.toolName)+" tool-icon"},null),d.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),d.createVNode("div",{class:m.value},[n.value?d.createVNode(sa,{status:"Error",variant:"tool-use"},null):d.createVNode(sa,{status:s.value?"Done":c.value?"Working":"NotStart",variant:"tool-use"},null),d.createVNode("span",{class:"f-chat-tool-use-status-text"},[f.value])]),d.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:p.value?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"}},null)]),p.value&&d.createVNode("div",{class:"f-chat-tool-use-content"},[w()])])}});Xa.install=e=>{e.component(Xa.name,Xa)};const ji=d.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":qi,"fx-app-preview-inline":Cr,FXToolUse:Xa},props:Cu,setup(e,t){const r=d.shallowRef(),n=d.ref(),i=d.ref(),a=d.computed(()=>!!e.showAvatar),s=d.computed(()=>a.value===!0||e.header==="ContentHeader"),c=d.computed(()=>t.slots.leftFooter||t.slots.rightFooter),f=d.computed(()=>{var ae;return c0({},(ae=e.styles)==null?void 0:ae.footer)}),p=ae=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(ae.type==="md"&&ae.content){e.onPreview({content:ae.content,contentType:"markdown"});return}if(ae!=null&&ae.url){const xe=ae!=null&&ae.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:ae.url,previewMode:xe,title:ae.name})}}},g=ae=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const xe=ae==null?void 0:ae.filter(te=>te.type==="md"&&te.content);if(xe.length===0)return;const Se=Object.fromEntries(xe.map(te=>[te.name,te.content??""]));e.onPreview({contentMap:Se,contentType:"markdown"})},{renderFileEmbeddedContent:m,renderPageEmbeddedContent:w}=G1(),k=d.ref(""),C=d.computed(()=>{var xe,Se;if((xe=e.content)!=null&&xe.footerContent)return e.content.footerContent;const ae=(Se=e.content)==null?void 0:Se.structuredContent;return ae&&(ae.footerTemplate||ae.footerUrl||ae.footerFile)?{type:ae.footerUrl?"page":ae.footerFile?"file":"template",pageUrl:ae.footerUrl,fileContent:ae.footerFile,template:ae.footerTemplate,width:ae.footerWidth,height:ae.footerHeight}:null});d.watch(()=>{var ae;return(ae=C.value)==null?void 0:ae.width},ae=>{if(!ae){k.value="";return}if(ae.endsWith("%")){const xe=parseFloat(ae);isNaN(xe)||d.nextTick(()=>{var te,ye;const Se=(ye=(te=r.value)==null?void 0:te.parentElement)==null?void 0:ye.clientWidth;Se&&(k.value=`${Se*xe/100}px`)})}else k.value=ae},{immediate:!0});const B=ae=>{if(!ae||ae.length===0)return"我";const xe=ae.charAt(0);return/[\u4e00-\u9fa5]/.test(xe)?xe:xe.toUpperCase()};function _(){return e.header==="ContentHeader"?wm:xm}const T=_(),{renderHeader:S}=T(e,t),F=()=>{var Se,te,ye;const ae=((Se=e.content)==null?void 0:Se.sender)??"发送人",xe=B(((te=e.content)==null?void 0:te.sender)??"");return d.createVNode("div",{class:"f-chat-bubble-avatar"},[(ye=e.content)!=null&&ye.avatar?d.createVNode("img",{src:e.content.avatar,alt:ae},null):d.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[xe])])},z=()=>{var xe;const ae=(xe=e.content)==null?void 0:xe.toolUseAboveText;return ae!=null&&ae.length?d.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[ae.map((Se,te)=>d.createVNode(Xa,{key:Se.toolUseId??`tu-${te}`,content:Se},null))]):null},R=()=>{var ae;return(ae=e.content)!=null&&ae.thinkingContent?d.createVNode(G9,{ref:n,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},$=()=>{var ae;return(ae=e.content)!=null&&ae.startedTodo?d.createVNode(ng,{ref:i,content:e.content.startedTodo},null):null},Y=ae=>{if(!(ae!=null&&ae.type))return null;const{type:xe}=ae;return xe==="page"&&ae.pageUrl?w(ae,{onNavigate:Se=>{var te;(te=e.onPreview)==null||te.call(e,{url:Se})}}):xe==="file"&&ae.fileContent?m(ae,{onPreviewFile:p,onBatchPreviewFile:g}):xe==="template"&&ae.template?ae.template():null},q=()=>{var te,ye,ne;if(!((ne=(ye=(te=e.content)==null?void 0:te.structuredContent)==null?void 0:ye.sections)!=null&&ne.length))return null;const{sections:ae,showDivider:xe}=e.content.structuredContent,Se=Ne=>{const{content:We,label:X}=Ne;return X||We&&typeof We=="string"?d.createVNode(d.Fragment,null,[d.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),Ne.label&&d.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[Ne.label]),d.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[Ne.content])]):Y(Ne.content)};return d.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":xe}]},[ae.map((Ne,We)=>d.createVNode("div",{key:We,class:["f-chat-bubble-structured-section",{"section-divider":Ne.showDivider}]},[d.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[Ne.icon&&(Ne.icon.startsWith("http")||Ne.icon.startsWith("//")||Ne.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(Ne.icon)?d.createVNode("img",{alt:Ne.title,src:Ne.icon,class:"f-chat-bubble-structured-section-icon"},null):d.createVNode("i",{class:`fx-icon ${Ne.icon}`,style:Ne.iconStyle},null)),d.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[Ne.title])]),Ne.items&&Ne.items.length>0&&d.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[Ne.items.map((X,Z)=>d.createVNode("div",{key:Z,class:"f-chat-bubble-structured-section-item"},[Se(X)]))])]))])},pe=()=>{const ae=C.value;if(!ae)return null;const xe={};return k.value&&(xe.width=k.value),ae.height&&(xe.height=`${ae.height}px`),d.createVNode("div",{class:"f-chat-bubble-content-footer",style:xe},[Y(ae)])},he=()=>{const ae=e.attachmentRowClickOpensPreview!==!1?p:void 0;return d.createVNode(U1,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:ae,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?g:void 0,role:e.role},null)},ce=()=>{var xe;const ae=(xe=e.content)==null?void 0:xe.compositeInlineBlocks;return ae!=null&&ae.length?ae.map((Se,te)=>Se.kind==="userAuth"?d.createVNode(d.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${te}`,content:Se.content,onConfirm:e.onUserAuthConfirm},null):d.createVNode(d.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${te}`,content:Se.content,onOpen:e.onPreview},null)):null},be=()=>{var ae,xe,Se,te,ye,ne;return d.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[s.value&&S(),he(),d.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(ae=e.content)!=null&&ae.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():d.createVNode(d.Fragment,null,[R(),z()]),$(),q(),d.createVNode(U9,{title:((xe=e.content)==null?void 0:xe.title)??"",subtitle:((Se=e.content)==null?void 0:Se.subtitle)??"",text:typeof((te=e.content)==null?void 0:te.text)=="string"?e.content.text:"",textFormat:((ye=e.content)==null?void 0:ye.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),pe(),(ne=e.compositeTailRender)==null?void 0:ne.call(e),ce()]),c.value&&d.createVNode("div",{class:"f-chat-bubble-footer",style:f.value},[t.slots.leftFooter&&d.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&d.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>d.createVNode("div",{class:"f-chat-bubble-container",ref:r},[d.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?d.createVNode(d.Fragment,null,[a.value&&F(),be()]):d.createVNode(d.Fragment,null,[be(),a.value&&F()])])])}}),gf={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},vc=d.defineComponent({name:"FXBubbleAction",props:gf,setup(e,t){const r=d.computed(()=>c0({},e.customStyle));return()=>t.slots.default&&d.createVNode("span",{class:"f-chat-bubble-footer-action",style:r.value},[t.slots.default()])}});ji.install=e=>{e.component(ji.name,ji),e.component(vc.name,vc)};const bf={items:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},direction:{type:String,default:"horizontal"},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:3e3},loop:{type:Boolean,default:!0},trigger:{type:String,default:"click"},indicatorPosition:{type:String,default:"inside"},arrowVisibility:{type:String,default:"hover"},showIndicator:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},height:{type:[String,Number],default:"400px"},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[String,Array,Object],default:""},customStyle:{type:[Object,String],default:""},buttonPosition:{type:String,default:"inner"}},yf={item:{type:Object,default:()=>({})},index:{type:Number,default:0},active:{type:Boolean,default:!1},showInfo:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},_o=d.defineComponent({name:"FXCarouselItem",props:yf,emits:["click"],setup(e,{slots:t,emit:r}){const n=d.computed(()=>{var m;const g={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return Kt(g,(m=e.classNames)==null?void 0:m.item)}),i=d.computed(()=>{var m,w;const g=c0({},(m=e.styles)==null?void 0:m.item);return c0(g,(w=e.styles)==null?void 0:w.item)}),a=()=>{var g,m,w;return e.item.image?d.createVNode("img",{class:["fx-carousel--item-image",(g=e.classNames)==null?void 0:g.image],style:(m=e.styles)==null?void 0:m.image,src:e.item.image,alt:(w=e.item.title)==null?void 0:w.toString()},null):null},s=()=>{var g,m,w,k;return e.item.content?d.createVNode("div",{class:["fx-carousel--item-content",(g=e.classNames)==null?void 0:g.content],style:(m=e.styles)==null?void 0:m.content},[e.item.content]):t.default?d.createVNode("div",{class:["fx-carousel--item-content",(w=e.classNames)==null?void 0:w.content],style:(k=e.styles)==null?void 0:k.content},[t.default()]):null},c=()=>{var g,m;return e.item.title?d.createVNode("h3",{class:["fx-carousel--item-title",(g=e.classNames)==null?void 0:g.title],style:(m=e.styles)==null?void 0:m.title},[e.item.title]):null},f=()=>{var g,m;return e.item.description?d.createVNode("p",{class:["fx-carousel--item-description",(g=e.classNames)==null?void 0:g.description],style:(m=e.styles)==null?void 0:m.description},[e.item.description]):null},p=g=>{e.item.disabled||r("click",g,e.item,e.index)};return()=>d.createVNode("div",{class:n.value,style:i.value,onClick:p},[a(),s(),e.showInfo&&d.createVNode("div",{class:"fx-carousel--item-info"},[c(),f()])])}});function ig(e){const{items:t,autoplay:r=!1,interval:n=3e3,loop:i=!0,direction:a="horizontal"}=e,s=d.ref(0),c=d.ref(!1),f=d.ref(null),p=d.computed(()=>t.length),g=d.computed(()=>p.value<=1);d.computed(()=>s.value===0?i?p.value-1:0:s.value-1),d.computed(()=>s.value===p.value-1?i?0:s.value:s.value+1);const m=d.computed(()=>{const F=-s.value*100;return{transform:a==="horizontal"?`translateX(${F}%)`:`translateY(${F}%)`,transition:"transform 0.5s ease"}}),w=F=>{F<0||F>=p.value||(s.value,s.value=F)},k=()=>{g.value||(s.value===p.value-1?w(i?0:s.value):w(s.value+1))},C=()=>{g.value||(s.value===0?w(i?p.value-1:0):w(s.value-1))},B=()=>{!r||g.value||(_(),f.value=window.setInterval(()=>{c.value||k()},n))},_=()=>{f.value&&(clearInterval(f.value),f.value=null)},T=()=>{c.value=!0,r&&_()},S=()=>{c.value=!1,r&&B()};return d.onMounted(()=>{B()}),d.onUnmounted(()=>{_()}),{currentIndex:s,totalItems:p,isSingleItem:g,trackStyle:m,goTo:w,next:k,prev:C,handleMouseEnter:T,handleMouseLeave:S}}const $i=d.defineComponent({name:"FXCarousel",props:bf,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:r}){const{currentIndex:n,isSingleItem:i,trackStyle:a,goTo:s,next:c,prev:f,handleMouseEnter:p,handleMouseLeave:g}=ig({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),m=R=>{r("update:modelValue",R),r("change",R,n.value)},w=d.computed(()=>{var $;const R={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":i.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return Kt(R,($=e.classNames)==null?void 0:$.root)}),k=d.computed(()=>{var Y;const R={height:typeof e.height=="number"?`${e.height}px`:e.height},$=c0(R,e.customStyle);return c0($,(Y=e.styles)==null?void 0:Y.root)}),C=d.computed(()=>{var $;const R={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return Kt(R,($=e.classNames)==null?void 0:$.container)}),B=d.computed(()=>{var $;return Kt({"fx-carousel--track":!0},($=e.classNames)==null?void 0:$.track)}),_=d.computed(()=>{var $;const R={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return Kt(R,($=e.classNames)==null?void 0:$.indicator)}),T=R=>{var Y,q;const $={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":R==="left","fx-carousel--arrow-right":R==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return $[`fx-carousel--arrow-${e.buttonPosition}`]=!0,Kt($,R==="left"?(Y=e.classNames)==null?void 0:Y.arrowLeft:(q=e.classNames)==null?void 0:q.arrowRight)},S=R=>{var q,pe;if(i.value)return null;const $=R==="left"?f:c,Y=t[R==="left"?"prevArrow":"nextArrow"];return d.createVNode("button",{class:T(R),style:R==="left"?(q=e.styles)==null?void 0:q.arrowLeft:(pe=e.styles)==null?void 0:pe.arrowRight,onClick:$,"aria-label":`${R} arrow`},[Y?Y():d.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${R==="left"?"left":"right"}`},null)])},F=()=>{var R;return i.value||!e.showIndicator?null:d.createVNode("div",{class:_.value,style:(R=e.styles)==null?void 0:R.indicator},[e.items.map(($,Y)=>{var q,pe;return d.createVNode("button",{"aria-label":`indicator ${Y}`,key:Y,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":Y===n.value}],style:Y===n.value?(q=e.styles)==null?void 0:q.indicatorItemActive:(pe=e.styles)==null?void 0:pe.indicatorItem,onClick:()=>{s(Y),m(Y)}},null)})])},z=()=>d.createVNode("div",{class:B.value,style:a.value},[e.items.map((R,$)=>d.createVNode(_o,{key:R.id||`item_${$}`,item:R,showInfo:e.showInfo,index:$,active:$===n.value,styles:e.styles,classNames:e.classNames,onClick:(Y,q,pe)=>{r("item-click",Y,q,pe)}},{default:()=>{var Y,q;return[(Y=t.item)==null?void 0:Y.call(t,{item:R,index:$,active:$===n.value}),(q=t[`item${$}`])==null?void 0:q.call(t,{item:R,index:$,active:$===n.value})]}}))]);return()=>{var R;return d.createVNode("div",{class:w.value,style:k.value,onMouseenter:p,onMouseleave:g},[e.buttonPosition==="outer"&&S("left"),d.createVNode("div",{class:C.value,style:(R=e.styles)==null?void 0:R.container},[e.buttonPosition==="inner"&&S("left"),z(),e.buttonPosition==="inner"&&S("right")]),e.buttonPosition==="outer"&&S("right"),F()])}}});$i.install=e=>{e.component($i.name,$i),e.component(_o.name,_o)};const vf={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function ug(e){const t=d.ref(-1),r=d.ref(-1),n=d.ref(0),i=d.ref(0),a=d.ref(!1),s=d.ref(!1),c=d.computed(()=>({display:a.value?"block":"none",left:`${n.value}px`,cursor:"e-resize"})),f=d.computed(()=>({display:s.value?"block":"none",top:`${i.value}px`,cursor:"n-resize"})),p=d.computed(()=>{const _={display:s.value||a.value?"block":"none"};return i.value>0&&(_.cursor="n-resize"),_});function g(_,T,S,F){const z=e.value;if(z){const{left:R,right:$,width:Y}=z.getBoundingClientRect();let q=_.clientX-R;F==="right"&&(q=$-_.clientX),q>T&&(q=T),q<S&&(q=S),F==="right"&&(q=Y-q),n.value=q}}function m(_,T,S,F){const z=e.value;if(z){const{top:R,bottom:$,height:Y}=z.getBoundingClientRect();let q=_.clientY-R;F==="bottom"&&(q=$-_.clientY),q>T&&(q=T),q<S&&(q=S),F==="bottom"&&(q=Y-q),i.value=q}}function w(){const _=e.value;if(_){const{width:T,height:S}=_.getBoundingClientRect();return{width:T,height:S}}return null}function k(){const _=e.value;return _?Array.from(_.querySelectorAll("[data-position]")).reduce((T,S)=>{const F=S.getAttribute("data-position");return T=Object.assign(T,{[F]:S}),T},{}):null}function C(_,T){const S=w(),F=k();if(S&&F){const z=F==null?void 0:F.right,R=F==null?void 0:F.left;if(_==="left"&&R)return z?S.width-z.clientWidth-T:S.width-T;if(_==="right"&&z)return R?S.width-R.clientWidth-T:S.width-T}}function B(_,T){const S=w(),F=k();if(S&&F){const z=F==null?void 0:F.bottom,R=F==null?void 0:F.top;if(_==="top"&&R)return z?S.height-z.clientHeight-T:S.height-T;if(_==="bottom"&&z)return R?S.height-R.clientHeight-T:S.height-T}}return{horizontalResizeHandleStyle:c,verticalResizeHandleStyle:f,resizeOverlayStyle:p,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,horizontalResizeBarPosition:t,verticalResizeBarPosition:r,verticalResizeHandleOffset:i,horizontalResizeHandleOffset:n,draggingHorizontalResizeHandle:g,draggingVerticalResizeHandle:m,getPanelMaxWidth:C,getPanelMaxHeight:B}}const Ya=d.defineComponent({name:"FXSplitter",props:vf,emits:[],setup(e,t){const r=d.ref(),n=ug(r),{horizontalResizeHandleStyle:i,verticalResizeHandleStyle:a,resizeOverlayStyle:s}=n;d.provide("splitter",{useResizeHandleComposition:n});const c=d.computed(()=>Kt({"f-splitter":!0},e==null?void 0:e.customClass)),f=d.computed(()=>{const p={"flex-direction":e.direction==="row"?"row":"column"};return c0(p,e==null?void 0:e.customStyle)});return()=>d.createVNode("div",{class:c.value,ref:r,style:f.value},[t.slots.default&&t.slots.default(),d.createVNode("div",{class:"f-splitter-resize-overlay",style:s.value},null),d.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:i.value},null),d.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:a.value},null)])}}),og={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function sg(e,t){const r=d.ref(e.width),n=d.ref(e.height),{horizontalResizeBarPosition:i,horizontalResizeHandleOffset:a,showHorizontalResizeHandle:s,showVerticalResizeHandle:c,verticalResizeBarPosition:f,verticalResizeHandleOffset:p,draggingHorizontalResizeHandle:g,draggingVerticalResizeHandle:m,getPanelMaxWidth:w,getPanelMaxHeight:k}=t;let C="",B,_,T;const S=()=>e.maxWidth?e.maxWidth:w(C,e.minWidth)||0,F=()=>e.maxHeight?e.maxHeight:k(C,e.minHeight)||0;function z(Y){if((C==="left"||C==="right")&&_){const{left:q}=_.getBoundingClientRect(),{width:pe}=B.getBoundingClientRect(),he=Y.clientX-q;let ce=C==="left"?(pe||0)+(he-i.value):(pe||0)-(he-i.value);ce=e.minWidth>0?Math.max(e.minWidth,ce):ce;const be=S();be!=null&&be>0&&(ce=be>ce?ce:be),r.value=ce}if((C==="top"||C==="bottom")&&_){const{top:q}=_.getBoundingClientRect(),{height:pe}=B.getBoundingClientRect(),he=Y.clientY-q;let ce=C==="top"?(pe||0)+(he-f.value):(pe||0)-(he-f.value);ce=e.minHeight>0?Math.max(e.minHeight,ce):ce;const be=F();be!=null&&be>0&&(ce=be>ce?ce:be),n.value=ce}a.value=0,p.value=0,i.value=-1,f.value=-1,s.value=!1,c.value=!1,document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",z),document.body.style.userSelect="",C="",B=null,_=null}function R(Y,q,pe){if(C=q,B=pe,s.value=!0,_=Y.composedPath().find(ce=>ce.className.split(" ")[0]==="f-splitter"),_){const{left:ce}=_.getBoundingClientRect();a.value=Y.clientX-ce,i.value=Y.clientX-ce;const be=S();T=ae=>g(ae,be,e.minWidth,C),document.addEventListener("mousemove",T),document.addEventListener("mouseup",z),document.body.style.userSelect="none"}}function $(Y,q,pe){if(C=q,B=pe,c.value=!0,_=Y.composedPath().find(ce=>ce.className.split(" ")[0]==="f-splitter"),_){const{top:ce}=_.getBoundingClientRect();p.value=Y.clientY-ce,f.value=Y.clientY-ce;const be=F();T=ae=>m(ae,be,e.minHeight,C),document.addEventListener("mousemove",T),document.addEventListener("mouseup",z),document.body.style.userSelect="none"}}return{actualWidth:r,actualHeight:n,onClickSplitterHorizontalResizeBar:R,onClickSplitterVerticalResizeBar:$}}const Ui=d.defineComponent({name:"FSplitterPane",props:og,emits:[],setup(e,t){const r=d.ref(),n=d.inject("splitter"),{useResizeHandleComposition:i}=n,a=sg(e,i),{actualHeight:s,actualWidth:c,onClickSplitterHorizontalResizeBar:f,onClickSplitterVerticalResizeBar:p}=a,g=d.ref(e.position),m=d.computed(()=>{const F={"f-splitter-pane":!0,"f-splitter-pane-main":g.value==="center","has-resize-bar":e.resizable};return F["f-splitter-pane-"+g.value]=!0,Kt(F,e==null?void 0:e.customClass)}),w=d.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(F=>["e","n","s","w"].find(z=>z===F)):[]),k=d.computed(()=>{const F={};return(c.value||c.value===0)&&(g.value==="left"||g.value==="right"||w.value.find(z=>z==="e")||w.value.find(z=>z==="w"))&&(F.width=`${c.value}px`),(s.value||s.value===0)&&(g.value==="bottom"||g.value==="top"||w.value.find(z=>z==="s")||w.value.find(z=>z==="n"))&&(F.height=`${s.value}px`),e.visible||(F.display="none"),c0(F,e==null?void 0:e.customStyle)}),C=d.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":g.value==="left","f-splitter-resize-bar-n":g.value==="bottom","f-splitter-resize-bar-s":g.value==="top","f-splitter-resize-bar-w":g.value==="right"}));function B(F){return{e:"left",w:"right",s:"top",n:"bottom"}[F]||F}function _(F,z){z=B(z),["left","right"].find(R=>R===z)&&f(F,z,r.value),["top","bottom"].find(R=>R===z)&&p(F,z,r.value)}function T(){return w.value.length>0?w.value.map(F=>d.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+F,onMousedown:z=>_(z,F)},null)):d.createVNode("span",{class:C.value,onMousedown:F=>_(F,g.value)},null)}function S(){c.value=e.width,s.value=e.height,k.value}return t.expose({reset:S}),()=>d.createVNode("div",{ref:r,class:m.value,style:k.value,"data-position":g.value},[t.slots.default&&t.slots.default(),e.resizable&&T()])}});Ya.install=e=>{e.component(Ya.name,Ya),e.component(Ui.name,Ui)};const wf={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},xf={content:{type:String,default:null}},lg=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},cg=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},Wi=(e,t=new WeakMap)=>{if(e===null||lg(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return cg(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const n=new Map;return t.set(e,n),e.forEach((i,a)=>{n.set(a,Wi(i,t))}),n}if(e instanceof Set){const n=new Set;t.set(e,n);for(const i of e)n.add(Wi(i,t));return n}if(Array.isArray(e)){const n=[];return t.set(e,n),e.forEach(i=>{n.push(Wi(i,t))}),n}const r={};t.set(e,r);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Wi(e[n],t));return r},dg=(e,t=200)=>{let r=0;return(...n)=>new Promise(i=>{r&&(clearTimeout(r),i("cancel")),r=window.setTimeout(()=>{e.apply(void 0,n),r=0,i("done")},t)})},wc=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,zo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),fg=new Set(["__proto__","constructor","prototype"]),hg=e=>!fg.has(e),xc=(e,t,r={})=>{if(Array.isArray(e)&&Array.isArray(t))return Ac(e,t,r);const{excludeKeys:n}=r,i=e,a=t;for(const s of Object.keys(a)){if(!hg(s))continue;const c=a[s],f=i[s];n&&n(s)?i[s]=c:Array.isArray(c)&&Array.isArray(f)?i[s]=Ac(f,c,r):zo(c)&&zo(f)?i[s]=xc(f,c,r):i[s]=c}return e},Ac=(e,t,r)=>{const n=e.slice();return t.forEach((i,a)=>{const s=n[a];Array.isArray(i)&&Array.isArray(s)?n[a]=Ac(s,i,r):zo(i)&&zo(s)?n[a]=xc(s,i,r):n[a]=i}),n},Re="md-editor",Ft="https://unpkg.com",mg=`${Ft}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Af={main:`${Ft}/prettier@3.8.1/standalone.js`,markdown:`${Ft}/prettier@3.8.1/plugins/markdown.js`},pg={css:`${Ft}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${Ft}/cropperjs@1.6.2/dist/cropper.min.js`},gg=`${Ft}/screenfull@5.2.0/dist/screenfull.js`,bg=`${Ft}/mermaid@11.12.3/dist/mermaid.min.js`,yg={js:`${Ft}/katex@0.16.33/dist/katex.min.js`,css:`${Ft}/katex@0.16.33/dist/katex.min.css`},Dc={a11y:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${Ft}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},vg=`${Ft}/echarts@6.0.0/dist/echarts.min.js`,Df={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},Br={editorExtensions:{highlight:{js:mg,css:Dc},prettier:{standaloneJs:Af.main,parserMarkdownJs:Af.markdown},cropper:{...pg},screenfull:{js:gg},mermaid:{js:bg,enableZoom:!0},katex:{...yg},echarts:{js:vg}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},wg=({instance:e,ctx:t,props:r={}},n="default")=>{const i=(e==null?void 0:e.$slots[n])||(t==null?void 0:t.slots[n]);return(i?i(e):"")||r[n]},xg="buildFinished",kc="errorCatcher",Cc="catalogChanged",Ag="pushCatalog",kf="rerender",Dg="taskStateChanged";let kg=class{constructor(){Bt(this,"pools",{})}remove(t,r,n){const i=this.pools[t]&&this.pools[t][r];i&&(this.pools[t][r]=i.filter(a=>a!==n))}clear(t){this.pools[t]={}}on(t,r){return this.pools[t]||(this.pools[t]={}),this.pools[t][r.name]||(this.pools[t][r.name]=[]),this.pools[t][r.name].push(r.callback),this.pools[t][r.name].includes(r.callback)}emit(t,r,...n){this.pools[t]||(this.pools[t]={});const i=this.pools[t][r];i&&i.forEach(a=>{try{a(...n)}catch(s){console.error(`${r} monitor event exception!`,s)}})}};const yr=new kg,Cg=(e,t)=>{if(!e)return e;const r=t.split(`
|
|
567
|
+
`),n=['<span rn-wrapper aria-hidden="true">'];return r.forEach(()=>{n.push("<span></span>")}),n.push("</span>"),`<span class="${Re}-code-block">${e}</span>${n.join("")}`};var Sg=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Eg=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Fg=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Sc={Space_Separator:Sg,ID_Start:Eg,ID_Continue:Fg},Qt={isSpaceSeparator(e){return typeof e=="string"&&Sc.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Sc.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e===""||e===""||Sc.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}};let Ec,H0,yn,Io,qn,Mr,x0,Fc,Gi;var Tg=function(t,r){Ec=String(t),H0="start",yn=[],Io=0,qn=1,Mr=0,x0=void 0,Fc=void 0,Gi=void 0;do x0=Bg(),_g[H0]();while(x0.type!=="eof");return typeof r=="function"?Tc({"":Gi},"",r):Gi};function Tc(e,t,r){const n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){const a=String(i),s=Tc(n,a,r);s===void 0?delete n[a]:Object.defineProperty(n,a,{value:s,writable:!0,enumerable:!0,configurable:!0})}else for(const i in n){const a=Tc(n,i,r);a===void 0?delete n[i]:Object.defineProperty(n,i,{value:a,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}let it,rt,Xi,vn,dt;function Bg(){for(it="default",rt="",Xi=!1,vn=1;;){dt=wn();const e=Cf[it]();if(e)return e}}function wn(){if(Ec[Io])return String.fromCodePoint(Ec.codePointAt(Io))}function ve(){const e=wn();return e===`
|
|
568
|
+
`?(qn++,Mr=0):e?Mr+=e.length:Mr++,e&&(Io+=e.length),e}const Cf={default(){switch(dt){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
|
|
569
|
+
`:case"\r":case"\u2028":case"\u2029":ve();return;case"/":ve(),it="comment";return;case void 0:return ve(),Mt("eof")}if(Qt.isSpaceSeparator(dt)){ve();return}return Cf[H0]()},comment(){switch(dt){case"*":ve(),it="multiLineComment";return;case"/":ve(),it="singleLineComment";return}throw Nt(ve())},multiLineComment(){switch(dt){case"*":ve(),it="multiLineCommentAsterisk";return;case void 0:throw Nt(ve())}ve()},multiLineCommentAsterisk(){switch(dt){case"*":ve();return;case"/":ve(),it="default";return;case void 0:throw Nt(ve())}ve(),it="multiLineComment"},singleLineComment(){switch(dt){case`
|
|
570
|
+
`:case"\r":case"\u2028":case"\u2029":ve(),it="default";return;case void 0:return ve(),Mt("eof")}ve()},value(){switch(dt){case"{":case"[":return Mt("punctuator",ve());case"n":return ve(),ma("ull"),Mt("null",null);case"t":return ve(),ma("rue"),Mt("boolean",!0);case"f":return ve(),ma("alse"),Mt("boolean",!1);case"-":case"+":ve()==="-"&&(vn=-1),it="sign";return;case".":rt=ve(),it="decimalPointLeading";return;case"0":rt=ve(),it="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":rt=ve(),it="decimalInteger";return;case"I":return ve(),ma("nfinity"),Mt("numeric",1/0);case"N":return ve(),ma("aN"),Mt("numeric",NaN);case'"':case"'":Xi=ve()==='"',rt="",it="string";return}throw Nt(ve())},identifierNameStartEscape(){if(dt!=="u")throw Nt(ve());ve();const e=Bc();switch(e){case"$":case"_":break;default:if(!Qt.isIdStartChar(e))throw Sf();break}rt+=e,it="identifierName"},identifierName(){switch(dt){case"$":case"_":case"":case"":rt+=ve();return;case"\\":ve(),it="identifierNameEscape";return}if(Qt.isIdContinueChar(dt)){rt+=ve();return}return Mt("identifier",rt)},identifierNameEscape(){if(dt!=="u")throw Nt(ve());ve();const e=Bc();switch(e){case"$":case"_":case"":case"":break;default:if(!Qt.isIdContinueChar(e))throw Sf();break}rt+=e,it="identifierName"},sign(){switch(dt){case".":rt=ve(),it="decimalPointLeading";return;case"0":rt=ve(),it="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":rt=ve(),it="decimalInteger";return;case"I":return ve(),ma("nfinity"),Mt("numeric",vn*(1/0));case"N":return ve(),ma("aN"),Mt("numeric",NaN)}throw Nt(ve())},zero(){switch(dt){case".":rt+=ve(),it="decimalPoint";return;case"e":case"E":rt+=ve(),it="decimalExponent";return;case"x":case"X":rt+=ve(),it="hexadecimal";return}return Mt("numeric",vn*0)},decimalInteger(){switch(dt){case".":rt+=ve(),it="decimalPoint";return;case"e":case"E":rt+=ve(),it="decimalExponent";return}if(Qt.isDigit(dt)){rt+=ve();return}return Mt("numeric",vn*Number(rt))},decimalPointLeading(){if(Qt.isDigit(dt)){rt+=ve(),it="decimalFraction";return}throw Nt(ve())},decimalPoint(){switch(dt){case"e":case"E":rt+=ve(),it="decimalExponent";return}if(Qt.isDigit(dt)){rt+=ve(),it="decimalFraction";return}return Mt("numeric",vn*Number(rt))},decimalFraction(){switch(dt){case"e":case"E":rt+=ve(),it="decimalExponent";return}if(Qt.isDigit(dt)){rt+=ve();return}return Mt("numeric",vn*Number(rt))},decimalExponent(){switch(dt){case"+":case"-":rt+=ve(),it="decimalExponentSign";return}if(Qt.isDigit(dt)){rt+=ve(),it="decimalExponentInteger";return}throw Nt(ve())},decimalExponentSign(){if(Qt.isDigit(dt)){rt+=ve(),it="decimalExponentInteger";return}throw Nt(ve())},decimalExponentInteger(){if(Qt.isDigit(dt)){rt+=ve();return}return Mt("numeric",vn*Number(rt))},hexadecimal(){if(Qt.isHexDigit(dt)){rt+=ve(),it="hexadecimalInteger";return}throw Nt(ve())},hexadecimalInteger(){if(Qt.isHexDigit(dt)){rt+=ve();return}return Mt("numeric",vn*Number(rt))},string(){switch(dt){case"\\":ve(),rt+=Mg();return;case'"':if(Xi)return ve(),Mt("string",rt);rt+=ve();return;case"'":if(!Xi)return ve(),Mt("string",rt);rt+=ve();return;case`
|
|
571
|
+
`:case"\r":throw Nt(ve());case"\u2028":case"\u2029":zg(dt);break;case void 0:throw Nt(ve())}rt+=ve()},start(){switch(dt){case"{":case"[":return Mt("punctuator",ve())}it="value"},beforePropertyName(){switch(dt){case"$":case"_":rt=ve(),it="identifierName";return;case"\\":ve(),it="identifierNameStartEscape";return;case"}":return Mt("punctuator",ve());case'"':case"'":Xi=ve()==='"',it="string";return}if(Qt.isIdStartChar(dt)){rt+=ve(),it="identifierName";return}throw Nt(ve())},afterPropertyName(){if(dt===":")return Mt("punctuator",ve());throw Nt(ve())},beforePropertyValue(){it="value"},afterPropertyValue(){switch(dt){case",":case"}":return Mt("punctuator",ve())}throw Nt(ve())},beforeArrayValue(){if(dt==="]")return Mt("punctuator",ve());it="value"},afterArrayValue(){switch(dt){case",":case"]":return Mt("punctuator",ve())}throw Nt(ve())},end(){throw Nt(ve())}};function Mt(e,t){return{type:e,value:t,line:qn,column:Mr}}function ma(e){for(const t of e){if(wn()!==t)throw Nt(ve());ve()}}function Mg(){switch(wn()){case"b":return ve(),"\b";case"f":return ve(),"\f";case"n":return ve(),`
|
|
572
|
+
`;case"r":return ve(),"\r";case"t":return ve()," ";case"v":return ve(),"\v";case"0":if(ve(),Qt.isDigit(wn()))throw Nt(ve());return"\0";case"x":return ve(),Ng();case"u":return ve(),Bc();case`
|
|
573
|
+
`:case"\u2028":case"\u2029":return ve(),"";case"\r":return ve(),wn()===`
|
|
574
|
+
`&&ve(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Nt(ve());case void 0:throw Nt(ve())}return ve()}function Ng(){let e="",t=wn();if(!Qt.isHexDigit(t)||(e+=ve(),t=wn(),!Qt.isHexDigit(t)))throw Nt(ve());return e+=ve(),String.fromCodePoint(parseInt(e,16))}function Bc(){let e="",t=4;for(;t-- >0;){const r=wn();if(!Qt.isHexDigit(r))throw Nt(ve());e+=ve()}return String.fromCodePoint(parseInt(e,16))}const _g={start(){if(x0.type==="eof")throw pa();Mc()},beforePropertyName(){switch(x0.type){case"identifier":case"string":Fc=x0.value,H0="afterPropertyName";return;case"punctuator":Oo();return;case"eof":throw pa()}},afterPropertyName(){if(x0.type==="eof")throw pa();H0="beforePropertyValue"},beforePropertyValue(){if(x0.type==="eof")throw pa();Mc()},beforeArrayValue(){if(x0.type==="eof")throw pa();if(x0.type==="punctuator"&&x0.value==="]"){Oo();return}Mc()},afterPropertyValue(){if(x0.type==="eof")throw pa();switch(x0.value){case",":H0="beforePropertyName";return;case"}":Oo()}},afterArrayValue(){if(x0.type==="eof")throw pa();switch(x0.value){case",":H0="beforeArrayValue";return;case"]":Oo()}},end(){}};function Mc(){let e;switch(x0.type){case"punctuator":switch(x0.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=x0.value;break}if(Gi===void 0)Gi=e;else{const t=yn[yn.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Fc,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")yn.push(e),Array.isArray(e)?H0="beforeArrayValue":H0="beforePropertyName";else{const t=yn[yn.length-1];t==null?H0="end":Array.isArray(t)?H0="afterArrayValue":H0="afterPropertyValue"}}function Oo(){yn.pop();const e=yn[yn.length-1];e==null?H0="end":Array.isArray(e)?H0="afterArrayValue":H0="afterPropertyValue"}function Nt(e){return Lo(e===void 0?`JSON5: invalid end of input at ${qn}:${Mr}`:`JSON5: invalid character '${Ef(e)}' at ${qn}:${Mr}`)}function pa(){return Lo(`JSON5: invalid end of input at ${qn}:${Mr}`)}function Sf(){return Mr-=5,Lo(`JSON5: invalid identifier character at ${qn}:${Mr}`)}function zg(e){console.warn(`JSON5: '${Ef(e)}' in strings is not valid ECMAScript; consider escaping`)}function Ef(e){const t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){const r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function Lo(e){const t=new SyntaxError(e);return t.lineNumber=qn,t.columnNumber=Mr,t}var Ig=function(t,r,n){const i=[];let a="",s,c,f="",p;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,p=r.quote,r=r.replacer),typeof r=="function")c=r;else if(Array.isArray(r)){s=[];for(const B of r){let _;typeof B=="string"?_=B:(typeof B=="number"||B instanceof String||B instanceof Number)&&(_=String(B)),_!==void 0&&s.indexOf(_)<0&&s.push(_)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),f=" ".substr(0,n)):typeof n=="string"&&(f=n.substr(0,10)),g("",{"":t});function g(B,_){let T=_[B];switch(T!=null&&(typeof T.toJSON5=="function"?T=T.toJSON5(B):typeof T.toJSON=="function"&&(T=T.toJSON(B))),c&&(T=c.call(_,B,T)),T instanceof Number?T=Number(T):T instanceof String?T=String(T):T instanceof Boolean&&(T=T.valueOf()),T){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof T=="string")return m(T);if(typeof T=="number")return String(T);if(typeof T=="object")return Array.isArray(T)?C(T):w(T)}function m(B){const _={"'":.1,'"':.2},T={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let S="";for(let z=0;z<B.length;z++){const R=B[z];switch(R){case"'":case'"':_[R]++,S+=R;continue;case"\0":if(Qt.isDigit(B[z+1])){S+="\\x00";continue}}if(T[R]){S+=T[R];continue}if(R<" "){let $=R.charCodeAt(0).toString(16);S+="\\x"+("00"+$).substring($.length);continue}S+=R}const F=p||Object.keys(_).reduce((z,R)=>_[z]<_[R]?z:R);return S=S.replace(new RegExp(F,"g"),T[F]),F+S+F}function w(B){if(i.indexOf(B)>=0)throw TypeError("Converting circular structure to JSON5");i.push(B);let _=a;a=a+f;let T=s||Object.keys(B),S=[];for(const z of T){const R=g(z,B);if(R!==void 0){let $=k(z)+":";f!==""&&($+=" "),$+=R,S.push($)}}let F;if(S.length===0)F="{}";else{let z;if(f==="")z=S.join(","),F="{"+z+"}";else{let R=`,
|
|
575
|
+
`+a;z=S.join(R),F=`{
|
|
576
|
+
`+a+z+`,
|
|
577
|
+
`+_+"}"}}return i.pop(),a=_,F}function k(B){if(B.length===0)return m(B);const _=String.fromCodePoint(B.codePointAt(0));if(!Qt.isIdStartChar(_))return m(B);for(let T=_.length;T<B.length;T++)if(!Qt.isIdContinueChar(String.fromCodePoint(B.codePointAt(T))))return m(B);return B}function C(B){if(i.indexOf(B)>=0)throw TypeError("Converting circular structure to JSON5");i.push(B);let _=a;a=a+f;let T=[];for(let F=0;F<B.length;F++){const z=g(String(F),B);T.push(z!==void 0?z:"null")}let S;if(T.length===0)S="[]";else if(f==="")S="["+T.join(",")+"]";else{let F=`,
|
|
578
|
+
`+a,z=T.join(F);S=`[
|
|
579
|
+
`+a+z+`,
|
|
580
|
+
`+_+"]"}return i.pop(),a=_,S}},Og={parse:Tg,stringify:Ig};async function Ff(e){if(typeof e=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");let r=!1;if(t.value=e,t.style.position="fixed",t.style.opacity=0,t.style.zIndex="-10000",t.style.top="-10000",document.body.appendChild(t),t.select(),r=document.execCommand("copy"),document.body.removeChild(t),r)return;throw new Error('Failed to copy content via "execCommand"!')}}}const Lg={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${Re}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${Re}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${Re}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${Re}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${Re}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},nn=(e,t)=>typeof t[e]=="string"?t[e]:Lg[e],jn=(e,t,r="")=>{var i;const n=document.getElementById(t.id);if(n)r!==""&&(Reflect.get(window,r)?(i=t.onload)==null||i.call(n,new Event("load")):t.onload&&n.addEventListener("load",t.onload));else{const a={...t};a.onload=null;const s=Pg(e,a);t.onload&&s.addEventListener("load",t.onload),document.head.appendChild(s)}},Rg=(e,t)=>{var r;(r=document.getElementById(t.id))==null||r.remove(),jn(e,t)},Pg=(e,t)=>{const r=document.createElement(e);return Object.keys(t).forEach(n=>{t[n]!==void 0&&(r[n]=t[n])}),r},Vg=(e,t)=>{const r=new Map;return e==null||e.forEach(n=>{let i=n.querySelector(`.${Re}-mermaid-action`);i?i.querySelector(`.${Re}-mermaid-copy`)||i.insertAdjacentHTML("beforeend",`<span class="${Re}-mermaid-copy">${nn("copy",t.customIcon)}</span>`):(n.insertAdjacentHTML("beforeend",`<div class="${Re}-mermaid-action"><span class="${Re}-mermaid-copy">${nn("copy",t.customIcon)}</span></div>`),i=n.querySelector(`.${Re}-mermaid-action`));const a=i.querySelector(`.${Re}-mermaid-copy`);let s=-1;const c=()=>{clearTimeout(s),Ff(n.dataset.content||"").then(()=>{a.innerHTML=nn("check",t.customIcon)}).catch(()=>{a.innerHTML=nn("copy",t.customIcon)}).finally(()=>{s=window.setTimeout(()=>{a.innerHTML=nn("copy",t.customIcon)},1500)})};a.addEventListener("click",c),r.set(n,{removeClick:()=>{a.removeEventListener("click",c)}})}),()=>{r.forEach(({removeClick:n})=>{n==null||n()}),r.clear()}},Hg=(()=>{const e=t=>{if(!t)return()=>{};const r=t.firstChild;let n=1,i=0,a=0,s=!1,c,f,p,g=1;const m=()=>{r.style.transform=`translate(${i}px, ${a}px) scale(${n})`},w=z=>{z.touches.length===1?(s=!0,c=z.touches[0].clientX-i,f=z.touches[0].clientY-a):z.touches.length===2&&(p=Math.hypot(z.touches[0].clientX-z.touches[1].clientX,z.touches[0].clientY-z.touches[1].clientY),g=n)},k=z=>{if(z.preventDefault(),s&&z.touches.length===1)i=z.touches[0].clientX-c,a=z.touches[0].clientY-f,m();else if(z.touches.length===2){const R=Math.hypot(z.touches[0].clientX-z.touches[1].clientX,z.touches[0].clientY-z.touches[1].clientY)/p,$=n;n=g*(1+(R-1));const Y=(z.touches[0].clientX+z.touches[1].clientX)/2,q=(z.touches[0].clientY+z.touches[1].clientY)/2,pe=r.getBoundingClientRect(),he=(Y-pe.left)/$,ce=(q-pe.top)/$;i-=he*(n-$),a-=ce*(n-$),m()}},C=()=>{s=!1},B=z=>{z.preventDefault();const R=.02,$=n;z.deltaY<0?n+=R:n=Math.max(.1,n-R);const Y=r.getBoundingClientRect(),q=z.clientX-Y.left,pe=z.clientY-Y.top;i-=q/$*(n-$),a-=pe/$*(n-$),m()},_=z=>{s=!0,c=z.clientX-i,f=z.clientY-a},T=z=>{s&&(i=z.clientX-c,a=z.clientY-f,m())},S=()=>{s=!1},F=()=>{s=!1};return t.addEventListener("touchstart",w,{passive:!1}),t.addEventListener("touchmove",k,{passive:!1}),t.addEventListener("touchend",C),t.addEventListener("wheel",B,{passive:!1}),t.addEventListener("mousedown",_),t.addEventListener("mousemove",T),t.addEventListener("mouseup",S),t.addEventListener("mouseleave",F),()=>{t.removeEventListener("touchstart",w),t.removeEventListener("touchmove",k),t.removeEventListener("touchend",C),t.removeEventListener("wheel",B),t.removeEventListener("mousedown",_),t.removeEventListener("mousemove",T),t.removeEventListener("mouseup",S),t.removeEventListener("mouseleave",F)}};return(t,r)=>{const n=new Map;return t==null||t.forEach(i=>{let a=i.querySelector(`.${Re}-mermaid-action`);a?a.querySelector(`.${Re}-mermaid-zoom`)||a.insertAdjacentHTML("beforeend",`<span class="${Re}-mermaid-zoom">${nn("pin-off",r.customIcon)}</span>`):(i.insertAdjacentHTML("beforeend",`<div class="${Re}-mermaid-action"><span class="${Re}-mermaid-zoom">${nn("pin-off",r.customIcon)}</span></div>`),a=i.querySelector(`.${Re}-mermaid-action`));const s=a.querySelector(`.${Re}-mermaid-zoom`),c=()=>{const f=n.get(i);if(f!=null&&f.removeEvent)f.removeEvent(),i.removeAttribute("data-grab"),n.set(i,{removeClick:f.removeClick}),s.innerHTML=nn("pin-off",r.customIcon);else{const p=e(i);i.setAttribute("data-grab",""),n.set(i,{removeEvent:p,removeClick:f==null?void 0:f.removeClick}),s.innerHTML=nn("pin",r.customIcon)}};s.addEventListener("click",c),n.set(i,{removeClick:()=>s.removeEventListener("click",c)})}),()=>{n.forEach(({removeEvent:i,removeClick:a})=>{i==null||i(),a==null||a()}),n.clear()}}})(),Tf=new Set([!0,!1,"alt","title"]);function Bf(e,t){return(Array.isArray(e)?e:[]).filter(([r])=>r!==t)}function Mf(e,t){e&&e.attrs&&(e.attrs=Bf(e.attrs,t))}function qg(e,t){if(!Tf.has(e))throw new TypeError(`figcaption must be one of: ${[...Tf]}.`);if(e==="alt")return t.content;const r=t.attrs.find(([n])=>n==="title");return Array.isArray(r)&&r[1]?(Mf(t,"title"),r[1]):void 0}function jg(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(r){let n=1;for(let i=1,a=r.tokens.length;i<a-1;++i){const s=r.tokens[i];if(s.type!=="inline"||!s.children||s.children.length!==1&&s.children.length!==3||s.children.length===1&&s.children[0].type!=="image")continue;if(s.children.length===3){const[p,g,m]=s.children;if(p.type!=="link_open"||g.type!=="image"||m.type!=="link_close")continue}if(i!==0&&r.tokens[i-1].type!=="paragraph_open"||i!==a-1&&r.tokens[i+1].type!=="paragraph_close")continue;const c=r.tokens[i-1];let f;if(c.type="figure_open",c.tag="figure",r.tokens[i+1].type="figure_close",r.tokens[i+1].tag="figure",t.dataType&&r.tokens[i-1].attrPush(["data-type","image"]),t.link&&s.children.length===1){[f]=s.children;const p=new r.Token("link_open","a",1);p.attrPush(["href",f.attrGet("src")]),s.children.unshift(p),s.children.push(new r.Token("link_close","a",-1))}if(f=s.children.length===1?s.children[0]:s.children[1],t.figcaption){const p=qg(t.figcaption,f);if(p){const[g]=e.parseInline(p,r.env);s.children.push(new r.Token("figcaption_open","figcaption",1)),s.children.push(...g.children),s.children.push(new r.Token("figcaption_close","figcaption",-1)),f.attrs&&(f.attrs=Bf(f.attrs,"title"))}}if(t.copyAttrs&&f.attrs){const p=t.copyAttrs===!0?"":t.copyAttrs;c.attrs=f.attrs.filter(([g])=>g.match(p)).map(g=>Array.from(g))}if(t.tabindex&&(r.tokens[i-1].attrPush(["tabindex",n]),n++),t.lazy&&(f.attrs.some(([p])=>p==="loading")||f.attrs.push(["loading","lazy"])),t.async&&(f.attrs.some(([p])=>p==="decoding")||f.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let p=!1;for(let g=0,m=f.attrs.length;g<m&&!p;g++){const w=f.attrs[g];w[0]==="class"&&(w[1]=`${w[1]} ${t.classes}`,p=!0)}p||f.attrs.push(["class",t.classes])}if(t.removeSrc){const p=f.attrs.find(([g])=>g==="src");f.attrs.push(["data-src",p[1]]),Mf(f,"src")}}})}const $g=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Ug(e,t){const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==126||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(e.src.charCodeAt(e.pos)===126){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;const a=e.src.slice(n+1,e.pos);if(a.match(/(^|[^\\])(\\\\)*\s/))return e.pos=n,!1;e.posMax=e.pos,e.pos=n+1;const s=e.push("sub_open","sub",1);s.markup="~";const c=e.push("text","",0);c.content=a.replace($g,"$1");const f=e.push("sub_close","sub",-1);return f.markup="~",e.pos=e.posMax+1,e.posMax=r,!0}function Wg(e){e.inline.ruler.after("emphasis","sub",Ug)}const Gg=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Xg(e,t){const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==94||t||n+2>=r)return!1;e.pos=n+1;let i=!1;for(;e.pos<r;){if(e.src.charCodeAt(e.pos)===94){i=!0;break}e.md.inline.skipToken(e)}if(!i||n+1===e.pos)return e.pos=n,!1;const a=e.src.slice(n+1,e.pos);if(a.match(/(^|[^\\])(\\\\)*\s/))return e.pos=n,!1;e.posMax=e.pos,e.pos=n+1;const s=e.push("sup_open","sup",1);s.markup="^";const c=e.push("text","",0);c.content=a.replace(Gg,"$1");const f=e.push("sup_close","sup",-1);return f.markup="^",e.pos=e.posMax+1,e.posMax=r,!0}function Yg(e){e.inline.ruler.after("emphasis","sup",Xg)}var Zg=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Nf=new Set,Nc=typeof process=="object"&&process?process:{},_f=(e,t,r,n)=>{typeof Nc.emitWarning=="function"?Nc.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Ro=globalThis.AbortController,zf=globalThis.AbortSignal;if(typeof Ro>"u"){zf=class{constructor(){Bt(this,"onabort");Bt(this,"_onabort",[]);Bt(this,"reason");Bt(this,"aborted",!1)}addEventListener(r,n){this._onabort.push(n)}},Ro=class{constructor(){Bt(this,"signal",new zf);t()}abort(r){var n,i;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let a of this.signal._onabort)a(r);(i=(n=this.signal).onabort)==null||i.call(n,r)}}};let e=(($h=Nc.env)==null?void 0:$h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,_f("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Kg=e=>!Nf.has(e),$n=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),If=e=>$n(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Po:null:null,Po=class extends Array{constructor(t){super(t),this.fill(0)}},Qg=(an=class{constructor(t,r){Bt(this,"heap");Bt(this,"length");if(!V(an,ti))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){let r=If(t);if(!r)return[];Xe(an,ti,!0);let n=new an(t,r);return Xe(an,ti,!1),n}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},ti=new WeakMap,ct(an,ti,!1),an),Jg=(ui=class{constructor(t){ct(this,Oe);ct(this,vr);ct(this,ur);ct(this,Nr);ct(this,wa);ct(this,_r);ct(this,ri);ct(this,ni);ct(this,zr);Bt(this,"ttl");Bt(this,"ttlResolution");Bt(this,"ttlAutopurge");Bt(this,"updateAgeOnGet");Bt(this,"updateAgeOnHas");Bt(this,"allowStale");Bt(this,"noDisposeOnSet");Bt(this,"noUpdateTTL");Bt(this,"maxEntrySize");Bt(this,"sizeCalculation");Bt(this,"noDeleteOnFetchRejection");Bt(this,"noDeleteOnStaleGet");Bt(this,"allowStaleOnFetchAbort");Bt(this,"allowStaleOnFetchRejection");Bt(this,"ignoreFetchAbort");ct(this,f0);ct(this,Ir);ct(this,i0);ct(this,_t);ct(this,tt);ct(this,q0);ct(this,or);ct(this,T0);ct(this,A0);ct(this,Or);ct(this,D0);ct(this,Lr);ct(this,Rr);ct(this,sr);ct(this,lr);ct(this,Pr);ct(this,Xn);ct(this,j0);ct(this,ai);ct(this,xa,()=>{});ct(this,An,()=>{});ct(this,mu,()=>{});ct(this,cr,()=>!1);ct(this,Aa,t=>{});ct(this,ii,(t,r,n)=>{});ct(this,pu,(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Bt(this,Uh,"LRUCache");let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:a,updateAgeOnGet:s,updateAgeOnHas:c,allowStale:f,dispose:p,onInsert:g,disposeAfter:m,noDisposeOnSet:w,noUpdateTTL:k,maxSize:C=0,maxEntrySize:B=0,sizeCalculation:_,fetchMethod:T,memoMethod:S,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:z,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:$,ignoreFetchAbort:Y,perf:q}=t;if(q!==void 0&&typeof(q==null?void 0:q.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(Xe(this,zr,q??Zg),r!==0&&!$n(r))throw new TypeError("max option must be a nonnegative integer");let pe=r?If(r):Array;if(!pe)throw new Error("invalid max value: "+r);if(Xe(this,vr,r),Xe(this,ur,C),this.maxEntrySize=B||V(this,ur),this.sizeCalculation=_,this.sizeCalculation){if(!V(this,ur)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(Xe(this,ni,S),T!==void 0&&typeof T!="function")throw new TypeError("fetchMethod must be a function if specified");if(Xe(this,ri,T),Xe(this,Xn,!!T),Xe(this,i0,new Map),Xe(this,_t,new Array(r).fill(void 0)),Xe(this,tt,new Array(r).fill(void 0)),Xe(this,q0,new pe(r)),Xe(this,or,new pe(r)),Xe(this,T0,0),Xe(this,A0,0),Xe(this,Or,Qg.create(r)),Xe(this,f0,0),Xe(this,Ir,0),typeof p=="function"&&Xe(this,Nr,p),typeof g=="function"&&Xe(this,wa,g),typeof m=="function"?(Xe(this,_r,m),Xe(this,D0,[])):(Xe(this,_r,void 0),Xe(this,D0,void 0)),Xe(this,Pr,!!V(this,Nr)),Xe(this,ai,!!V(this,wa)),Xe(this,j0,!!V(this,_r)),this.noDisposeOnSet=!!w,this.noUpdateTTL=!!k,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!R,this.allowStaleOnFetchAbort=!!$,this.ignoreFetchAbort=!!Y,this.maxEntrySize!==0){if(V(this,ur)!==0&&!$n(V(this,ur)))throw new TypeError("maxSize must be a positive integer if specified");if(!$n(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");je(this,Oe,lm).call(this)}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!z,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!c,this.ttlResolution=$n(i)||i===0?i:1,this.ttlAutopurge=!!a,this.ttl=n||0,this.ttl){if(!$n(this.ttl))throw new TypeError("ttl must be a positive integer if specified");je(this,Oe,M1).call(this)}if(V(this,vr)===0&&this.ttl===0&&V(this,ur)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!V(this,vr)&&!V(this,ur)){let he="LRU_CACHE_UNBOUNDED";Kg(he)&&(Nf.add(he),_f("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",he,ui))}}get perf(){return V(this,zr)}static unsafeExposeInternals(t){return{starts:V(t,Rr),ttls:V(t,sr),autopurgeTimers:V(t,lr),sizes:V(t,Lr),keyMap:V(t,i0),keyList:V(t,_t),valList:V(t,tt),next:V(t,q0),prev:V(t,or),get head(){return V(t,T0)},get tail(){return V(t,A0)},free:V(t,Or),isBackgroundFetch:r=>{var n;return je(n=t,Oe,Ot).call(n,r)},backgroundFetch:(r,n,i,a)=>{var s;return je(s=t,Oe,_s).call(s,r,n,i,a)},moveToTail:r=>{var n;return je(n=t,Oe,ku).call(n,r)},indexes:r=>{var n;return je(n=t,Oe,ia).call(n,r)},rindexes:r=>{var n;return je(n=t,Oe,ua).call(n,r)},isStale:r=>{var n;return V(n=t,cr).call(n,r)}}}get max(){return V(this,vr)}get maxSize(){return V(this,ur)}get calculatedSize(){return V(this,Ir)}get size(){return V(this,f0)}get fetchMethod(){return V(this,ri)}get memoMethod(){return V(this,ni)}get dispose(){return V(this,Nr)}get onInsert(){return V(this,wa)}get disposeAfter(){return V(this,_r)}getRemainingTTL(t){return V(this,i0).has(t)?1/0:0}*entries(){for(let t of je(this,Oe,ia).call(this))V(this,tt)[t]!==void 0&&V(this,_t)[t]!==void 0&&!je(this,Oe,Ot).call(this,V(this,tt)[t])&&(yield[V(this,_t)[t],V(this,tt)[t]])}*rentries(){for(let t of je(this,Oe,ua).call(this))V(this,tt)[t]!==void 0&&V(this,_t)[t]!==void 0&&!je(this,Oe,Ot).call(this,V(this,tt)[t])&&(yield[V(this,_t)[t],V(this,tt)[t]])}*keys(){for(let t of je(this,Oe,ia).call(this)){let r=V(this,_t)[t];r!==void 0&&!je(this,Oe,Ot).call(this,V(this,tt)[t])&&(yield r)}}*rkeys(){for(let t of je(this,Oe,ua).call(this)){let r=V(this,_t)[t];r!==void 0&&!je(this,Oe,Ot).call(this,V(this,tt)[t])&&(yield r)}}*values(){for(let t of je(this,Oe,ia).call(this))V(this,tt)[t]!==void 0&&!je(this,Oe,Ot).call(this,V(this,tt)[t])&&(yield V(this,tt)[t])}*rvalues(){for(let t of je(this,Oe,ua).call(this))V(this,tt)[t]!==void 0&&!je(this,Oe,Ot).call(this,V(this,tt)[t])&&(yield V(this,tt)[t])}[(Wh=Symbol.iterator,Uh=Symbol.toStringTag,Wh)](){return this.entries()}find(t,r={}){for(let n of je(this,Oe,ia).call(this)){let i=V(this,tt)[n],a=je(this,Oe,Ot).call(this,i)?i.__staleWhileFetching:i;if(a!==void 0&&t(a,V(this,_t)[n],this))return this.get(V(this,_t)[n],r)}}forEach(t,r=this){for(let n of je(this,Oe,ia).call(this)){let i=V(this,tt)[n],a=je(this,Oe,Ot).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&t.call(r,a,V(this,_t)[n],this)}}rforEach(t,r=this){for(let n of je(this,Oe,ua).call(this)){let i=V(this,tt)[n],a=je(this,Oe,Ot).call(this,i)?i.__staleWhileFetching:i;a!==void 0&&t.call(r,a,V(this,_t)[n],this)}}purgeStale(){let t=!1;for(let r of je(this,Oe,ua).call(this,{allowStale:!0}))V(this,cr).call(this,r)&&(je(this,Oe,oa).call(this,V(this,_t)[r],"expire"),t=!0);return t}info(t){let r=V(this,i0).get(t);if(r===void 0)return;let n=V(this,tt)[r],i=je(this,Oe,Ot).call(this,n)?n.__staleWhileFetching:n;if(i===void 0)return;let a={value:i};if(V(this,sr)&&V(this,Rr)){let s=V(this,sr)[r],c=V(this,Rr)[r];if(s&&c){let f=s-(V(this,zr).now()-c);a.ttl=f,a.start=Date.now()}}return V(this,Lr)&&(a.size=V(this,Lr)[r]),a}dump(){let t=[];for(let r of je(this,Oe,ia).call(this,{allowStale:!0})){let n=V(this,_t)[r],i=V(this,tt)[r],a=je(this,Oe,Ot).call(this,i)?i.__staleWhileFetching:i;if(a===void 0||n===void 0)continue;let s={value:a};if(V(this,sr)&&V(this,Rr)){s.ttl=V(this,sr)[r];let c=V(this,zr).now()-V(this,Rr)[r];s.start=Math.floor(Date.now()-c)}V(this,Lr)&&(s.size=V(this,Lr)[r]),t.unshift([n,s])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=V(this,zr).now()-i}this.set(r,n.value,n)}}set(t,r,n={}){var w,k,C,B,_,T,S;if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:a,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:c=this.sizeCalculation,status:f}=n,{noUpdateTTL:p=this.noUpdateTTL}=n,g=V(this,pu).call(this,t,r,n.size||0,c);if(this.maxEntrySize&&g>this.maxEntrySize)return f&&(f.set="miss",f.maxEntrySizeExceeded=!0),je(this,Oe,oa).call(this,t,"set"),this;let m=V(this,f0)===0?void 0:V(this,i0).get(t);if(m===void 0)m=V(this,f0)===0?V(this,A0):V(this,Or).length!==0?V(this,Or).pop():V(this,f0)===V(this,vr)?je(this,Oe,Ns).call(this,!1):V(this,f0),V(this,_t)[m]=t,V(this,tt)[m]=r,V(this,i0).set(t,m),V(this,q0)[V(this,A0)]=m,V(this,or)[m]=V(this,A0),Xe(this,A0,m),Ms(this,f0)._++,V(this,ii).call(this,m,g,f),f&&(f.set="add"),p=!1,V(this,ai)&&((w=V(this,wa))==null||w.call(this,r,t,"add"));else{je(this,Oe,ku).call(this,m);let F=V(this,tt)[m];if(r!==F){if(V(this,Xn)&&je(this,Oe,Ot).call(this,F)){F.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:z}=F;z!==void 0&&!s&&(V(this,Pr)&&((k=V(this,Nr))==null||k.call(this,z,t,"set")),V(this,j0)&&((C=V(this,D0))==null||C.push([z,t,"set"])))}else s||(V(this,Pr)&&((B=V(this,Nr))==null||B.call(this,F,t,"set")),V(this,j0)&&((_=V(this,D0))==null||_.push([F,t,"set"])));if(V(this,Aa).call(this,m),V(this,ii).call(this,m,g,f),V(this,tt)[m]=r,f){f.set="replace";let z=F&&je(this,Oe,Ot).call(this,F)?F.__staleWhileFetching:F;z!==void 0&&(f.oldValue=z)}}else f&&(f.set="update");V(this,ai)&&((T=this.onInsert)==null||T.call(this,r,t,r===F?"update":"replace"))}if(i!==0&&!V(this,sr)&&je(this,Oe,M1).call(this),V(this,sr)&&(p||V(this,mu).call(this,m,i,a),f&&V(this,An).call(this,f,m)),!s&&V(this,j0)&&V(this,D0)){let F=V(this,D0),z;for(;z=F==null?void 0:F.shift();)(S=V(this,_r))==null||S.call(this,...z)}return this}pop(){var t;try{for(;V(this,f0);){let r=V(this,tt)[V(this,T0)];if(je(this,Oe,Ns).call(this,!0),je(this,Oe,Ot).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(V(this,j0)&&V(this,D0)){let r=V(this,D0),n;for(;n=r==null?void 0:r.shift();)(t=V(this,_r))==null||t.call(this,...n)}}}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,a=V(this,i0).get(t);if(a!==void 0){let s=V(this,tt)[a];if(je(this,Oe,Ot).call(this,s)&&s.__staleWhileFetching===void 0)return!1;if(V(this,cr).call(this,a))i&&(i.has="stale",V(this,An).call(this,i,a));else return n&&V(this,xa).call(this,a),i&&(i.has="hit",V(this,An).call(this,i,a)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=V(this,i0).get(t);if(i===void 0||!n&&V(this,cr).call(this,i))return;let a=V(this,tt)[i];return je(this,Oe,Ot).call(this,a)?a.__staleWhileFetching:a}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:f=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:w=this.allowStaleOnFetchRejection,ignoreFetchAbort:k=this.ignoreFetchAbort,allowStaleOnFetchAbort:C=this.allowStaleOnFetchAbort,context:B,forceRefresh:_=!1,status:T,signal:S}=r;if(!V(this,Xn))return T&&(T.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:a,status:T});let F={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:a,ttl:s,noDisposeOnSet:c,size:f,sizeCalculation:p,noUpdateTTL:g,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:C,ignoreFetchAbort:k,status:T,signal:S},z=V(this,i0).get(t);if(z===void 0){T&&(T.fetch="miss");let R=je(this,Oe,_s).call(this,t,z,F,B);return R.__returned=R}else{let R=V(this,tt)[z];if(je(this,Oe,Ot).call(this,R)){let pe=n&&R.__staleWhileFetching!==void 0;return T&&(T.fetch="inflight",pe&&(T.returnedStale=!0)),pe?R.__staleWhileFetching:R.__returned=R}let $=V(this,cr).call(this,z);if(!_&&!$)return T&&(T.fetch="hit"),je(this,Oe,ku).call(this,z),i&&V(this,xa).call(this,z),T&&V(this,An).call(this,T,z),R;let Y=je(this,Oe,_s).call(this,t,z,F,B),q=Y.__staleWhileFetching!==void 0&&n;return T&&(T.fetch=$?"stale":"refresh",q&&$&&(T.returnedStale=!0)),q?Y.__staleWhileFetching:Y.__returned=Y}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=V(this,ni);if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:a,...s}=r,c=this.get(t,s);if(!a&&c!==void 0)return c;let f=n(t,c,{options:s,context:i});return this.set(t,f,s),f}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:s}=r,c=V(this,i0).get(t);if(c!==void 0){let f=V(this,tt)[c],p=je(this,Oe,Ot).call(this,f);return s&&V(this,An).call(this,s,c),V(this,cr).call(this,c)?(s&&(s.get="stale"),p?(s&&n&&f.__staleWhileFetching!==void 0&&(s.returnedStale=!0),n?f.__staleWhileFetching:void 0):(a||je(this,Oe,oa).call(this,t,"expire"),s&&n&&(s.returnedStale=!0),n?f:void 0)):(s&&(s.get="hit"),p?f.__staleWhileFetching:(je(this,Oe,ku).call(this,c),i&&V(this,xa).call(this,c),f))}else s&&(s.get="miss")}delete(t){return je(this,Oe,oa).call(this,t,"delete")}clear(){return je(this,Oe,z1).call(this,"delete")}},vr=new WeakMap,ur=new WeakMap,Nr=new WeakMap,wa=new WeakMap,_r=new WeakMap,ri=new WeakMap,ni=new WeakMap,zr=new WeakMap,f0=new WeakMap,Ir=new WeakMap,i0=new WeakMap,_t=new WeakMap,tt=new WeakMap,q0=new WeakMap,or=new WeakMap,T0=new WeakMap,A0=new WeakMap,Or=new WeakMap,D0=new WeakMap,Lr=new WeakMap,Rr=new WeakMap,sr=new WeakMap,lr=new WeakMap,Pr=new WeakMap,Xn=new WeakMap,j0=new WeakMap,ai=new WeakMap,Oe=new WeakSet,M1=function(){let t=new Po(V(this,vr)),r=new Po(V(this,vr));Xe(this,sr,t),Xe(this,Rr,r);let n=this.ttlAutopurge?new Array(V(this,vr)):void 0;Xe(this,lr,n),Xe(this,mu,(c,f,p=V(this,zr).now())=>{r[c]=f!==0?p:0,t[c]=f,i(c,f)}),Xe(this,xa,c=>{r[c]=t[c]!==0?V(this,zr).now():0,i(c,t[c])});let i=this.ttlAutopurge?(c,f)=>{if(n!=null&&n[c]&&(clearTimeout(n[c]),n[c]=void 0),f&&f!==0&&n){let p=setTimeout(()=>{V(this,cr).call(this,c)&&je(this,Oe,oa).call(this,V(this,_t)[c],"expire")},f+1);p.unref&&p.unref(),n[c]=p}}:()=>{};Xe(this,An,(c,f)=>{if(t[f]){let p=t[f],g=r[f];if(!p||!g)return;c.ttl=p,c.start=g,c.now=a||s();let m=c.now-g;c.remainingTTL=p-m}});let a=0,s=()=>{let c=V(this,zr).now();if(this.ttlResolution>0){a=c;let f=setTimeout(()=>a=0,this.ttlResolution);f.unref&&f.unref()}return c};this.getRemainingTTL=c=>{let f=V(this,i0).get(c);if(f===void 0)return 0;let p=t[f],g=r[f];if(!p||!g)return 1/0;let m=(a||s())-g;return p-m},Xe(this,cr,c=>{let f=r[c],p=t[c];return!!p&&!!f&&(a||s())-f>p})},xa=new WeakMap,An=new WeakMap,mu=new WeakMap,cr=new WeakMap,lm=function(){let t=new Po(V(this,vr));Xe(this,Ir,0),Xe(this,Lr,t),Xe(this,Aa,r=>{Xe(this,Ir,V(this,Ir)-t[r]),t[r]=0}),Xe(this,pu,(r,n,i,a)=>{if(je(this,Oe,Ot).call(this,n))return 0;if(!$n(i))if(a){if(typeof a!="function")throw new TypeError("sizeCalculation must be a function");if(i=a(n,r),!$n(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i}),Xe(this,ii,(r,n,i)=>{if(t[r]=n,V(this,ur)){let a=V(this,ur)-t[r];for(;V(this,Ir)>a;)je(this,Oe,Ns).call(this,!0)}Xe(this,Ir,V(this,Ir)+t[r]),i&&(i.entrySize=n,i.totalCalculatedSize=V(this,Ir))})},Aa=new WeakMap,ii=new WeakMap,pu=new WeakMap,ia=function*({allowStale:t=this.allowStale}={}){if(V(this,f0))for(let r=V(this,A0);!(!je(this,Oe,N1).call(this,r)||((t||!V(this,cr).call(this,r))&&(yield r),r===V(this,T0)));)r=V(this,or)[r]},ua=function*({allowStale:t=this.allowStale}={}){if(V(this,f0))for(let r=V(this,T0);!(!je(this,Oe,N1).call(this,r)||((t||!V(this,cr).call(this,r))&&(yield r),r===V(this,A0)));)r=V(this,q0)[r]},N1=function(t){return t!==void 0&&V(this,i0).get(V(this,_t)[t])===t},Ns=function(t){var a,s,c;let r=V(this,T0),n=V(this,_t)[r],i=V(this,tt)[r];return V(this,Xn)&&je(this,Oe,Ot).call(this,i)?i.__abortController.abort(new Error("evicted")):(V(this,Pr)||V(this,j0))&&(V(this,Pr)&&((a=V(this,Nr))==null||a.call(this,i,n,"evict")),V(this,j0)&&((s=V(this,D0))==null||s.push([i,n,"evict"]))),V(this,Aa).call(this,r),(c=V(this,lr))!=null&&c[r]&&(clearTimeout(V(this,lr)[r]),V(this,lr)[r]=void 0),t&&(V(this,_t)[r]=void 0,V(this,tt)[r]=void 0,V(this,Or).push(r)),V(this,f0)===1?(Xe(this,T0,Xe(this,A0,0)),V(this,Or).length=0):Xe(this,T0,V(this,q0)[r]),V(this,i0).delete(n),Ms(this,f0)._--,r},_s=function(t,r,n,i){let a=r===void 0?void 0:V(this,tt)[r];if(je(this,Oe,Ot).call(this,a))return a;let s=new Ro,{signal:c}=n;c==null||c.addEventListener("abort",()=>s.abort(c.reason),{signal:s.signal});let f={signal:s.signal,options:n,context:i},p=(B,_=!1)=>{let{aborted:T}=s.signal,S=n.ignoreFetchAbort&&B!==void 0,F=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&B!==void 0);if(n.status&&(T&&!_?(n.status.fetchAborted=!0,n.status.fetchError=s.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),T&&!S&&!_)return m(s.signal.reason,F);let z=k,R=V(this,tt)[r];return(R===k||S&&_&&R===void 0)&&(B===void 0?z.__staleWhileFetching!==void 0?V(this,tt)[r]=z.__staleWhileFetching:je(this,Oe,oa).call(this,t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,B,f.options))),B},g=B=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=B),m(B,!1)),m=(B,_)=>{let{aborted:T}=s.signal,S=T&&n.allowStaleOnFetchAbort,F=S||n.allowStaleOnFetchRejection,z=F||n.noDeleteOnFetchRejection,R=k;if(V(this,tt)[r]===k&&(!z||!_&&R.__staleWhileFetching===void 0?je(this,Oe,oa).call(this,t,"fetch"):S||(V(this,tt)[r]=R.__staleWhileFetching)),F)return n.status&&R.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),R.__staleWhileFetching;if(R.__returned===R)throw B},w=(B,_)=>{var S;let T=(S=V(this,ri))==null?void 0:S.call(this,t,a,f);T&&T instanceof Promise&&T.then(F=>B(F===void 0?void 0:F),_),s.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(B(void 0),n.allowStaleOnFetchAbort&&(B=F=>p(F,!0)))})};n.status&&(n.status.fetchDispatched=!0);let k=new Promise(w).then(p,g),C=Object.assign(k,{__abortController:s,__staleWhileFetching:a,__returned:void 0});return r===void 0?(this.set(t,C,{...f.options,status:void 0}),r=V(this,i0).get(t)):V(this,tt)[r]=C,C},Ot=function(t){if(!V(this,Xn))return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Ro},_1=function(t,r){V(this,or)[r]=t,V(this,q0)[t]=r},ku=function(t){t!==V(this,A0)&&(t===V(this,T0)?Xe(this,T0,V(this,q0)[t]):je(this,Oe,_1).call(this,V(this,or)[t],V(this,q0)[t]),je(this,Oe,_1).call(this,V(this,A0),t),Xe(this,A0,t))},oa=function(t,r){var i,a,s,c,f,p;let n=!1;if(V(this,f0)!==0){let g=V(this,i0).get(t);if(g!==void 0)if((i=V(this,lr))!=null&&i[g]&&(clearTimeout((a=V(this,lr))==null?void 0:a[g]),V(this,lr)[g]=void 0),n=!0,V(this,f0)===1)je(this,Oe,z1).call(this,r);else{V(this,Aa).call(this,g);let m=V(this,tt)[g];if(je(this,Oe,Ot).call(this,m)?m.__abortController.abort(new Error("deleted")):(V(this,Pr)||V(this,j0))&&(V(this,Pr)&&((s=V(this,Nr))==null||s.call(this,m,t,r)),V(this,j0)&&((c=V(this,D0))==null||c.push([m,t,r]))),V(this,i0).delete(t),V(this,_t)[g]=void 0,V(this,tt)[g]=void 0,g===V(this,A0))Xe(this,A0,V(this,or)[g]);else if(g===V(this,T0))Xe(this,T0,V(this,q0)[g]);else{let w=V(this,or)[g];V(this,q0)[w]=V(this,q0)[g];let k=V(this,q0)[g];V(this,or)[k]=V(this,or)[g]}Ms(this,f0)._--,V(this,Or).push(g)}}if(V(this,j0)&&((f=V(this,D0))!=null&&f.length)){let g=V(this,D0),m;for(;m=g==null?void 0:g.shift();)(p=V(this,_r))==null||p.call(this,...m)}return n},z1=function(t){var r,n,i,a;for(let s of je(this,Oe,ua).call(this,{allowStale:!0})){let c=V(this,tt)[s];if(je(this,Oe,Ot).call(this,c))c.__abortController.abort(new Error("deleted"));else{let f=V(this,_t)[s];V(this,Pr)&&((r=V(this,Nr))==null||r.call(this,c,f,t)),V(this,j0)&&((n=V(this,D0))==null||n.push([c,f,t]))}}if(V(this,i0).clear(),V(this,tt).fill(void 0),V(this,_t).fill(void 0),V(this,sr)&&V(this,Rr)){V(this,sr).fill(0),V(this,Rr).fill(0);for(let s of V(this,lr)??[])s!==void 0&&clearTimeout(s);(i=V(this,lr))==null||i.fill(void 0)}if(V(this,Lr)&&V(this,Lr).fill(0),Xe(this,T0,0),Xe(this,A0,0),V(this,Or).length=0,Xe(this,Ir,0),Xe(this,f0,0),V(this,j0)&&V(this,D0)){let s=V(this,D0),c;for(;c=s==null?void 0:s.shift();)(a=V(this,_r))==null||a.call(this,...c)}},ui);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vo=function(t){return t.tagName==="IMG"},eb=function(t){return NodeList.prototype.isPrototypeOf(t)},Ho=function(t){return t&&t.nodeType===1},Of=function(t){var r=t.currentSrc||t.src;return r.substr(-4).toLowerCase()===".svg"},Lf=function(t){try{return Array.isArray(t)?t.filter(Vo):eb(t)?[].slice.call(t).filter(Vo):Ho(t)?[t].filter(Vo):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(Vo):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
36
581
|
Expects a CSS selector, a Node element, a NodeList or an array.
|
|
37
|
-
See: https://github.com/francoischalifour/medium-zoom`)}},sp=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},lp=function(t){var n=t.getBoundingClientRect(),r=n.top,u=n.left,o=n.width,a=n.height,s=t.cloneNode(),l=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,d=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return s.removeAttribute("id"),s.style.position="absolute",s.style.top=r+l+"px",s.style.left=u+d+"px",s.style.width=o+"px",s.style.height=a+"px",s.style.transform="",s},Nn=function(t,n){var r=on({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),u},cp=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(H){function I(){}H(I,I)},u=function(H){var I=H.target;if(I===G){m();return}g.indexOf(I)!==-1&&x({target:I})},o=function(){if(!(A||!_.original)){var H=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(N-H)>F.scrollOffset&&setTimeout(m,150)}},a=function(H){var I=H.key||H.keyCode;(I==="Escape"||I==="Esc"||I===27)&&m()},s=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=H;if(H.background&&(G.style.background=H.background),H.container&&H.container instanceof Object&&(I.container=on({},F.container,H.container)),H.template){var X=Ao(H.template)?H.template:document.querySelector(H.template);I.template=X}return F=on({},F,I),g.forEach(function(q){q.dispatchEvent(Nn("medium-zoom:update",{detail:{zoom:$}}))}),$},l=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(on({},F,H))},d=function(){for(var H=arguments.length,I=Array(H),X=0;X<H;X++)I[X]=arguments[X];var q=I.reduce(function(D,j){return[].concat(D,Xs(j))},[]);return q.filter(function(D){return g.indexOf(D)===-1}).forEach(function(D){g.push(D),D.classList.add("medium-zoom-image")}),w.forEach(function(D){var j=D.type,z=D.listener,Z=D.options;q.forEach(function(ue){ue.addEventListener(j,z,Z)})}),$},f=function(){for(var H=arguments.length,I=Array(H),X=0;X<H;X++)I[X]=arguments[X];_.zoomed&&m();var q=I.length>0?I.reduce(function(D,j){return[].concat(D,Xs(j))},[]):g;return q.forEach(function(D){D.classList.remove("medium-zoom-image"),D.dispatchEvent(Nn("medium-zoom:detach",{detail:{zoom:$}}))}),g=g.filter(function(D){return q.indexOf(D)===-1}),$},c=function(H,I){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(q){q.addEventListener("medium-zoom:"+H,I,X)}),w.push({type:"medium-zoom:"+H,listener:I,options:X}),$},h=function(H,I){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(q){q.removeEventListener("medium-zoom:"+H,I,X)}),w=w.filter(function(q){return!(q.type==="medium-zoom:"+H&&q.listener.toString()===I.toString())}),$},p=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=H.target,X=function(){var D={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},j=void 0,z=void 0;if(F.container)if(F.container instanceof Object)D=on({},D,F.container),j=D.width-D.left-D.right-F.margin*2,z=D.height-D.top-D.bottom-F.margin*2;else{var Z=Ao(F.container)?F.container:document.querySelector(F.container),ue=Z.getBoundingClientRect(),C=ue.width,S=ue.height,T=ue.left,O=ue.top;D=on({},D,{width:C,height:S,left:T,top:O})}j=j||D.width-F.margin*2,z=z||D.height-F.margin*2;var P=_.zoomedHd||_.original,U=Ws(P)?j:P.naturalWidth||j,L=Ws(P)?z:P.naturalHeight||z,R=P.getBoundingClientRect(),B=R.top,Q=R.left,re=R.width,oe=R.height,ce=Math.min(Math.max(re,U),j)/re,le=Math.min(Math.max(oe,L),z)/oe,he=Math.min(ce,le),Be=(-Q+(j-re)/2+F.margin+D.left)/he,kt=(-B+(z-oe)/2+F.margin+D.top)/he,Ge="scale("+he+") translate3d("+Be+"px, "+kt+"px, 0)";_.zoomed.style.transform=Ge,_.zoomedHd&&(_.zoomedHd.style.transform=Ge)};return new r(function(q){if(I&&g.indexOf(I)===-1){q($);return}var D=function C(){A=!1,_.zoomed.removeEventListener("transitionend",C),_.original.dispatchEvent(Nn("medium-zoom:opened",{detail:{zoom:$}})),q($)};if(_.zoomed){q($);return}if(I)_.original=I;else if(g.length>0){var j=g;_.original=j[0]}else{q($);return}if(_.original.dispatchEvent(Nn("medium-zoom:open",{detail:{zoom:$}})),N=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,A=!0,_.zoomed=lp(_.original),document.body.appendChild(G),F.template){var z=Ao(F.template)?F.template:document.querySelector(F.template);_.template=document.createElement("div"),_.template.appendChild(z.content.cloneNode(!0)),document.body.appendChild(_.template)}if(_.original.parentElement&&_.original.parentElement.tagName==="PICTURE"&&_.original.currentSrc&&(_.zoomed.src=_.original.currentSrc),document.body.appendChild(_.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),_.original.classList.add("medium-zoom-image--hidden"),_.zoomed.classList.add("medium-zoom-image--opened"),_.zoomed.addEventListener("click",m),_.zoomed.addEventListener("transitionend",D),_.original.getAttribute("data-zoom-src")){_.zoomedHd=_.zoomed.cloneNode(),_.zoomedHd.removeAttribute("srcset"),_.zoomedHd.removeAttribute("sizes"),_.zoomedHd.removeAttribute("loading"),_.zoomedHd.src=_.zoomed.getAttribute("data-zoom-src"),_.zoomedHd.onerror=function(){clearInterval(Z),console.warn("Unable to reach the zoom image target "+_.zoomedHd.src),_.zoomedHd=null,X()};var Z=setInterval(function(){_.zoomedHd.complete&&(clearInterval(Z),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",m),document.body.appendChild(_.zoomedHd),X())},10)}else if(_.original.hasAttribute("srcset")){_.zoomedHd=_.zoomed.cloneNode(),_.zoomedHd.removeAttribute("sizes"),_.zoomedHd.removeAttribute("loading");var ue=_.zoomedHd.addEventListener("load",function(){_.zoomedHd.removeEventListener("load",ue),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",m),document.body.appendChild(_.zoomedHd),X()})}else X()})},m=function(){return new r(function(H){if(A||!_.original){H($);return}var I=function X(){_.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(_.zoomed),_.zoomedHd&&document.body.removeChild(_.zoomedHd),document.body.removeChild(G),_.zoomed.classList.remove("medium-zoom-image--opened"),_.template&&document.body.removeChild(_.template),A=!1,_.zoomed.removeEventListener("transitionend",X),_.original.dispatchEvent(Nn("medium-zoom:closed",{detail:{zoom:$}})),_.original=null,_.zoomed=null,_.zoomedHd=null,_.template=null,H($)};A=!0,document.body.classList.remove("medium-zoom--opened"),_.zoomed.style.transform="",_.zoomedHd&&(_.zoomedHd.style.transform=""),_.template&&(_.template.style.transition="opacity 150ms",_.template.style.opacity=0),_.original.dispatchEvent(Nn("medium-zoom:close",{detail:{zoom:$}})),_.zoomed.addEventListener("transitionend",I)})},x=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=H.target;return _.original?m():p({target:I})},v=function(){return F},y=function(){return g},b=function(){return _.original},g=[],w=[],A=!1,N=0,F=n,_={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?F=t:(t||typeof t=="string")&&d(t),F=on({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},F);var G=sp(F.background);document.addEventListener("click",u),document.addEventListener("keyup",a),document.addEventListener("scroll",o),window.addEventListener("resize",m);var $={open:p,close:m,toggle:x,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:v,getImages:y,getZoomedImage:b};return $};function dp(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css",n==="top"&&r.firstChild?r.insertBefore(u,r.firstChild):r.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e))}}var fp=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";dp(fp);const qt={hljs:`${K}-hljs`,hlcss:`${K}-hlCss`,mermaidM:`${K}-mermaid-m`,mermaid:`${K}-mermaid`,katexjs:`${K}-katex`,katexcss:`${K}-katexCss`,echarts:`${K}-echarts`},hp=(e,{editorId:t,rootRef:n,setting:r})=>{const u=ht.editorExtensions.highlight,o=ht.editorExtensionsAttrs.highlight;i.provide("editorId",t),i.provide("rootRef",n),i.provide("theme",i.computed(()=>e.theme)),i.provide("language",i.computed(()=>e.language)),i.provide("highlight",i.computed(()=>{const{js:s}=u,l={...Wu,...u.css},{js:d,css:f={}}=o||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:Wu.atom[c],p=l[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][c]:f.atom?f.atom[c]:{};return{js:{src:s,...d},css:{href:h,...p}}})),i.provide("showCodeRowNumber",e.showCodeRowNumber);const a=i.computed(()=>{const s={...Vs,...ht.editorConfig.languageUserDefined};return $u(hr(Vs["en-US"]),s[e.language]||{})});return i.provide("usedLanguageText",a),i.provide("previewTheme",i.computed(()=>e.previewTheme)),i.provide("customIcon",i.computed(()=>e.customIcon)),i.provide("setting",i.computed(()=>r?{...r}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},mp=e=>{const t=i.useId();return e.id||e.editorId||`${K}-${t}`},pp=(e,t,n)=>{const r=i.inject("editorId"),u=i.inject("rootRef"),o=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{u.value.querySelectorAll(`#${r} .${K}-preview .${K}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${K}-copy-button:not([data-processed])`);h&&(h.onclick=p=>{p.preventDefault(),clearTimeout(c);const m=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:x,successTips:v,failTips:y}=o.value.copyCode;let b=v;Rs(e.formatCopiedText(m||"")).catch(()=>{b=y}).finally(()=>{h.dataset.isIcon?h.dataset.tips=b:h.innerHTML=b,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=x:h.innerHTML=x},1500)})},h.setAttribute("data-processed","true"))})},l=()=>{i.nextTick(s)},d=f=>{f&&i.nextTick(s)};i.watch([t,n],l),i.watch(()=>a.value.preview,d),i.watch(()=>a.value.htmlPreview,d),i.onMounted(s)},gp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o}=ht;let a=u.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var x;if(e.noEcharts||a)return;const m=u.echarts.js;Xt("script",{...(x=o.echarts)==null?void 0:x.js,src:m,id:qt.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(m=!1)=>{if(!d.length){m&&(f.forEach(b=>{var g;(g=b.dispose)==null||g.call(b)}),c.forEach(b=>{var g;(g=b.disconnect)==null||g.call(b)}),f=[],c=[]);return}const x=[],v=[],y=[];d.forEach((b,g)=>{var N,F;const w=f[g],A=c[g];if(m||!b||!b.isConnected||r!=null&&r.value&&!r.value.contains(b)){(N=w==null?void 0:w.dispose)==null||N.call(w),(F=A==null?void 0:A.disconnect)==null||F.call(A);return}x.push(b),w&&v.push(w),A&&y.push(A)}),d=x,f=v,c=y},p=()=>{h(),!e.noEcharts&&a&&Array.from(r.value.querySelectorAll(`#${t} div.${K}-echarts:not([data-processed])`)).forEach(m=>{if(m.dataset.closed==="false")return!1;try{const x=new Function(`return ${m.innerText}`)(),v=a.init(m,n.value);v.setOption(x),m.setAttribute("data-processed",""),d.push(m),f.push(v);const y=new ResizeObserver(()=>{v.resize()});y.observe(m),c.push(y)}catch(x){at.emit(t,Xu,{name:"echarts",message:x==null?void 0:x.message,error:x})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:p}},bp=e=>{const t=i.inject("highlight"),n=i.shallowRef(ht.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Xt("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss}),Xt("script",{...t.value.js,id:qt.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||ht.editorExtensions.highlight.instance||Wm("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss})}),n},yp=e=>{const t=i.shallowRef(ht.editorExtensions.katex.instance);return i.onMounted(()=>{var u,o;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=ht;Xt("script",{...(u=r.katex)==null?void 0:u.js,src:n.katex.js,id:qt.katexjs,onload(){t.value=window.katex}},"katex"),Xt("link",{...(o=r.katex)==null?void 0:o.css,rel:"stylesheet",href:n.katex.css,id:qt.katexcss})}),t},Co=new ip({max:1e3,ttl:6e5}),wp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o,mermaidConfig:a}=ht;let s=u.mermaid.instance;const l=i.shallowRef(-1),d=()=>{if(!e.noMermaid&&s){const f=n.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};s.initialize(a(f)),l.value=l.value+1}};return i.watch(()=>n.value,()=>{Co.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=u.mermaid.js;/\.mjs/.test(f)?(Xt("link",{...(c=o.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:qt.mermaidM}),import(f).then(p=>{s=p.default,d()}).catch(p=>{at.emit(t,Xu,{name:"mermaid",message:`Failed to load mermaid module: ${p.message}`,error:p})})):Xt("script",{...(h=o.mermaid)==null?void 0:h.js,src:f,id:qt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${K}-mermaid`),c=document.createElement("div"),h=document.body.offsetWidth>1366?document.body.offsetWidth:1366,p=document.body.offsetHeight>768?document.body.offsetHeight:768;c.style.width=h+"px",c.style.height=p+"px",c.style.position="fixed",c.style.zIndex="-10000",c.style.top="-10000";let m=f.length;m>0&&document.body.appendChild(c),await Promise.allSettled(Array.from(f).map(x=>(async v=>{var g;if(v.dataset.closed==="false")return!1;const y=v.innerText;let b=Co.get(y);if(!b){const w=Hu();let A={svg:""};try{A=await s.render(w,y,c),b=await e.sanitizeMermaid(A.svg);const N=document.createElement("p");N.className=`${K}-mermaid`,N.setAttribute("data-processed",""),N.setAttribute("data-content",y),N.innerHTML=b,(g=N.children[0])==null||g.removeAttribute("height"),Co.set(y,N.innerHTML),v.dataset.line!==void 0&&(N.dataset.line=v.dataset.line),v.replaceWith(N)}catch(N){at.emit(t,Xu,{name:"mermaid",message:N.message,error:N})}--m===0&&c.remove()}})(x)))}}}},xp=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",u=r.charCodeAt(0),o=r.length;let a="",s="";const l=(f,c,h,p,m)=>{const x=f[c];return x.type==="admonition_open"?f[c].attrPush(["class",`${K}-admonition ${K}-admonition-${x.info}`]):x.type==="admonition_title_open"&&f[c].attrPush(["class",`${K}-admonition-title`]),m.renderToken(f,c,h)},d=f=>{const c=f.trim().split(" ",2);s="",a=c[0],c.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,c,h,p)=>{let m,x,v,y=!1,b=f.bMarks[c]+f.tShift[c],g=f.eMarks[c];if(u!==f.src.charCodeAt(b))return!1;for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);const w=Math.floor((m-b)/o);if(w!==n)return!1;m-=(m-b)%o;const A=f.src.slice(b,m),N=f.src.slice(m,g);if(d(N),p)return!0;for(x=c;x++,!(x>=h||(b=f.bMarks[x]+f.tShift[x],g=f.eMarks[x],b<g&&f.sCount[x]<f.blkIndent));)if(u===f.src.charCodeAt(b)&&!(f.sCount[x]-f.blkIndent>=4)){for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);if(!(Math.floor((m-b)/o)<w)&&(m-=(m-b)%o,m=f.skipSpaces(m),!(m<g))){y=!0;break}}const F=f.parentType,_=f.lineMax;return f.parentType="root",f.lineMax=x,v=f.push("admonition_open","div",1),v.markup=A,v.block=!0,v.info=a,v.map=[c,x],s&&(v=f.push("admonition_title_open","p",1),v.markup=A+" "+a,v.map=[c,x],v=f.push("inline","",0),v.content=s,v.map=[c,f.line-1],v.children=[],v=f.push("admonition_title_close","p",-1),v.markup=A+" "+a),f.md.block.tokenize(f,c+1,x),v=f.push("admonition_close","div",-1),v.markup=f.src.slice(b,m),v.block=!0,f.parentType=F,f.lineMax=_,f.line=x+(y?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},Zu=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(r=>{const u=e.attrIndex(r[0]);u<0?n.push(r):(n[u]=n[u].slice(),n[u][1]+=` ${r[1]}`)}),n},vp=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,u=/\[(\w*)(?::([\w ]*))?\]/,o=/::(open|close)/,a=c=>c.info?r(c.info).trim():"",s=c=>{const h=a(c),[p=null,m=""]=(u.exec(h)||[]).slice(1);return[p,m]},l=c=>{const h=a(c);return h?h.split(/(\s+)/g)[0]:""},d=c=>{const h=c.info.match(o)||[],p=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
|
|
38
|
-
`).length<t.autoFoldThreshold,
|
|
39
|
-
<${
|
|
40
|
-
<${
|
|
41
|
-
<div class="${
|
|
42
|
-
<div class="${
|
|
43
|
-
<span class="${
|
|
44
|
-
<span class="${
|
|
45
|
-
${t.extraTools instanceof Function?t.extraTools({lang:
|
|
46
|
-
${
|
|
582
|
+
See: https://github.com/francoischalifour/medium-zoom`)}},tb=function(t){var r=document.createElement("div");return r.classList.add("medium-zoom-overlay"),r.style.background=t,r},rb=function(t){var r=t.getBoundingClientRect(),n=r.top,i=r.left,a=r.width,s=r.height,c=t.cloneNode(),f=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,p=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return c.removeAttribute("id"),c.style.position="absolute",c.style.top=n+f+"px",c.style.left=i+p+"px",c.style.width=a+"px",c.style.height=s+"px",c.style.transform="",c},Za=function(t,r){var n=ga({bubbles:!1,cancelable:!1,detail:void 0},r);if(typeof window.CustomEvent=="function")return new CustomEvent(t,n);var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i},nb=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=window.Promise||function(be){function ae(){}be(ae,ae)},i=function(be){var ae=be.target;if(ae===pe){C();return}F.indexOf(ae)!==-1&&B({target:ae})},a=function(){if(!(R||!q.original)){var be=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs($-be)>Y.scrollOffset&&setTimeout(C,150)}},s=function(be){var ae=be.key||be.keyCode;(ae==="Escape"||ae==="Esc"||ae===27)&&C()},c=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=be;if(be.background&&(pe.style.background=be.background),be.container&&be.container instanceof Object&&(ae.container=ga({},Y.container,be.container)),be.template){var xe=Ho(be.template)?be.template:document.querySelector(be.template);ae.template=xe}return Y=ga({},Y,ae),F.forEach(function(Se){Se.dispatchEvent(Za("medium-zoom:update",{detail:{zoom:he}}))}),he},f=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(ga({},Y,be))},p=function(){for(var be=arguments.length,ae=Array(be),xe=0;xe<be;xe++)ae[xe]=arguments[xe];var Se=ae.reduce(function(te,ye){return[].concat(te,Lf(ye))},[]);return Se.filter(function(te){return F.indexOf(te)===-1}).forEach(function(te){F.push(te),te.classList.add("medium-zoom-image")}),z.forEach(function(te){var ye=te.type,ne=te.listener,Ne=te.options;Se.forEach(function(We){We.addEventListener(ye,ne,Ne)})}),he},g=function(){for(var be=arguments.length,ae=Array(be),xe=0;xe<be;xe++)ae[xe]=arguments[xe];q.zoomed&&C();var Se=ae.length>0?ae.reduce(function(te,ye){return[].concat(te,Lf(ye))},[]):F;return Se.forEach(function(te){te.classList.remove("medium-zoom-image"),te.dispatchEvent(Za("medium-zoom:detach",{detail:{zoom:he}}))}),F=F.filter(function(te){return Se.indexOf(te)===-1}),he},m=function(be,ae){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F.forEach(function(Se){Se.addEventListener("medium-zoom:"+be,ae,xe)}),z.push({type:"medium-zoom:"+be,listener:ae,options:xe}),he},w=function(be,ae){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F.forEach(function(Se){Se.removeEventListener("medium-zoom:"+be,ae,xe)}),z=z.filter(function(Se){return!(Se.type==="medium-zoom:"+be&&Se.listener.toString()===ae.toString())}),he},k=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=be.target,xe=function(){var te={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},ye=void 0,ne=void 0;if(Y.container)if(Y.container instanceof Object)te=ga({},te,Y.container),ye=te.width-te.left-te.right-Y.margin*2,ne=te.height-te.top-te.bottom-Y.margin*2;else{var Ne=Ho(Y.container)?Y.container:document.querySelector(Y.container),We=Ne.getBoundingClientRect(),X=We.width,Z=We.height,Q=We.left,ue=We.top;te=ga({},te,{width:X,height:Z,left:Q,top:ue})}ye=ye||te.width-Y.margin*2,ne=ne||te.height-Y.margin*2;var fe=q.zoomedHd||q.original,ke=Of(fe)?ye:fe.naturalWidth||ye,ie=Of(fe)?ne:fe.naturalHeight||ne,me=fe.getBoundingClientRect(),ge=me.top,Le=me.left,Ye=me.width,Ke=me.height,ut=Math.min(Math.max(Ye,ke),ye)/Ye,ot=Math.min(Math.max(Ke,ie),ne)/Ke,st=Math.min(ut,ot),Xt=(-Le+(ye-Ye)/2+Y.margin+te.left)/st,$0=(-ge+(ne-Ke)/2+Y.margin+te.top)/st,Jt="scale("+st+") translate3d("+Xt+"px, "+$0+"px, 0)";q.zoomed.style.transform=Jt,q.zoomedHd&&(q.zoomedHd.style.transform=Jt)};return new n(function(Se){if(ae&&F.indexOf(ae)===-1){Se(he);return}var te=function X(){R=!1,q.zoomed.removeEventListener("transitionend",X),q.original.dispatchEvent(Za("medium-zoom:opened",{detail:{zoom:he}})),Se(he)};if(q.zoomed){Se(he);return}if(ae)q.original=ae;else if(F.length>0){var ye=F;q.original=ye[0]}else{Se(he);return}if(q.original.dispatchEvent(Za("medium-zoom:open",{detail:{zoom:he}})),$=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,R=!0,q.zoomed=rb(q.original),document.body.appendChild(pe),Y.template){var ne=Ho(Y.template)?Y.template:document.querySelector(Y.template);q.template=document.createElement("div"),q.template.appendChild(ne.content.cloneNode(!0)),document.body.appendChild(q.template)}if(q.original.parentElement&&q.original.parentElement.tagName==="PICTURE"&&q.original.currentSrc&&(q.zoomed.src=q.original.currentSrc),document.body.appendChild(q.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),q.original.classList.add("medium-zoom-image--hidden"),q.zoomed.classList.add("medium-zoom-image--opened"),q.zoomed.addEventListener("click",C),q.zoomed.addEventListener("transitionend",te),q.original.getAttribute("data-zoom-src")){q.zoomedHd=q.zoomed.cloneNode(),q.zoomedHd.removeAttribute("srcset"),q.zoomedHd.removeAttribute("sizes"),q.zoomedHd.removeAttribute("loading"),q.zoomedHd.src=q.zoomed.getAttribute("data-zoom-src"),q.zoomedHd.onerror=function(){clearInterval(Ne),console.warn("Unable to reach the zoom image target "+q.zoomedHd.src),q.zoomedHd=null,xe()};var Ne=setInterval(function(){q.zoomedHd.complete&&(clearInterval(Ne),q.zoomedHd.classList.add("medium-zoom-image--opened"),q.zoomedHd.addEventListener("click",C),document.body.appendChild(q.zoomedHd),xe())},10)}else if(q.original.hasAttribute("srcset")){q.zoomedHd=q.zoomed.cloneNode(),q.zoomedHd.removeAttribute("sizes"),q.zoomedHd.removeAttribute("loading");var We=q.zoomedHd.addEventListener("load",function(){q.zoomedHd.removeEventListener("load",We),q.zoomedHd.classList.add("medium-zoom-image--opened"),q.zoomedHd.addEventListener("click",C),document.body.appendChild(q.zoomedHd),xe()})}else xe()})},C=function(){return new n(function(be){if(R||!q.original){be(he);return}var ae=function xe(){q.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(q.zoomed),q.zoomedHd&&document.body.removeChild(q.zoomedHd),document.body.removeChild(pe),q.zoomed.classList.remove("medium-zoom-image--opened"),q.template&&document.body.removeChild(q.template),R=!1,q.zoomed.removeEventListener("transitionend",xe),q.original.dispatchEvent(Za("medium-zoom:closed",{detail:{zoom:he}})),q.original=null,q.zoomed=null,q.zoomedHd=null,q.template=null,be(he)};R=!0,document.body.classList.remove("medium-zoom--opened"),q.zoomed.style.transform="",q.zoomedHd&&(q.zoomedHd.style.transform=""),q.template&&(q.template.style.transition="opacity 150ms",q.template.style.opacity=0),q.original.dispatchEvent(Za("medium-zoom:close",{detail:{zoom:he}})),q.zoomed.addEventListener("transitionend",ae)})},B=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ae=be.target;return q.original?C():k({target:ae})},_=function(){return Y},T=function(){return F},S=function(){return q.original},F=[],z=[],R=!1,$=0,Y=r,q={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?Y=t:(t||typeof t=="string")&&p(t),Y=ga({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},Y);var pe=tb(Y.background);document.addEventListener("click",i),document.addEventListener("keyup",s),document.addEventListener("scroll",a),window.addEventListener("resize",C);var he={open:k,close:C,toggle:B,update:c,clone:f,attach:p,detach:g,on:m,off:w,getOptions:_,getImages:T,getZoomedImage:S};return he};function ab(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var ib=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";ab(ib);const Un={hljs:`${Re}-hljs`,hlcss:`${Re}-hlCss`,mermaidM:`${Re}-mermaid-m`,mermaid:`${Re}-mermaid`,katexjs:`${Re}-katex`,katexcss:`${Re}-katexCss`,echarts:`${Re}-echarts`},ub=(e,{editorId:t,rootRef:r,setting:n})=>{const i=Br.editorExtensions.highlight,a=Br.editorExtensionsAttrs.highlight;d.provide("editorId",t),d.provide("rootRef",r),d.provide("theme",d.computed(()=>e.theme)),d.provide("language",d.computed(()=>e.language)),d.provide("highlight",d.computed(()=>{const{js:c}=i,f={...Dc,...i.css},{js:p,css:g={}}=a||{},m=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,w=f[e.codeTheme]?f[e.codeTheme][m]:Dc.atom[m],k=f[e.codeTheme]&&g[e.codeTheme]?g[e.codeTheme][m]:g.atom?g.atom[m]:{};return{js:{src:c,...p},css:{href:w,...k}}})),d.provide("showCodeRowNumber",e.showCodeRowNumber);const s=d.computed(()=>{const c={...Df,...Br.editorConfig.languageUserDefined};return xc(Wi(Df["en-US"]),c[e.language]||{})});return d.provide("usedLanguageText",s),d.provide("previewTheme",d.computed(()=>e.previewTheme)),d.provide("customIcon",d.computed(()=>e.customIcon)),d.provide("setting",d.computed(()=>n?{...n}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},ob=e=>{const t=d.useId();return e.id||e.editorId||`${Re}-${t}`},sb=(e,t,r)=>{const n=d.inject("editorId"),i=d.inject("rootRef"),a=d.inject("usedLanguageText"),s=d.inject("setting"),c=()=>{i.value.querySelectorAll(`#${n} .${Re}-preview .${Re}-code`).forEach(g=>{let m=-1;const w=g.querySelector(`.${Re}-copy-button:not([data-processed])`);w&&(w.onclick=k=>{k.preventDefault(),clearTimeout(m);const C=(g.querySelector("input:checked + pre code")||g.querySelector("pre code")).textContent,{text:B,successTips:_,failTips:T}=a.value.copyCode;let S=_;Ff(e.formatCopiedText(C||"")).catch(()=>{S=T}).finally(()=>{w.dataset.isIcon?w.dataset.tips=S:w.innerHTML=S,m=window.setTimeout(()=>{w.dataset.isIcon?w.dataset.tips=B:w.innerHTML=B},1500)})},w.setAttribute("data-processed","true"))})},f=()=>{d.nextTick(c)},p=g=>{g&&d.nextTick(c)};d.watch([t,r],f),d.watch(()=>s.value.preview,p),d.watch(()=>s.value.htmlPreview,p),d.onMounted(c)},lb=e=>{const t=d.inject("editorId"),r=d.inject("theme"),n=d.inject("rootRef"),{editorExtensions:i,editorExtensionsAttrs:a}=Br;let s=i.echarts.instance;const c=d.shallowRef(-1),f=()=>{!e.noEcharts&&s&&(c.value=c.value+1)};d.watch(()=>r.value,()=>{f()}),d.onMounted(()=>{var B;if(e.noEcharts||s)return;const C=i.echarts.js;jn("script",{...(B=a.echarts)==null?void 0:B.js,src:C,id:Un.echarts,onload(){s=window.echarts,f()}},"echarts")});let p=[],g=[],m=[];const w=(C=!1)=>{if(!p.length){C&&(g.forEach(S=>{var F;(F=S.dispose)==null||F.call(S)}),m.forEach(S=>{var F;(F=S.disconnect)==null||F.call(S)}),g=[],m=[]);return}const B=[],_=[],T=[];p.forEach((S,F)=>{var $,Y;const z=g[F],R=m[F];if(C||!S||!S.isConnected||n!=null&&n.value&&!n.value.contains(S)){($=z==null?void 0:z.dispose)==null||$.call(z),(Y=R==null?void 0:R.disconnect)==null||Y.call(R);return}B.push(S),z&&_.push(z),R&&T.push(R)}),p=B,g=_,m=T},k=()=>{w(),!e.noEcharts&&s&&Array.from(n.value.querySelectorAll(`#${t} div.${Re}-echarts:not([data-processed])`)).forEach(C=>{if(C.dataset.closed==="false")return!1;try{const B=Og.parse(C.innerText),_=s.init(C,r.value);_.setOption(B),C.setAttribute("data-processed",""),p.push(C),g.push(_);const T=new ResizeObserver(()=>{_.resize()});T.observe(C),m.push(T)}catch(B){yr.emit(t,kc,{name:"echarts",message:B==null?void 0:B.message,error:B})}})};return d.onBeforeUnmount(()=>{w(!0)}),{reRenderEcharts:c,replaceEcharts:k}},cb=e=>{const t=d.inject("highlight"),r=d.shallowRef(Br.editorExtensions.highlight.instance);return d.onMounted(()=>{e.noHighlight||r.value||(jn("link",{...t.value.css,rel:"stylesheet",id:Un.hlcss}),jn("script",{...t.value.js,id:Un.hljs,onload(){r.value=window.hljs}},"hljs"))}),d.watch(()=>t.value.css,()=>{e.noHighlight||Br.editorExtensions.highlight.instance||Rg("link",{...t.value.css,rel:"stylesheet",id:Un.hlcss})}),r},db=e=>{const t=d.shallowRef(Br.editorExtensions.katex.instance);return d.onMounted(()=>{var i,a;if(e.noKatex||t.value)return;const{editorExtensions:r,editorExtensionsAttrs:n}=Br;jn("script",{...(i=n.katex)==null?void 0:i.js,src:r.katex.js,id:Un.katexjs,onload(){t.value=window.katex}},"katex"),jn("link",{...(a=n.katex)==null?void 0:a.css,rel:"stylesheet",href:r.katex.css,id:Un.katexcss})}),t},qo=new Jg({max:1e3,ttl:6e5}),fb=e=>{const t=d.inject("editorId"),r=d.inject("theme"),n=d.inject("rootRef"),{editorExtensions:i,editorExtensionsAttrs:a,mermaidConfig:s}=Br;let c=i.mermaid.instance;const f=d.shallowRef(-1),p=()=>{if(!e.noMermaid&&c){const g=r.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};c.initialize(s(g)),f.value=f.value+1}};return d.watch(()=>r.value,()=>{qo.clear(),p()}),d.onMounted(()=>{var m,w;if(e.noMermaid||c)return;const g=i.mermaid.js;/\.mjs/.test(g)?(jn("link",{...(m=a.mermaid)==null?void 0:m.js,rel:"modulepreload",href:g,id:Un.mermaidM}),import(g).then(k=>{c=k.default,p()}).catch(k=>{yr.emit(t,kc,{name:"mermaid",message:`Failed to load mermaid module: ${k.message}`,error:k})})):jn("script",{...(w=a.mermaid)==null?void 0:w.js,src:g,id:Un.mermaid,onload(){c=window.mermaid,p()}},"mermaid")}),{reRenderRef:f,replaceMermaid:async()=>{if(!e.noMermaid&&c){const g=n.value.querySelectorAll(`div.${Re}-mermaid`),m=document.createElement("div"),w=document.body.offsetWidth>1366?document.body.offsetWidth:1366,k=document.body.offsetHeight>768?document.body.offsetHeight:768;m.style.width=w+"px",m.style.height=k+"px",m.style.position="fixed",m.style.zIndex="-10000",m.style.top="-10000";let C=g.length;C>0&&document.body.appendChild(m),await Promise.allSettled(Array.from(g).map(B=>(async _=>{var F;if(_.dataset.closed==="false")return!1;const T=_.innerText;let S=qo.get(T);if(!S){const z=wc();let R={svg:""};try{R=await c.render(z,T,m),S=await e.sanitizeMermaid(R.svg);const $=document.createElement("p");$.className=`${Re}-mermaid`,$.setAttribute("data-processed",""),$.setAttribute("data-content",T),$.innerHTML=S,(F=$.children[0])==null||F.removeAttribute("height"),qo.set(T,$.innerHTML),_.dataset.line!==void 0&&($.dataset.line=_.dataset.line),_.replaceWith($)}catch($){yr.emit(t,kc,{name:"mermaid",message:$.message,error:$})}--C===0&&m.remove()}})(B)))}}}},hb=(e,t)=>{t=t||{};const r=3,n=t.marker||"!",i=n.charCodeAt(0),a=n.length;let s="",c="";const f=(g,m,w,k,C)=>{const B=g[m];return B.type==="admonition_open"?g[m].attrPush(["class",`${Re}-admonition ${Re}-admonition-${B.info}`]):B.type==="admonition_title_open"&&g[m].attrPush(["class",`${Re}-admonition-title`]),C.renderToken(g,m,w)},p=g=>{const m=g.trim().split(" ",2);c="",s=m[0],m.length>1&&(c=g.substring(s.length+2))};e.block.ruler.before("code","admonition",(g,m,w,k)=>{let C,B,_,T=!1,S=g.bMarks[m]+g.tShift[m],F=g.eMarks[m];if(i!==g.src.charCodeAt(S))return!1;for(C=S+1;C<=F&&n[(C-S)%a]===g.src[C];C++);const z=Math.floor((C-S)/a);if(z!==r)return!1;C-=(C-S)%a;const R=g.src.slice(S,C),$=g.src.slice(C,F);if(p($),k)return!0;for(B=m;B++,!(B>=w||(S=g.bMarks[B]+g.tShift[B],F=g.eMarks[B],S<F&&g.sCount[B]<g.blkIndent));)if(i===g.src.charCodeAt(S)&&!(g.sCount[B]-g.blkIndent>=4)){for(C=S+1;C<=F&&n[(C-S)%a]===g.src[C];C++);if(!(Math.floor((C-S)/a)<z)&&(C-=(C-S)%a,C=g.skipSpaces(C),!(C<F))){T=!0;break}}const Y=g.parentType,q=g.lineMax;return g.parentType="root",g.lineMax=B,_=g.push("admonition_open","div",1),_.markup=R,_.block=!0,_.info=s,_.map=[m,B],c&&(_=g.push("admonition_title_open","p",1),_.markup=R+" "+s,_.map=[m,B],_=g.push("inline","",0),_.content=c,_.map=[m,g.line-1],_.children=[],_=g.push("admonition_title_close","p",-1),_.markup=R+" "+s),g.md.block.tokenize(g,m+1,B),_=g.push("admonition_close","div",-1),_.markup=g.src.slice(S,C),_.block=!0,g.parentType=Y,g.lineMax=q,g.line=B+(T?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=f,e.renderer.rules.admonition_title_open=f,e.renderer.rules.admonition_title_close=f,e.renderer.rules.admonition_close=f},_c=(e,t)=>{const r=e.attrs?e.attrs.slice():[];return t.forEach(n=>{const i=e.attrIndex(n[0]);i<0?r.push(n):(r[i]=r[i].slice(),r[i][1]+=` ${n[1]}`)}),r},mb=(e,t)=>{const r=e.renderer.rules.fence,n=e.utils.unescapeAll,i=/\[(\w*)(?::([\w ]*))?\]/,a=/::(open|close)/,s=m=>m.info?n(m.info).trim():"",c=m=>{const w=s(m),[k=null,C=""]=(i.exec(w)||[]).slice(1);return[k,C]},f=m=>{const w=s(m);return w?w.split(/(\s+)/g)[0]:""},p=m=>{const w=m.info.match(a)||[],k=w[1]==="open"||w[1]!=="close"&&t.codeFoldable&&m.content.trim().split(`
|
|
583
|
+
`).length<t.autoFoldThreshold,C=w[1]||t.codeFoldable?"details":"div",B=w[1]||t.codeFoldable?"summary":"div";return{open:k,tagContainer:C,tagHeader:B}},g=(m,w,k,C,B)=>{var ye;if(m[w].hidden)return"";const _=(ye=t.usedLanguageTextRef.value)==null?void 0:ye.copyCode.text,T=t.customIconRef.value.copy||_,S=!!t.customIconRef.value.copy,F=`<span class="${Re}-collapse-tips">${nn("collapse-tips",t.customIconRef.value)}</span>`,[z]=c(m[w]);if(z===null){const{open:ne,tagContainer:Ne,tagHeader:We}=p(m[w]),X=[["class",`${Re}-code`]];ne&&X.push(["open",""]);const Z={attrs:_c(m[w],X)};m[w].info=m[w].info.replace(a,"");const Q=r(m,w,k,C,B);return`
|
|
584
|
+
<${Ne} ${B.renderAttrs(Z)}>
|
|
585
|
+
<${We} class="${Re}-code-head">
|
|
586
|
+
<div class="${Re}-code-flag"><span></span><span></span><span></span></div>
|
|
587
|
+
<div class="${Re}-code-action">
|
|
588
|
+
<span class="${Re}-code-lang">${e.utils.escapeHtml(m[w].info.trim())}</span>
|
|
589
|
+
<span class="${Re}-copy-button" data-tips="${_}"${S?" data-is-icon=true":""}>${T}</span>
|
|
590
|
+
${t.extraTools instanceof Function?t.extraTools({lang:m[w].info.trim()}):t.extraTools||""}
|
|
591
|
+
${Ne==="details"?F:""}
|
|
47
592
|
</div>
|
|
48
|
-
</${
|
|
49
|
-
${
|
|
50
|
-
</${
|
|
51
|
-
`}let
|
|
593
|
+
</${We}>
|
|
594
|
+
${Q}
|
|
595
|
+
</${Ne}>
|
|
596
|
+
`}let R,$,Y,q,pe="",he="",ce="";const{open:be,tagContainer:ae,tagHeader:xe}=p(m[w]),Se=[["class",`${Re}-code`]];be&&Se.push(["open",""]);const te={attrs:_c(m[w],Se)};for(let ne=w;ne<m.length&&(R=m[ne],[$,Y]=c(R),$===z);ne++){R.info=R.info.replace(i,"").replace(a,""),R.hidden=!0;const Ne=`${Re}-codetab-${t.editorId}-${w}-${ne-w}`;q=ne-w>0?"":"checked",pe+=`
|
|
52
597
|
<li>
|
|
53
598
|
<input
|
|
54
599
|
type="radio"
|
|
55
|
-
id="label-${
|
|
56
|
-
name="${
|
|
57
|
-
class="${
|
|
58
|
-
${
|
|
600
|
+
id="label-${Re}-codetab-label-1-${t.editorId}-${w}-${ne-w}"
|
|
601
|
+
name="${Re}-codetab-label-${t.editorId}-${w}"
|
|
602
|
+
class="${Ne}"
|
|
603
|
+
${q}
|
|
59
604
|
>
|
|
60
605
|
<label
|
|
61
|
-
for="label-${
|
|
62
|
-
onclick="this.getRootNode().querySelectorAll('.${
|
|
606
|
+
for="label-${Re}-codetab-label-1-${t.editorId}-${w}-${ne-w}"
|
|
607
|
+
onclick="this.getRootNode().querySelectorAll('.${Ne}').forEach(e => e.click())"
|
|
63
608
|
>
|
|
64
|
-
${e.utils.escapeHtml(
|
|
609
|
+
${e.utils.escapeHtml(Y||f(R))}
|
|
65
610
|
</label>
|
|
66
|
-
</li
|
|
611
|
+
</li>`,he+=`
|
|
67
612
|
<div role="tabpanel">
|
|
68
613
|
<input
|
|
69
614
|
type="radio"
|
|
70
|
-
name="${
|
|
71
|
-
class="${
|
|
72
|
-
${
|
|
615
|
+
name="${Re}-codetab-pre-${t.editorId}-${w}"
|
|
616
|
+
class="${Ne}"
|
|
617
|
+
${q}
|
|
73
618
|
role="presentation">
|
|
74
|
-
${
|
|
75
|
-
</div>`,
|
|
619
|
+
${r(m,ne,k,C,B)}
|
|
620
|
+
</div>`,ce+=`
|
|
76
621
|
<input
|
|
77
622
|
type="radio"
|
|
78
|
-
name="${
|
|
79
|
-
class="${
|
|
80
|
-
${
|
|
623
|
+
name="${Re}-codetab-lang-${t.editorId}-${w}"
|
|
624
|
+
class="${Ne}"
|
|
625
|
+
${q}
|
|
81
626
|
role="presentation">
|
|
82
|
-
<span class=${
|
|
83
|
-
<${
|
|
84
|
-
<${
|
|
85
|
-
<div class="${
|
|
86
|
-
<ul class="${
|
|
627
|
+
<span class=${Re}-code-lang role="note">${e.utils.escapeHtml(f(R))}</span>`}return`
|
|
628
|
+
<${ae} ${B.renderAttrs(te)}>
|
|
629
|
+
<${xe} class="${Re}-code-head">
|
|
630
|
+
<div class="${Re}-code-flag">
|
|
631
|
+
<ul class="${Re}-codetab-label" role="tablist">${pe}</ul>
|
|
87
632
|
</div>
|
|
88
|
-
<div class="${
|
|
89
|
-
<span class="${
|
|
90
|
-
<span class="${
|
|
91
|
-
${t.extraTools instanceof Function?t.extraTools({lang:
|
|
92
|
-
${
|
|
633
|
+
<div class="${Re}-code-action">
|
|
634
|
+
<span class="${Re}-codetab-lang">${ce}</span>
|
|
635
|
+
<span class="${Re}-copy-button" data-tips="${_}"${S?" data-is-icon=true":""}>${T}</span>
|
|
636
|
+
${t.extraTools instanceof Function?t.extraTools({lang:m[w].info.trim()}):t.extraTools||""}
|
|
637
|
+
${ae==="details"?F:""}
|
|
93
638
|
</div>
|
|
94
|
-
</${
|
|
95
|
-
${
|
|
96
|
-
</${
|
|
97
|
-
`};e.renderer.rules.fence=
|
|
98
|
-
`)})));let
|
|
99
|
-
`)}))},
|
|
100
|
-
`),
|
|
101
|
-
`))):at.emit(n,jm,c+1,p)};a.forEach(l=>{l.addEventListener("click",s)}),u=()=>{a.forEach(l=>{l.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{u()}),i.watch([t],()=>{u(),i.nextTick(o)},{immediate:!0})},Up=(e,t,n)=>{const r=i.inject("setting"),u=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},o=a=>{a&&u()};i.watch([t,n],u),i.watch(()=>r.value.preview,o),i.watch(()=>r.value.htmlPreview,o),i.onMounted(u)},Ys={modelValue:{type:String,default:""},onChange:{type:Function,default:()=>{}},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function},codeFoldable:{type:Boolean},autoFoldThreshold:{type:Number},onRemount:{type:Function},noEcharts:{type:Boolean},previewComponent:{type:[Object,Function],default:void 0}};({...Ys});const Ks=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},Wp=(e,t)=>e.nodeType!==t.nodeType?!1:e.nodeType===Node.TEXT_NODE||e.nodeType===Node.COMMENT_NODE?e.textContent===t.textContent:e.nodeType===Node.ELEMENT_NODE?e.outerHTML===t.outerHTML:e.isEqualNode?e.isEqualNode(t):!1,Xp=i.defineComponent({name:"UpdateOnDemand",props:{id:{type:String,required:!0},class:{type:[String,Array,Object],required:!0},html:{type:String,required:!0}},setup(e){const t=i.ref(),n=e.html,r=(u,o)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),l=Math.min(u.length,o.length);let d=-1;for(let c=0;c<l;c++)if(!Wp(u[c],o[c])){d=c;break}if(d===-1)if(o.length>u.length)d=u.length;else if(u.length>o.length)d=o.length;else return;const f=Math.min(d,s.length);for(let c=s.length-1;c>=f;c--)s[c].remove();for(let c=d;c<u.length;c++)a.appendChild(u[c].cloneNode(!0))};return i.watch(()=>e.html,(u,o)=>{const a=Ks(u),s=Ks(o||"");r(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),Gp=i.defineComponent({name:"ContentPreview",props:Ys,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),r=i.inject("previewTheme"),u=i.inject("showCodeRowNumber"),{html:o,key:a}=jp(e,e.previewOnly);pp(e,o,a),Hp(e,o),$p(e,o),Up(e,o,a);const s=i.computed(()=>[`${K}-preview`,`${r==null?void 0:r.value}-theme`,u&&`${K}-scrn`].filter(Boolean)),l=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:o.value,id:d,class:s.value}):i.createVNode(Xp,{key:a.value,html:o.value,id:d,class:s.value},null)};return()=>i.createVNode(i.Fragment,null,[n.value.preview&&(e.previewOnly?l():i.createVNode("div",{id:`${t}-preview-wrapper`,class:`${K}-preview-wrapper`,key:"content-preview-wrapper"},[l()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${K}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${K}-html`},[o.value])])])}}),qp=({text:e})=>e,Qs={modelValue:{type:String,default:""},onChange:{type:Function,default:void 0},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function,default:void 0},onGetCatalog:{type:Function,default:void 0},editorId:{type:String,default:void 0},id:{type:String,default:void 0},showCodeRowNumber:{type:Boolean,default:!0},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:qp},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)},codeFoldable:{type:Boolean,default:!0},autoFoldThreshold:{type:Number,default:30},onRemount:{type:Function,default:void 0},noEcharts:{type:Boolean,default:!1},previewComponent:{type:[Object,Function],default:void 0}};({...Qs});const Js=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...Js];const Zp=(e,t,n)=>{const{editorId:r}=n,u={rerender(){at.emit(r,Ps)}};t.expose(u)},_o=i.defineComponent({name:"MdPreview",props:Qs,emits:Js,setup(e,t){const{noKatex:n,noMermaid:r,noHighlight:u}=e,o=i.ref(),a=mp(e);hp(e,{rootRef:o,editorId:a}),Zp(e,t,{editorId:a}),i.onBeforeUnmount(()=>{at.clear(a)});const s=c=>{var h;(h=e.onChange)==null||h.call(e,c),t.emit("onChange",c),t.emit("update:modelValue",c)},l=c=>{var h;(h=e.onHtmlChanged)==null||h.call(e,c),t.emit("onHtmlChanged",c)},d=c=>{var h;(h=e.onGetCatalog)==null||h.call(e,c),t.emit("onGetCatalog",c)},f=()=>{var c;(c=e.onRemount)==null||c.call(e),t.emit("onRemount")};return()=>i.createVNode("div",{id:a,class:[K,e.class,e.theme==="dark"&&`${K}-dark`,`${K}-previewOnly`],style:e.style,ref:o},[i.createVNode(Gp,{modelValue:e.modelValue,onChange:s,onHtmlChanged:l,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:r,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:u,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});_o.install=e=>(e.component(_o.name,_o),e);const Yp={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Yu=i.defineComponent({name:"NormalFooterToolbar",props:Yp,emits:["onClick"],setup(e,t){return()=>{const n=Mm({props:e,ctx:t});return i.createVNode("div",{class:[`${K}-footer-item`,e.disabled&&`${K}-disabled`],onClick:r=>{var u;e.disabled||((u=e.onClick)==null||u.call(e,r),t.emit("onClick",r))}},[n])}}});Yu.install=e=>(e.component(Yu.name,Yu),e);var Ku={exports:{}},we={},Qu={exports:{}},un={},el;function tl(){if(el)return un;el=1;function e(){var o={};return o["align-content"]=!1,o["align-items"]=!1,o["align-self"]=!1,o["alignment-adjust"]=!1,o["alignment-baseline"]=!1,o.all=!1,o["anchor-point"]=!1,o.animation=!1,o["animation-delay"]=!1,o["animation-direction"]=!1,o["animation-duration"]=!1,o["animation-fill-mode"]=!1,o["animation-iteration-count"]=!1,o["animation-name"]=!1,o["animation-play-state"]=!1,o["animation-timing-function"]=!1,o.azimuth=!1,o["backface-visibility"]=!1,o.background=!0,o["background-attachment"]=!0,o["background-clip"]=!0,o["background-color"]=!0,o["background-image"]=!0,o["background-origin"]=!0,o["background-position"]=!0,o["background-repeat"]=!0,o["background-size"]=!0,o["baseline-shift"]=!1,o.binding=!1,o.bleed=!1,o["bookmark-label"]=!1,o["bookmark-level"]=!1,o["bookmark-state"]=!1,o.border=!0,o["border-bottom"]=!0,o["border-bottom-color"]=!0,o["border-bottom-left-radius"]=!0,o["border-bottom-right-radius"]=!0,o["border-bottom-style"]=!0,o["border-bottom-width"]=!0,o["border-collapse"]=!0,o["border-color"]=!0,o["border-image"]=!0,o["border-image-outset"]=!0,o["border-image-repeat"]=!0,o["border-image-slice"]=!0,o["border-image-source"]=!0,o["border-image-width"]=!0,o["border-left"]=!0,o["border-left-color"]=!0,o["border-left-style"]=!0,o["border-left-width"]=!0,o["border-radius"]=!0,o["border-right"]=!0,o["border-right-color"]=!0,o["border-right-style"]=!0,o["border-right-width"]=!0,o["border-spacing"]=!0,o["border-style"]=!0,o["border-top"]=!0,o["border-top-color"]=!0,o["border-top-left-radius"]=!0,o["border-top-right-radius"]=!0,o["border-top-style"]=!0,o["border-top-width"]=!0,o["border-width"]=!0,o.bottom=!1,o["box-decoration-break"]=!0,o["box-shadow"]=!0,o["box-sizing"]=!0,o["box-snap"]=!0,o["box-suppress"]=!0,o["break-after"]=!0,o["break-before"]=!0,o["break-inside"]=!0,o["caption-side"]=!1,o.chains=!1,o.clear=!0,o.clip=!1,o["clip-path"]=!1,o["clip-rule"]=!1,o.color=!0,o["color-interpolation-filters"]=!0,o["column-count"]=!1,o["column-fill"]=!1,o["column-gap"]=!1,o["column-rule"]=!1,o["column-rule-color"]=!1,o["column-rule-style"]=!1,o["column-rule-width"]=!1,o["column-span"]=!1,o["column-width"]=!1,o.columns=!1,o.contain=!1,o.content=!1,o["counter-increment"]=!1,o["counter-reset"]=!1,o["counter-set"]=!1,o.crop=!1,o.cue=!1,o["cue-after"]=!1,o["cue-before"]=!1,o.cursor=!1,o.direction=!1,o.display=!0,o["display-inside"]=!0,o["display-list"]=!0,o["display-outside"]=!0,o["dominant-baseline"]=!1,o.elevation=!1,o["empty-cells"]=!1,o.filter=!1,o.flex=!1,o["flex-basis"]=!1,o["flex-direction"]=!1,o["flex-flow"]=!1,o["flex-grow"]=!1,o["flex-shrink"]=!1,o["flex-wrap"]=!1,o.float=!1,o["float-offset"]=!1,o["flood-color"]=!1,o["flood-opacity"]=!1,o["flow-from"]=!1,o["flow-into"]=!1,o.font=!0,o["font-family"]=!0,o["font-feature-settings"]=!0,o["font-kerning"]=!0,o["font-language-override"]=!0,o["font-size"]=!0,o["font-size-adjust"]=!0,o["font-stretch"]=!0,o["font-style"]=!0,o["font-synthesis"]=!0,o["font-variant"]=!0,o["font-variant-alternates"]=!0,o["font-variant-caps"]=!0,o["font-variant-east-asian"]=!0,o["font-variant-ligatures"]=!0,o["font-variant-numeric"]=!0,o["font-variant-position"]=!0,o["font-weight"]=!0,o.grid=!1,o["grid-area"]=!1,o["grid-auto-columns"]=!1,o["grid-auto-flow"]=!1,o["grid-auto-rows"]=!1,o["grid-column"]=!1,o["grid-column-end"]=!1,o["grid-column-start"]=!1,o["grid-row"]=!1,o["grid-row-end"]=!1,o["grid-row-start"]=!1,o["grid-template"]=!1,o["grid-template-areas"]=!1,o["grid-template-columns"]=!1,o["grid-template-rows"]=!1,o["hanging-punctuation"]=!1,o.height=!0,o.hyphens=!1,o.icon=!1,o["image-orientation"]=!1,o["image-resolution"]=!1,o["ime-mode"]=!1,o["initial-letters"]=!1,o["inline-box-align"]=!1,o["justify-content"]=!1,o["justify-items"]=!1,o["justify-self"]=!1,o.left=!1,o["letter-spacing"]=!0,o["lighting-color"]=!0,o["line-box-contain"]=!1,o["line-break"]=!1,o["line-grid"]=!1,o["line-height"]=!1,o["line-snap"]=!1,o["line-stacking"]=!1,o["line-stacking-ruby"]=!1,o["line-stacking-shift"]=!1,o["line-stacking-strategy"]=!1,o["list-style"]=!0,o["list-style-image"]=!0,o["list-style-position"]=!0,o["list-style-type"]=!0,o.margin=!0,o["margin-bottom"]=!0,o["margin-left"]=!0,o["margin-right"]=!0,o["margin-top"]=!0,o["marker-offset"]=!1,o["marker-side"]=!1,o.marks=!1,o.mask=!1,o["mask-box"]=!1,o["mask-box-outset"]=!1,o["mask-box-repeat"]=!1,o["mask-box-slice"]=!1,o["mask-box-source"]=!1,o["mask-box-width"]=!1,o["mask-clip"]=!1,o["mask-image"]=!1,o["mask-origin"]=!1,o["mask-position"]=!1,o["mask-repeat"]=!1,o["mask-size"]=!1,o["mask-source-type"]=!1,o["mask-type"]=!1,o["max-height"]=!0,o["max-lines"]=!1,o["max-width"]=!0,o["min-height"]=!0,o["min-width"]=!0,o["move-to"]=!1,o["nav-down"]=!1,o["nav-index"]=!1,o["nav-left"]=!1,o["nav-right"]=!1,o["nav-up"]=!1,o["object-fit"]=!1,o["object-position"]=!1,o.opacity=!1,o.order=!1,o.orphans=!1,o.outline=!1,o["outline-color"]=!1,o["outline-offset"]=!1,o["outline-style"]=!1,o["outline-width"]=!1,o.overflow=!1,o["overflow-wrap"]=!1,o["overflow-x"]=!1,o["overflow-y"]=!1,o.padding=!0,o["padding-bottom"]=!0,o["padding-left"]=!0,o["padding-right"]=!0,o["padding-top"]=!0,o.page=!1,o["page-break-after"]=!1,o["page-break-before"]=!1,o["page-break-inside"]=!1,o["page-policy"]=!1,o.pause=!1,o["pause-after"]=!1,o["pause-before"]=!1,o.perspective=!1,o["perspective-origin"]=!1,o.pitch=!1,o["pitch-range"]=!1,o["play-during"]=!1,o.position=!1,o["presentation-level"]=!1,o.quotes=!1,o["region-fragment"]=!1,o.resize=!1,o.rest=!1,o["rest-after"]=!1,o["rest-before"]=!1,o.richness=!1,o.right=!1,o.rotation=!1,o["rotation-point"]=!1,o["ruby-align"]=!1,o["ruby-merge"]=!1,o["ruby-position"]=!1,o["shape-image-threshold"]=!1,o["shape-outside"]=!1,o["shape-margin"]=!1,o.size=!1,o.speak=!1,o["speak-as"]=!1,o["speak-header"]=!1,o["speak-numeral"]=!1,o["speak-punctuation"]=!1,o["speech-rate"]=!1,o.stress=!1,o["string-set"]=!1,o["tab-size"]=!1,o["table-layout"]=!1,o["text-align"]=!0,o["text-align-last"]=!0,o["text-combine-upright"]=!0,o["text-decoration"]=!0,o["text-decoration-color"]=!0,o["text-decoration-line"]=!0,o["text-decoration-skip"]=!0,o["text-decoration-style"]=!0,o["text-emphasis"]=!0,o["text-emphasis-color"]=!0,o["text-emphasis-position"]=!0,o["text-emphasis-style"]=!0,o["text-height"]=!0,o["text-indent"]=!0,o["text-justify"]=!0,o["text-orientation"]=!0,o["text-overflow"]=!0,o["text-shadow"]=!0,o["text-space-collapse"]=!0,o["text-transform"]=!0,o["text-underline-position"]=!0,o["text-wrap"]=!0,o.top=!1,o.transform=!1,o["transform-origin"]=!1,o["transform-style"]=!1,o.transition=!1,o["transition-delay"]=!1,o["transition-duration"]=!1,o["transition-property"]=!1,o["transition-timing-function"]=!1,o["unicode-bidi"]=!1,o["vertical-align"]=!1,o.visibility=!1,o["voice-balance"]=!1,o["voice-duration"]=!1,o["voice-family"]=!1,o["voice-pitch"]=!1,o["voice-range"]=!1,o["voice-rate"]=!1,o["voice-stress"]=!1,o["voice-volume"]=!1,o.volume=!1,o["white-space"]=!1,o.widows=!1,o.width=!0,o["will-change"]=!1,o["word-break"]=!0,o["word-spacing"]=!0,o["word-wrap"]=!0,o["wrap-flow"]=!1,o["wrap-through"]=!1,o["writing-mode"]=!1,o["z-index"]=!1,o}function t(o,a,s){}function n(o,a,s){}var r=/javascript\s*\:/img;function u(o,a){return r.test(a)?"":a}return un.whiteList=e(),un.getDefaultWhiteList=e,un.onAttr=t,un.onIgnoreAttr=n,un.safeAttrValue=u,un}var nl,rl;function ol(){return rl||(rl=1,nl={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,u;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,u=e.length;r<u;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),nl}var Ju,ul;function Kp(){if(ul)return Ju;ul=1;var e=ol();function t(n,r){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var u=n.length,o=!1,a=0,s=0,l="";function d(){if(!o){var h=e.trim(n.slice(a,s)),p=h.indexOf(":");if(p!==-1){var m=e.trim(h.slice(0,p)),x=e.trim(h.slice(p+1));if(m){var v=r(a,l.length,m,x,h);v&&(l+=v+"; ")}}}a=s+1}for(;s<u;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var c=n.indexOf("*/",s+2);if(c===-1)break;s=c+1,a=s+1,o=!1}else f==="("?o=!0:f===")"?o=!1:f===";"?o||d():f===`
|
|
102
|
-
`&&d()}return e.trim(l)}return Ju=t,Ju}var ei,il;function Qp(){if(il)return ei;il=1;var e=tl(),t=Kp();ol();function n(o){return o==null}function r(o){var a={};for(var s in o)a[s]=o[s];return a}function u(o){o=r(o||{}),o.whiteList=o.whiteList||e.whiteList,o.onAttr=o.onAttr||e.onAttr,o.onIgnoreAttr=o.onIgnoreAttr||e.onIgnoreAttr,o.safeAttrValue=o.safeAttrValue||e.safeAttrValue,this.options=o}return u.prototype.process=function(o){if(o=o||"",o=o.toString(),!o)return"";var a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(o,function(p,m,x,v,y){var b=l[x],g=!1;if(b===!0?g=b:typeof b=="function"?g=b(v):b instanceof RegExp&&(g=b.test(v)),g!==!0&&(g=!1),v=c(x,v),!!v){var w={position:m,sourcePosition:p,source:y,isWhite:g};if(g){var A=d(x,v,w);return n(A)?x+":"+v:A}else{var A=f(x,v,w);if(!n(A))return A}}});return h},ei=u,ei}var al;function ti(){return al||(al=1,function(e,t){var n=tl(),r=Qp();function u(a,s){var l=new r(s);return l.process(a)}t=e.exports=u,t.FilterCSS=r;for(var o in n)t[o]=n[o];typeof window<"u"&&(window.filterCSS=e.exports)}(Qu,Qu.exports)),Qu.exports}var sl,ll;function ni(){return ll||(ll=1,sl={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,u;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,u=e.length;r<u;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}}),sl}var cl;function dl(){if(cl)return we;cl=1;var e=ti().FilterCSS,t=ti().getDefaultWhiteList,n=ni();function r(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var u=new e;function o(D,j,z){}function a(D,j,z){}function s(D,j,z){}function l(D,j,z){}function d(D){return D.replace(c,"<").replace(h,">")}function f(D,j,z,Z){if(z=$(z),j==="href"||j==="src"){if(z=n.trim(z),z==="#")return"#";if(!(z.substr(0,7)==="http://"||z.substr(0,8)==="https://"||z.substr(0,7)==="mailto:"||z.substr(0,4)==="tel:"||z.substr(0,11)==="data:image/"||z.substr(0,6)==="ftp://"||z.substr(0,2)==="./"||z.substr(0,3)==="../"||z[0]==="#"||z[0]==="/"))return""}else if(j==="background"){if(b.lastIndex=0,b.test(z))return""}else if(j==="style"){if(g.lastIndex=0,g.test(z)||(w.lastIndex=0,w.test(z)&&(b.lastIndex=0,b.test(z))))return"";Z!==!1&&(Z=Z||u,z=Z.process(z))}return z=M(z),z}var c=/</g,h=/>/g,p=/"/g,m=/"/g,x=/&#([a-zA-Z0-9]*);?/gim,v=/:?/gim,y=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,g=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,w=/u\s*r\s*l\s*\(.*/gi;function A(D){return D.replace(p,""")}function N(D){return D.replace(m,'"')}function F(D){return D.replace(x,function(j,z){return z[0]==="x"||z[0]==="X"?String.fromCharCode(parseInt(z.substr(1),16)):String.fromCharCode(parseInt(z,10))})}function _(D){return D.replace(v,":").replace(y," ")}function G(D){for(var j="",z=0,Z=D.length;z<Z;z++)j+=D.charCodeAt(z)<32?" ":D.charAt(z);return n.trim(j)}function $(D){return D=N(D),D=F(D),D=_(D),D=G(D),D}function M(D){return D=A(D),D=d(D),D}function H(){return""}function I(D,j){typeof j!="function"&&(j=function(){});var z=!Array.isArray(D);function Z(S){return z?!0:n.indexOf(D,S)!==-1}var ue=[],C=!1;return{onIgnoreTag:function(S,T,O){if(Z(S))if(O.isClosing){var P="[/removed]",U=O.position+P.length;return ue.push([C!==!1?C:O.position,U]),C=!1,P}else return C||(C=O.position),"[removed]";else return j(S,T,O)},remove:function(S){var T="",O=0;return n.forEach(ue,function(P){T+=S.slice(O,P[0]),O=P[1]}),T+=S.slice(O),T}}}function X(D){for(var j="",z=0;z<D.length;){var Z=D.indexOf("<!--",z);if(Z===-1){j+=D.slice(z);break}j+=D.slice(z,Z);var ue=D.indexOf("-->",Z);if(ue===-1)break;z=ue+3}return j}function q(D){var j=D.split("");return j=j.filter(function(z){var Z=z.charCodeAt(0);return Z===127?!1:Z<=31?Z===10||Z===13:!0}),j.join("")}return we.whiteList=r(),we.getDefaultWhiteList=r,we.onTag=o,we.onIgnoreTag=a,we.onTagAttr=s,we.onIgnoreTagAttr=l,we.safeAttrValue=f,we.escapeHtml=d,we.escapeQuote=A,we.unescapeQuote=N,we.escapeHtmlEntities=F,we.escapeDangerHtml5Entities=_,we.clearNonPrintableCharacter=G,we.friendlyAttrValue=$,we.escapeAttrValue=M,we.onIgnoreTagStripAll=H,we.StripTagBody=I,we.stripCommentTag=X,we.stripBlankChar=q,we.attributeWrapSign='"',we.cssFilter=u,we.getDefaultCSSWhiteList=t,we}var Eo={},fl;function hl(){if(fl)return Eo;fl=1;var e=ni();function t(c){var h=e.spaceIndex(c),p;return h===-1?p=c.slice(1,-1):p=c.slice(1,h+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function n(c){return c.slice(0,2)==="</"}function r(c,h,p){var m="",x=0,v=!1,y=!1,b=0,g=c.length,w="",A="";e:for(b=0;b<g;b++){var N=c.charAt(b);if(v===!1){if(N==="<"){v=b;continue}}else if(y===!1){if(N==="<"){m+=p(c.slice(x,b)),v=b,x=b;continue}if(N===">"||b===g-1){m+=p(c.slice(x,v)),A=c.slice(v,b+1),w=t(A),m+=h(v,m.length,w,A,n(A)),x=b+1,v=!1;continue}if(N==='"'||N==="'")for(var F=1,_=c.charAt(b-F);_.trim()===""||_==="=";){if(_==="="){y=N;continue e}_=c.charAt(b-++F)}}else if(N===y){y=!1;continue}}return x<g&&(m+=p(c.substr(x))),m}var u=/[^a-zA-Z0-9\\_:.-]/gim;function o(c,h){var p=0,m=0,x=[],v=!1,y=c.length;function b(F,_){if(F=e.trim(F),F=F.replace(u,"").toLowerCase(),!(F.length<1)){var G=h(F,_||"");G&&x.push(G)}}for(var g=0;g<y;g++){var w=c.charAt(g),A,N;if(v===!1&&w==="="){v=c.slice(p,g),p=g+1,m=c.charAt(p)==='"'||c.charAt(p)==="'"?p:s(c,g+1);continue}if(v!==!1&&g===m){if(N=c.indexOf(w,g+1),N===-1)break;A=e.trim(c.slice(m+1,N)),b(v,A),v=!1,g=N,p=g+1;continue}if(/\s|\n|\t/.test(w))if(c=c.replace(/\s|\n|\t/g," "),v===!1)if(N=a(c,g),N===-1){A=e.trim(c.slice(p,g)),b(A),v=!1,p=g+1;continue}else{g=N-1;continue}else if(N=l(c,g-1),N===-1){A=e.trim(c.slice(p,g)),A=f(A),b(v,A),v=!1,p=g+1;continue}else continue}return p<c.length&&(v===!1?b(c.slice(p)):b(v,f(e.trim(c.slice(p))))),e.trim(x.join(" "))}function a(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="="?h:-1}}function s(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="'"||p==='"'?h:-1}}function l(c,h){for(;h>0;h--){var p=c[h];if(p!==" ")return p==="="?h:-1}}function d(c){return c[0]==='"'&&c[c.length-1]==='"'||c[0]==="'"&&c[c.length-1]==="'"}function f(c){return d(c)?c.substr(1,c.length-2):c}return Eo.parseTag=r,Eo.parseAttr=o,Eo}var ri,ml;function Jp(){if(ml)return ri;ml=1;var e=ti().FilterCSS,t=dl(),n=hl(),r=n.parseTag,u=n.parseAttr,o=ni();function a(c){return c==null}function s(c){var h=o.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=o.trim(c.slice(h+1,-1));var p=c[c.length-1]==="/";return p&&(c=o.trim(c.slice(0,-1))),{html:c,closing:p}}function l(c){var h={};for(var p in c)h[p]=c[p];return h}function d(c){var h={};for(var p in c)Array.isArray(c[p])?h[p.toLowerCase()]=c[p].map(function(m){return m.toLowerCase()}):h[p.toLowerCase()]=c[p];return h}function f(c){c=l(c||{}),c.stripIgnoreTag&&(c.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),c.onIgnoreTag=t.onIgnoreTagStripAll),c.whiteList||c.allowList?c.whiteList=d(c.whiteList||c.allowList):c.whiteList=t.whiteList,this.attributeWrapSign=c.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,c.onTag=c.onTag||t.onTag,c.onTagAttr=c.onTagAttr||t.onTagAttr,c.onIgnoreTag=c.onIgnoreTag||t.onIgnoreTag,c.onIgnoreTagAttr=c.onIgnoreTagAttr||t.onIgnoreTagAttr,c.safeAttrValue=c.safeAttrValue||t.safeAttrValue,c.escapeHtml=c.escapeHtml||t.escapeHtml,this.options=c,c.css===!1?this.cssFilter=!1:(c.css=c.css||{},this.cssFilter=new e(c.css))}return f.prototype.process=function(c){if(c=c||"",c=c.toString(),!c)return"";var h=this,p=h.options,m=p.whiteList,x=p.onTag,v=p.onIgnoreTag,y=p.onTagAttr,b=p.onIgnoreTagAttr,g=p.safeAttrValue,w=p.escapeHtml,A=h.attributeWrapSign,N=h.cssFilter;p.stripBlankChar&&(c=t.stripBlankChar(c)),p.allowCommentTag||(c=t.stripCommentTag(c));var F=!1;p.stripIgnoreTagBody&&(F=t.StripTagBody(p.stripIgnoreTagBody,v),v=F.onIgnoreTag);var _=r(c,function(G,$,M,H,I){var X={sourcePosition:G,position:$,isClosing:I,isWhite:Object.prototype.hasOwnProperty.call(m,M)},q=x(M,H,X);if(!a(q))return q;if(X.isWhite){if(X.isClosing)return"</"+M+">";var D=s(H),j=m[M],z=u(D.html,function(Z,ue){var C=o.indexOf(j,Z)!==-1,S=y(M,Z,ue,C);return a(S)?C?(ue=g(M,Z,ue,N),ue?Z+"="+A+ue+A:Z):(S=b(M,Z,ue,C),a(S)?void 0:S):S});return H="<"+M,z&&(H+=" "+z),D.closing&&(H+=" /"),H+=">",H}else return q=v(M,H,X),a(q)?w(H):q},w);return F&&(_=F.remove(_)),_},ri=f,ri}var pl;function e1(){return pl||(pl=1,function(e,t){var n=dl(),r=hl(),u=Jp();function o(s,l){var d=new u(l);return d.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=u,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(Ku,Ku.exports)),Ku.exports}e1();const an=i.defineComponent({name:"FMarkdownPreview",props:Os,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(_o,{modelValue:e.content},null)])}});an.install=e=>{e.component(an.name,an)};const oi="farris-x-preview-bridge",ui=1,ii="assistant.message";function gl(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function bl(e){return e!==null&&typeof e=="object"}function yl(e){if(!bl(e)||e.source!==oi||e.v!==ui||e.type!==ii)return!1;const t=e.payload;return!(!bl(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function t1(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function wl(e,t,n){const r=gl(n);try{return e.postMessage({source:oi,v:ui,type:ii,payload:r},t),!0}catch{return!1}}function xl(e){const t=e.allowTopAsSource!==!1,n=r=>{var u;t1(r,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(r.origin)||yl(r.data)&&((u=e.onAssistantMessage)==null||u.call(e,r.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const n1="/platform/common/web/renderer/index.html#/preview",r1="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",o1="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",u1="67441dbb-0219-46f2-b247-51555c317995";function vl(e){if(e.url)return e.url;const t=e.baseUri??n1,n=e.metadataPath??r1,r=e.projectPath??o1,u=e.baseMetadataId??u1;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(r)}&baseMetadataId=${encodeURIComponent(u)}`}function i1(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=vl(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const mr=i.defineComponent({name:"ChatPreview",props:Is,setup(e,{expose:t}){const n=i.ref(null),r=i.ref(null),u=i.ref(!1),o=i.ref(!1),a=i.computed(()=>vl(e.previewConfig??{})),s=i.computed(()=>{var D;return((D=e.previewConfig)==null?void 0:D.contentType)==="markdown"}),l=i.computed(()=>{var D;return Object.keys(((D=e.previewConfig)==null?void 0:D.contentMap)??{})}),d=i.computed(()=>l.value.filter(D=>D).length>0),f=i.ref(),c=i.ref(),h=i.ref(!1);let p=null;i.onBeforeUnmount(()=>{p==null||p(),p=null,H()}),i.watch(()=>[a.value,n.value,s.value],()=>{if(p==null||p(),p=null,s.value)return;const D=n.value;if(!D)return;h.value=!1,u.value=!1,o.value=!1;const j=Date.now(),z=200,Z=300,ue=1e4;let C=!1,S=null,T=null;T=window.setTimeout(()=>{T=null,C||(o.value=!0)},z);const O=()=>{if(C)return;if(C=!0,S&&(window.clearTimeout(S),S=null),T&&(window.clearTimeout(T),T=null),h.value=!0,I(D),o.value){const L=Date.now()-j,R=Math.max(0,Z-L);setTimeout(()=>{u.value=!0},R)}else u.value=!0;const U=()=>{var L;return(L=e.onIframeLoad)==null?void 0:L.call(e)};U(),window.setTimeout(U,0),window.setTimeout(U,120)},P=()=>{var U;C||(C=!0,T&&(window.clearTimeout(T),T=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,u.value=!0,(U=e.onIframeLoad)==null||U.call(e))};D.addEventListener("load",O,{once:!0}),S=window.setTimeout(P,ue),p=()=>{D.removeEventListener("load",O),S&&(window.clearTimeout(S),S=null),T&&(window.clearTimeout(T),T=null)}},{flush:"post"}),i.watch([s,()=>{var D;return(D=e.previewConfig)==null?void 0:D.contentMap}],()=>{H(),s.value&&i.nextTick(()=>M())},{flush:"post"}),i.watch(()=>{var D;return(D=e.previewConfig)==null?void 0:D.contentMap},D=>{if(D){const j=Object.keys(D);f.value=j[0]??""}else f.value="";m()},{immediate:!0});function m(D){var j,z;D&&(f.value=D),d.value&&f.value?c.value=((z=(j=e.previewConfig)==null?void 0:j.contentMap)==null?void 0:z[f.value])||"":c.value=""}function x(D){var Z;if(s.value||!h.value)return!1;const j=(Z=n.value)==null?void 0:Z.contentWindow;if(!j)return!1;const z=i1(e.previewConfig??{});return z?wl(j,z,D):!1}t({postAssistantPayload:x});const v=i.ref(!1);let y=null;const b=800;function g(){v.value=!0,$(!0),y!=null&&(window.clearTimeout(y),y=null)}function w(){y!=null&&window.clearTimeout(y),y=window.setTimeout(()=>{v.value=!1,$(!1),y=null},b)}function A(){g(),w()}function N(){g()}function F(){w()}let _=[];function G(){const D=r.value;if(!D)return[];const j=[],z=D.querySelectorAll(".f-markdown-preview-container");return z.length>0&&z.forEach(Z=>j.push(Z)),j.length===0&&D.scrollHeight>D.clientHeight&&j.push(D),j}function $(D){const j=r.value;j&&j.querySelectorAll(".f-markdown-preview-container").forEach(z=>{z.classList.toggle("f-chat-preview-scrollbar-visible",D)})}function M(){const D=G();_=D,D.forEach(j=>{j.addEventListener("scroll",A,{passive:!0}),j.addEventListener("mouseenter",N),j.addEventListener("mouseleave",F)})}function H(){_.forEach(D=>{D.removeEventListener("scroll",A),D.removeEventListener("mouseenter",N),D.removeEventListener("mouseleave",F)}),_=[]}function I(D){try{const j=D.contentDocument;if(!j)return;const z="f-chat-preview-injected-scrollbar-style";if(j.getElementById(z))return;const Z=j.createElement("style");Z.id=z,Z.textContent=`
|
|
639
|
+
</${xe}>
|
|
640
|
+
${he}
|
|
641
|
+
</${ae}>
|
|
642
|
+
`};e.renderer.rules.fence=g,e.renderer.rules.code_block=g},pb=(e,t)=>{const r=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(n,i,a,s,c)=>{var g,m;const f=n[i],p=f.content.trim();if(f.info==="echarts"){if(f.attrSet("class",`${Re}-echarts`),f.attrSet("data-echarts-theme",t.themeRef.value),f.map&&f.level===0){const w=f.map[1]-1,k=!!((m=(g=s.srcLines[w])==null?void 0:g.trim())!=null&&m.startsWith("```"));f.attrSet("data-closed",`${k}`),f.attrSet("data-line",String(f.map[0]))}return`<div ${c.renderAttrs(f)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(p)}</div>`}return r(n,i,a,s,c)}},gb=(e,t)=>{e.renderer.rules.heading_open=(r,n)=>{var c;const i=r[n],a=((c=r[n+1].children)==null?void 0:c.reduce((f,p)=>f+(["text","code_inline","math_inline"].includes(p.type)&&p.content||""),""))||"",s=i.markup.length;return t.headsRef.value.push({text:a,level:s,line:i.map[0],currentToken:i,nextToken:r[n+1]}),i.map&&i.level===0&&i.attrSet("id",t.mdHeadingId({text:a,level:s,index:t.headsRef.value.length,currentToken:i,nextToken:r[n+1]})),e.renderer.renderToken(r,n,t)},e.renderer.rules.heading_close=(r,n,i,a,s)=>s.renderToken(r,n,i)},Rf={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},bb=e=>(t,r)=>{const n=e.delimiters;for(const i of n){if(!t.src.startsWith(i.open,t.pos))continue;const a=t.pos+i.open.length;let s=a;for(;(s=t.src.indexOf(i.close,s))!==-1;){let c=0,f=s-1;for(;f>=0&&t.src[f]==="\\";)c++,f--;if(c%2===0)break;s+=i.close.length}if(s!==-1){if(s-a===0)return r||(t.pending+=i.open+i.close),t.pos=s+i.close.length,!0;if(!r){const c=t.push("math_inline","math",0);c.markup=i.open,c.content=t.src.slice(a,s)}return t.pos=s+i.close.length,!0}}return!1},yb=e=>(t,r,n,i)=>{const a=e.delimiters,s=t.bMarks[r]+t.tShift[r],c=t.eMarks[r],f=(p,g,m)=>{t.line=g;const w=t.push("math_block","math",0);return w.block=!0,w.content=p,w.map=[r,t.line],w.markup=m,!0};for(const p of a){const g=s;if(t.src.slice(g,g+p.open.length)!==p.open)continue;const m=g+p.open.length,w=t.src.slice(m,c).trim(),k=w==="",C=w===p.close,B=w.endsWith(p.close);if(!k&&!C&&!B)continue;if(i)return!0;if(C)return f("",r+1,p.open);if(!k&&B){const z=w.slice(0,-p.close.length);return f(z,r+1,p.open)}let _=r+1,T=!1,S="";for(;_<n;_++){const z=t.bMarks[_]+t.tShift[_],R=t.eMarks[_];if(z<R&&t.tShift[_]<t.blkIndent)break;if(t.src.slice(z,R).trim().endsWith(p.close)){const $=t.src.slice(0,R).lastIndexOf(p.close);S=t.src.slice(z,$),T=!0;break}}if(!T)continue;const F=t.getLines(r+1,_,t.tShift[r],!0)+(S.trim()?S:"");return f(F,_+1,p.open)}return!1},vb=(e,{katexRef:t,inlineDelimiters:r,blockDelimiters:n})=>{const i=(c,f,p,g,m=!1)=>{const w={attrs:_c(c,[["class",f]])},k=g.renderAttrs(w);if(!t.value)return`<${p} ${k}>${c.content}</${p}>`;const C=t.value.renderToString(c.content,Br.katexConfig({throwOnError:!1,displayMode:m}));return`<${p} ${k} data-processed>${C}</${p}>`},a=(c,f,p,g,m)=>i(c[f],`${Re}-katex-inline`,"span",m),s=(c,f,p,g,m)=>i(c[f],`${Re}-katex-block`,"p",m,!0);e.inline.ruler.before("escape","math_inline",bb({delimiters:r||Rf.inline})),e.block.ruler.after("blockquote","math_block",yb({delimiters:n||Rf.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=a,e.renderer.rules.math_block=s},wb=(e,t)=>{const r=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(n,i,a,s,c)=>{var g,m;const f=n[i],p=f.content.trim();if(f.info==="mermaid"){if(f.attrSet("class",`${Re}-mermaid`),f.attrSet("data-mermaid-theme",t.themeRef.value),f.map&&f.level===0){const k=f.map[1]-1,C=!!((m=(g=s.srcLines[k])==null?void 0:g.trim())!=null&&m.startsWith("```"));f.attrSet("data-closed",`${C}`),f.attrSet("data-line",String(f.map[0]))}const w=qo.get(p);return w?(f.attrSet("data-processed",""),f.attrSet("data-content",p),`<p ${c.renderAttrs(f)}>${w}</p>`):`<div ${c.renderAttrs(f)}>${e.utils.escapeHtml(p)}</div>`}return r(n,i,a,s,c)}},Pf=(e,t,r)=>{const n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):(e.attrs=e.attrs||[],e.attrs[n]=i)},xb=e=>e.type==="inline",Ab=e=>e.type==="paragraph_open",Db=e=>e.type==="list_item_open",kb=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,Cb=(e,t)=>xb(e[t])&&Ab(e[t-1])&&Db(e[t-2])&&kb(e[t]),Sb=(e,t)=>{const r=e[t].level-1;for(let n=t-1;n>=0;n--)if(e[n].level===r)return n;return-1},Eb=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},Fb=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},Tb=(e,t,r)=>{const n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",n.attrs=[["for",t]],n},Bb=(e,t,r)=>{const n=new t("html_inline","",0),i=r.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?n.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(n.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),n},Mb=(e,t,r)=>{if(e.children=e.children||[],e.children.unshift(Bb(e,t,r)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r.label)if(r.labelAfter){e.children.pop();const n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+n+'">',e.children.push(Tb(e.content,n,t))}else e.children.unshift(Eb(t)),e.children.push(Fb(t))},Nb=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",r=>{const n=r.tokens;for(let i=2;i<n.length;i++)Cb(n,i)&&(Mb(n[i],r.Token,t),Pf(n[i-2],"class","task-list-item"+(t.enabled?" enabled":" ")),Pf(n[Sb(n,i-2)],"class","contains-task-list"))})},_b=e=>{e.core.ruler.push("init-line-number",t=>(t.tokens.forEach(r=>{r.map&&(r.attrs||(r.attrs=[]),r.attrs.push(["data-line",r.map[0].toString()]))}),!0))},zb=(e,t)=>{const{editorConfig:r,markdownItPlugins:n}=Br,i=d.inject("editorId"),a=d.inject("language"),s=d.inject("usedLanguageText"),c=d.inject("showCodeRowNumber"),f=d.inject("theme"),p=d.inject("customIcon"),g=d.inject("rootRef"),m=d.inject("setting"),w=d.ref([]),k=cb(e),C=db(e),{reRenderRef:B,replaceMermaid:_}=fb(e),{reRenderEcharts:T,replaceEcharts:S}=lb(e),F=ar({html:!0,breaks:!0,linkify:!0}),z=[{type:"image",plugin:jg,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:hb,options:{}},{type:"taskList",plugin:Nb,options:{}},{type:"heading",plugin:gb,options:{mdHeadingId:e.mdHeadingId,headsRef:w}},{type:"code",plugin:mb,options:{editorId:i,usedLanguageTextRef:s,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:p}},{type:"sub",plugin:Wg,options:{}},{type:"sup",plugin:Yg,options:{}}];e.noKatex||z.push({type:"katex",plugin:vb,options:{katexRef:C}}),e.noMermaid||z.push({type:"mermaid",plugin:wb,options:{themeRef:f}}),e.noEcharts||z.push({type:"echarts",plugin:pb,options:{themeRef:f}}),n(z,{editorId:i}).forEach(Se=>{F.use(Se.plugin,Se.options)});const R=F.options.highlight;F.set({highlight:(Se,te,ye)=>{if(R){const We=R(Se,te,ye);if(We)return We}let ne;!e.noHighlight&&k.value?k.value.getLanguage(te)?ne=k.value.highlight(Se,{language:te,ignoreIllegals:!0}).value:ne=k.value.highlightAuto(Se).value:ne=F.utils.escapeHtml(Se);const Ne=c?Cg(ne.replace(/^\n+|\n+$/g,""),Se.replace(/^\n+|\n+$/g,"")):`<span class="${Re}-code-block">${ne.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${te}" language=${te}>${Ne}</code></pre>`}}),_b(F);const $=d.ref(`_article-key_${wc()}`),Y=d.ref(e.sanitize(F.render(e.modelValue,{srcLines:e.modelValue.split(`
|
|
643
|
+
`)})));let q=()=>{},pe=()=>{};const he=()=>{var te;const Se=(te=g.value)==null?void 0:te.querySelectorAll(`#${i} p.${Re}-mermaid:not([data-closed=false])`);pe(),pe=Vg(Se,{customIcon:p.value}),q(),q=Hg(Se,{customIcon:p.value})},ce=()=>{yr.emit(i,xg,Y.value),e.onHtmlChanged(Y.value),e.onGetCatalog(w.value),yr.emit(i,Cc,w.value),d.nextTick(()=>{_().then(he),S()})},be=()=>{w.value=[],Y.value=e.sanitize(F.render(e.modelValue,{srcLines:e.modelValue.split(`
|
|
644
|
+
`)}))},ae=d.computed(()=>(e.noKatex||!!C.value)&&(e.noHighlight||!!k.value));let xe=-1;return d.watch([d.toRef(e,"modelValue"),ae,B,a],()=>{xe=window.setTimeout(()=>{be()},t?0:r.renderDelay)}),d.watch(()=>m.value.preview,()=>{m.value.preview&&d.nextTick(()=>{_().then(he),S(),yr.emit(i,Cc,w.value)})}),d.watch([Y,T],()=>{ce()}),d.onMounted(ce),d.onMounted(()=>{yr.on(i,{name:Ag,callback(){yr.emit(i,Cc,w.value)}}),yr.on(i,{name:kf,callback:()=>{$.value=`_article-key_${wc()}`,be()}})}),d.onBeforeUnmount(()=>{q(),pe(),clearTimeout(xe)}),{html:Y,key:$}},Ib=(e,t)=>{const r=d.inject("editorId"),n=d.inject("setting"),{noImgZoomIn:i}=e,a=dg(()=>{const s=document.querySelectorAll(`#${r}-preview img:not(.not-zoom):not(.medium-zoom-image)`);s.length!==0&&nb(s,{background:"#00000073"})});d.onMounted(async()=>{!i&&n.value.preview&&await a()}),d.watch([t,()=>n.value.preview],async()=>{!i&&n.value.preview&&await a()})},Vf={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},Ob=(e,t)=>{const r=d.inject("editorId"),n=d.inject("rootRef");let i=()=>{};const a=()=>{if(!n.value)return!1;const s=n.value.querySelectorAll(".task-list-item.enabled"),c=f=>{var C;f.preventDefault();const p=f.target.checked?"unChecked":"checked",g=(C=f.target.parentElement)==null?void 0:C.dataset.line;if(!g)return;const m=Number(g),w=e.modelValue.split(`
|
|
645
|
+
`),k=w[Number(m)].replace(Vf[p].regexp,Vf[p].value);e.previewOnly?(w[Number(m)]=k,e.onChange(w.join(`
|
|
646
|
+
`))):yr.emit(r,Dg,m+1,k)};s.forEach(f=>{f.addEventListener("click",c)}),i=()=>{s.forEach(f=>{f.removeEventListener("click",c)})}};d.onBeforeUnmount(()=>{i()}),d.watch([t],()=>{i(),d.nextTick(a)},{immediate:!0})},Lb=(e,t,r)=>{const n=d.inject("setting"),i=()=>{d.nextTick(()=>{var s;(s=e.onRemount)==null||s.call(e)})},a=s=>{s&&i()};d.watch([t,r],i),d.watch(()=>n.value.preview,a),d.watch(()=>n.value.htmlPreview,a),d.onMounted(i)},Hf={modelValue:{type:String,default:""},onChange:{type:Function,default:()=>{}},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function},codeFoldable:{type:Boolean},autoFoldThreshold:{type:Number},onRemount:{type:Function},noEcharts:{type:Boolean},previewComponent:{type:[Object,Function],default:void 0}};({...Hf});const qf=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},Rb=(e,t)=>e.nodeType!==t.nodeType?!1:e.nodeType===Node.TEXT_NODE||e.nodeType===Node.COMMENT_NODE?e.textContent===t.textContent:e.nodeType===Node.ELEMENT_NODE?e.outerHTML===t.outerHTML:e.isEqualNode?e.isEqualNode(t):!1,Pb=d.defineComponent({name:"UpdateOnDemand",props:{id:{type:String,required:!0},class:{type:[String,Array,Object],required:!0},html:{type:String,required:!0}},setup(e){const t=d.ref(),r=e.html,n=(i,a)=>{if(!t.value)return;const s=t.value,c=Array.from(s.childNodes),f=Math.min(i.length,a.length);let p=-1;for(let m=0;m<f;m++)if(!Rb(i[m],a[m])){p=m;break}if(p===-1)if(a.length>i.length)p=i.length;else if(i.length>a.length)p=a.length;else return;const g=Math.min(p,c.length);for(let m=c.length-1;m>=g;m--)c[m].remove();for(let m=p;m<i.length;m++)s.appendChild(i[m].cloneNode(!0))};return d.watch(()=>e.html,(i,a)=>{const s=qf(i),c=qf(a||"");n(s,c)}),()=>d.createVNode("div",{id:e.id,class:e.class,innerHTML:r,ref:t},null)}}),Vb=d.defineComponent({name:"ContentPreview",props:Hf,setup(e){const t=d.inject("editorId"),r=d.inject("setting"),n=d.inject("previewTheme"),i=d.inject("showCodeRowNumber"),{html:a,key:s}=zb(e,e.previewOnly);sb(e,a,s),Ib(e,a),Ob(e,a),Lb(e,a,s);const c=d.computed(()=>[`${Re}-preview`,`${n==null?void 0:n.value}-theme`,i&&`${Re}-scrn`].filter(Boolean)),f=()=>{const p=`${t}-preview`;return e.previewComponent?d.h(e.previewComponent,{key:s.value,html:a.value,id:p,class:c.value}):d.createVNode(Pb,{key:s.value,html:a.value,id:p,class:c.value},null)};return()=>d.createVNode(d.Fragment,null,[r.value.preview&&(e.previewOnly?f():d.createVNode("div",{id:`${t}-preview-wrapper`,class:`${Re}-preview-wrapper`,key:"content-preview-wrapper"},[f()])),r.value.htmlPreview&&d.createVNode("div",{id:`${t}-html-wrapper`,class:`${Re}-preview-wrapper`,key:"html-preview-wrapper"},[d.createVNode("div",{class:`${Re}-html`},[a.value])])])}}),Hb=({text:e})=>e,jf={modelValue:{type:String,default:""},onChange:{type:Function,default:void 0},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function,default:void 0},onGetCatalog:{type:Function,default:void 0},editorId:{type:String,default:void 0},id:{type:String,default:void 0},showCodeRowNumber:{type:Boolean,default:!0},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:Hb},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)},codeFoldable:{type:Boolean,default:!0},autoFoldThreshold:{type:Number,default:30},onRemount:{type:Function,default:void 0},noEcharts:{type:Boolean,default:!1},previewComponent:{type:[Object,Function],default:void 0}};({...jf});const $f=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...$f];const qb=(e,t,r)=>{const{editorId:n}=r,i={rerender(){yr.emit(n,kf)}};t.expose(i)},jo=d.defineComponent({name:"MdPreview",props:jf,emits:$f,setup(e,t){const{noKatex:r,noMermaid:n,noHighlight:i}=e,a=d.ref(),s=ob(e);ub(e,{rootRef:a,editorId:s}),qb(e,t,{editorId:s}),d.onBeforeUnmount(()=>{yr.clear(s)});const c=m=>{var w;(w=e.onChange)==null||w.call(e,m),t.emit("onChange",m),t.emit("update:modelValue",m)},f=m=>{var w;(w=e.onHtmlChanged)==null||w.call(e,m),t.emit("onHtmlChanged",m)},p=m=>{var w;(w=e.onGetCatalog)==null||w.call(e,m),t.emit("onGetCatalog",m)},g=()=>{var m;(m=e.onRemount)==null||m.call(e),t.emit("onRemount")};return()=>d.createVNode("div",{id:s,class:[Re,e.class,e.theme==="dark"&&`${Re}-dark`,`${Re}-previewOnly`],style:e.style,ref:a},[d.createVNode(Vb,{modelValue:e.modelValue,onChange:c,onHtmlChanged:f,onGetCatalog:p,mdHeadingId:e.mdHeadingId,noMermaid:n,sanitize:e.sanitize,noKatex:r,formatCopiedText:e.formatCopiedText,noHighlight:i,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:g,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});jo.install=e=>(e.component(jo.name,jo),e);const jb={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},zc=d.defineComponent({name:"NormalFooterToolbar",props:jb,emits:["onClick"],setup(e,t){return()=>{const r=wg({props:e,ctx:t});return d.createVNode("div",{class:[`${Re}-footer-item`,e.disabled&&`${Re}-disabled`],onClick:n=>{var i;e.disabled||((i=e.onClick)==null||i.call(e,n),t.emit("onClick",n))}},[r])}}});zc.install=e=>(e.component(zc.name,zc),e);var Ic={exports:{}},Pt={},Oc={exports:{}},ba={},Uf;function Wf(){if(Uf)return ba;Uf=1;function e(){var a={};return a["align-content"]=!1,a["align-items"]=!1,a["align-self"]=!1,a["alignment-adjust"]=!1,a["alignment-baseline"]=!1,a.all=!1,a["anchor-point"]=!1,a.animation=!1,a["animation-delay"]=!1,a["animation-direction"]=!1,a["animation-duration"]=!1,a["animation-fill-mode"]=!1,a["animation-iteration-count"]=!1,a["animation-name"]=!1,a["animation-play-state"]=!1,a["animation-timing-function"]=!1,a.azimuth=!1,a["backface-visibility"]=!1,a.background=!0,a["background-attachment"]=!0,a["background-clip"]=!0,a["background-color"]=!0,a["background-image"]=!0,a["background-origin"]=!0,a["background-position"]=!0,a["background-repeat"]=!0,a["background-size"]=!0,a["baseline-shift"]=!1,a.binding=!1,a.bleed=!1,a["bookmark-label"]=!1,a["bookmark-level"]=!1,a["bookmark-state"]=!1,a.border=!0,a["border-bottom"]=!0,a["border-bottom-color"]=!0,a["border-bottom-left-radius"]=!0,a["border-bottom-right-radius"]=!0,a["border-bottom-style"]=!0,a["border-bottom-width"]=!0,a["border-collapse"]=!0,a["border-color"]=!0,a["border-image"]=!0,a["border-image-outset"]=!0,a["border-image-repeat"]=!0,a["border-image-slice"]=!0,a["border-image-source"]=!0,a["border-image-width"]=!0,a["border-left"]=!0,a["border-left-color"]=!0,a["border-left-style"]=!0,a["border-left-width"]=!0,a["border-radius"]=!0,a["border-right"]=!0,a["border-right-color"]=!0,a["border-right-style"]=!0,a["border-right-width"]=!0,a["border-spacing"]=!0,a["border-style"]=!0,a["border-top"]=!0,a["border-top-color"]=!0,a["border-top-left-radius"]=!0,a["border-top-right-radius"]=!0,a["border-top-style"]=!0,a["border-top-width"]=!0,a["border-width"]=!0,a.bottom=!1,a["box-decoration-break"]=!0,a["box-shadow"]=!0,a["box-sizing"]=!0,a["box-snap"]=!0,a["box-suppress"]=!0,a["break-after"]=!0,a["break-before"]=!0,a["break-inside"]=!0,a["caption-side"]=!1,a.chains=!1,a.clear=!0,a.clip=!1,a["clip-path"]=!1,a["clip-rule"]=!1,a.color=!0,a["color-interpolation-filters"]=!0,a["column-count"]=!1,a["column-fill"]=!1,a["column-gap"]=!1,a["column-rule"]=!1,a["column-rule-color"]=!1,a["column-rule-style"]=!1,a["column-rule-width"]=!1,a["column-span"]=!1,a["column-width"]=!1,a.columns=!1,a.contain=!1,a.content=!1,a["counter-increment"]=!1,a["counter-reset"]=!1,a["counter-set"]=!1,a.crop=!1,a.cue=!1,a["cue-after"]=!1,a["cue-before"]=!1,a.cursor=!1,a.direction=!1,a.display=!0,a["display-inside"]=!0,a["display-list"]=!0,a["display-outside"]=!0,a["dominant-baseline"]=!1,a.elevation=!1,a["empty-cells"]=!1,a.filter=!1,a.flex=!1,a["flex-basis"]=!1,a["flex-direction"]=!1,a["flex-flow"]=!1,a["flex-grow"]=!1,a["flex-shrink"]=!1,a["flex-wrap"]=!1,a.float=!1,a["float-offset"]=!1,a["flood-color"]=!1,a["flood-opacity"]=!1,a["flow-from"]=!1,a["flow-into"]=!1,a.font=!0,a["font-family"]=!0,a["font-feature-settings"]=!0,a["font-kerning"]=!0,a["font-language-override"]=!0,a["font-size"]=!0,a["font-size-adjust"]=!0,a["font-stretch"]=!0,a["font-style"]=!0,a["font-synthesis"]=!0,a["font-variant"]=!0,a["font-variant-alternates"]=!0,a["font-variant-caps"]=!0,a["font-variant-east-asian"]=!0,a["font-variant-ligatures"]=!0,a["font-variant-numeric"]=!0,a["font-variant-position"]=!0,a["font-weight"]=!0,a.grid=!1,a["grid-area"]=!1,a["grid-auto-columns"]=!1,a["grid-auto-flow"]=!1,a["grid-auto-rows"]=!1,a["grid-column"]=!1,a["grid-column-end"]=!1,a["grid-column-start"]=!1,a["grid-row"]=!1,a["grid-row-end"]=!1,a["grid-row-start"]=!1,a["grid-template"]=!1,a["grid-template-areas"]=!1,a["grid-template-columns"]=!1,a["grid-template-rows"]=!1,a["hanging-punctuation"]=!1,a.height=!0,a.hyphens=!1,a.icon=!1,a["image-orientation"]=!1,a["image-resolution"]=!1,a["ime-mode"]=!1,a["initial-letters"]=!1,a["inline-box-align"]=!1,a["justify-content"]=!1,a["justify-items"]=!1,a["justify-self"]=!1,a.left=!1,a["letter-spacing"]=!0,a["lighting-color"]=!0,a["line-box-contain"]=!1,a["line-break"]=!1,a["line-grid"]=!1,a["line-height"]=!1,a["line-snap"]=!1,a["line-stacking"]=!1,a["line-stacking-ruby"]=!1,a["line-stacking-shift"]=!1,a["line-stacking-strategy"]=!1,a["list-style"]=!0,a["list-style-image"]=!0,a["list-style-position"]=!0,a["list-style-type"]=!0,a.margin=!0,a["margin-bottom"]=!0,a["margin-left"]=!0,a["margin-right"]=!0,a["margin-top"]=!0,a["marker-offset"]=!1,a["marker-side"]=!1,a.marks=!1,a.mask=!1,a["mask-box"]=!1,a["mask-box-outset"]=!1,a["mask-box-repeat"]=!1,a["mask-box-slice"]=!1,a["mask-box-source"]=!1,a["mask-box-width"]=!1,a["mask-clip"]=!1,a["mask-image"]=!1,a["mask-origin"]=!1,a["mask-position"]=!1,a["mask-repeat"]=!1,a["mask-size"]=!1,a["mask-source-type"]=!1,a["mask-type"]=!1,a["max-height"]=!0,a["max-lines"]=!1,a["max-width"]=!0,a["min-height"]=!0,a["min-width"]=!0,a["move-to"]=!1,a["nav-down"]=!1,a["nav-index"]=!1,a["nav-left"]=!1,a["nav-right"]=!1,a["nav-up"]=!1,a["object-fit"]=!1,a["object-position"]=!1,a.opacity=!1,a.order=!1,a.orphans=!1,a.outline=!1,a["outline-color"]=!1,a["outline-offset"]=!1,a["outline-style"]=!1,a["outline-width"]=!1,a.overflow=!1,a["overflow-wrap"]=!1,a["overflow-x"]=!1,a["overflow-y"]=!1,a.padding=!0,a["padding-bottom"]=!0,a["padding-left"]=!0,a["padding-right"]=!0,a["padding-top"]=!0,a.page=!1,a["page-break-after"]=!1,a["page-break-before"]=!1,a["page-break-inside"]=!1,a["page-policy"]=!1,a.pause=!1,a["pause-after"]=!1,a["pause-before"]=!1,a.perspective=!1,a["perspective-origin"]=!1,a.pitch=!1,a["pitch-range"]=!1,a["play-during"]=!1,a.position=!1,a["presentation-level"]=!1,a.quotes=!1,a["region-fragment"]=!1,a.resize=!1,a.rest=!1,a["rest-after"]=!1,a["rest-before"]=!1,a.richness=!1,a.right=!1,a.rotation=!1,a["rotation-point"]=!1,a["ruby-align"]=!1,a["ruby-merge"]=!1,a["ruby-position"]=!1,a["shape-image-threshold"]=!1,a["shape-outside"]=!1,a["shape-margin"]=!1,a.size=!1,a.speak=!1,a["speak-as"]=!1,a["speak-header"]=!1,a["speak-numeral"]=!1,a["speak-punctuation"]=!1,a["speech-rate"]=!1,a.stress=!1,a["string-set"]=!1,a["tab-size"]=!1,a["table-layout"]=!1,a["text-align"]=!0,a["text-align-last"]=!0,a["text-combine-upright"]=!0,a["text-decoration"]=!0,a["text-decoration-color"]=!0,a["text-decoration-line"]=!0,a["text-decoration-skip"]=!0,a["text-decoration-style"]=!0,a["text-emphasis"]=!0,a["text-emphasis-color"]=!0,a["text-emphasis-position"]=!0,a["text-emphasis-style"]=!0,a["text-height"]=!0,a["text-indent"]=!0,a["text-justify"]=!0,a["text-orientation"]=!0,a["text-overflow"]=!0,a["text-shadow"]=!0,a["text-space-collapse"]=!0,a["text-transform"]=!0,a["text-underline-position"]=!0,a["text-wrap"]=!0,a.top=!1,a.transform=!1,a["transform-origin"]=!1,a["transform-style"]=!1,a.transition=!1,a["transition-delay"]=!1,a["transition-duration"]=!1,a["transition-property"]=!1,a["transition-timing-function"]=!1,a["unicode-bidi"]=!1,a["vertical-align"]=!1,a.visibility=!1,a["voice-balance"]=!1,a["voice-duration"]=!1,a["voice-family"]=!1,a["voice-pitch"]=!1,a["voice-range"]=!1,a["voice-rate"]=!1,a["voice-stress"]=!1,a["voice-volume"]=!1,a.volume=!1,a["white-space"]=!1,a.widows=!1,a.width=!0,a["will-change"]=!1,a["word-break"]=!0,a["word-spacing"]=!0,a["word-wrap"]=!0,a["wrap-flow"]=!1,a["wrap-through"]=!1,a["writing-mode"]=!1,a["z-index"]=!1,a}function t(a,s,c){}function r(a,s,c){}var n=/javascript\s*\:/img;function i(a,s){return n.test(s)?"":s}return ba.whiteList=e(),ba.getDefaultWhiteList=e,ba.onAttr=t,ba.onIgnoreAttr=r,ba.safeAttrValue=i,ba}var Gf,Xf;function Yf(){return Xf||(Xf=1,Gf={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),Gf}var Lc,Zf;function $b(){if(Zf)return Lc;Zf=1;var e=Yf();function t(r,n){r=e.trimRight(r),r[r.length-1]!==";"&&(r+=";");var i=r.length,a=!1,s=0,c=0,f="";function p(){if(!a){var w=e.trim(r.slice(s,c)),k=w.indexOf(":");if(k!==-1){var C=e.trim(w.slice(0,k)),B=e.trim(w.slice(k+1));if(C){var _=n(s,f.length,C,B,w);_&&(f+=_+"; ")}}}s=c+1}for(;c<i;c++){var g=r[c];if(g==="/"&&r[c+1]==="*"){var m=r.indexOf("*/",c+2);if(m===-1)break;c=m+1,s=c+1,a=!1}else g==="("?a=!0:g===")"?a=!1:g===";"?a||p():g===`
|
|
647
|
+
`&&p()}return e.trim(f)}return Lc=t,Lc}var Rc,Kf;function Ub(){if(Kf)return Rc;Kf=1;var e=Wf(),t=$b();Yf();function r(a){return a==null}function n(a){var s={};for(var c in a)s[c]=a[c];return s}function i(a){a=n(a||{}),a.whiteList=a.whiteList||e.whiteList,a.onAttr=a.onAttr||e.onAttr,a.onIgnoreAttr=a.onIgnoreAttr||e.onIgnoreAttr,a.safeAttrValue=a.safeAttrValue||e.safeAttrValue,this.options=a}return i.prototype.process=function(a){if(a=a||"",a=a.toString(),!a)return"";var s=this,c=s.options,f=c.whiteList,p=c.onAttr,g=c.onIgnoreAttr,m=c.safeAttrValue,w=t(a,function(k,C,B,_,T){var S=f[B],F=!1;if(S===!0?F=S:typeof S=="function"?F=S(_):S instanceof RegExp&&(F=S.test(_)),F!==!0&&(F=!1),_=m(B,_),!!_){var z={position:C,sourcePosition:k,source:T,isWhite:F};if(F){var R=p(B,_,z);return r(R)?B+":"+_:R}else{var R=g(B,_,z);if(!r(R))return R}}});return w},Rc=i,Rc}var Qf;function Pc(){return Qf||(Qf=1,function(e,t){var r=Wf(),n=Ub();function i(s,c){var f=new n(c);return f.process(s)}t=e.exports=i,t.FilterCSS=n;for(var a in r)t[a]=r[a];typeof window<"u"&&(window.filterCSS=e.exports)}(Oc,Oc.exports)),Oc.exports}var Jf,eh;function Vc(){return eh||(eh=1,Jf={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}}),Jf}var th;function rh(){if(th)return Pt;th=1;var e=Pc().FilterCSS,t=Pc().getDefaultWhiteList,r=Vc();function n(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var i=new e;function a(te,ye,ne){}function s(te,ye,ne){}function c(te,ye,ne){}function f(te,ye,ne){}function p(te){return te.replace(m,"<").replace(w,">")}function g(te,ye,ne,Ne){if(ne=he(ne),ye==="href"||ye==="src"){if(ne=r.trim(ne),ne==="#")return"#";if(!(ne.substr(0,7)==="http://"||ne.substr(0,8)==="https://"||ne.substr(0,7)==="mailto:"||ne.substr(0,4)==="tel:"||ne.substr(0,11)==="data:image/"||ne.substr(0,6)==="ftp://"||ne.substr(0,2)==="./"||ne.substr(0,3)==="../"||ne[0]==="#"||ne[0]==="/"))return""}else if(ye==="background"){if(S.lastIndex=0,S.test(ne))return""}else if(ye==="style"){if(F.lastIndex=0,F.test(ne)||(z.lastIndex=0,z.test(ne)&&(S.lastIndex=0,S.test(ne))))return"";Ne!==!1&&(Ne=Ne||i,ne=Ne.process(ne))}return ne=ce(ne),ne}var m=/</g,w=/>/g,k=/"/g,C=/"/g,B=/&#([a-zA-Z0-9]*);?/gim,_=/:?/gim,T=/&newline;?/gim,S=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,F=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,z=/u\s*r\s*l\s*\(.*/gi;function R(te){return te.replace(k,""")}function $(te){return te.replace(C,'"')}function Y(te){return te.replace(B,function(ye,ne){return ne[0]==="x"||ne[0]==="X"?String.fromCharCode(parseInt(ne.substr(1),16)):String.fromCharCode(parseInt(ne,10))})}function q(te){return te.replace(_,":").replace(T," ")}function pe(te){for(var ye="",ne=0,Ne=te.length;ne<Ne;ne++)ye+=te.charCodeAt(ne)<32?" ":te.charAt(ne);return r.trim(ye)}function he(te){return te=$(te),te=Y(te),te=q(te),te=pe(te),te}function ce(te){return te=R(te),te=p(te),te}function be(){return""}function ae(te,ye){typeof ye!="function"&&(ye=function(){});var ne=!Array.isArray(te);function Ne(Z){return ne?!0:r.indexOf(te,Z)!==-1}var We=[],X=!1;return{onIgnoreTag:function(Z,Q,ue){if(Ne(Z))if(ue.isClosing){var fe="[/removed]",ke=ue.position+fe.length;return We.push([X!==!1?X:ue.position,ke]),X=!1,fe}else return X||(X=ue.position),"[removed]";else return ye(Z,Q,ue)},remove:function(Z){var Q="",ue=0;return r.forEach(We,function(fe){Q+=Z.slice(ue,fe[0]),ue=fe[1]}),Q+=Z.slice(ue),Q}}}function xe(te){for(var ye="",ne=0;ne<te.length;){var Ne=te.indexOf("<!--",ne);if(Ne===-1){ye+=te.slice(ne);break}ye+=te.slice(ne,Ne);var We=te.indexOf("-->",Ne);if(We===-1)break;ne=We+3}return ye}function Se(te){var ye=te.split("");return ye=ye.filter(function(ne){var Ne=ne.charCodeAt(0);return Ne===127?!1:Ne<=31?Ne===10||Ne===13:!0}),ye.join("")}return Pt.whiteList=n(),Pt.getDefaultWhiteList=n,Pt.onTag=a,Pt.onIgnoreTag=s,Pt.onTagAttr=c,Pt.onIgnoreTagAttr=f,Pt.safeAttrValue=g,Pt.escapeHtml=p,Pt.escapeQuote=R,Pt.unescapeQuote=$,Pt.escapeHtmlEntities=Y,Pt.escapeDangerHtml5Entities=q,Pt.clearNonPrintableCharacter=pe,Pt.friendlyAttrValue=he,Pt.escapeAttrValue=ce,Pt.onIgnoreTagStripAll=be,Pt.StripTagBody=ae,Pt.stripCommentTag=xe,Pt.stripBlankChar=Se,Pt.attributeWrapSign='"',Pt.cssFilter=i,Pt.getDefaultCSSWhiteList=t,Pt}var $o={},nh;function ah(){if(nh)return $o;nh=1;var e=Vc();function t(m){var w=e.spaceIndex(m),k;return w===-1?k=m.slice(1,-1):k=m.slice(1,w+1),k=e.trim(k).toLowerCase(),k.slice(0,1)==="/"&&(k=k.slice(1)),k.slice(-1)==="/"&&(k=k.slice(0,-1)),k}function r(m){return m.slice(0,2)==="</"}function n(m,w,k){var C="",B=0,_=!1,T=!1,S=0,F=m.length,z="",R="";e:for(S=0;S<F;S++){var $=m.charAt(S);if(_===!1){if($==="<"){_=S;continue}}else if(T===!1){if($==="<"){C+=k(m.slice(B,S)),_=S,B=S;continue}if($===">"||S===F-1){C+=k(m.slice(B,_)),R=m.slice(_,S+1),z=t(R),C+=w(_,C.length,z,R,r(R)),B=S+1,_=!1;continue}if($==='"'||$==="'")for(var Y=1,q=m.charAt(S-Y);q.trim()===""||q==="=";){if(q==="="){T=$;continue e}q=m.charAt(S-++Y)}}else if($===T){T=!1;continue}}return B<F&&(C+=k(m.substr(B))),C}var i=/[^a-zA-Z0-9\\_:.-]/gim;function a(m,w){var k=0,C=0,B=[],_=!1,T=m.length;function S(Y,q){if(Y=e.trim(Y),Y=Y.replace(i,"").toLowerCase(),!(Y.length<1)){var pe=w(Y,q||"");pe&&B.push(pe)}}for(var F=0;F<T;F++){var z=m.charAt(F),R,$;if(_===!1&&z==="="){_=m.slice(k,F),k=F+1,C=m.charAt(k)==='"'||m.charAt(k)==="'"?k:c(m,F+1);continue}if(_!==!1&&F===C){if($=m.indexOf(z,F+1),$===-1)break;R=e.trim(m.slice(C+1,$)),S(_,R),_=!1,F=$,k=F+1;continue}if(/\s|\n|\t/.test(z))if(m=m.replace(/\s|\n|\t/g," "),_===!1)if($=s(m,F),$===-1){R=e.trim(m.slice(k,F)),S(R),_=!1,k=F+1;continue}else{F=$-1;continue}else if($=f(m,F-1),$===-1){R=e.trim(m.slice(k,F)),R=g(R),S(_,R),_=!1,k=F+1;continue}else continue}return k<m.length&&(_===!1?S(m.slice(k)):S(_,g(e.trim(m.slice(k))))),e.trim(B.join(" "))}function s(m,w){for(;w<m.length;w++){var k=m[w];if(k!==" ")return k==="="?w:-1}}function c(m,w){for(;w<m.length;w++){var k=m[w];if(k!==" ")return k==="'"||k==='"'?w:-1}}function f(m,w){for(;w>0;w--){var k=m[w];if(k!==" ")return k==="="?w:-1}}function p(m){return m[0]==='"'&&m[m.length-1]==='"'||m[0]==="'"&&m[m.length-1]==="'"}function g(m){return p(m)?m.substr(1,m.length-2):m}return $o.parseTag=n,$o.parseAttr=a,$o}var Hc,ih;function Wb(){if(ih)return Hc;ih=1;var e=Pc().FilterCSS,t=rh(),r=ah(),n=r.parseTag,i=r.parseAttr,a=Vc();function s(m){return m==null}function c(m){var w=a.spaceIndex(m);if(w===-1)return{html:"",closing:m[m.length-2]==="/"};m=a.trim(m.slice(w+1,-1));var k=m[m.length-1]==="/";return k&&(m=a.trim(m.slice(0,-1))),{html:m,closing:k}}function f(m){var w={};for(var k in m)w[k]=m[k];return w}function p(m){var w={};for(var k in m)Array.isArray(m[k])?w[k.toLowerCase()]=m[k].map(function(C){return C.toLowerCase()}):w[k.toLowerCase()]=m[k];return w}function g(m){m=f(m||{}),m.stripIgnoreTag&&(m.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),m.onIgnoreTag=t.onIgnoreTagStripAll),m.whiteList||m.allowList?m.whiteList=p(m.whiteList||m.allowList):m.whiteList=t.whiteList,this.attributeWrapSign=m.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,m.onTag=m.onTag||t.onTag,m.onTagAttr=m.onTagAttr||t.onTagAttr,m.onIgnoreTag=m.onIgnoreTag||t.onIgnoreTag,m.onIgnoreTagAttr=m.onIgnoreTagAttr||t.onIgnoreTagAttr,m.safeAttrValue=m.safeAttrValue||t.safeAttrValue,m.escapeHtml=m.escapeHtml||t.escapeHtml,this.options=m,m.css===!1?this.cssFilter=!1:(m.css=m.css||{},this.cssFilter=new e(m.css))}return g.prototype.process=function(m){if(m=m||"",m=m.toString(),!m)return"";var w=this,k=w.options,C=k.whiteList,B=k.onTag,_=k.onIgnoreTag,T=k.onTagAttr,S=k.onIgnoreTagAttr,F=k.safeAttrValue,z=k.escapeHtml,R=w.attributeWrapSign,$=w.cssFilter;k.stripBlankChar&&(m=t.stripBlankChar(m)),k.allowCommentTag||(m=t.stripCommentTag(m));var Y=!1;k.stripIgnoreTagBody&&(Y=t.StripTagBody(k.stripIgnoreTagBody,_),_=Y.onIgnoreTag);var q=n(m,function(pe,he,ce,be,ae){var xe={sourcePosition:pe,position:he,isClosing:ae,isWhite:Object.prototype.hasOwnProperty.call(C,ce)},Se=B(ce,be,xe);if(!s(Se))return Se;if(xe.isWhite){if(xe.isClosing)return"</"+ce+">";var te=c(be),ye=C[ce],ne=i(te.html,function(Ne,We){var X=a.indexOf(ye,Ne)!==-1,Z=T(ce,Ne,We,X);return s(Z)?X?(We=F(ce,Ne,We,$),We?Ne+"="+R+We+R:Ne):(Z=S(ce,Ne,We,X),s(Z)?void 0:Z):Z});return be="<"+ce,ne&&(be+=" "+ne),te.closing&&(be+=" /"),be+=">",be}else return Se=_(ce,be,xe),s(Se)?z(be):Se},z);return Y&&(q=Y.remove(q)),q},Hc=g,Hc}var uh;function Gb(){return uh||(uh=1,function(e,t){var r=rh(),n=ah(),i=Wb();function a(c,f){var p=new i(f);return p.process(c)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var c in r)t[c]=r[c];for(var f in n)t[f]=n[f]}(),typeof window<"u"&&(window.filterXSS=e.exports);function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)}(Ic,Ic.exports)),Ic.exports}Gb();const ya=d.defineComponent({name:"FMarkdownPreview",props:xf,setup(e){return()=>d.createVNode("div",{class:"f-markdown-preview-container"},[d.createVNode(jo,{modelValue:e.content},null)])}});ya.install=e=>{e.component(ya.name,ya)};const qc="farris-x-preview-bridge",jc=1,$c="assistant.message";function oh(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function sh(e){return e!==null&&typeof e=="object"}function lh(e){if(!sh(e)||e.source!==qc||e.v!==jc||e.type!==$c)return!1;const t=e.payload;return!(!sh(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function Xb(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function ch(e,t,r){const n=oh(r);try{return e.postMessage({source:qc,v:jc,type:$c,payload:n},t),!0}catch{return!1}}function dh(e){const t=e.allowTopAsSource!==!1,r=n=>{var i;Xb(n,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(n.origin)||lh(n.data)&&((i=e.onAssistantMessage)==null||i.call(e,n.data.payload)))};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)}const Yb="/platform/common/web/renderer/index.html#/preview",Zb="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",Kb="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",Qb="67441dbb-0219-46f2-b247-51555c317995";function fh(e){if(e.url)return e.url;const t=e.baseUri??Yb,r=e.metadataPath??Zb,n=e.projectPath??Kb,i=e.baseMetadataId??Qb;return`${t}?metadataPath=${encodeURIComponent(r)}&projectPath=${encodeURIComponent(n)}&baseMetadataId=${encodeURIComponent(i)}`}function Jb(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=fh(e),r=new URL(t,window.location.href).origin;return r==="null"||r===""?window.location.origin:r}catch{return null}}const Yi=d.defineComponent({name:"ChatPreview",props:wf,setup(e,{expose:t}){const r=d.ref(null),n=d.ref(null),i=d.ref(!1),a=d.ref(!1),s=d.computed(()=>fh(e.previewConfig??{})),c=d.computed(()=>{var te;return((te=e.previewConfig)==null?void 0:te.contentType)==="markdown"}),f=d.computed(()=>{var te;return Object.keys(((te=e.previewConfig)==null?void 0:te.contentMap)??{})}),p=d.computed(()=>f.value.filter(te=>te).length>0),g=d.ref(),m=d.ref(),w=d.ref(!1);let k=null;d.onBeforeUnmount(()=>{k==null||k(),k=null,be()}),d.watch(()=>[s.value,r.value,c.value],()=>{if(k==null||k(),k=null,c.value)return;const te=r.value;if(!te)return;w.value=!1,i.value=!1,a.value=!1;const ye=Date.now(),ne=200,Ne=300,We=1e4;let X=!1,Z=null,Q=null;Q=window.setTimeout(()=>{Q=null,X||(a.value=!0)},ne);const ue=()=>{if(X)return;if(X=!0,Z&&(window.clearTimeout(Z),Z=null),Q&&(window.clearTimeout(Q),Q=null),w.value=!0,ae(te),a.value){const ie=Date.now()-ye,me=Math.max(0,Ne-ie);setTimeout(()=>{i.value=!0},me)}else i.value=!0;const ke=()=>{var ie;return(ie=e.onIframeLoad)==null?void 0:ie.call(e)};ke(),window.setTimeout(ke,0),window.setTimeout(ke,120)},fe=()=>{var ke;X||(X=!0,Q&&(window.clearTimeout(Q),Q=null),console.warn("ChatPreview: iframe load timeout"),w.value=!0,i.value=!0,(ke=e.onIframeLoad)==null||ke.call(e))};te.addEventListener("load",ue,{once:!0}),Z=window.setTimeout(fe,We),k=()=>{te.removeEventListener("load",ue),Z&&(window.clearTimeout(Z),Z=null),Q&&(window.clearTimeout(Q),Q=null)}},{flush:"post"}),d.watch([c,()=>{var te;return(te=e.previewConfig)==null?void 0:te.contentMap}],()=>{be(),c.value&&d.nextTick(()=>ce())},{flush:"post"}),d.watch(()=>{var te;return(te=e.previewConfig)==null?void 0:te.contentMap},te=>{if(te){const ye=Object.keys(te);g.value=ye[0]??""}else g.value="";C()},{immediate:!0});function C(te){var ye,ne;te&&(g.value=te),p.value&&g.value?m.value=((ne=(ye=e.previewConfig)==null?void 0:ye.contentMap)==null?void 0:ne[g.value])||"":m.value=""}function B(te){var Ne;if(c.value||!w.value)return!1;const ye=(Ne=r.value)==null?void 0:Ne.contentWindow;if(!ye)return!1;const ne=Jb(e.previewConfig??{});return ne?ch(ye,ne,te):!1}t({postAssistantPayload:B});const _=d.ref(!1);let T=null;const S=800;function F(){_.value=!0,he(!0),T!=null&&(window.clearTimeout(T),T=null)}function z(){T!=null&&window.clearTimeout(T),T=window.setTimeout(()=>{_.value=!1,he(!1),T=null},S)}function R(){F(),z()}function $(){F()}function Y(){z()}let q=[];function pe(){const te=n.value;if(!te)return[];const ye=[],ne=te.querySelectorAll(".f-markdown-preview-container");return ne.length>0&&ne.forEach(Ne=>ye.push(Ne)),ye.length===0&&te.scrollHeight>te.clientHeight&&ye.push(te),ye}function he(te){const ye=n.value;ye&&ye.querySelectorAll(".f-markdown-preview-container").forEach(ne=>{ne.classList.toggle("f-chat-preview-scrollbar-visible",te)})}function ce(){const te=pe();q=te,te.forEach(ye=>{ye.addEventListener("scroll",R,{passive:!0}),ye.addEventListener("mouseenter",$),ye.addEventListener("mouseleave",Y)})}function be(){q.forEach(te=>{te.removeEventListener("scroll",R),te.removeEventListener("mouseenter",$),te.removeEventListener("mouseleave",Y)}),q=[]}function ae(te){try{const ye=te.contentDocument;if(!ye)return;const ne="f-chat-preview-injected-scrollbar-style";if(ye.getElementById(ne))return;const Ne=ye.createElement("style");Ne.id=ne,Ne.textContent=`
|
|
103
648
|
html, body {
|
|
104
649
|
scrollbar-width: thin;
|
|
105
650
|
scrollbar-color: transparent transparent;
|
|
@@ -125,7 +670,7 @@ See: https://github.com/francoischalifour/medium-zoom`)}},sp=function(t){var n=d
|
|
|
125
670
|
body.iframe-scrollbar-visible::-webkit-scrollbar-thumb {
|
|
126
671
|
background: #ccc;
|
|
127
672
|
}
|
|
128
|
-
`,(
|
|
673
|
+
`,(ye.head||ye.documentElement).appendChild(Ne);const We="f-chat-preview-injected-scrollbar-script";if(ye.getElementById(We))return;const X=ye.createElement("script");X.id=We,X.textContent=`
|
|
129
674
|
(function() {
|
|
130
675
|
var hideTimer = null;
|
|
131
676
|
var HIDE_DELAY = 800;
|
|
@@ -146,8 +691,8 @@ See: https://github.com/francoischalifour/medium-zoom`)}},sp=function(t){var n=d
|
|
|
146
691
|
document.addEventListener('mouseenter', show);
|
|
147
692
|
document.addEventListener('mouseleave', scheduleHide);
|
|
148
693
|
})();
|
|
149
|
-
`,(
|
|
150
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
694
|
+
`,(ye.head||ye.documentElement).appendChild(X)}catch{}}const xe=()=>{var te;return d.createVNode("div",{class:"f-chat-preview-header"},[d.createVNode("div",{class:"f-chat-preview-header-left"},[d.createVNode("button",{class:"f-chat-preview-preview-btn"},[d.createVNode("i",{class:"fx-icon fx-icon-card_info"},null),d.createVNode("span",{class:"f-chat-preview-preview-text"},[((te=e.previewConfig)==null?void 0:te.title)||"预览"])])]),d.createVNode("div",{class:"f-chat-preview-header-right"},[d.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var ye;return(ye=e.onClose)==null?void 0:ye.call(e)}},[d.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},Se=()=>{var te;return p.value?m.value?d.createVNode("div",{class:"d-flex"},[d.createVNode(Ya,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[d.createVNode(Ui,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[d.createVNode("div",{class:"f-chat-preview-content-nav"},[d.createVNode("div",{class:"f-chat-preview-content-nav-title"},[d.createTextVNode("全部文件")]),d.createVNode("div",{class:"f-chat-preview-content-nav-content"},[f.value.map((ye,ne)=>d.createVNode("div",{key:ne,class:["f-chat-preview-content-nav-item",ye===g.value?"active-nav-item":""],title:ye,onClick:()=>C(ye)},[ye]))])])]}),d.createVNode(Ui,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[d.createVNode(ya,{content:m.value},null)]})]})]):null:d.createVNode(ya,{content:((te=e.previewConfig)==null?void 0:te.content)??""},null)};return()=>d.createVNode("div",{class:"f-chat-preview"},[xe(),d.createVNode("div",{ref:n,class:"f-chat-preview-content",style:{overflow:c.value?"auto":"hidden"}},[c.value?Se():d.createVNode(d.Fragment,null,[d.withDirectives(d.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":i.value}]},[d.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"60%"}},null),d.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"80%"}},null),d.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"45%"}},null),d.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"70%"}},null),d.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"55%"}},null)]),[[d.vShow,a.value]]),d.createVNode("iframe",{ref:r,name:"preview-iframe",title:"preview-iframe",src:s.value,class:["f-chat-preview-iframe",{"f-chat-preview-iframe--visible":i.value}]},null)])])])}});function ey(e,t){const r=typeof window<"u"?window.AgentWorkbenchSDK:void 0;if(!r){console.warn("[AgentWorkbenchSDK] invoke: window.AgentWorkbenchSDK is not available");return}try{const n=r[e];if(typeof n!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return n(...t??[])}catch(n){console.warn("[AgentWorkbenchSDK] invoke error:",e,n);return}}function ty(e){return dh(e)}let ry=0;const Zi=[];function va(){var e;return((e=Zi[Zi.length-1])==null?void 0:e.h)??{}}function ny(e){const t=++ry;return Zi.push({id:t,h:e}),()=>{const r=Zi.findIndex(n=>n.id===t);r>=0&&Zi.splice(r,1)}}const ay={showPreview(e){var t,r;(r=(t=va()).showPreview)==null||r.call(t,e)},replaceRightPreview(e){var t,r;(r=(t=va()).showPreview)==null||r.call(t,e)},closePreviewPane(){var e,t;(t=(e=va()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=va()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,r;(r=(t=va()).showFullScreenPreview)==null||r.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=va()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof va().showPreview=="function"}};Yi.install=e=>{e.component(Yi.name,Yi)};const hh={modelValue:{type:Boolean,default:!1},title:{type:[String,Object],default:"标题"},description:{type:[String,Object],default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},closeOnMask:{type:Boolean,default:!1},showDivider:{type:Boolean,default:!1},iconType:{type:String,default:"warning"}};function iy(){return d.createVNode("svg",{class:"f-chat-confirm-dialog-icon-symbol",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d.createVNode("rect",{x:"5.125",y:"1",width:"1.75",height:"7.25",rx:"0.875",fill:"#FFFFFF"},null),d.createVNode("circle",{cx:"6",cy:"10.5",r:"1",fill:"#FFFFFF"},null)])}function uy(){return d.createVNode("svg",{class:"f-chat-confirm-dialog-icon-symbol",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d.createVNode("path",{d:"M2.5 6.25L4.75 8.5L9.5 3.75",stroke:"#FFFFFF","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"},null)])}function oy(){return d.createVNode("span",{class:"f-chat-confirm-dialog-icon-letter"},[d.createTextVNode("i")])}function sy(){return d.createVNode("svg",{class:"f-chat-confirm-dialog-icon-symbol",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[d.createVNode("path",{d:"M2.5 2.5L9.5 9.5M9.5 2.5L2.5 9.5",stroke:"#FFFFFF","stroke-width":"1.75","stroke-linecap":"round"},null)])}const Ka=d.defineComponent({name:"FXConfirmDialog",props:hh,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:r}){function n(){t("update:modelValue",!1)}function i(){t("cancel"),n()}function a(){t("confirm"),n()}function s(f){e.closeOnMask&&f.target===f.currentTarget&&i()}function c(){const f=e.iconType??"warning";return d.createVNode("div",{class:["f-chat-confirm-dialog-icon",`is-${f}`],"aria-hidden":"true"},[f==="success"?uy():null,f==="info"?oy():null,f==="error"?sy():null,f==="warning"?iy():null])}return()=>e.modelValue?d.createVNode(d.Teleport,{to:"body"},{default:()=>[d.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:s},[d.createVNode("div",{class:"f-chat-confirm-dialog",role:"dialog","aria-modal":"true"},[d.createVNode("div",{class:"f-chat-confirm-dialog-body"},[d.createVNode("div",{class:"f-chat-confirm-dialog-header"},[c(),d.createVNode("div",{class:"f-chat-confirm-dialog-title"},[r.title?r.title():e.title])]),(r.default||e.description)&&d.createVNode("div",{class:"f-chat-confirm-dialog-description"},[r.default?r.default():e.description])]),d.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[e.cancelText&&d.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:i},[e.cancelText]),e.confirmText&&d.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:a},[e.confirmText])])])])]}):null}});let Ki=null,Uo=null;function Uc(){Ki&&(Ki.unmount(),Ki=null),Uo&&(Uo.remove(),Uo=null)}function ly(e){return new Promise(t=>{Uc();const r=document.createElement("div");document.body.appendChild(r),Uo=r;const n=d.ref(!0);function i(a){n.value=!1,t(a),setTimeout(Uc,0)}Ki=d.createApp({setup(){return()=>d.h(Ka,{modelValue:n.value,"onUpdate:modelValue":a=>{a||i("cancel")},onConfirm:()=>i("confirm"),onCancel:()=>i("cancel"),title:e.title,description:e.description,cancelText:e.cancelText,confirmText:e.confirmText,closeOnMask:e.closeOnMask,showDivider:e.showDivider,iconType:e.iconType})}}),Ki.mount(r)})}function cy(){Uc()}Ka.install=e=>{e.component(Ka.name,Ka)};function mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dy(e){if(Array.isArray(e))return e}function fy(e,t,r){return(t=vy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hy(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,c=[],f=!0,p=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(f=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(p)throw i}}return c}}function my(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
695
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ph(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(r),!0).forEach(function(n){fy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ph(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function py(e,t){if(e==null)return{};var r,n,i=gy(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function gy(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function by(e,t){return dy(e)||hy(e,t)||wy(e,t)||my()}function yy(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vy(e){var t=yy(e,"string");return typeof t=="symbol"?t:t+""}function wy(e,t){if(e){if(typeof e=="string")return mh(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mh(e,t):void 0}}function xy(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bh(Object(r),!0).forEach(function(n){xy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ay(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(i,a){return a(i)},n)}}function Qi(e){return function t(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return t.apply(r,[].concat(i,c))}}}function Wo(e){return{}.toString.call(e).includes("Object")}function Dy(e){return!Object.keys(e).length}function Ji(e){return typeof e=="function"}function ky(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Cy(e,t){return Wo(t)||Wn("changeType"),Object.keys(t).some(function(r){return!ky(e,r)})&&Wn("changeField"),t}function Sy(e){Ji(e)||Wn("selectorType")}function Ey(e){Ji(e)||Wo(e)||Wn("handlerType"),Wo(e)&&Object.values(e).some(function(t){return!Ji(t)})&&Wn("handlersType")}function Fy(e){e||Wn("initialIsRequired"),Wo(e)||Wn("initialType"),Dy(e)&&Wn("initialContent")}function Ty(e,t){throw new Error(e[t]||e.default)}var By={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Wn=Qi(Ty)(By),Go={changes:Cy,selector:Sy,handler:Ey,initial:Fy};function My(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Go.initial(e),Go.handler(t);var r={current:e},n=Qi(zy)(r,t),i=Qi(_y)(r),a=Qi(Go.changes)(e),s=Qi(Ny)(r);function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(g){return g};return Go.selector(p),p(r.current)}function f(p){Ay(n,i,a,s)(p)}return[c,f]}function Ny(e,t){return Ji(t)?t(e.current):t}function _y(e,t){return e.current=yh(yh({},e.current),t),t}function zy(e,t,r){return Ji(t)?t(e.current):Object.keys(r).forEach(function(n){var i;return(i=t[n])===null||i===void 0?void 0:i.call(t,e.current[n])}),r}var Iy={create:My},Oy={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Ly(e){return function t(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return i.length>=e.length?e.apply(this,i):function(){for(var s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return t.apply(r,[].concat(i,c))}}}function Ry(e){return{}.toString.call(e).includes("Object")}function Py(e){return e||wh("configIsRequired"),Ry(e)||wh("configType"),e.urls?(Vy(),{paths:{vs:e.urls.monacoBase}}):e}function Vy(){console.warn(vh.deprecation)}function Hy(e,t){throw new Error(e[t]||e.default)}var vh={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
151
696
|
You are using deprecated way of configuration.
|
|
152
697
|
|
|
153
698
|
Instead of using
|
|
@@ -156,6 +701,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
156
701
|
monaco.config({ paths: { vs: '...' } })
|
|
157
702
|
|
|
158
703
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
159
|
-
`},
|
|
160
|
-
`).length,
|
|
161
|
-
`).length:0;y=F?G+_:_}return s2+y*Ll}const d=i.computed(()=>(u.value,l()>Tn));function f(){n.value=!n.value,o.value=n.value?l():Tn,h()}function c(){if(!u.value)return;u.value=null;const x=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(x,{timeout:100}):setTimeout(x,0)}function h(){if(a.value)return;const m=r.value,x=u.value;if(!m||!(x!=null&&x.layout))return;const v=m.clientWidth||m.offsetWidth,y=o.value;requestAnimationFrame(()=>{var b,g;a.value||!u.value||(g=(b=u.value)==null?void 0:b.layout)==null||g.call(b,{width:v,height:y})})}function p(){var m;a.value||!r.value||!((m=e.content)!=null&&m.code)||a2.init().then(x=>{var w;if(a.value||!r.value||!((w=e.content)!=null&&w.code))return;const{value:v,originalValue:y,language:b="typescript"}=e.content.code,g={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Ll,padding:{top:8,bottom:8}};if(y){const A=x.editor.createDiffEditor(r.value,{...g,renderSideBySide:!1,renderOverviewRuler:!1});A.setModel({original:x.editor.createModel(y,b),modified:x.editor.createModel(v,b)}),A.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),A.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var F;if(a.value)return;const N=(F=A.getContainerDomNode)==null?void 0:F.call(A);if(N){const _=N.querySelector('.diff-editor-cell.original, [class*="original"]');_&&(_.style.display="none")}}),u.value=A}else{const A=x.editor.create(r.value,{value:v,language:b,...g});u.value=A}o.value=Tn,i.nextTick(()=>h())})}return i.onMounted(()=>{l2(()=>{a.value||!r.value||p()})}),i.watch(t,m=>{m&&!a.value&&i.nextTick(()=>h())}),i.onBeforeUnmount(()=>{a.value=!0,c()}),i.watch(()=>{var m,x;return(x=(m=e.content)==null?void 0:m.code)==null?void 0:x.value},()=>{a.value||(n.value?o.value=l():o.value=Tn,h())}),()=>{const m=e.content;if(!m)return null;const{message:x,fileIcon:v,fileName:y,code:b}=m;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[x]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:g=>g.key==="Enter"&&s()},[i.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[i.createVNode("span",{class:"f-chat-coding-header-icon"},[i.createVNode("img",{src:v,alt:"",onError:g=>{var w;g.target.style.display="none",(w=g.target.parentElement)==null||w.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-coding-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-coding-header-filename"},[y]),i.createVNode("span",{class:"f-chat-coding-header-stats"},[i.createVNode("span",{class:"f-chat-coding-stat-add"},[i.createTextVNode("+"),b.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),b.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${o.value}px`}},null),d.value&&i.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[i.createVNode("i",{class:["fx-icon fx-icon-expanddown",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});xr.install=e=>{e.component(xr.name,xr)};const Vl={content:{type:Object,required:!0}};function c2(e){return"file"in e&&"path"in e}const vr=i.defineComponent({name:"FileOperationMessage",props:Vl,setup(e){const t=i.ref(!0),n=i.ref({}),r=i.computed(()=>{var l;return!!((l=e.content)!=null&&l.summary)}),u=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function o(){t.value=!t.value}function a(l){n.value={...n.value,[l]:!n.value[l]}}function s(l){return n.value[l]??!1}return()=>{const l=e.content;if(!l)return null;const{summary:d,operations:f}=l,c=!r.value||t.value;return i.createVNode("div",{class:"f-chat-message-file-operation"},[d&&i.createVNode("div",{class:"f-chat-file-op-summary",onClick:o,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&o()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[u.value]),i.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])])]),c&&i.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((h,p)=>{var m,x,v,y;return i.createVNode("div",{key:p,class:"f-chat-file-op-operation"},[i.createVNode("div",i.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":h.type==="Read","has-details":!!((m=h.details)!=null&&m.length)}],onClick:()=>{var b;return((b=h.details)==null?void 0:b.length)&&a(p)}},(x=h.details)!=null&&x.length?{role:"button",tabIndex:0}:{},{onKeydown:b=>{var g;return((g=h.details)==null?void 0:g.length)&&b.key==="Enter"&&a(p)}}),[i.createVNode("span",{class:"f-chat-file-op-type"},[h.type]),i.createVNode("span",{class:"f-chat-file-op-message-wrap"},[i.createVNode("span",{class:"f-chat-file-op-message"},[h.message]),(v=h.details)!=null&&v.length?i.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(p)}]},[i.createVNode("i",{class:s(p)?"fx-icon fx-icon-foldu":"fx-icon pfx-icon-expanddown"},null)]):null])]),((y=h.details)==null?void 0:y.length)&&s(p)&&i.createVNode("div",{class:"f-chat-file-op-details"},[h.details.map((b,g)=>c2(b)?i.createVNode("div",{key:g,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:b.icon,alt:"",onError:w=>{const A=w.target;A.style.display="none";const N=A.parentElement;N&&N.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-file-op-file-name"},[b.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:b.path},[b.path])]):i.createVNode("div",{key:g,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[b.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[b.text])]))])])})])])}}});vr.install=e=>{e.component(vr.name,vr)};const Pl={visible:{type:Boolean,default:!0},description:[String,Object],progress:{type:Number,default:0},showProgress:{type:Boolean,default:!0},icon:{type:[String,Object],default:""},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},d2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='60px'%20height='60px'%20viewBox='0%200%2060%2060'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e智能logo60px%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M25.1971977,0%20L45.8523137,11.3712178%20L45.8523137,37.6155801%20L44.4946453,38.9692599%20L24.623,28.022%20L24.6233274,49.9395377%20L21.4535582,49.9395377%20L2.72549351,39.5965647%20L0,34.4406135%20L0,12.8076673%20L3.70534859,10.5019677%20L20.556,20.546%20L20.5567534,0.161454345%20L25.1971977,0%20Z%20M20.7578212,28.1498874%20L5.81325199,36.7628182%20L20.7578212,45.0027895%20L20.7578212,28.1498874%20Z%20M41.8027832,15.9256338%20L26.7716137,24.6706076%20L41.8027832,32.9879669%20L41.8027832,15.9256338%20Z%20M4.06159924,15.4742393%20L4.06159924,32.9879669%20L19.1488772,24.4568004%20L4.06159924,15.4742393%20Z%20M24.6233274,4.32908173%20L24.6233274,21.2862528%20L39.8727429,12.4882393%20L24.6233274,4.32908173%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='生成过程'%20transform='translate(-766,%20-1268)'%3e%3cg%20id='编组-7'%20transform='translate(321,%20699)'%3e%3cg%20id='编组-5'%20transform='translate(247,%20488)'%3e%3cg%20id='智能logo60px'%20transform='translate(198,%2081)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='60'%20height='60'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.8571,%200.8571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='58.2857143'%20height='58.2857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(3.4286,%201.7143)'%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L27.3406238,30.8038254%20L27.3409512,52.7213631%20L24.171182,52.7213631%20L5.44311735,42.3783901%20L2.71762384,37.2224388%20L2.71762384,15.5894926%20L6.42297243,13.283793%20L23.2736238,23.3278254%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M23.4754451,30.9317128%20L8.53087583,39.5446435%20L23.4754451,47.7846148%20L23.4754451,30.9317128%20Z%20M44.520407,18.7074592%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.520407,18.7074592%20Z%20M6.77922307,18.2560647%20L6.77922307,35.7697922%20L21.866501,27.2386257%20L6.77922307,18.2560647%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(2.7176,%202.7818)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='14.177196%2023.2632694%2022.5796859%2023.2632694%2023.4218687%2027.5957059%209.52757789%2036.9780352%203.7254788%2029.0812693'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='23.4218687%2022.4125055%2027.1161878%2015.1091341%2027.8042533%206.35665145%2018.1506617%205.88610282%2018.8417696%2016.8706238%2022.5796859%2022.4125055'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='33.5501273%2024.6706076%2024.403058%2024.9983902%2024.403058%2027.5289361%2028.4733448%2033.3539069%2036.4355638%2036.3335669%2041.6970622%2028.387534'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L23.2743772,28.5628437%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L28.3053772,23.5108254%20L28.3061985,25.7112082%20L30.1053772,27.0928254%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.5203772,18.7198254%20L45.4350062,17.1793767%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='22.5927693%2026.8440709%2023.6315003%2030.8033921%208.53087583%2039.5446435%207.30516741%2035.4601402'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M25.4312165,33.1398658%20C28.857043,33.1398658%2031.634224,30.3626848%2031.634224,26.9368583%20C31.634224,23.5110318%2028.857043,20.7338508%2025.4312165,20.7338508%20C22.00539,20.7338508%2019.228209,23.5110318%2019.228209,26.9368583%20C19.228209,30.3626848%2022.00539,33.1398658%2025.4312165,33.1398658%20Z%20M46.5950591,20.103577%20C49.2645342,20.103577%2051.4285714,17.9395398%2051.4285714,15.2700646%20C51.4285714,12.6005895%2049.2645342,10.4365523%2046.5950591,10.4365523%20C43.9255839,10.4365523%2041.7615467,12.6005895%2041.7615467,15.2700646%20C41.7615467,17.9395398%2043.9255839,20.103577%2046.5950591,20.103577%20Z%20M25.4312165,54.9048659%20C28.1006917,54.9048659%2030.2647289,52.7408287%2030.2647289,50.0713536%20C30.2647289,47.4018784%2028.1006917,45.2378412%2025.4312165,45.2378412%20C22.7617413,45.2378412%2020.5977042,47.4018784%2020.5977042,50.0713536%20C20.5977042,52.7408287%2022.7617413,54.9048659%2025.4312165,54.9048659%20Z%20M4.83351235,43.462539%20C7.50298751,43.462539%209.6670247,41.2985018%209.6670247,38.6290267%20C9.6670247,35.9595515%207.50298751,33.7955143%204.83351235,33.7955143%20C2.16403719,33.7955143%200,35.9595515%200,38.6290267%20C0,41.2985018%202.16403719,43.462539%204.83351235,43.462539%20Z%20M25.4312165,8.37808808%20C27.7447616,8.37808808%2029.6202605,6.50258918%2029.6202605,4.18904404%20C29.6202605,1.8754989%2027.7447616,0%2025.4312165,0%20C23.1176714,0%2021.2421725,1.8754989%2021.2421725,4.18904404%20C21.2421725,6.50258918%2023.1176714,8.37808808%2025.4312165,8.37808808%20Z%20M46.5950591,43.3044363%20C48.9086042,43.3044363%2050.7841031,41.4289374%2050.7841031,39.1153922%20C50.7841031,36.8018471%2048.9086042,34.9263482%2046.5950591,34.9263482%20C44.2815139,34.9263482%2042.406015,36.8018471%2042.406015,39.1153922%20C42.406015,41.4289374%2044.2815139,43.3044363%2046.5950591,43.3044363%20Z%20M4.83351235,18.3420872%20C7.14705749,18.3420872%209.02255639,16.4665883%209.02255639,14.1530432%20C9.02255639,11.8394981%207.14705749,9.96399915%204.83351235,9.96399915%20C2.51996721,9.96399915%200.644468314,11.8394981%200.644468314,14.1530432%20C0.644468314,16.4665883%202.51996721,18.3420872%204.83351235,18.3420872%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kr=i.defineComponent({name:"FXGenerateProcess",props:Pl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return ke(d,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){var d,f;return t.slots.icon?t.slots.icon():i.createVNode("div",{class:["fx-generate-process--icon",(d=e.classNames)==null?void 0:d.icon],style:(f=e.styles)==null?void 0:f.icon},[e.icon?zr(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:d2},null)])}function o(){var d,f;return e.description&&i.createVNode("p",{class:["fx-generate-process--description",(d=e.classNames)==null?void 0:d.description],style:(f=e.styles)==null?void 0:f.description},[e.description])}function a(){var d,f;return e.progress>0&&i.createVNode("div",{class:["fx-generate-process--progress-text",(d=e.classNames)==null?void 0:d["progress-text"]],style:(f=e.styles)==null?void 0:f["progress-text"]},[e.progress,i.createTextVNode("%")])}function s(){return i.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function l(d=()=>{}){t.emit("closed",{callback:d})}return i.watch(()=>e.visible,d=>{d||l()}),t.expose({close:l}),()=>{var d,f;return i.createVNode(i.Fragment,null,[e.visible&&s(),e.visible&&i.createVNode("div",{class:n.value,style:r.value},[u(),!e.showProgress&&o(),e.showProgress&&i.createVNode("div",{class:["fx-generate-process--progress-bar",(d=e.classNames)==null?void 0:d["progress-bar"]],style:(f=e.styles)==null?void 0:f["progress-bar"]},[i.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&a()]),e.description&&e.progress>0&&i.createVNode("div",{class:"fx-generate-process--progress"},[o(),i.createTextVNode(" "),a()])])])}}});kr.install=e=>{e.component(kr.name,kr)};const Rl={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},f2=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],Ar=i.defineComponent({name:"FXChatHistory",props:Rl,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),l=new Date;return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},r=a=>{const s=new Date(a),l=new Date;return l.setDate(l.getDate()-7),s>=l&&!n(a)},u=i.computed(()=>{var l;const a={today:[],week:[],older:[]};(l=e.items)==null||l.forEach(d=>{n(d.timestamp)?a.today.push(d):r(d.timestamp)?a.week.push(d):a.older.push(d)});const s=(d,f)=>f.timestamp-d.timestamp;return a.today.sort(s).length||a.week.sort(s).length||a.older.sort(s).length?{today:a.today.sort(s),week:a.week.sort(s),older:a.older.sort(s)}:null}),o=(a,s)=>s.length>0&&i.createVNode("div",{class:"f-chat-history-section"},[i.createVNode("span",{class:"f-chat-history-section-header"},[a]),i.createVNode("div",{class:"d-flex flex-column"},[s.map(l=>i.createVNode("div",{key:l.id,class:"f-chat-history-item",onClick:()=>t("itemClick",l)},[i.createVNode("span",{class:"f-chat-history-item-title"},[l.title])]))])]);return()=>i.createVNode("div",{class:"f-chat-history-manager"},[i.createVNode("div",{class:"f-chat-history-manager-scroll"},[u.value&&f2.map(a=>o(a.label,u.value[a.key]))])])}});Ar.install=e=>{e.component(Ar.name,Ar)};const Ml={items:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},vertical:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},gap:{type:[String,Number],default:12},fadeIn:{type:Boolean,default:!1},fadeInLeft:{type:Boolean,default:!1},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var Bl=(e=>(e.standardFeatureCard="standard-feature-card",e.primaryFeatureCard="primary-feature-card",e.compactFeatureCard="compact-feature-card",e.standardQuestionItem="standard-question-item",e.functionEntryItem="function-entry-item",e.defaultTextItem="default-text-item",e.hasNestEntryItem="has-nest-entry-item",e.likeButtonEntryItem="like-button-entry-item",e.none="",e))(Bl||{});const zl={id:{type:[String,Number],default:""},icon:{type:[String,Object],default:""},label:{type:[String,Object],default:""},description:{type:[String,Object],default:""},badge:{type:[String,Object],default:""},disabled:{type:Boolean,default:!1},children:{type:Array,default:()=>[]},styles:{type:Object},classNames:{type:Object},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:Bl.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Do=i.defineComponent({name:"FPrompt",props:zl,setup(e){const t=i.computed(()=>!e.id&&e.children&&e.children.length>0),n=i.computed(()=>{var h;let c={"fx-prompt--item-wrapper":!0,"fx-prompt--item-disabled":e.disabled,"fx-prompt--item-has-nest":e.id&&e.children&&e.children.length>0};return c=ke(c,(h=e.classNames)==null?void 0:h.item),ke(c,e.customClass)}),r=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),u=i.computed(()=>{var h;const c=Ee({},(h=e.styles)==null?void 0:h.item);return Ee(c,e.customStyle)}),o=()=>{var c,h;return e.icon?i.createVNode("div",{class:["fx-prompt--item-icon",(c=e.classNames)==null?void 0:c.icon],style:(h=e.styles)==null?void 0:h.icon},[zr(e.icon)]):null},a=()=>{var c,h;return e.label?i.createVNode("h6",{class:["fx-prompt--item-label",(c=e.classNames)==null?void 0:c.label],style:(h=e.styles)==null?void 0:h.label},[$n(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),ke(c,(h=e.classNames)==null?void 0:h.badge)}const l=()=>{var c;return e.badge?i.createVNode("span",{class:s(),style:(c=e.styles)==null?void 0:c.badge},[$n(e.badge)]):null},d=()=>{var c,h;return e.description?i.createVNode("p",{class:["fx-prompt--item-description",(c=e.classNames)==null?void 0:c.description],style:(h=e.styles)==null?void 0:h.description},[$n(e.description)]):null},f=()=>{var c,h,p,m;return!e.children||e.children.length===0?null:i.createVNode(Dn,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(c=e.classNames)==null?void 0:c.subItems,customStyle:(h=e.styles)==null?void 0:h.subItems,styles:{item:((p=e.styles)==null?void 0:p.subItem)??{}},classNames:{item:((m=e.classNames)==null?void 0:m.subItem)??""}},null)};return()=>{var c,h;return i.createVNode("div",{class:n.value,style:u.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:r.value},[o(),l(),i.createVNode("div",{class:["fx-prompt--item-content",(c=e.classNames)==null?void 0:c.itemContent],style:(h=e.styles)==null?void 0:h.itemContent},[a(),d(),f()])])])}}}),Dn=i.defineComponent({name:"FXPrompts",props:Ml,emits:["item-click"],setup(e,t){const n=i.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=ke(d,e.customClass),d=ke(d,(f=e.classNames)==null?void 0:f.root),d});function r(d=null){var c;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=ke(f,(c=e.classNames)==null?void 0:c.items),f=ke(f,d==null?void 0:d.customClass),f}function u(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ee(f,(c=e.styles)==null?void 0:c.items),f=Ee(f,d==null?void 0:d.customStyle),f}const o=(d,f)=>{f.disabled||f.children&&f.children.length>0||t.emit("item-click",d,f)},a=d=>{var f,c;return d!=null&&d.title?i.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[$n(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:i.createVNode("div",{class:r(d),style:u(d)},[d.items.map((f,c)=>i.createVNode(Do,{key:f.id||`key_${c}`,id:f.id,icon:f.icon,label:f.label,description:f.description,disabled:f.disabled,children:f.children,styles:f.styles||e.styles,classNames:f.classNames||e.classNames,showType:f.showType,customClass:f.customClass,customStyle:f.customStyle,gap:f.gap,badge:f.badge,onClick:h=>o(h,f)},null))])}function l(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return i.createVNode("div",{class:n.value,style:(d=e.styles)==null?void 0:d.root},[t.slots.title&&t.slots.title(),a(e),t.slots.default&&t.slots.default(),s(e),l()])}}});Dn.install=e=>{e.component(Dn.name,Dn),e.component(Do.name,Do)};const jl={items:{type:Array,default:()=>[]},height:{type:Number,default:200},title:{type:[String,Object],default:"推荐操作"},prompt:{type:[String,Object],default:"输入@获取推荐操作"},promptChar:{type:String,default:"@"},promptAgentName:{type:String,default:"AI助理"}},Cr=i.defineComponent({name:"FXSuggestion",props:jl,setup(e,t){const n=i.ref(null),r=i.ref(!1),u=i.ref(!1),o=i.ref({top:0,left:0,height:0}),a=i.ref(-1),s=i.ref(""),l=i.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=i.computed(()=>{var y;return(((y=e.items)==null?void 0:y.length)??0)===0}),f=()=>{var G;if(!n.value||d.value)return;if((((G=n.value.textContent)==null?void 0:G.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",x();return}const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=b.getRangeAt(0),w=g.cloneRange();w.selectNodeContents(n.value),w.setEnd(g.endContainer,g.endOffset);const A=w.toString(),N=A.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",N!==-1&&A.substring(N+1).trim()===""&&(n.value.textContent=A.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,r.value=!0,g.selectNodeContents(n.value),g.collapse(!1),b.removeAllRanges(),b.addRange(g)),r.value===!1){u.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const $=document.createRange();$.setStart(n.value,0),$.setEnd(g.endContainer,g.endOffset);const{top:M,right:H}=$.getBoundingClientRect(),I=c();o.value={top:M-I-5,left:H+5,height:I},a.value===-1&&(a.value=0),u.value=!0}else u.value=!1,a.value=-1},c=()=>{const b=e.items.length*38-6;return Math.min(b+28+20,e.height)},h=y=>{var A;if(!n.value)return;const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=((A=n.value.textContent)==null?void 0:A.replace(/\s*$/,""))||"";n.value.textContent=`${g} ${y.label}`;const w=b.getRangeAt(0);w.selectNodeContents(n.value),w.collapse(!1),b.removeAllRanges(),b.addRange(w),x()},p=async y=>{if(!u.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(y.key)&&y.preventDefault(),y.key){case"ArrowDown":a.value++,a.value>=e.items.length&&(a.value=0);break;case"ArrowUp":a.value--,a.value<0&&(a.value=e.items.length-1);break;case"Enter":a.value!==-1&&h(e.items[a.value]);break;case"Escape":x();break}await i.nextTick();const b=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",g=document.querySelector(b);g==null||g.scrollIntoView({block:"nearest",behavior:"smooth"})},m=y=>{n.value&&!n.value.contains(y.target)&&x()},x=()=>{r.value=!1,u.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",m)}),i.onUnmounted(()=>{document.removeEventListener("click",m)});const v=y=>{const b=y.iconUrl||"",g=y.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[b?i.createVNode("img",{alt:"suggestion item icon",src:b},null):i.createVNode("i",{class:g},null),i.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[y.label])])};return()=>{var y;return i.createVNode("div",{class:"f-chat-suggestion-container"},[i.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:p,"data-placeholder":l.value},null),u.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${o.value.top}px`,left:`${o.value.left}px`,height:`${o.value.height}px`}},[i.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),i.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(y=e.items)==null?void 0:y.map((b,g)=>i.createVNode("div",{key:g,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":g===a.value}],onClick:()=>h(b),onMouseenter:()=>a.value===g},[v(b)]))])])])}}});Cr.install=e=>{e.component(Cr.name,Cr)};const Hl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},_r=i.defineComponent({name:"Todo",props:Hl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var u;return(u=e.items)==null?void 0:u.length});function r(){t.value=!t.value}return()=>i.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[i.createVNode("div",{class:"f-chat-todo-message"},[e.message]),i.createVNode("div",{class:"f-chat-todo-list"},[i.createVNode("div",{class:"f-chat-todo-header",onClick:r,role:"button",tabindex:0,onKeydown:u=>u.key==="Enter"&&r()},[i.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[i.createVNode("span",{class:"f-chat-todo-header-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),i.createVNode("span",{class:"f-chat-todo-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-todo-header-label"},[i.createTextVNode("待办任务")]),i.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&i.createVNode("div",{class:"f-chat-todo-content"},[i.createVNode(sr,{items:e.items},null)])])])}});_r.install=e=>{e.component(_r.name,_r),e.component(sr.name,sr),e.component(bo.name,bo),e.directive("overflow-tooltip",Oi)};function In(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const Er=i.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>{const c=e.content.toolCalls;return!c||c.length===0?!0:c.every(In)}),{getToolIconClass:n}=Qo(),r=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),u=i.ref(!t.value),o=()=>{u.value=!u.value};i.watch(t,c=>{c&&(u.value=!1)});const a=c=>{In(c)&&(c._expanded=!c._expanded)},s=c=>{const h=In(c),p=c.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":h&&!p,"is-error":p,"is-run":!h&&!p}},l=c=>{const h=In(c);return c.success===!1?"执行完成":h?"执行成功":"调用中"},d=c=>{const h=In(c);return c.success===!1?"Error":h?"Done":"Working"},f=c=>c.toolDescription?c.toolDescription:c.command?`{ command: ${c.command} }`:c.toolName??"tool";return()=>i.createVNode("div",{class:"f-chat-tool-use-batch"},[i.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:o},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[r.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:u.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),u.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(c=>{const h=In(c),p=c.success===!1,m=h||p,x=!!c._expanded;return i.createVNode("div",{class:s(c)},[i.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>a(c)},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(c.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[f(c)]),i.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[i.createVNode(tn,{status:d(c),variant:"tool-use"},null),i.createVNode("span",null,[l(c)])]),m&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:x?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),x&&m&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[c.errorMessage||c.result])])})])])}});Er.install=e=>{e.component(Er.name,Er)};const $l={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},Sr=i.defineComponent({name:"FXWelcome",props:$l,emits:[],setup(e,t){const n=i.computed(()=>{const a={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(a["fx-welcome--no-description"]=!0),ke(a,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){var a,s;return t.slots.icon?t.slots.icon():e.icon?i.createVNode("div",{class:["fx-welcome--icon",(a=e.classNames)==null?void 0:a.icon],style:(s=e.styles)==null?void 0:s.icon},[zr(e.icon)]):null}function o(){var a,s,l,d,f,c;return t.slots.content?i.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&i.createVNode("div",{class:["fx-welcome--content",(a=e.classNames)==null?void 0:a.content],style:(s=e.styles)==null?void 0:s.content},[e.title&&i.createVNode("h4",{class:["fx-welcome--title",(l=e.classNames)==null?void 0:l.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&i.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.description])])}return()=>i.createVNode("div",{class:n.value,style:r.value},[u(),o()])}});Sr.install=e=>{e.component(Sr.name,Sr)};const Ul={content:{type:Object,required:!0},onOpen:{type:Function}},h2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHHUlEQVRYCV2XSY8VVRTHT9UbgAbpZpSmaRNMxIiGqZVEE1csXBoNboyJ23ahfgI/gQuXdiRx6UY2utKNEUJjQLrBEEwUmQcBBZuphzdU+fufc+tVw61Xde894/+ce+6tepml9uKhpYMbVpWTuWUTpZUjQc7oSnvUMZvvVZJO8om4ZjzLUmK2bqVZO4g+r3hLfbMHi5plc1lZztBPnftkxeGkbfbCocUvW5lNrl+ZYQdLaurCv3UKs7mlNIHuo9RXsqJtHuKZwFRmxH+4ZLbYq3mS5Z76/dOVH2WKvCjLb1e3zHQPHEszIZDNfxY0AyAT9QNHSaoJaf0KV4qHApAcBu8+NisqwBUdO3mevZcT8aRE27mEaamLCdJShEaGknM4QkQLIJqbrWgsUwy2M3osnYtDS2qDQVlkkwDIJjKYrUbSSp0bDy96ugPJeYbUsyyRjbDXwpK31HkkjDusv5rsPa1PPUzkWBlpKX+VosKleS1Aq6IcOAgmWUkQkaFwo/jcRpUJJvy6/WR7kDU37/oEMNLUtC30lV64dilhKVg8sdo5DxeLQlX0mqs1PbQYV8Qq3Uu90Bc3xJQJKYZ+U327kdREdyDuWTpJSfzMmoDo9pNBtxFG2hSvU0WTjowUhXVZfzmVyQoGBe9zZU3UZo5RGXaypBEYbhf24SvaEj617/7s2/UH1AF8AnLi2zsatnNTwwvrxv3CfryoonAVr43NQ2bv7GxaL9XAVyd7NqedpKVzN3gEQ9NT63pQPd2lPUDwrecbNsK5oHZ3vrBvzvasJbTaT4D8eH/TxoeZ0249KuyH84vExCWriOwfy+yDPb7C9t98aZ//zGkmvtTpXZNxrvRHktTDJJBOr7AT1+ujb9dmEobjFtpav7E15cC5dLasyW3rMwGs7PdN9+4tAU786Su9VEsR0OA5AKB1KQO5ouuQ56MoVW3Xs9osIGNdm1lhb4zXxiuZfTgs4Eu/pN896pE5e/qibAUddjT5ZMRhVM1FEDdj7wLgcjcYPIdX5rZ9GK6ywAHw+rbaeCU0sbVBlqIOtpCh0bU1yGMXOp45mfcdIDcOREuBjjAEDp4g61I4tx4WduleqiD4SmlZ9NnvAHgu1vbOoz4vGQzQ9o5BA0Ch9C+L/o87Pfv3Md7k3CXlI40JKGAO0s82S4Ake/yqCieajGoZdmzMbf1QqJ240rHZ6yGzcXVu4yMqw9J2bw2A0jx2kUwqWhWnOr986I9YgbQeEuz1ZZwbUEcu1XWwZ1QRlvbqWJ3+GQCeWgZyAl7J8u1dDuACAOScZKrO/ABTLgSKGwC6YqIt5Gc3DI1PXusBSJK8atc0bHSN2Wvb4nwQ7QzRz16rs7RvrGV8U9j4ugC50C3tFDbcg0DoR68dJefymwsRP5+oDNmBPGGBdr6b2ZmbdRYmWOc9Kbq/H/TZ/yV1Utg9zgm1feMt27etTv+vV7opo7XNquZcAb9UVjhX3wWxg0lIxTl+uY7w/b1DNpROLqVeQHVVWRhZldu7u/ksSu0Y6dfBIzeKVnc0tETnTjUgchYFqFRVRQntiIoote0b6uh+IzNZpnrJbOZaLbNrrF2J2zS6pVLuzlSegktTlDQth2dASETUue08pPKcfU1/7nZh99NWc630OI1TmROIGVL9dLt5v28X7xbhEpnMqw2n4RtH/HwbOkHVqTddSpYy4Kigo3ziKQe3fP0jAmXgBi+qOw/rM0NgpnX4EF8u57KmMlnmXDTdsaHhqPgcFUjE0DJ4wlCavvRkhLMpeqm7AxRmrz4pc+yvqP5Iu1ty+/WRH/4Gi9qJ49oRxfkkRJHin8537aVN8yknZkdVXIqM24mA/v7skt3m9PQlRPMXP0NYRkWttcSWotWu8wD9yfjNrxcpfT67F7QFGegnJQlyFyoMjuC1rYLXcbWmGMvBrtczsnoH9Fk/vbZDGX6G80YTG7hLYONLCNtq0qPzLyJN9KXjRMlzDT65VMU40odIW2PdHgtPjDtYKN0Sh7p8UWWau3IufxLk58lQclPzJdCHI6aCJDlFL0nGWmMZ0orm+nil8T5yUHKifVzC71JleUObCl1fPRWfLtfwPsemA5ENLo35GsvmOl3+isk/tytorObRIshC9gs49J5SMIXhJEYX7xCVpYxINkkQQGw3mYc38KFKy+aajzvlDP/dDohRmYtsYACEypybwuC8/z2rnBMDNEXBHwzeU8qaeCkLFUTqSvpuQw4qP7KbZTPNhW42hZEDtQAcF4peS6qzQEgW2CmSEyjRfUDnDlLE4g3cMXaenjDE03yQhaycyuNfag6IYIivFoppDFMOdWvt3HmScbDUgLab7louOUOuXvfQh6RsTZ3+bMVhByTCy18sHWStJim6Cb7t+LSgCRRNY0c/mEfqB5HIeSWjkUcjAjetskX9zFFPM3nWxHnT/57/Dzj0fqfCZcLZAAAAAElFTkSuQmCC",m2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHeklEQVRYCV1XW2hcVRTd985MZjKxNaVa6cNqnwbaftSIiuiPilh8NC2tWh+lXyFFbMEKgvgABQUfIGoxWqGioFLjR0GQlqooGhptjNU+9EPaarT2IUySZt73Xtfa+5w7o3dyc885+5y91l57nzN3AnHXjoOPbJAgGEhEegNJugUNCURqzbrUk5ok6GcklK6OLrTRwc2PxPhLYkniCAswEqPtbXiWGxekEdUkxniQSCmReDSO4sGP+vYPERoQIjtGtr2JRQOB9tQ3Rh0DPMvNCnAi6cwUJROEBk4QvQluoCkBR6QR1UFgqkVYiWKufmRwT9+BrYFFLh/Dl7sSCAEN0PeEIgA044bkM3mNlkYFR9R8sq8qEIB9AMRRU6brUxiPNHol5whwfsK2yMYsZaeRYFzrwVM6GMuEoYRBBxxRZkgOQubEOeJCOFQHrl1uTEsEcKpDGwFjZ0sVC5KBLJb26kJkw0iADDPjCBHQR8n1BgRnKQknqToHIZCsRVWJoJgBeQJGUpXD3ITkEunN4n93GjXm+LaVAxGJadIyCq5ScOaRkVFIgpMQKoWSVxtlDBkZGHW+X6trdK6u6876PPsU0F+rzdwagDkkCPueEOGtr+BwPF2fNGKOnE8BSbZI2BrWTbaOSs2FHQwUFwzUni0YdRGj54dPFxX7nGVzGLXZKoi8qYWJPqNsA9X6cX3vm4Fka0ogp9ITnCBRxEi53smNZ7sz2ii1H0tirEHO682qI0pCppbVSosMx9vVRBHGUsE+78wWzaGqwJRiEe55nfPkmjnX6SICY5J8PX5AzpfPKohGipytWbROsmGWZp0zdnpEfj47iq4D5w6iAvyoShYUVgQ4YiLRVAQZBdK8AzyKIvlzelw2dW+WK2Yuome9rpy5WF75/llETZKR3L74bll/1f3eLGenT8ueI7uVIGX2kht4q88gQxYcG9VmGYBNnUyGXrqo2ZBdP+3E1qqlAMtm9cjNl6/Rw+ay4nxZu3xTaouw9tXh5+wQgl+Cp4cUI9fbpxYEfJW2y8IcKXMewHBwhhEdfz8FYWPd8vtkftdC6V+93aR31qFj78nRc2P/CcQK2MhYDaCt5BIJWZ0EzId5rWztY4ys/RaERvLlqX3y45lDKYlcJidP3Pi8LLy4lZpfzx+VDw7vgjIOQKNFmjTvLVAGS5/ECgkeJgG+6Zh/xxILtJpgCzDGYuS8d8bekMnaREqikC2kbW7Bl755CqSbEoSabdvRDIRE6Bt+VFn4sjawYZECvmQ8S/Y9EQPGInyPkvFktSS7Dr2WgrY33v1hp/w9OY61zjlJo4ipJH16EnySBGtMFcjzENIgwRIfLgiwgOAKrG0qgWrF3+Ez3+kWbAevN2sy9teIFN1W1mCcigyGvnxQJOjJkBh2bgagzAmJsvgYgZfMnvSFI0od9fVskkuKc9rxpSObl4FrH8O7QgZf2QyIcy16KzZ3BpCI+jaVVQGViOCMmEbIZiTIGo5oY8GgvWTWUlnbc6+O/f/f1fOvl1uX3ikdIMBvU42camqxEdj8+XEM6BwtQisIG9A0YDKJ8YiNQYj2HKLr730U7waZFPuXc0fSNhsPrt4qc7sW4FTt1DXMsx5Wqir90RdTwDYCxjiK0Bvw9G08qbgu0OgjuWfFFpk7Y0EKOD5xUp7et10OnvoqHctjVzx8w5OSxSefMRIE0mDgp1UHLEDe3IZkQpH5guBYKUP0yZ57evmsFXLLojtSIJ52r3/7Aux1eevgi7o7vHHJ7B5Zv2oLDqdc6/0R872SFqRhtilgcnh5aCAJFAW2aEGl54uKv/Ye+1B+++e4vjdM1Ery9sjL3qTPvpUPybLZK/UlNuGhxBTwo8q2lLYiZJQuN5zAYgO8Rs7FD6zql9nFS1OAP0onZM/h3Qoe4HzAmSPDJ76Q4ZOfp3NYJ9tuekby2JYF1gP9Akefrqb8jgv6P9tIRDUaAccwSvANWZOpyoQrSCuoAo7sPLYd1eFrCXeN5pkAmmcd1fcL3boYLVcnpR5XsYS+tbjUJzqsAZOG4HYrG2VcqV/AcvQ5B855LNci/EaIcdziYGKfKoAHLvpBm/N5saboE6CdObxrtOF4NWjHNvTA/mkHSLU5bUB0CBBGg7dzfdJG7fXEZBSwaTpABFMwh/WDC6A6B/bOnP2i8niMXmsAVEu6AxxbRtHAz7Ea3pL0Ql8dgoeXL4ICjUYFbkmOMXOOkSMRlR6RS2BBMWK+LeWwM/wpS3CsKVGBUVBRqQgQoF3B7zl1C1IwENkiJKDesf7mM5uzY1yjZ0qUNJ7wpWeAC66AoiRRrmNqiB1i+SCBLToUDPIeRw2VR5VROWF3zuAVTi2/F/DVzHGO8dYi1G1nwPY+YQQJyruYnQHfNoayHgx337V3CO4H6YhvtTW+2TICd3MRZfMONDrY2G9ilzSQKhajRqSOPSB9WFvzToLo82ceT0w4GBx+vDKkiqAnmz+5bcNUtTSQxM1enIDduih1QAUYNZWCU8SaAqJ3UcdMyI9KgTLMkNrcXKpC0owatVGCj1HUyeCn237Xn+f/Avavy/P8wtVMAAAAAElFTkSuQmCC",p2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGCklEQVRYCYVXPY8cRRCtnt29s/EhW0KAEAkxmXUBIkBkRERwdoqFHNiW/AMwPwCJECTYEDKEnYJk4+ASIwQ6WSIjwJKNQBjO8t6Xb3dvZ5r3XlXPjIzX7rub7qmuqvfqo3v3ksXIH53fsJQvmOV1y3aqyJ8055x74sZyAys8EqS+hX2pcC9b3t6xPD/i/gSPrWxpvPrNjWt0QhvLV85/CU2AP3sQXEDmwEIiXkuKLw4sb5DnBgz/nWju9NL42Lc3LyZFbs3VZ0O7RusATrnmj0ceURMMg3JfYEVC+4dme4ctUe5Xls4MlfbQdYvHnnQ4m4N9KKVkmYiDyqzCX+C6VYArG65PcI3jq5Z3D7QsQYDEhSE8rLvGkudRbfZwDzwZSZAo69WR2ck1EAlbYLU6EAmcMrIk8dHAjP60R3+2XmHvqQ1XlBuC8ifA4Q+ZObL8cBcLuGGz4afoQ63LGl+wn4aM131I0fIpSJ42oNws6KmtMyEEVRzNa8vTmVUrgyBHfwhbme+DwY6s3YF7gY+lBErtqM9RIpQ8hCUbNkePDFHjICp96DBJjNgnMKoSEiFmkvHxRAKljllHDdGfPWeDd8+0RssWeTbFmf/b6p82rdn8TuDMVhKZx7LBkoBhaR/5FDAYo10QMY5O3VgNxoXQMuAiT6vHrHr1NRu9f85GF68QGqWAPQJp2CN1NKCOqhP6XwZ0aZAAvCpbWLAB0b/taHYnciwBw1AoONUnnsdSibfB66dt8cbb1vx40xKzTjHLESWhLUsmAoxQ+2DmelQEa8gpqXjme2Pn40uWD3CrjnAMkV8RxX56bs1OfHDZVk6/Ke3hW+/Y9NYPOsIJfhrcJ06A0bvD1rNH3kPhkjwGoLQCoP7ApZJWcIeJrQensu3v2v7Xn7Wa1YuvWLPAKSEYH0cLTA7u5UYPtHWRGSJGOK5EdNaMNaSH/tA1ipgSSoM/MEEBRCjv7VhzsOfKo5Wwhd99NGiEzblk2nuATUFmBBJWmXHBoBFd1hEgGOOuAMwf/ja4L3hbVmtrVqEXOOr7f8q0gY90iM+CdngW6HjoeHp2QCwqu5YdHKxbWy38pCR8KPiJAYfB0KqXXrbjGx+2qvOtW/CJXto9tLRoeA20/tyvLiIHLxdPP1rGKVbBr3g++elXZbl0rrfv2+x7fOTvPrJqhtuU4KHdD2qo1DPKsqvLhykqvcAz1G4uBexvzH/9xfa++MTyPw+swtnnFayysczhqs1Ax4ZpB1TR6Hnswy/u/W6HiEwnAGWKFpBdgzov7t2x+u5ddPxR15xQA7TK1XMrG2SgE1GJgyTaDOAY0VkZ9YNtm25e14VT0XGDCNnEPG6oM4n51VuuWQBTCJ+8V9Q1ESTXOAVINSPhoMPY1CvXIoAalkGwR1O9hTvZUVChy0icgH5SQEbY1ORgy/pwHJ4C+HNWWGBQsdGxxCLI9DhRRTo8+z4IFsThvUp4Q0CciOZazChe9FUqdMN6qGMUtHQSxIMGodEu/J0OSdhnX+s6jjRTKzETEWubXVhQ1hGCInwPWRfX7ZWCXiR3Im5EIQbUieWXkIv4ZN0LZ+nrhZBcADxwhNeZoQek6OmXPIBdB67guf7rD5vf/lmixZ3fPAr2Db+UoocIXgaBCihTTncdtaIIDd+wNL981lUk6BQadXe2xXRuNb731XErVgBNAGfDMQuBIIziVJBsLrgrMp/df5FxH1dxVxdFQSLBjjPTqT+ACZDvWFOmjpfPSLFkFEiIp8/+HutuW/b0OSmMSsNo1tEEKCJlivmFpCIhrKt+zltQEnIQzvKh1y7dkjMzpObBTfBxl7dEVMa8fl2BEYo5P8kierJl1RU/HQDAQQsIEZ0ErQuQXIe4aIiMpS1WdOyKYYLInSkB4mZzNnINDkSNElBXOP7AmpEX+5IFN4GcWQ0dylLK42r4+dVriHBs0XSQx5CKrwXooCFwYL3AMeYCGiJXgwvulqwK3bWZxvELN25fI4rG7NJ7G/jywf+Q13Ou9d+SosHnQDPZb69rAtFIgHSmX1JwmfaYBRdQypX0sTfB2xayKHDK/wNolX2UI+Wo7QAAAABJRU5ErkJggg==",Wl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGLUlEQVRYCW1XTY9UVRCt19M9MwyiAxojRI1REImJRAfQhcSVGmJINMG9G5LRH+DOxJ0JP0BnpYlbMCYqGBciJmqIZiAsSARUUDQoYGjmo2emP97znFNVr3vUm+n76ladqjpV9973oLAYcyf6hwZlOVtVNmNWTVcQDH9lPLnGcr1Oa9cTRoD8KEoerstS3m1g5pe71dw7h6eP0b3g9O7x7ntwnKUsR4AzoQIymGzUU/DAFDlS53Il0qlTnABSJpHOGnzKau7IG1teL7zywVE6OJjoQnIGB1gEmEk4JQ0yAqWvP9PPn8DV/obkpQ1K4pClarzaZNs9OuEcnlyVY1UBzDEk586upUF/9ZJCFkM5Wi9df1B58iRkg9kmwDNKFoFSromMZmBzMPRYR4w6D+BEA5d4PJHTVteEkr/jihkQKKcVFEwC7wePieg10pG0J5BrVsuhp+SR7ZO/GStfQXKC3IczcDjszdpZQQiihlgXSu5BqKXhxDWDSRHY/9Ex/1qvtH5fIT00fWpsZc0S7KTjlEMALGSIR9hFbAQ7gD8H9byyVVVgnyskxY+x0y+6kddaPpianS69PcmGcQ9UHzw3iQcdkhDFPFxsrcf2ZNhSkTEQ4chO1nLk8u0FgayITFOJ7amvTlbAUlLO5PLRNPLCUtqiPkfJ3rsjY52Hrs2sHuFlzRZxlQmFcXOty+SRX77ug7nGupBFEkQ5zJKbXGTlmXy8ZfbwVp3PCJbtrez6rYHduxm84fjz731bXoGAxe5HWtr728ulbb6jIUI5sWM9HMRzP63VuZI43wNiNMpy01RhLz09kf7rnp9+t2J7do7b1rvHbP5C1z76umP7do3by/un7OT8ij32YMtmdv7Xd7FT2rlLIMBo4kypwBmI0yklbdAvLFV2/PSq5AP7JmxsrLCvzq4Zg1y93reb7YG9dmCjPbmjZafPN+z5PZN2a3FgX55ZtW1bxuzCr13b8UDL9u6atD9u9O3UmRXr4lZkh1UscnGNLXAm2ps4uWs9s/NXBqL64l4QgHTxas/+XvDXX3uxtLOXevbUo+N2+OAmG28VdvTzRet2K7v8Z99+uVbZxHgBAmbtpdJ++JFfH4XD5KKvK2uocnSh0tF3q5PxL5c8wond4X4y1klUxXvO5Feu9ez85R46Bgv/COCPI3R8oaW/Y/xcNWpsbIWS00/ew0lBY8lte+i+pjWxNRzb7mnaXTg3HCLBp1Y+1cRCqyIC0BDBTB6OTKDfaBTaAKa+iQvywt4NuAGlXfitqy4cfHZK4enivu6stdjzGxHvi4hFIg2COTJ4rl0nkybZASV6/xOTdufGhrbh41PL2ord2yds+zZcz4g39GRsj18zDCNj6sIqOJR8cngy7pGvQ6n1lk0Ne+bxCfsL74MzF7t2Ewfzm3Orgrzy3EYrsBN52t1P80jMOEcKzWuIJEoUCrYlB/Wf4d4z6GIHOBhaOHSffNuxazd6/j2A8ovvO7pu9JvCK2CxY9iann14YsFuLQ08OWxej8fPPMVb7y9Iw9ZNTfo+8YPCl0SCRBLp64aIpH/3l/Bu4A0qS7+iDJbb4P6O80JhHLEzXvx7wFkNQXCKTnhyuqENwcAZx+cXFrWcJGjHj3aHZnL6pw7PkBm76Szp6AB3pByB5Ip1EsKTATTok2v5cwoTA6UOqnXdFMavLTrgrfWlV5nJGYryuqAef0hIoBoiaJJ1/3BAhxRXb1vkxJZx6/xjFExjG+EBMEP9K7nI0FZXTfL8ZXCW5qW4PgqAVqE4YYx2Qy8iad2mgOTGEXjpXB5JBMjwuolu+DipoT99kojLDnRdA1esTUZM6RX6s24jnWFXQ4gbxbJy+KkiCIpDaMh08k5QiT/4JibIt/EmtPkaSBKkpwkPRNJHRCpXpt3JMoHDk3ztzK2iDVONYWwO6fEoivkGPmhzDgybql3PXD5wykoVFEpWUXeHQairq/QYo8Xw4HGt6oEtkLtxZBb/SxWJCAaDQmmKKpJU2JTL80HjeOpEUBrows6Htg2C5HSwau6Dt+8/5kcWyjfn2oemWgP8D7kxMygH00QziLd25E3HKBiqHvIy3oTkJ10IddsVIBK73AZ0vrBCyenzD7OyHHaTkJSSAAAAAElFTkSuQmCC",g2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGkElEQVRYCZVXS2udRRh+Z+Y7zTFtk5iml7S1XpBW3HhJdVER0YUKikhtRNCFF5TYheLWjX/AlRuzcOnO/AXXIpiFG0URoUWq0KJpLb2eb8bned6ZcxLaCP1O5szMe33ey8z5Eqw+5czyKSt5Bdsli3vnRB6dB+k6lgV/2SVLsYJ1IE108pw23jf6plk6pWyEYOuhhNXwyPdrNBj4Vc689qXlQudm3QGoJS2t9GbX/8B6hOEgCpzROeexQ4EjHRTSsZ/IEXjjYV31ILuaHl3/MHjk/TdEaHEPxvTYkBzlq2Y3zrkzOWD0XNBJM+h7OmqOmyPOkmsgMvRDDaDYcoShFQqFMJRz2a4oIYbtFOgzQq40ykmLUNL0zoVkVJrmtM4OGNbgXCAzs0SdvBLxtUTDJd1dIyPD0+xC2HezKFa0QKXxqBmAtNEwsyFwVR9eW5kcOAWd53KSX4pANRfibjA7qgMEnXiEboB6oIYZ8R0A00iDeOi4OQM4lY00Aa3louaY5mup5zIXA1WQYndMJlHSMI1x8shCYhlEqWwH6ptJXb0Hqh6BKTuTyEGRXdqn7a6EnbCBVqiIZZBfAjJRFKw0a2V0ofJcxh1WueGDFhc/RtvcZ+HKT5bPfV5PEfjVXusDZQBgOjUYFkSmR7ItddUJJqWWWRj9gx2OpTLjdOmCF+//wkLnV4jNPm1xeK/1Py+jd27QEP5q9DLrPtBZ6MPKbChZ32JMPUd1rgzBCPulloV8zxzoO5+YOJcW9KaOmO1+EjtPdyvn5pm5B5+jatE4hqoNWpATp8EM+mWXDMpoPVa+ZpS3PgH3inULEJnUXmv6Aw3h07l2mDxiORKtRegArFu0MjyGXpweN1cDGP79zsqNP7cgKFd+Mbv2O474rLJD+5ujp++uaZChk1AJbhhQMq5jgCmocTr8KUpwl+WzV61c/FZZyrhUvD+GuNI/s7BwysKOQ1au/WblwtrYoXV7LfTXcLtfZujj0bErme7mvNWUWfBaUzxb3PeuhcT7ArIHTlu+hIjzZb+cEk4SLjLrL1r56ysWzUEBuHe727DBfrQNrvZ8E1Y8814CbPSppWjN5bTeytRRi7sel3N+xanDFuZfrWWAicE+2GuAGRBLWTPK7OkukCb6ASAkWwGo2SRMAUfejJUesUA5LbxB5pYnLryOfbIyWJA4v5Q90FgW+sjQLfhFVXZrf/HHjld76wdlwDveETnD1wSk6KePbnHOTZxaNNtzEg05lKPMIA68b/HY1xbnXxTNywobygiUiIo2cSpCGKg8AtDq3hQQNl4PMNCAac8r9HfbJy2chBxKhBH3v2Np/gVcKwNLix9Y2H3CecyCDhe/HEzARVMGe5WFSOfNMaPPPVFSFgqoV9z1mO9v852QmTL1gIWZpwD05S0S3eGPoI9jiw9tFf4EMxPVfEi4T9DUuoi8duRUMIicYOL880hV6+Mt9sebwf43bXDo9HjfFiENLR35pDomDHwULPGwN1CyHQhQkFgbDU5g6tNZmn2m2dt27maO43jyB+3WJ+18GC9ZL7kzOpSIl4L+GK5fxUI3YbCucebEtoZvdbU9pTv4tmVcYq2nVIoGBnHXDPAi4rHBrRdYJ9zRc89tb/UOOMxOd/A9aHhe+T6oNTMOmpqQDjWUCQji7k7TD92Bm/8XTeilsuMgfKC8uFvgRs656ASoOm73QRldsv7SDxaG90DQz8ikFblqg4aIna/tfJw+6dsql684T3XHEgBcBl0w+vUtvWixRkKI+rMU/egm5lE957xKUB798NChQnBL1OOzmcaoMhoM/nmKYoy4H/HyVyLWLi4A0MGbKH8YIKgLhYrsVl6faETPFZigwU+gRUWhN0kH4imEBYJinWkLkYHOtTsmSOjw5cfFuIU+3gnj9bMb6Po5Jlo/GrwsACJiUDoydtRtQIN0LjpYtERjmimLlcCTyHPODtcLBznIBkBRBU5rHORvENI6BciQIISYnqj3ZUaDCw1rvLspmoQoEgT4z1uCnA9Pd4IcR4QMdSjHwLCUHdpX6jETJIjrAFZWBZdMDAFhrZlGiFGZhqIG1jLMmUB0jjXzzabTnv9ZMnK3x5rTTguyZZq0kPNq5H+psA0QkgFCjwaT0FJwclVj0wSZ47bGTOBbmhNcOVYw7CsPSCo0A5/ds3+vSYb78uPxU31/cwUAlnLf490aDqqThppyPClthltlajyD54C9nNKvNggQvA3Q1lFOOD+/Rjv/AYfYvIrlGomFAAAAAElFTkSuQmCC",Nr=i.defineComponent({name:"FChatAttachmentPreview",props:Ul,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return h2;case"xlsx":case"xls":return m2;case"ppt":case"mobi":return p2;case"txt":return Wl;case"png":case"jpg":case"jpeg":case"gif":return g2;default:return Wl}}function n(s){return s.icon?s.icon:t(s.type||"")}function r(s){if(s===0)return"0 B";const l=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(l));return parseFloat((s/Math.pow(l,f)).toFixed(2))+" "+d[f]}async function u(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function o(s,l){s.stopPropagation(),s.preventDefault();const d=mn(l);d&&await Br(d,l.name)}function a(s,l){const d=r(s.size||0),f=n(s),c=mn(s);return i.createVNode("div",{key:l,class:"f-chat-attachment-preview-card"},[i.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[i.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>u(s),onKeydown:h=>h.key==="Enter"&&u(s)},[i.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[i.createVNode("img",{src:f,alt:""},null)]),i.createVNode("div",{class:"f-chat-attachment-preview-info"},[i.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),i.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&i.createVNode("span",null,[d])])])]),c?i.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:h=>o(h,s)},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])])}return()=>{const s=e.content;if(!s)return null;const{message:l,attachments:d}=s;return i.createVNode("div",{class:"f-chat-attachment-preview"},[l&&i.createVNode("div",{class:"f-chat-attachment-preview-message"},[l]),i.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,c)=>a(f,c))])])}}});Nr.install=e=>{e.component(Nr.name,Nr)},Cn.install=e=>{e.component(Cn.name,Cn)},_n.install=e=>{e.component(_n.name,_n)};const Xl={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},Fr=i.defineComponent({name:"FXNav",props:Xl,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),r=i.ref(e.navData);function u(f){if(r.value&&r.value.length){let c=r.value.find(h=>h[e.idField]===f&&h[e.disableField]!==!0);c||(c=r.value.find(h=>h[e.disableField]!==!0)),c&&n.value!==c.id&&(n.value=c.id,t.emit("nav",c))}}i.watch([()=>e.activeNavId,()=>e.navData],([f,c])=>{r.value=c,u(f)});const o=i.computed(()=>e.visible&&r.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const c=e.navPicking;return c&&typeof c=="function"?c(f):!0}).then(c=>{let h=!0;typeof c=="object"?c.canContinue||(h=!1,c.message&&console.error({message:c.message,position:"top-center"})):h=c,h&&(n.value=f.id,t.emit("update:activeNavId",f.id),t.emit("nav",f))})}const s=i.computed(()=>{const f={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return ke(f,e.customClass)}),l=i.computed(()=>Ee({},e.customStyle));function d(f){r.value=f,u(n.value)}return t.expose({updateNavData:d}),()=>{var f;return o.value&&i.createVNode("div",{class:s.value,style:l.value},[(f=r.value)==null?void 0:f.map(c=>i.createVNode("div",{class:["farris-nav-item",{active:c[e.idField]===n.value},{disabled:c[e.disableField]}],onClick:()=>a(c)},[i.createVNode("div",{class:"farris-nav-item-link pt-3"},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof c[e.displayField]=="function"?c[e.displayField]():c[e.displayField],c[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[c[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[c[e.valueField]]),c[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});Fr.install=e=>{e.component(Fr.name,Fr)};const Gl={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0},itemClass:{type:String,default:""},dropdownClass:{type:String,default:""}},ql={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},enableHighlight:{type:Boolean,default:!0},itemClass:{type:String,default:""}},Io=i.defineComponent({name:"FXSearchBoxContainer",props:ql,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),r=i.ref(""),u=i.computed(()=>{if(!r.value)return n.value;const f=r.value.toLowerCase();return n.value.filter(c=>String(c[e.textField]??"").toLowerCase().includes(f))});function o(f){r.value=f}function a(f){t.emit("confirmResult",f[e.textField]),t.emit("searchedValue",[f])}function s(f,c){if(!c)return[f];const h=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),p=new RegExp(`(${h})`,"gi");return f.split(p).map(x=>x.toLowerCase()===c.toLowerCase()?i.createVNode("span",{class:"search-box-highlight"},[x]):x)}function l(f){const c=String(f[e.textField]??"");return t.slots.default?t.slots.default({item:f,searchValue:r.value,highlight:s}):s(c,r.value)}const d=i.computed(()=>{const f={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(f.maxHeight=`${e.maxHeight}px`),f});return i.watch(()=>e.data,f=>{f!==n.value&&(n.value=f)}),t.expose({search:o}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:d.value},[e.loading&&i.createVNode("div",{class:"search-box-loading"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),i.createVNode("ul",{class:"search-box-list"},[u.value.map(f=>i.createVNode("li",{class:["search-box-item dropdown-item",e.itemClass],key:f[e.idField],onClick:()=>a(f)},[l(f)])),!e.loading&&u.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Tr=i.defineComponent({name:"FXSearchBox",props:Gl,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(),o=i.ref(e.modelValue),a=i.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',l=i.computed(()=>e.loading?s:e.buttonContent);i.watch(o,w=>{var A;(A=u.value)==null||A.search(w),t.emit("update:modelValue",w)}),i.watch(()=>e.modelValue,w=>{o.value=w});function d(w){o.value=w,m()}function f(w){const A=o.value;t.emit("change",w,{oldValue:A,newValue:w})}function c(w){t.emit("selectedValue",w)}function h(){t.emit("clickButton",{})}async function p(){var w;a.value=!0,await i.nextTick(),(w=r.value)==null||w.show(n.value)}function m(){var w;(w=r.value)==null||w.hide(),a.value=!1}function x(){a.value?m():p()}function v(w){const A=w.target.value;o.value=A,f(A),e.showDropdown&&A&&p()}function y(){e.showDropdown&&o.value&&p()}function b(){o.value="",t.emit("update:modelValue",""),m()}t.expose({togglePopup:x,hidePopup:m,showPopup:p});const g=i.computed(()=>{const w=ke({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof w=="string"?[w]:Array.isArray(w)?w:[]]});return()=>i.createVNode("div",{class:g.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[t.slots.prefix&&i.createVNode("span",{class:"f-search-box-prefix"},[t.slots.prefix()]),i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:o.value,disabled:e.disable,onInput:v,onFocus:y},null),o.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:b},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),t.slots.suffix?i.createVNode("span",{class:"f-search-box-suffix",onClick:h},[t.slots.suffix()]):l.value&&i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(nn,{ref:r,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost,class:"f-search-box--dropdown "+e.dropdownClass},{default:()=>[t.slots.dropdown?t.slots.dropdown({data:e.data,searchValue:o.value,loading:e.loading}):i.createVNode(Io,{ref:u,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:w=>c(w),loading:e.loading,maxHeight:e.maxHeight,itemClass:e.itemClass},t.slots)]})])}});Tr.install=e=>{e.component(Tr.name,Tr),e.component(Io.name,Io)};const ci={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function b2(e){const t=i.ref([...e.data]),n=i.ref([]),r=i.ref(""),u=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?o(t.value,c):t.value.map((p,m)=>({type:0,data:p,originalIndex:m}))});function o(c,h){const p=[],m=h.groupFields[0],x=new Map;c.forEach(y=>{const b=String(y[m]??"");x.has(b)||x.set(b,[]),x.get(b).push(y)});let v=0;return x.forEach((y,b)=>{p.push({type:1,data:{[m]:b},groupField:m,groupValue:b,originalIndex:v++}),y.forEach(g=>{p.push({type:0,data:g,groupField:m,groupValue:b,originalIndex:v++})})}),p}function a(c){t.value=[...c],n.value=[],r.value=""}function s(c){r.value=c;const h=t.value.find(p=>p[e.idField]===c);h&&!n.value.includes(h)&&(n.value=[h])}function l(){n.value=[],r.value=""}function d(c){const h=n.value.indexOf(c);h>=0?n.value.splice(h,1):n.value=[c],r.value=c[e.idField]}function f(c){return n.value.includes(c)}return{data:t,visualData:u,selectedItems:n,activeItemId:r,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const y2=i.defineComponent({name:"FXListViewItem",props:{...ci,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const n=i.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>i.createVNode("li",{class:[n.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):i.createVNode("span",null,[e.item[e.textField]])])}}),w2=i.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>i.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):i.createVNode("div",{class:"f-list-view-group-header"},[i.createVNode("i",{class:"fx-icon f-accordion-expand"},null),i.createVNode("span",null,[e.groupValue])])])}}),Dr=i.defineComponent({name:"FXListView",props:ci,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:r,updateDataSource:u,activeRowById:o,clearSelection:a,toggleSelection:s,isSelected:l}=b2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>ke({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:u,activeRowById:o,clearSelection:a}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-list-view-content"},[i.createVNode("ul",{class:"f-listview-items"},[n.value.map((c,h)=>c.type===1?i.createVNode(w2,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(y2,{key:`${c.data[e.idField]}_${h}`,item:c.data,index:c.originalIndex,isActive:c.data[e.idField]===r.value,isSelected:l(c.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});Dr.install=e=>{e.component(Dr.name,Dr)};const Zl={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},Oo=i.defineComponent({name:"FXAgentThinkingMessage",props:Zl,setup(e){const t=i.ref(e.defaultExpanded),n=i.ref({}),r=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.streamStatus;return h==="end"||h===void 0}),u=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.title;return h||(r.value?"思考过程":"正在思考...")}),o=i.computed(()=>{var h;return((h=e.content)==null?void 0:h.steps)??[]}),a=i.computed(()=>{var h,p;return o.value.length>0?"":((p=(h=e.content)==null?void 0:h.text)==null?void 0:p.trim())??""}),s=i.computed(()=>{var h,p;return o.value.length>0||!!a.value||(((p=(h=e.content)==null?void 0:h.sources)==null?void 0:p.length)??0)>0});i.watch(o,h=>{const p={};h.forEach((m,x)=>{p[x]=n.value[x]??!!m.detail}),n.value=p},{immediate:!0}),i.watch(r,h=>{h&&(t.value=!1)});const l=()=>{t.value=!t.value},d=h=>{n.value={...n.value,[h]:!n.value[h]}},f=h=>i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:h?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null),c=(h,p)=>{var v;const m=!!((v=h.detail)!=null&&v.trim()),x=n.value[p]??m;return i.createVNode("div",{class:"f-x-thinking-step",key:p},[i.createVNode("div",{class:"f-x-thinking-step-header",onClick:()=>m&&d(p)},[i.createVNode("span",{class:"f-x-thinking-step-dot","aria-hidden":!0},null),i.createVNode("span",{class:"f-x-thinking-step-summary"},[h.summary]),m?f(x):null]),m&&x?i.createVNode("div",{class:"f-x-thinking-step-detail"},[h.detail]):null])};return()=>{const h=e.content;if(!h)return null;const p={"f-x-thinking":!0,"is-pending":!r.value,"is-completed":r.value};return i.createVNode("div",{class:p},[i.createVNode("div",{class:"f-x-thinking-header",onClick:l},[r.value?null:i.createVNode(tn,{status:"Working",variant:"thinking"},null),i.createVNode("span",{class:"f-x-thinking-title"},[u.value]),s.value?f(t.value):null]),t.value&&s.value?i.createVNode("div",{class:"f-x-thinking-body"},[a.value?i.createVNode("div",{class:"f-x-thinking-text"},[a.value]):null,o.value.map(c),h.sources&&h.sources.length>0?i.createVNode("ul",{class:"f-x-thinking-sources"},[h.sources.map((m,x)=>i.createVNode("li",{key:x},[m]))]):null]):null])}}});Oo.install=e=>{e.component(Oo.name,Oo)};function x2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function v2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function k2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const Lo=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>v2(e.content.media)),n=i.computed(()=>mn(k2(e.content.media)));async function r(u){u.preventDefault(),u.stopPropagation();const o=n.value;o&&await Br(o,e.content.name)}return()=>{const u=!!n.value;return i.createVNode("div",{class:"f-ec-attach-row"},[i.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[i.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[i.createTextVNode("📎")]),i.createVNode("span",{class:"f-ec-attach-body"},[i.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),i.createVNode("span",{class:"f-ec-attach-meta"},[i.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),i.createVNode("span",{class:"f-ec-attach-size"},[x2(e.content.size)])])])]),u?i.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:r},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});Lo.install=e=>{e.component(Lo.name,Lo)};const A2={0:"高",1:"中",2:"低"},Vo=i.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return i.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[i.createVNode("div",{class:"f-ec-error-head"},[i.createVNode("span",{class:"f-ec-error-badge"},[A2[t]]),i.createVNode("span",{class:"f-ec-error-label"},[i.createTextVNode("错误提醒")])]),i.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?i.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[i.createTextVNode("查看详情")]):null])}}});Vo.install=e=>{e.component(Vo.name,Vo)};function C2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Yl=".f-chat-content-input-section";function _2(e,t){const n=(t??"").trim();return n||`Agent请求使用【${e.trim()||"该系统"}】凭证访问该系统,是否授权?`}const Ir=i.defineComponent({name:"FXCredentialAuthDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"凭证授权请求"},question:{type:String,default:""},systemName:{type:String,default:""},disabled:{type:Boolean,default:!1},onSelect:{type:Function,required:!0},onClose:{type:Function,default:void 0},teleportTo:{type:[String,Object],default:Yl}},setup(e){const t=i.computed(()=>_2(e.systemName,e.question));function n(u){e.disabled||e.onSelect(u)}const r=i.computed(()=>e.teleportTo??Yl);return()=>{if(!e.visible)return null;const u=i.createVNode("div",{class:"f-credential-auth-anchor f-credential-auth-anchor--overlay-input",role:"dialog","aria-modal":"true","aria-labelledby":"f-credential-auth-title"},[i.createVNode("div",{class:"f-credential-auth-dialog"},[i.createVNode("div",{id:"f-credential-auth-title",class:"f-credential-auth-dialog__title"},[e.title]),i.createVNode("div",{class:"f-credential-auth-dialog__body"},[t.value]),i.createVNode("div",{class:"f-credential-auth-dialog__actions"},[i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--primary","data-testid":"auth-per-access",disabled:e.disabled,onClick:()=>n("PER_ACCESS_YES")},[i.createTextVNode("临时授权一次")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-session",disabled:e.disabled,onClick:()=>n("SESSION_YES")},[i.createTextVNode("授权整个会话")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-no",disabled:e.disabled,onClick:()=>n("NO")},[i.createTextVNode("拒绝")])])])]);return r.value?i.createVNode(i.Teleport,{to:r.value},C2(u)?u:{default:()=>[u]}):u}}});Ir.install=e=>{e.component(Ir.name,Ir)};function E2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Vt="__hitl_other__";function di(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Yt(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"||t==="authorize"?t:"text"}function Kl(e){return e==="PER_ACCESS_YES"?"是(本次授权)":e==="SESSION_YES"?"是,当前会话后续不再询问":e==="NO"?"否":String(e??"")}const Po=i.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!0},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},pinnedInputHeight:{type:Number,default:0},pinnedBottom:{type:Number,default:36},teleportTo:{type:[String,Object],default:void 0},onSubmitAnswers:{type:Function,default:void 0},onSubmitAuthAnswer:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),r=i.ref({}),u=i.ref({}),o=i.computed(()=>t.value||e.disabled),a=i.computed(()=>{var C;return e.content.questions.length===1&&Yt((C=e.content.questions[0])==null?void 0:C.ui_type)==="authorize"&&!!e.content.credentialAuth}),s=i.ref(!1);i.watch(()=>[a.value,t.value,e.disabled],([C,S,T])=>{s.value=C&&!S&&!T},{immediate:!0});function l(C){var T;const S=e.content.questions[0];S&&(r.value={[S.id]:C},t.value=!0,s.value=!1,(T=e.onSubmitAuthAnswer)==null||T.call(e,{questionId:S.id,answer:C}))}function d(C){const S={},T={};for(const O of C){const P=Yt(O.ui_type);if(P==="confirm")S[O.id]=void 0;else if(P==="authorize")S[O.id]=void 0;else if(P==="text"||P==="select")S[O.id]=O.default_value??"";else if(P==="multi_select")S[O.id]=O.default_value?JSON.parse(O.default_value):[];else if(P==="form"){const U={};if(Array.isArray(O.fields))for(const L of O.fields)U[L.name]=L.default_value??"";S[O.id]=U}else S[O.id]=O.default_value??"";T[O.id]={active:!1,text:""}}r.value=S,u.value=T,n.value=0}i.watch(()=>e.content.questions,C=>{Array.isArray(C)&&C.length&&d(C)},{immediate:!0}),i.watch(()=>e.content.answers,C=>{if(!Array.isArray(C)||C.length===0)return;const S={...r.value},T={...u.value};for(const O of C){S[O.id]=O.answer;const P=e.content.questions.find(U=>U.id===O.id);P&&Yt(P.ui_type)==="select"&&typeof O.answer=="string"&&!(P.options??[]).some(R=>R.label===O.answer)&&O.answer!==""&&(T[O.id]={active:!0,text:O.answer},S[O.id]=Vt)}r.value=S,u.value=T,t.value=!0},{immediate:!0});const f=i.computed(()=>e.content.questions.length),c=i.computed(()=>{const C=e.content.questions;if(C.length===0)return null;const S=Math.max(0,Math.min(n.value,C.length-1));return C[S]}),h=i.computed(()=>n.value<=0),p=i.computed(()=>n.value>=f.value-1),m=i.computed(()=>{const C=c.value;return C?y(C):!0});function x(){e.required&&!m.value||p.value||(n.value+=1)}function v(){h.value||(n.value-=1)}function y(C){var O,P;const S=Yt(C.ui_type),T=r.value[C.id];if(S==="text"&&(typeof T!="string"||T.trim()==="")||S==="select"&&(typeof T!="string"||T.trim()===""||T===Vt&&(((P=(O=u.value[C.id])==null?void 0:O.text)==null?void 0:P.trim())??"")==="")||S==="confirm"&&typeof T!="boolean"||S==="multi_select"&&(!Array.isArray(T)||T.length===0))return!1;if(S==="form"){const U=C.fields??[],L=T;for(const R of U)if(R.required){const B=L[R.name];if(typeof B!="string"||B.trim()==="")return!1}}return!((S==="date"||S==="number")&&(typeof T!="string"||T.trim()===""))}const b=i.computed(()=>o.value?!1:e.content.questions.every(C=>y(C)));function g(C,S){r.value={...r.value,[C]:S}}function w(C,S,T){const O=r.value[C]??{};g(C,{...O,[S]:T})}function A(C){const S=Yt(C.ui_type);return S==="select"||S==="multi_select"}function N(C,S){var T;S===Vt?(u.value={...u.value,[C.id]:{...u.value[C.id],active:!0,text:((T=u.value[C.id])==null?void 0:T.text)??""}},g(C.id,Vt)):(u.value={...u.value,[C.id]:{active:!1,text:""}},g(C.id,S))}function F(C,S){const T=r.value[C.id]??[];T.includes(S)?g(C.id,T.filter(O=>O!==S)):g(C.id,[...T,S])}function _(){var S,T,O;if(!b.value)return;const C=[];for(const P of e.content.questions){const U=Yt(P.ui_type);let L=r.value[P.id];U==="select"&&L===Vt&&(L=((T=(S=u.value[P.id])==null?void 0:S.text)==null?void 0:T.trim())??""),U==="number"&&(L=Number(L)),C.push({id:P.id,answer:L})}t.value=!0,(O=e.onSubmitAnswers)==null||O.call(e,C)}function G(C,S,T){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:C,disabled:S,onInput:O=>T(O.target.value)},null)])}function $(C,S,T,O,P){const U=B=>{let Q=Number(C)||0;Q+=B,O!==void 0&&(Q=Math.max(O,Q)),P!==void 0&&(Q=Math.min(P,Q)),T(String(Q))},L=P!==void 0&&Number(C||0)>=P,R=O!==void 0&&Number(C||0)<=O;return i.createVNode("div",{class:"f-hitl-num-wrap"},[i.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:C,min:O,max:P,disabled:S,onInput:B=>T(B.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:S||L,onClick:()=>U(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:S||R,onClick:()=>U(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function M(C,S,T,O){return i.createVNode("div",{key:C.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":T}],onClick:O},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[S+1]),i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[C.label]),C.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:C.description},[di(C.description)]):null]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[T?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function H(C,S){return i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),S])}function I(C,S,T){const O=r.value[C.id]??"",P=r.value[C.id]??[],U=u.value[C.id]??{active:!1,text:""},L=T==="single",R=L&&O===Vt||U.active,B=C.allow_other&&R,Q=le=>L?O===le.label&&!U.active:P.includes(le.label),re=le=>()=>{o.value||(L?N(C,le.label):F(C,le.label))},oe=()=>{if(!o.value)if(L)N(C,Vt);else{const le=U.text;U.active?(g(C.id,P.filter(he=>he!==le)),u.value={...u.value,[C.id]:{active:!1,text:""}}):(u.value={...u.value,[C.id]:{active:!0,text:U.text}},U.text&&!P.includes(U.text)&&g(C.id,[...P,U.text]))}},ce=le=>{const he=le.target.value;u.value={...u.value,[C.id]:{active:!0,text:he}},L?g(C.id,Vt):g(C.id,[...P.filter(Be=>Be!==U.text),he])};return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[S.map((le,he)=>M(le,he,Q(le),re(le))),C.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":R}],onClick:oe},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[R?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),B?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:U.text,placeholder:"请输入自定义内容",disabled:o.value,onInput:ce},null):null])}function X(C){const S=r.value[C.id]??{},T=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[T.map(O=>{const P=S[O.name]??"";return O.type==="select"?H(O,i.createVNode("div",{class:"f-hitl-select-group"},[(O.options??[]).map(U=>{const L=typeof U=="string"?U:U.label??"";return i.createVNode("button",{key:L,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":P===L}],disabled:o.value,onClick:()=>w(C.id,O.name,L)},[L])})])):O.type==="number"?H(O,$(P,o.value,U=>w(C.id,O.name,U),O.min,O.max)):O.type==="date"?H(O,G(P,o.value,U=>w(C.id,O.name,U))):H(O,i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:O.default_value??"请输入",disabled:o.value,onInput:U=>w(C.id,O.name,U.target.value)},null))})])])}function q(C){const S=Yt(C.ui_type);if(S==="text"){const T=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("input",{class:"f-hitl-input",type:"text",value:T,placeholder:C.placeholder??"请输入",disabled:o.value,onInput:O=>g(C.id,O.target.value)},null)])}if(S==="multi_select"){const T=Array.isArray(C.options)?C.options:[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,T,"multi")])}if(S==="form")return X(C);if(S==="select"){let T=Array.isArray(C.options)?C.options:[];return T.length===0&&(T=[{label:"暂无"}]),i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,T,"single")])}if(S==="confirm"){const T=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":T===!0}],disabled:o.value,onClick:()=>g(C.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":T===!1}],disabled:o.value,onClick:()=>g(C.id,!1)},[i.createTextVNode("否")])])])}if(S==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Kl(r.value[C.id])])]);if(S==="date"){const T=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[G(T,o.value,O=>g(C.id,O))])}if(S==="number"){const T=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[$(T,o.value,O=>g(C.id,O),C.min,C.max)])}return i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:C.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持 ui_type「"),String(C.ui_type),i.createTextVNode("」,请升级前端。")])])}function D(C){const S=Yt(C.ui_type),T=(P,U,L)=>i.createVNode("input",{class:"f-hitl-input",type:P,value:U,readonly:!0,min:L==null?void 0:L.min,max:L==null?void 0:L.max},null);if(S==="text"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[T("text",P)])}if(S==="multi_select"){const P=r.value[C.id]??[],U=Array.isArray(C.options)?C.options:[],L=new Set(U.map(B=>B.label)),R=P.filter(B=>!L.has(B));return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[U.filter(B=>P.includes(B.label)).map(B=>i.createVNode("div",{class:"f-hitl-opt-row",key:B.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[B.label]),B.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:B.description},[di(B.description)]):null])])),R.map(B=>i.createVNode("div",{class:"f-hitl-opt-row",key:B},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[B])])]))])])}if(S==="select"){const P=r.value[C.id]??"",U=u.value[C.id]??{active:!1,text:""},L=Array.isArray(C.options)?C.options:[],R=P===Vt||U.active;return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[R?i.createVNode("div",{class:"f-hitl-opt-row"},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[U.text||"其他"])])]):L.filter(B=>B.label===P).map(B=>i.createVNode("div",{class:"f-hitl-opt-row",key:B.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[B.label]),B.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:B.description},[di(B.description)]):null])]))])])}if(S==="confirm"){const P=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn","f-hitl-cbtn--readonly"]},[P===!0?"是":"否"])])])}if(S==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Kl(r.value[C.id])])]);if(S==="form"){const P=r.value[C.id]??{},U=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[U.map(L=>{const R=P[L.name]??"";let B;return L.type==="number"?B=T("number",R,{min:L.min,max:L.max}):L.type==="date"?B=T("date",R):B=T("text",R),H(L,B)})])])}if(S==="date"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[T("date",P)])}if(S==="number"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[T("number",P)])}const O=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[String(O??"")])])}function j(C){return i.createVNode("div",{class:"f-hitl-card__title-wrap"},[i.createVNode("span",{class:"f-hitl-card__title"},[C.question]),i.createVNode("span",{class:"f-hitl-card__subtitle"},[C.header])])}function z(){return f.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:h.value,onClick:v},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),f.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:p.value,onClick:x},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function Z(){const C=e.pinnedWidth?{width:`calc(${e.pinnedWidth} * 0.8)`,minWidth:"343px",maxWidth:"800px"}:void 0;return i.createVNode("div",{class:"f-hitl-card",style:C},[i.createVNode("div",{class:"f-hitl-submitted-flat"},[e.content.questions.map(S=>i.createVNode("div",{class:"f-hitl-submitted-item",key:S.id},[i.createVNode("div",{class:"f-hitl-card__header"},[j(S)]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":A(S)}]},[D(S)])]))])])}function ue(){const C=c.value;if(!C)return null;const S=e.pinned?"f-hitl-card--pinned":"",T=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,O=e.pinnedInputHeight??0,P=e.pinnedBottom??36,U=()=>i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"f-hitl-card__header"},[j(C),z()]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":A(C)}]},[q(C)]),!o.value&&i.createVNode("div",{class:"f-hitl-card__footer"},[f.value>1&&!p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!m.value,onClick:x},[i.createTextVNode("下一条")]),p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!b.value,onClick:_},[i.createTextVNode("提交")])])]);if(e.pinned){const L=i.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[i.createVNode("div",{class:"f-hitl-card",style:{...T,marginBottom:`-${O}px`}},[U()])]);if(e.teleportTo){const B={...T,bottom:`${P}px`},Q=i.createVNode("div",{class:["f-hitl-card",S],style:B},[U()]);return i.createVNode(i.Fragment,null,[L,i.createVNode(i.Teleport,{to:e.teleportTo},E2(Q)?Q:{default:()=>[Q]})])}const R=i.createVNode("div",{class:["f-hitl-card",S],style:T},[U()]);return i.createVNode(i.Fragment,null,[L,R])}return i.createVNode("div",{class:["f-hitl-card",S],style:T},[U()])}return()=>{var C;if(a.value){const S=e.content.questions[0];return S?i.createVNode(i.Fragment,null,[i.createVNode(Ir,{visible:s.value,title:S.header??"凭证授权请求",question:S.question,systemName:((C=e.content.credentialAuth)==null?void 0:C.systemName)??"",disabled:o.value,teleportTo:".f-chat-content-input-section",onSelect:l},null)]):null}return o.value?Z():ue()}}});Po.install=e=>{e.component(Po.name,Po)};function S2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Ro=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var u;S2(e.content,r),(u=e.onPick)==null||u.call(e,n)};return()=>i.createVNode("div",{class:"f-ec-recommend"},[e.content.title?i.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,i.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,r)=>i.createVNode("button",{key:r,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,r)},[n]))])])}});Ro.install=e=>{e.component(Ro.name,Ro)};const Mo=i.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return i.createVNode("div",{class:"f-ec-linkcard"},[t.poster?i.createVNode("div",{class:"f-ec-linkcard-poster"},[i.createVNode("img",{src:t.poster,alt:""},null)]):null,i.createVNode("div",{class:"f-ec-linkcard-body"},[i.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?i.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?i.createVNode("div",{class:"f-ec-linkcard-related"},[i.createVNode("div",{class:"f-ec-linkcard-related-label"},[i.createTextVNode("相关阅读")]),i.createVNode("ul",null,[t.relatedLinks.map((n,r)=>i.createVNode("li",{key:r},[i.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}});Mo.install=e=>{e.component(Mo.name,Mo)};const Bo=i.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-sources"},[i.createVNode("div",{class:"f-ec-sources-title"},[i.createTextVNode("引用来源")]),i.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>i.createVNode("li",{key:n},[i.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});Bo.install=e=>{e.component(Bo.name,Bo)};function Ql(e){const t=new Map;for(const n of e){const r=t.get(n.docId),u=typeof n.url=="string"&&n.url.trim()!==""?n.url.trim():void 0;r?(r.chunkCount+=1,r.contentIds.push(n.contentId),!r.url&&u&&(r.url=u)):t.set(n.docId,{key:n.docId,docName:n.docName,chunkCount:1,contentIds:[n.contentId],...u?{url:u}:{}})}return[...t.values()]}const zo=i.defineComponent({name:"FXKnowledgeTraceStrip",props:{content:{type:Object,required:!0}},emits:["open"],setup(e,{emit:t}){const n=i.ref(!1),r=i.computed(()=>Ql(e.content.chunks??[])),u=i.computed(()=>{var l;return((l=e.content.chunks)==null?void 0:l.length)??0}),o=()=>{t("open")},a=l=>{l.stopPropagation(),n.value=!n.value},s=(l,d)=>{l.stopPropagation();const f=typeof d=="string"?d.trim():"";!f||typeof window>"u"||window.open(f,"_blank","noopener,noreferrer")};return()=>u.value?i.createVNode("div",{class:"f-ec-knowledge-trace"},[i.createVNode("div",{class:"f-ec-knowledge-trace__header",onClick:o},[i.createVNode("span",{class:"f-ec-knowledge-trace__main"},[i.createVNode("svg",{class:"f-ec-knowledge-trace__icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.createVNode("circle",{cx:"12",cy:"12",r:"10"},null),i.createVNode("path",{d:"M12 16v-4M12 8h.01"},null)]),i.createVNode("span",null,[i.createTextVNode("知识溯源 · "),u.value,i.createTextVNode(" 条参考来源")])]),i.createVNode("button",{type:"button",class:"f-ec-knowledge-trace__toggle","aria-label":n.value?"收起原始文档":"展开原始文档",title:n.value?"收起原始文档":"展开原始文档","data-testid":"knowledge-trace-files-toggle",onClick:a},[i.createVNode("span",{class:["f-ec-knowledge-trace__toggle-icon",n.value&&"f-ec-knowledge-trace__toggle-icon--open"]},[i.createTextVNode("▼")])])]),n.value&&r.value.length>0?i.createVNode("div",{class:"f-ec-knowledge-trace__files"},[r.value.map(l=>i.createVNode("div",{key:l.key,class:"f-ec-knowledge-trace__file","data-testid":"knowledge-trace-source-file"},[i.createVNode("button",{type:"button",class:["f-ec-knowledge-trace__file-name",!l.url&&"f-ec-knowledge-trace__file-name--disabled"],title:l.docName,disabled:!l.url,"data-testid":"knowledge-trace-source-file-preview",onClick:d=>s(d,l.url)},[l.docName]),i.createVNode("span",{class:"f-ec-knowledge-trace__file-meta"},[l.chunkCount,i.createTextVNode(" 条切片")])]))]):null]):null}});function N2(e){return Number.isFinite(e)?Number(e).toFixed(4):""}const fi=i.defineComponent({name:"FXKnowledgeTracePanel",props:{chunks:{type:Array,default:()=>[]},isShow:{type:Boolean,default:!1},selectedContentId:{type:String,default:void 0}},emits:["update:isShow","close"],setup(e,{emit:t}){const n=i.ref({}),r=i.ref(null),u=()=>{t("update:isShow",!1),t("close")},o=l=>{n.value={...n.value,[l]:!n.value[l]}},a=l=>{const d=typeof l=="string"?l.trim():"";!d||typeof window>"u"||window.open(d,"_blank","noopener,noreferrer")},s=()=>{if(!e.isShow||!e.selectedContentId||!r.value)return;const l=typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e.selectedContentId):e.selectedContentId.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),d=r.value.querySelector(`[data-knowledge-trace-content-id="${l}"]`);d instanceof HTMLElement&&d.scrollIntoView({block:"nearest",behavior:"smooth"})};return i.watch(()=>[e.isShow,e.selectedContentId,e.chunks],()=>{!e.isShow||!e.selectedContentId||i.nextTick(()=>{s()})},{immediate:!0}),()=>{if(!e.isShow)return null;const l=e.chunks??[];return i.createVNode("aside",{class:"f-ec-knowledge-trace-panel","data-testid":"knowledge-trace-panel","aria-label":"参考来源"},[i.createVNode("div",{class:"f-ec-knowledge-trace-panel__header"},[i.createVNode("span",{class:"f-ec-knowledge-trace-panel__title"},[i.createTextVNode("参考来源 · "),l.length]),i.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__close","aria-label":"关闭",title:"关闭","data-testid":"knowledge-trace-panel-close",onClick:u},[i.createTextVNode("×")])]),i.createVNode("div",{class:"f-ec-knowledge-trace-panel__body",ref:r},[l.length===0?i.createVNode("div",{class:"f-ec-knowledge-trace-panel__empty"},[i.createTextVNode("暂无参考来源")]):l.map((d,f)=>{const c=d.contentId===e.selectedContentId,h=!!n.value[d.contentId],p=typeof d.score=="number"?N2(d.score):"",m=String(f+1),x=typeof d.url=="string"&&d.url.trim()!==""?d.url.trim():"";return i.createVNode("div",{key:d.contentId,class:["f-ec-knowledge-trace-panel__card",c&&"f-ec-knowledge-trace-panel__card--selected",h&&"f-ec-knowledge-trace-panel__card--expanded"],"data-knowledge-trace-content-id":d.contentId,"data-testid":"knowledge-trace-panel-card"},[i.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-title",x&&"f-ec-knowledge-trace-panel__card-title--link"],title:d.docName,role:x?"link":void 0,tabindex:x?0:void 0,onClick:()=>a(x),onKeydown:v=>{x&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),a(x))}},[d.docName]),p?i.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-meta"},[i.createVNode("span",null,null),i.createVNode("span",null,[p])]):null,i.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-content",h&&"f-ec-knowledge-trace-panel__card-content--expanded"]},[d.content]),i.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-footer"},[i.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__toggle",onClick:()=>o(d.contentId)},[h?"收起":"展开"]),i.createVNode("span",{class:"f-ec-knowledge-trace-panel__mark"},[m])])])})])])}}});zo.install=e=>{e.component(zo.name,zo),e.component(fi.name,fi)};const jo=i.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-unknown"},[i.createVNode("div",{class:"f-ec-unknown-title"},[i.createTextVNode("未知类型消息")]),e.content.wireType?i.createVNode("div",{class:"f-ec-unknown-wire"},[i.createTextVNode("wire type: "),e.content.wireType]):null,i.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});jo.install=e=>{e.component(jo.name,jo)},lr.install=e=>{e.component(lr.name,lr)};const F2={install(e){e.use(lt).use(cr).use(dr).use(mr).use(Fn).use(xr).use(vr).use(kr).use(Ar).use(xn).use(an).use(Dn).use(rn).use(Cr).use(_r).use(Er).use(Sr).use(Nr).use(Cn).use(_n).use(nn).use(Sn).use(Fr).use(Tr).use(Dr)}};V.FXAgentThinking=Oo,V.FXAppPreview=lt,V.FXAttachmentFile=Lo,V.FXAttachmentPreview=Nr,V.FXBubble=cr,V.FXBubbleAction=ju,V.FXCarousel=dr,V.FXCarouselItem=yo,V.FXChatPreview=mr,V.FXCoding=xr,V.FXConfirmDialog=Fn,V.FXCredentialAuthDialog=Ir,V.FXDynamicComponent=_n,V.FXErrorReminder=Vo,V.FXFileEmbeddedContent=Ri,V.FXFileOperation=vr,V.FXGenerateProcess=kr,V.FXHistory=Ar,V.FXHitlQuestion=Po,V.FXInputRecommend=Ro,V.FXKnowledgeTracePanel=fi,V.FXKnowledgeTraceStrip=zo,V.FXLinkCard=Mo,V.FXListView=Dr,V.FXMarkdown=xn,V.FXMarkdownPreview=an,V.FXNav=Fr,V.FXPopover=nn,V.FXPopoverDirective=Cs,V.FXPrompt=Do,V.FXPrompts=Dn,V.FXReferenceSources=Bo,V.FXSearchBox=Tr,V.FXSearchBoxContainer=Io,V.FXSplitter=Sn,V.FXSplitterPane=fr,V.FXStartedTodo=rn,V.FXSuggestion=Cr,V.FXTodo=_r,V.FXTodoListItemView=bo,V.FXTodoListView=sr,V.FXToolUse=En,V.FXToolUseBatch=Er,V.FXUnknownEnterprise=jo,V.FXUserAuth=lr,V.FXWelcome=Sr,V.FXWidgetContainer=Cn,V.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=ii,V.PREVIEW_BRIDGE_SOURCE=oi,V.PREVIEW_BRIDGE_VERSION=ui,V.agentThinkingProps=Zl,V.aggregateKnowledgeTraceByDoc=Ql,V.appPreviewMessageProps=ve,V.attachmentPreviewProps=Ul,V.bubbleActionProps=Ns,V.bubbleProps=Mr,V.carouselItemProps=Ts,V.carouselProps=Fs,V.chatHistoryProps=Rl,V.chatPreviewProps=Is,V.clonePreviewPayloadForPostMessage=gl,V.closeFXConfirmDialog=b1,V.codingMessageProps=Ol,V.confirmDialogProps=kl,V.createPreviewIframeSdk=s1,V.default=F2,V.extractFileIdFromRuntimeDownloadUrl=Ei,V.fileEmbeddedContentProps=Li,V.fileOperationMessageProps=Vl,V.generateProcessProps=Pl,V.getCustomClass=ke,V.getCustomStyle=Ee,V.getDynamicCompState=om,V.getDynamicComponentRegistryDebugSnapshot=Mu,V.invokeAgentWorkbenchSdkApi=a1,V.isImageUrl=Fi,V.isPreviewBridgeAssistantMessage=yl,V.listViewProps=ci,V.loadDynamicComponent=ys,V.markdownMessageProps=Ga,V.markdownPreviewProps=Os,V.navProps=Xl,V.normalizeDynamicComponentRegisterClaim=De,V.openFXConfirmDialog=g1,V.overflowTooltipDirective=Oi,V.peekDynamicComponentRegisterBootstrapId=tm,V.popoverProps=vs,V.postAssistantToPreviewIframe=wl,V.postDynamicComponentAssistantMessage=am,V.previewLayoutBridge=d1,V.promptProps=zl,V.promptsProps=Ml,V.registerPreviewChromeSdk=c1,V.renderIconNode=zr,V.renderNode=$n,V.resolveHrefForAttachmentDownload=mn,V.resolveRuntimeAttachmentDownloadUrl=Yo,V.searchBoxContainerProps=ql,V.searchBoxProps=Gl,V.splitterProps=Ds,V.startedTodoProps=_s,V.subscribeAssistantInPreviewIframe=xl,V.suggestionProps=jl,V.todoListItemProps=Ss,V.todoListViewProps=Es,V.todoProps=Hl,V.triggerAttachmentDownload=Br,V.unloadDynamicComponent=ws,V.useAttachment=Vi,V.useSequentialStreaming=jr,V.useStreamingOutput=Ti,V.useTimer=Ko,V.useToolIcon=Qo,V.welcomeProps=$l,V.widgetContainerProps=fs,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
704
|
+
`},wh=Ly(Hy)(vh),qy={config:Py},jy=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduceRight(function(a,s){return s(a)},i)}};function xh(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],xh(e[r],t[r]))}),gh(gh({},e),t)}var $y={type:"cancelation",msg:"operation is manually canceled"};function Wc(e){var t=!1,r=new Promise(function(n,i){e.then(function(a){return t?i($y):n(a)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var Uy=["monaco"],Wy=Iy.create({config:Oy,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ah=by(Wy,2),eu=Ah[0],Xo=Ah[1];function Gy(e){var t=qy.config(e),r=t.monaco,n=py(t,Uy);Xo(function(i){return{config:xh(i.config,n),monaco:r}})}function Xy(){var e=eu(function(t){var r=t.monaco,n=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:n,resolve:i}});if(!e.isInitialized){if(Xo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Wc(Gc);if(window.monaco&&window.monaco.editor)return Dh(window.monaco),e.resolve(window.monaco),Wc(Gc);jy(Yy,Ky)(Qy)}return Wc(Gc)}function Yy(e){return document.body.appendChild(e)}function Zy(e){var t=document.createElement("script");return e&&(t.src=e),t}function Ky(e){var t=eu(function(n){var i=n.config,a=n.reject;return{config:i,reject:a}}),r=Zy("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Qy(){var e=eu(function(r){var n=r.config,i=r.resolve,a=r.reject;return{config:n,resolve:i,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var n=r.m||r;Dh(n),e.resolve(n)},function(r){e.reject(r)})}function Dh(e){eu().monaco||Xo({monaco:e})}function Jy(){return eu(function(e){var t=e.monaco;return t})}var Gc=new Promise(function(e,t){return Xo({resolve:e,reject:t})}),ev={config:Gy,init:Xy,__getMonacoInstance:Jy};const kh={content:{type:Object,required:!0}},Ch=20,tv=16,Qa=180;function rv(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const tu=d.defineComponent({name:"FXCodingMessage",props:kh,setup(e){const t=d.ref(!0),r=d.ref(!1),n=d.ref(null),i=d.ref(null),a=d.ref(Qa),s=d.ref(!1);function c(){t.value=!t.value}function f(){var S,F,z,R;const C=(S=e.content)==null?void 0:S.code;if(!C)return Qa;const _=i.value;let T;if(_!=null&&_.getOriginalEditor&&(_!=null&&_.getModifiedEditor)){const $=((F=_.getOriginalEditor().getModel())==null?void 0:F.getLineCount())??0,Y=((z=_.getModifiedEditor().getModel())==null?void 0:z.getLineCount())??0;T=$+Y}else if(_!=null&&_.getModel)T=((R=_.getModel())==null?void 0:R.getLineCount())??0;else{const{value:$,originalValue:Y}=C,q=($||"").split(`
|
|
705
|
+
`).length,pe=Y?Y.split(`
|
|
706
|
+
`).length:0;T=Y?pe+q:q}return tv+T*Ch}const p=d.computed(()=>(i.value,f()>Qa));function g(){r.value=!r.value,a.value=r.value?f():Qa,w()}function m(){if(!i.value)return;i.value=null;const B=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(B,{timeout:100}):setTimeout(B,0)}function w(){if(s.value)return;const C=n.value,B=i.value;if(!C||!(B!=null&&B.layout))return;const _=C.clientWidth||C.offsetWidth,T=a.value;requestAnimationFrame(()=>{var S,F;s.value||!i.value||(F=(S=i.value)==null?void 0:S.layout)==null||F.call(S,{width:_,height:T})})}function k(){var C;s.value||!n.value||!((C=e.content)!=null&&C.code)||ev.init().then(B=>{var z;if(s.value||!n.value||!((z=e.content)!=null&&z.code))return;const{value:_,originalValue:T,language:S="typescript"}=e.content.code,F={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Ch,padding:{top:8,bottom:8}};if(T){const R=B.editor.createDiffEditor(n.value,{...F,renderSideBySide:!1,renderOverviewRuler:!1});R.setModel({original:B.editor.createModel(T,S),modified:B.editor.createModel(_,S)}),R.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),R.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),d.nextTick(()=>{var Y;if(s.value)return;const $=(Y=R.getContainerDomNode)==null?void 0:Y.call(R);if($){const q=$.querySelector('.diff-editor-cell.original, [class*="original"]');q&&(q.style.display="none")}}),i.value=R}else{const R=B.editor.create(n.value,{value:_,language:S,...F});i.value=R}a.value=Qa,d.nextTick(()=>w())})}return d.onMounted(()=>{rv(()=>{s.value||!n.value||k()})}),d.watch(t,C=>{C&&!s.value&&d.nextTick(()=>w())}),d.onBeforeUnmount(()=>{s.value=!0,m()}),d.watch(()=>{var C,B;return(B=(C=e.content)==null?void 0:C.code)==null?void 0:B.value},()=>{s.value||(r.value?a.value=f():a.value=Qa,w())}),()=>{const C=e.content;if(!C)return null;const{message:B,fileIcon:_,fileName:T,code:S}=C;return d.createVNode("div",{class:"f-chat-message-coding"},[d.createVNode("div",{class:"f-chat-coding-message"},[B]),d.createVNode("div",{class:"f-chat-coding-card"},[d.createVNode("div",{class:"f-chat-coding-header",onClick:c,role:"button",tabindex:0,onKeydown:F=>F.key==="Enter"&&c()},[d.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[d.createVNode("span",{class:"f-chat-coding-header-icon"},[d.createVNode("img",{src:_,alt:"",onError:F=>{var z;F.target.style.display="none",(z=F.target.parentElement)==null||z.classList.add("icon-error")}},null),d.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[d.createTextVNode("📄")])]),d.createVNode("span",{class:"f-chat-coding-header-expand"},[d.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),d.createVNode("span",{class:"f-chat-coding-header-filename"},[T]),d.createVNode("span",{class:"f-chat-coding-header-stats"},[d.createVNode("span",{class:"f-chat-coding-stat-add"},[d.createTextVNode("+"),S.addedLines]),d.createVNode("span",{class:"f-chat-coding-stat-del"},[d.createTextVNode("-"),S.deletedLines])])]),d.createVNode("div",{style:{display:t.value?"block":"none"}},[d.createVNode("div",{ref:n,class:"f-chat-coding-editor",style:{height:`${a.value}px`}},null),p.value&&d.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:g,"aria-label":r.value?"收起代码":"展开代码",title:r.value?"收起代码":"展开代码"},[d.createVNode("i",{class:["fx-icon fx-icon-expanddown",r.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});tu.install=e=>{e.component(tu.name,tu)};const Sh={content:{type:Object,required:!0}};function nv(e){return"file"in e&&"path"in e}const ru=d.defineComponent({name:"FileOperationMessage",props:Sh,setup(e){const t=d.ref(!0),r=d.ref({}),n=d.computed(()=>{var f;return!!((f=e.content)!=null&&f.summary)}),i=d.computed(()=>{var p;const f=(p=e.content)==null?void 0:p.summary;return f?`浏览了 ${f.explored} 个文件并查询了 ${f.searched} 个文件`:""});function a(){t.value=!t.value}function s(f){r.value={...r.value,[f]:!r.value[f]}}function c(f){return r.value[f]??!1}return()=>{const f=e.content;if(!f)return null;const{summary:p,operations:g}=f,m=!n.value||t.value;return d.createVNode("div",{class:"f-chat-message-file-operation"},[p&&d.createVNode("div",{class:"f-chat-file-op-summary",onClick:a,role:"button",tabindex:0,onKeydown:w=>w.key==="Enter"&&a()},[d.createVNode("span",{class:"f-chat-file-op-summary-inner"},[d.createVNode("span",{class:"f-chat-file-op-summary-text"},[i.value]),d.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[d.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])])]),m&&d.createVNode("div",{class:"f-chat-file-op-operations"},[g.map((w,k)=>{var C,B,_,T;return d.createVNode("div",{key:k,class:"f-chat-file-op-operation"},[d.createVNode("div",d.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":w.type==="Read","has-details":!!((C=w.details)!=null&&C.length)}],onClick:()=>{var S;return((S=w.details)==null?void 0:S.length)&&s(k)}},(B=w.details)!=null&&B.length?{role:"button",tabIndex:0}:{},{onKeydown:S=>{var F;return((F=w.details)==null?void 0:F.length)&&S.key==="Enter"&&s(k)}}),[d.createVNode("span",{class:"f-chat-file-op-type"},[w.type]),d.createVNode("span",{class:"f-chat-file-op-message-wrap"},[d.createVNode("span",{class:"f-chat-file-op-message"},[w.message]),(_=w.details)!=null&&_.length?d.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:c(k)}]},[d.createVNode("i",{class:c(k)?"fx-icon fx-icon-foldu":"fx-icon pfx-icon-expanddown"},null)]):null])]),((T=w.details)==null?void 0:T.length)&&c(k)&&d.createVNode("div",{class:"f-chat-file-op-details"},[w.details.map((S,F)=>nv(S)?d.createVNode("div",{key:F,class:"f-chat-file-op-detail-file"},[d.createVNode("span",{class:"f-chat-file-op-file-icon"},[d.createVNode("img",{src:S.icon,alt:"",onError:z=>{const R=z.target;R.style.display="none";const $=R.parentElement;$&&$.classList.add("icon-error")}},null),d.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[d.createTextVNode("📄")])]),d.createVNode("span",{class:"f-chat-file-op-file-name"},[S.file]),d.createVNode("span",{class:"f-chat-file-op-file-path",title:S.path},[S.path])]):d.createVNode("div",{key:F,class:"f-chat-file-op-detail-text"},[d.createVNode("div",{class:"f-chat-file-op-detail-title"},[S.title]),d.createVNode("div",{class:"f-chat-file-op-detail-content"},[S.text])]))])])})])])}}});ru.install=e=>{e.component(ru.name,ru)};const Eh={visible:{type:Boolean,default:!0},description:[String,Object],progress:{type:Number,default:0},showProgress:{type:Boolean,default:!0},icon:{type:[String,Object],default:""},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},av="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='60px'%20height='60px'%20viewBox='0%200%2060%2060'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e智能logo60px%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M25.1971977,0%20L45.8523137,11.3712178%20L45.8523137,37.6155801%20L44.4946453,38.9692599%20L24.623,28.022%20L24.6233274,49.9395377%20L21.4535582,49.9395377%20L2.72549351,39.5965647%20L0,34.4406135%20L0,12.8076673%20L3.70534859,10.5019677%20L20.556,20.546%20L20.5567534,0.161454345%20L25.1971977,0%20Z%20M20.7578212,28.1498874%20L5.81325199,36.7628182%20L20.7578212,45.0027895%20L20.7578212,28.1498874%20Z%20M41.8027832,15.9256338%20L26.7716137,24.6706076%20L41.8027832,32.9879669%20L41.8027832,15.9256338%20Z%20M4.06159924,15.4742393%20L4.06159924,32.9879669%20L19.1488772,24.4568004%20L4.06159924,15.4742393%20Z%20M24.6233274,4.32908173%20L24.6233274,21.2862528%20L39.8727429,12.4882393%20L24.6233274,4.32908173%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='生成过程'%20transform='translate(-766,%20-1268)'%3e%3cg%20id='编组-7'%20transform='translate(321,%20699)'%3e%3cg%20id='编组-5'%20transform='translate(247,%20488)'%3e%3cg%20id='智能logo60px'%20transform='translate(198,%2081)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='60'%20height='60'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.8571,%200.8571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='58.2857143'%20height='58.2857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(3.4286,%201.7143)'%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L27.3406238,30.8038254%20L27.3409512,52.7213631%20L24.171182,52.7213631%20L5.44311735,42.3783901%20L2.71762384,37.2224388%20L2.71762384,15.5894926%20L6.42297243,13.283793%20L23.2736238,23.3278254%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M23.4754451,30.9317128%20L8.53087583,39.5446435%20L23.4754451,47.7846148%20L23.4754451,30.9317128%20Z%20M44.520407,18.7074592%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.520407,18.7074592%20Z%20M6.77922307,18.2560647%20L6.77922307,35.7697922%20L21.866501,27.2386257%20L6.77922307,18.2560647%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(2.7176,%202.7818)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='14.177196%2023.2632694%2022.5796859%2023.2632694%2023.4218687%2027.5957059%209.52757789%2036.9780352%203.7254788%2029.0812693'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='23.4218687%2022.4125055%2027.1161878%2015.1091341%2027.8042533%206.35665145%2018.1506617%205.88610282%2018.8417696%2016.8706238%2022.5796859%2022.4125055'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='33.5501273%2024.6706076%2024.403058%2024.9983902%2024.403058%2027.5289361%2028.4733448%2033.3539069%2036.4355638%2036.3335669%2041.6970622%2028.387534'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L23.2743772,28.5628437%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L28.3053772,23.5108254%20L28.3061985,25.7112082%20L30.1053772,27.0928254%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.5203772,18.7198254%20L45.4350062,17.1793767%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='22.5927693%2026.8440709%2023.6315003%2030.8033921%208.53087583%2039.5446435%207.30516741%2035.4601402'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M25.4312165,33.1398658%20C28.857043,33.1398658%2031.634224,30.3626848%2031.634224,26.9368583%20C31.634224,23.5110318%2028.857043,20.7338508%2025.4312165,20.7338508%20C22.00539,20.7338508%2019.228209,23.5110318%2019.228209,26.9368583%20C19.228209,30.3626848%2022.00539,33.1398658%2025.4312165,33.1398658%20Z%20M46.5950591,20.103577%20C49.2645342,20.103577%2051.4285714,17.9395398%2051.4285714,15.2700646%20C51.4285714,12.6005895%2049.2645342,10.4365523%2046.5950591,10.4365523%20C43.9255839,10.4365523%2041.7615467,12.6005895%2041.7615467,15.2700646%20C41.7615467,17.9395398%2043.9255839,20.103577%2046.5950591,20.103577%20Z%20M25.4312165,54.9048659%20C28.1006917,54.9048659%2030.2647289,52.7408287%2030.2647289,50.0713536%20C30.2647289,47.4018784%2028.1006917,45.2378412%2025.4312165,45.2378412%20C22.7617413,45.2378412%2020.5977042,47.4018784%2020.5977042,50.0713536%20C20.5977042,52.7408287%2022.7617413,54.9048659%2025.4312165,54.9048659%20Z%20M4.83351235,43.462539%20C7.50298751,43.462539%209.6670247,41.2985018%209.6670247,38.6290267%20C9.6670247,35.9595515%207.50298751,33.7955143%204.83351235,33.7955143%20C2.16403719,33.7955143%200,35.9595515%200,38.6290267%20C0,41.2985018%202.16403719,43.462539%204.83351235,43.462539%20Z%20M25.4312165,8.37808808%20C27.7447616,8.37808808%2029.6202605,6.50258918%2029.6202605,4.18904404%20C29.6202605,1.8754989%2027.7447616,0%2025.4312165,0%20C23.1176714,0%2021.2421725,1.8754989%2021.2421725,4.18904404%20C21.2421725,6.50258918%2023.1176714,8.37808808%2025.4312165,8.37808808%20Z%20M46.5950591,43.3044363%20C48.9086042,43.3044363%2050.7841031,41.4289374%2050.7841031,39.1153922%20C50.7841031,36.8018471%2048.9086042,34.9263482%2046.5950591,34.9263482%20C44.2815139,34.9263482%2042.406015,36.8018471%2042.406015,39.1153922%20C42.406015,41.4289374%2044.2815139,43.3044363%2046.5950591,43.3044363%20Z%20M4.83351235,18.3420872%20C7.14705749,18.3420872%209.02255639,16.4665883%209.02255639,14.1530432%20C9.02255639,11.8394981%207.14705749,9.96399915%204.83351235,9.96399915%20C2.51996721,9.96399915%200.644468314,11.8394981%200.644468314,14.1530432%20C0.644468314,16.4665883%202.51996721,18.3420872%204.83351235,18.3420872%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nu=d.defineComponent({name:"FXGenerateProcess",props:Eh,emits:["closed"],setup(e,t){const r=d.computed(()=>{const p={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return Kt(p,e.customClass)}),n=d.computed(()=>c0({},e.customStyle));function i(){var p,g;return t.slots.icon?t.slots.icon():d.createVNode("div",{class:["fx-generate-process--icon",(p=e.classNames)==null?void 0:p.icon],style:(g=e.styles)==null?void 0:g.icon},[e.icon?Eu(e.icon):d.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:av},null)])}function a(){var p,g;return e.description&&d.createVNode("p",{class:["fx-generate-process--description",(p=e.classNames)==null?void 0:p.description],style:(g=e.styles)==null?void 0:g.description},[e.description])}function s(){var p,g;return e.progress>0&&d.createVNode("div",{class:["fx-generate-process--progress-text",(p=e.classNames)==null?void 0:p["progress-text"]],style:(g=e.styles)==null?void 0:g["progress-text"]},[e.progress,d.createTextVNode("%")])}function c(){return d.createVNode("div",{class:"fx-generate-process--mask",onClick:p=>{p.stopPropagation()}},null)}function f(p=()=>{}){t.emit("closed",{callback:p})}return d.watch(()=>e.visible,p=>{p||f()}),t.expose({close:f}),()=>{var p,g;return d.createVNode(d.Fragment,null,[e.visible&&c(),e.visible&&d.createVNode("div",{class:r.value,style:n.value},[i(),!e.showProgress&&a(),e.showProgress&&d.createVNode("div",{class:["fx-generate-process--progress-bar",(p=e.classNames)==null?void 0:p["progress-bar"]],style:(g=e.styles)==null?void 0:g["progress-bar"]},[d.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&s()]),e.description&&e.progress>0&&d.createVNode("div",{class:"fx-generate-process--progress"},[a(),d.createTextVNode(" "),s()])])])}}});nu.install=e=>{e.component(nu.name,nu)};const Fh={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},iv=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],au=d.defineComponent({name:"FXChatHistory",props:Fh,emits:["itemClick"],setup(e,{emit:t}){const r=s=>{const c=new Date(s),f=new Date;return c.getDate()===f.getDate()&&c.getMonth()===f.getMonth()&&c.getFullYear()===f.getFullYear()},n=s=>{const c=new Date(s),f=new Date;return f.setDate(f.getDate()-7),c>=f&&!r(s)},i=d.computed(()=>{var f;const s={today:[],week:[],older:[]};(f=e.items)==null||f.forEach(p=>{r(p.timestamp)?s.today.push(p):n(p.timestamp)?s.week.push(p):s.older.push(p)});const c=(p,g)=>g.timestamp-p.timestamp;return s.today.sort(c).length||s.week.sort(c).length||s.older.sort(c).length?{today:s.today.sort(c),week:s.week.sort(c),older:s.older.sort(c)}:null}),a=(s,c)=>c.length>0&&d.createVNode("div",{class:"f-chat-history-section"},[d.createVNode("span",{class:"f-chat-history-section-header"},[s]),d.createVNode("div",{class:"d-flex flex-column"},[c.map(f=>d.createVNode("div",{key:f.id,class:"f-chat-history-item",onClick:()=>t("itemClick",f)},[d.createVNode("span",{class:"f-chat-history-item-title"},[f.title])]))])]);return()=>d.createVNode("div",{class:"f-chat-history-manager"},[d.createVNode("div",{class:"f-chat-history-manager-scroll"},[i.value&&iv.map(s=>a(s.label,i.value[s.key]))])])}});au.install=e=>{e.component(au.name,au)};const Th={items:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},vertical:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},gap:{type:[String,Number],default:12},fadeIn:{type:Boolean,default:!1},fadeInLeft:{type:Boolean,default:!1},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var Bh=(e=>(e.standardFeatureCard="standard-feature-card",e.primaryFeatureCard="primary-feature-card",e.compactFeatureCard="compact-feature-card",e.standardQuestionItem="standard-question-item",e.functionEntryItem="function-entry-item",e.defaultTextItem="default-text-item",e.hasNestEntryItem="has-nest-entry-item",e.likeButtonEntryItem="like-button-entry-item",e.none="",e))(Bh||{});const Mh={id:{type:[String,Number],default:""},icon:{type:[String,Object],default:""},label:{type:[String,Object],default:""},description:{type:[String,Object],default:""},badge:{type:[String,Object],default:""},disabled:{type:Boolean,default:!1},children:{type:Array,default:()=>[]},styles:{type:Object},classNames:{type:Object},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:Bh.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Yo=d.defineComponent({name:"FPrompt",props:Mh,setup(e){const t=d.computed(()=>!e.id&&e.children&&e.children.length>0),r=d.computed(()=>{var w;let m={"fx-prompt--item-wrapper":!0,"fx-prompt--item-disabled":e.disabled,"fx-prompt--item-has-nest":e.id&&e.children&&e.children.length>0};return m=Kt(m,(w=e.classNames)==null?void 0:w.item),Kt(m,e.customClass)}),n=d.computed(()=>{let m={"fx-prompt--item":!0};return m[`fx-prompt--${e.showType||"none"}`]=!0,m}),i=d.computed(()=>{var w;const m=c0({},(w=e.styles)==null?void 0:w.item);return c0(m,e.customStyle)}),a=()=>{var m,w;return e.icon?d.createVNode("div",{class:["fx-prompt--item-icon",(m=e.classNames)==null?void 0:m.icon],style:(w=e.styles)==null?void 0:w.icon},[Eu(e.icon)]):null},s=()=>{var m,w;return e.label?d.createVNode("h6",{class:["fx-prompt--item-label",(m=e.classNames)==null?void 0:m.label],style:(w=e.styles)==null?void 0:w.label},[pi(e.label)]):null};function c(){var w;const m={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(m["badge-default"]=!0),Kt(m,(w=e.classNames)==null?void 0:w.badge)}const f=()=>{var m;return e.badge?d.createVNode("span",{class:c(),style:(m=e.styles)==null?void 0:m.badge},[pi(e.badge)]):null},p=()=>{var m,w;return e.description?d.createVNode("p",{class:["fx-prompt--item-description",(m=e.classNames)==null?void 0:m.description],style:(w=e.styles)==null?void 0:w.description},[pi(e.description)]):null},g=()=>{var m,w,k,C;return!e.children||e.children.length===0?null:d.createVNode(Ja,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(m=e.classNames)==null?void 0:m.subItems,customStyle:(w=e.styles)==null?void 0:w.subItems,styles:{item:((k=e.styles)==null?void 0:k.subItem)??{}},classNames:{item:((C=e.classNames)==null?void 0:C.subItem)??""}},null)};return()=>{var m,w;return d.createVNode("div",{class:r.value,style:i.value,onClick:e.onClick},[t.value?g():d.createVNode("div",{class:n.value},[a(),f(),d.createVNode("div",{class:["fx-prompt--item-content",(m=e.classNames)==null?void 0:m.itemContent],style:(w=e.styles)==null?void 0:w.itemContent},[s(),p(),g()])])])}}}),Ja=d.defineComponent({name:"FXPrompts",props:Th,emits:["item-click"],setup(e,t){const r=d.computed(()=>{var g;let p={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return p=Kt(p,e.customClass),p=Kt(p,(g=e.classNames)==null?void 0:g.root),p});function n(p=null){var m;let g={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return g=Kt(g,(m=e.classNames)==null?void 0:m.items),g=Kt(g,p==null?void 0:p.customClass),g}function i(p=null){var m;let g={};return(e.gap||e.gap===0)&&(g.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),g=c0(g,(m=e.styles)==null?void 0:m.items),g=c0(g,p==null?void 0:p.customStyle),g}const a=(p,g)=>{g.disabled||g.children&&g.children.length>0||t.emit("item-click",p,g)},s=p=>{var g,m;return p!=null&&p.title?d.createVNode("h5",{class:["fx-prompts--title",(g=e.classNames)==null?void 0:g.title],style:(m=e.styles)==null?void 0:m.title},[pi(p==null?void 0:p.title)]):null};function c(p){return!p.items||p.items.length===0?null:d.createVNode("div",{class:n(p),style:i(p)},[p.items.map((g,m)=>d.createVNode(Yo,{key:g.id||`key_${m}`,id:g.id,icon:g.icon,label:g.label,description:g.description,disabled:g.disabled,children:g.children,styles:g.styles||e.styles,classNames:g.classNames||e.classNames,showType:g.showType,customClass:g.customClass,customStyle:g.customStyle,gap:g.gap,badge:g.badge,onClick:w=>a(w,g)},null))])}function f(){return t.slots.footer?t.slots.footer():null}return()=>{var p;return d.createVNode("div",{class:r.value,style:(p=e.styles)==null?void 0:p.root},[t.slots.title&&t.slots.title(),s(e),t.slots.default&&t.slots.default(),c(e),f()])}}});Ja.install=e=>{e.component(Ja.name,Ja),e.component(Yo.name,Yo)};const Nh={items:{type:Array,default:()=>[]},height:{type:Number,default:200},title:{type:[String,Object],default:"推荐操作"},prompt:{type:[String,Object],default:"输入@获取推荐操作"},promptChar:{type:String,default:"@"},promptAgentName:{type:String,default:"AI助理"}},iu=d.defineComponent({name:"FXSuggestion",props:Nh,setup(e,t){const r=d.ref(null),n=d.ref(!1),i=d.ref(!1),a=d.ref({top:0,left:0,height:0}),s=d.ref(-1),c=d.ref(""),f=d.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),p=d.computed(()=>{var T;return(((T=e.items)==null?void 0:T.length)??0)===0}),g=()=>{var pe;if(!r.value||p.value)return;if((((pe=r.value.textContent)==null?void 0:pe.trim())||"")===""){r.value.textContent="",r.value.innerHTML="",B();return}const S=window.getSelection();if(!S||S.rangeCount===0)return;const F=S.getRangeAt(0),z=F.cloneRange();z.selectNodeContents(r.value),z.setEnd(F.endContainer,F.endOffset);const R=z.toString(),$=R.lastIndexOf(e.promptChar);if(c.value=r.value.textContent||"",$!==-1&&R.substring($+1).trim()===""&&(r.value.textContent=R.replace(/@$/,`@${e.promptAgentName} `),c.value=r.value.textContent,n.value=!0,F.selectNodeContents(r.value),F.collapse(!1),S.removeAllRanges(),S.addRange(F)),n.value===!1){i.value=!1,s.value=-1;return}if((r.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const he=document.createRange();he.setStart(r.value,0),he.setEnd(F.endContainer,F.endOffset);const{top:ce,right:be}=he.getBoundingClientRect(),ae=m();a.value={top:ce-ae-5,left:be+5,height:ae},s.value===-1&&(s.value=0),i.value=!0}else i.value=!1,s.value=-1},m=()=>{const S=e.items.length*38-6;return Math.min(S+28+20,e.height)},w=T=>{var R;if(!r.value)return;const S=window.getSelection();if(!S||S.rangeCount===0)return;const F=((R=r.value.textContent)==null?void 0:R.replace(/\s*$/,""))||"";r.value.textContent=`${F} ${T.label}`;const z=S.getRangeAt(0);z.selectNodeContents(r.value),z.collapse(!1),S.removeAllRanges(),S.addRange(z),B()},k=async T=>{if(!i.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(T.key)&&T.preventDefault(),T.key){case"ArrowDown":s.value++,s.value>=e.items.length&&(s.value=0);break;case"ArrowUp":s.value--,s.value<0&&(s.value=e.items.length-1);break;case"Enter":s.value!==-1&&w(e.items[s.value]);break;case"Escape":B();break}await d.nextTick();const S=s.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",F=document.querySelector(S);F==null||F.scrollIntoView({block:"nearest",behavior:"smooth"})},C=T=>{r.value&&!r.value.contains(T.target)&&B()},B=()=>{n.value=!1,i.value=!1,s.value=-1};d.onMounted(()=>{document.addEventListener("click",C)}),d.onUnmounted(()=>{document.removeEventListener("click",C)});const _=T=>{const S=T.iconUrl||"",F=T.icon||"fx-icon fx-icon-sender_task";return d.createVNode(d.Fragment,null,[S?d.createVNode("img",{alt:"suggestion item icon",src:S},null):d.createVNode("i",{class:F},null),d.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[T.label])])};return()=>{var T;return d.createVNode("div",{class:"f-chat-suggestion-container"},[d.createVNode("div",{ref:r,class:"f-chat-suggestion-input",contenteditable:"true",onInput:g,onKeyup:g,onKeydown:k,"data-placeholder":f.value},null),i.value&&d.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${a.value.top}px`,left:`${a.value.left}px`,height:`${a.value.height}px`}},[d.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),d.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(T=e.items)==null?void 0:T.map((S,F)=>d.createVNode("div",{key:F,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":F===s.value}],onClick:()=>w(S),onMouseenter:()=>s.value===F},[_(S)]))])])])}}});iu.install=e=>{e.component(iu.name,iu)};const _h={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},uu=d.defineComponent({name:"Todo",props:_h,setup(e){const t=d.ref(!0),r=d.computed(()=>{var i;return(i=e.items)==null?void 0:i.length});function n(){t.value=!t.value}return()=>d.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[d.createVNode("div",{class:"f-chat-todo-message"},[e.message]),d.createVNode("div",{class:"f-chat-todo-list"},[d.createVNode("div",{class:"f-chat-todo-header",onClick:n,role:"button",tabindex:0,onKeydown:i=>i.key==="Enter"&&n()},[d.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[d.createVNode("span",{class:"f-chat-todo-header-icon"},[d.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),d.createVNode("span",{class:"f-chat-todo-header-expand"},[d.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),d.createVNode("span",{class:"f-chat-todo-header-label"},[d.createTextVNode("待办任务")]),d.createVNode("span",{class:"f-chat-todo-header-count"},[r.value])]),t.value&&d.createVNode("div",{class:"f-chat-todo-content"},[d.createVNode(Hi,{items:e.items},null)])])])}});uu.install=e=>{e.component(uu.name,uu),e.component(Hi.name,Hi),e.component(No.name,No),e.directive("overflow-tooltip",q1)};function ei(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const ou=d.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=d.computed(()=>{const m=e.content.toolCalls;return!m||m.length===0?!0:m.every(ei)}),{getToolIconClass:r}=Ls(),n=d.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),i=d.ref(!t.value),a=()=>{i.value=!i.value};d.watch(t,m=>{m&&(i.value=!1)});const s=m=>{ei(m)&&(m._expanded=!m._expanded)},c=m=>{const w=ei(m),k=m.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":w&&!k,"is-error":k,"is-run":!w&&!k}},f=m=>{const w=ei(m);return m.success===!1?"执行完成":w?"执行成功":"调用中"},p=m=>{const w=ei(m);return m.success===!1?"Error":w?"Done":"Working"},g=m=>m.toolDescription?m.toolDescription:m.command?`{ command: ${m.command} }`:m.toolName??"tool";return()=>d.createVNode("div",{class:"f-chat-tool-use-batch"},[d.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:a},[d.createVNode("span",{class:"f-chat-tool-use-batch-title"},[n.value]),d.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:i.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),i.value&&d.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(m=>{const w=ei(m),k=m.success===!1,C=w||k,B=!!m._expanded;return d.createVNode("div",{class:c(m)},[d.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>s(m)},[d.createVNode("i",{class:"fx-icon fx-icon-"+r(m.toolName)+" tool-icon"},null),d.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[g(m)]),d.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[d.createVNode(sa,{status:p(m),variant:"tool-use"},null),d.createVNode("span",null,[f(m)])]),C&&d.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:B?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),B&&C&&d.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[m.errorMessage||m.result])])})])])}});ou.install=e=>{e.component(ou.name,ou)};const zh={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},su=d.defineComponent({name:"FXWelcome",props:zh,emits:[],setup(e,t){const r=d.computed(()=>{const s={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(s["fx-welcome--no-description"]=!0),Kt(s,e.customClass)}),n=d.computed(()=>c0({},e.customStyle));function i(){var s,c;return t.slots.icon?t.slots.icon():e.icon?d.createVNode("div",{class:["fx-welcome--icon",(s=e.classNames)==null?void 0:s.icon],style:(c=e.styles)==null?void 0:c.icon},[Eu(e.icon)]):null}function a(){var s,c,f,p,g,m;return t.slots.content?d.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&d.createVNode("div",{class:["fx-welcome--content",(s=e.classNames)==null?void 0:s.content],style:(c=e.styles)==null?void 0:c.content},[e.title&&d.createVNode("h4",{class:["fx-welcome--title",(f=e.classNames)==null?void 0:f.title],style:(p=e.styles)==null?void 0:p.title},[e.title]),e.description&&d.createVNode("p",{class:["fx-welcome--description",(g=e.classNames)==null?void 0:g.description],style:(m=e.styles)==null?void 0:m.description},[e.description])])}return()=>d.createVNode("div",{class:r.value,style:n.value},[i(),a()])}});su.install=e=>{e.component(su.name,su)};const Ih={content:{type:Object,required:!0},onOpen:{type:Function}},uv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHHUlEQVRYCV2XSY8VVRTHT9UbgAbpZpSmaRNMxIiGqZVEE1csXBoNboyJ23ahfgI/gQuXdiRx6UY2utKNEUJjQLrBEEwUmQcBBZuphzdU+fufc+tVw61Xde894/+ce+6tepml9uKhpYMbVpWTuWUTpZUjQc7oSnvUMZvvVZJO8om4ZjzLUmK2bqVZO4g+r3hLfbMHi5plc1lZztBPnftkxeGkbfbCocUvW5lNrl+ZYQdLaurCv3UKs7mlNIHuo9RXsqJtHuKZwFRmxH+4ZLbYq3mS5Z76/dOVH2WKvCjLb1e3zHQPHEszIZDNfxY0AyAT9QNHSaoJaf0KV4qHApAcBu8+NisqwBUdO3mevZcT8aRE27mEaamLCdJShEaGknM4QkQLIJqbrWgsUwy2M3osnYtDS2qDQVlkkwDIJjKYrUbSSp0bDy96ugPJeYbUsyyRjbDXwpK31HkkjDusv5rsPa1PPUzkWBlpKX+VosKleS1Aq6IcOAgmWUkQkaFwo/jcRpUJJvy6/WR7kDU37/oEMNLUtC30lV64dilhKVg8sdo5DxeLQlX0mqs1PbQYV8Qq3Uu90Bc3xJQJKYZ+U327kdREdyDuWTpJSfzMmoDo9pNBtxFG2hSvU0WTjowUhXVZfzmVyQoGBe9zZU3UZo5RGXaypBEYbhf24SvaEj617/7s2/UH1AF8AnLi2zsatnNTwwvrxv3CfryoonAVr43NQ2bv7GxaL9XAVyd7NqedpKVzN3gEQ9NT63pQPd2lPUDwrecbNsK5oHZ3vrBvzvasJbTaT4D8eH/TxoeZ0249KuyH84vExCWriOwfy+yDPb7C9t98aZ//zGkmvtTpXZNxrvRHktTDJJBOr7AT1+ujb9dmEobjFtpav7E15cC5dLasyW3rMwGs7PdN9+4tAU786Su9VEsR0OA5AKB1KQO5ouuQ56MoVW3Xs9osIGNdm1lhb4zXxiuZfTgs4Eu/pN896pE5e/qibAUddjT5ZMRhVM1FEDdj7wLgcjcYPIdX5rZ9GK6ywAHw+rbaeCU0sbVBlqIOtpCh0bU1yGMXOp45mfcdIDcOREuBjjAEDp4g61I4tx4WduleqiD4SmlZ9NnvAHgu1vbOoz4vGQzQ9o5BA0Ch9C+L/o87Pfv3Md7k3CXlI40JKGAO0s82S4Ake/yqCieajGoZdmzMbf1QqJ240rHZ6yGzcXVu4yMqw9J2bw2A0jx2kUwqWhWnOr986I9YgbQeEuz1ZZwbUEcu1XWwZ1QRlvbqWJ3+GQCeWgZyAl7J8u1dDuACAOScZKrO/ABTLgSKGwC6YqIt5Gc3DI1PXusBSJK8atc0bHSN2Wvb4nwQ7QzRz16rs7RvrGV8U9j4ugC50C3tFDbcg0DoR68dJefymwsRP5+oDNmBPGGBdr6b2ZmbdRYmWOc9Kbq/H/TZ/yV1Utg9zgm1feMt27etTv+vV7opo7XNquZcAb9UVjhX3wWxg0lIxTl+uY7w/b1DNpROLqVeQHVVWRhZldu7u/ksSu0Y6dfBIzeKVnc0tETnTjUgchYFqFRVRQntiIoote0b6uh+IzNZpnrJbOZaLbNrrF2J2zS6pVLuzlSegktTlDQth2dASETUue08pPKcfU1/7nZh99NWc630OI1TmROIGVL9dLt5v28X7xbhEpnMqw2n4RtH/HwbOkHVqTddSpYy4Kigo3ziKQe3fP0jAmXgBi+qOw/rM0NgpnX4EF8u57KmMlnmXDTdsaHhqPgcFUjE0DJ4wlCavvRkhLMpeqm7AxRmrz4pc+yvqP5Iu1ty+/WRH/4Gi9qJ49oRxfkkRJHin8537aVN8yknZkdVXIqM24mA/v7skt3m9PQlRPMXP0NYRkWttcSWotWu8wD9yfjNrxcpfT67F7QFGegnJQlyFyoMjuC1rYLXcbWmGMvBrtczsnoH9Fk/vbZDGX6G80YTG7hLYONLCNtq0qPzLyJN9KXjRMlzDT65VMU40odIW2PdHgtPjDtYKN0Sh7p8UWWau3IufxLk58lQclPzJdCHI6aCJDlFL0nGWmMZ0orm+nil8T5yUHKifVzC71JleUObCl1fPRWfLtfwPsemA5ENLo35GsvmOl3+isk/tytorObRIshC9gs49J5SMIXhJEYX7xCVpYxINkkQQGw3mYc38KFKy+aajzvlDP/dDohRmYtsYACEypybwuC8/z2rnBMDNEXBHwzeU8qaeCkLFUTqSvpuQw4qP7KbZTPNhW42hZEDtQAcF4peS6qzQEgW2CmSEyjRfUDnDlLE4g3cMXaenjDE03yQhaycyuNfag6IYIivFoppDFMOdWvt3HmScbDUgLab7louOUOuXvfQh6RsTZ3+bMVhByTCy18sHWStJim6Cb7t+LSgCRRNY0c/mEfqB5HIeSWjkUcjAjetskX9zFFPM3nWxHnT/57/Dzj0fqfCZcLZAAAAAElFTkSuQmCC",ov="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHeklEQVRYCV1XW2hcVRTd985MZjKxNaVa6cNqnwbaftSIiuiPilh8NC2tWh+lXyFFbMEKgvgABQUfIGoxWqGioFLjR0GQlqooGhptjNU+9EPaarT2IUySZt73Xtfa+5w7o3dyc885+5y91l57nzN3AnHXjoOPbJAgGEhEegNJugUNCURqzbrUk5ok6GcklK6OLrTRwc2PxPhLYkniCAswEqPtbXiWGxekEdUkxniQSCmReDSO4sGP+vYPERoQIjtGtr2JRQOB9tQ3Rh0DPMvNCnAi6cwUJROEBk4QvQluoCkBR6QR1UFgqkVYiWKufmRwT9+BrYFFLh/Dl7sSCAEN0PeEIgA044bkM3mNlkYFR9R8sq8qEIB9AMRRU6brUxiPNHol5whwfsK2yMYsZaeRYFzrwVM6GMuEoYRBBxxRZkgOQubEOeJCOFQHrl1uTEsEcKpDGwFjZ0sVC5KBLJb26kJkw0iADDPjCBHQR8n1BgRnKQknqToHIZCsRVWJoJgBeQJGUpXD3ITkEunN4n93GjXm+LaVAxGJadIyCq5ScOaRkVFIgpMQKoWSVxtlDBkZGHW+X6trdK6u6876PPsU0F+rzdwagDkkCPueEOGtr+BwPF2fNGKOnE8BSbZI2BrWTbaOSs2FHQwUFwzUni0YdRGj54dPFxX7nGVzGLXZKoi8qYWJPqNsA9X6cX3vm4Fka0ogp9ITnCBRxEi53smNZ7sz2ii1H0tirEHO682qI0pCppbVSosMx9vVRBHGUsE+78wWzaGqwJRiEe55nfPkmjnX6SICY5J8PX5AzpfPKohGipytWbROsmGWZp0zdnpEfj47iq4D5w6iAvyoShYUVgQ4YiLRVAQZBdK8AzyKIvlzelw2dW+WK2Yuome9rpy5WF75/llETZKR3L74bll/1f3eLGenT8ueI7uVIGX2kht4q88gQxYcG9VmGYBNnUyGXrqo2ZBdP+3E1qqlAMtm9cjNl6/Rw+ay4nxZu3xTaouw9tXh5+wQgl+Cp4cUI9fbpxYEfJW2y8IcKXMewHBwhhEdfz8FYWPd8vtkftdC6V+93aR31qFj78nRc2P/CcQK2MhYDaCt5BIJWZ0EzId5rWztY4ys/RaERvLlqX3y45lDKYlcJidP3Pi8LLy4lZpfzx+VDw7vgjIOQKNFmjTvLVAGS5/ECgkeJgG+6Zh/xxILtJpgCzDGYuS8d8bekMnaREqikC2kbW7Bl755CqSbEoSabdvRDIRE6Bt+VFn4sjawYZECvmQ8S/Y9EQPGInyPkvFktSS7Dr2WgrY33v1hp/w9OY61zjlJo4ipJH16EnySBGtMFcjzENIgwRIfLgiwgOAKrG0qgWrF3+Ez3+kWbAevN2sy9teIFN1W1mCcigyGvnxQJOjJkBh2bgagzAmJsvgYgZfMnvSFI0od9fVskkuKc9rxpSObl4FrH8O7QgZf2QyIcy16KzZ3BpCI+jaVVQGViOCMmEbIZiTIGo5oY8GgvWTWUlnbc6+O/f/f1fOvl1uX3ikdIMBvU42camqxEdj8+XEM6BwtQisIG9A0YDKJ8YiNQYj2HKLr730U7waZFPuXc0fSNhsPrt4qc7sW4FTt1DXMsx5Wqir90RdTwDYCxjiK0Bvw9G08qbgu0OgjuWfFFpk7Y0EKOD5xUp7et10OnvoqHctjVzx8w5OSxSefMRIE0mDgp1UHLEDe3IZkQpH5guBYKUP0yZ57evmsFXLLojtSIJ52r3/7Aux1eevgi7o7vHHJ7B5Zv2oLDqdc6/0R872SFqRhtilgcnh5aCAJFAW2aEGl54uKv/Ye+1B+++e4vjdM1Ery9sjL3qTPvpUPybLZK/UlNuGhxBTwo8q2lLYiZJQuN5zAYgO8Rs7FD6zql9nFS1OAP0onZM/h3Qoe4HzAmSPDJ76Q4ZOfp3NYJ9tuekby2JYF1gP9Akefrqb8jgv6P9tIRDUaAccwSvANWZOpyoQrSCuoAo7sPLYd1eFrCXeN5pkAmmcd1fcL3boYLVcnpR5XsYS+tbjUJzqsAZOG4HYrG2VcqV/AcvQ5B855LNci/EaIcdziYGKfKoAHLvpBm/N5saboE6CdObxrtOF4NWjHNvTA/mkHSLU5bUB0CBBGg7dzfdJG7fXEZBSwaTpABFMwh/WDC6A6B/bOnP2i8niMXmsAVEu6AxxbRtHAz7Ea3pL0Ql8dgoeXL4ICjUYFbkmOMXOOkSMRlR6RS2BBMWK+LeWwM/wpS3CsKVGBUVBRqQgQoF3B7zl1C1IwENkiJKDesf7mM5uzY1yjZ0qUNJ7wpWeAC66AoiRRrmNqiB1i+SCBLToUDPIeRw2VR5VROWF3zuAVTi2/F/DVzHGO8dYi1G1nwPY+YQQJyruYnQHfNoayHgx337V3CO4H6YhvtTW+2TICd3MRZfMONDrY2G9ilzSQKhajRqSOPSB9WFvzToLo82ceT0w4GBx+vDKkiqAnmz+5bcNUtTSQxM1enIDduih1QAUYNZWCU8SaAqJ3UcdMyI9KgTLMkNrcXKpC0owatVGCj1HUyeCn237Xn+f/Avavy/P8wtVMAAAAAElFTkSuQmCC",sv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGCklEQVRYCYVXPY8cRRCtnt29s/EhW0KAEAkxmXUBIkBkRERwdoqFHNiW/AMwPwCJECTYEDKEnYJk4+ASIwQ6WSIjwJKNQBjO8t6Xb3dvZ5r3XlXPjIzX7rub7qmuqvfqo3v3ksXIH53fsJQvmOV1y3aqyJ8055x74sZyAys8EqS+hX2pcC9b3t6xPD/i/gSPrWxpvPrNjWt0QhvLV85/CU2AP3sQXEDmwEIiXkuKLw4sb5DnBgz/nWju9NL42Lc3LyZFbs3VZ0O7RusATrnmj0ceURMMg3JfYEVC+4dme4ctUe5Xls4MlfbQdYvHnnQ4m4N9KKVkmYiDyqzCX+C6VYArG65PcI3jq5Z3D7QsQYDEhSE8rLvGkudRbfZwDzwZSZAo69WR2ck1EAlbYLU6EAmcMrIk8dHAjP60R3+2XmHvqQ1XlBuC8ifA4Q+ZObL8cBcLuGGz4afoQ63LGl+wn4aM131I0fIpSJ42oNws6KmtMyEEVRzNa8vTmVUrgyBHfwhbme+DwY6s3YF7gY+lBErtqM9RIpQ8hCUbNkePDFHjICp96DBJjNgnMKoSEiFmkvHxRAKljllHDdGfPWeDd8+0RssWeTbFmf/b6p82rdn8TuDMVhKZx7LBkoBhaR/5FDAYo10QMY5O3VgNxoXQMuAiT6vHrHr1NRu9f85GF68QGqWAPQJp2CN1NKCOqhP6XwZ0aZAAvCpbWLAB0b/taHYnciwBw1AoONUnnsdSibfB66dt8cbb1vx40xKzTjHLESWhLUsmAoxQ+2DmelQEa8gpqXjme2Pn40uWD3CrjnAMkV8RxX56bs1OfHDZVk6/Ke3hW+/Y9NYPOsIJfhrcJ06A0bvD1rNH3kPhkjwGoLQCoP7ApZJWcIeJrQensu3v2v7Xn7Wa1YuvWLPAKSEYH0cLTA7u5UYPtHWRGSJGOK5EdNaMNaSH/tA1ipgSSoM/MEEBRCjv7VhzsOfKo5Wwhd99NGiEzblk2nuATUFmBBJWmXHBoBFd1hEgGOOuAMwf/ja4L3hbVmtrVqEXOOr7f8q0gY90iM+CdngW6HjoeHp2QCwqu5YdHKxbWy38pCR8KPiJAYfB0KqXXrbjGx+2qvOtW/CJXto9tLRoeA20/tyvLiIHLxdPP1rGKVbBr3g++elXZbl0rrfv2+x7fOTvPrJqhtuU4KHdD2qo1DPKsqvLhykqvcAz1G4uBexvzH/9xfa++MTyPw+swtnnFayysczhqs1Ax4ZpB1TR6Hnswy/u/W6HiEwnAGWKFpBdgzov7t2x+u5ddPxR15xQA7TK1XMrG2SgE1GJgyTaDOAY0VkZ9YNtm25e14VT0XGDCNnEPG6oM4n51VuuWQBTCJ+8V9Q1ESTXOAVINSPhoMPY1CvXIoAalkGwR1O9hTvZUVChy0icgH5SQEbY1ORgy/pwHJ4C+HNWWGBQsdGxxCLI9DhRRTo8+z4IFsThvUp4Q0CciOZazChe9FUqdMN6qGMUtHQSxIMGodEu/J0OSdhnX+s6jjRTKzETEWubXVhQ1hGCInwPWRfX7ZWCXiR3Im5EIQbUieWXkIv4ZN0LZ+nrhZBcADxwhNeZoQek6OmXPIBdB67guf7rD5vf/lmixZ3fPAr2Db+UoocIXgaBCihTTncdtaIIDd+wNL981lUk6BQadXe2xXRuNb731XErVgBNAGfDMQuBIIziVJBsLrgrMp/df5FxH1dxVxdFQSLBjjPTqT+ACZDvWFOmjpfPSLFkFEiIp8/+HutuW/b0OSmMSsNo1tEEKCJlivmFpCIhrKt+zltQEnIQzvKh1y7dkjMzpObBTfBxl7dEVMa8fl2BEYo5P8kierJl1RU/HQDAQQsIEZ0ErQuQXIe4aIiMpS1WdOyKYYLInSkB4mZzNnINDkSNElBXOP7AmpEX+5IFN4GcWQ0dylLK42r4+dVriHBs0XSQx5CKrwXooCFwYL3AMeYCGiJXgwvulqwK3bWZxvELN25fI4rG7NJ7G/jywf+Q13Ou9d+SosHnQDPZb69rAtFIgHSmX1JwmfaYBRdQypX0sTfB2xayKHDK/wNolX2UI+Wo7QAAAABJRU5ErkJggg==",Oh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGLUlEQVRYCW1XTY9UVRCt19M9MwyiAxojRI1REImJRAfQhcSVGmJINMG9G5LRH+DOxJ0JP0BnpYlbMCYqGBciJmqIZiAsSARUUDQoYGjmo2emP97znFNVr3vUm+n76ladqjpV9973oLAYcyf6hwZlOVtVNmNWTVcQDH9lPLnGcr1Oa9cTRoD8KEoerstS3m1g5pe71dw7h6eP0b3g9O7x7ntwnKUsR4AzoQIymGzUU/DAFDlS53Il0qlTnABSJpHOGnzKau7IG1teL7zywVE6OJjoQnIGB1gEmEk4JQ0yAqWvP9PPn8DV/obkpQ1K4pClarzaZNs9OuEcnlyVY1UBzDEk586upUF/9ZJCFkM5Wi9df1B58iRkg9kmwDNKFoFSromMZmBzMPRYR4w6D+BEA5d4PJHTVteEkr/jihkQKKcVFEwC7wePieg10pG0J5BrVsuhp+SR7ZO/GStfQXKC3IczcDjszdpZQQiihlgXSu5BqKXhxDWDSRHY/9Ex/1qvtH5fIT00fWpsZc0S7KTjlEMALGSIR9hFbAQ7gD8H9byyVVVgnyskxY+x0y+6kddaPpianS69PcmGcQ9UHzw3iQcdkhDFPFxsrcf2ZNhSkTEQ4chO1nLk8u0FgayITFOJ7amvTlbAUlLO5PLRNPLCUtqiPkfJ3rsjY52Hrs2sHuFlzRZxlQmFcXOty+SRX77ug7nGupBFEkQ5zJKbXGTlmXy8ZfbwVp3PCJbtrez6rYHduxm84fjz731bXoGAxe5HWtr728ulbb6jIUI5sWM9HMRzP63VuZI43wNiNMpy01RhLz09kf7rnp9+t2J7do7b1rvHbP5C1z76umP7do3by/un7OT8ij32YMtmdv7Xd7FT2rlLIMBo4kypwBmI0yklbdAvLFV2/PSq5AP7JmxsrLCvzq4Zg1y93reb7YG9dmCjPbmjZafPN+z5PZN2a3FgX55ZtW1bxuzCr13b8UDL9u6atD9u9O3UmRXr4lZkh1UscnGNLXAm2ps4uWs9s/NXBqL64l4QgHTxas/+XvDXX3uxtLOXevbUo+N2+OAmG28VdvTzRet2K7v8Z99+uVbZxHgBAmbtpdJ++JFfH4XD5KKvK2uocnSh0tF3q5PxL5c8wond4X4y1klUxXvO5Feu9ez85R46Bgv/COCPI3R8oaW/Y/xcNWpsbIWS00/ew0lBY8lte+i+pjWxNRzb7mnaXTg3HCLBp1Y+1cRCqyIC0BDBTB6OTKDfaBTaAKa+iQvywt4NuAGlXfitqy4cfHZK4enivu6stdjzGxHvi4hFIg2COTJ4rl0nkybZASV6/xOTdufGhrbh41PL2ord2yds+zZcz4g39GRsj18zDCNj6sIqOJR8cngy7pGvQ6n1lk0Ne+bxCfsL74MzF7t2Ewfzm3Orgrzy3EYrsBN52t1P80jMOEcKzWuIJEoUCrYlB/Wf4d4z6GIHOBhaOHSffNuxazd6/j2A8ovvO7pu9JvCK2CxY9iann14YsFuLQ08OWxej8fPPMVb7y9Iw9ZNTfo+8YPCl0SCRBLp64aIpH/3l/Bu4A0qS7+iDJbb4P6O80JhHLEzXvx7wFkNQXCKTnhyuqENwcAZx+cXFrWcJGjHj3aHZnL6pw7PkBm76Szp6AB3pByB5Ip1EsKTATTok2v5cwoTA6UOqnXdFMavLTrgrfWlV5nJGYryuqAef0hIoBoiaJJ1/3BAhxRXb1vkxJZx6/xjFExjG+EBMEP9K7nI0FZXTfL8ZXCW5qW4PgqAVqE4YYx2Qy8iad2mgOTGEXjpXB5JBMjwuolu+DipoT99kojLDnRdA1esTUZM6RX6s24jnWFXQ4gbxbJy+KkiCIpDaMh08k5QiT/4JibIt/EmtPkaSBKkpwkPRNJHRCpXpt3JMoHDk3ztzK2iDVONYWwO6fEoivkGPmhzDgybql3PXD5wykoVFEpWUXeHQairq/QYo8Xw4HGt6oEtkLtxZBb/SxWJCAaDQmmKKpJU2JTL80HjeOpEUBrows6Htg2C5HSwau6Dt+8/5kcWyjfn2oemWgP8D7kxMygH00QziLd25E3HKBiqHvIy3oTkJ10IddsVIBK73AZ0vrBCyenzD7OyHHaTkJSSAAAAAElFTkSuQmCC",lv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGkElEQVRYCZVXS2udRRh+Z+Y7zTFtk5iml7S1XpBW3HhJdVER0YUKikhtRNCFF5TYheLWjX/AlRuzcOnO/AXXIpiFG0URoUWq0KJpLb2eb8bned6ZcxLaCP1O5szMe33ey8z5Eqw+5czyKSt5Bdsli3vnRB6dB+k6lgV/2SVLsYJ1IE108pw23jf6plk6pWyEYOuhhNXwyPdrNBj4Vc689qXlQudm3QGoJS2t9GbX/8B6hOEgCpzROeexQ4EjHRTSsZ/IEXjjYV31ILuaHl3/MHjk/TdEaHEPxvTYkBzlq2Y3zrkzOWD0XNBJM+h7OmqOmyPOkmsgMvRDDaDYcoShFQqFMJRz2a4oIYbtFOgzQq40ykmLUNL0zoVkVJrmtM4OGNbgXCAzs0SdvBLxtUTDJd1dIyPD0+xC2HezKFa0QKXxqBmAtNEwsyFwVR9eW5kcOAWd53KSX4pANRfibjA7qgMEnXiEboB6oIYZ8R0A00iDeOi4OQM4lY00Aa3louaY5mup5zIXA1WQYndMJlHSMI1x8shCYhlEqWwH6ptJXb0Hqh6BKTuTyEGRXdqn7a6EnbCBVqiIZZBfAjJRFKw0a2V0ofJcxh1WueGDFhc/RtvcZ+HKT5bPfV5PEfjVXusDZQBgOjUYFkSmR7ItddUJJqWWWRj9gx2OpTLjdOmCF+//wkLnV4jNPm1xeK/1Py+jd27QEP5q9DLrPtBZ6MPKbChZ32JMPUd1rgzBCPulloV8zxzoO5+YOJcW9KaOmO1+EjtPdyvn5pm5B5+jatE4hqoNWpATp8EM+mWXDMpoPVa+ZpS3PgH3inULEJnUXmv6Aw3h07l2mDxiORKtRegArFu0MjyGXpweN1cDGP79zsqNP7cgKFd+Mbv2O474rLJD+5ujp++uaZChk1AJbhhQMq5jgCmocTr8KUpwl+WzV61c/FZZyrhUvD+GuNI/s7BwysKOQ1au/WblwtrYoXV7LfTXcLtfZujj0bErme7mvNWUWfBaUzxb3PeuhcT7ArIHTlu+hIjzZb+cEk4SLjLrL1r56ysWzUEBuHe727DBfrQNrvZ8E1Y8814CbPSppWjN5bTeytRRi7sel3N+xanDFuZfrWWAicE+2GuAGRBLWTPK7OkukCb6ASAkWwGo2SRMAUfejJUesUA5LbxB5pYnLryOfbIyWJA4v5Q90FgW+sjQLfhFVXZrf/HHjld76wdlwDveETnD1wSk6KePbnHOTZxaNNtzEg05lKPMIA68b/HY1xbnXxTNywobygiUiIo2cSpCGKg8AtDq3hQQNl4PMNCAac8r9HfbJy2chBxKhBH3v2Np/gVcKwNLix9Y2H3CecyCDhe/HEzARVMGe5WFSOfNMaPPPVFSFgqoV9z1mO9v852QmTL1gIWZpwD05S0S3eGPoI9jiw9tFf4EMxPVfEi4T9DUuoi8duRUMIicYOL880hV6+Mt9sebwf43bXDo9HjfFiENLR35pDomDHwULPGwN1CyHQhQkFgbDU5g6tNZmn2m2dt27maO43jyB+3WJ+18GC9ZL7kzOpSIl4L+GK5fxUI3YbCucebEtoZvdbU9pTv4tmVcYq2nVIoGBnHXDPAi4rHBrRdYJ9zRc89tb/UOOMxOd/A9aHhe+T6oNTMOmpqQDjWUCQji7k7TD92Bm/8XTeilsuMgfKC8uFvgRs656ASoOm73QRldsv7SDxaG90DQz8ikFblqg4aIna/tfJw+6dsql684T3XHEgBcBl0w+vUtvWixRkKI+rMU/egm5lE957xKUB798NChQnBL1OOzmcaoMhoM/nmKYoy4H/HyVyLWLi4A0MGbKH8YIKgLhYrsVl6faETPFZigwU+gRUWhN0kH4imEBYJinWkLkYHOtTsmSOjw5cfFuIU+3gnj9bMb6Po5Jlo/GrwsACJiUDoydtRtQIN0LjpYtERjmimLlcCTyHPODtcLBznIBkBRBU5rHORvENI6BciQIISYnqj3ZUaDCw1rvLspmoQoEgT4z1uCnA9Pd4IcR4QMdSjHwLCUHdpX6jETJIjrAFZWBZdMDAFhrZlGiFGZhqIG1jLMmUB0jjXzzabTnv9ZMnK3x5rTTguyZZq0kPNq5H+psA0QkgFCjwaT0FJwclVj0wSZ47bGTOBbmhNcOVYw7CsPSCo0A5/ds3+vSYb78uPxU31/cwUAlnLf490aDqqThppyPClthltlajyD54C9nNKvNggQvA3Q1lFOOD+/Rjv/AYfYvIrlGomFAAAAAElFTkSuQmCC",lu=d.defineComponent({name:"FChatAttachmentPreview",props:Ih,emits:[],setup(e){function t(c){switch(c.toLowerCase()){case"doc":case"docx":return uv;case"xlsx":case"xls":return ov;case"ppt":case"mobi":return sv;case"txt":return Oh;case"png":case"jpg":case"jpeg":case"gif":return lv;default:return Oh}}function r(c){return c.icon?c.icon:t(c.type||"")}function n(c){if(c===0)return"0 B";const f=1024,p=["B","KB","MB","GB"],g=Math.floor(Math.log(c)/Math.log(f));return parseFloat((c/Math.pow(f,g)).toFixed(2))+" "+p[g]}async function i(c){var f;(f=e.onOpen)==null||f.call(e,c)}async function a(c,f){c.stopPropagation(),c.preventDefault();const p=Ea(f);p&&await Su(p,f.name)}function s(c,f){const p=n(c.size||0),g=r(c),m=Ea(c);return d.createVNode("div",{key:f,class:"f-chat-attachment-preview-card"},[d.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[d.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>i(c),onKeydown:w=>w.key==="Enter"&&i(c)},[d.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[d.createVNode("img",{src:g,alt:""},null)]),d.createVNode("div",{class:"f-chat-attachment-preview-info"},[d.createVNode("div",{class:"f-chat-attachment-preview-name",title:c.name},[c.name]),d.createVNode("div",{class:"f-chat-attachment-preview-meta"},[p&&d.createVNode("span",null,[p])])])]),m?d.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:w=>a(w,c)},[d.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),d.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),d.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])])}return()=>{const c=e.content;if(!c)return null;const{message:f,attachments:p}=c;return d.createVNode("div",{class:"f-chat-attachment-preview"},[f&&d.createVNode("div",{class:"f-chat-attachment-preview-message"},[f]),d.createVNode("div",{class:"f-chat-attachment-preview-list"},[p.map((g,m)=>s(g,m))])])}}});lu.install=e=>{e.component(lu.name,lu)},Wa.install=e=>{e.component(Wa.name,Wa)},Ga.install=e=>{e.component(Ga.name,Ga)};const Lh={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},cu=d.defineComponent({name:"FXNav",props:Lh,emits:["nav","update:activeNavId"],setup(e,t){const r=d.ref(e.activeNavId),n=d.ref(e.navData);function i(g){if(n.value&&n.value.length){let m=n.value.find(w=>w[e.idField]===g&&w[e.disableField]!==!0);m||(m=n.value.find(w=>w[e.disableField]!==!0)),m&&r.value!==m.id&&(r.value=m.id,t.emit("nav",m))}}d.watch([()=>e.activeNavId,()=>e.navData],([g,m])=>{n.value=m,i(g)});const a=d.computed(()=>e.visible&&n.value.length>0);function s(g){g.disable||g.id===r.value||Promise.resolve().then(()=>{const m=e.navPicking;return m&&typeof m=="function"?m(g):!0}).then(m=>{let w=!0;typeof m=="object"?m.canContinue||(w=!1,m.message&&console.error({message:m.message,position:"top-center"})):w=m,w&&(r.value=g.id,t.emit("update:activeNavId",g.id),t.emit("nav",g))})}const c=d.computed(()=>{const g={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return Kt(g,e.customClass)}),f=d.computed(()=>c0({},e.customStyle));function p(g){n.value=g,i(r.value)}return t.expose({updateNavData:p}),()=>{var g;return a.value&&d.createVNode("div",{class:c.value,style:f.value},[(g=n.value)==null?void 0:g.map(m=>d.createVNode("div",{class:["farris-nav-item",{active:m[e.idField]===r.value},{disabled:m[e.disableField]}],onClick:()=>s(m)},[d.createVNode("div",{class:"farris-nav-item-link pt-3"},[d.createVNode("span",{class:"farris-nav-item-link-text"},[typeof m[e.displayField]=="function"?m[e.displayField]():m[e.displayField],m[e.valueField]&&d.createVNode("div",{class:"farris-nav-item-tag"},[m[e.valueField]<=e.maxNum&&d.createVNode("span",{class:"tag-text"},[m[e.valueField]]),m[e.valueField]>e.maxNum&&d.createVNode("span",{class:"tag-text"},[e.maxNum,d.createTextVNode("+")])])]),d.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});cu.install=e=>{e.component(cu.name,cu)};const Rh={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0},itemClass:{type:String,default:""},dropdownClass:{type:String,default:""}},Ph={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},enableHighlight:{type:Boolean,default:!0},itemClass:{type:String,default:""}},Zo=d.defineComponent({name:"FXSearchBoxContainer",props:Ph,emits:["confirmResult","searchedValue"],setup(e,t){const r=d.ref(e.data),n=d.ref(""),i=d.computed(()=>{if(!n.value)return r.value;const g=n.value.toLowerCase();return r.value.filter(m=>String(m[e.textField]??"").toLowerCase().includes(g))});function a(g){n.value=g}function s(g){t.emit("confirmResult",g[e.textField]),t.emit("searchedValue",[g])}function c(g,m){if(!m)return[g];const w=m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),k=new RegExp(`(${w})`,"gi");return g.split(k).map(B=>B.toLowerCase()===m.toLowerCase()?d.createVNode("span",{class:"search-box-highlight"},[B]):B)}function f(g){const m=String(g[e.textField]??"");return t.slots.default?t.slots.default({item:g,searchValue:n.value,highlight:c}):c(m,n.value)}const p=d.computed(()=>{const g={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(g.maxHeight=`${e.maxHeight}px`),g});return d.watch(()=>e.data,g=>{g!==r.value&&(r.value=g)}),t.expose({search:a}),()=>d.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:p.value},[e.loading&&d.createVNode("div",{class:"search-box-loading"},[d.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),d.createVNode("ul",{class:"search-box-list"},[i.value.map(g=>d.createVNode("li",{class:["search-box-item dropdown-item",e.itemClass],key:g[e.idField],onClick:()=>s(g)},[f(g)])),!e.loading&&i.value.length===0&&d.createVNode("li",{class:"search-box-empty"},[d.createTextVNode("无匹配结果")])])])}}),du=d.defineComponent({name:"FXSearchBox",props:Rh,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const r=d.ref(),n=d.ref(),i=d.ref(),a=d.ref(e.modelValue),s=d.ref(!1),c='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',f=d.computed(()=>e.loading?c:e.buttonContent);d.watch(a,z=>{var R;(R=i.value)==null||R.search(z),t.emit("update:modelValue",z)}),d.watch(()=>e.modelValue,z=>{a.value=z});function p(z){a.value=z,C()}function g(z){const R=a.value;t.emit("change",z,{oldValue:R,newValue:z})}function m(z){t.emit("selectedValue",z)}function w(){t.emit("clickButton",{})}async function k(){var z;s.value=!0,await d.nextTick(),(z=n.value)==null||z.show(r.value)}function C(){var z;(z=n.value)==null||z.hide(),s.value=!1}function B(){s.value?C():k()}function _(z){const R=z.target.value;a.value=R,g(R),e.showDropdown&&R&&k()}function T(){e.showDropdown&&a.value&&k()}function S(){a.value="",t.emit("update:modelValue",""),C()}t.expose({togglePopup:B,hidePopup:C,showPopup:k});const F=d.computed(()=>{const z=Kt({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof z=="string"?[z]:Array.isArray(z)?z:[]]});return()=>d.createVNode("div",{class:F.value},[d.createVNode("div",{class:"f-search-box-input-group",ref:r},[t.slots.prefix&&d.createVNode("span",{class:"f-search-box-prefix"},[t.slots.prefix()]),d.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:a.value,disabled:e.disable,onInput:_,onFocus:T},null),a.value&&!e.disable&&d.createVNode("span",{class:"f-search-box-clear",onClick:S},[d.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),t.slots.suffix?d.createVNode("span",{class:"f-search-box-suffix",onClick:w},[t.slots.suffix()]):f.value&&d.createVNode("span",{class:"f-search-box-button",onClick:w,innerHTML:f.value},null)]),e.showDropdown&&d.createVNode(fa,{ref:n,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost,class:"f-search-box--dropdown "+e.dropdownClass},{default:()=>[t.slots.dropdown?t.slots.dropdown({data:e.data,searchValue:a.value,loading:e.loading}):d.createVNode(Zo,{ref:i,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:p,onSearchedValue:z=>m(z),loading:e.loading,maxHeight:e.maxHeight,itemClass:e.itemClass},t.slots)]})])}});du.install=e=>{e.component(du.name,du),e.component(Zo.name,Zo)};const Xc={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function cv(e){const t=d.ref([...e.data]),r=d.ref([]),n=d.ref(""),i=d.computed(()=>{var w;const m=e.group;return m!=null&&m.enable&&((w=m.groupFields)!=null&&w.length)?a(t.value,m):t.value.map((k,C)=>({type:0,data:k,originalIndex:C}))});function a(m,w){const k=[],C=w.groupFields[0],B=new Map;m.forEach(T=>{const S=String(T[C]??"");B.has(S)||B.set(S,[]),B.get(S).push(T)});let _=0;return B.forEach((T,S)=>{k.push({type:1,data:{[C]:S},groupField:C,groupValue:S,originalIndex:_++}),T.forEach(F=>{k.push({type:0,data:F,groupField:C,groupValue:S,originalIndex:_++})})}),k}function s(m){t.value=[...m],r.value=[],n.value=""}function c(m){n.value=m;const w=t.value.find(k=>k[e.idField]===m);w&&!r.value.includes(w)&&(r.value=[w])}function f(){r.value=[],n.value=""}function p(m){const w=r.value.indexOf(m);w>=0?r.value.splice(w,1):r.value=[m],n.value=m[e.idField]}function g(m){return r.value.includes(m)}return{data:t,visualData:i,selectedItems:r,activeItemId:n,updateDataSource:s,activeRowById:c,clearSelection:f,toggleSelection:p,isSelected:g}}const dv=d.defineComponent({name:"FXListViewItem",props:{...Xc,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const r=d.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>d.createVNode("li",{class:[r.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):d.createVNode("span",null,[e.item[e.textField]])])}}),fv=d.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>d.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):d.createVNode("div",{class:"f-list-view-group-header"},[d.createVNode("i",{class:"fx-icon f-accordion-expand"},null),d.createVNode("span",null,[e.groupValue])])])}}),fu=d.defineComponent({name:"FXListView",props:Xc,emits:["clickItem"],setup(e,t){const{visualData:r,activeItemId:n,updateDataSource:i,activeRowById:a,clearSelection:s,toggleSelection:c,isSelected:f}=cv({data:e.data,idField:e.idField,group:e.group}),p=d.computed(()=>Kt({"f-list-view":!0},e.customClass));function g(m,w){c(m),t.emit("clickItem",m,w)}return t.expose({updateDataSource:i,activeRowById:a,clearSelection:s}),()=>d.createVNode("div",{class:p.value},[d.createVNode("div",{class:"f-list-view-content"},[d.createVNode("ul",{class:"f-listview-items"},[r.value.map((m,w)=>m.type===1?d.createVNode(fv,{key:`group_${m.groupValue}_${w}`,groupData:m.data,groupField:m.groupField,groupValue:m.groupValue,index:w},{default:t.slots.group}):d.createVNode(dv,{key:`${m.data[e.idField]}_${w}`,item:m.data,index:m.originalIndex,isActive:m.data[e.idField]===n.value,isSelected:f(m.data),itemClass:e.itemClass,textField:e.textField,onClickItem:g},{default:t.slots.content}))])])])}});fu.install=e=>{e.component(fu.name,fu)};const Vh={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},Ko=d.defineComponent({name:"FXAgentThinkingMessage",props:Vh,setup(e){const t=d.ref(e.defaultExpanded),r=d.ref({}),n=d.computed(()=>{var k;const w=(k=e.content)==null?void 0:k.streamStatus;return w==="end"||w===void 0}),i=d.computed(()=>{var k;const w=(k=e.content)==null?void 0:k.title;return w||(n.value?"思考过程":"正在思考...")}),a=d.computed(()=>{var w;return((w=e.content)==null?void 0:w.steps)??[]}),s=d.computed(()=>{var w,k;return a.value.length>0?"":((k=(w=e.content)==null?void 0:w.text)==null?void 0:k.trim())??""}),c=d.computed(()=>{var w,k;return a.value.length>0||!!s.value||(((k=(w=e.content)==null?void 0:w.sources)==null?void 0:k.length)??0)>0});d.watch(a,w=>{const k={};w.forEach((C,B)=>{k[B]=r.value[B]??!!C.detail}),r.value=k},{immediate:!0}),d.watch(n,w=>{w&&(t.value=!1)});const f=()=>{t.value=!t.value},p=w=>{r.value={...r.value,[w]:!r.value[w]}},g=w=>d.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:w?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null),m=(w,k)=>{var _;const C=!!((_=w.detail)!=null&&_.trim()),B=r.value[k]??C;return d.createVNode("div",{class:"f-x-thinking-step",key:k},[d.createVNode("div",{class:"f-x-thinking-step-header",onClick:()=>C&&p(k)},[d.createVNode("span",{class:"f-x-thinking-step-dot","aria-hidden":!0},null),d.createVNode("span",{class:"f-x-thinking-step-summary"},[w.summary]),C?g(B):null]),C&&B?d.createVNode("div",{class:"f-x-thinking-step-detail"},[w.detail]):null])};return()=>{const w=e.content;if(!w)return null;const k={"f-x-thinking":!0,"is-pending":!n.value,"is-completed":n.value};return d.createVNode("div",{class:k},[d.createVNode("div",{class:"f-x-thinking-header",onClick:f},[n.value?null:d.createVNode(sa,{status:"Working",variant:"thinking"},null),d.createVNode("span",{class:"f-x-thinking-title"},[i.value]),c.value?g(t.value):null]),t.value&&c.value?d.createVNode("div",{class:"f-x-thinking-body"},[s.value?d.createVNode("div",{class:"f-x-thinking-text"},[s.value]):null,a.value.map(m),w.sources&&w.sources.length>0?d.createVNode("ul",{class:"f-x-thinking-sources"},[w.sources.map((C,B)=>d.createVNode("li",{key:B},[C]))]):null]):null])}}});Ko.install=e=>{e.component(Ko.name,Ko)};function hv(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function mv(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function pv(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const Qo=d.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=d.computed(()=>mv(e.content.media)),r=d.computed(()=>Ea(pv(e.content.media)));async function n(i){i.preventDefault(),i.stopPropagation();const a=r.value;a&&await Su(a,e.content.name)}return()=>{const i=!!r.value;return d.createVNode("div",{class:"f-ec-attach-row"},[d.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[d.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[d.createTextVNode("📎")]),d.createVNode("span",{class:"f-ec-attach-body"},[d.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),d.createVNode("span",{class:"f-ec-attach-meta"},[d.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),d.createVNode("span",{class:"f-ec-attach-size"},[hv(e.content.size)])])])]),i?d.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:n},[d.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),d.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),d.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});Qo.install=e=>{e.component(Qo.name,Qo)};const gv={0:"高",1:"中",2:"低"},Jo=d.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return d.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[d.createVNode("div",{class:"f-ec-error-head"},[d.createVNode("span",{class:"f-ec-error-badge"},[gv[t]]),d.createVNode("span",{class:"f-ec-error-label"},[d.createTextVNode("错误提醒")])]),d.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?d.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[d.createTextVNode("查看详情")]):null])}}});Jo.install=e=>{e.component(Jo.name,Jo)};function bv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const Hh=".f-chat-content-input-section";function yv(e,t){const r=(t??"").trim();return r||`Agent请求使用【${e.trim()||"该系统"}】凭证访问该系统,是否授权?`}const hu=d.defineComponent({name:"FXCredentialAuthDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"凭证授权请求"},question:{type:String,default:""},systemName:{type:String,default:""},disabled:{type:Boolean,default:!1},onSelect:{type:Function,required:!0},onClose:{type:Function,default:void 0},teleportTo:{type:[String,Object],default:Hh}},setup(e){const t=d.computed(()=>yv(e.systemName,e.question));function r(i){e.disabled||e.onSelect(i)}const n=d.computed(()=>e.teleportTo??Hh);return()=>{if(!e.visible)return null;const i=d.createVNode("div",{class:"f-credential-auth-anchor f-credential-auth-anchor--overlay-input",role:"dialog","aria-modal":"true","aria-labelledby":"f-credential-auth-title"},[d.createVNode("div",{class:"f-credential-auth-dialog"},[d.createVNode("div",{id:"f-credential-auth-title",class:"f-credential-auth-dialog__title"},[e.title]),d.createVNode("div",{class:"f-credential-auth-dialog__body"},[t.value]),d.createVNode("div",{class:"f-credential-auth-dialog__actions"},[d.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--primary","data-testid":"auth-per-access",disabled:e.disabled,onClick:()=>r("PER_ACCESS_YES")},[d.createTextVNode("临时授权一次")]),d.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-session",disabled:e.disabled,onClick:()=>r("SESSION_YES")},[d.createTextVNode("授权整个会话")]),d.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-no",disabled:e.disabled,onClick:()=>r("NO")},[d.createTextVNode("拒绝")])])])]);return n.value?d.createVNode(d.Teleport,{to:n.value},bv(i)?i:{default:()=>[i]}):i}}});hu.install=e=>{e.component(hu.name,hu)};function vv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!d.isVNode(e)}const xn="__hitl_other__";function Yc(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Gn(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"||t==="authorize"?t:"text"}function qh(e){return e==="PER_ACCESS_YES"?"是(本次授权)":e==="SESSION_YES"?"是,当前会话后续不再询问":e==="NO"?"否":String(e??"")}const es=d.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!0},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},pinnedInputHeight:{type:Number,default:0},pinnedBottom:{type:Number,default:36},teleportTo:{type:[String,Object],default:void 0},onSubmitAnswers:{type:Function,default:void 0},onSubmitAuthAnswer:{type:Function,default:void 0}},setup(e){const t=d.ref(!1),r=d.ref(0),n=d.ref({}),i=d.ref({}),a=d.computed(()=>t.value||e.disabled),s=d.computed(()=>{var X;return e.content.questions.length===1&&Gn((X=e.content.questions[0])==null?void 0:X.ui_type)==="authorize"&&!!e.content.credentialAuth}),c=d.ref(!1);d.watch(()=>[s.value,t.value,e.disabled],([X,Z,Q])=>{c.value=X&&!Z&&!Q},{immediate:!0});function f(X){var Q;const Z=e.content.questions[0];Z&&(n.value={[Z.id]:X},t.value=!0,c.value=!1,(Q=e.onSubmitAuthAnswer)==null||Q.call(e,{questionId:Z.id,answer:X}))}function p(X){const Z={},Q={};for(const ue of X){const fe=Gn(ue.ui_type);if(fe==="confirm")Z[ue.id]=void 0;else if(fe==="authorize")Z[ue.id]=void 0;else if(fe==="text"||fe==="select")Z[ue.id]=ue.default_value??"";else if(fe==="multi_select")Z[ue.id]=ue.default_value?JSON.parse(ue.default_value):[];else if(fe==="form"){const ke={};if(Array.isArray(ue.fields))for(const ie of ue.fields)ke[ie.name]=ie.default_value??"";Z[ue.id]=ke}else Z[ue.id]=ue.default_value??"";Q[ue.id]={active:!1,text:""}}n.value=Z,i.value=Q,r.value=0}d.watch(()=>e.content.questions,X=>{Array.isArray(X)&&X.length&&p(X)},{immediate:!0}),d.watch(()=>e.content.answers,X=>{if(!Array.isArray(X)||X.length===0)return;const Z={...n.value},Q={...i.value};for(const ue of X){Z[ue.id]=ue.answer;const fe=e.content.questions.find(ke=>ke.id===ue.id);fe&&Gn(fe.ui_type)==="select"&&typeof ue.answer=="string"&&!(fe.options??[]).some(me=>me.label===ue.answer)&&ue.answer!==""&&(Q[ue.id]={active:!0,text:ue.answer},Z[ue.id]=xn)}n.value=Z,i.value=Q,t.value=!0},{immediate:!0});const g=d.computed(()=>e.content.questions.length),m=d.computed(()=>{const X=e.content.questions;if(X.length===0)return null;const Z=Math.max(0,Math.min(r.value,X.length-1));return X[Z]}),w=d.computed(()=>r.value<=0),k=d.computed(()=>r.value>=g.value-1),C=d.computed(()=>{const X=m.value;return X?T(X):!0});function B(){e.required&&!C.value||k.value||(r.value+=1)}function _(){w.value||(r.value-=1)}function T(X){var ue,fe;const Z=Gn(X.ui_type),Q=n.value[X.id];if(Z==="text"&&(typeof Q!="string"||Q.trim()==="")||Z==="select"&&(typeof Q!="string"||Q.trim()===""||Q===xn&&(((fe=(ue=i.value[X.id])==null?void 0:ue.text)==null?void 0:fe.trim())??"")==="")||Z==="confirm"&&typeof Q!="boolean"||Z==="multi_select"&&(!Array.isArray(Q)||Q.length===0))return!1;if(Z==="form"){const ke=X.fields??[],ie=Q;for(const me of ke)if(me.required){const ge=ie[me.name];if(typeof ge!="string"||ge.trim()==="")return!1}}return!((Z==="date"||Z==="number")&&(typeof Q!="string"||Q.trim()===""))}const S=d.computed(()=>a.value?!1:e.content.questions.every(X=>T(X)));function F(X,Z){n.value={...n.value,[X]:Z}}function z(X,Z,Q){const ue=n.value[X]??{};F(X,{...ue,[Z]:Q})}function R(X){const Z=Gn(X.ui_type);return Z==="select"||Z==="multi_select"}function $(X,Z){var Q;Z===xn?(i.value={...i.value,[X.id]:{...i.value[X.id],active:!0,text:((Q=i.value[X.id])==null?void 0:Q.text)??""}},F(X.id,xn)):(i.value={...i.value,[X.id]:{active:!1,text:""}},F(X.id,Z))}function Y(X,Z){const Q=n.value[X.id]??[];Q.includes(Z)?F(X.id,Q.filter(ue=>ue!==Z)):F(X.id,[...Q,Z])}function q(){var Z,Q,ue;if(!S.value)return;const X=[];for(const fe of e.content.questions){const ke=Gn(fe.ui_type);let ie=n.value[fe.id];ke==="select"&&ie===xn&&(ie=((Q=(Z=i.value[fe.id])==null?void 0:Z.text)==null?void 0:Q.trim())??""),ke==="number"&&(ie=Number(ie)),X.push({id:fe.id,answer:ie})}t.value=!0,(ue=e.onSubmitAnswers)==null||ue.call(e,X)}function pe(X,Z,Q){return d.createVNode("div",{class:"f-hitl-date-wrap"},[d.createVNode("input",{class:"f-hitl-input",type:"date",value:X,disabled:Z,onInput:ue=>Q(ue.target.value)},null)])}function he(X,Z,Q,ue,fe){const ke=ge=>{let Le=Number(X)||0;Le+=ge,ue!==void 0&&(Le=Math.max(ue,Le)),fe!==void 0&&(Le=Math.min(fe,Le)),Q(String(Le))},ie=fe!==void 0&&Number(X||0)>=fe,me=ue!==void 0&&Number(X||0)<=ue;return d.createVNode("div",{class:"f-hitl-num-wrap"},[d.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:X,min:ue,max:fe,disabled:Z,onInput:ge=>Q(ge.target.value)},null),d.createVNode("div",{class:"f-hitl-num-btns"},[d.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:Z||ie,onClick:()=>ke(1)},[d.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),d.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:Z||me,onClick:()=>ke(-1)},[d.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function ce(X,Z,Q,ue){return d.createVNode("div",{key:X.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":Q}],onClick:ue},[d.createVNode("span",{class:"f-hitl-opt-row__index"},[Z+1]),d.createVNode("div",{class:"f-hitl-opt-row__label"},[d.createVNode("span",null,[X.label]),X.description?d.createVNode("span",{class:"f-hitl-opt-row__desc",title:X.description},[Yc(X.description)]):null]),d.createVNode("span",{class:"f-hitl-opt-row__check"},[Q?d.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function be(X,Z){return d.createVNode("div",{class:"f-hitl-form-item",key:X.name},[d.createVNode("div",{class:"f-hitl-form-item__label"},[X.label]),Z])}function ae(X,Z,Q){const ue=n.value[X.id]??"",fe=n.value[X.id]??[],ke=i.value[X.id]??{active:!1,text:""},ie=Q==="single",me=ie&&ue===xn||ke.active,ge=X.allow_other&&me,Le=ot=>ie?ue===ot.label&&!ke.active:fe.includes(ot.label),Ye=ot=>()=>{a.value||(ie?$(X,ot.label):Y(X,ot.label))},Ke=()=>{if(!a.value)if(ie)$(X,xn);else{const ot=ke.text;ke.active?(F(X.id,fe.filter(st=>st!==ot)),i.value={...i.value,[X.id]:{active:!1,text:""}}):(i.value={...i.value,[X.id]:{active:!0,text:ke.text}},ke.text&&!fe.includes(ke.text)&&F(X.id,[...fe,ke.text]))}},ut=ot=>{const st=ot.target.value;i.value={...i.value,[X.id]:{active:!0,text:st}},ie?F(X.id,xn):F(X.id,[...fe.filter(Xt=>Xt!==ke.text),st])};return d.createVNode("div",{key:X.id},[d.createVNode("div",{class:"f-hitl-option-list"},[Z.map((ot,st)=>ce(ot,st,Le(ot),Ye(ot))),X.allow_other?d.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":me}],onClick:Ke},[d.createVNode("span",{class:"f-hitl-opt-row__index"},[d.createTextVNode("...")]),d.createVNode("span",{class:"f-hitl-opt-row__label"},[d.createTextVNode("其他")]),d.createVNode("span",{class:"f-hitl-opt-row__check"},[me?d.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),ge?d.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:ke.text,placeholder:"请输入自定义内容",disabled:a.value,onInput:ut},null):null])}function xe(X){const Z=n.value[X.id]??{},Q=X.fields??[];return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("div",{class:"f-hitl-form-group"},[Q.map(ue=>{const fe=Z[ue.name]??"";return ue.type==="select"?be(ue,d.createVNode("div",{class:"f-hitl-select-group"},[(ue.options??[]).map(ke=>{const ie=typeof ke=="string"?ke:ke.label??"";return d.createVNode("button",{key:ie,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":fe===ie}],disabled:a.value,onClick:()=>z(X.id,ue.name,ie)},[ie])})])):ue.type==="number"?be(ue,he(fe,a.value,ke=>z(X.id,ue.name,ke),ue.min,ue.max)):ue.type==="date"?be(ue,pe(fe,a.value,ke=>z(X.id,ue.name,ke))):be(ue,d.createVNode("input",{class:"f-hitl-input",type:"text",value:fe,placeholder:ue.default_value??"请输入",disabled:a.value,onInput:ke=>z(X.id,ue.name,ke.target.value)},null))})])])}function Se(X){const Z=Gn(X.ui_type);if(Z==="text"){const Q=n.value[X.id]??"";return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("input",{class:"f-hitl-input",type:"text",value:Q,placeholder:X.placeholder??"请输入",disabled:a.value,onInput:ue=>F(X.id,ue.target.value)},null)])}if(Z==="multi_select"){const Q=Array.isArray(X.options)?X.options:[];return d.createVNode("div",{class:"f-hitl-field",key:X.id},[ae(X,Q,"multi")])}if(Z==="form")return xe(X);if(Z==="select"){let Q=Array.isArray(X.options)?X.options:[];return Q.length===0&&(Q=[{label:"暂无"}]),d.createVNode("div",{class:"f-hitl-field",key:X.id},[ae(X,Q,"single")])}if(Z==="confirm"){const Q=n.value[X.id];return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("div",{class:"f-hitl-confirm"},[d.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":Q===!0}],disabled:a.value,onClick:()=>F(X.id,!0)},[d.createTextVNode("是")]),d.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":Q===!1}],disabled:a.value,onClick:()=>F(X.id,!1)},[d.createTextVNode("否")])])])}if(Z==="authorize")return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("span",{class:"f-hitl-submitted-value"},[qh(n.value[X.id])])]);if(Z==="date"){const Q=n.value[X.id]??"";return d.createVNode("div",{class:"f-hitl-field",key:X.id},[pe(Q,a.value,ue=>F(X.id,ue))])}if(Z==="number"){const Q=n.value[X.id]??"";return d.createVNode("div",{class:"f-hitl-field",key:X.id},[he(Q,a.value,ue=>F(X.id,ue),X.min,X.max)])}return d.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:X.id},[d.createVNode("div",{class:"f-hitl-unsupported"},[d.createTextVNode("暂不支持 ui_type「"),String(X.ui_type),d.createTextVNode("」,请升级前端。")])])}function te(X){const Z=Gn(X.ui_type),Q=(fe,ke,ie)=>d.createVNode("input",{class:"f-hitl-input",type:fe,value:ke,readonly:!0,min:ie==null?void 0:ie.min,max:ie==null?void 0:ie.max},null);if(Z==="text"){const fe=n.value[X.id]??"";return d.createVNode("div",{class:"f-hitl-field",key:X.id},[Q("text",fe)])}if(Z==="multi_select"){const fe=n.value[X.id]??[],ke=Array.isArray(X.options)?X.options:[],ie=new Set(ke.map(ge=>ge.label)),me=fe.filter(ge=>!ie.has(ge));return d.createVNode("div",{key:X.id},[d.createVNode("div",{class:"f-hitl-option-list"},[ke.filter(ge=>fe.includes(ge.label)).map(ge=>d.createVNode("div",{class:"f-hitl-opt-row",key:ge.label},[d.createVNode("div",{class:"f-hitl-opt-row__label"},[d.createVNode("span",null,[ge.label]),ge.description?d.createVNode("span",{class:"f-hitl-opt-row__desc",title:ge.description},[Yc(ge.description)]):null])])),me.map(ge=>d.createVNode("div",{class:"f-hitl-opt-row",key:ge},[d.createVNode("div",{class:"f-hitl-opt-row__label"},[d.createVNode("span",null,[ge])])]))])])}if(Z==="select"){const fe=n.value[X.id]??"",ke=i.value[X.id]??{active:!1,text:""},ie=Array.isArray(X.options)?X.options:[],me=fe===xn||ke.active;return d.createVNode("div",{key:X.id},[d.createVNode("div",{class:"f-hitl-option-list"},[me?d.createVNode("div",{class:"f-hitl-opt-row"},[d.createVNode("div",{class:"f-hitl-opt-row__label"},[d.createVNode("span",null,[ke.text||"其他"])])]):ie.filter(ge=>ge.label===fe).map(ge=>d.createVNode("div",{class:"f-hitl-opt-row",key:ge.label},[d.createVNode("div",{class:"f-hitl-opt-row__label"},[d.createVNode("span",null,[ge.label]),ge.description?d.createVNode("span",{class:"f-hitl-opt-row__desc",title:ge.description},[Yc(ge.description)]):null])]))])])}if(Z==="confirm"){const fe=n.value[X.id];return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("div",{class:"f-hitl-confirm"},[d.createVNode("button",{type:"button",class:["f-hitl-cbtn","f-hitl-cbtn--readonly"]},[fe===!0?"是":"否"])])])}if(Z==="authorize")return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("span",{class:"f-hitl-submitted-value"},[qh(n.value[X.id])])]);if(Z==="form"){const fe=n.value[X.id]??{},ke=X.fields??[];return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("div",{class:"f-hitl-form-group"},[ke.map(ie=>{const me=fe[ie.name]??"";let ge;return ie.type==="number"?ge=Q("number",me,{min:ie.min,max:ie.max}):ie.type==="date"?ge=Q("date",me):ge=Q("text",me),be(ie,ge)})])])}if(Z==="date"){const fe=n.value[X.id]??"";return d.createVNode("div",{class:"f-hitl-field",key:X.id},[Q("date",fe)])}if(Z==="number"){const fe=n.value[X.id]??"";return d.createVNode("div",{class:"f-hitl-field",key:X.id},[Q("number",fe)])}const ue=n.value[X.id];return d.createVNode("div",{class:"f-hitl-field",key:X.id},[d.createVNode("span",{class:"f-hitl-submitted-value"},[String(ue??"")])])}function ye(X){return d.createVNode("div",{class:"f-hitl-card__title-wrap"},[d.createVNode("span",{class:"f-hitl-card__title"},[X.question]),d.createVNode("span",{class:"f-hitl-card__subtitle"},[X.header])])}function ne(){return g.value<=1?null:d.createVNode("div",{class:"f-hitl-pagination"},[d.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:w.value,onClick:_},[d.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),d.createVNode("span",{class:"f-hitl-pagination__text"},[r.value+1,d.createTextVNode("/"),g.value]),d.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:k.value,onClick:B},[d.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function Ne(){const X=e.pinnedWidth?{width:`calc(${e.pinnedWidth} * 0.8)`,minWidth:"343px",maxWidth:"800px"}:void 0;return d.createVNode("div",{class:"f-hitl-card",style:X},[d.createVNode("div",{class:"f-hitl-submitted-flat"},[e.content.questions.map(Z=>d.createVNode("div",{class:"f-hitl-submitted-item",key:Z.id},[d.createVNode("div",{class:"f-hitl-card__header"},[ye(Z)]),d.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":R(Z)}]},[te(Z)])]))])])}function We(){const X=m.value;if(!X)return null;const Z=e.pinned?"f-hitl-card--pinned":"",Q=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,ue=e.pinnedInputHeight??0,fe=e.pinnedBottom??36,ke=()=>d.createVNode(d.Fragment,null,[d.createVNode("div",{class:"f-hitl-card__header"},[ye(X),ne()]),d.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":R(X)}]},[Se(X)]),!a.value&&d.createVNode("div",{class:"f-hitl-card__footer"},[g.value>1&&!k.value&&d.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!C.value,onClick:B},[d.createTextVNode("下一条")]),k.value&&d.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!S.value,onClick:q},[d.createTextVNode("提交")])])]);if(e.pinned){const ie=d.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[d.createVNode("div",{class:"f-hitl-card",style:{...Q,marginBottom:`-${ue}px`}},[ke()])]);if(e.teleportTo){const ge={...Q,bottom:`${fe}px`},Le=d.createVNode("div",{class:["f-hitl-card",Z],style:ge},[ke()]);return d.createVNode(d.Fragment,null,[ie,d.createVNode(d.Teleport,{to:e.teleportTo},vv(Le)?Le:{default:()=>[Le]})])}const me=d.createVNode("div",{class:["f-hitl-card",Z],style:Q},[ke()]);return d.createVNode(d.Fragment,null,[ie,me])}return d.createVNode("div",{class:["f-hitl-card",Z],style:Q},[ke()])}return()=>{var X;if(s.value){const Z=e.content.questions[0];return Z?d.createVNode(d.Fragment,null,[d.createVNode(hu,{visible:c.value,title:Z.header??"凭证授权请求",question:Z.question,systemName:((X=e.content.credentialAuth)==null?void 0:X.systemName)??"",disabled:a.value,teleportTo:".f-chat-content-input-section",onSelect:f},null)]):null}return a.value?Ne():We()}}});es.install=e=>{e.component(es.name,es)};function wv(e,t){var n;const r=(n=e.pickActions)==null?void 0:n[t];return r||e.pickActionDefault}const ts=d.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(r,n)=>{var i;wv(e.content,n),(i=e.onPick)==null||i.call(e,r)};return()=>d.createVNode("div",{class:"f-ec-recommend"},[e.content.title?d.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,d.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((r,n)=>d.createVNode("button",{key:n,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(r,n)},[r]))])])}});ts.install=e=>{e.component(ts.name,ts)};const rs=d.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return d.createVNode("div",{class:"f-ec-linkcard"},[t.poster?d.createVNode("div",{class:"f-ec-linkcard-poster"},[d.createVNode("img",{src:t.poster,alt:""},null)]):null,d.createVNode("div",{class:"f-ec-linkcard-body"},[d.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?d.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?d.createVNode("div",{class:"f-ec-linkcard-related"},[d.createVNode("div",{class:"f-ec-linkcard-related-label"},[d.createTextVNode("相关阅读")]),d.createVNode("ul",null,[t.relatedLinks.map((r,n)=>d.createVNode("li",{key:n},[d.createVNode("a",{href:r.url,target:"_blank",rel:"noopener noreferrer"},[r.title])]))])]):null])])}}});rs.install=e=>{e.component(rs.name,rs)};const ns=d.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>d.createVNode("div",{class:"f-ec-sources"},[d.createVNode("div",{class:"f-ec-sources-title"},[d.createTextVNode("引用来源")]),d.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,r)=>d.createVNode("li",{key:r},[d.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});ns.install=e=>{e.component(ns.name,ns)};function jh(e){const t=new Map;for(const r of e){const n=t.get(r.docId),i=typeof r.url=="string"&&r.url.trim()!==""?r.url.trim():void 0;n?(n.chunkCount+=1,n.contentIds.push(r.contentId),!n.url&&i&&(n.url=i)):t.set(r.docId,{key:r.docId,docName:r.docName,chunkCount:1,contentIds:[r.contentId],...i?{url:i}:{}})}return[...t.values()]}const as=d.defineComponent({name:"FXKnowledgeTraceStrip",props:{content:{type:Object,required:!0}},emits:["open"],setup(e,{emit:t}){const r=d.ref(!1),n=d.computed(()=>jh(e.content.chunks??[])),i=d.computed(()=>{var f;return((f=e.content.chunks)==null?void 0:f.length)??0}),a=()=>{t("open")},s=f=>{f.stopPropagation(),r.value=!r.value},c=(f,p)=>{f.stopPropagation();const g=typeof p=="string"?p.trim():"";!g||typeof window>"u"||window.open(g,"_blank","noopener,noreferrer")};return()=>i.value?d.createVNode("div",{class:"f-ec-knowledge-trace"},[d.createVNode("div",{class:"f-ec-knowledge-trace__header",onClick:a},[d.createVNode("span",{class:"f-ec-knowledge-trace__main"},[d.createVNode("svg",{class:"f-ec-knowledge-trace__icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[d.createVNode("circle",{cx:"12",cy:"12",r:"10"},null),d.createVNode("path",{d:"M12 16v-4M12 8h.01"},null)]),d.createVNode("span",null,[d.createTextVNode("知识溯源 · "),i.value,d.createTextVNode(" 条参考来源")])]),d.createVNode("button",{type:"button",class:"f-ec-knowledge-trace__toggle","aria-label":r.value?"收起原始文档":"展开原始文档",title:r.value?"收起原始文档":"展开原始文档","data-testid":"knowledge-trace-files-toggle",onClick:s},[d.createVNode("span",{class:["f-ec-knowledge-trace__toggle-icon",r.value&&"f-ec-knowledge-trace__toggle-icon--open"]},[d.createTextVNode("▼")])])]),r.value&&n.value.length>0?d.createVNode("div",{class:"f-ec-knowledge-trace__files"},[n.value.map(f=>d.createVNode("div",{key:f.key,class:"f-ec-knowledge-trace__file","data-testid":"knowledge-trace-source-file"},[d.createVNode("button",{type:"button",class:["f-ec-knowledge-trace__file-name",!f.url&&"f-ec-knowledge-trace__file-name--disabled"],title:f.docName,disabled:!f.url,"data-testid":"knowledge-trace-source-file-preview",onClick:p=>c(p,f.url)},[f.docName]),d.createVNode("span",{class:"f-ec-knowledge-trace__file-meta"},[f.chunkCount,d.createTextVNode(" 条切片")])]))]):null]):null}});function xv(e){return Number.isFinite(e)?Number(e).toFixed(4):""}const Zc=d.defineComponent({name:"FXKnowledgeTracePanel",props:{chunks:{type:Array,default:()=>[]},isShow:{type:Boolean,default:!1},selectedContentId:{type:String,default:void 0}},emits:["update:isShow","close"],setup(e,{emit:t}){const r=d.ref({}),n=d.ref(null),i=()=>{t("update:isShow",!1),t("close")},a=f=>{r.value={...r.value,[f]:!r.value[f]}},s=f=>{const p=typeof f=="string"?f.trim():"";!p||typeof window>"u"||window.open(p,"_blank","noopener,noreferrer")},c=()=>{if(!e.isShow||!e.selectedContentId||!n.value)return;const f=typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e.selectedContentId):e.selectedContentId.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),p=n.value.querySelector(`[data-knowledge-trace-content-id="${f}"]`);p instanceof HTMLElement&&p.scrollIntoView({block:"nearest",behavior:"smooth"})};return d.watch(()=>[e.isShow,e.selectedContentId,e.chunks],()=>{!e.isShow||!e.selectedContentId||d.nextTick(()=>{c()})},{immediate:!0}),()=>{if(!e.isShow)return null;const f=e.chunks??[];return d.createVNode("aside",{class:"f-ec-knowledge-trace-panel","data-testid":"knowledge-trace-panel","aria-label":"参考来源"},[d.createVNode("div",{class:"f-ec-knowledge-trace-panel__header"},[d.createVNode("span",{class:"f-ec-knowledge-trace-panel__title"},[d.createTextVNode("参考来源 · "),f.length]),d.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__close","aria-label":"关闭",title:"关闭","data-testid":"knowledge-trace-panel-close",onClick:i},[d.createTextVNode("×")])]),d.createVNode("div",{class:"f-ec-knowledge-trace-panel__body",ref:n},[f.length===0?d.createVNode("div",{class:"f-ec-knowledge-trace-panel__empty"},[d.createTextVNode("暂无参考来源")]):f.map((p,g)=>{const m=p.contentId===e.selectedContentId,w=!!r.value[p.contentId],k=typeof p.score=="number"?xv(p.score):"",C=String(g+1),B=typeof p.url=="string"&&p.url.trim()!==""?p.url.trim():"";return d.createVNode("div",{key:p.contentId,class:["f-ec-knowledge-trace-panel__card",m&&"f-ec-knowledge-trace-panel__card--selected",w&&"f-ec-knowledge-trace-panel__card--expanded"],"data-knowledge-trace-content-id":p.contentId,"data-testid":"knowledge-trace-panel-card"},[d.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-title",B&&"f-ec-knowledge-trace-panel__card-title--link"],title:p.docName,role:B?"link":void 0,tabindex:B?0:void 0,onClick:()=>s(B),onKeydown:_=>{B&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),s(B))}},[p.docName]),k?d.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-meta"},[d.createVNode("span",null,null),d.createVNode("span",null,[k])]):null,d.createVNode("div",{class:["f-ec-knowledge-trace-panel__card-content",w&&"f-ec-knowledge-trace-panel__card-content--expanded"]},[p.content]),d.createVNode("div",{class:"f-ec-knowledge-trace-panel__card-footer"},[d.createVNode("button",{type:"button",class:"f-ec-knowledge-trace-panel__toggle",onClick:()=>a(p.contentId)},[w?"收起":"展开"]),d.createVNode("span",{class:"f-ec-knowledge-trace-panel__mark"},[C])])])})])])}}});as.install=e=>{e.component(as.name,as),e.component(Zc.name,Zc)};const is=d.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>d.createVNode("div",{class:"f-ec-unknown"},[d.createVNode("div",{class:"f-ec-unknown-title"},[d.createTextVNode("未知类型消息")]),e.content.wireType?d.createVNode("div",{class:"f-ec-unknown-wire"},[d.createTextVNode("wire type: "),e.content.wireType]):null,d.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});is.install=e=>{e.component(is.name,is)},qi.install=e=>{e.component(qi.name,qi)};const Av={install(e){e.use(Cr).use(ji).use($i).use(Yi).use(Ka).use(tu).use(ru).use(nu).use(au).use(qa).use(ya).use(Ja).use(ha).use(iu).use(uu).use(ou).use(su).use(lu).use(Wa).use(Ga).use(fa).use(Ya).use(cu).use(du).use(fu)}};le.FXAgentThinking=Ko,le.FXAppPreview=Cr,le.FXAttachmentFile=Qo,le.FXAttachmentPreview=lu,le.FXBubble=ji,le.FXBubbleAction=vc,le.FXCarousel=$i,le.FXCarouselItem=_o,le.FXChatPreview=Yi,le.FXCoding=tu,le.FXConfirmDialog=Ka,le.FXCredentialAuthDialog=hu,le.FXDynamicComponent=Ga,le.FXErrorReminder=Jo,le.FXFileEmbeddedContent=W1,le.FXFileOperation=ru,le.FXGenerateProcess=nu,le.FXHistory=au,le.FXHitlQuestion=es,le.FXInputRecommend=ts,le.FXKnowledgeTracePanel=Zc,le.FXKnowledgeTraceStrip=as,le.FXLinkCard=rs,le.FXListView=fu,le.FXMarkdown=qa,le.FXMarkdownPreview=ya,le.FXNav=cu,le.FXPopover=fa,le.FXPopoverDirective=ff,le.FXPrompt=Yo,le.FXPrompts=Ja,le.FXReferenceSources=ns,le.FXSearchBox=du,le.FXSearchBoxContainer=Zo,le.FXSplitter=Ya,le.FXSplitterPane=Ui,le.FXStartedTodo=ha,le.FXSuggestion=iu,le.FXTodo=uu,le.FXTodoListItemView=No,le.FXTodoListView=Hi,le.FXToolUse=Xa,le.FXToolUseBatch=ou,le.FXUnknownEnterprise=is,le.FXUserAuth=qi,le.FXWelcome=su,le.FXWidgetContainer=Wa,le.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=$c,le.PREVIEW_BRIDGE_SOURCE=qc,le.PREVIEW_BRIDGE_VERSION=jc,le.agentThinkingProps=Vh,le.aggregateKnowledgeTraceByDoc=jh,le.appPreviewMessageProps=Wt,le.attachmentPreviewProps=Ih,le.bubbleActionProps=gf,le.bubbleProps=Cu,le.carouselItemProps=yf,le.carouselProps=bf,le.chatHistoryProps=Fh,le.chatPreviewProps=wf,le.clonePreviewPayloadForPostMessage=oh,le.closeFXConfirmDialog=cy,le.codingMessageProps=kh,le.confirmDialogProps=hh,le.createPreviewIframeSdk=ty,le.default=Av,le.extractFileIdFromRuntimeDownloadUrl=I1,le.fileEmbeddedContentProps=j1,le.fileOperationMessageProps=Sh,le.generateProcessProps=Eh,le.getCustomClass=Kt,le.getCustomStyle=c0,le.getDynamicCompState=V9,le.getDynamicComponentRegistryDebugSnapshot=gc,le.invokeAgentWorkbenchSdkApi=ey,le.isImageUrl=R1,le.isPreviewBridgeAssistantMessage=lh,le.listViewProps=Xc,le.loadDynamicComponent=uf,le.markdownMessageProps=z4,le.markdownPreviewProps=xf,le.navProps=Lh,le.normalizeDynamicComponentRegisterClaim=w0,le.openFXConfirmDialog=ly,le.overflowTooltipDirective=q1,le.peekDynamicComponentRegisterBootstrapId=L9,le.popoverProps=lf,le.postAssistantToPreviewIframe=ch,le.postDynamicComponentAssistantMessage=j9,le.previewLayoutBridge=ay,le.promptProps=Mh,le.promptsProps=Th,le.registerPreviewChromeSdk=ny,le.renderIconNode=Eu,le.renderNode=pi,le.resolveHrefForAttachmentDownload=Ea,le.resolveRuntimeAttachmentDownloadUrl=Is,le.searchBoxContainerProps=Ph,le.searchBoxProps=Rh,le.splitterProps=vf,le.startedTodoProps=hf,le.subscribeAssistantInPreviewIframe=dh,le.suggestionProps=Nh,le.todoListItemProps=pf,le.todoListViewProps=mf,le.todoProps=_h,le.triggerAttachmentDownload=Su,le.unloadDynamicComponent=of,le.useAttachment=$1,le.useSequentialStreaming=Fu,le.useStreamingOutput=P1,le.useTimer=Os,le.useToolIcon=Ls,le.welcomeProps=zh,le.widgetContainerProps=J4,Object.defineProperties(le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|