@farris/x-ui 0.0.6 → 0.0.8

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.
Files changed (31) hide show
  1. package/bubble/src/bubble.component.d.ts +6 -0
  2. package/bubble/src/bubble.props.d.ts +13 -0
  3. package/bubble/src/components/attachment/bubble-attachment.component.d.ts +3 -0
  4. package/bubble/src/components/attachment/bubble-attachment.props.d.ts +5 -0
  5. package/bubble/src/components/bubble-think/bubble-think.props.d.ts +1 -1
  6. package/bubble/src/components/text-content/composition/block-type.d.ts +7 -5
  7. package/bubble/src/components/text-content/utils/block-renderer.d.ts +1 -1
  8. package/bubble/src/composition/types.d.ts +2 -1
  9. package/bubble/src/composition/use-widget-content.d.ts +1 -2
  10. package/chat-preview/index.d.ts +17 -0
  11. package/chat-preview/src/chat-preview.component.d.ts +34 -0
  12. package/chat-preview/src/chat-preview.props.d.ts +19 -0
  13. package/chat-preview/src/invoke-agent-workbench-sdk.d.ts +5 -0
  14. package/chat-preview/src/preview-bridge-host.d.ts +15 -0
  15. package/chat-preview/src/preview-bridge-protocol.d.ts +22 -0
  16. package/chat-preview/src/preview-chrome-sdk.d.ts +28 -0
  17. package/chat-preview/src/preview-iframe-sdk.d.ts +7 -0
  18. package/components.d.ts +2 -0
  19. package/dynamic-component/index.d.ts +1 -1
  20. package/dynamic-component/src/composition/dynamic-component-registry.d.ts +13 -0
  21. package/dynamic-component/src/composition/types.d.ts +5 -3
  22. package/enterprise-cloud/src/types.d.ts +15 -0
  23. package/farris.x-ui.esm.js +9476 -8715
  24. package/farris.x-ui.umd.cjs +131 -80
  25. package/index.css +1 -1
  26. package/package.json +1 -1
  27. package/prompts/src/components/prompt.component.d.ts +1 -1
  28. package/prompts/src/prompts.component.d.ts +3 -3
  29. package/tool-use/src/tool-use.component.d.ts +1 -1
  30. package/bubble/src/components/text-content/renderers/a2ui-renderer.d.ts +0 -3
  31. package/bubble/src/components/text-content/utils/widget-to-messages.d.ts +0 -44
@@ -1,108 +1,159 @@
1
- (function(N,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("@farris/x-surface"),require("@a2ui/web_core/v0_9")):typeof define=="function"&&define.amd?define(["exports","vue","@farris/x-surface","@a2ui/web_core/v0_9"],i):(N=typeof globalThis<"u"?globalThis:N||self,i(N.FarrisX={},N.vue,N.xSurface,N.v0_9))})(this,function(N,i,be,nn){"use strict";var op=Object.defineProperty;var xc=N=>{throw TypeError(N)};var ip=(N,i,be)=>i in N?op(N,i,{enumerable:!0,configurable:!0,writable:!0,value:be}):N[i]=be;var fe=(N,i,be)=>ip(N,typeof i!="symbol"?i+"":i,be),zo=(N,i,be)=>i.has(N)||xc("Cannot "+be);var w=(N,i,be)=>(zo(N,i,"read from private field"),be?be.call(N):i.get(N)),ie=(N,i,be)=>i.has(N)?xc("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(N):i.set(N,be),ee=(N,i,be,nn)=>(zo(N,i,"write to private field"),nn?nn.call(N,be):i.set(N,be),be),X=(N,i,be)=>(zo(N,i,"access private method"),be);var yr=(N,i,be,nn)=>({set _(vu){ee(N,i,vu,be)},get _(){return w(N,i,nn)}});var Js,Ct,An,ec,tc,ut,Ye,it,Kt,at,wn,vn,st,Ce,ct,Ae,he,te,je,Qe,Re,Se,lt,De,dt,ft,Ke,Je,ht,Ht,He,kn,H,jo,Jt,Ft,bu,et,Ac,en,Cn,yu,Ut,Wt,Ho,xr,Ar,pe,$o,wu,Gt,Uo,En;const vu={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},un=i.defineComponent({name:"AppPreviewMessage",props:vu,setup(e){const t=i.ref(!1);function n(){var p;const a=(p=e.content)==null?void 0:p.appConfig;if(!a)return"";const s=a.ws??"",c=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${c}&boId=${d}&ws=${s}&version=2.0#/home`}function r(){var s,c;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((c=e.content)==null?void 0:c.appName)})}function o(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function u(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:c,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:o,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"},[c]),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:u,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});un.install=e=>{e.component(un.name,un)};const Wo={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}},wr={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},wc="/api/runtime/attachment";function vc(){try{const e=wr==null?void 0:wr.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function kc(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`${wc}/${encodeURIComponent(e)}/download`}function vr(e){const t=String(e??"").trim();if(!t)return"";const n=Cc(t),r=vc();return r?`${r}${n}`:n}function Go(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 rn(e){const t=String(e.fileId??"").trim();if(t)return vr(t);const n=String(e.url??"").trim();if(!n)return;const r=Go(n);if(r)return vr(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function ku(e,t){const n=String(t??"").replace(/[/\\]/g,"_").trim()||"download",r=kc(e);try{const o=await fetch(r,{credentials:"include",mode:"cors"});if(!o.ok)throw new Error(`download_http_${o.status}`);const u=await o.blob(),a=URL.createObjectURL(u),s=document.createElement("a");s.href=a,s.download=n,s.rel="noopener noreferrer",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)}catch{const o=document.createElement("a");o.href=r,o.target="_blank",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function ye(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 ve(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var u,a;const o=r.split(":");if(o.length>=2&&((u=o[0])!=null&&u.trim())&&((a=o[1])!=null&&a.trim())){const s=o[0].trim(),c=o.slice(1).join(":").trim();e[s]=c}}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r!==void 0&&r!==null&&(e[n]=r)})),e}function Nn(e){return e||null}function qo(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Cu(e){return e?typeof e!="string"?e:qo(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 Xo(e,t,n,r={}){const{charInterval:o=30}=r,u=i.ref({});let a=[],s=new Set;const c=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(h=>clearInterval(h)),a=[]},l=()=>{f(),u.value={},s.clear()},p=()=>{f(),u.value={},s.clear()},m=()=>{const h=e();if(!h||Object.keys(h).length===0){u.value={};return}if(!d()){u.value={...h},s=new Set(Object.keys(h));return}const x=Object.keys(h);x.forEach(b=>{u.value.hasOwnProperty(b)||(u.value[b]="")});const y=x.filter(b=>!s.has(b));if(y.length===0)return;let v=0;const g=()=>{var _;if(v>=y.length)return;const b=y[v],A=h[b];if(!A){s.add(b),v++,g();return}let k=((_=u.value[b])==null?void 0:_.length)||0;const F=setInterval(()=>{k<A.length?(u.value={...u.value,[b]:A.slice(0,k+1)},k++):(clearInterval(F),a=a.filter(E=>E!==F),s.add(b),v++,g())},o);a.push(F)};g()};return i.watch(()=>e(),()=>{c()&&m()},{immediate:!0}),i.watch(n,()=>{p(),c()&&m()}),i.watch(t,h=>{h?m():l()}),i.onMounted(()=>{c()&&m()}),{displayContent:u}}function Eu(){const e=i.reactive({}),t=[],n=i.ref(null);let r=null;const o=30,u=h=>{const x=e[h];return!x||x.displayedLength>=x.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(h=>u(h))),s=()=>{for(const h of t)if(!u(h))return h;return null},c=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const h=e[n.value];h&&(h.displayedLength<h.rawValue.length?(h.displayedLength++,h.displayedValue=h.rawValue.slice(0,h.displayedLength),h.isStreaming=!0):(h.isStreaming=!1,h.displayedValue=h.rawValue,n.value=s(),n.value||d()))},d=()=>{r&&(clearInterval(r),r=null)},f=()=>{r||(r=setInterval(c,o))},l=()=>{d(),Object.keys(e).forEach(h=>{delete e[h]}),t.length=0,n.value=null},p=(h,x)=>{if(e[h]){m(h,x);return}t.push(h),e[h]={rawValue:x??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===h)&&f()},m=(h,x)=>{const y=e[h];if(!y){p(h,x);return}y.rawValue=x??"",!r&&!u(h)&&(!n.value||n.value===h)&&f()};return i.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(h=>h.isStreaming)},isAllDone:a,startStreaming:f,reset:l,registerProperty:p,updatePropertyValue:m}}function kr(){const e=i.ref(null),t=i.ref(0),n=i.ref(!1);let r=null;const o=()=>{e.value=Date.now(),n.value=!0,r=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},u=()=>{r&&(clearInterval(r),r=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:o,stop:u,reset:()=>{u(),e.value=null,t.value=0,n.value=!1}}}function Ec(e,t){const n=i.computed(()=>{var o;return ve({},(o=e.styles)==null?void 0:o.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 _c(e,t){var u;const n=i.ref(((u=e.content)==null?void 0:u.sender)??"发送人"),r=i.computed(()=>{var a;return ve({},(a=e.styles)==null?void 0:a.header)});function o(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:o}}const Fc={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Sc={attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function Dc(){return{getFileIcon:r=>({pdf:"file-type-pdf",doc:"file-type-doc",docx:"file-type-doc",xls:"file-type-xls",xlsx:"file-type-xls",ppt:"file-type-ppt",pptx:"file-type-ppt",txt:"file-type-txt",zip:"file-type-zip",rar:"file-type-zip",image:"file-type-img",img:"file-type-img",md:"file-type-md",video:"file-type-any",audio:"file-type-any"})[r.toLowerCase()]||"file-type-any",formatFileName:r=>(r==null?void 0:r.replace(/\.[^.]+$/,""))??"",formatFileSize:r=>r<1024?r+" B":r<1048576?(r/1024).toFixed(1)+" KB":(r/1048576).toFixed(1)+" MB"}}const Zo=i.defineComponent({name:"FXBubbleAttachment",props:Sc,emits:["preview","batchPreview"],setup(e,t){const n=i.computed(()=>e.attachments??[]),r=i.computed(()=>{var m;return((m=n.value)==null?void 0:m.length)>0}),{getFileIcon:o,formatFileName:u,formatFileSize:a}=Dc(),s=i.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),c=i.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth})),d=i.computed(()=>e.enableFixedWidth?{width:"200px"}:{flex:"0 0 calc(50% - 4px)"});function f(m,h){t.emit("preview",h)}async function l(m,h){m.stopPropagation(),m.preventDefault();const x=rn(h);x&&await ku(x,h.name)}function p(m){t.emit("batchPreview",n.value)}return()=>r.value?i.createVNode("div",{class:"f-chat-bubble-attachments"},[n.value.map((m,h)=>{const x=rn(m);return i.createVNode("div",{class:"f-chat-bubble-attachment-item",style:d.value,key:h},[i.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation",onClick:y=>f(y,m)},[i.createVNode("span",{class:`f-chat-bubble-attachment-icon ${o(m.type)}`},null),i.createVNode("div",{class:s.value},[i.createVNode("span",{class:c.value,title:m.name},[u(m.name)]),m.size?i.createVNode("span",{class:"f-chat-bubble-attachment-size"},[a(m.size)]):null])]),x?i.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:y=>l(y,m)},[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])}),e.enableBatchPreview&&i.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:p},[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}}),Tc=i.defineComponent({name:"FXBubbleFileContentFooter",props:Fc,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return ve({},e.customStyle),()=>i.createVNode(Zo,{attachments:n.value,onPreview:r=>{var o;return(o=e.onPreviewFile)==null?void 0:o.call(e,r)},onBatchPreview:r=>{var o;return(o=e.onBatchPreviewFile)==null?void 0:o.call(e,r)}},null)}}),Nc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},Lc=i.defineComponent({name:"FXBubblePageContentFooter",props:Nc,setup(e,t){const n=i.ref(),r=i.computed(()=>{var a,s;const u={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(u.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(u.height=`${e.customStyle.height}px`),u}),o=u=>{var a,s;((a=u.data)==null?void 0:a.type)==="navigation"&&((s=u.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(u.data.url)};return i.onMounted(()=>{window.addEventListener("message",o)}),i.onUnmounted(()=>{window.removeEventListener("message",o)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Yo(){function e(o,u){const{fileContent:a,height:s,width:c}=o;return{file:a,customStyle:{width:c||"100%",height:s||"100%"},onPreviewFile:u==null?void 0:u.onPreviewFile,onBatchPreviewFile:u==null?void 0:u.onBatchPreviewFile}}function t(o,u){const{pageUrl:a,height:s,width:c}=o;return{pageUrl:a,customStyle:{width:c||"100%",height:s||"100%"},onNavigate:u==null?void 0:u.onNavigate}}function n(o,u){const a=e(o,u);return i.h(Tc,a)}function r(o,u){const a=t(o,u);return i.h(Lc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Oc={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}};function Ic(e){return e.replace(/```\s*\n+\s*assistant-widget/g,"``` assistant-widget").replace(/```\s*\n+\s*A2UI/g,"``` A2UI")}function Rc(e){if(!e)return!1;const t=/^```\s*(?:assistant-widget|A2UI)[\s\S]*?```$/,n=/^```\s*(?:assistant-widget|A2UI)/;return t.test(e)||n.test(e)}function Mc(e){if(!e)return[];const t=/(```[\s]*(?:assistant-widget|A2UI)[\s\S]*?```)/g,n=[];let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){const u=e.slice(r,o.index),a=/(```[\s]*(?:assistant-widget|A2UI))/,s=u.match(a);if(s){const c=u.indexOf(s[0]);c>0&&n.push(u.slice(0,c)),n.push(u.slice(c));const d=u.slice(c+s[0].length);d.trim().length>0&&n.push(d)}else n.push(u)}n.push(Ic(o[0])),r=o.index+o[0].length}if(r<e.length){const u=e.slice(r),a=/(```[\s]*(?:assistant-widget|A2UI))/,s=u.match(a);if(s){const c=u.indexOf(s[0]);c>0&&n.push(u.slice(0,c)),n.push(u.slice(c))}else n.push(u)}return n.filter(u=>u.trim().length>0)}function Qo(e){const t=e.replace("``` assistant-widget","").replace("```","").trim();try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function Pc(e){const t=e.replace("```A2UI","").replace("```","").trim();try{const n=JSON.parse(t);return n!=null&&n.components&&Array.isArray(n.components)&&n.components.length>0&&n.components[0].component!=="Card"&&(n.components[0].id="x01",n.components.unshift({id:"root",component:"Card",align:"center",child:"x01"})),n}catch(n){return console.error("Failed to parse JSON:",n),null}}function Vc(e){var n;const t=Qo(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const Bc=/^```\s*dynamic-component[\s\S]*?```$/,zc=/^```\s*dynamic-component/;function jc(e){return e.replace(/```\s*\n*\s*dynamic-component/g,"``` dynamic-component")}function Hc(e){return e?Bc.test(e)||zc.test(e):!1}function $c(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();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}}function Uc(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function Wc(e){if(!e)return[];const t="``` dynamic-component",n="```",r=[];let o=0;for(;o<e.length;){const u=e.indexOf(t,o);if(u===-1){const m=e.slice(o);m&&r.push(m);break}let a=u+t.length;const s=e.lastIndexOf("```",u),c=s>=0&&s<u+3?s:u,d=e.slice(o,c);d&&r.push(d);const f=e.indexOf(n,a);if(f===-1){r.push(e.slice(c));break}const l=f+n.length,p=e.slice(c,l);r.push(jc(p)),o=l}return r.filter(u=>u.length>0)}var ke=(e=>(e.Text="text",e.A2UIComplete="a2ui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(ke||{});function Gc(e){var o;if(!e)return[];const t=[],n=new Set,r=Mc(e);for(const u of r)if(Rc(u))if(u.endsWith("```"))if(u.startsWith("```A2UI")){const a=Pc(u);t.push({type:ke.A2UIComplete,raw:u,a2uiData:a})}else{const a=Qo(u);t.push({type:ke.AssistantWidgetComplete,raw:u,widgetData:a,widgetUrl:(o=a==null?void 0:a.renderer)==null?void 0:o.url,widgetImplOptions:Vc(u)})}else t.push({type:ke.AssistantWidgetPending,raw:u});else{const a=Wc(u);for(const s of a)if(Hc(s))if(s.endsWith("```")){const c=$c(s);if(c!=null&&c.instanceId){if(n.has(c.instanceId))continue;n.add(c.instanceId),t.push({type:ke.DynamicComponentComplete,raw:s,config:c})}}else{const c=Uc(s);t.push({type:ke.DynamicComponentPending,raw:s,position:(c==null?void 0:c.position)??null})}else s.trim()&&t.push({type:ke.Text,raw:s})}return t}const Ko={};function qc(e){let t=Ko[e];if(t)return t;t=Ko[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 on(e,t){typeof t!="string"&&(t=on.defaultChars);const n=qc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let u=0,a=r.length;u<a;u+=3){const s=parseInt(r.slice(u+1,u+3),16);if(s<128){o+=n[s];continue}if((s&224)===192&&u+3<a){const c=parseInt(r.slice(u+4,u+6),16);if((c&192)===128){const d=s<<6&1984|c&63;d<128?o+="��":o+=String.fromCharCode(d),u+=3;continue}}if((s&240)===224&&u+6<a){const c=parseInt(r.slice(u+4,u+6),16),d=parseInt(r.slice(u+7,u+9),16);if((c&192)===128&&(d&192)===128){const f=s<<12&61440|c<<6&4032|d&63;f<2048||f>=55296&&f<=57343?o+="���":o+=String.fromCharCode(f),u+=6;continue}}if((s&248)===240&&u+9<a){const c=parseInt(r.slice(u+4,u+6),16),d=parseInt(r.slice(u+7,u+9),16),f=parseInt(r.slice(u+10,u+12),16);if((c&192)===128&&(d&192)===128&&(f&192)===128){let l=s<<18&1835008|c<<12&258048|d<<6&4032|f&63;l<65536||l>1114111?o+="����":(l-=65536,o+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),u+=9;continue}}o+="�"}return o})}on.defaultChars=";/?:@&=+$,#",on.componentChars="";const Jo={};function Xc(e){let t=Jo[e];if(t)return t;t=Jo[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 Ln(e,t,n){typeof t!="string"&&(n=t,t=Ln.defaultChars),typeof n>"u"&&(n=!0);const r=Xc(t);let o="";for(let u=0,a=e.length;u<a;u++){const s=e.charCodeAt(u);if(n&&s===37&&u+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(u+1,u+3))){o+=e.slice(u,u+3),u+=2;continue}if(s<128){o+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&u+1<a){const c=e.charCodeAt(u+1);if(c>=56320&&c<=57343){o+=encodeURIComponent(e[u]+e[u+1]),u++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[u])}return o}Ln.defaultChars=";/?:@&=+$,-_.!~*'()#",Ln.componentChars="-_.!~*'()";function Cr(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 _u(){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 Zc=/^([a-z0-9.+-]+:)/i,Yc=/:[0-9]*$/,Qc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Kc=["<",">",'"',"`"," ","\r",`
2
- `," "],Jc=["{","}","|","\\","^","`"].concat(Kc),el=["'"].concat(Jc),ei=["%","/","?",";","#"].concat(el),ti=["/","?","#"],tl=255,ni=/^[+a-z0-9A-Z_-]{0,63}$/,nl=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ui={javascript:!0,"javascript:":!0},ri={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Er(e,t){if(e&&e instanceof _u)return e;const n=new _u;return n.parse(e,t),n}_u.prototype.parse=function(e,t){let n,r,o,u=e;if(u=u.trim(),!t&&e.split("#").length===1){const d=Qc.exec(u);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=Zc.exec(u);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,u=u.substr(a.length)),(t||a||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=u.substr(0,2)==="//",o&&!(a&&ui[a])&&(u=u.substr(2),this.slashes=!0)),!ui[a]&&(o||a&&!ri[a])){let d=-1;for(let h=0;h<ti.length;h++)r=u.indexOf(ti[h]),r!==-1&&(d===-1||r<d)&&(d=r);let f,l;d===-1?l=u.lastIndexOf("@"):l=u.lastIndexOf("@",d),l!==-1&&(f=u.slice(0,l),u=u.slice(l+1),this.auth=f),d=-1;for(let h=0;h<ei.length;h++)r=u.indexOf(ei[h]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=u.length),u[d-1]===":"&&d--;const p=u.slice(0,d);u=u.slice(d),this.parseHost(p),this.hostname=this.hostname||"";const m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){const h=this.hostname.split(/\./);for(let x=0,y=h.length;x<y;x++){const v=h[x];if(v&&!v.match(ni)){let g="";for(let b=0,A=v.length;b<A;b++)v.charCodeAt(b)>127?g+="x":g+=v[b];if(!g.match(ni)){const b=h.slice(0,x),A=h.slice(x+1),k=v.match(nl);k&&(b.push(k[1]),A.unshift(k[2])),A.length&&(u=A.join(".")+u),this.hostname=b.join(".");break}}}}this.hostname.length>tl&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=u.indexOf("#");s!==-1&&(this.hash=u.substr(s),u=u.slice(0,s));const c=u.indexOf("?");return c!==-1&&(this.search=u.substr(c),u=u.slice(0,c)),u&&(this.pathname=u),ri[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},_u.prototype.parseHost=function(e){let t=Yc.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 ul=Object.freeze(Object.defineProperty({__proto__:null,decode:on,encode:Ln,format:Cr,parse:Er},Symbol.toStringTag,{value:"Module"})),oi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ii=/[\0-\x1F\x7F-\x9F]/,rl=/[\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]/,_r=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,ai=/[\$\+<->\^`\|~\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]/,si=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ol=Object.freeze(Object.defineProperty({__proto__:null,Any:oi,Cc:ii,Cf:rl,P:_r,S:ai,Z:si},Symbol.toStringTag,{value:"Module"})),il=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),al=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Fr;const sl=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]]),cl=(Fr=String.fromCodePoint)!==null&&Fr!==void 0?Fr: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 ll(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=sl.get(e))!==null&&t!==void 0?t:e}var _e;(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"})(_e||(_e={}));const dl=32;var Lt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Lt||(Lt={}));function Sr(e){return e>=_e.ZERO&&e<=_e.NINE}function fl(e){return e>=_e.UPPER_A&&e<=_e.UPPER_F||e>=_e.LOWER_A&&e<=_e.LOWER_F}function hl(e){return e>=_e.UPPER_A&&e<=_e.UPPER_Z||e>=_e.LOWER_A&&e<=_e.LOWER_Z||Sr(e)}function pl(e){return e===_e.EQUALS||hl(e)}var Fe;(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"})(Fe||(Fe={}));var Ot;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ot||(Ot={}));class ml{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Fe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ot.Strict}startEntity(t){this.decodeMode=t,this.state=Fe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Fe.EntityStart:return t.charCodeAt(n)===_e.NUM?(this.state=Fe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Fe.NamedEntity,this.stateNamedEntity(t,n));case Fe.NumericStart:return this.stateNumericStart(t,n);case Fe.NumericDecimal:return this.stateNumericDecimal(t,n);case Fe.NumericHex:return this.stateNumericHex(t,n);case Fe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|dl)===_e.LOWER_X?(this.state=Fe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Fe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const u=r-n;this.result=this.result*Math.pow(o,u)+parseInt(t.substr(n,u),o),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Sr(o)||fl(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Sr(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,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===_e.SEMI)this.consumed+=1;else if(this.decodeMode===Ot.Strict)return 0;return this.emitCodePoint(ll(this.result),this.consumed),this.errors&&(t!==_e.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],u=(o&Lt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=gl(r,o,this.treeIndex+Math.max(1,u),a),this.treeIndex<0)return this.result===0||this.decodeMode===Ot.Attribute&&(u===0||pl(a))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],u=(o&Lt.VALUE_LENGTH)>>14,u!==0){if(a===_e.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Ot.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Lt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Lt.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Fe.NamedEntity:return this.result!==0&&(this.decodeMode!==Ot.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fe.NumericDecimal:return this.emitNumericEntity(0,2);case Fe.NumericHex:return this.emitNumericEntity(0,3);case Fe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fe.EntityStart:return 0}}}function ci(e){let t="";const n=new ml(e,r=>t+=cl(r));return function(o,u){let a=0,s=0;for(;(s=o.indexOf("&",s))>=0;){t+=o.slice(a,s),n.startEntity(u);const d=n.write(o,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const c=t+o.slice(a);return t="",c}}function gl(e,t,n,r){const o=(t&Lt.BRANCH_LENGTH)>>7,u=t&Lt.JUMP_TABLE;if(o===0)return u!==0&&r===u?n:-1;if(u){const c=r-u;return c<0||c>=o?-1:e[n+c]-1}let a=n,s=a+o-1;for(;a<=s;){const c=a+s>>>1,d=e[c];if(d<r)a=c+1;else if(d>r)s=c-1;else return e[c+o]}return-1}const bl=ci(il);ci(al);function li(e,t=Ot.Legacy){return bl(e,t)}function yl(e){return Object.prototype.toString.call(e)}function Dr(e){return yl(e)==="[object String]"}const xl=Object.prototype.hasOwnProperty;function Al(e,t){return xl.call(e,t)}function Fu(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 di(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Tr(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 Su(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 fi=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,wl=/&([a-z#][a-z0-9]{1,31});/gi,vl=new RegExp(fi.source+"|"+wl.source,"gi"),kl=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Cl(e,t){if(t.charCodeAt(0)===35&&kl.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Tr(r)?Su(r):e}const n=li(e);return n!==e?n:e}function El(e){return e.indexOf("\\")<0?e:e.replace(fi,"$1")}function an(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(vl,function(t,n,r){return n||Cl(t,r)})}const _l=/[&<>"]/,Fl=/[&<>"]/g,Sl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Dl(e){return Sl[e]}function It(e){return _l.test(e)?e.replace(Fl,Dl):e}const Tl=/[.?*+^$[\]\\(){}|-]/g;function Nl(e){return e.replace(Tl,"\\$&")}function le(e){switch(e){case 9:case 32:return!0}return!1}function On(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 In(e){return _r.test(e)||ai.test(e)}function Rn(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 Du(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Ll=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:di,assign:Fu,escapeHtml:It,escapeRE:Nl,fromCodePoint:Su,has:Al,isMdAsciiPunct:Rn,isPunctChar:In,isSpace:le,isString:Dr,isValidEntityCode:Tr,isWhiteSpace:On,lib:{mdurl:ul,ucmicro:ol},normalizeReference:Du,unescapeAll:an,unescapeMd:El},Symbol.toStringTag,{value:"Module"}));function Ol(e,t,n){let r,o,u,a;const s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(u=e.src.charCodeAt(e.pos),u===93&&(r--,r===0)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),u===91){if(a===e.pos-1)r++;else if(n)return e.pos=c,-1}}let d=-1;return o&&(d=e.pos),e.pos=c,d}function Il(e,t,n){let r,o=t;const u={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(r=e.charCodeAt(o),r===10||r===60)return u;if(r===62)return u.pos=o+1,u.str=an(e.slice(t+1,o)),u.ok=!0,u;if(r===92&&o+1<n){o+=2;continue}o++}return u}let a=0;for(;o<n&&(r=e.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(a++,a>32))return u;if(r===41){if(a===0)break;a--}o++}return t===o||a!==0||(u.str=an(e.slice(t,o)),u.pos=o,u.ok=!0),u}function Rl(e,t,n,r){let o,u=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(u>=n)return a;let s=e.charCodeAt(u);if(s!==34&&s!==39&&s!==40)return a;t++,u++,s===40&&(s=41),a.marker=s}for(;u<n;){if(o=e.charCodeAt(u),o===a.marker)return a.pos=u+1,a.str+=an(e.slice(t,u)),a.ok=!0,a;if(o===40&&a.marker===41)return a;o===92&&u+1<n&&u++,u++}return a.can_continue=!0,a.str+=an(e.slice(t,u)),a}const Ml=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Il,parseLinkLabel:Ol,parseLinkTitle:Rl},Symbol.toStringTag,{value:"Module"})),mt={};mt.code_inline=function(e,t,n,r,o){const u=e[t];return"<code"+o.renderAttrs(u)+">"+It(u.content)+"</code>"},mt.code_block=function(e,t,n,r,o){const u=e[t];return"<pre"+o.renderAttrs(u)+"><code>"+It(e[t].content)+`</code></pre>
3
- `},mt.fence=function(e,t,n,r,o){const u=e[t],a=u.info?an(u.info).trim():"";let s="",c="";if(a){const f=a.split(/(\s+)/g);s=f[0],c=f.slice(2).join("")}let d;if(n.highlight?d=n.highlight(u.content,s,c)||It(u.content):d=It(u.content),d.indexOf("<pre")===0)return d+`
4
- `;if(a){const f=u.attrIndex("class"),l=u.attrs?u.attrs.slice():[];f<0?l.push(["class",n.langPrefix+s]):(l[f]=l[f].slice(),l[f][1]+=" "+n.langPrefix+s);const p={attrs:l};return`<pre><code${o.renderAttrs(p)}>${d}</code></pre>
5
- `}return`<pre><code${o.renderAttrs(u)}>${d}</code></pre>
6
- `},mt.image=function(e,t,n,r,o){const u=e[t];return u.attrs[u.attrIndex("alt")][1]=o.renderInlineAsText(u.children,n,r),o.renderToken(e,t,n)},mt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
1
+ (function(N,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(N=typeof globalThis<"u"?globalThis:N||self,o(N.FarrisX={},N.vue))})(this,function(N,o){"use strict";var Mm=Object.defineProperty;var zc=N=>{throw TypeError(N)};var Bm=(N,o,be)=>o in N?Mm(N,o,{enumerable:!0,configurable:!0,writable:!0,value:be}):N[o]=be;var fe=(N,o,be)=>Bm(N,typeof o!="symbol"?o+"":o,be),Ki=(N,o,be)=>o.has(N)||zc("Cannot "+be);var A=(N,o,be)=>(Ki(N,o,"read from private field"),be?be.call(N):o.get(N)),oe=(N,o,be)=>o.has(N)?zc("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(N):o.set(N,be),ee=(N,o,be,at)=>(Ki(N,o,"write to private field"),at?at.call(N,be):o.set(N,be),be),q=(N,o,be)=>(Ki(N,o,"access private method"),be);var _u=(N,o,be,at)=>({set _(Sr){ee(N,o,Sr,be)},get _(){return A(N,o,at)}});var wc,Ft,En,vc,Ac,ot,Je,lt,un,dt,_n,Sn,ft,ke,ht,we,he,ne,$e,et,Ve,Se,mt,Fe,pt,gt,tt,nt,bt,Gt,Ue,Fn,G,Qi,on,Nt,Ar,rt,jc,an,Dn,kr,qt,Zt,Ji,Su,Fu,me,eo,_r,Yt,to,Tn;const be={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},at=o.defineComponent({name:"AppPreviewMessage",props:be,setup(e){const t=o.ref(!1);function n(){var m;const a=(m=e.content)==null?void 0:m.appConfig;if(!a)return"";const s=a.ws??"",c=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${c}&boId=${d}&ws=${s}&version=2.0#/home`}function u(){var s,c;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((c=e.content)==null?void 0:c.appName)})}function i(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function r(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:c,createdDatetime:d}=a;return o.createVNode("div",{class:"f-chat-message-app-preview"},[o.createVNode("div",{class:"f-chat-app-preview-message"},[s]),o.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:i,onClick:u,role:"button",tabindex:0,onKeydown:f=>f.key==="Enter"&&u()},[o.createVNode("div",{class:"f-chat-app-preview-card-left"},[o.createVNode("span",{class:"f-chat-app-preview-icon"},[o.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),o.createVNode("div",{class:"f-chat-app-preview-card-middle"},[o.createVNode("div",{class:"f-chat-app-preview-app-name"},[c]),o.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),o.createVNode("div",{class:"f-chat-app-preview-card-right"},[o.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&o.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:r,title:"在新页签中打开","aria-label":"在新页签中打开"},[o.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});at.install=e=>{e.component(at.name,at)};const Sr={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}},Du={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Hc="/api/runtime/attachment";function $c(){try{const e=Du==null?void 0:Du.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function Uc(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 Wc(e){return`${Hc}/${encodeURIComponent(e)}/download`}function Tu(e){const t=String(e??"").trim();if(!t)return"";const n=Wc(t),u=$c();return u?`${u}${n}`:n}function no(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 cn(e){const t=String(e.fileId??"").trim();if(t)return Tu(t);const n=String(e.url??"").trim();if(!n)return;const u=no(n);if(u)return Tu(u);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Fr(e,t){const n=String(t??"").replace(/[/\\]/g,"_").trim()||"download",u=Uc(e);try{const i=await fetch(u,{credentials:"include",mode:"cors"});if(!i.ok)throw new Error(`download_http_${i.status}`);const r=await i.blob(),a=URL.createObjectURL(r),s=document.createElement("a");s.href=a,s.download=n,s.rel="noopener noreferrer",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)}catch{const i=document.createElement("a");i.href=u,i.target="_blank",i.rel="noopener noreferrer",document.body.appendChild(i),i.click(),document.body.removeChild(i)}}function ye(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(u=>{e[u]=!0}):Array.isArray(t)?t.forEach(n=>{n&&(e[n]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([n,u])=>{n&&u&&(e[n]=!0)})),e}function Ae(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(u=>{var r,a;const i=u.split(":");if(i.length>=2&&((r=i[0])!=null&&r.trim())&&((a=i[1])!=null&&a.trim())){const s=i[0].trim(),c=i.slice(1).join(":").trim();e[s]=c}}):typeof t=="object"&&Object.entries(t).forEach(([n,u])=>{n&&u!==void 0&&u!==null&&(e[n]=u)})),e}function Rn(e){return e||null}function ro(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Dr(e){return e?typeof e!="string"?e:ro(e)?o.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-")?o.h("i",{class:e}):e:null}function uo(e,t,n,u={}){const{charInterval:i=30}=u,r=o.ref({});let a=[],s=new Set;const c=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(p=>clearInterval(p)),a=[]},l=()=>{f(),r.value={},s.clear()},m=()=>{f(),r.value={},s.clear()},g=()=>{const p=e();if(!p||Object.keys(p).length===0){r.value={};return}if(!d()){r.value={...p},s=new Set(Object.keys(p));return}const v=Object.keys(p);v.forEach(h=>{r.value.hasOwnProperty(h)||(r.value[h]="")});const x=v.filter(h=>!s.has(h));if(x.length===0)return;let k=0;const y=()=>{var E;if(k>=x.length)return;const h=x[k],b=p[h];if(!b){s.add(h),k++,y();return}let w=((E=r.value[h])==null?void 0:E.length)||0;const C=setInterval(()=>{w<b.length?(r.value={...r.value,[h]:b.slice(0,w+1)},w++):(clearInterval(C),a=a.filter(_=>_!==C),s.add(h),k++,y())},i);a.push(C)};y()};return o.watch(()=>e(),()=>{c()&&g()},{immediate:!0}),o.watch(n,()=>{m(),c()&&g()}),o.watch(t,p=>{p?g():l()}),o.onMounted(()=>{c()&&g()}),{displayContent:r}}function Tr(){const e=o.reactive({}),t=[],n=o.ref(null);let u=null;const i=30,r=p=>{const v=e[p];return!v||v.displayedLength>=v.rawValue.length},a=o.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(p=>r(p))),s=()=>{for(const p of t)if(!r(p))return p;return null},c=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const p=e[n.value];p&&(p.displayedLength<p.rawValue.length?(p.displayedLength++,p.displayedValue=p.rawValue.slice(0,p.displayedLength),p.isStreaming=!0):(p.isStreaming=!1,p.displayedValue=p.rawValue,n.value=s(),n.value||d()))},d=()=>{u&&(clearInterval(u),u=null)},f=()=>{u||(u=setInterval(c,i))},l=()=>{d(),Object.keys(e).forEach(p=>{delete e[p]}),t.length=0,n.value=null},m=(p,v)=>{if(e[p]){g(p,v);return}t.push(p),e[p]={rawValue:v??"",displayedLength:0,isStreaming:!1,displayedValue:""},u||(!n.value||n.value===p)&&f()},g=(p,v)=>{const x=e[p];if(!x){m(p,v);return}x.rawValue=v??"",!u&&!r(p)&&(!n.value||n.value===p)&&f()};return o.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(p=>p.isStreaming)},isAllDone:a,startStreaming:f,reset:l,registerProperty:m,updatePropertyValue:g}}function Nu(){const e=o.ref(null),t=o.ref(0),n=o.ref(!1);let u=null;const i=()=>{e.value=Date.now(),n.value=!0,u=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},r=()=>{u&&(clearInterval(u),u=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:i,stop:r,reset:()=>{r(),e.value=null,t.value=0,n.value=!1}}}function Gc(e,t){const n=o.computed(()=>{var i;return Ae({},(i=e.styles)==null?void 0:i.header)});function u(){return t.slots.header&&o.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[t.slots.header()])}return{renderHeader:u}}function Xc(e,t){var r;const n=o.ref(((r=e.content)==null?void 0:r.sender)??"发送人"),u=o.computed(()=>{var a;return Ae({},(a=e.styles)==null?void 0:a.header)});function i(){return o.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:u.value},[n.value])}return{renderHeader:i}}const qc={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Zc={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 Yc(){return{getFileIcon:u=>({pdf:"file-type-pdf",doc:"file-type-doc",docx:"file-type-doc",xls:"file-type-xls",xlsx:"file-type-xls",ppt:"file-type-ppt",pptx:"file-type-ppt",txt:"file-type-txt",zip:"file-type-zip",rar:"file-type-zip",image:"file-type-img",img:"file-type-img",md:"file-type-md",video:"file-type-any",audio:"file-type-any"})[u.toLowerCase()]||"file-type-any",formatFileName:u=>(u==null?void 0:u.replace(/\.[^.]+$/,""))??"",formatFileSize:u=>u<1024?u+" B":u<1048576?(u/1024).toFixed(1)+" KB":(u/1048576).toFixed(1)+" MB"}}const io=o.defineComponent({name:"FXBubbleAttachment",props:Zc,emits:["preview","batchPreview"],setup(e,t){const n=o.computed(()=>e.attachments??[]),u=o.computed(()=>{var m;return((m=n.value)==null?void 0:m.length)>0}),{formatFileName:i,formatFileSize:r}=Yc(),a=o.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),s=o.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth})),c=o.computed(()=>e.enableFixedWidth?{width:"200px"}:{flex:"0 0 calc(50% - 4px)"});function d(m,g){t.emit("preview",g)}async function f(m,g){m.stopPropagation(),m.preventDefault();const p=cn(g);p&&await Fr(p,g.name)}function l(m){t.emit("batchPreview",n.value)}return()=>u.value?o.createVNode("div",{class:"f-chat-bubble-attachments"},[n.value.map((m,g)=>{const p=cn(m);return o.createVNode("div",{class:"f-chat-bubble-attachment-item",style:c.value,key:g},[o.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation",onClick:v=>d(v,m)},[o.createVNode("div",{class:a.value},[o.createVNode("span",{class:s.value,title:m.name},[i(m.name)]),m.size?o.createVNode("span",{class:"f-chat-bubble-attachment-size"},[r(m.size)]):null])]),e.showDownloadButton!==!1&&p?o.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:v=>f(v,m)},[o.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}),e.enableBatchPreview&&o.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:l},[o.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[o.createTextVNode("查看全部文件")]),o.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),Kc=o.defineComponent({name:"FXBubbleFileContentFooter",props:qc,setup(e,t){const n=o.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ae({},e.customStyle),()=>o.createVNode(io,{attachments:n.value,onPreview:u=>{var i;return(i=e.onPreviewFile)==null?void 0:i.call(e,u)},onBatchPreview:u=>{var i;return(i=e.onBatchPreviewFile)==null?void 0:i.call(e,u)}},null)}}),Qc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},Jc=o.defineComponent({name:"FXBubblePageContentFooter",props:Qc,setup(e,t){const n=o.ref(),u=o.computed(()=>{var a,s;const r={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(r.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(r.height=`${e.customStyle.height}px`),r}),i=r=>{var a,s;((a=r.data)==null?void 0:a.type)==="navigation"&&((s=r.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(r.data.url)};return o.onMounted(()=>{window.addEventListener("message",i)}),o.onUnmounted(()=>{window.removeEventListener("message",i)}),()=>o.createVNode("iframe",{ref:n,src:e.pageUrl,style:u.value,scrolling:"auto"},null)}});function oo(){function e(i,r){const{fileContent:a,height:s,width:c}=i;return{file:a,customStyle:{width:c||"100%",height:s||"100%"},onPreviewFile:r==null?void 0:r.onPreviewFile,onBatchPreviewFile:r==null?void 0:r.onBatchPreviewFile}}function t(i,r){const{pageUrl:a,height:s,width:c}=i;return{pageUrl:a,customStyle:{width:c||"100%",height:s||"100%"},onNavigate:r==null?void 0:r.onNavigate}}function n(i,r){const a=e(i,r);return o.h(Kc,a)}function u(i,r){const a=t(i,r);return o.h(Jc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:u}}const el={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}};function tl(e){return e.replace(/```\s*\n+\s*assistant-widget/g,"``` assistant-widget")}function nl(e){if(!e)return!1;const t=/^```\s*assistant-widget[\s\S]*?```$/,n=/^```\s*assistant-widget/;return t.test(e)||n.test(e)}function rl(e){if(!e)return[];const t=/(```[\s]*assistant-widget[\s\S]*?```)/g,n=[];let u=0,i;for(;(i=t.exec(e))!==null;){if(i.index>u){const r=e.slice(u,i.index),a=/(```[\s]*assistant-widget)/,s=r.match(a);if(s){const c=r.indexOf(s[0]);c>0&&n.push(r.slice(0,c)),n.push(r.slice(c));const d=r.slice(c+s[0].length);d.trim().length>0&&n.push(d)}else n.push(r)}n.push(tl(i[0])),u=i.index+i[0].length}if(u<e.length){const r=e.slice(u),a=/(```[\s]*assistant-widget)/,s=r.match(a);if(s){const c=r.indexOf(s[0]);c>0&&n.push(r.slice(0,c)),n.push(r.slice(c))}else n.push(r)}return n.filter(r=>r.trim().length>0)}function ao(e){const t=e.replace("``` assistant-widget","").replace("```","").trim();try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function ul(e){var n;const t=ao(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const il=/^```\s*dynamic-component[\s\S]*?```$/,ol=/^```\s*dynamic-component/;function al(e){return e.replace(/```\s*\n*\s*dynamic-component/g,"``` dynamic-component")}function sl(e){return e?il.test(e)||ol.test(e):!1}function cl(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();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 u=n;return typeof u.instanceId!="string"?null:{...u,instanceId:u.instanceId,name:typeof u.name=="string"?u.name:void 0,componentId:typeof u.componentId=="string"?u.componentId:void 0,jsUrl:typeof u.jsUrl=="string"?u.jsUrl:"",url:typeof u.url=="string"?u.url:"",title:typeof u.title=="string"?u.title:"预览",position:u.position==="inline"?"inline":"right",width:typeof u.width=="string"?u.width:void 0,isFullscreen:typeof u.isFullscreen=="boolean"?u.isFullscreen:!1,autoOpen:typeof u.autoOpen=="boolean"?u.autoOpen:!1,fileRe:typeof u.fileRe=="string"?u.fileRe:void 0,target:u.target==="preview"||u.target==="previewExtra"?u.target:void 0}}function ll(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function dl(e){if(!e)return[];const t="``` dynamic-component",n="```",u=[];let i=0;for(;i<e.length;){const r=e.indexOf(t,i);if(r===-1){const g=e.slice(i);g&&u.push(g);break}let a=r+t.length;const s=e.lastIndexOf("```",r),c=s>=0&&s<r+3?s:r,d=e.slice(i,c);d&&u.push(d);const f=e.indexOf(n,a);if(f===-1){u.push(e.slice(c));break}const l=f+n.length,m=e.slice(c,l);u.push(al(m)),i=l}return u.filter(r=>r.length>0)}var Oe=(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))(Oe||{});function fl(e){var i;if(!e)return[];const t=[],n=new Set,u=rl(e);for(const r of u)if(nl(r))if(r.endsWith("```")){const a=ao(r);t.push({type:Oe.AssistantWidgetComplete,raw:r,widgetData:a,widgetUrl:(i=a==null?void 0:a.renderer)==null?void 0:i.url,widgetImplOptions:ul(r)})}else t.push({type:Oe.AssistantWidgetPending,raw:r});else{const a=dl(r);for(const s of a)if(sl(s))if(s.endsWith("```")){const c=cl(s);if(c!=null&&c.instanceId){if(n.has(c.instanceId))continue;n.add(c.instanceId),t.push({type:Oe.DynamicComponentComplete,raw:s,config:c})}}else{const c=ll(s);t.push({type:Oe.DynamicComponentPending,raw:s,position:(c==null?void 0:c.position)??null})}else s.trim()&&t.push({type:Oe.Text,raw:s})}return t}const so={};function hl(e){let t=so[e];if(t)return t;t=so[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function ln(e,t){typeof t!="string"&&(t=ln.defaultChars);const n=hl(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let i="";for(let r=0,a=u.length;r<a;r+=3){const s=parseInt(u.slice(r+1,r+3),16);if(s<128){i+=n[s];continue}if((s&224)===192&&r+3<a){const c=parseInt(u.slice(r+4,r+6),16);if((c&192)===128){const d=s<<6&1984|c&63;d<128?i+="��":i+=String.fromCharCode(d),r+=3;continue}}if((s&240)===224&&r+6<a){const c=parseInt(u.slice(r+4,r+6),16),d=parseInt(u.slice(r+7,r+9),16);if((c&192)===128&&(d&192)===128){const f=s<<12&61440|c<<6&4032|d&63;f<2048||f>=55296&&f<=57343?i+="���":i+=String.fromCharCode(f),r+=6;continue}}if((s&248)===240&&r+9<a){const c=parseInt(u.slice(r+4,r+6),16),d=parseInt(u.slice(r+7,r+9),16),f=parseInt(u.slice(r+10,r+12),16);if((c&192)===128&&(d&192)===128&&(f&192)===128){let l=s<<18&1835008|c<<12&258048|d<<6&4032|f&63;l<65536||l>1114111?i+="����":(l-=65536,i+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),r+=9;continue}}i+="�"}return i})}ln.defaultChars=";/?:@&=+$,#",ln.componentChars="";const co={};function ml(e){let t=co[e];if(t)return t;t=co[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):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 Vn(e,t,n){typeof t!="string"&&(n=t,t=Vn.defaultChars),typeof n>"u"&&(n=!0);const u=ml(t);let i="";for(let r=0,a=e.length;r<a;r++){const s=e.charCodeAt(r);if(n&&s===37&&r+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){i+=e.slice(r,r+3),r+=2;continue}if(s<128){i+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<a){const c=e.charCodeAt(r+1);if(c>=56320&&c<=57343){i+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[r])}return i}Vn.defaultChars=";/?:@&=+$,-_.!~*'()#",Vn.componentChars="-_.!~*'()";function Lu(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 Nr(){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 pl=/^([a-z0-9.+-]+:)/i,gl=/:[0-9]*$/,bl=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yl=["<",">",'"',"`"," ","\r",`
2
+ `," "],xl=["{","}","|","\\","^","`"].concat(yl),wl=["'"].concat(xl),lo=["%","/","?",";","#"].concat(wl),fo=["/","?","#"],vl=255,ho=/^[+a-z0-9A-Z_-]{0,63}$/,Al=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mo={javascript:!0,"javascript:":!0},po={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Iu(e,t){if(e&&e instanceof Nr)return e;const n=new Nr;return n.parse(e,t),n}Nr.prototype.parse=function(e,t){let n,u,i,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const d=bl.exec(r);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=pl.exec(r);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,r=r.substr(a.length)),(t||a||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=r.substr(0,2)==="//",i&&!(a&&mo[a])&&(r=r.substr(2),this.slashes=!0)),!mo[a]&&(i||a&&!po[a])){let d=-1;for(let p=0;p<fo.length;p++)u=r.indexOf(fo[p]),u!==-1&&(d===-1||u<d)&&(d=u);let f,l;d===-1?l=r.lastIndexOf("@"):l=r.lastIndexOf("@",d),l!==-1&&(f=r.slice(0,l),r=r.slice(l+1),this.auth=f),d=-1;for(let p=0;p<lo.length;p++)u=r.indexOf(lo[p]),u!==-1&&(d===-1||u<d)&&(d=u);d===-1&&(d=r.length),r[d-1]===":"&&d--;const m=r.slice(0,d);r=r.slice(d),this.parseHost(m),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const p=this.hostname.split(/\./);for(let v=0,x=p.length;v<x;v++){const k=p[v];if(k&&!k.match(ho)){let y="";for(let h=0,b=k.length;h<b;h++)k.charCodeAt(h)>127?y+="x":y+=k[h];if(!y.match(ho)){const h=p.slice(0,v),b=p.slice(v+1),w=k.match(Al);w&&(h.push(w[1]),b.unshift(w[2])),b.length&&(r=b.join(".")+r),this.hostname=h.join(".");break}}}}this.hostname.length>vl&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=r.indexOf("#");s!==-1&&(this.hash=r.substr(s),r=r.slice(0,s));const c=r.indexOf("?");return c!==-1&&(this.search=r.substr(c),r=r.slice(0,c)),r&&(this.pathname=r),po[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Nr.prototype.parseHost=function(e){let t=gl.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 kl=Object.freeze(Object.defineProperty({__proto__:null,decode:ln,encode:Vn,format:Lu,parse:Iu},Symbol.toStringTag,{value:"Module"})),go=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,bo=/[\0-\x1F\x7F-\x9F]/,Cl=/[\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]/,Ou=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,yo=/[\$\+<->\^`\|~\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]/,xo=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,El=Object.freeze(Object.defineProperty({__proto__:null,Any:go,Cc:bo,Cf:Cl,P:Ou,S:yo,Z:xo},Symbol.toStringTag,{value:"Module"})),_l=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Sl=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Pu;const Fl=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]]),Dl=(Pu=String.fromCodePoint)!==null&&Pu!==void 0?Pu: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 Tl(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Fl.get(e))!==null&&t!==void 0?t:e}var Ee;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ee||(Ee={}));const Nl=32;var Rt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Rt||(Rt={}));function Ru(e){return e>=Ee.ZERO&&e<=Ee.NINE}function Ll(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_F||e>=Ee.LOWER_A&&e<=Ee.LOWER_F}function Il(e){return e>=Ee.UPPER_A&&e<=Ee.UPPER_Z||e>=Ee.LOWER_A&&e<=Ee.LOWER_Z||Ru(e)}function Ol(e){return e===Ee.EQUALS||Il(e)}var _e;(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"})(_e||(_e={}));var Vt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Vt||(Vt={}));class Pl{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=_e.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vt.Strict}startEntity(t){this.decodeMode=t,this.state=_e.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case _e.EntityStart:return t.charCodeAt(n)===Ee.NUM?(this.state=_e.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=_e.NamedEntity,this.stateNamedEntity(t,n));case _e.NumericStart:return this.stateNumericStart(t,n);case _e.NumericDecimal:return this.stateNumericDecimal(t,n);case _e.NumericHex:return this.stateNumericHex(t,n);case _e.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Nl)===Ee.LOWER_X?(this.state=_e.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=_e.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,i){if(n!==u){const r=u-n;this.result=this.result*Math.pow(i,r)+parseInt(t.substr(n,r),i),this.consumed+=r}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ru(i)||Ll(i))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ru(i))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ee.SEMI)this.consumed+=1;else if(this.decodeMode===Vt.Strict)return 0;return this.emitCodePoint(Tl(this.result),this.consumed),this.errors&&(t!==Ee.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let i=u[this.treeIndex],r=(i&Rt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Rl(u,i,this.treeIndex+Math.max(1,r),a),this.treeIndex<0)return this.result===0||this.decodeMode===Vt.Attribute&&(r===0||Ol(a))?0:this.emitNotTerminatedNamedEntity();if(i=u[this.treeIndex],r=(i&Rt.VALUE_LENGTH)>>14,r!==0){if(a===Ee.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==Vt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,i=(u[n]&Rt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Rt.VALUE_LENGTH:i[t+1],u),n===3&&this.emitCodePoint(i[t+2],u),u}end(){var t;switch(this.state){case _e.NamedEntity:return this.result!==0&&(this.decodeMode!==Vt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _e.NumericDecimal:return this.emitNumericEntity(0,2);case _e.NumericHex:return this.emitNumericEntity(0,3);case _e.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _e.EntityStart:return 0}}}function wo(e){let t="";const n=new Pl(e,u=>t+=Dl(u));return function(i,r){let a=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(a,s),n.startEntity(r);const d=n.write(i,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const c=t+i.slice(a);return t="",c}}function Rl(e,t,n,u){const i=(t&Rt.BRANCH_LENGTH)>>7,r=t&Rt.JUMP_TABLE;if(i===0)return r!==0&&u===r?n:-1;if(r){const c=u-r;return c<0||c>=i?-1:e[n+c]-1}let a=n,s=a+i-1;for(;a<=s;){const c=a+s>>>1,d=e[c];if(d<u)a=c+1;else if(d>u)s=c-1;else return e[c+i]}return-1}const Vl=wo(_l);wo(Sl);function vo(e,t=Vt.Legacy){return Vl(e,t)}function Ml(e){return Object.prototype.toString.call(e)}function Vu(e){return Ml(e)==="[object String]"}const Bl=Object.prototype.hasOwnProperty;function zl(e,t){return Bl.call(e,t)}function Lr(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(u){e[u]=n[u]})}}),e}function Ao(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Mu(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 Ir(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 ko=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,jl=/&([a-z#][a-z0-9]{1,31});/gi,Hl=new RegExp(ko.source+"|"+jl.source,"gi"),$l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ul(e,t){if(t.charCodeAt(0)===35&&$l.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Mu(u)?Ir(u):e}const n=vo(e);return n!==e?n:e}function Wl(e){return e.indexOf("\\")<0?e:e.replace(ko,"$1")}function dn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Hl,function(t,n,u){return n||Ul(t,u)})}const Gl=/[&<>"]/,Xl=/[&<>"]/g,ql={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Zl(e){return ql[e]}function Mt(e){return Gl.test(e)?e.replace(Xl,Zl):e}const Yl=/[.?*+^$[\]\\(){}|-]/g;function Kl(e){return e.replace(Yl,"\\$&")}function le(e){switch(e){case 9:case 32:return!0}return!1}function Mn(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 Bn(e){return Ou.test(e)||yo.test(e)}function zn(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 Or(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Ql=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ao,assign:Lr,escapeHtml:Mt,escapeRE:Kl,fromCodePoint:Ir,has:zl,isMdAsciiPunct:zn,isPunctChar:Bn,isSpace:le,isString:Vu,isValidEntityCode:Mu,isWhiteSpace:Mn,lib:{mdurl:kl,ucmicro:El},normalizeReference:Or,unescapeAll:dn,unescapeMd:Wl},Symbol.toStringTag,{value:"Module"}));function Jl(e,t,n){let u,i,r,a;const s=e.posMax,c=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(r=e.src.charCodeAt(e.pos),r===93&&(u--,u===0)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),r===91){if(a===e.pos-1)u++;else if(n)return e.pos=c,-1}}let d=-1;return i&&(d=e.pos),e.pos=c,d}function e0(e,t,n){let u,i=t;const r={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(u=e.charCodeAt(i),u===10||u===60)return r;if(u===62)return r.pos=i+1,r.str=dn(e.slice(t+1,i)),r.ok=!0,r;if(u===92&&i+1<n){i+=2;continue}i++}return r}let a=0;for(;i<n&&(u=e.charCodeAt(i),!(u===32||u<32||u===127));){if(u===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(u===40&&(a++,a>32))return r;if(u===41){if(a===0)break;a--}i++}return t===i||a!==0||(r.str=dn(e.slice(t,i)),r.pos=i,r.ok=!0),r}function t0(e,t,n,u){let i,r=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)a.str=u.str,a.marker=u.marker;else{if(r>=n)return a;let s=e.charCodeAt(r);if(s!==34&&s!==39&&s!==40)return a;t++,r++,s===40&&(s=41),a.marker=s}for(;r<n;){if(i=e.charCodeAt(r),i===a.marker)return a.pos=r+1,a.str+=dn(e.slice(t,r)),a.ok=!0,a;if(i===40&&a.marker===41)return a;i===92&&r+1<n&&r++,r++}return a.can_continue=!0,a.str+=dn(e.slice(t,r)),a}const n0=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:e0,parseLinkLabel:Jl,parseLinkTitle:t0},Symbol.toStringTag,{value:"Module"})),xt={};xt.code_inline=function(e,t,n,u,i){const r=e[t];return"<code"+i.renderAttrs(r)+">"+Mt(r.content)+"</code>"},xt.code_block=function(e,t,n,u,i){const r=e[t];return"<pre"+i.renderAttrs(r)+"><code>"+Mt(e[t].content)+`</code></pre>
3
+ `},xt.fence=function(e,t,n,u,i){const r=e[t],a=r.info?dn(r.info).trim():"";let s="",c="";if(a){const f=a.split(/(\s+)/g);s=f[0],c=f.slice(2).join("")}let d;if(n.highlight?d=n.highlight(r.content,s,c)||Mt(r.content):d=Mt(r.content),d.indexOf("<pre")===0)return d+`
4
+ `;if(a){const f=r.attrIndex("class"),l=r.attrs?r.attrs.slice():[];f<0?l.push(["class",n.langPrefix+s]):(l[f]=l[f].slice(),l[f][1]+=" "+n.langPrefix+s);const m={attrs:l};return`<pre><code${i.renderAttrs(m)}>${d}</code></pre>
5
+ `}return`<pre><code${i.renderAttrs(r)}>${d}</code></pre>
6
+ `},xt.image=function(e,t,n,u,i){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=i.renderInlineAsText(r.children,n,u),i.renderToken(e,t,n)},xt.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
7
7
  `:`<br>
8
- `},mt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
8
+ `},xt.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
9
9
  `:`<br>
10
10
  `:`
11
- `},mt.text=function(e,t){return It(e[t].content)},mt.html_block=function(e,t){return e[t].content},mt.html_inline=function(e,t){return e[t].content};function sn(){this.rules=Fu({},mt)}sn.prototype.renderAttrs=function(t){let n,r,o;if(!t.attrs)return"";for(o="",n=0,r=t.attrs.length;n<r;n++)o+=" "+It(t.attrs[n][0])+'="'+It(t.attrs[n][1])+'"';return o},sn.prototype.renderToken=function(t,n,r){const o=t[n];let u="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(u+=`
12
- `),u+=(o.nesting===-1?"</":"<")+o.tag,u+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(u+=" /");let a=!1;if(o.block&&(a=!0,o.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===o.tag)&&(a=!1)}return u+=a?`>
13
- `:">",u},sn.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let u=0,a=e.length;u<a;u++){const s=e[u].type;typeof o[s]<"u"?r+=o[s](e,u,t,n,this):r+=this.renderToken(e,u,t)}return r},sn.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,u=e.length;o<u;o++)switch(e[o].type){case"text":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":r+=e[o].content;break;case"softbreak":case"hardbreak":r+=`
14
- `;break}return r},sn.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let u=0,a=e.length;u<a;u++){const s=e[u].type;s==="inline"?r+=this.renderInline(e[u].children,t,n):typeof o[s]<"u"?r+=o[s](e,u,t,n,this):r+=this.renderToken(e,u,t,n)}return r};function $e(){this.__rules__=[],this.__cache__=null}$e.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},$e.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})},$e.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},$e.prototype.before=function(e,t,n,r){const o=this.__find__(e),u=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:u.alt||[]}),this.__cache__=null},$e.prototype.after=function(e,t,n,r){const o=this.__find__(e),u=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:u.alt||[]}),this.__cache__=null},$e.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},$e.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n},$e.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},$e.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n},$e.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function rt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}rt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===t)return r;return-1},rt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},rt.prototype.attrSet=function(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o},rt.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r},rt.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function hi(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}hi.prototype.Token=rt;const Pl=/\r\n?|\n/g,Vl=/\0/g;function Bl(e){let t;t=e.src.replace(Pl,`
15
- `),t=t.replace(Vl,"�"),e.src=t}function zl(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 jl(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function Hl(e){return/^<a[>\s]/i.test(e)}function $l(e){return/^<\/a\s*>/i.test(e)}function Ul(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 o=t[n].children,u=0;for(let a=o.length-1;a>=0;a--){const s=o[a];if(s.type==="link_close"){for(a--;o[a].level!==s.level&&o[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Hl(s.content)&&u>0&&u--,$l(s.content)&&u++),!(u>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const c=s.content;let d=e.md.linkify.match(c);const f=[];let l=s.level,p=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let m=0;m<d.length;m++){const h=d[m].url,x=e.md.normalizeLink(h);if(!e.md.validateLink(x))continue;let y=d[m].text;d[m].schema?d[m].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,"");const v=d[m].index;if(v>p){const k=new e.Token("text","",0);k.content=c.slice(p,v),k.level=l,f.push(k)}const g=new e.Token("link_open","a",1);g.attrs=[["href",x]],g.level=l++,g.markup="linkify",g.info="auto",f.push(g);const b=new e.Token("text","",0);b.content=y,b.level=l,f.push(b);const A=new e.Token("link_close","a",-1);A.level=--l,A.markup="linkify",A.info="auto",f.push(A),p=d[m].lastIndex}if(p<c.length){const m=new e.Token("text","",0);m.content=c.slice(p),m.level=l,f.push(m)}t[n].children=o=di(o,a,f)}}}}const pi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Wl=/\((c|tm|r)\)/i,Gl=/\((c|tm|r)\)/ig,ql={c:"©",r:"®",tm:"™"};function Xl(e,t){return ql[t.toLowerCase()]}function Zl(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(Gl,Xl)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Yl(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&pi.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 Ql(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Wl.test(e.tokens[t].content)&&Zl(e.tokens[t].children),pi.test(e.tokens[t].content)&&Yl(e.tokens[t].children))}const Kl=/['"]/,mi=/['"]/g,gi="’";function Tu(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Jl(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const u=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,u.type!=="text")continue;let s=u.content,c=0,d=s.length;e:for(;c<d;){mi.lastIndex=c;const f=mi.exec(s);if(!f)break;let l=!0,p=!0;c=f.index+1;const m=f[0]==="'";let h=32;if(f.index-1>=0)h=s.charCodeAt(f.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let x=32;if(c<d)x=s.charCodeAt(c);else for(n=o+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 y=Rn(h)||In(String.fromCharCode(h)),v=Rn(x)||In(String.fromCharCode(x)),g=On(h),b=On(x);if(b?l=!1:v&&(g||y||(l=!1)),g?p=!1:y&&(b||v||(p=!1)),x===34&&f[0]==='"'&&h>=48&&h<=57&&(p=l=!1),l&&p&&(l=y,p=v),!l&&!p){m&&(u.content=Tu(u.content,f.index,gi));continue}if(p)for(n=r.length-1;n>=0;n--){let A=r[n];if(r[n].level<a)break;if(A.single===m&&r[n].level===a){A=r[n];let k,F;m?(k=t.md.options.quotes[2],F=t.md.options.quotes[3]):(k=t.md.options.quotes[0],F=t.md.options.quotes[1]),u.content=Tu(u.content,f.index,F),e[A.token].content=Tu(e[A.token].content,A.pos,k),c+=F.length-1,A.token===o&&(c+=k.length-1),s=u.content,d=s.length,r.length=n;continue e}}l?r.push({token:o,pos:f.index,single:m,level:a}):p&&m&&(u.content=Tu(u.content,f.index,gi))}}}function e0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Kl.test(e.tokens[t].content)||Jl(e.tokens[t].children,e)}function t0(e){let t,n;const r=e.tokens,o=r.length;for(let u=0;u<o;u++){if(r[u].type!=="inline")continue;const a=r[u].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 Nr=[["normalize",Bl],["block",zl],["inline",jl],["linkify",Ul],["replacements",Ql],["smartquotes",e0],["text_join",t0]];function Lr(){this.ruler=new $e;for(let e=0;e<Nr.length;e++)this.ruler.push(Nr[e][0],Nr[e][1])}Lr.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},Lr.prototype.State=hi;function gt(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 o=this.src;for(let u=0,a=0,s=0,c=0,d=o.length,f=!1;a<d;a++){const l=o.charCodeAt(a);if(!f)if(le(l)){s++,l===9?c+=4-c%4:c++;continue}else f=!0;(l===10||a===d-1)&&(l!==10&&a++,this.bMarks.push(u),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),f=!1,s=0,c=0,u=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}gt.prototype.push=function(e,t,n){const r=new rt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},gt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},gt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},gt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!le(r))break}return t},gt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!le(this.src.charCodeAt(--t)))return t+1;return t},gt.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},gt.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},gt.prototype.getLines=function(t,n,r,o){if(t>=n)return"";const u=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let c=0;const d=this.bMarks[s];let f=d,l;for(s+1<n||o?l=this.eMarks[s]+1:l=this.eMarks[s];f<l&&c<r;){const p=this.src.charCodeAt(f);if(le(p))p===9?c+=4-(c+this.bsCount[s])%4:c++;else if(f-d<this.tShift[s])c++;else break;f++}c>r?u[a]=new Array(c-r+1).join(" ")+this.src.slice(f,l):u[a]=this.src.slice(f,l)}return u.join("")},gt.prototype.Token=rt;const n0=65536;function Or(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function bi(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),u=!1,a=0,s="";for(;r<n;)o===124&&(u?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),u=o===92,r++,o=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function u0(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let u=e.bMarks[o]+e.tShift[o];if(u>=e.eMarks[o])return!1;const a=e.src.charCodeAt(u++);if(a!==124&&a!==45&&a!==58||u>=e.eMarks[o])return!1;const s=e.src.charCodeAt(u++);if(s!==124&&s!==45&&s!==58&&!le(s)||a===45&&le(s))return!1;for(;u<e.eMarks[o];){const A=e.src.charCodeAt(u);if(A!==124&&A!==45&&A!==58&&!le(A))return!1;u++}let c=Or(e,t+1),d=c.split("|");const f=[];for(let A=0;A<d.length;A++){const k=d[A].trim();if(!k){if(A===0||A===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?f.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?f.push("left"):f.push("")}if(c=Or(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=bi(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const l=d.length;if(l===0||l!==f.length)return!1;if(r)return!0;const p=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),x=[t,0];h.map=x;const y=e.push("thead_open","thead",1);y.map=[t,t+1];const v=e.push("tr_open","tr",1);v.map=[t,t+1];for(let A=0;A<d.length;A++){const k=e.push("th_open","th",1);f[A]&&(k.attrs=[["style","text-align:"+f[A]]]);const F=e.push("inline","",0);F.content=d[A].trim(),F.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g,b=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let A=!1;for(let F=0,_=m.length;F<_;F++)if(m[F](e,o,n,!0)){A=!0;break}if(A||(c=Or(e,o).trim(),!c)||e.sCount[o]-e.blkIndent>=4||(d=bi(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),b+=l-d.length,b>n0))break;if(o===t+2){const F=e.push("tbody_open","tbody",1);F.map=g=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[o,o+1];for(let F=0;F<l;F++){const _=e.push("td_open","td",1);f[F]&&(_.attrs=[["style","text-align:"+f[F]]]);const E=e.push("inline","",0);E.content=d[F]?d[F].trim():"",E.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return g&&(e.push("tbody_close","tbody",-1),g[1]=o),e.push("table_close","table",-1),x[1]=o,e.parentType=p,e.line=o,!0}function r0(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;const u=e.push("code_block","code",0);return u.content=e.getLines(t,o,4+e.blkIndent,!1)+`
16
- `,u.map=[t,e.line],!0}function o0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>u)return!1;const a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let s=o;o=e.skipChars(o,a);let c=o-s;if(c<3)return!1;const d=e.src.slice(s,o),f=e.src.slice(o,u);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let l=t,p=!1;for(;l++,!(l>=n||(o=s=e.bMarks[l]+e.tShift[l],u=e.eMarks[l],o<u&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[l]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-s<c)&&(o=e.skipSpaces(o),!(o<u)))){p=!0;break}c=e.sCount[t],e.line=l+(p?1:0);const m=e.push("fence","code",0);return m.info=f,m.content=e.getLines(t+1,l,c,!0),m.markup=d,m.map=[t,e.line],!0}function i0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const s=[],c=[],d=[],f=[],l=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let m=!1,h;for(h=t;h<n;h++){const b=e.sCount[h]<e.blkIndent;if(o=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],o>=u)break;if(e.src.charCodeAt(o++)===62&&!b){let k=e.sCount[h]+1,F,_;e.src.charCodeAt(o)===32?(o++,k++,_=!1,F=!0):e.src.charCodeAt(o)===9?(F=!0,(e.bsCount[h]+k)%4===3?(o++,k++,_=!1):_=!0):F=!1;let E=k;for(s.push(e.bMarks[h]),e.bMarks[h]=o;o<u;){const $=e.src.charCodeAt(o);if(le($))$===9?E+=4-(E+e.bsCount[h]+(_?1:0))%4:E++;else break;o++}m=o>=u,c.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(F?1:0),d.push(e.sCount[h]),e.sCount[h]=E-k,f.push(e.tShift[h]),e.tShift[h]=o-e.bMarks[h];continue}if(m)break;let A=!1;for(let k=0,F=l.length;k<F;k++)if(l[k](e,h,n,!0)){A=!0;break}if(A){e.lineMax=h,e.blkIndent!==0&&(s.push(e.bMarks[h]),c.push(e.bsCount[h]),f.push(e.tShift[h]),d.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),c.push(e.bsCount[h]),f.push(e.tShift[h]),d.push(e.sCount[h]),e.sCount[h]=-1}const x=e.blkIndent;e.blkIndent=0;const y=e.push("blockquote_open","blockquote",1);y.markup=">";const v=[t,0];y.map=v,e.md.block.tokenize(e,t,h);const g=e.push("blockquote_close","blockquote",-1);g.markup=">",e.lineMax=a,e.parentType=p,v[1]=e.line;for(let b=0;b<f.length;b++)e.bMarks[b+t]=s[b],e.tShift[b+t]=f[b],e.sCount[b+t]=d[b],e.bsCount[b+t]=c[b];return e.blkIndent=x,!0}function a0(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(u++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;u<o;){const d=e.src.charCodeAt(u++);if(d!==a&&!le(d))return!1;d===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(a)),!0}function yi(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){const u=e.src.charCodeAt(r);if(!le(u))return-1}return r}function xi(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let u=e.src.charCodeAt(o++);if(u<48||u>57)return-1;for(;;){if(o>=r)return-1;if(u=e.src.charCodeAt(o++),u>=48&&u<=57){if(o-n>=10)return-1;continue}if(u===41||u===46)break;return-1}return o<r&&(u=e.src.charCodeAt(o),!le(u))?-1:o}function s0(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;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 c0(e,t,n,r){let o,u,a,s,c=t,d=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(f=!0);let l,p,m;if((m=xi(e,c))>=0){if(l=!0,a=e.bMarks[c]+e.tShift[c],p=Number(e.src.slice(a,m-1)),f&&p!==1)return!1}else if((m=yi(e,c))>=0)l=!1;else return!1;if(f&&e.skipSpaces(m)>=e.eMarks[c])return!1;if(r)return!0;const h=e.src.charCodeAt(m-1),x=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);const y=[c,0];s.map=y,s.markup=String.fromCharCode(h);let v=!1;const g=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";c<n;){u=m,o=e.eMarks[c];const A=e.sCount[c]+m-(e.bMarks[c]+e.tShift[c]);let k=A;for(;u<o;){const j=e.src.charCodeAt(u);if(j===9)k+=4-(k+e.bsCount[c])%4;else if(j===32)k++;else break;u++}const F=u;let _;F>=o?_=1:_=k-A,_>4&&(_=1);const E=A+_;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const $=[c,0];s.map=$,l&&(s.info=e.src.slice(a,m-1));const R=e.tight,O=e.tShift[c],P=e.sCount[c],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=E,e.tight=!0,e.tShift[c]=F-e.bMarks[c],e.sCount[c]=k,F>=o&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||v)&&(d=!1),v=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[c]=O,e.sCount[c]=P,e.tight=R,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),c=e.line,$[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let z=!1;for(let j=0,T=g.length;j<T;j++)if(g[j](e,c,n,!0)){z=!0;break}if(z)break;if(l){if(m=xi(e,c),m<0)break;a=e.bMarks[c]+e.tShift[c]}else if(m=yi(e,c),m<0)break;if(h!==e.src.charCodeAt(m-1))break}return l?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(h),y[1]=c,e.line=c,e.parentType=b,d&&s0(e,x),!0}function l0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function s(g){const b=e.lineMax;if(g>=b||e.isEmpty(g))return null;let A=!1;if(e.sCount[g]-e.blkIndent>3&&(A=!0),e.sCount[g]<0&&(A=!0),!A){const _=e.md.block.ruler.getRules("reference"),E=e.parentType;e.parentType="reference";let $=!1;for(let R=0,O=_.length;R<O;R++)if(_[R](e,g,b,!0)){$=!0;break}if(e.parentType=E,$)return null}const k=e.bMarks[g]+e.tShift[g],F=e.eMarks[g];return e.src.slice(k,F+1)}let c=e.src.slice(o,u+1);u=c.length;let d=-1;for(o=1;o<u;o++){const g=c.charCodeAt(o);if(g===91)return!1;if(g===93){d=o;break}else if(g===10){const b=s(a);b!==null&&(c+=b,u=c.length,a++)}else if(g===92&&(o++,o<u&&c.charCodeAt(o)===10)){const b=s(a);b!==null&&(c+=b,u=c.length,a++)}}if(d<0||c.charCodeAt(d+1)!==58)return!1;for(o=d+2;o<u;o++){const g=c.charCodeAt(o);if(g===10){const b=s(a);b!==null&&(c+=b,u=c.length,a++)}else if(!le(g))break}const f=e.md.helpers.parseLinkDestination(c,o,u);if(!f.ok)return!1;const l=e.md.normalizeLink(f.str);if(!e.md.validateLink(l))return!1;o=f.pos;const p=o,m=a,h=o;for(;o<u;o++){const g=c.charCodeAt(o);if(g===10){const b=s(a);b!==null&&(c+=b,u=c.length,a++)}else if(!le(g))break}let x=e.md.helpers.parseLinkTitle(c,o,u);for(;x.can_continue;){const g=s(a);if(g===null)break;c+=g,o=u,u=c.length,a++,x=e.md.helpers.parseLinkTitle(c,o,u,x)}let y;for(o<u&&h!==o&&x.ok?(y=x.str,o=x.pos):(y="",o=p,a=m);o<u;){const g=c.charCodeAt(o);if(!le(g))break;o++}if(o<u&&c.charCodeAt(o)!==10&&y)for(y="",o=p,a=m;o<u;){const g=c.charCodeAt(o);if(!le(g))break;o++}if(o<u&&c.charCodeAt(o)!==10)return!1;const v=Du(c.slice(1,d));return v?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[v]>"u"&&(e.env.references[v]={title:y,href:l}),e.line=a),!0):!1}const d0=["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"],f0="[a-zA-Z_:][a-zA-Z0-9:._-]*",h0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ai="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+f0+"(?:\\s*=\\s*"+h0+")?)")+"*\\s*\\/?>",wi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",p0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",m0="<[?][\\s\\S]*?[?]>",g0="<![A-Za-z][^>]*>",b0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",y0=new RegExp("^(?:"+Ai+"|"+wi+"|"+p0+"|"+m0+"|"+g0+"|"+b0+")"),x0=new RegExp("^(?:"+Ai+"|"+wi+")"),cn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+d0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(x0.source+"\\s*$"),/^$/,!1]];function A0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,u),s=0;for(;s<cn.length&&!cn[s][0].test(a);s++);if(s===cn.length)return!1;if(r)return cn[s][2];let c=t+1;if(!cn[s][1].test(a)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(o=e.bMarks[c]+e.tShift[c],u=e.eMarks[c],a=e.src.slice(o,u),cn[s][1].test(a)){a.length!==0&&c++;break}}e.line=c;const d=e.push("html_block","",0);return d.map=[t,c],d.content=e.getLines(t,c,e.blkIndent,!0),!0}function w0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=u)return!1;let s=1;for(a=e.src.charCodeAt(++o);a===35&&o<u&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<u&&!le(a))return!1;if(r)return!0;u=e.skipSpacesBack(u,o);const c=e.skipCharsBack(u,35,o);c>o&&le(e.src.charCodeAt(c-1))&&(u=c),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(o,u).trim(),f.map=[t,e.line],f.children=[];const l=e.push("heading_close","h"+String(s),-1);return l.markup="########".slice(0,s),!0}function v0(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let u=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 m=e.bMarks[s]+e.tShift[s];const h=e.eMarks[s];if(m<h&&(a=e.src.charCodeAt(m),(a===45||a===61)&&(m=e.skipChars(m,a),m=e.skipSpaces(m),m>=h))){u=a===61?1:2;break}}if(e.sCount[s]<0)continue;let p=!1;for(let m=0,h=r.length;m<h;m++)if(r[m](e,s,n,!0)){p=!0;break}if(p)break}if(!u)return!1;const c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(u),1);d.markup=String.fromCharCode(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=c,f.map=[t,e.line-1],f.children=[];const l=e.push("heading_close","h"+String(u),-1);return l.markup=String.fromCharCode(a),e.parentType=o,!0}function k0(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let u=t+1;for(e.parentType="paragraph";u<n&&!e.isEmpty(u);u++){if(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)continue;let d=!1;for(let f=0,l=r.length;f<l;f++)if(r[f](e,u,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,u,e.blkIndent,!1).trim();e.line=u;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const c=e.push("inline","",0);return c.content=a,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const Nu=[["table",u0,["paragraph","reference"]],["code",r0],["fence",o0,["paragraph","reference","blockquote","list"]],["blockquote",i0,["paragraph","reference","blockquote","list"]],["hr",a0,["paragraph","reference","blockquote","list"]],["list",c0,["paragraph","reference","blockquote"]],["reference",l0],["html_block",A0,["paragraph","reference","blockquote"]],["heading",w0,["paragraph","reference","blockquote"]],["lheading",v0],["paragraph",k0]];function Lu(){this.ruler=new $e;for(let e=0;e<Nu.length;e++)this.ruler.push(Nu[e][0],Nu[e][1],{alt:(Nu[e][2]||[]).slice()})}Lu.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,u=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>=u){e.line=n;break}const c=e.line;let d=!1;for(let f=0;f<o;f++)if(d=r[f](e,a,n,!1),d){if(c>=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)}},Lu.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},Lu.prototype.State=gt;function Mn(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}Mn.prototype.pushPending=function(){const e=new rt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Mn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new rt(e,t,n);let o=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=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Mn.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let u=e;for(;u<n&&this.src.charCodeAt(u)===r;)u++;const a=u-e,s=u<n?this.src.charCodeAt(u):32,c=Rn(o)||In(String.fromCharCode(o)),d=Rn(s)||In(String.fromCharCode(s)),f=On(o),l=On(s),p=!l&&(!d||f||c),m=!f&&(!c||l||d);return{can_open:p&&(t||!m||c),can_close:m&&(t||!p||d),length:a}},Mn.prototype.Token=rt;function C0(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 E0(e,t){let n=e.pos;for(;n<e.posMax&&!C0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const _0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function F0(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 o=e.pending.match(_0);if(!o)return!1;const u=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-u.length));if(!a)return!1;let s=a.url;if(s.length<=u.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));const d=e.md.normalizeLink(s);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-u.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=s.length-u.length,!0}function S0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let u=r-1;for(;u>=1&&e.pending.charCodeAt(u-1)===32;)u--;e.pending=e.pending.slice(0,u),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<o&&le(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ir=[];for(let e=0;e<256;e++)Ir.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ir[e.charCodeAt(0)]=1});function D0(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!le(o));)n++;return e.pos=n,!0}let u=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(u+=e.src[n+1],n++)}const a="\\"+u;if(!t){const s=e.push("text_special","",0);o<256&&Ir[o]!==0?s.content=u:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function T0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const u=e.posMax;for(;n<u&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(o,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=a),e.pos+=s,!0;let c=n,d;for(;(d=e.src.indexOf("`",c))!==-1;){for(c=d+1;c<u&&e.src.charCodeAt(c)===96;)c++;const f=c-d;if(f===s){if(!t){const l=e.push("code_inline","code",0);l.markup=a,l.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function N0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const o=e.scanDelims(e.pos,!0);let u=o.length;const a=String.fromCharCode(r);if(u<2)return!1;let s;u%2&&(s=e.push("text","",0),s.content=a,u--);for(let c=0;c<u;c+=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:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function vi(e,t){let n;const r=[],o=t.length;for(let u=0;u<o;u++){const a=t[u];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 u=r.pop();let a=u+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,u!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[u],e.tokens[u]=n)}}function L0(e){const t=e.tokens_meta,n=e.tokens_meta.length;vi(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&vi(e,t[r].delimiters)}const ki={tokenize:N0,postProcess:L0};function O0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const o=e.scanDelims(e.pos,r===42);for(let u=0;u<o.length;u++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function Ci(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const u=t[o.end],a=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===u.token+1,s=String.fromCharCode(o.marker),c=e.tokens[o.token];c.type=a?"strong_open":"em_open",c.tag=a?"strong":"em",c.nesting=1,c.markup=a?s+s:s,c.content="";const d=e.tokens[u.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[o.end+1].token].content="",r--)}}function I0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ci(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ci(e,t[r].delimiters)}const Ei={tokenize:O0,postProcess:I0};function R0(e,t){let n,r,o,u,a="",s="",c=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,l=e.posMax,p=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let h=m+1;if(h<l&&e.src.charCodeAt(h)===40){for(d=!1,h++;h<l&&(n=e.src.charCodeAt(h),!(!le(n)&&n!==10));h++);if(h>=l)return!1;if(c=h,o=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?h=o.pos:a="",c=h;h<l&&(n=e.src.charCodeAt(h),!(!le(n)&&n!==10));h++);if(o=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<l&&c!==h&&o.ok)for(s=o.str,h=o.pos;h<l&&(n=e.src.charCodeAt(h),!(!le(n)&&n!==10));h++);}(h>=l||e.src.charCodeAt(h)!==41)&&(d=!0),h++}if(d){if(typeof e.env.references>"u")return!1;if(h<l&&e.src.charCodeAt(h)===91?(c=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?r=e.src.slice(c,h++):h=m+1):h=m+1,r||(r=e.src.slice(p,m)),u=e.env.references[Du(r)],!u)return e.pos=f,!1;a=u.href,s=u.title}if(!t){e.pos=p,e.posMax=m;const x=e.push("link_open","a",1),y=[["href",a]];x.attrs=y,s&&y.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=l,!0}function M0(e,t){let n,r,o,u,a,s,c,d,f="";const l=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(u=h+1,u<p&&e.src.charCodeAt(u)===40){for(u++;u<p&&(n=e.src.charCodeAt(u),!(!le(n)&&n!==10));u++);if(u>=p)return!1;for(d=u,s=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?u=s.pos:f=""),d=u;u<p&&(n=e.src.charCodeAt(u),!(!le(n)&&n!==10));u++);if(s=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<p&&d!==u&&s.ok)for(c=s.str,u=s.pos;u<p&&(n=e.src.charCodeAt(u),!(!le(n)&&n!==10));u++);else c="";if(u>=p||e.src.charCodeAt(u)!==41)return e.pos=l,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<p&&e.src.charCodeAt(u)===91?(d=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(d,u++):u=h+1):u=h+1,o||(o=e.src.slice(m,h)),a=e.env.references[Du(o)],!a)return e.pos=l,!1;f=a.href,c=a.title}if(!t){r=e.src.slice(m,h);const x=[];e.md.inline.parse(r,e.md,e.env,x);const y=e.push("image","img",0),v=[["src",f],["alt",""]];y.attrs=v,y.children=x,y.content=r,c&&v.push(["title",c])}return e.pos=u,e.posMax=p,!0}const P0=/^([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])?)*)$/,V0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function B0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const u=e.src.slice(r+1,n);if(V0.test(u)){const a=e.md.normalizeLink(u);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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(u);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=u.length+2,!0}if(P0.test(u)){const a=e.md.normalizeLink("mailto:"+u);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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(u);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=u.length+2,!0}return!1}function z0(e){return/^<a[>\s]/i.test(e)}function j0(e){return/^<\/a\s*>/i.test(e)}function H0(e){const t=e|32;return t>=97&&t<=122}function $0(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 o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!H0(o))return!1;const u=e.src.slice(r).match(y0);if(!u)return!1;if(!t){const a=e.push("html_inline","",0);a.content=u[0],z0(a.content)&&e.linkLevel++,j0(a.content)&&e.linkLevel--}return e.pos+=u[0].length,!0}const U0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,W0=/^&([a-z][a-z0-9]{1,31});/i;function G0(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 u=e.src.slice(n).match(U0);if(u){if(!t){const a=u[1][0].toLowerCase()==="x"?parseInt(u[1].slice(1),16):parseInt(u[1],10),s=e.push("text_special","",0);s.content=Tr(a)?Su(a):Su(65533),s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}else{const u=e.src.slice(n).match(W0);if(u){const a=li(u[0]);if(a!==u[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}}return!1}function _i(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const u=[];for(let a=0;a<n;a++){const s=e[a];if(u.push(0),(e[r].marker!==s.marker||o!==s.token-1)&&(r=a),o=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[s.marker][(s.open?3:0)+s.length%3];let d=r-u[r]-1,f=d;for(;d>c;d-=u[d]+1){const l=e[d];if(l.marker===s.marker&&l.open&&l.end<0){let p=!1;if((l.close||s.open)&&(l.length+s.length)%3===0&&(l.length%3!==0||s.length%3!==0)&&(p=!0),!p){const m=d>0&&!e[d-1].open?u[d-1]+1:0;u[a]=a-d+m,u[d]=m,s.open=!1,l.end=a,l.close=!1,f=-1,o=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function q0(e){const t=e.tokens_meta,n=e.tokens_meta.length;_i(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&_i(t[r].delimiters)}function X0(e){let t,n,r=0;const o=e.tokens,u=e.tokens.length;for(t=n=0;t<u;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<u&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const Rr=[["text",E0],["linkify",F0],["newline",S0],["escape",D0],["backticks",T0],["strikethrough",ki.tokenize],["emphasis",Ei.tokenize],["link",R0],["image",M0],["autolink",B0],["html_inline",$0],["entity",G0]],Mr=[["balance_pairs",q0],["strikethrough",ki.postProcess],["emphasis",Ei.postProcess],["fragments_join",X0]];function Pn(){this.ruler=new $e;for(let e=0;e<Rr.length;e++)this.ruler.push(Rr[e][0],Rr[e][1]);this.ruler2=new $e;for(let e=0;e<Mr.length;e++)this.ruler2.push(Mr[e][0],Mr[e][1])}Pn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,u=e.cache;if(typeof u[t]<"u"){e.pos=u[t];return}let a=!1;if(e.level<o){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++,u[t]=e.pos},Pn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const u=e.pos;let a=!1;if(e.level<o){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(u>=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()},Pn.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const u=this.ruler2.getRules(""),a=u.length;for(let s=0;s<a;s++)u[s](o)},Pn.prototype.State=Mn;function Z0(e){const t={};e=e||{},t.src_Any=oi.source,t.src_Cc=ii.source,t.src_Z=si.source,t.src_P=_r.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 Pr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Ou(e){return Object.prototype.toString.call(e)}function Y0(e){return Ou(e)==="[object String]"}function Q0(e){return Ou(e)==="[object Object]"}function K0(e){return Ou(e)==="[object RegExp]"}function Fi(e){return Ou(e)==="[object Function]"}function J0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Si={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ed(e){return Object.keys(e||{}).reduce(function(t,n){return t||Si.hasOwnProperty(n)},!1)}const td={"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}}},nd="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]",ud="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function rd(e){e.__index__=-1,e.__text_cache__=""}function od(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Di(){return function(e,t){t.normalize(e)}}function Iu(e){const t=e.re=Z0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(nd),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 o=[];e.__compiled__={};function u(s,c){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+c)}Object.keys(e.__schemas__).forEach(function(s){const c=e.__schemas__[s];if(c===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,Q0(c)){K0(c.validate)?d.validate=od(c.validate):Fi(c.validate)?d.validate=c.validate:u(s,c),Fi(c.normalize)?d.normalize=c.normalize:c.normalize?u(s,c):d.normalize=Di();return}if(Y0(c)){o.push(s);return}u(s,c)}),o.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:Di()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(J0).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"),rd(e)}function id(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function Vr(e,t){const n=new id(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ge(e,t){if(!(this instanceof Ge))return new Ge(e,t);t||ed(e)&&(t=e,e={}),this.__opts__=Pr({},Si,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Pr({},td,e),this.__compiled__={},this.__tlds__=ud,this.__tlds_replaced__=!1,this.re={},Iu(this)}Ge.prototype.add=function(t,n){return this.__schemas__[t]=n,Iu(this),this},Ge.prototype.set=function(t){return this.__opts__=Pr(this.__opts__,t),this},Ge.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,o,u,a,s,c,d,f;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(u=this.testSchemaAt(t,n[2],c.lastIndex),u){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u;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&&(o=t.match(this.re.email_fuzzy))!==null&&(a=o.index+o[1].length,s=o.index+o[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},Ge.prototype.pretest=function(t){return this.re.pretest.test(t)},Ge.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},Ge.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Vr(this,r)),r=this.__last_index__);let o=r?t.slice(r):t;for(;this.test(o);)n.push(Vr(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},Ge.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,Vr(this,0)):null},Ge.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,u){return r!==u[o-1]}).reverse(),Iu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Iu(this),this)},Ge.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ge.prototype.onCompile=function(){};const ln=2147483647,bt=36,Br=1,Vn=26,ad=38,sd=700,Ti=72,Ni=128,Li="-",cd=/^xn--/,ld=/[^\0-\x7F]/,dd=/[\x2E\u3002\uFF0E\uFF61]/g,fd={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},zr=bt-Br,yt=Math.floor,jr=String.fromCharCode;function Rt(e){throw new RangeError(fd[e])}function hd(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Oi(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(dd,".");const o=e.split("."),u=hd(o,t).join(".");return r+u}function Ii(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const u=e.charCodeAt(n++);(u&64512)==56320?t.push(((o&1023)<<10)+(u&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const pd=e=>String.fromCodePoint(...e),md=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:bt},Ri=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Mi=function(e,t,n){let r=0;for(e=n?yt(e/sd):e>>1,e+=yt(e/t);e>zr*Vn>>1;r+=bt)e=yt(e/zr);return yt(r+(zr+1)*e/(e+ad))},Pi=function(e){const t=[],n=e.length;let r=0,o=Ni,u=Ti,a=e.lastIndexOf(Li);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Rt("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const c=r;for(let f=1,l=bt;;l+=bt){s>=n&&Rt("invalid-input");const p=md(e.charCodeAt(s++));p>=bt&&Rt("invalid-input"),p>yt((ln-r)/f)&&Rt("overflow"),r+=p*f;const m=l<=u?Br:l>=u+Vn?Vn:l-u;if(p<m)break;const h=bt-m;f>yt(ln/h)&&Rt("overflow"),f*=h}const d=t.length+1;u=Mi(r-c,d,c==0),yt(r/d)>ln-o&&Rt("overflow"),o+=yt(r/d),r%=d,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Vi=function(e){const t=[];e=Ii(e);const n=e.length;let r=Ni,o=0,u=Ti;for(const c of e)c<128&&t.push(jr(c));const a=t.length;let s=a;for(a&&t.push(Li);s<n;){let c=ln;for(const f of e)f>=r&&f<c&&(c=f);const d=s+1;c-r>yt((ln-o)/d)&&Rt("overflow"),o+=(c-r)*d,r=c;for(const f of e)if(f<r&&++o>ln&&Rt("overflow"),f===r){let l=o;for(let p=bt;;p+=bt){const m=p<=u?Br:p>=u+Vn?Vn:p-u;if(l<m)break;const h=l-m,x=bt-m;t.push(jr(Ri(m+h%x,0))),l=yt(h/x)}t.push(jr(Ri(l,0))),u=Mi(o,d,s===a),o=0,++s}++o,++r}return t.join("")},Bi={version:"2.3.1",ucs2:{decode:Ii,encode:pd},decode:Pi,encode:Vi,toASCII:function(e){return Oi(e,function(t){return ld.test(t)?"xn--"+Vi(t):t})},toUnicode:function(e){return Oi(e,function(t){return cd.test(t)?Pi(t.slice(4).toLowerCase()):t})}},gd={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"]}}}},bd=/^(vbscript|javascript|file|data):/,yd=/^data:image\/(gif|png|jpeg|webp);/;function xd(e){const t=e.trim().toLowerCase();return bd.test(t)?yd.test(t):!0}const zi=["http:","https:","mailto:"];function Ad(e){const t=Er(e,!0);if(t.hostname&&(!t.protocol||zi.indexOf(t.protocol)>=0))try{t.hostname=Bi.toASCII(t.hostname)}catch{}return Ln(Cr(t))}function wd(e){const t=Er(e,!0);if(t.hostname&&(!t.protocol||zi.indexOf(t.protocol)>=0))try{t.hostname=Bi.toUnicode(t.hostname)}catch{}return on(Cr(t),on.defaultChars+"%")}function qe(e,t){if(!(this instanceof qe))return new qe(e,t);t||Dr(e)||(t=e||{},e="default"),this.inline=new Pn,this.block=new Lu,this.core=new Lr,this.renderer=new sn,this.linkify=new Ge,this.validateLink=xd,this.normalizeLink=Ad,this.normalizeLinkText=wd,this.utils=Ll,this.helpers=Fu({},Ml),this.options={},this.configure(e),t&&this.set(t)}qe.prototype.set=function(e){return Fu(this.options,e),this},qe.prototype.configure=function(e){const t=this;if(Dr(e)){const n=e;if(e=gd[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(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<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(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<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:ji,setPrototypeOf:Hi,isFrozen:vd,getPrototypeOf:kd,getOwnPropertyDescriptor:Cd}=Object;let{freeze:Ve,seal:tt,create:Ru}=Object,{apply:Hr,construct:$r}=typeof Reflect<"u"&&Reflect;Ve||(Ve=function(t){return t}),tt||(tt=function(t){return t}),Hr||(Hr=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),u=2;u<r;u++)o[u-2]=arguments[u];return t.apply(n,o)}),$r||($r=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const Mu=ze(Array.prototype.forEach),Ed=ze(Array.prototype.lastIndexOf),$i=ze(Array.prototype.pop),Bn=ze(Array.prototype.push),_d=ze(Array.prototype.splice),Pu=ze(String.prototype.toLowerCase),Ur=ze(String.prototype.toString),Wr=ze(String.prototype.match),zn=ze(String.prototype.replace),Fd=ze(String.prototype.indexOf),Sd=ze(String.prototype.trim),Xe=ze(Object.prototype.hasOwnProperty),Be=ze(RegExp.prototype.test),jn=Dd(TypeError);function ze(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Hr(e,t,r)}}function Dd(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $r(e,n)}}function oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pu;Hi&&Hi(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const u=n(o);u!==o&&(vd(t)||(t[r]=u),o=u)}e[o]=!0}return e}function Td(e){for(let t=0;t<e.length;t++)Xe(e,t)||(e[t]=null);return e}function xt(e){const t=Ru(null);for(const[n,r]of ji(e))Xe(e,n)&&(Array.isArray(r)?t[n]=Td(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=xt(r):t[n]=r);return t}function Hn(e,t){for(;e!==null;){const r=Cd(e,t);if(r){if(r.get)return ze(r.get);if(typeof r.value=="function")return ze(r.value)}e=kd(e)}function n(){return null}return n}const Ui=Ve(["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"]),Gr=Ve(["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"]),qr=Ve(["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"]),Nd=Ve(["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"]),Xr=Ve(["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"]),Ld=Ve(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Wi=Ve(["#text"]),Gi=Ve(["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"]),Zr=Ve(["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"]),qi=Ve(["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"]),Vu=Ve(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Od=tt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Id=tt(/<%[\w\W]*|[\w\W]*%>/gm),Rd=tt(/\$\{[\w\W]*/gm),Md=tt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Pd=tt(/^aria-[\-\w]+$/),Xi=tt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vd=tt(/^(?:\w+script|data):/i),Bd=tt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Zi=tt(/^html$/i),zd=tt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yi=Object.freeze({__proto__:null,ARIA_ATTR:Pd,ATTR_WHITESPACE:Bd,CUSTOM_ELEMENT:zd,DATA_ATTR:Md,DOCTYPE_NAME:Zi,ERB_EXPR:Id,IS_ALLOWED_URI:Xi,IS_SCRIPT_OR_DATA:Vd,MUSTACHE_EXPR:Od,TMPLIT_EXPR:Rd});const $n={element:1,text:3,progressingInstruction:7,comment:8,document:9},jd=function(){return typeof window>"u"?null:window},Hd=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const u="dompurify"+(r?"#"+r:"");try{return t.createPolicy(u,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Qi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ki(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jd();const t=J=>Ki(J);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==$n.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:u,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:l,DOMParser:p,trustedTypes:m}=e,h=c.prototype,x=Hn(h,"cloneNode"),y=Hn(h,"remove"),v=Hn(h,"nextSibling"),g=Hn(h,"childNodes"),b=Hn(h,"parentNode");if(typeof a=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let A,k="";const{implementation:F,createNodeIterator:_,createDocumentFragment:E,getElementsByTagName:$}=n,{importNode:R}=r;let O=Qi();t.isSupported=typeof ji=="function"&&typeof b=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:S,TMPLIT_EXPR:z,DATA_ATTR:j,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:G}=Yi;let{IS_ALLOWED_URI:re}=Yi,ne=null;const I=oe({},[...Ui,...Gr,...qr,...Xr,...Wi]);let V=null;const D=oe({},[...Gi,...Zr,...qi,...Vu]);let L=Object.seal(Ru(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}})),W=null,K=null;const Y=Object.seal(Ru(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Z=!0,ue=!0,ce=!1,Te=!0,Ne=!1,pt=!0,Me=!1,_n=!1,$t=!1,St=!1,fr=!1,hr=!1,nc=!0,uc=!1;const Q2="user-content-";let Lo=!0,xu=!1,Fn={},Et=null;const Oo=oe({},["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 rc=null;const oc=oe({},["audio","video","img","source","image","track"]);let Io=null;const ic=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pr="http://www.w3.org/1998/Math/MathML",mr="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let Sn=Dt,Ro=!1,Mo=null;const K2=oe({},[pr,mr,Dt],Ur);let gr=oe({},["mi","mo","mn","ms","mtext"]),br=oe({},["annotation-xml"]);const J2=oe({},["title","style","font","a","script"]);let Au=null;const ep=["application/xhtml+xml","text/html"],tp="text/html";let Ee=null,Dn=null;const np=n.createElement("form"),ac=function(C){return C instanceof RegExp||C instanceof Function},Po=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Dn&&Dn===C)){if((!C||typeof C!="object")&&(C={}),C=xt(C),Au=ep.indexOf(C.PARSER_MEDIA_TYPE)===-1?tp:C.PARSER_MEDIA_TYPE,Ee=Au==="application/xhtml+xml"?Ur:Pu,ne=Xe(C,"ALLOWED_TAGS")?oe({},C.ALLOWED_TAGS,Ee):I,V=Xe(C,"ALLOWED_ATTR")?oe({},C.ALLOWED_ATTR,Ee):D,Mo=Xe(C,"ALLOWED_NAMESPACES")?oe({},C.ALLOWED_NAMESPACES,Ur):K2,Io=Xe(C,"ADD_URI_SAFE_ATTR")?oe(xt(ic),C.ADD_URI_SAFE_ATTR,Ee):ic,rc=Xe(C,"ADD_DATA_URI_TAGS")?oe(xt(oc),C.ADD_DATA_URI_TAGS,Ee):oc,Et=Xe(C,"FORBID_CONTENTS")?oe({},C.FORBID_CONTENTS,Ee):Oo,W=Xe(C,"FORBID_TAGS")?oe({},C.FORBID_TAGS,Ee):xt({}),K=Xe(C,"FORBID_ATTR")?oe({},C.FORBID_ATTR,Ee):xt({}),Fn=Xe(C,"USE_PROFILES")?C.USE_PROFILES:!1,Z=C.ALLOW_ARIA_ATTR!==!1,ue=C.ALLOW_DATA_ATTR!==!1,ce=C.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=C.SAFE_FOR_TEMPLATES||!1,pt=C.SAFE_FOR_XML!==!1,Me=C.WHOLE_DOCUMENT||!1,St=C.RETURN_DOM||!1,fr=C.RETURN_DOM_FRAGMENT||!1,hr=C.RETURN_TRUSTED_TYPE||!1,$t=C.FORCE_BODY||!1,nc=C.SANITIZE_DOM!==!1,uc=C.SANITIZE_NAMED_PROPS||!1,Lo=C.KEEP_CONTENT!==!1,xu=C.IN_PLACE||!1,re=C.ALLOWED_URI_REGEXP||Xi,Sn=C.NAMESPACE||Dt,gr=C.MATHML_TEXT_INTEGRATION_POINTS||gr,br=C.HTML_INTEGRATION_POINTS||br,L=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&ac(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&ac(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(ue=!1),fr&&(St=!0),Fn&&(ne=oe({},Wi),V=Ru(null),Fn.html===!0&&(oe(ne,Ui),oe(V,Gi)),Fn.svg===!0&&(oe(ne,Gr),oe(V,Zr),oe(V,Vu)),Fn.svgFilters===!0&&(oe(ne,qr),oe(V,Zr),oe(V,Vu)),Fn.mathMl===!0&&(oe(ne,Xr),oe(V,qi),oe(V,Vu))),Xe(C,"ADD_TAGS")||(Y.tagCheck=null),Xe(C,"ADD_ATTR")||(Y.attributeCheck=null),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?Y.tagCheck=C.ADD_TAGS:(ne===I&&(ne=xt(ne)),oe(ne,C.ADD_TAGS,Ee))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?Y.attributeCheck=C.ADD_ATTR:(V===D&&(V=xt(V)),oe(V,C.ADD_ATTR,Ee))),C.ADD_URI_SAFE_ATTR&&oe(Io,C.ADD_URI_SAFE_ATTR,Ee),C.FORBID_CONTENTS&&(Et===Oo&&(Et=xt(Et)),oe(Et,C.FORBID_CONTENTS,Ee)),C.ADD_FORBID_CONTENTS&&(Et===Oo&&(Et=xt(Et)),oe(Et,C.ADD_FORBID_CONTENTS,Ee)),Lo&&(ne["#text"]=!0),Me&&oe(ne,["html","head","body"]),ne.table&&(oe(ne,["tbody"]),delete W.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=C.TRUSTED_TYPES_POLICY,k=A.createHTML("")}else A===void 0&&(A=Hd(m,o)),A!==null&&typeof k=="string"&&(k=A.createHTML(""));Ve&&Ve(C),Dn=C}},sc=oe({},[...Gr,...qr,...Nd]),cc=oe({},[...Xr,...Ld]),up=function(C){let B=b(C);(!B||!B.tagName)&&(B={namespaceURI:Sn,tagName:"template"});const Q=Pu(C.tagName),ge=Pu(B.tagName);return Mo[C.namespaceURI]?C.namespaceURI===mr?B.namespaceURI===Dt?Q==="svg":B.namespaceURI===pr?Q==="svg"&&(ge==="annotation-xml"||gr[ge]):!!sc[Q]:C.namespaceURI===pr?B.namespaceURI===Dt?Q==="math":B.namespaceURI===mr?Q==="math"&&br[ge]:!!cc[Q]:C.namespaceURI===Dt?B.namespaceURI===mr&&!br[ge]||B.namespaceURI===pr&&!gr[ge]?!1:!cc[Q]&&(J2[Q]||!sc[Q]):!!(Au==="application/xhtml+xml"&&Mo[C.namespaceURI]):!1},_t=function(C){Bn(t.removed,{element:C});try{b(C).removeChild(C)}catch{y(C)}},tn=function(C,B){try{Bn(t.removed,{attribute:B.getAttributeNode(C),from:B})}catch{Bn(t.removed,{attribute:null,from:B})}if(B.removeAttribute(C),C==="is")if(St||fr)try{_t(B)}catch{}else try{B.setAttribute(C,"")}catch{}},lc=function(C){let B=null,Q=null;if($t)C="<remove></remove>"+C;else{const we=Wr(C,/^[\r\n\t ]+/);Q=we&&we[0]}Au==="application/xhtml+xml"&&Sn===Dt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const ge=A?A.createHTML(C):C;if(Sn===Dt)try{B=new p().parseFromString(ge,Au)}catch{}if(!B||!B.documentElement){B=F.createDocument(Sn,"template",null);try{B.documentElement.innerHTML=Ro?k:ge}catch{}}const Pe=B.body||B.documentElement;return C&&Q&&Pe.insertBefore(n.createTextNode(Q),Pe.childNodes[0]||null),Sn===Dt?$.call(B,Me?"html":"body")[0]:Me?B.documentElement:Pe},dc=function(C){return _.call(C.ownerDocument||C,C,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Vo=function(C){return C instanceof l&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof f)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},fc=function(C){return typeof s=="function"&&C instanceof s};function Tt(J,C,B){Mu(J,Q=>{Q.call(t,C,B,Dn)})}const hc=function(C){let B=null;if(Tt(O.beforeSanitizeElements,C,null),Vo(C))return _t(C),!0;const Q=Ee(C.nodeName);if(Tt(O.uponSanitizeElement,C,{tagName:Q,allowedTags:ne}),pt&&C.hasChildNodes()&&!fc(C.firstElementChild)&&Be(/<[/\w!]/g,C.innerHTML)&&Be(/<[/\w!]/g,C.textContent)||C.nodeType===$n.progressingInstruction||pt&&C.nodeType===$n.comment&&Be(/<[/\w]/g,C.data))return _t(C),!0;if(!(Y.tagCheck instanceof Function&&Y.tagCheck(Q))&&(!ne[Q]||W[Q])){if(!W[Q]&&mc(Q)&&(L.tagNameCheck instanceof RegExp&&Be(L.tagNameCheck,Q)||L.tagNameCheck instanceof Function&&L.tagNameCheck(Q)))return!1;if(Lo&&!Et[Q]){const ge=b(C)||C.parentNode,Pe=g(C)||C.childNodes;if(Pe&&ge){const we=Pe.length;for(let We=we-1;We>=0;--We){const Nt=x(Pe[We],!0);Nt.__removalCount=(C.__removalCount||0)+1,ge.insertBefore(Nt,v(C))}}}return _t(C),!0}return C instanceof c&&!up(C)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&Be(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(Ne&&C.nodeType===$n.text&&(B=C.textContent,Mu([P,S,z],ge=>{B=zn(B,ge," ")}),C.textContent!==B&&(Bn(t.removed,{element:C.cloneNode()}),C.textContent=B)),Tt(O.afterSanitizeElements,C,null),!1)},pc=function(C,B,Q){if(K[B]||nc&&(B==="id"||B==="name")&&(Q in n||Q in np))return!1;if(!(ue&&!K[B]&&Be(j,B))){if(!(Z&&Be(T,B))){if(!(Y.attributeCheck instanceof Function&&Y.attributeCheck(B,C))){if(!V[B]||K[B]){if(!(mc(C)&&(L.tagNameCheck instanceof RegExp&&Be(L.tagNameCheck,C)||L.tagNameCheck instanceof Function&&L.tagNameCheck(C))&&(L.attributeNameCheck instanceof RegExp&&Be(L.attributeNameCheck,B)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(B,C))||B==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&Be(L.tagNameCheck,Q)||L.tagNameCheck instanceof Function&&L.tagNameCheck(Q))))return!1}else if(!Io[B]){if(!Be(re,zn(Q,M,""))){if(!((B==="src"||B==="xlink:href"||B==="href")&&C!=="script"&&Fd(Q,"data:")===0&&rc[C])){if(!(ce&&!Be(q,zn(Q,M,"")))){if(Q)return!1}}}}}}}return!0},mc=function(C){return C!=="annotation-xml"&&Wr(C,G)},gc=function(C){Tt(O.beforeSanitizeAttributes,C,null);const{attributes:B}=C;if(!B||Vo(C))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let ge=B.length;for(;ge--;){const Pe=B[ge],{name:we,namespaceURI:We,value:Nt}=Pe,Tn=Ee(we),Bo=Nt;let Oe=we==="value"?Bo:Sd(Bo);if(Q.attrName=Tn,Q.attrValue=Oe,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Tt(O.uponSanitizeAttribute,C,Q),Oe=Q.attrValue,uc&&(Tn==="id"||Tn==="name")&&(tn(we,C),Oe=Q2+Oe),pt&&Be(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Oe)){tn(we,C);continue}if(Tn==="attributename"&&Wr(Oe,"href")){tn(we,C);continue}if(Q.forceKeepAttr)continue;if(!Q.keepAttr){tn(we,C);continue}if(!Te&&Be(/\/>/i,Oe)){tn(we,C);continue}Ne&&Mu([P,S,z],yc=>{Oe=zn(Oe,yc," ")});const bc=Ee(C.nodeName);if(!pc(bc,Tn,Oe)){tn(we,C);continue}if(A&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!We)switch(m.getAttributeType(bc,Tn)){case"TrustedHTML":{Oe=A.createHTML(Oe);break}case"TrustedScriptURL":{Oe=A.createScriptURL(Oe);break}}if(Oe!==Bo)try{We?C.setAttributeNS(We,we,Oe):C.setAttribute(we,Oe),Vo(C)?_t(C):$i(t.removed)}catch{tn(we,C)}}Tt(O.afterSanitizeAttributes,C,null)},rp=function J(C){let B=null;const Q=dc(C);for(Tt(O.beforeSanitizeShadowDOM,C,null);B=Q.nextNode();)Tt(O.uponSanitizeShadowNode,B,null),hc(B),gc(B),B.content instanceof u&&J(B.content);Tt(O.afterSanitizeShadowDOM,C,null)};return t.sanitize=function(J){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,Q=null,ge=null,Pe=null;if(Ro=!J,Ro&&(J="<!-->"),typeof J!="string"&&!fc(J))if(typeof J.toString=="function"){if(J=J.toString(),typeof J!="string")throw jn("dirty is not a string, aborting")}else throw jn("toString is not a function");if(!t.isSupported)return J;if(_n||Po(C),t.removed=[],typeof J=="string"&&(xu=!1),xu){if(J.nodeName){const Nt=Ee(J.nodeName);if(!ne[Nt]||W[Nt])throw jn("root node is forbidden and cannot be sanitized in-place")}}else if(J instanceof s)B=lc("<!---->"),Q=B.ownerDocument.importNode(J,!0),Q.nodeType===$n.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?B=Q:B.appendChild(Q);else{if(!St&&!Ne&&!Me&&J.indexOf("<")===-1)return A&&hr?A.createHTML(J):J;if(B=lc(J),!B)return St?null:hr?k:""}B&&$t&&_t(B.firstChild);const we=dc(xu?J:B);for(;ge=we.nextNode();)hc(ge),gc(ge),ge.content instanceof u&&rp(ge.content);if(xu)return J;if(St){if(fr)for(Pe=E.call(B.ownerDocument);B.firstChild;)Pe.appendChild(B.firstChild);else Pe=B;return(V.shadowroot||V.shadowrootmode)&&(Pe=R.call(r,Pe,!0)),Pe}let We=Me?B.outerHTML:B.innerHTML;return Me&&ne["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&Be(Zi,B.ownerDocument.doctype.name)&&(We="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
17
- `+We),Ne&&Mu([P,S,z],Nt=>{We=zn(We,Nt," ")}),A&&hr?A.createHTML(We):We},t.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Po(J),_n=!0},t.clearConfig=function(){Dn=null,_n=!1},t.isValidAttribute=function(J,C,B){Dn||Po({});const Q=Ee(J),ge=Ee(C);return pc(Q,ge,B)},t.addHook=function(J,C){typeof C=="function"&&Bn(O[J],C)},t.removeHook=function(J,C){if(C!==void 0){const B=Ed(O[J],C);return B===-1?void 0:_d(O[J],B,1)[0]}return $i(O[J])},t.removeHooks=function(J){O[J]=[]},t.removeAllHooks=function(){O=Qi()},t}var $d=Ki();const Ji={content:{type:Object,required:!0}},Ud=new qe({html:!0,linkify:!0});function Wd(e){const t=e.split(`
18
- `),n=t.filter(o=>o.trim().length>0);if(n.length===0)return e.trim();const r=Math.min(...n.map(o=>{var u;return(((u=o.match(/^\s*/))==null?void 0:u[0])??"").length}));return t.map(o=>o.slice(r)).join(`
19
- `).trim()}const dn=i.defineComponent({name:"FXMarkdownMessage",props:Ji,setup(e){const t=i.computed(()=>{var u;const n=(((u=e.content)==null?void 0:u.content)??"").replace(/\\n/g,`
20
- `),r=Wd(n);if(!r)return"";const o=Ud.render(r);return $d.sanitize(o,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var r;const n=(r=e.content)==null?void 0:r.message;return i.createVNode("div",{class:"f-chat-message-markdown"},[n&&i.createVNode("div",{class:"f-chat-markdown-message"},[n]),i.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});dn.install=e=>{e.component(dn.name,dn)};const Gd=(e,t,n)=>{var o;if(e.type!==ke.Text)return null;const r=e;return(o=r.raw)!=null&&o.trim()?n.shouldShowMarkdown.value?i.createVNode(dn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:r.raw}},null):i.createVNode("div",{class:"f-chat-bubble-content-text",key:`bubble-text-${t}`},[r.raw]):null};function qd(e){return e?e.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g,"_").replace(/^_+|_+$/g,""):"surface"}function Xd(e){const t=e.components.find(n=>n.id==="root");return t&&t.component==="Card",e.components}function Zd(e){const t=qd(e.name),n="basic",r=[];r.push({version:"v0.9",createSurface:{surfaceId:t,catalogId:n,sendDataModel:!0}});const o=Xd(e);return r.push({version:"v0.9",updateComponents:{surfaceId:t,components:o}}),e.data&&Object.keys(e.data).length>0&&r.push({version:"v0.9",updateDataModel:{surfaceId:t,path:"/",value:e.data}}),r}const Yd=(e,t)=>{if(e.type!==ke.A2UIComplete)return null;const n=e,r=Zd(n.a2uiData),o=new nn.MessageProcessor([be.basicCatalog]);o.processMessages(r);const u=r[0].createSurface.surfaceId,a=o.model.getSurface(u);return i.createVNode(i.Fragment,null,[i.createVNode("div",{style:"width: 400px;"},[i.createVNode(be.Surface,{surface:a},null)]),i.createVNode("details",null,[i.createVNode("summary",{style:{cursor:"pointer",fontSize:"12px",color:"#666"}},[i.createTextVNode("A2UI Debug Data")]),i.createVNode("pre",{style:{fontSize:"10px",maxHeight:"300px",overflow:"auto",background:"#f5f5f5",padding:"8px"}},[JSON.stringify(n.a2uiData,null,2)])])])};function Qd(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 Kd(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 Jd=function(){function e(n){var r=this;this._insertTag=function(o){var u;r.tags.length===0?r.insertionPoint?u=r.insertionPoint.nextSibling:r.prepend?u=r.container.firstChild:u=r.before:u=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,u),r.tags.push(o)},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(Kd(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var u=Qd(o);try{u.insertRule(r,u.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ie="-ms-",Bu="-moz-",ae="-webkit-",ea="comm",Yr="rule",Qr="decl",ef="@import",ta="@keyframes",tf="@layer",nf=Math.abs,zu=String.fromCharCode,uf=Object.assign;function rf(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 na(e){return e.trim()}function of(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,n){return e.replace(t,n)}function Kr(e,t){return e.indexOf(t)}function Le(e,t){return e.charCodeAt(t)|0}function Un(e,t,n){return e.slice(t,n)}function At(e){return e.length}function Jr(e){return e.length}function ju(e,t){return t.push(e),e}function af(e,t){return e.map(t).join("")}var Hu=1,fn=1,ua=0,Ue=0,xe=0,hn="";function $u(e,t,n,r,o,u,a){return{value:e,root:t,parent:n,type:r,props:o,children:u,line:Hu,column:fn,length:a,return:""}}function Wn(e,t){return uf($u("",null,null,"",null,null,0),e,{length:-e.length},t)}function sf(){return xe}function cf(){return xe=Ue>0?Le(hn,--Ue):0,fn--,xe===10&&(fn=1,Hu--),xe}function Ze(){return xe=Ue<ua?Le(hn,Ue++):0,fn++,xe===10&&(fn=1,Hu++),xe}function wt(){return Le(hn,Ue)}function Uu(){return Ue}function Gn(e,t){return Un(hn,e,t)}function qn(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 ra(e){return Hu=fn=1,ua=At(hn=e),Ue=0,[]}function oa(e){return hn="",e}function Wu(e){return na(Gn(Ue-1,eo(e===91?e+2:e===40?e+1:e)))}function lf(e){for(;(xe=wt())&&xe<33;)Ze();return qn(e)>2||qn(xe)>3?"":" "}function df(e,t){for(;--t&&Ze()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Gn(e,Uu()+(t<6&&wt()==32&&Ze()==32))}function eo(e){for(;Ze();)switch(xe){case e:return Ue;case 34:case 39:e!==34&&e!==39&&eo(xe);break;case 40:e===41&&eo(e);break;case 92:Ze();break}return Ue}function ff(e,t){for(;Ze()&&e+xe!==57;)if(e+xe===84&&wt()===47)break;return"/*"+Gn(t,Ue-1)+"*"+zu(e===47?e:Ze())}function hf(e){for(;!qn(wt());)Ze();return Gn(e,Ue)}function pf(e){return oa(Gu("",null,null,null,[""],e=ra(e),0,[0],e))}function Gu(e,t,n,r,o,u,a,s,c){for(var d=0,f=0,l=a,p=0,m=0,h=0,x=1,y=1,v=1,g=0,b="",A=o,k=u,F=r,_=b;y;)switch(h=g,g=Ze()){case 40:if(h!=108&&Le(_,l-1)==58){Kr(_+=se(Wu(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Wu(g);break;case 9:case 10:case 13:case 32:_+=lf(h);break;case 92:_+=df(Uu()-1,7);continue;case 47:switch(wt()){case 42:case 47:ju(mf(ff(Ze(),Uu()),t,n),c);break;default:_+="/"}break;case 123*x:s[d++]=At(_)*v;case 125*x:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+f:v==-1&&(_=se(_,/\f/g,"")),m>0&&At(_)-l&&ju(m>32?aa(_+";",r,n,l-1):aa(se(_," ","")+";",r,n,l-2),c);break;case 59:_+=";";default:if(ju(F=ia(_,t,n,d,f,o,s,b,A=[],k=[],l),u),g===123)if(f===0)Gu(_,t,F,F,A,u,l,s,k);else switch(p===99&&Le(_,3)===110?100:p){case 100:case 108:case 109:case 115:Gu(e,F,F,r&&ju(ia(e,F,F,0,0,o,s,b,o,A=[],l),k),o,k,l,s,r?A:k);break;default:Gu(_,F,F,F,[""],k,0,s,k)}}d=f=m=0,x=v=1,b=_="",l=a;break;case 58:l=1+At(_),m=h;default:if(x<1){if(g==123)--x;else if(g==125&&x++==0&&cf()==125)continue}switch(_+=zu(g),g*x){case 38:v=f>0?1:(_+="\f",-1);break;case 44:s[d++]=(At(_)-1)*v,v=1;break;case 64:wt()===45&&(_+=Wu(Ze())),p=wt(),f=l=At(b=_+=hf(Uu())),g++;break;case 45:h===45&&At(_)==2&&(x=0)}}return u}function ia(e,t,n,r,o,u,a,s,c,d,f){for(var l=o-1,p=o===0?u:[""],m=Jr(p),h=0,x=0,y=0;h<r;++h)for(var v=0,g=Un(e,l+1,l=nf(x=a[h])),b=e;v<m;++v)(b=na(x>0?p[v]+" "+g:se(g,/&\f/g,p[v])))&&(c[y++]=b);return $u(e,t,n,o===0?Yr:s,c,d,f)}function mf(e,t,n){return $u(e,t,n,ea,zu(sf()),Un(e,2,-2),0)}function aa(e,t,n,r){return $u(e,t,n,Qr,Un(e,0,r),Un(e,r+1,-1),r)}function pn(e,t){for(var n="",r=Jr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function gf(e,t,n,r){switch(e.type){case tf:if(e.children.length)break;case ef:case Qr:return e.return=e.return||e.value;case ea:return"";case ta:return e.return=e.value+"{"+pn(e.children,r)+"}";case Yr:e.value=e.props.join(",")}return At(n=pn(e.children,r))?e.return=e.value+"{"+n+"}":""}function bf(e){var t=Jr(e);return function(n,r,o,u){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,u)||"";return a}}function yf(e){return function(t){t.root||(t=t.return)&&e(t)}}function xf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Af=function(t,n,r){for(var o=0,u=0;o=u,u=wt(),o===38&&u===12&&(n[r]=1),!qn(u);)Ze();return Gn(t,Ue)},wf=function(t,n){var r=-1,o=44;do switch(qn(o)){case 0:o===38&&wt()===12&&(n[r]=1),t[r]+=Af(Ue-1,n,r);break;case 2:t[r]+=Wu(o);break;case 4:if(o===44){t[++r]=wt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=zu(o)}while(o=Ze());return t},vf=function(t,n){return oa(wf(ra(t),n))},sa=new WeakMap,kf=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=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&&!sa.get(r))&&!o){sa.set(t,!0);for(var u=[],a=vf(n,u),s=r.props,c=0,d=0;c<a.length;c++)for(var f=0;f<s.length;f++,d++)t.props[d]=u[c]?a[c].replace(/&\f/g,s[f]):s[f]+" "+a[c]}}},Cf=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ca(e,t){switch(rf(e,t)){case 5103:return ae+"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 ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+Bu+e+Ie+e+e;case 6828:case 4268:return ae+e+Ie+e+e;case 6165:return ae+e+Ie+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Ie+"flex-$1$2")+e;case 5443:return ae+e+Ie+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Ie+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Ie+se(e,"shrink","negative")+e;case 5292:return ae+e+Ie+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Ie+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$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(At(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Bu+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kr(e,"stretch")?ca(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,At(e)-3-(~Kr(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Le(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Ie+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return ae+e+Ie+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Ie+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Ie+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Ie+e+e}return e}var Ef=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Qr:t.return=ca(t.value,t.length);break;case ta:return pn([Wn(t,{value:se(t.value,"@","@"+ae)})],o);case Yr:if(t.length)return af(t.props,function(u){switch(of(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([Wn(t,{props:[se(u,/:(read-\w+)/,":"+Bu+"$1")]})],o);case"::placeholder":return pn([Wn(t,{props:[se(u,/:(plac\w+)/,":"+ae+"input-$1")]}),Wn(t,{props:[se(u,/:(plac\w+)/,":"+Bu+"$1")]}),Wn(t,{props:[se(u,/:(plac\w+)/,Ie+"input-$1")]})],o)}return""})}},_f=[Ef],Ff=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 y=x.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||_f,u={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)u[y[v]]=!0;s.push(x)});var c,d=[kf,Cf];{var f,l=[gf,yf(function(x){f.insert(x)})],p=bf(d.concat(o,l)),m=function(y){return pn(pf(y),p)};c=function(y,v,g,b){f=g,m(y?y+"{"+v.styles+"}":v.styles),b&&(h.inserted[v.name]=!0)}}var h={key:n,sheet:new Jd({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:c};return h.sheet.hydrate(s),h};function Sf(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Df={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},Tf=/[A-Z]|^ms/g,Nf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,la=function(t){return t.charCodeAt(1)===45},da=function(t){return t!=null&&typeof t!="boolean"},to=xf(function(e){return la(e)?e:e.replace(Tf,"-$&").toLowerCase()}),fa=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Nf,function(r,o,u){return Mt={name:o,styles:u,next:Mt},o})}return Df[t]!==1&&!la(t)&&typeof n=="number"&&n!==0?n+"px":n};function qu(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 o=n;if(o.anim===1)return Mt={name:o.name,styles:o.styles,next:Mt},o.name;var u=n;if(u.styles!==void 0){var a=u.next;if(a!==void 0)for(;a!==void 0;)Mt={name:a.name,styles:a.styles,next:Mt},a=a.next;var s=u.styles+";";return s}return Lf(e,t,n)}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function Lf(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=qu(e,t,n[o])+";";else for(var u in n){var a=n[u];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=u+"{"+t[s]+"}":da(s)&&(r+=to(u)+":"+fa(u,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)da(a[c])&&(r+=to(u)+":"+fa(u,a[c])+";");else{var d=qu(e,t,a);switch(u){case"animation":case"animationName":{r+=to(u)+":"+d+";";break}default:r+=u+"{"+d+"}"}}}return r}var ha=/label:\s*([^\s;{]+)\s*(;|$)/g,Mt;function no(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,o="";Mt=void 0;var u=e[0];if(u==null||u.raw===void 0)r=!1,o+=qu(n,t,u);else{var a=u;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=qu(n,t,e[s]),r){var c=u;o+=c[s]}ha.lastIndex=0;for(var d="",f;(f=ha.exec(o))!==null;)d+="-"+f[1];var l=Sf(o)+d;return{name:l,styles:o,next:Mt}}function pa(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Of=function(t,n,r){var o=t.key+"-"+n.name;t.registered[o]===void 0&&(t.registered[o]=n.styles)},If=function(t,n,r){Of(t,n);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var u=n;do t.insert(n===u?"."+o:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function ma(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ga(e,t,n){var r=[],o=pa(e,r,n);return r.length<2?n:o+t(r)}var Rf=function(t){var n=Ff(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=no(d,n.registered,void 0);return If(n,l),n.key+"-"+l.name},o=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=no(d,n.registered),p="animation-"+l.name;return ma(n,{name:l.name,styles:"@keyframes "+p+"{"+l.styles+"}"}),p},u=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=no(d,n.registered);ma(n,l)},a=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return ga(n.registered,r,Mf(d))};return{css:r,cx:a,injectGlobal:u,keyframes:o,hydrate:function(c){c.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:pa.bind(null,n.registered),merge:ga.bind(null,n.registered,r)}},Mf=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var u=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))u=e(o);else{u="";for(var a in o)o[a]&&a&&(u&&(u+=" "),u+=a)}break}default:u=o}u&&(n&&(n+=" "),n+=u)}}return n},Pf=Rf({key:"css"}),uo=Pf.css,Vf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ba={exports:{}};/*!
11
+ `},xt.text=function(e,t){return Mt(e[t].content)},xt.html_block=function(e,t){return e[t].content},xt.html_inline=function(e,t){return e[t].content};function fn(){this.rules=Lr({},xt)}fn.prototype.renderAttrs=function(t){let n,u,i;if(!t.attrs)return"";for(i="",n=0,u=t.attrs.length;n<u;n++)i+=" "+Mt(t.attrs[n][0])+'="'+Mt(t.attrs[n][1])+'"';return i},fn.prototype.renderToken=function(t,n,u){const i=t[n];let r="";if(i.hidden)return"";i.block&&i.nesting!==-1&&n&&t[n-1].hidden&&(r+=`
12
+ `),r+=(i.nesting===-1?"</":"<")+i.tag,r+=this.renderAttrs(i),i.nesting===0&&u.xhtmlOut&&(r+=" /");let a=!1;if(i.block&&(a=!0,i.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===i.tag)&&(a=!1)}return r+=a?`>
13
+ `:">",r},fn.prototype.renderInline=function(e,t,n){let u="";const i=this.rules;for(let r=0,a=e.length;r<a;r++){const s=e[r].type;typeof i[s]<"u"?u+=i[s](e,r,t,n,this):u+=this.renderToken(e,r,t)}return u},fn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let i=0,r=e.length;i<r;i++)switch(e[i].type){case"text":u+=e[i].content;break;case"image":u+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":u+=e[i].content;break;case"softbreak":case"hardbreak":u+=`
14
+ `;break}return u},fn.prototype.render=function(e,t,n){let u="";const i=this.rules;for(let r=0,a=e.length;r<a;r++){const s=e[r].type;s==="inline"?u+=this.renderInline(e[r].children,t,n):typeof i[s]<"u"?u+=i[s](e,r,t,n,this):u+=this.renderToken(e,r,t,n)}return u};function We(){this.__rules__=[],this.__cache__=null}We.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},We.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})},We.prototype.at=function(e,t,n){const u=this.__find__(e),i=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=i.alt||[],this.__cache__=null},We.prototype.before=function(e,t,n,u){const i=this.__find__(e),r=u||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},We.prototype.after=function(e,t,n,u){const i=this.__find__(e),r=u||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},We.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null},We.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const i=this.__find__(u);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[i].enabled=!0,n.push(u)},this),this.__cache__=null,n},We.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},We.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const i=this.__find__(u);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[i].enabled=!1,n.push(u)},this),this.__cache__=null,n},We.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function st(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}st.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,i=n.length;u<i;u++)if(n[u][0]===t)return u;return-1},st.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},st.prototype.attrSet=function(t,n){const u=this.attrIndex(t),i=[t,n];u<0?this.attrPush(i):this.attrs[u]=i},st.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u},st.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Co(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Co.prototype.Token=st;const r0=/\r\n?|\n/g,u0=/\0/g;function i0(e){let t;t=e.src.replace(r0,`
15
+ `),t=t.replace(u0,"�"),e.src=t}function o0(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 a0(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function s0(e){return/^<a[>\s]/i.test(e)}function c0(e){return/^<\/a\s*>/i.test(e)}function l0(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,r=0;for(let a=i.length-1;a>=0;a--){const s=i[a];if(s.type==="link_close"){for(a--;i[a].level!==s.level&&i[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(s0(s.content)&&r>0&&r--,c0(s.content)&&r++),!(r>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const c=s.content;let d=e.md.linkify.match(c);const f=[];let l=s.level,m=0;d.length>0&&d[0].index===0&&a>0&&i[a-1].type==="text_special"&&(d=d.slice(1));for(let g=0;g<d.length;g++){const p=d[g].url,v=e.md.normalizeLink(p);if(!e.md.validateLink(v))continue;let x=d[g].text;d[g].schema?d[g].schema==="mailto:"&&!/^mailto:/i.test(x)?x=e.md.normalizeLinkText("mailto:"+x).replace(/^mailto:/,""):x=e.md.normalizeLinkText(x):x=e.md.normalizeLinkText("http://"+x).replace(/^http:\/\//,"");const k=d[g].index;if(k>m){const w=new e.Token("text","",0);w.content=c.slice(m,k),w.level=l,f.push(w)}const y=new e.Token("link_open","a",1);y.attrs=[["href",v]],y.level=l++,y.markup="linkify",y.info="auto",f.push(y);const h=new e.Token("text","",0);h.content=x,h.level=l,f.push(h);const b=new e.Token("link_close","a",-1);b.level=--l,b.markup="linkify",b.info="auto",f.push(b),m=d[g].lastIndex}if(m<c.length){const g=new e.Token("text","",0);g.content=c.slice(m),g.level=l,f.push(g)}t[n].children=i=Ao(i,a,f)}}}}const Eo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,d0=/\((c|tm|r)\)/i,f0=/\((c|tm|r)\)/ig,h0={c:"©",r:"®",tm:"™"};function m0(e,t){return h0[t.toLowerCase()]}function p0(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(f0,m0)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function g0(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Eo.test(u.content)&&(u.content=u.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–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function b0(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(d0.test(e.tokens[t].content)&&p0(e.tokens[t].children),Eo.test(e.tokens[t].content)&&g0(e.tokens[t].children))}const y0=/['"]/,_o=/['"]/g,So="’";function Pr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function x0(e,t){let n;const u=[];for(let i=0;i<e.length;i++){const r=e[i],a=e[i].level;for(n=u.length-1;n>=0&&!(u[n].level<=a);n--);if(u.length=n+1,r.type!=="text")continue;let s=r.content,c=0,d=s.length;e:for(;c<d;){_o.lastIndex=c;const f=_o.exec(s);if(!f)break;let l=!0,m=!0;c=f.index+1;const g=f[0]==="'";let p=32;if(f.index-1>=0)p=s.charCodeAt(f.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(c<d)v=s.charCodeAt(c);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){v=e[n].content.charCodeAt(0);break}const x=zn(p)||Bn(String.fromCharCode(p)),k=zn(v)||Bn(String.fromCharCode(v)),y=Mn(p),h=Mn(v);if(h?l=!1:k&&(y||x||(l=!1)),y?m=!1:x&&(h||k||(m=!1)),v===34&&f[0]==='"'&&p>=48&&p<=57&&(m=l=!1),l&&m&&(l=x,m=k),!l&&!m){g&&(r.content=Pr(r.content,f.index,So));continue}if(m)for(n=u.length-1;n>=0;n--){let b=u[n];if(u[n].level<a)break;if(b.single===g&&u[n].level===a){b=u[n];let w,C;g?(w=t.md.options.quotes[2],C=t.md.options.quotes[3]):(w=t.md.options.quotes[0],C=t.md.options.quotes[1]),r.content=Pr(r.content,f.index,C),e[b.token].content=Pr(e[b.token].content,b.pos,w),c+=C.length-1,b.token===i&&(c+=w.length-1),s=r.content,d=s.length,u.length=n;continue e}}l?u.push({token:i,pos:f.index,single:g,level:a}):m&&g&&(r.content=Pr(r.content,f.index,So))}}}function w0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!y0.test(e.tokens[t].content)||x0(e.tokens[t].children,e)}function v0(e){let t,n;const u=e.tokens,i=u.length;for(let r=0;r<i;r++){if(u[r].type!=="inline")continue;const a=u[r].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 Bu=[["normalize",i0],["block",o0],["inline",a0],["linkify",l0],["replacements",b0],["smartquotes",w0],["text_join",v0]];function zu(){this.ruler=new We;for(let e=0;e<Bu.length;e++)this.ruler.push(Bu[e][0],Bu[e][1])}zu.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)},zu.prototype.State=Co;function wt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,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 r=0,a=0,s=0,c=0,d=i.length,f=!1;a<d;a++){const l=i.charCodeAt(a);if(!f)if(le(l)){s++,l===9?c+=4-c%4:c++;continue}else f=!0;(l===10||a===d-1)&&(l!==10&&a++,this.bMarks.push(r),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),f=!1,s=0,c=0,r=a+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}wt.prototype.push=function(e,t,n){const u=new st(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u},wt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},wt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},wt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!le(u))break}return t},wt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!le(this.src.charCodeAt(--t)))return t+1;return t},wt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t},wt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t},wt.prototype.getLines=function(t,n,u,i){if(t>=n)return"";const r=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let c=0;const d=this.bMarks[s];let f=d,l;for(s+1<n||i?l=this.eMarks[s]+1:l=this.eMarks[s];f<l&&c<u;){const m=this.src.charCodeAt(f);if(le(m))m===9?c+=4-(c+this.bsCount[s])%4:c++;else if(f-d<this.tShift[s])c++;else break;f++}c>u?r[a]=new Array(c-u+1).join(" ")+this.src.slice(f,l):r[a]=this.src.slice(f,l)}return r.join("")},wt.prototype.Token=st;const A0=65536;function ju(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Fo(e){const t=[],n=e.length;let u=0,i=e.charCodeAt(u),r=!1,a=0,s="";for(;u<n;)i===124&&(r?(s+=e.substring(a,u-1),a=u):(t.push(s+e.substring(a,u)),s="",a=u+1)),r=i===92,u++,i=e.charCodeAt(u);return t.push(s+e.substring(a)),t}function k0(e,t,n,u){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let r=e.bMarks[i]+e.tShift[i];if(r>=e.eMarks[i])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58||r>=e.eMarks[i])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58&&!le(s)||a===45&&le(s))return!1;for(;r<e.eMarks[i];){const b=e.src.charCodeAt(r);if(b!==124&&b!==45&&b!==58&&!le(b))return!1;r++}let c=ju(e,t+1),d=c.split("|");const f=[];for(let b=0;b<d.length;b++){const w=d[b].trim();if(!w){if(b===0||b===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?f.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?f.push("left"):f.push("")}if(c=ju(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=Fo(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const l=d.length;if(l===0||l!==f.length)return!1;if(u)return!0;const m=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),v=[t,0];p.map=v;const x=e.push("thead_open","thead",1);x.map=[t,t+1];const k=e.push("tr_open","tr",1);k.map=[t,t+1];for(let b=0;b<d.length;b++){const w=e.push("th_open","th",1);f[b]&&(w.attrs=[["style","text-align:"+f[b]]]);const C=e.push("inline","",0);C.content=d[b].trim(),C.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y,h=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let b=!1;for(let C=0,E=g.length;C<E;C++)if(g[C](e,i,n,!0)){b=!0;break}if(b||(c=ju(e,i).trim(),!c)||e.sCount[i]-e.blkIndent>=4||(d=Fo(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),h+=l-d.length,h>A0))break;if(i===t+2){const C=e.push("tbody_open","tbody",1);C.map=y=[t+2,0]}const w=e.push("tr_open","tr",1);w.map=[i,i+1];for(let C=0;C<l;C++){const E=e.push("td_open","td",1);f[C]&&(E.attrs=[["style","text-align:"+f[C]]]);const _=e.push("inline","",0);_.content=d[C]?d[C].trim():"",_.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return y&&(e.push("tbody_close","tbody",-1),y[1]=i),e.push("table_close","table",-1),v[1]=i,e.parentType=m,e.line=i,!0}function C0(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,i=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,i=u;continue}break}e.line=i;const r=e.push("code_block","code",0);return r.content=e.getLines(t,i,4+e.blkIndent,!1)+`
16
+ `,r.map=[t,e.line],!0}function E0(e,t,n,u){let i=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>r)return!1;const a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let s=i;i=e.skipChars(i,a);let c=i-s;if(c<3)return!1;const d=e.src.slice(s,i),f=e.src.slice(i,r);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(u)return!0;let l=t,m=!1;for(;l++,!(l>=n||(i=s=e.bMarks[l]+e.tShift[l],r=e.eMarks[l],i<r&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[l]-e.blkIndent>=4)&&(i=e.skipChars(i,a),!(i-s<c)&&(i=e.skipSpaces(i),!(i<r)))){m=!0;break}c=e.sCount[t],e.line=l+(m?1:0);const g=e.push("fence","code",0);return g.info=f,g.content=e.getLines(t+1,l,c,!0),g.markup=d,g.map=[t,e.line],!0}function _0(e,t,n,u){let i=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(u)return!0;const s=[],c=[],d=[],f=[],l=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let g=!1,p;for(p=t;p<n;p++){const h=e.sCount[p]<e.blkIndent;if(i=e.bMarks[p]+e.tShift[p],r=e.eMarks[p],i>=r)break;if(e.src.charCodeAt(i++)===62&&!h){let w=e.sCount[p]+1,C,E;e.src.charCodeAt(i)===32?(i++,w++,E=!1,C=!0):e.src.charCodeAt(i)===9?(C=!0,(e.bsCount[p]+w)%4===3?(i++,w++,E=!1):E=!0):C=!1;let _=w;for(s.push(e.bMarks[p]),e.bMarks[p]=i;i<r;){const z=e.src.charCodeAt(i);if(le(z))z===9?_+=4-(_+e.bsCount[p]+(E?1:0))%4:_++;else break;i++}g=i>=r,c.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(C?1:0),d.push(e.sCount[p]),e.sCount[p]=_-w,f.push(e.tShift[p]),e.tShift[p]=i-e.bMarks[p];continue}if(g)break;let b=!1;for(let w=0,C=l.length;w<C;w++)if(l[w](e,p,n,!0)){b=!0;break}if(b){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),c.push(e.bsCount[p]),f.push(e.tShift[p]),d.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),c.push(e.bsCount[p]),f.push(e.tShift[p]),d.push(e.sCount[p]),e.sCount[p]=-1}const v=e.blkIndent;e.blkIndent=0;const x=e.push("blockquote_open","blockquote",1);x.markup=">";const k=[t,0];x.map=k,e.md.block.tokenize(e,t,p);const y=e.push("blockquote_close","blockquote",-1);y.markup=">",e.lineMax=a,e.parentType=m,k[1]=e.line;for(let h=0;h<f.length;h++)e.bMarks[h+t]=s[h],e.tShift[h+t]=f[h],e.sCount[h+t]=d[h],e.bsCount[h+t]=c[h];return e.blkIndent=v,!0}function S0(e,t,n,u){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(r++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;r<i;){const d=e.src.charCodeAt(r++);if(d!==a&&!le(d))return!1;d===a&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(a)),!0}function Do(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(u++);if(i!==42&&i!==45&&i!==43)return-1;if(u<n){const r=e.src.charCodeAt(u);if(!le(r))return-1}return u}function To(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let i=n;if(i+1>=u)return-1;let r=e.src.charCodeAt(i++);if(r<48||r>57)return-1;for(;;){if(i>=u)return-1;if(r=e.src.charCodeAt(i++),r>=48&&r<=57){if(i-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return i<u&&(r=e.src.charCodeAt(i),!le(r))?-1:i}function F0(e,t){const n=e.level+2;for(let u=t+2,i=e.tokens.length-2;u<i;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function D0(e,t,n,u){let i,r,a,s,c=t,d=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(f=!0);let l,m,g;if((g=To(e,c))>=0){if(l=!0,a=e.bMarks[c]+e.tShift[c],m=Number(e.src.slice(a,g-1)),f&&m!==1)return!1}else if((g=Do(e,c))>=0)l=!1;else return!1;if(f&&e.skipSpaces(g)>=e.eMarks[c])return!1;if(u)return!0;const p=e.src.charCodeAt(g-1),v=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),m!==1&&(s.attrs=[["start",m]])):s=e.push("bullet_list_open","ul",1);const x=[c,0];s.map=x,s.markup=String.fromCharCode(p);let k=!1;const y=e.md.block.ruler.getRules("list"),h=e.parentType;for(e.parentType="list";c<n;){r=g,i=e.eMarks[c];const b=e.sCount[c]+g-(e.bMarks[c]+e.tShift[c]);let w=b;for(;r<i;){const $=e.src.charCodeAt(r);if($===9)w+=4-(w+e.bsCount[c])%4;else if($===32)w++;else break;r++}const C=r;let E;C>=i?E=1:E=w-b,E>4&&(E=1);const _=b+E;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const z=[c,0];s.map=z,l&&(s.info=e.src.slice(a,g-1));const M=e.tight,I=e.tShift[c],B=e.sCount[c],D=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=_,e.tight=!0,e.tShift[c]=C-e.bMarks[c],e.sCount[c]=w,C>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||k)&&(d=!1),k=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=D,e.tShift[c]=I,e.sCount[c]=B,e.tight=M,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),c=e.line,z[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let H=!1;for(let $=0,F=y.length;$<F;$++)if(y[$](e,c,n,!0)){H=!0;break}if(H)break;if(l){if(g=To(e,c),g<0)break;a=e.bMarks[c]+e.tShift[c]}else if(g=Do(e,c),g<0)break;if(p!==e.src.charCodeAt(g-1))break}return l?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),x[1]=c,e.line=c,e.parentType=h,d&&F0(e,v),!0}function T0(e,t,n,u){let i=e.bMarks[t]+e.tShift[t],r=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function s(y){const h=e.lineMax;if(y>=h||e.isEmpty(y))return null;let b=!1;if(e.sCount[y]-e.blkIndent>3&&(b=!0),e.sCount[y]<0&&(b=!0),!b){const E=e.md.block.ruler.getRules("reference"),_=e.parentType;e.parentType="reference";let z=!1;for(let M=0,I=E.length;M<I;M++)if(E[M](e,y,h,!0)){z=!0;break}if(e.parentType=_,z)return null}const w=e.bMarks[y]+e.tShift[y],C=e.eMarks[y];return e.src.slice(w,C+1)}let c=e.src.slice(i,r+1);r=c.length;let d=-1;for(i=1;i<r;i++){const y=c.charCodeAt(i);if(y===91)return!1;if(y===93){d=i;break}else if(y===10){const h=s(a);h!==null&&(c+=h,r=c.length,a++)}else if(y===92&&(i++,i<r&&c.charCodeAt(i)===10)){const h=s(a);h!==null&&(c+=h,r=c.length,a++)}}if(d<0||c.charCodeAt(d+1)!==58)return!1;for(i=d+2;i<r;i++){const y=c.charCodeAt(i);if(y===10){const h=s(a);h!==null&&(c+=h,r=c.length,a++)}else if(!le(y))break}const f=e.md.helpers.parseLinkDestination(c,i,r);if(!f.ok)return!1;const l=e.md.normalizeLink(f.str);if(!e.md.validateLink(l))return!1;i=f.pos;const m=i,g=a,p=i;for(;i<r;i++){const y=c.charCodeAt(i);if(y===10){const h=s(a);h!==null&&(c+=h,r=c.length,a++)}else if(!le(y))break}let v=e.md.helpers.parseLinkTitle(c,i,r);for(;v.can_continue;){const y=s(a);if(y===null)break;c+=y,i=r,r=c.length,a++,v=e.md.helpers.parseLinkTitle(c,i,r,v)}let x;for(i<r&&p!==i&&v.ok?(x=v.str,i=v.pos):(x="",i=m,a=g);i<r;){const y=c.charCodeAt(i);if(!le(y))break;i++}if(i<r&&c.charCodeAt(i)!==10&&x)for(x="",i=m,a=g;i<r;){const y=c.charCodeAt(i);if(!le(y))break;i++}if(i<r&&c.charCodeAt(i)!==10)return!1;const k=Or(c.slice(1,d));return k?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[k]>"u"&&(e.env.references[k]={title:x,href:l}),e.line=a),!0):!1}const N0=["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"],L0="[a-zA-Z_:][a-zA-Z0-9:._-]*",I0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",No="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+L0+"(?:\\s*=\\s*"+I0+")?)")+"*\\s*\\/?>",Lo="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",O0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",P0="<[?][\\s\\S]*?[?]>",R0="<![A-Za-z][^>]*>",V0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",M0=new RegExp("^(?:"+No+"|"+Lo+"|"+O0+"|"+P0+"|"+R0+"|"+V0+")"),B0=new RegExp("^(?:"+No+"|"+Lo+")"),hn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+N0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(B0.source+"\\s*$"),/^$/,!1]];function z0(e,t,n,u){let i=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,r),s=0;for(;s<hn.length&&!hn[s][0].test(a);s++);if(s===hn.length)return!1;if(u)return hn[s][2];let c=t+1;if(!hn[s][1].test(a)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(i=e.bMarks[c]+e.tShift[c],r=e.eMarks[c],a=e.src.slice(i,r),hn[s][1].test(a)){a.length!==0&&c++;break}}e.line=c;const d=e.push("html_block","",0);return d.map=[t,c],d.content=e.getLines(t,c,e.blkIndent,!0),!0}function j0(e,t,n,u){let i=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=r)return!1;let s=1;for(a=e.src.charCodeAt(++i);a===35&&i<r&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<r&&!le(a))return!1;if(u)return!0;r=e.skipSpacesBack(r,i);const c=e.skipCharsBack(r,35,i);c>i&&le(e.src.charCodeAt(c-1))&&(r=c),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(i,r).trim(),f.map=[t,e.line],f.children=[];const l=e.push("heading_close","h"+String(s),-1);return l.markup="########".slice(0,s),!0}function H0(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let r=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 g=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(g<p&&(a=e.src.charCodeAt(g),(a===45||a===61)&&(g=e.skipChars(g,a),g=e.skipSpaces(g),g>=p))){r=a===61?1:2;break}}if(e.sCount[s]<0)continue;let m=!1;for(let g=0,p=u.length;g<p;g++)if(u[g](e,s,n,!0)){m=!0;break}if(m)break}if(!r)return!1;const c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(r),1);d.markup=String.fromCharCode(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=c,f.map=[t,e.line-1],f.children=[];const l=e.push("heading_close","h"+String(r),-1);return l.markup=String.fromCharCode(a),e.parentType=i,!0}function $0(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let r=t+1;for(e.parentType="paragraph";r<n&&!e.isEmpty(r);r++){if(e.sCount[r]-e.blkIndent>3||e.sCount[r]<0)continue;let d=!1;for(let f=0,l=u.length;f<l;f++)if(u[f](e,r,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,r,e.blkIndent,!1).trim();e.line=r;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const c=e.push("inline","",0);return c.content=a,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const Rr=[["table",k0,["paragraph","reference"]],["code",C0],["fence",E0,["paragraph","reference","blockquote","list"]],["blockquote",_0,["paragraph","reference","blockquote","list"]],["hr",S0,["paragraph","reference","blockquote","list"]],["list",D0,["paragraph","reference","blockquote"]],["reference",T0],["html_block",z0,["paragraph","reference","blockquote"]],["heading",j0,["paragraph","reference","blockquote"]],["lheading",H0],["paragraph",$0]];function Vr(){this.ruler=new We;for(let e=0;e<Rr.length;e++)this.ruler.push(Rr[e][0],Rr[e][1],{alt:(Rr[e][2]||[]).slice()})}Vr.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),i=u.length,r=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>=r){e.line=n;break}const c=e.line;let d=!1;for(let f=0;f<i;f++)if(d=u[f](e,a,n,!1),d){if(c>=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)}},Vr.prototype.parse=function(e,t,n,u){if(!e)return;const i=new this.State(e,t,n,u);this.tokenize(i,i.line,i.lineMax)},Vr.prototype.State=wt;function jn(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.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}jn.prototype.pushPending=function(){const e=new st("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},jn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new st(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(i),u},jn.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let r=e;for(;r<n&&this.src.charCodeAt(r)===u;)r++;const a=r-e,s=r<n?this.src.charCodeAt(r):32,c=zn(i)||Bn(String.fromCharCode(i)),d=zn(s)||Bn(String.fromCharCode(s)),f=Mn(i),l=Mn(s),m=!l&&(!d||f||c),g=!f&&(!c||l||d);return{can_open:m&&(t||!g||c),can_close:g&&(t||!m||d),length:a}},jn.prototype.Token=st;function U0(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 W0(e,t){let n=e.pos;for(;n<e.posMax&&!U0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const G0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function X0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(G0);if(!i)return!1;const r=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-r.length));if(!a)return!1;let s=a.url;if(s.length<=r.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));const d=e.md.normalizeLink(s);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-r.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=s.length-r.length,!0}function q0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,i=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let r=u-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&le(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Hu=[];for(let e=0;e<256;e++)Hu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Hu[e.charCodeAt(0)]=1});function Z0(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(i=e.src.charCodeAt(n),!!le(i));)n++;return e.pos=n,!0}let r=e.src[n];if(i>=55296&&i<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(r+=e.src[n+1],n++)}const a="\\"+r;if(!t){const s=e.push("text_special","",0);i<256&&Hu[i]!==0?s.content=r:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function Y0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const r=e.posMax;for(;n<r&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(i,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=i)return t||(e.pending+=a),e.pos+=s,!0;let c=n,d;for(;(d=e.src.indexOf("`",c))!==-1;){for(c=d+1;c<r&&e.src.charCodeAt(c)===96;)c++;const f=c-d;if(f===s){if(!t){const l=e.push("code_inline","code",0);l.markup=a,l.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function K0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const i=e.scanDelims(e.pos,!0);let r=i.length;const a=String.fromCharCode(u);if(r<2)return!1;let s;r%2&&(s=e.push("text","",0),s.content=a,r--);for(let c=0;c<r;c+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function Io(e,t){let n;const u=[],i=t.length;for(let r=0;r<i;r++){const a=t[r];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==="~"&&u.push(s.token-1)}for(;u.length;){const r=u.pop();let a=r+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,r!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[r],e.tokens[r]=n)}}function Q0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Io(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Io(e,t[u].delimiters)}const Oo={tokenize:K0,postProcess:Q0};function J0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const i=e.scanDelims(e.pos,u===42);for(let r=0;r<i.length;r++){const a=e.push("text","",0);a.content=String.fromCharCode(u),e.delimiters.push({marker:u,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 Po(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const i=t[u];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const r=t[i.end],a=u>0&&t[u-1].end===i.end+1&&t[u-1].marker===i.marker&&t[u-1].token===i.token-1&&t[i.end+1].token===r.token+1,s=String.fromCharCode(i.marker),c=e.tokens[i.token];c.type=a?"strong_open":"em_open",c.tag=a?"strong":"em",c.nesting=1,c.markup=a?s+s:s,c.content="";const d=e.tokens[r.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[u-1].token].content="",e.tokens[t[i.end+1].token].content="",u--)}}function ed(e){const t=e.tokens_meta,n=e.tokens_meta.length;Po(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Po(e,t[u].delimiters)}const Ro={tokenize:J0,postProcess:ed};function td(e,t){let n,u,i,r,a="",s="",c=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,l=e.posMax,m=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let p=g+1;if(p<l&&e.src.charCodeAt(p)===40){for(d=!1,p++;p<l&&(n=e.src.charCodeAt(p),!(!le(n)&&n!==10));p++);if(p>=l)return!1;if(c=p,i=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?p=i.pos:a="",c=p;p<l&&(n=e.src.charCodeAt(p),!(!le(n)&&n!==10));p++);if(i=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<l&&c!==p&&i.ok)for(s=i.str,p=i.pos;p<l&&(n=e.src.charCodeAt(p),!(!le(n)&&n!==10));p++);}(p>=l||e.src.charCodeAt(p)!==41)&&(d=!0),p++}if(d){if(typeof e.env.references>"u")return!1;if(p<l&&e.src.charCodeAt(p)===91?(c=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?u=e.src.slice(c,p++):p=g+1):p=g+1,u||(u=e.src.slice(m,g)),r=e.env.references[Or(u)],!r)return e.pos=f,!1;a=r.href,s=r.title}if(!t){e.pos=m,e.posMax=g;const v=e.push("link_open","a",1),x=[["href",a]];v.attrs=x,s&&x.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=l,!0}function nd(e,t){let n,u,i,r,a,s,c,d,f="";const l=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const g=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(r=p+1,r<m&&e.src.charCodeAt(r)===40){for(r++;r<m&&(n=e.src.charCodeAt(r),!(!le(n)&&n!==10));r++);if(r>=m)return!1;for(d=r,s=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?r=s.pos:f=""),d=r;r<m&&(n=e.src.charCodeAt(r),!(!le(n)&&n!==10));r++);if(s=e.md.helpers.parseLinkTitle(e.src,r,e.posMax),r<m&&d!==r&&s.ok)for(c=s.str,r=s.pos;r<m&&(n=e.src.charCodeAt(r),!(!le(n)&&n!==10));r++);else c="";if(r>=m||e.src.charCodeAt(r)!==41)return e.pos=l,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r<m&&e.src.charCodeAt(r)===91?(d=r+1,r=e.md.helpers.parseLinkLabel(e,r),r>=0?i=e.src.slice(d,r++):r=p+1):r=p+1,i||(i=e.src.slice(g,p)),a=e.env.references[Or(i)],!a)return e.pos=l,!1;f=a.href,c=a.title}if(!t){u=e.src.slice(g,p);const v=[];e.md.inline.parse(u,e.md,e.env,v);const x=e.push("image","img",0),k=[["src",f],["alt",""]];x.attrs=k,x.children=v,x.content=u,c&&k.push(["title",c])}return e.pos=r,e.posMax=m,!0}const rd=/^([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])?)*)$/,ud=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function id(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const r=e.src.slice(u+1,n);if(ud.test(r)){const a=e.md.normalizeLink(r);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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(r);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=r.length+2,!0}if(rd.test(r)){const a=e.md.normalizeLink("mailto:"+r);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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(r);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=r.length+2,!0}return!1}function od(e){return/^<a[>\s]/i.test(e)}function ad(e){return/^<\/a\s*>/i.test(e)}function sd(e){const t=e|32;return t>=97&&t<=122}function cd(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const i=e.src.charCodeAt(u+1);if(i!==33&&i!==63&&i!==47&&!sd(i))return!1;const r=e.src.slice(u).match(M0);if(!r)return!1;if(!t){const a=e.push("html_inline","",0);a.content=r[0],od(a.content)&&e.linkLevel++,ad(a.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}const ld=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dd=/^&([a-z][a-z0-9]{1,31});/i;function fd(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const r=e.src.slice(n).match(ld);if(r){if(!t){const a=r[1][0].toLowerCase()==="x"?parseInt(r[1].slice(1),16):parseInt(r[1],10),s=e.push("text_special","",0);s.content=Mu(a)?Ir(a):Ir(65533),s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(dd);if(r){const a=vo(r[0]);if(a!==r[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=r[0],s.info="entity"}return e.pos+=r[0].length,!0}}}return!1}function Vo(e){const t={},n=e.length;if(!n)return;let u=0,i=-2;const r=[];for(let a=0;a<n;a++){const s=e[a];if(r.push(0),(e[u].marker!==s.marker||i!==s.token-1)&&(u=a),i=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[s.marker][(s.open?3:0)+s.length%3];let d=u-r[u]-1,f=d;for(;d>c;d-=r[d]+1){const l=e[d];if(l.marker===s.marker&&l.open&&l.end<0){let m=!1;if((l.close||s.open)&&(l.length+s.length)%3===0&&(l.length%3!==0||s.length%3!==0)&&(m=!0),!m){const g=d>0&&!e[d-1].open?r[d-1]+1:0;r[a]=a-d+g,r[d]=g,s.open=!1,l.end=a,l.close=!1,f=-1,i=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function hd(e){const t=e.tokens_meta,n=e.tokens_meta.length;Vo(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Vo(t[u].delimiters)}function md(e){let t,n,u=0;const i=e.tokens,r=e.tokens.length;for(t=n=0;t<r;t++)i[t].nesting<0&&u--,i[t].level=u,i[t].nesting>0&&u++,i[t].type==="text"&&t+1<r&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const $u=[["text",W0],["linkify",X0],["newline",q0],["escape",Z0],["backticks",Y0],["strikethrough",Oo.tokenize],["emphasis",Ro.tokenize],["link",td],["image",nd],["autolink",id],["html_inline",cd],["entity",fd]],Uu=[["balance_pairs",hd],["strikethrough",Oo.postProcess],["emphasis",Ro.postProcess],["fragments_join",md]];function Hn(){this.ruler=new We;for(let e=0;e<$u.length;e++)this.ruler.push($u[e][0],$u[e][1]);this.ruler2=new We;for(let e=0;e<Uu.length;e++)this.ruler2.push(Uu[e][0],Uu[e][1])}Hn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,i=e.md.options.maxNesting,r=e.cache;if(typeof r[t]<"u"){e.pos=r[t];return}let a=!1;if(e.level<i){for(let s=0;s<u;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++,r[t]=e.pos},Hn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,i=e.md.options.maxNesting;for(;e.pos<u;){const r=e.pos;let a=!1;if(e.level<i){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Hn.prototype.parse=function(e,t,n,u){const i=new this.State(e,t,n,u);this.tokenize(i);const r=this.ruler2.getRules(""),a=r.length;for(let s=0;s<a;s++)r[s](i)},Hn.prototype.State=jn;function pd(e){const t={};e=e||{},t.src_Any=go.source,t.src_Cc=bo.source,t.src_Z=xo.source,t.src_P=Ou.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 Wu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function Mr(e){return Object.prototype.toString.call(e)}function gd(e){return Mr(e)==="[object String]"}function bd(e){return Mr(e)==="[object Object]"}function yd(e){return Mr(e)==="[object RegExp]"}function Mo(e){return Mr(e)==="[object Function]"}function xd(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Bo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wd(e){return Object.keys(e||{}).reduce(function(t,n){return t||Bo.hasOwnProperty(n)},!1)}const vd={"http:":{validate:function(e,t,n){const u=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(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=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(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=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(u)?u.match(n.re.mailto)[0].length:0}}},Ad="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]",kd="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Cd(e){e.__index__=-1,e.__text_cache__=""}function Ed(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function zo(){return function(e,t){t.normalize(e)}}function Br(e){const t=e.re=pd(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Ad),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function r(s,c){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+c)}Object.keys(e.__schemas__).forEach(function(s){const c=e.__schemas__[s];if(c===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,bd(c)){yd(c.validate)?d.validate=Ed(c.validate):Mo(c.validate)?d.validate=c.validate:r(s,c),Mo(c.normalize)?d.normalize=c.normalize:c.normalize?r(s,c):d.normalize=zo();return}if(gd(c)){i.push(s);return}r(s,c)}),i.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:zo()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(xd).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"),Cd(e)}function _d(e,t){const n=e.__index__,u=e.__last_index__,i=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=i,this.text=i,this.url=i}function Gu(e,t){const n=new _d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qe(e,t){if(!(this instanceof qe))return new qe(e,t);t||wd(e)&&(t=e,e={}),this.__opts__=Wu({},Bo,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Wu({},vd,e),this.__compiled__={},this.__tlds__=kd,this.__tlds_replaced__=!1,this.re={},Br(this)}qe.prototype.add=function(t,n){return this.__schemas__[t]=n,Br(this),this},qe.prototype.set=function(t){return this.__opts__=Wu(this.__opts__,t),this},qe.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,i,r,a,s,c,d,f;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(r=this.testSchemaAt(t,n[2],c.lastIndex),r){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=t.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=u.index+u[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,s=i.index+i[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},qe.prototype.pretest=function(t){return this.re.pretest.test(t)},qe.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0},qe.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Gu(this,u)),u=this.__last_index__);let i=u?t.slice(u):t;for(;this.test(i);)n.push(Gu(this,u)),i=i.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null},qe.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 u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,Gu(this,0)):null},qe.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,i,r){return u!==r[i-1]}).reverse(),Br(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Br(this),this)},qe.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},qe.prototype.onCompile=function(){};const mn=2147483647,vt=36,Xu=1,$n=26,Sd=38,Fd=700,jo=72,Ho=128,$o="-",Dd=/^xn--/,Td=/[^\0-\x7F]/,Nd=/[\x2E\u3002\uFF0E\uFF61]/g,Ld={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},qu=vt-Xu,At=Math.floor,Zu=String.fromCharCode;function Bt(e){throw new RangeError(Ld[e])}function Id(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function Uo(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Nd,".");const i=e.split("."),r=Id(i,t).join(".");return u+r}function Wo(e){const t=[];let n=0;const u=e.length;for(;n<u;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<u){const r=e.charCodeAt(n++);(r&64512)==56320?t.push(((i&1023)<<10)+(r&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const Od=e=>String.fromCodePoint(...e),Pd=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:vt},Go=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Xo=function(e,t,n){let u=0;for(e=n?At(e/Fd):e>>1,e+=At(e/t);e>qu*$n>>1;u+=vt)e=At(e/qu);return At(u+(qu+1)*e/(e+Sd))},qo=function(e){const t=[],n=e.length;let u=0,i=Ho,r=jo,a=e.lastIndexOf($o);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Bt("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const c=u;for(let f=1,l=vt;;l+=vt){s>=n&&Bt("invalid-input");const m=Pd(e.charCodeAt(s++));m>=vt&&Bt("invalid-input"),m>At((mn-u)/f)&&Bt("overflow"),u+=m*f;const g=l<=r?Xu:l>=r+$n?$n:l-r;if(m<g)break;const p=vt-g;f>At(mn/p)&&Bt("overflow"),f*=p}const d=t.length+1;r=Xo(u-c,d,c==0),At(u/d)>mn-i&&Bt("overflow"),i+=At(u/d),u%=d,t.splice(u++,0,i)}return String.fromCodePoint(...t)},Zo=function(e){const t=[];e=Wo(e);const n=e.length;let u=Ho,i=0,r=jo;for(const c of e)c<128&&t.push(Zu(c));const a=t.length;let s=a;for(a&&t.push($o);s<n;){let c=mn;for(const f of e)f>=u&&f<c&&(c=f);const d=s+1;c-u>At((mn-i)/d)&&Bt("overflow"),i+=(c-u)*d,u=c;for(const f of e)if(f<u&&++i>mn&&Bt("overflow"),f===u){let l=i;for(let m=vt;;m+=vt){const g=m<=r?Xu:m>=r+$n?$n:m-r;if(l<g)break;const p=l-g,v=vt-g;t.push(Zu(Go(g+p%v,0))),l=At(p/v)}t.push(Zu(Go(l,0))),r=Xo(i,d,s===a),i=0,++s}++i,++u}return t.join("")},Yo={version:"2.3.1",ucs2:{decode:Wo,encode:Od},decode:qo,encode:Zo,toASCII:function(e){return Uo(e,function(t){return Td.test(t)?"xn--"+Zo(t):t})},toUnicode:function(e){return Uo(e,function(t){return Dd.test(t)?qo(t.slice(4).toLowerCase()):t})}},Rd={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"]}}}},Vd=/^(vbscript|javascript|file|data):/,Md=/^data:image\/(gif|png|jpeg|webp);/;function Bd(e){const t=e.trim().toLowerCase();return Vd.test(t)?Md.test(t):!0}const Ko=["http:","https:","mailto:"];function zd(e){const t=Iu(e,!0);if(t.hostname&&(!t.protocol||Ko.indexOf(t.protocol)>=0))try{t.hostname=Yo.toASCII(t.hostname)}catch{}return Vn(Lu(t))}function jd(e){const t=Iu(e,!0);if(t.hostname&&(!t.protocol||Ko.indexOf(t.protocol)>=0))try{t.hostname=Yo.toUnicode(t.hostname)}catch{}return ln(Lu(t),ln.defaultChars+"%")}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||Vu(e)||(t=e||{},e="default"),this.inline=new Hn,this.block=new Vr,this.core=new zu,this.renderer=new fn,this.linkify=new qe,this.validateLink=Bd,this.normalizeLink=zd,this.normalizeLinkText=jd,this.utils=Ql,this.helpers=Lr({},n0),this.options={},this.configure(e),t&&this.set(t)}Ze.prototype.set=function(e){return Lr(this.options,e),this},Ze.prototype.configure=function(e){const t=this;if(Vu(e)){const n=e;if(e=Rd[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},Ze.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(i){return n.indexOf(i)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this},Ze.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(i){return n.indexOf(i)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this},Ze.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ze.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},Ze.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ze.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ze.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:Qo,setPrototypeOf:Jo,isFrozen:Hd,getPrototypeOf:$d,getOwnPropertyDescriptor:Ud}=Object;let{freeze:ze,seal:ut,create:zr}=Object,{apply:Yu,construct:Ku}=typeof Reflect<"u"&&Reflect;ze||(ze=function(t){return t}),ut||(ut=function(t){return t}),Yu||(Yu=function(t,n){for(var u=arguments.length,i=new Array(u>2?u-2:0),r=2;r<u;r++)i[r-2]=arguments[r];return t.apply(n,i)}),Ku||(Ku=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),i=1;i<n;i++)u[i-1]=arguments[i];return new t(...u)});const jr=He(Array.prototype.forEach),Wd=He(Array.prototype.lastIndexOf),ea=He(Array.prototype.pop),Un=He(Array.prototype.push),Gd=He(Array.prototype.splice),Hr=He(String.prototype.toLowerCase),Qu=He(String.prototype.toString),Ju=He(String.prototype.match),Wn=He(String.prototype.replace),Xd=He(String.prototype.indexOf),qd=He(String.prototype.trim),Ye=He(Object.prototype.hasOwnProperty),je=He(RegExp.prototype.test),Gn=Zd(TypeError);function He(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),i=1;i<n;i++)u[i-1]=arguments[i];return Yu(e,t,u)}}function Zd(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return Ku(e,n)}}function ie(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hr;Jo&&Jo(e,null);let u=t.length;for(;u--;){let i=t[u];if(typeof i=="string"){const r=n(i);r!==i&&(Hd(t)||(t[u]=r),i=r)}e[i]=!0}return e}function Yd(e){for(let t=0;t<e.length;t++)Ye(e,t)||(e[t]=null);return e}function kt(e){const t=zr(null);for(const[n,u]of Qo(e))Ye(e,n)&&(Array.isArray(u)?t[n]=Yd(u):u&&typeof u=="object"&&u.constructor===Object?t[n]=kt(u):t[n]=u);return t}function Xn(e,t){for(;e!==null;){const u=Ud(e,t);if(u){if(u.get)return He(u.get);if(typeof u.value=="function")return He(u.value)}e=$d(e)}function n(){return null}return n}const ta=ze(["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"]),ei=ze(["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"]),ti=ze(["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"]),Kd=ze(["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"]),ni=ze(["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"]),Qd=ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),na=ze(["#text"]),ra=ze(["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"]),ri=ze(["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"]),ua=ze(["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"]),$r=ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jd=ut(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ef=ut(/<%[\w\W]*|[\w\W]*%>/gm),tf=ut(/\$\{[\w\W]*/gm),nf=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),rf=ut(/^aria-[\-\w]+$/),ia=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uf=ut(/^(?:\w+script|data):/i),of=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oa=ut(/^html$/i),af=ut(/^[a-z][.\w]*(-[.\w]+)+$/i);var aa=Object.freeze({__proto__:null,ARIA_ATTR:rf,ATTR_WHITESPACE:of,CUSTOM_ELEMENT:af,DATA_ATTR:nf,DOCTYPE_NAME:oa,ERB_EXPR:ef,IS_ALLOWED_URI:ia,IS_SCRIPT_OR_DATA:uf,MUSTACHE_EXPR:Jd,TMPLIT_EXPR:tf});const qn={element:1,text:3,progressingInstruction:7,comment:8,document:9},sf=function(){return typeof window>"u"?null:window},cf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(u=n.getAttribute(i));const r="dompurify"+(u?"#"+u:"");try{return t.createPolicy(r,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},sa=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ca(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sf();const t=J=>ca(J);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==qn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const u=n,i=u.currentScript,{DocumentFragment:r,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:l,DOMParser:m,trustedTypes:g}=e,p=c.prototype,v=Xn(p,"cloneNode"),x=Xn(p,"remove"),k=Xn(p,"nextSibling"),y=Xn(p,"childNodes"),h=Xn(p,"parentNode");if(typeof a=="function"){const J=n.createElement("template");J.content&&J.content.ownerDocument&&(n=J.content.ownerDocument)}let b,w="";const{implementation:C,createNodeIterator:E,createDocumentFragment:_,getElementsByTagName:z}=n,{importNode:M}=u;let I=sa();t.isSupported=typeof Qo=="function"&&typeof h=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:B,ERB_EXPR:D,TMPLIT_EXPR:H,DATA_ATTR:$,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:U}=aa;let{IS_ALLOWED_URI:re}=aa,te=null;const P=ie({},[...ta,...ei,...ti,...ni,...na]);let V=null;const T=ie({},[...ra,...ri,...ua,...$r]);let L=Object.seal(zr(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}})),W=null,K=null;const Z=Object.seal(zr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Y=!0,ue=!0,ce=!1,De=!0,Te=!1,yt=!0,Me=!1,Nn=!1,Xt=!1,Lt=!1,wu=!1,vu=!1,kc=!0,Cc=!1;const Tm="user-content-";let $i=!0,Cr=!1,Ln={},Dt=null;const Ui=ie({},["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 Ec=null;const _c=ie({},["audio","video","img","source","image","track"]);let Wi=null;const Sc=ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Au="http://www.w3.org/1998/Math/MathML",ku="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let In=It,Gi=!1,Xi=null;const Nm=ie({},[Au,ku,It],Qu);let Cu=ie({},["mi","mo","mn","ms","mtext"]),Eu=ie({},["annotation-xml"]);const Lm=ie({},["title","style","font","a","script"]);let Er=null;const Im=["application/xhtml+xml","text/html"],Om="text/html";let Ce=null,On=null;const Pm=n.createElement("form"),Fc=function(S){return S instanceof RegExp||S instanceof Function},qi=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(On&&On===S)){if((!S||typeof S!="object")&&(S={}),S=kt(S),Er=Im.indexOf(S.PARSER_MEDIA_TYPE)===-1?Om:S.PARSER_MEDIA_TYPE,Ce=Er==="application/xhtml+xml"?Qu:Hr,te=Ye(S,"ALLOWED_TAGS")?ie({},S.ALLOWED_TAGS,Ce):P,V=Ye(S,"ALLOWED_ATTR")?ie({},S.ALLOWED_ATTR,Ce):T,Xi=Ye(S,"ALLOWED_NAMESPACES")?ie({},S.ALLOWED_NAMESPACES,Qu):Nm,Wi=Ye(S,"ADD_URI_SAFE_ATTR")?ie(kt(Sc),S.ADD_URI_SAFE_ATTR,Ce):Sc,Ec=Ye(S,"ADD_DATA_URI_TAGS")?ie(kt(_c),S.ADD_DATA_URI_TAGS,Ce):_c,Dt=Ye(S,"FORBID_CONTENTS")?ie({},S.FORBID_CONTENTS,Ce):Ui,W=Ye(S,"FORBID_TAGS")?ie({},S.FORBID_TAGS,Ce):kt({}),K=Ye(S,"FORBID_ATTR")?ie({},S.FORBID_ATTR,Ce):kt({}),Ln=Ye(S,"USE_PROFILES")?S.USE_PROFILES:!1,Y=S.ALLOW_ARIA_ATTR!==!1,ue=S.ALLOW_DATA_ATTR!==!1,ce=S.ALLOW_UNKNOWN_PROTOCOLS||!1,De=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=S.SAFE_FOR_TEMPLATES||!1,yt=S.SAFE_FOR_XML!==!1,Me=S.WHOLE_DOCUMENT||!1,Lt=S.RETURN_DOM||!1,wu=S.RETURN_DOM_FRAGMENT||!1,vu=S.RETURN_TRUSTED_TYPE||!1,Xt=S.FORCE_BODY||!1,kc=S.SANITIZE_DOM!==!1,Cc=S.SANITIZE_NAMED_PROPS||!1,$i=S.KEEP_CONTENT!==!1,Cr=S.IN_PLACE||!1,re=S.ALLOWED_URI_REGEXP||ia,In=S.NAMESPACE||It,Cu=S.MATHML_TEXT_INTEGRATION_POINTS||Cu,Eu=S.HTML_INTEGRATION_POINTS||Eu,L=S.CUSTOM_ELEMENT_HANDLING||{},S.CUSTOM_ELEMENT_HANDLING&&Fc(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=S.CUSTOM_ELEMENT_HANDLING.tagNameCheck),S.CUSTOM_ELEMENT_HANDLING&&Fc(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(ue=!1),wu&&(Lt=!0),Ln&&(te=ie({},na),V=zr(null),Ln.html===!0&&(ie(te,ta),ie(V,ra)),Ln.svg===!0&&(ie(te,ei),ie(V,ri),ie(V,$r)),Ln.svgFilters===!0&&(ie(te,ti),ie(V,ri),ie(V,$r)),Ln.mathMl===!0&&(ie(te,ni),ie(V,ua),ie(V,$r))),Ye(S,"ADD_TAGS")||(Z.tagCheck=null),Ye(S,"ADD_ATTR")||(Z.attributeCheck=null),S.ADD_TAGS&&(typeof S.ADD_TAGS=="function"?Z.tagCheck=S.ADD_TAGS:(te===P&&(te=kt(te)),ie(te,S.ADD_TAGS,Ce))),S.ADD_ATTR&&(typeof S.ADD_ATTR=="function"?Z.attributeCheck=S.ADD_ATTR:(V===T&&(V=kt(V)),ie(V,S.ADD_ATTR,Ce))),S.ADD_URI_SAFE_ATTR&&ie(Wi,S.ADD_URI_SAFE_ATTR,Ce),S.FORBID_CONTENTS&&(Dt===Ui&&(Dt=kt(Dt)),ie(Dt,S.FORBID_CONTENTS,Ce)),S.ADD_FORBID_CONTENTS&&(Dt===Ui&&(Dt=kt(Dt)),ie(Dt,S.ADD_FORBID_CONTENTS,Ce)),$i&&(te["#text"]=!0),Me&&ie(te,["html","head","body"]),te.table&&(ie(te,["tbody"]),delete W.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=S.TRUSTED_TYPES_POLICY,w=b.createHTML("")}else b===void 0&&(b=cf(g,i)),b!==null&&typeof w=="string"&&(w=b.createHTML(""));ze&&ze(S),On=S}},Dc=ie({},[...ei,...ti,...Kd]),Tc=ie({},[...ni,...Qd]),Rm=function(S){let j=h(S);(!j||!j.tagName)&&(j={namespaceURI:In,tagName:"template"});const Q=Hr(S.tagName),ge=Hr(j.tagName);return Xi[S.namespaceURI]?S.namespaceURI===ku?j.namespaceURI===It?Q==="svg":j.namespaceURI===Au?Q==="svg"&&(ge==="annotation-xml"||Cu[ge]):!!Dc[Q]:S.namespaceURI===Au?j.namespaceURI===It?Q==="math":j.namespaceURI===ku?Q==="math"&&Eu[ge]:!!Tc[Q]:S.namespaceURI===It?j.namespaceURI===ku&&!Eu[ge]||j.namespaceURI===Au&&!Cu[ge]?!1:!Tc[Q]&&(Lm[Q]||!Dc[Q]):!!(Er==="application/xhtml+xml"&&Xi[S.namespaceURI]):!1},Tt=function(S){Un(t.removed,{element:S});try{h(S).removeChild(S)}catch{x(S)}},sn=function(S,j){try{Un(t.removed,{attribute:j.getAttributeNode(S),from:j})}catch{Un(t.removed,{attribute:null,from:j})}if(j.removeAttribute(S),S==="is")if(Lt||wu)try{Tt(j)}catch{}else try{j.setAttribute(S,"")}catch{}},Nc=function(S){let j=null,Q=null;if(Xt)S="<remove></remove>"+S;else{const ve=Ju(S,/^[\r\n\t ]+/);Q=ve&&ve[0]}Er==="application/xhtml+xml"&&In===It&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const ge=b?b.createHTML(S):S;if(In===It)try{j=new m().parseFromString(ge,Er)}catch{}if(!j||!j.documentElement){j=C.createDocument(In,"template",null);try{j.documentElement.innerHTML=Gi?w:ge}catch{}}const Be=j.body||j.documentElement;return S&&Q&&Be.insertBefore(n.createTextNode(Q),Be.childNodes[0]||null),In===It?z.call(j,Me?"html":"body")[0]:Me?j.documentElement:Be},Lc=function(S){return E.call(S.ownerDocument||S,S,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Zi=function(S){return S instanceof l&&(typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||!(S.attributes instanceof f)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function")},Ic=function(S){return typeof s=="function"&&S instanceof s};function Ot(J,S,j){jr(J,Q=>{Q.call(t,S,j,On)})}const Oc=function(S){let j=null;if(Ot(I.beforeSanitizeElements,S,null),Zi(S))return Tt(S),!0;const Q=Ce(S.nodeName);if(Ot(I.uponSanitizeElement,S,{tagName:Q,allowedTags:te}),yt&&S.hasChildNodes()&&!Ic(S.firstElementChild)&&je(/<[/\w!]/g,S.innerHTML)&&je(/<[/\w!]/g,S.textContent)||S.nodeType===qn.progressingInstruction||yt&&S.nodeType===qn.comment&&je(/<[/\w]/g,S.data))return Tt(S),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(Q))&&(!te[Q]||W[Q])){if(!W[Q]&&Rc(Q)&&(L.tagNameCheck instanceof RegExp&&je(L.tagNameCheck,Q)||L.tagNameCheck instanceof Function&&L.tagNameCheck(Q)))return!1;if($i&&!Dt[Q]){const ge=h(S)||S.parentNode,Be=y(S)||S.childNodes;if(Be&&ge){const ve=Be.length;for(let Xe=ve-1;Xe>=0;--Xe){const Pt=v(Be[Xe],!0);Pt.__removalCount=(S.__removalCount||0)+1,ge.insertBefore(Pt,k(S))}}}return Tt(S),!0}return S instanceof c&&!Rm(S)||(Q==="noscript"||Q==="noembed"||Q==="noframes")&&je(/<\/no(script|embed|frames)/i,S.innerHTML)?(Tt(S),!0):(Te&&S.nodeType===qn.text&&(j=S.textContent,jr([B,D,H],ge=>{j=Wn(j,ge," ")}),S.textContent!==j&&(Un(t.removed,{element:S.cloneNode()}),S.textContent=j)),Ot(I.afterSanitizeElements,S,null),!1)},Pc=function(S,j,Q){if(K[j]||kc&&(j==="id"||j==="name")&&(Q in n||Q in Pm))return!1;if(!(ue&&!K[j]&&je($,j))){if(!(Y&&je(F,j))){if(!(Z.attributeCheck instanceof Function&&Z.attributeCheck(j,S))){if(!V[j]||K[j]){if(!(Rc(S)&&(L.tagNameCheck instanceof RegExp&&je(L.tagNameCheck,S)||L.tagNameCheck instanceof Function&&L.tagNameCheck(S))&&(L.attributeNameCheck instanceof RegExp&&je(L.attributeNameCheck,j)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(j,S))||j==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&je(L.tagNameCheck,Q)||L.tagNameCheck instanceof Function&&L.tagNameCheck(Q))))return!1}else if(!Wi[j]){if(!je(re,Wn(Q,O,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&S!=="script"&&Xd(Q,"data:")===0&&Ec[S])){if(!(ce&&!je(R,Wn(Q,O,"")))){if(Q)return!1}}}}}}}return!0},Rc=function(S){return S!=="annotation-xml"&&Ju(S,U)},Vc=function(S){Ot(I.beforeSanitizeAttributes,S,null);const{attributes:j}=S;if(!j||Zi(S))return;const Q={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let ge=j.length;for(;ge--;){const Be=j[ge],{name:ve,namespaceURI:Xe,value:Pt}=Be,Pn=Ce(ve),Yi=Pt;let Ie=ve==="value"?Yi:qd(Yi);if(Q.attrName=Pn,Q.attrValue=Ie,Q.keepAttr=!0,Q.forceKeepAttr=void 0,Ot(I.uponSanitizeAttribute,S,Q),Ie=Q.attrValue,Cc&&(Pn==="id"||Pn==="name")&&(sn(ve,S),Ie=Tm+Ie),yt&&je(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ie)){sn(ve,S);continue}if(Pn==="attributename"&&Ju(Ie,"href")){sn(ve,S);continue}if(Q.forceKeepAttr)continue;if(!Q.keepAttr){sn(ve,S);continue}if(!De&&je(/\/>/i,Ie)){sn(ve,S);continue}Te&&jr([B,D,H],Bc=>{Ie=Wn(Ie,Bc," ")});const Mc=Ce(S.nodeName);if(!Pc(Mc,Pn,Ie)){sn(ve,S);continue}if(b&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Xe)switch(g.getAttributeType(Mc,Pn)){case"TrustedHTML":{Ie=b.createHTML(Ie);break}case"TrustedScriptURL":{Ie=b.createScriptURL(Ie);break}}if(Ie!==Yi)try{Xe?S.setAttributeNS(Xe,ve,Ie):S.setAttribute(ve,Ie),Zi(S)?Tt(S):ea(t.removed)}catch{sn(ve,S)}}Ot(I.afterSanitizeAttributes,S,null)},Vm=function J(S){let j=null;const Q=Lc(S);for(Ot(I.beforeSanitizeShadowDOM,S,null);j=Q.nextNode();)Ot(I.uponSanitizeShadowNode,j,null),Oc(j),Vc(j),j.content instanceof r&&J(j.content);Ot(I.afterSanitizeShadowDOM,S,null)};return t.sanitize=function(J){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,Q=null,ge=null,Be=null;if(Gi=!J,Gi&&(J="<!-->"),typeof J!="string"&&!Ic(J))if(typeof J.toString=="function"){if(J=J.toString(),typeof J!="string")throw Gn("dirty is not a string, aborting")}else throw Gn("toString is not a function");if(!t.isSupported)return J;if(Nn||qi(S),t.removed=[],typeof J=="string"&&(Cr=!1),Cr){if(J.nodeName){const Pt=Ce(J.nodeName);if(!te[Pt]||W[Pt])throw Gn("root node is forbidden and cannot be sanitized in-place")}}else if(J instanceof s)j=Nc("<!---->"),Q=j.ownerDocument.importNode(J,!0),Q.nodeType===qn.element&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?j=Q:j.appendChild(Q);else{if(!Lt&&!Te&&!Me&&J.indexOf("<")===-1)return b&&vu?b.createHTML(J):J;if(j=Nc(J),!j)return Lt?null:vu?w:""}j&&Xt&&Tt(j.firstChild);const ve=Lc(Cr?J:j);for(;ge=ve.nextNode();)Oc(ge),Vc(ge),ge.content instanceof r&&Vm(ge.content);if(Cr)return J;if(Lt){if(wu)for(Be=_.call(j.ownerDocument);j.firstChild;)Be.appendChild(j.firstChild);else Be=j;return(V.shadowroot||V.shadowrootmode)&&(Be=M.call(u,Be,!0)),Be}let Xe=Me?j.outerHTML:j.innerHTML;return Me&&te["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&je(oa,j.ownerDocument.doctype.name)&&(Xe="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
17
+ `+Xe),Te&&jr([B,D,H],Pt=>{Xe=Wn(Xe,Pt," ")}),b&&vu?b.createHTML(Xe):Xe},t.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qi(J),Nn=!0},t.clearConfig=function(){On=null,Nn=!1},t.isValidAttribute=function(J,S,j){On||qi({});const Q=Ce(J),ge=Ce(S);return Pc(Q,ge,j)},t.addHook=function(J,S){typeof S=="function"&&Un(I[J],S)},t.removeHook=function(J,S){if(S!==void 0){const j=Wd(I[J],S);return j===-1?void 0:Gd(I[J],j,1)[0]}return ea(I[J])},t.removeHooks=function(J){I[J]=[]},t.removeAllHooks=function(){I=sa()},t}var lf=ca();const la={content:{type:Object,required:!0}},df=new Ze({html:!0,linkify:!0});function ff(e){let t=e;return t=t.replace(/([\u2026\u3001\u3002\uff0c\uff1a\uff1b\uff1f\uff01)】」』]|[;:,.!?(\[\]])[\t ]*(#{2,6}\s+)/g,`$1
18
+
19
+ $2`),t=t.replace(/(\*\*)(\s*)(#{2,6}\s+)/g,`$1
20
+
21
+ $3`),t}function hf(e){const t=e.split(`
22
+ `),n=t.filter(i=>i.trim().length>0);if(n.length===0)return e.trim();const u=Math.min(...n.map(i=>{var r;return(((r=i.match(/^\s*/))==null?void 0:r[0])??"").length}));return t.map(i=>i.slice(u)).join(`
23
+ `).trim()}const pn=o.defineComponent({name:"FXMarkdownMessage",props:la,setup(e){const t=o.computed(()=>{var a;const n=(((a=e.content)==null?void 0:a.content)??"").replace(/\\n/g,`
24
+ `),u=ff(n),i=hf(u);if(!i)return"";const r=df.render(i);return lf.sanitize(r,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var u;const n=(u=e.content)==null?void 0:u.message;return o.createVNode("div",{class:"f-chat-message-markdown"},[n&&o.createVNode("div",{class:"f-chat-markdown-message"},[n]),o.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});pn.install=e=>{e.component(pn.name,pn)};const mf=(e,t,n)=>{if(e.type!==Oe.Text)return null;const i=e.raw;return i?typeof i!="string"?i:i.trim()?n.shouldShowMarkdown.value?o.createVNode(pn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:i}},null):o.createVNode("div",{class:"f-chat-bubble-content-text",key:`bubble-text-${t}`},[i]):null:null};function pf(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 gf(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 bf=function(){function e(n){var u=this;this._insertTag=function(i){var r;u.tags.length===0?u.insertionPoint?r=u.insertionPoint.nextSibling:u.prepend?r=u.container.firstChild:r=u.before:r=u.tags[u.tags.length-1].nextSibling,u.container.insertBefore(i,r),u.tags.push(i)},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(u){u.forEach(this._insertTag)},t.insert=function(u){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var r=pf(i);try{r.insertRule(u,r.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(u));this.ctr++},t.flush=function(){this.tags.forEach(function(u){var i;return(i=u.parentNode)==null?void 0:i.removeChild(u)}),this.tags=[],this.ctr=0},e}(),Pe="-ms-",Ur="-moz-",ae="-webkit-",da="comm",ui="rule",ii="decl",yf="@import",fa="@keyframes",xf="@layer",wf=Math.abs,Wr=String.fromCharCode,vf=Object.assign;function Af(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function ha(e){return e.trim()}function kf(e,t){return(e=t.exec(e))?e[0]:e}function se(e,t,n){return e.replace(t,n)}function oi(e,t){return e.indexOf(t)}function Ne(e,t){return e.charCodeAt(t)|0}function Zn(e,t,n){return e.slice(t,n)}function Ct(e){return e.length}function ai(e){return e.length}function Gr(e,t){return t.push(e),e}function Cf(e,t){return e.map(t).join("")}var Xr=1,gn=1,ma=0,Ge=0,xe=0,bn="";function qr(e,t,n,u,i,r,a){return{value:e,root:t,parent:n,type:u,props:i,children:r,line:Xr,column:gn,length:a,return:""}}function Yn(e,t){return vf(qr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ef(){return xe}function _f(){return xe=Ge>0?Ne(bn,--Ge):0,gn--,xe===10&&(gn=1,Xr--),xe}function Ke(){return xe=Ge<ma?Ne(bn,Ge++):0,gn++,xe===10&&(gn=1,Xr++),xe}function Et(){return Ne(bn,Ge)}function Zr(){return Ge}function Kn(e,t){return Zn(bn,e,t)}function Qn(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 pa(e){return Xr=gn=1,ma=Ct(bn=e),Ge=0,[]}function ga(e){return bn="",e}function Yr(e){return ha(Kn(Ge-1,si(e===91?e+2:e===40?e+1:e)))}function Sf(e){for(;(xe=Et())&&xe<33;)Ke();return Qn(e)>2||Qn(xe)>3?"":" "}function Ff(e,t){for(;--t&&Ke()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Kn(e,Zr()+(t<6&&Et()==32&&Ke()==32))}function si(e){for(;Ke();)switch(xe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&si(xe);break;case 40:e===41&&si(e);break;case 92:Ke();break}return Ge}function Df(e,t){for(;Ke()&&e+xe!==57;)if(e+xe===84&&Et()===47)break;return"/*"+Kn(t,Ge-1)+"*"+Wr(e===47?e:Ke())}function Tf(e){for(;!Qn(Et());)Ke();return Kn(e,Ge)}function Nf(e){return ga(Kr("",null,null,null,[""],e=pa(e),0,[0],e))}function Kr(e,t,n,u,i,r,a,s,c){for(var d=0,f=0,l=a,m=0,g=0,p=0,v=1,x=1,k=1,y=0,h="",b=i,w=r,C=u,E=h;x;)switch(p=y,y=Ke()){case 40:if(p!=108&&Ne(E,l-1)==58){oi(E+=se(Yr(y),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:E+=Yr(y);break;case 9:case 10:case 13:case 32:E+=Sf(p);break;case 92:E+=Ff(Zr()-1,7);continue;case 47:switch(Et()){case 42:case 47:Gr(Lf(Df(Ke(),Zr()),t,n),c);break;default:E+="/"}break;case 123*v:s[d++]=Ct(E)*k;case 125*v:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+f:k==-1&&(E=se(E,/\f/g,"")),g>0&&Ct(E)-l&&Gr(g>32?ya(E+";",u,n,l-1):ya(se(E," ","")+";",u,n,l-2),c);break;case 59:E+=";";default:if(Gr(C=ba(E,t,n,d,f,i,s,h,b=[],w=[],l),r),y===123)if(f===0)Kr(E,t,C,C,b,r,l,s,w);else switch(m===99&&Ne(E,3)===110?100:m){case 100:case 108:case 109:case 115:Kr(e,C,C,u&&Gr(ba(e,C,C,0,0,i,s,h,i,b=[],l),w),i,w,l,s,u?b:w);break;default:Kr(E,C,C,C,[""],w,0,s,w)}}d=f=g=0,v=k=1,h=E="",l=a;break;case 58:l=1+Ct(E),g=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&_f()==125)continue}switch(E+=Wr(y),y*v){case 38:k=f>0?1:(E+="\f",-1);break;case 44:s[d++]=(Ct(E)-1)*k,k=1;break;case 64:Et()===45&&(E+=Yr(Ke())),m=Et(),f=l=Ct(h=E+=Tf(Zr())),y++;break;case 45:p===45&&Ct(E)==2&&(v=0)}}return r}function ba(e,t,n,u,i,r,a,s,c,d,f){for(var l=i-1,m=i===0?r:[""],g=ai(m),p=0,v=0,x=0;p<u;++p)for(var k=0,y=Zn(e,l+1,l=wf(v=a[p])),h=e;k<g;++k)(h=ha(v>0?m[k]+" "+y:se(y,/&\f/g,m[k])))&&(c[x++]=h);return qr(e,t,n,i===0?ui:s,c,d,f)}function Lf(e,t,n){return qr(e,t,n,da,Wr(Ef()),Zn(e,2,-2),0)}function ya(e,t,n,u){return qr(e,t,n,ii,Zn(e,0,u),Zn(e,u+1,-1),u)}function yn(e,t){for(var n="",u=ai(e),i=0;i<u;i++)n+=t(e[i],i,e,t)||"";return n}function If(e,t,n,u){switch(e.type){case xf:if(e.children.length)break;case yf:case ii:return e.return=e.return||e.value;case da:return"";case fa:return e.return=e.value+"{"+yn(e.children,u)+"}";case ui:e.value=e.props.join(",")}return Ct(n=yn(e.children,u))?e.return=e.value+"{"+n+"}":""}function Of(e){var t=ai(e);return function(n,u,i,r){for(var a="",s=0;s<t;s++)a+=e[s](n,u,i,r)||"";return a}}function Pf(e){return function(t){t.root||(t=t.return)&&e(t)}}function Rf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Vf=function(t,n,u){for(var i=0,r=0;i=r,r=Et(),i===38&&r===12&&(n[u]=1),!Qn(r);)Ke();return Kn(t,Ge)},Mf=function(t,n){var u=-1,i=44;do switch(Qn(i)){case 0:i===38&&Et()===12&&(n[u]=1),t[u]+=Vf(Ge-1,n,u);break;case 2:t[u]+=Yr(i);break;case 4:if(i===44){t[++u]=Et()===58?"&\f":"",n[u]=t[u].length;break}default:t[u]+=Wr(i)}while(i=Ke());return t},Bf=function(t,n){return ga(Mf(pa(t),n))},xa=new WeakMap,zf=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,u=t.parent,i=t.column===u.column&&t.line===u.line;u.type!=="rule";)if(u=u.parent,!u)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!xa.get(u))&&!i){xa.set(t,!0);for(var r=[],a=Bf(n,r),s=u.props,c=0,d=0;c<a.length;c++)for(var f=0;f<s.length;f++,d++)t.props[d]=r[c]?a[c].replace(/&\f/g,s[f]):s[f]+" "+a[c]}}},jf=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function wa(e,t){switch(Af(e,t)){case 5103:return ae+"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 ae+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+Ur+e+Pe+e+e;case 6828:case 4268:return ae+e+Pe+e+e;case 6165:return ae+e+Pe+"flex-"+e+e;case 5187:return ae+e+se(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return ae+e+Pe+"flex-item-"+se(e,/flex-|-self/,"")+e;case 4675:return ae+e+Pe+"flex-line-pack"+se(e,/align-content|flex-|-self/,"")+e;case 5548:return ae+e+Pe+se(e,"shrink","negative")+e;case 5292:return ae+e+Pe+se(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+se(e,"-grow","")+ae+e+Pe+se(e,"grow","positive")+e;case 4554:return ae+se(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return se(se(se(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return se(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return se(se(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ae+e+e;case 4095:case 3583:case 4068:case 2532:return se(e,/(.+)-inline(.+)/,ae+"$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(Ct(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Ur+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oi(e,"stretch")?wa(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ne(e,t+1)!==115)break;case 6444:switch(Ne(e,Ct(e)-3-(~oi(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Ne(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Pe+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Pe+e+e}return e}var Hf=function(t,n,u,i){if(t.length>-1&&!t.return)switch(t.type){case ii:t.return=wa(t.value,t.length);break;case fa:return yn([Yn(t,{value:se(t.value,"@","@"+ae)})],i);case ui:if(t.length)return Cf(t.props,function(r){switch(kf(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([Yn(t,{props:[se(r,/:(read-\w+)/,":"+Ur+"$1")]})],i);case"::placeholder":return yn([Yn(t,{props:[se(r,/:(plac\w+)/,":"+ae+"input-$1")]}),Yn(t,{props:[se(r,/:(plac\w+)/,":"+Ur+"$1")]}),Yn(t,{props:[se(r,/:(plac\w+)/,Pe+"input-$1")]})],i)}return""})}},$f=[Hf],Uf=function(t){var n=t.key;if(n==="css"){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||$f,r={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),k=1;k<x.length;k++)r[x[k]]=!0;s.push(v)});var c,d=[zf,jf];{var f,l=[If,Pf(function(v){f.insert(v)})],m=Of(d.concat(i,l)),g=function(x){return yn(Nf(x),m)};c=function(x,k,y,h){f=y,g(x?x+"{"+k.styles+"}":k.styles),h&&(p.inserted[k.name]=!0)}}var p={key:n,sheet:new bf({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:r,registered:{},insert:c};return p.sheet.hydrate(s),p};function Wf(e){for(var t=0,n,u=0,i=e.length;i>=4;++u,i-=4)n=e.charCodeAt(u)&255|(e.charCodeAt(++u)&255)<<8|(e.charCodeAt(++u)&255)<<16|(e.charCodeAt(++u)&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(i){case 3:t^=(e.charCodeAt(u+2)&255)<<16;case 2:t^=(e.charCodeAt(u+1)&255)<<8;case 1:t^=e.charCodeAt(u)&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 Gf={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},Xf=/[A-Z]|^ms/g,qf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,va=function(t){return t.charCodeAt(1)===45},Aa=function(t){return t!=null&&typeof t!="boolean"},ci=Rf(function(e){return va(e)?e:e.replace(Xf,"-$&").toLowerCase()}),ka=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(qf,function(u,i,r){return zt={name:i,styles:r,next:zt},i})}return Gf[t]!==1&&!va(t)&&typeof n=="number"&&n!==0?n+"px":n};function Qr(e,t,n){if(n==null)return"";var u=n;if(u.__emotion_styles!==void 0)return u;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return zt={name:i.name,styles:i.styles,next:zt},i.name;var r=n;if(r.styles!==void 0){var a=r.next;if(a!==void 0)for(;a!==void 0;)zt={name:a.name,styles:a.styles,next:zt},a=a.next;var s=r.styles+";";return s}return Zf(e,t,n)}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function Zf(e,t,n){var u="";if(Array.isArray(n))for(var i=0;i<n.length;i++)u+=Qr(e,t,n[i])+";";else for(var r in n){var a=n[r];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?u+=r+"{"+t[s]+"}":Aa(s)&&(u+=ci(r)+":"+ka(r,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Aa(a[c])&&(u+=ci(r)+":"+ka(r,a[c])+";");else{var d=Qr(e,t,a);switch(r){case"animation":case"animationName":{u+=ci(r)+":"+d+";";break}default:u+=r+"{"+d+"}"}}}return u}var Ca=/label:\s*([^\s;{]+)\s*(;|$)/g,zt;function li(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var u=!0,i="";zt=void 0;var r=e[0];if(r==null||r.raw===void 0)u=!1,i+=Qr(n,t,r);else{var a=r;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qr(n,t,e[s]),u){var c=r;i+=c[s]}Ca.lastIndex=0;for(var d="",f;(f=Ca.exec(i))!==null;)d+="-"+f[1];var l=Wf(i)+d;return{name:l,styles:i,next:zt}}function Ea(e,t,n){var u="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(u+=i+" ")}),u}var Yf=function(t,n,u){var i=t.key+"-"+n.name;t.registered[i]===void 0&&(t.registered[i]=n.styles)},Kf=function(t,n,u){Yf(t,n);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var r=n;do t.insert(n===r?"."+i:"",r,t.sheet,!0),r=r.next;while(r!==void 0)}};function _a(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Sa(e,t,n){var u=[],i=Ea(e,u,n);return u.length<2?n:i+t(u)}var Qf=function(t){var n=Uf(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var u=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=li(d,n.registered,void 0);return Kf(n,l),n.key+"-"+l.name},i=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=li(d,n.registered),m="animation-"+l.name;return _a(n,{name:l.name,styles:"@keyframes "+m+"{"+l.styles+"}"}),m},r=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=li(d,n.registered);_a(n,l)},a=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return Sa(n.registered,u,Jf(d))};return{css:u,cx:a,injectGlobal:r,keyframes:i,hydrate:function(c){c.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Ea.bind(null,n.registered),merge:Sa.bind(null,n.registered,u)}},Jf=function e(t){for(var n="",u=0;u<t.length;u++){var i=t[u];if(i!=null){var r=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))r=e(i);else{r="";for(var a in i)i[a]&&a&&(r&&(r+=" "),r+=a)}break}default:r=i}r&&(n&&(n+=" "),n+=r)}}return n},eh=Qf({key:"css"}),di=eh.css,th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fa={exports:{}};/*!
21
25
  Copyright (c) 2018 Jed Watson.
22
26
  Licensed under the MIT License (MIT), see
23
27
  http://jedwatson.github.io/classnames
24
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var u="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(u=o(u,r(s)))}return u}function r(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return n.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var a="";for(var s in u)t.call(u,s)&&u[s]&&(a=o(a,s));return a}function o(u,a){return a?u?u+" "+a:u+a:u}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ba);var zf=ba.exports;const ro=Bf(zf),ya={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 jf{constructor(t){fe(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 Hf(){function e(t,n){if(t===n)return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null||Array.isArray(t)!==Array.isArray(n))return!1;const r=Object.keys(t),o=Object.keys(n);if(r.length!==o.length)return!1;for(const u of r)if(!o.includes(u)||!e(t[u],n[u]))return!1;return!0}return{deepEqual:e}}var oo={exports:{}};(function(e,t){(function(n,r){r(t)})(Vf,function(n){var r=Object.defineProperty,o=Object.defineProperties,u=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,d=(I,V,D)=>V in I?r(I,V,{enumerable:!0,configurable:!0,writable:!0,value:D}):I[V]=D,f=(I,V)=>{for(var D in V||(V={}))s.call(V,D)&&d(I,D,V[D]);if(a)for(var D of a(V))c.call(V,D)&&d(I,D,V[D]);return I},l=(I,V)=>o(I,u(V)),p=(I,V,D)=>new Promise((L,W)=>{var K=ue=>{try{Z(D.next(ue))}catch(ce){W(ce)}},Y=ue=>{try{Z(D.throw(ue))}catch(ce){W(ce)}},Z=ue=>ue.done?L(ue.value):Promise.resolve(ue.value).then(K,Y);Z((D=D.apply(I,V)).next())}),m=(I=>(I[I.NONE=0]="NONE",I[I.LOADING=1]="LOADING",I[I.LOADED=2]="LOADED",I[I.ERROR=3]="ERROR",I))(m||{});class h{constructor(V){this.items={},this.factory=V}getOrCreateItemByURL(V){let D=this.items[V];return D||(D=this.items[V]=this.factory(V)),D}tryGetItemByURL(V){var D;return(D=this.items[V])!=null?D:null}removeItemByURL(V){const D=this.items[V];return D&&(this.items[V]=null,D)}}const x="__RUNTIME_IMPORT__";function y(I,V){var D,L;const W=globalThis,K=(D=W[x])!=null?D:W[x]={};return(L=K[I])!=null?L:K[I]=V()}const v=y("cssCache",()=>new h(I=>({url:I,status:m.NONE,el:null,error:null,reject:null})));function g(I,V,D){const L={handleLoad(){I.removeEventListener("load",L.handleLoad),I.removeEventListener("error",L.handleError),V()},handleError(W){I.removeEventListener("load",L.handleLoad),I.removeEventListener("error",L.handleError),D(W)}};I.addEventListener("load",L.handleLoad),I.addEventListener("error",L.handleError)}function b(I){const V=v.getOrCreateItemByURL(I),{status:D,error:L}=V;return D===m.LOADED?Promise.resolve():D===m.ERROR?Promise.reject(L):D===m.LOADING?new Promise((W,K)=>{const{el:Y}=V;g(Y,()=>W(),Z=>K(Z.error))}):(V.status=m.LOADING,new Promise((W,K)=>{const Y=document.createElement("link");Y.rel="stylesheet",Y.href=I,g(Y,()=>{V.status=m.LOADED,W()},Z=>{const ue=Z.error||new Error(`Load css failed. href=${I}`);V.status=m.ERROR,V.error=ue,K(ue)}),V.el=Y,Y.setAttribute("data-runtime-import-type","css"),document.head.appendChild(Y)}))}function A(I){return Promise.all(I.map(V=>b(V))).then(()=>Promise.resolve()).catch(V=>Promise.reject(V))}const k=y("jsCache",()=>new h(I=>({url:I,status:m.NONE,el:null,error:null,reject:null,exportThing:void 0}))),F=globalThis,{define:_}=F,{keys:E}=Object;let $=!1;typeof _<"u"&&!_.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),$=!0);const R=y("pendingItemMap",()=>({})),O=function(...I){const V=I.pop(),{currentScript:D}=document;if(!D)throw new Error("currentScript is null.");const{src:L}=D,W=R[L];if(!W)throw new Error(`Can NOT find item, src=${L}`);R[L]=null;try{let K=I[0]||[],Y=null;typeof K=="string"&&(Y=K,K=I[1]||[]);const Z=W.exportThing=(()=>{let ue=!1;const ce={};let Te=V(...K.map(Ne=>Ne==="exports"?(ue=!0,ce):F[Ne]));return!Te&&ue&&(Te=ce),Te})();Y&&(F[Y]=Z),Z&&E(Z).length===1&&Z.default&&(W.exportThing=Z.default,W.exportThing.default=Z.default)}catch(K){W.status=m.ERROR,K instanceof Error&&(W.error=K),W.reject(K)}},P=()=>{const{currentScript:I}=document;if(I){const{src:V}=I;if(R[V])return!0}return!1};["amd","cmd"].forEach(I=>{Object.defineProperty(O,I,{get:P})}),O.runtime_import=!0;function S(I,V){if($)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");F.define||(F.define=O),R[I]=V}function z(I){const V=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(I),D=window;if(V&&V.length>0){const L=V[1];D.g_config=D.g_config||{},D.g_config.appKey=L}}function j(I,V,D){I.status=m.LOADING,z(V);const{umd:L,crossOrigin:W}=D;return new Promise((K,Y)=>{const Z=document.createElement("script");if(Z.src=V,Z.async=!1,Z.crossOrigin=W,L){Z.setAttribute("data-runtime-import-type","javascript-umd"),I.reject=Y;const ue=Z.src;S(ue,I)}else Z.setAttribute("data-runtime-import-type","javascript");g(Z,()=>{I.status=m.LOADED,I.el=null,K(I.exportThing)},ue=>{const ce=ue.error||new Error(`Load javascript failed. src=${V}`);I.status=m.ERROR,I.error=ce,I.el=null,Y(ce)}),I.el=Z,document.body.appendChild(Z)})}function T(I,V){const D=k.getOrCreateItemByURL(I),{status:L,exportThing:W,error:K}=D;if(L===m.LOADED)return Promise.resolve(W);if(L===m.ERROR)return Promise.reject(K);if(L===m.LOADING){const{el:Y}=D;return new Promise((Z,ue)=>{g(Y,()=>Z(D.exportThing),ce=>ue(ce.error))})}return j(D,I,V)}function q(I,V){let D=Promise.resolve();const L=I.length-1,{umd:W}=V;return I.forEach((K,Y)=>{const Z=W&&Y===L;D=D.then(()=>T(K,l(f({},V),{umd:Z})))}),D}function M(I){return p(this,null,function*(){const{scripts:V,styles:D}=I;if(D){const{urls:Z}=D;yield A(Z)}const{dependencies:L=[],entry:W,umd:K=!0,crossOrigin:Y="anonymous"}=V;if((W?L.concat([W]):L).length)return yield q(L.concat([W]),{umd:K,crossOrigin:Y})})}function G(I,V){return p(this,null,function*(){const D=V??{};return yield M({scripts:{dependencies:[],entry:I,umd:D.umd,crossOrigin:D.crossOrigin}})})}function re(I){return p(this,null,function*(){return yield M({scripts:{dependencies:[],entry:""},styles:{urls:[I]}})})}const ne=M;n.importComponent=M,n.importModule=ne,n.importScript=G,n.importStyle=re,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(oo,oo.exports);var $f=oo.exports;function Uf(){async function e(t){return await $f.importScript(t)}return{loadWidgetAPI:e}}const mn=i.defineComponent({name:"FXWidgetContainer",props:ya,setup(e,t){const{loadWidgetAPI:n}=Uf(),{deepEqual:r}=Hf(),o=i.ref(null),u=i.ref(null),a=i.ref(null),s=i.ref(null),c=i.ref(null),d=i.computed(()=>{const g=uo`width:100%!important`;return ro("caf-assistant-widget-container__root",g,e.className)}),f=uo`
28
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(r=i(r,u(s)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var s in r)t.call(r,s)&&r[s]&&(a=i(a,s));return a}function i(r,a){return a?r?r+" "+a:r+a:r}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Fa);var rh=Fa.exports;const fi=nh(rh),Da={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 uh{constructor(t){fe(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 ih(){function e(t,n){if(t===n)return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null||Array.isArray(t)!==Array.isArray(n))return!1;const u=Object.keys(t),i=Object.keys(n);if(u.length!==i.length)return!1;for(const r of u)if(!i.includes(r)||!e(t[r],n[r]))return!1;return!0}return{deepEqual:e}}var hi={exports:{}};(function(e,t){(function(n,u){u(t)})(th,function(n){var u=Object.defineProperty,i=Object.defineProperties,r=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,d=(P,V,T)=>V in P?u(P,V,{enumerable:!0,configurable:!0,writable:!0,value:T}):P[V]=T,f=(P,V)=>{for(var T in V||(V={}))s.call(V,T)&&d(P,T,V[T]);if(a)for(var T of a(V))c.call(V,T)&&d(P,T,V[T]);return P},l=(P,V)=>i(P,r(V)),m=(P,V,T)=>new Promise((L,W)=>{var K=ue=>{try{Y(T.next(ue))}catch(ce){W(ce)}},Z=ue=>{try{Y(T.throw(ue))}catch(ce){W(ce)}},Y=ue=>ue.done?L(ue.value):Promise.resolve(ue.value).then(K,Z);Y((T=T.apply(P,V)).next())}),g=(P=>(P[P.NONE=0]="NONE",P[P.LOADING=1]="LOADING",P[P.LOADED=2]="LOADED",P[P.ERROR=3]="ERROR",P))(g||{});class p{constructor(V){this.items={},this.factory=V}getOrCreateItemByURL(V){let T=this.items[V];return T||(T=this.items[V]=this.factory(V)),T}tryGetItemByURL(V){var T;return(T=this.items[V])!=null?T:null}removeItemByURL(V){const T=this.items[V];return T&&(this.items[V]=null,T)}}const v="__RUNTIME_IMPORT__";function x(P,V){var T,L;const W=globalThis,K=(T=W[v])!=null?T:W[v]={};return(L=K[P])!=null?L:K[P]=V()}const k=x("cssCache",()=>new p(P=>({url:P,status:g.NONE,el:null,error:null,reject:null})));function y(P,V,T){const L={handleLoad(){P.removeEventListener("load",L.handleLoad),P.removeEventListener("error",L.handleError),V()},handleError(W){P.removeEventListener("load",L.handleLoad),P.removeEventListener("error",L.handleError),T(W)}};P.addEventListener("load",L.handleLoad),P.addEventListener("error",L.handleError)}function h(P){const V=k.getOrCreateItemByURL(P),{status:T,error:L}=V;return T===g.LOADED?Promise.resolve():T===g.ERROR?Promise.reject(L):T===g.LOADING?new Promise((W,K)=>{const{el:Z}=V;y(Z,()=>W(),Y=>K(Y.error))}):(V.status=g.LOADING,new Promise((W,K)=>{const Z=document.createElement("link");Z.rel="stylesheet",Z.href=P,y(Z,()=>{V.status=g.LOADED,W()},Y=>{const ue=Y.error||new Error(`Load css failed. href=${P}`);V.status=g.ERROR,V.error=ue,K(ue)}),V.el=Z,Z.setAttribute("data-runtime-import-type","css"),document.head.appendChild(Z)}))}function b(P){return Promise.all(P.map(V=>h(V))).then(()=>Promise.resolve()).catch(V=>Promise.reject(V))}const w=x("jsCache",()=>new p(P=>({url:P,status:g.NONE,el:null,error:null,reject:null,exportThing:void 0}))),C=globalThis,{define:E}=C,{keys:_}=Object;let z=!1;typeof E<"u"&&!E.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),z=!0);const M=x("pendingItemMap",()=>({})),I=function(...P){const V=P.pop(),{currentScript:T}=document;if(!T)throw new Error("currentScript is null.");const{src:L}=T,W=M[L];if(!W)throw new Error(`Can NOT find item, src=${L}`);M[L]=null;try{let K=P[0]||[],Z=null;typeof K=="string"&&(Z=K,K=P[1]||[]);const Y=W.exportThing=(()=>{let ue=!1;const ce={};let De=V(...K.map(Te=>Te==="exports"?(ue=!0,ce):C[Te]));return!De&&ue&&(De=ce),De})();Z&&(C[Z]=Y),Y&&_(Y).length===1&&Y.default&&(W.exportThing=Y.default,W.exportThing.default=Y.default)}catch(K){W.status=g.ERROR,K instanceof Error&&(W.error=K),W.reject(K)}},B=()=>{const{currentScript:P}=document;if(P){const{src:V}=P;if(M[V])return!0}return!1};["amd","cmd"].forEach(P=>{Object.defineProperty(I,P,{get:B})}),I.runtime_import=!0;function D(P,V){if(z)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");C.define||(C.define=I),M[P]=V}function H(P){const V=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(P),T=window;if(V&&V.length>0){const L=V[1];T.g_config=T.g_config||{},T.g_config.appKey=L}}function $(P,V,T){P.status=g.LOADING,H(V);const{umd:L,crossOrigin:W}=T;return new Promise((K,Z)=>{const Y=document.createElement("script");if(Y.src=V,Y.async=!1,Y.crossOrigin=W,L){Y.setAttribute("data-runtime-import-type","javascript-umd"),P.reject=Z;const ue=Y.src;D(ue,P)}else Y.setAttribute("data-runtime-import-type","javascript");y(Y,()=>{P.status=g.LOADED,P.el=null,K(P.exportThing)},ue=>{const ce=ue.error||new Error(`Load javascript failed. src=${V}`);P.status=g.ERROR,P.error=ce,P.el=null,Z(ce)}),P.el=Y,document.body.appendChild(Y)})}function F(P,V){const T=w.getOrCreateItemByURL(P),{status:L,exportThing:W,error:K}=T;if(L===g.LOADED)return Promise.resolve(W);if(L===g.ERROR)return Promise.reject(K);if(L===g.LOADING){const{el:Z}=T;return new Promise((Y,ue)=>{y(Z,()=>Y(T.exportThing),ce=>ue(ce.error))})}return $(T,P,V)}function R(P,V){let T=Promise.resolve();const L=P.length-1,{umd:W}=V;return P.forEach((K,Z)=>{const Y=W&&Z===L;T=T.then(()=>F(K,l(f({},V),{umd:Y})))}),T}function O(P){return m(this,null,function*(){const{scripts:V,styles:T}=P;if(T){const{urls:Y}=T;yield b(Y)}const{dependencies:L=[],entry:W,umd:K=!0,crossOrigin:Z="anonymous"}=V;if((W?L.concat([W]):L).length)return yield R(L.concat([W]),{umd:K,crossOrigin:Z})})}function U(P,V){return m(this,null,function*(){const T=V??{};return yield O({scripts:{dependencies:[],entry:P,umd:T.umd,crossOrigin:T.crossOrigin}})})}function re(P){return m(this,null,function*(){return yield O({scripts:{dependencies:[],entry:""},styles:{urls:[P]}})})}const te=O;n.importComponent=O,n.importModule=te,n.importScript=U,n.importStyle=re,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(hi,hi.exports);var oh=hi.exports;function ah(){async function e(t){return await oh.importScript(t)}return{loadWidgetAPI:e}}const xn=o.defineComponent({name:"FXWidgetContainer",props:Da,setup(e,t){const{loadWidgetAPI:n}=ah(),{deepEqual:u}=ih(),i=o.ref(null),r=o.ref(null),a=o.ref(null),s=o.ref(null),c=o.ref(null),d=o.computed(()=>{const y=di`width:100%!important`;return fi("caf-assistant-widget-container__root",y,e.className)}),f=di`
25
29
  overflow: hidden;
26
- `,l=ro("caf-assistant-widget-container__inner",f),p=i.computed(()=>{const g=uo`
30
+ `,l=fi("caf-assistant-widget-container__inner",f),m=o.computed(()=>{const y=di`
27
31
  display: ${c.value?"block":"none"};
28
- `;return ro("caf-assistant-widget-container__error",g)}),m=()=>{const g=a.value;g&&(s.value=new jf(g))},h=()=>{const g=s.value;g&&(g.dispose(),s.value=null)},x=()=>{const g=u.value,b=o.value;g&&(g.unmount(),g.dispose()),b&&b.cleanup(),u.value=null,o.value=null},y=async()=>{const g=await n(e.widgetAPIURL);if(!g)throw new Error("Failed to load widget API");await g.initialize();const b=g.createWidget();o.value=g,u.value=b},v=g=>{console.error(g),c.value=g};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{x(),await y();const g=a.value,b=u.value;b==null||b.updateOptions(e.widgetOptions),b==null||b.updateData(e.widgetData),g&&b&&await b.mount(g)}catch(g){v(g)}}),i.watch(()=>e.widgetOptions,(g,b)=>{try{const A=u.value;A&&(!b||!r(b,g))&&A.updateOptions(g)}catch(A){v(A)}}),i.watch(()=>e.widgetData,(g,b)=>{try{const A=u.value;A&&(!b||!r(b,g))&&A.updateData(g)}catch(A){v(A)}}),i.onMounted(async()=>{try{const g=a.value;if(g){m();const b=s.value;if(b){await y();const A=u.value;A&&(A.updateOptions(e.widgetOptions),A.updateData(e.widgetData),A.mount(b.getElement()),i.nextTick(()=>{g.parentElement&&(g.style.width="100%")}))}}}catch(g){v(g)}}),i.onBeforeUnmount(async()=>{try{x(),h()}catch(g){console.error(g)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:l},null),i.createVNode("div",{class:p.value},null)])}}),xa=(e,t)=>{var n;if(e.type===ke.AssistantWidgetComplete){const r=e;return r.widgetUrl?i.createVNode(mn,{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===ke.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},Wf=3e4,vt=new Map,Xn=new Map,Zn=new Map;function io(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function Aa(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(io(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function Gf(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 wa(e){const t=Xn.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=vt.get(e.instanceId);if(n)return new Promise((o,u)=>{const a=n.resolve,s=n.reject;n.resolve=c=>{a(c),o(c)},n.reject=c=>{s(c),u(c)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const r=Gf(e);return new Promise((o,u)=>{const a=setTimeout(()=>{vt.delete(e.instanceId),u(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},Wf),s={config:e,container:r,resolve:o,reject:u,timeoutId:a};vt.set(e.instanceId,s);const c=document.createElement("script");c.src=(e==null?void 0:e.jsUrl)??"",c.dataset.dynamicComponentId=e.instanceId,c.onload=()=>{setTimeout(()=>{vt.has(e.instanceId)&&(clearTimeout(a),vt.delete(e.instanceId),u(new Error(`Dynamic component did not call __fluens_dynamic_component_register: ${e.name||e.componentId}`)))},200)},c.onerror=()=>{clearTimeout(a),vt.delete(e.instanceId),u(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(c)})}function va(e){var o;const t=Xn.get(e);if(t){try{t.api.unmount()}catch{}(o=t.scriptElement)==null||o.remove(),Xn.delete(e)}const n=vt.get(e);n&&(clearTimeout(n.timeoutId),vt.delete(e)),Zn.delete(e);const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}function qf(e,t){const n=String(e??"").trim();if(!n)return!1;const r=Xn.get(n);if(r)return Aa(r.api,t);const o=Zn.get(n)??[],u=o.findIndex(a=>a.messageId===t.messageId);return u>=0?o[u]=io(t):o.push(io(t)),Zn.set(n,o),!1}typeof window<"u"&&(window.__fluens_dynamic_component_register=function(e,t){const n=vt.get(e);if(!n){console.warn(`Failed to read data in pending dynamic component: ${e}`);return}clearTimeout(n.timeoutId),vt.delete(e);const r={config:n.config,container:n.container,api:t,scriptElement:document.currentScript};Xn.set(e,r),r.container.parentElement;try{t.mount(n.container,n.config)}catch(u){console.error(`Failed to mount dynamic component: ${e}`,u)}const o=Zn.get(e);o&&o.length>0&&(Zn.delete(e),o.forEach(u=>Aa(t,u))),n.resolve(t)});const gn=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}`),o=i.computed(()=>e.config.position==="inline"),u=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({width:"fit-content",maxWidth:"100%",height:"auto",...t.value==="ready"&&o.value?{padding:"16px 0"}:{},...t.value==="ready"&&!o.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{u.value||(t.value="loading",n.value="",wa(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{u.value||va(e.config.instanceId)}),()=>u.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])])])}}),ka=(e,t,n)=>{if(e.type===ke.DynamicComponentComplete){const r=e;if(!r.config)return null;if(r.config.position==="inline")return i.createVNode(gn,{key:`dc-${t}`,config:r.config},null);const o={type:"file",fileContent:{type:"md",name:r.config.title}},u={onPreviewFile:a=>{n.emit("showDynamicComponent",r.config)}};return i.nextTick(()=>n.emit("dynamicComponentsDetected",[r.config])),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(o,u)])}return e.type===ke.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 Xf(){return{[ke.Text]:Gd,[ke.A2UIComplete]:Yd,[ke.AssistantWidgetComplete]:xa,[ke.AssistantWidgetPending]:xa,[ke.DynamicComponentComplete]:ka,[ke.DynamicComponentPending]:ka}}const Zf=i.defineComponent({name:"FXBubbleTextContent",props:Oc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=Yo(),{propertyStates:r,registerProperty:o,updatePropertyValue:u,startStreaming:a}=Eu();o("title",e.title??""),o("subtitle",e.subtitle??""),o("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([h,x,y])=>{u("title",h??""),u("subtitle",x??""),u("text",y??"")});const s=i.computed(()=>e.textFormat==="markdown"),c=i.ref(!1),d=i.computed(()=>{var h,x,y;return c.value?{title:((h=r.title)==null?void 0:h.displayedValue)??"",subtitle:((x=r.subtitle)==null?void 0:x.displayedValue)??"",text:((y=r.text)==null?void 0:y.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>Gc(d.value.text)),l={shouldShowMarkdown:s,emit:t.emit,renderFileEmbeddedContent:n},p=Xf(),m=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((h,x)=>p[h.type](h,x,l))]);return i.onMounted(()=>{c.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]),m()])}}),Yf={content:{type:Object},outputMode:{type:String,default:"full"}};function Xu({status:e}){const t=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`;return i.createVNode("span",{class:t,"aria-hidden":!0},null)}const Ca=100,Qf=i.defineComponent({name:"FXBubbleThink",props:Yf,setup(e,t){var $;const{propertyStates:n,registerProperty:r,updatePropertyValue:o,isAllDone:u}=Eu(),{elapsedSeconds:a,hasEverStarted:s,start:c,stop:d,reset:f}=kr(),l=i.ref((($=e.content)==null?void 0:$.completed)!==!0),p=i.ref(null),m=i.ref(null),h=i.ref(!1),x=i.ref(!1),y=i.computed(()=>e.outputMode==="streaming"),v=i.computed(()=>{var R;return(R=e.content)==null?void 0:R.completed}),g=i.computed(()=>{var j,T,q;const R=(j=b.value)==null?void 0:j.trim(),O=R?R.slice(0,8):"",P=R&&R.length>8?"…":"",S=O?`<span class="f-chat-bubble-thinking-preview">${O}${P}</span>`:"";if(v.value){const M=s.value?`(用时${a.value}秒)`:"";return(((T=e.content)==null?void 0:T.title)??"思考完成"+M)+S}return(((q=e.content)==null?void 0:q.title)??"正在思考......")+S}),b=i.computed(()=>{var R,O;return y.value?((R=n.content)==null?void 0:R.displayedValue)??"":((O=e.content)==null?void 0:O.content)??""}),A=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!v.value,"is-completed":v.value})),k=()=>{const R=p.value;if(!R||!h.value){x.value=!1;return}x.value=R.scrollTop>0};i.watch(()=>v.value,R=>{R?d():c()},{immediate:!0}),i.watch(()=>v.value,R=>{R&&(l.value=!1)}),i.watch(()=>e.content,R=>{R&&(n.content?o("content",R.content??""):r("content",R.content??""))},{immediate:!0}),i.watch(b,async()=>{if(l.value){await i.nextTick();const R=m.value;if(!R)return;await i.nextTick(),h.value=R.scrollHeight>Ca;const O=p.value;O&&h.value&&(O.scrollTop=O.scrollHeight,x.value=!0)}},{immediate:!0}),i.watch(l,async R=>{if(R){await i.nextTick();const O=m.value;if(!O)return;await i.nextTick(),h.value=O.scrollHeight>Ca;const P=p.value;P&&h.value&&(P.scrollTop=P.scrollHeight,x.value=!0)}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(y.value?u.value:!0)&&v.value:!0}}});const F=()=>{l.value=!l.value},_=()=>v.value?null:i.createVNode(Xu,{status:"Working"},null),E=()=>!b.value||!l.value?null:i.createVNode("div",{class:"f-chat-bubble-thinking-content"},[i.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:p,onScroll:k},[h.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:m,class:"f-chat-bubble-thinking-content-text",innerHTML:b.value},null)])])]);return()=>i.createVNode("div",{class:A.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:F},[_(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:g.value},null),b.value&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:l.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null)]),E()])}}),Kf={content:{type:Object}},Ea={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:Object,default:i.ref(0)},offsetY:{type:Object,default:i.ref(0)},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function Jf(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),o=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),u=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:o,hostTop:n,hostWidth:u,hostHeight:a,hostBottom:r}}function e1(e,t,n,r){const o=i.ref(e.offsetX||0),u=i.ref(e.offsetY||0),a=i.ref(-1),s=i.ref(-1),c=i.ref(-1),d=i.ref(-1),f=i.ref(e.placement),l=i.ref(0),p=i.ref(0),m=i.ref(0),h=i.computed(()=>document.documentElement.scrollLeft),x=i.computed(()=>document.documentElement.scrollTop),{hostLeft:y,hostTop:v,hostWidth:g,hostHeight:b,hostBottom:A}=r;i.watch(()=>e.offsetX,D=>{o.value=D});const k=i.computed(()=>{const D={left:`${p.value}px`,top:`${m.value}px`,transform:`translate(${o.value}px, ${u.value}px)`};return e.zIndex!==-1&&(D["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(D.width=`${a.value}px`):a.value!==-1&&(D.width=`${a.value}px`),e.minWidth!==-1&&(D.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(D,e.customStyles),s.value>0&&(D.maxHeight=s.value+"px"),D}),F=i.computed(()=>({left:`${l.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function _(D){if(D&&e.keepWidthWithReference){const L=D.getBoundingClientRect();a.value=Math.max(e.minWidth,L.width)}}function E(D,L){const W=g.value-D.width-4;return W>0?W:L}function $(D,L){const W=b.value-D.height-12;return W>0?W:L}function R(D,L,W){const K=l.value,Y=L.left-y.value+L.width/2+h.value,Z=L.top-v.value-(D.height+W.height)+x.value;return{popoverLeft:Y,popoverTop:Z,arrowLeft:K}}function O(D,L,W){const K=L.top-v.value+(L.height+W.height)+x.value,Y=$(D,K);return Math.min(K,Y)}function P(D,L){const W=E(L,D),K=D<=W?l.value:D-W;return{popoverLeft:Math.min(D,W),arrowLeft:K,maxHeight:0}}function S(D,L){const W=E(L,D),K=D<=W?l.value:D-W;return{popoverLeft:D,arrowLeft:K,maxHeight:0}}function z(D,L,W){const K=L.left-y.value+h.value,{arrowLeft:Y,popoverLeft:Z}=S(K,D),{popoverTop:ue}=R(D,L,W);return{popoverLeft:Z,popoverTop:ue,arrowLeft:Y,maxHeight:0}}function j(D,L,W){const K=L.left-y.value+L.width/2-(W.width/2-(D.left-y.value))+h.value,{arrowLeft:Y,popoverLeft:Z}=P(K,D),ue=O(D,L,W);return{popoverLeft:Z,popoverTop:ue,arrowLeft:Y,maxHeight:0}}function T(D,L,W){const K=L.left-y.value+h.value,{arrowLeft:Y,popoverLeft:Z}=P(K,D),ue=O(D,L,W);return{popoverLeft:Z,popoverTop:ue,arrowLeft:Y,maxHeight:0}}function q(D,L,W){const K=L.left-y.value;let Y=0,Z=0,ue=0,ce=0,Te="bottom-left";window.innerWidth-K>D.width?Y=K+h.value:(Y=L.right-D.width+h.value,ue=D.width-W.width-20);let Ne=0;if(e.limitContentBySpace){const $t={topHeight:L.top-v.value-W.height-8,bottomHeight:A.value-L.bottom-W.height-8};Ne=Math.max($t.topHeight,$t.bottomHeight),D.height>Ne&&(ce=Ne,n.value.classList.add("popover-limitmax"))}const pt=ce?Math.floor(ce):D.height,Me=L.top-v.value+(L.height+W.height);return A.value-Me>pt?Z=Me+x.value:(Z=L.top-pt-W.height+x.value,A.value-Me>L.top?(Z=Me+x.value,pt>L.top&&(Z=A.value-pt)):(Z=Z<0?0:Z,Te="top")),n.value.classList.add("popover-"+Te,"bs-popover-"+Te),{popoverLeft:Y<0?5:Y,popoverTop:Z,arrowLeft:ue,maxHeight:ce}}function M(D,L,W){const K=L.left+L.width,Y=Math.max(L.top-(D.height/2-L.height/2),v.value);let Z=v.value+b.value-D.height;Z<0&&(Z=Y);const ue=Math.min(Y,Z);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}function G(D,L,W){const K=L.left+L.width,Y=Math.max(L.top-L.height,v.value);let Z=v.value+b.value-D.height;Z<0&&(Z=Y);const ue=Math.min(Y,Z);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}const re=new Map([["top",R],["top-left",z],["bottom",j],["bottom-left",T],["right",M],["right-top",G],["auto",q]]);function ne(D){var Z;e.keepWidthWithReference&&_(D);const L=D.getBoundingClientRect();c.value=L.top,d.value=L.left;const W=t.value?t.value.getBoundingClientRect():{height:4,width:4},K=(Z=n.value)==null?void 0:Z.getBoundingClientRect();a.value=K.width;const Y=re.get(f.value);if(Y){const{arrowLeft:ue,popoverLeft:ce,popoverTop:Te,maxHeight:Ne}=Y(K,L,W);l.value=ue,p.value=ce,m.value=Te,s.value=Ne||-1}}function I(D){if(D){const L=D.getBoundingClientRect();(L.left!==d.value||L.top!==c.value)&&ne(D)}}function V(){f.value=e.placement,l.value=0,p.value=0,m.value=0,a.value=-1}return{arrowStyle:F,popoverStyle:k,position:f,popoverWidth:a,fitToReference:_,followToReferencePosition:I,locateToReference:ne,resetPosition:V}}function t1(e,t,n,r,o,u,a){const s=i.ref(e.visible),c=i.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:l}=a;let p;async function m(){s.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(s.value=!1,document.body.removeEventListener("click",p),document.body.removeEventListener("mousedown",p),document.body.removeEventListener("wheel",p,!0),document.removeEventListener("scroll",p),l(),t.emit("hidden")))}p=x=>{var g;if(!o.value)return;const y=o.value.contains(x.target);if(x.type==="scroll"||x.type==="wheel"&&y){m();return}if(x.target.closest(".time-picker-panel"))return;const v=(g=x.target)==null?void 0:g.closest(".popover");if(v&&r.value&&v===r.value){x.type!=="scroll"&&x.type!=="wheel"&&x.stopPropagation();return}if(!y&&s.value){const b=o.value.closest(".popover");b&&b.removeEventListener("click",p),m()}};async function h(x){if(r.value&&(e.showArrow===!1||e.showArrow&&n.value)&&x){s.value=!0,o.value=x,u.value&&d(x),await i.nextTick(),f(x),document.body.addEventListener("click",p),document.body.addEventListener("mousedown",p),document.body.addEventListener("wheel",p,!0),document.addEventListener("scroll",p),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",p));const y=x.closest(".popover");y&&y.addEventListener("click",p),t.emit("shown")}}return t.expose({hide:m,popoverRef:r,show:h,shown:c,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:p}}function n1(e,t,n,r,o,u){const{popoverWidth:a,fitToReference:s,followToReferencePosition:c}=o;function d(){var f;if(u.value&&((f=u.value.style)==null?void 0:f.display)!=="none"&&n.value){c(n.value);const l=n.value.getBoundingClientRect();r.value&&l.width!==a.value&&s(n.value)}}return{onResize:d}}function u1(e,t=500){const n=i.ref(e.value);let r;const o=i.watch(e,a=>{clearTimeout(r),r=setTimeout(()=>{n.value=a},t)}),u=()=>{clearTimeout(r),o()};return i.onUnmounted(u),{delayedValue:n,cleanup:u}}const qt=i.defineComponent({name:"FXPopover",props:Ea,emits:["shown","hidden"],setup(e,t){const n=i.ref(),r=i.ref(),o=i.ref(e.reference),u=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=Jf(e),{host:c}=s,d=e1(e,n,r,s),{position:f,arrowStyle:l,popoverStyle:p,fitToReference:m,locateToReference:h}=d,{showPopover:x,hidePopverOnClickBodyHandler:y}=t1(e,t,n,r,o,u,d),{onResize:v}=n1(e,t,o,u,d,r),g=i.computed(()=>{let _=f.value;_==="top-left"&&(_="top");const E=`popover in popover-${_}`,$=`bs-popover-${_}`,R={"popover-fitcontent":e.fitContent,fade:!0};R[E]=!0,R[$]=!0;const O=(e.class||"").split(" ");return e.isSimpleTips&&O.unshift("popover-tips"),O.reduce((P,S)=>(P[S]=!0,P),R),R}),b=i.computed(()=>({"popover-content":!0,"popover-body":!0})),A=i.computed(()=>{const _={};return _.opacity=x.value?1:0,_.visibility=x.value?"visible":"hidden",_.zIndex=1060,_}),k=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:F}=u1(A,50);return i.onMounted(()=>{var _;u.value&&m(o.value),e.reference&&h(o.value),window.addEventListener("resize",v),(_=r.value)==null||_.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",y),window.removeEventListener("resize",v),x.value=!1}),()=>i.createVNode(i.Teleport,{to:c},{default:()=>{var _;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:r,class:g.value,style:{...p.value,...F.value},onMousedown:E=>{E.stopPropagation()},onClick:E=>{E.stopPropagation()}},[k.value&&i.createVNode("div",{ref:n,class:"popover-arrow arrow",style:l.value},null),a.value&&i.createVNode("h3",{class:"popover-title popover-header"},[e.title]),i.createVNode("div",{class:b.value},[t.slots.default&&((_=t.slots)==null?void 0:_.default())])]),[[i.vShow,x.value]])]}})}}),Zu="FarrisX_PopoverInstancesKey";window[Zu]=window[Zu]||new WeakMap;function ao(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&!r.value.isShow&&(r.value.show(n),window[Zu].set(n,r.value))}function _a(e,t,n){e.stopPropagation(),t.value.value.hide(),window[Zu].delete(n)}function r1(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&(r.value.isShow?_a(e,t,n):ao(e,t,n))}function Fa(e,t,n){t.arg&&t.arg==="toggle"?r1(e,t,n):ao(e,t,n)}const Sa={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",r=>ao(r,t,e)),e.addEventListener("mouseleave",r=>_a(r,t,e))):t.modifiers.click?e.addEventListener("click",r=>Fa(r,t,e)):e.addEventListener("click",r=>Fa(r,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};qt.install=e=>{e.component(qt.name,qt),e.directive("fxpopover",Sa)};const Da={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"}},Ta={items:{type:Array,default:()=>[]}},Na={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"}},Yu=i.defineComponent({name:"FXTodoListItemView",props:Na,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:o,startStreaming:u}=Eu();r("title",e.title??""),r("task",e.task??""),i.watch([()=>e.title,()=>e.task],([p,m])=>{o("title",p??""),o("task",m??"")});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 c(){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??""}),l=i.computed(()=>{var p;return d.value?((p=n.task)==null?void 0:p.displayedValue)??"":e.task??""});return i.computed(()=>{var p;return d.value?((p=n.detail)==null?void 0:p.displayedValue)??"":e.message??""}),i.onMounted(()=>{d.value&&u()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:c},[e.todoList&&e.todoList.length>0&&i.createVNode(Xt,{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(Xu,{status:e.status??"Done"},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"},[l.value])]):i.createVNode("div",{class:s.value},[l.value])])])}}),Yn=i.defineComponent({name:"FXTodoListView",props:Ta,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(Yu,i.mergeProps({key:r},n),null))]):null}}}),o1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e编组%207%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='M7.55915932,0%20L13.7556941,3.41136535%20L13.7556941,11.284674%20L13.3483936,11.690778%20L7.386,8.406%20L7.38699821,14.9818613%20L6.43606745,14.9818613%20L0.817648054,11.8789694%20L0,10.332184%20L0,3.84230019%20L1.11160458,3.1505903%20L6.167,6.164%20L6.16702601,0.0484363034%20L7.55915932,0%20Z%20M6.22734637,8.44496623%20L1.7439756,11.0288454%20L6.22734637,13.5008368%20L6.22734637,8.44496623%20Z%20M12.540835,4.77769015%20L8.0314841,7.40118228%20L12.540835,9.89639007%20L12.540835,4.77769015%20Z%20M1.21847977,4.6422718%20L1.21847977,9.89639007%20L5.74466316,7.33704011%20L1.21847977,4.6422718%20Z%20M7.38699821,1.29872452%20L7.38699821,6.38587585%20L11.9618229,3.74647178%20L7.38699821,1.29872452%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(-383,%20-2915)'%3e%3cg%20id='编组-3'%20transform='translate(353,%202900)'%3e%3cg%20id='编组-12'%20transform='translate(16,%200)'%3e%3cg%20id='编组-7'%20transform='translate(14,%2015)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.2571,%200.2571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='17.4857143'%20height='17.4857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(1.0286,%200.5143)'%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L8.20128715,9.24054761%20L8.20228536,15.8164089%20L7.25135461,15.8164089%20L1.63293521,12.713517%20L0.815287151,11.1667316%20L0.815287151,4.67684779%20L1.92689173,3.98513791%20L6.98228715,6.99854761%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M7.04263352,9.27951383%20L2.55926275,11.8633931%20L7.04263352,14.3353844%20L7.04263352,9.27951383%20Z%20M13.3561221,5.61223775%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3561221,5.61223775%20Z%20M2.03376692,5.47681941%20L2.03376692,10.7309377%20L6.55995031,8.17158771%20L2.03376692,5.47681941%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(0.8153,%200.8345)'%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='4.25315881%206.97898081%206.77390576%206.97898081%207.02656062%208.27871177%202.85827337%2011.0934106%201.11764364%208.72438079'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='7.02656062%206.72375166%208.13485635%204.53274022%208.34127598%201.90699543%205.4451985%201.76583085%205.65253089%205.06118714%206.77390576%206.72375166'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='10.0650382%207.40118228%207.32091739%207.49951705%207.32091739%208.25868082%208.54200343%2010.0061721%2010.9306691%2010.9000701%2012.5091187%208.51626021'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L6.98231316,8.56885311%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L8.49131316,7.05254761%20L8.49185956,7.71336245%20L9.03131316,8.12754761%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3553132,5.61654761%20L13.6305018,5.15381301%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='6.7778308%208.05322127%207.08945008%209.24101764%202.55926275%2011.8633931%202.19155022%2010.6380421'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M7.62936495,9.94195975%20C8.65711289,9.94195975%209.49026721,9.10880543%209.49026721,8.08105749%20C9.49026721,7.05330955%208.65711289,6.22015523%207.62936495,6.22015523%20C6.60161701,6.22015523%205.7684627,7.05330955%205.7684627,8.08105749%20C5.7684627,9.10880543%206.60161701,9.94195975%207.62936495,9.94195975%20Z%20M13.9785177,6.03107309%20C14.7793603,6.03107309%2015.4285714,5.38186193%2015.4285714,4.58101939%20C15.4285714,3.78017684%2014.7793603,3.13096568%2013.9785177,3.13096568%20C13.1776752,3.13096568%2012.528464,3.78017684%2012.528464,4.58101939%20C12.528464,5.38186193%2013.1776752,6.03107309%2013.9785177,6.03107309%20Z%20M7.62936495,16.4714598%20C8.4302075,16.4714598%209.07941866,15.8222486%209.07941866,15.0214061%20C9.07941866,14.2205635%208.4302075,13.5713524%207.62936495,13.5713524%20C6.8285224,13.5713524%206.17931125,14.2205635%206.17931125,15.0214061%20C6.17931125,15.8222486%206.8285224,16.4714598%207.62936495,16.4714598%20Z%20M1.45005371,13.0387617%20C2.25089625,13.0387617%202.90010741,12.3895505%202.90010741,11.588708%20C2.90010741,10.7878654%202.25089625,10.1386543%201.45005371,10.1386543%20C0.649211158,10.1386543%200,10.7878654%200,11.588708%20C0,12.3895505%200.649211158,13.0387617%201.45005371,13.0387617%20Z%20M7.62936495,2.51342642%20C8.32342849,2.51342642%208.88607816,1.95077675%208.88607816,1.25671321%20C8.88607816,0.56264967%208.32342849,0%207.62936495,0%20C6.93530141,0%206.37265174,0.56264967%206.37265174,1.25671321%20C6.37265174,1.95077675%206.93530141,2.51342642%207.62936495,2.51342642%20Z%20M13.9785177,12.9913309%20C14.6725813,12.9913309%2015.2352309,12.4286812%2015.2352309,11.7346177%20C15.2352309,11.0405541%2014.6725813,10.4779045%2013.9785177,10.4779045%20C13.2844542,10.4779045%2012.7218045,11.0405541%2012.7218045,11.7346177%20C12.7218045,12.4286812%2013.2844542,12.9913309%2013.9785177,12.9913309%20Z%20M1.45005371,5.50262617%20C2.14411725,5.50262617%202.70676692,4.9399765%202.70676692,4.24591296%20C2.70676692,3.55184942%202.14411725,2.98919975%201.45005371,2.98919975%20C0.755990164,2.98919975%200.193340494,3.55184942%200.193340494,4.24591296%20C0.193340494,4.9399765%200.755990164,5.50262617%201.45005371,5.50262617%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",i1=300,a1={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},Xt=i.defineComponent({name:"FXStartedTodo",props:Da,setup(e){const t=i.ref(null),n=i.ref(null),r=i.ref(null),o=i.ref(null),u=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=Xo(()=>({detail:e.taskDetail??""}),()=>!0,u,{charInterval:30}),s=i.ref(e.initExpanded),c=i.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!s.value}));function d(){e.detailViewMode!=="expand"&&(o.value!=null&&(window.clearTimeout(o.value),o.value=null),r.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),r.value=null},i1))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),o.value=window.setTimeout(()=>{var y,v;(v=(y=n.value)==null?void 0:y.hide)==null||v.call(y),o.value=null},150))}function l(){if(e.detailViewMode==="none")return null;const y=a.value.detail??"";return i.createVNode(i.Fragment,null,[y?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[y]):null,i.createVNode(Yn,{items:e.todoList},null)])}function p(){e.detailViewMode==="expand"&&(s.value=!s.value)}function m(){return e.detailViewMode==="expand"?i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:s.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null):null}function h(){return e.detailViewMode==="hover"&&i.createVNode(qt,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{o.value!=null&&(window.clearTimeout(o.value),o.value=null)},onMouseleave:f},[l()])]})}function x(){return e.showLoading?e.loading?e.loading:e.status==="Done"?i.createVNode("img",{src:o1},null):i.createVNode(Xu,{status:e.status},null):null}return()=>i.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working"}],onMouseenter:d,onMouseleave:f},[i.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:p},[e.showLabel&&i.createVNode("span",{class:"f-chat-started-todo-label"},[a1[e.status]]),x(),i.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),m()]),e.detailViewMode==="expand"&&i.createVNode("div",{class:c.value},[l()]),h()])}});Xt.install=e=>{e.component(Xt.name,Xt)};const s1=i.defineComponent({name:"FXBubbleThoughtChain",props:Kf,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:o,stop:u,reset:a}=kr(),s=i.computed(()=>{var l;return((l=e.content)==null?void 0:l.status)==="Done"}),c=i.computed(()=>{var l;return((l=e.content)==null?void 0:l.message)??"正在思考......"}),d=i.computed(()=>{var m,h;const l=((m=e.content)==null?void 0:m.doneMessage)??((h=e.content)==null?void 0:h.message)??"思考完成",p=r.value?`(用时${n.value}秒)`:"";return""+l+p}),f=i.computed(()=>s.value?d.value:c.value);return i.watch(()=>{var l;return(l=e.content)==null?void 0:l.status},l=>{l==="Working"?o():l==="Done"?u():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var l,p,m;return e.content?i.createVNode(Xt,{status:((l=e.content)==null?void 0:l.status)??"Working",message:f.value,todoList:(p=e.content)==null?void 0:p.todoList,detailViewMode:((m=e.content)==null?void 0:m.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0},null):null}}}),so=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]))])])}}),c1=300,Zt=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),n=i.ref(!1);let r=setTimeout(()=>{n.value=!0},c1);i.onBeforeUnmount(()=>{r&&clearTimeout(r)});const o=i.computed(()=>t.value),u=i.computed(()=>n.value&&!t.value),a=i.computed(()=>o.value?"执行完成":"调用中"),s=i.ref(!1),c=i.computed(()=>({"f-chat-tool-use":!0,"is-done":o.value})),d=i.computed(()=>({"f-chat-tool-use-status":!0,"is-done":o.value,"is-run":u.value}));i.watch(()=>[e.content.result,e.content.toolResultApplied],()=>{t.value&&(s.value=!1)},{flush:"post"});const f=()=>t.value?i.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>i.createVNode("div",{class:c.value},[i.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{s.value=!s.value}},[i.createVNode("i",{class:"fx-icon fx-icon-thinking_tool tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),i.createVNode("div",{class:d.value},[i.createVNode(Xu,{status:o.value?"Done":u.value?"Working":"NotStart"},null),i.createVNode("span",{class:"f-chat-tool-use-status-text"},[a.value])]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:s.value?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},null)]),s.value&&i.createVNode("div",{class:"f-chat-tool-use-content"},[f()])])}});Zt.install=e=>{e.component(Zt.name,Zt)};const Qn=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":so,"fx-app-preview-inline":un,FXToolUse:Zt},props:Wo,setup(e,t){const n=i.shallowRef(),r=i.ref(),o=i.ref(),u=i.computed(()=>!!e.showAvatar),a=i.computed(()=>u.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),c=i.computed(()=>{var S;return ve({},(S=e.styles)==null?void 0:S.footer)}),d=S=>{if(e.onPreview){if(S.type==="md"&&S.content){e.onPreview({content:S.content,contentType:"markdown"});return}if(S!=null&&S.url){const z=S!=null&&S.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:S.url,previewMode:z,title:S.name})}}},f=S=>{if(!e.onPreview)return;const z=S==null?void 0:S.filter(T=>T.type==="md"&&T.content);if(z.length===0)return;const j=Object.fromEntries(z.map(T=>[T.name,T.content??""]));e.onPreview({contentMap:j,contentType:"markdown"})},{renderFileEmbeddedContent:l,renderPageEmbeddedContent:p}=Yo(),m=i.ref(""),h=i.computed(()=>{var z,j;if((z=e.content)!=null&&z.footerContent)return e.content.footerContent;const S=(j=e.content)==null?void 0:j.structuredContent;return S&&(S.footerTemplate||S.footerUrl||S.footerFile)?{type:S.footerUrl?"page":S.footerFile?"file":"template",pageUrl:S.footerUrl,fileContent:S.footerFile,template:S.footerTemplate,width:S.footerWidth,height:S.footerHeight}:null});i.watch(()=>{var S;return(S=h.value)==null?void 0:S.width},S=>{if(!S){m.value="";return}if(S.endsWith("%")){const z=parseFloat(S);isNaN(z)||i.nextTick(()=>{var T,q;const j=(q=(T=n.value)==null?void 0:T.parentElement)==null?void 0:q.clientWidth;j&&(m.value=`${j*z/100}px`)})}else m.value=S},{immediate:!0});const x=S=>{if(!S||S.length===0)return"我";const z=S.charAt(0);return/[\u4e00-\u9fa5]/.test(z)?z:z.toUpperCase()};function y(){return e.header==="ContentHeader"?Ec:_c}const v=y(),{renderHeader:g}=v(e,t),b=()=>{var j,T,q;const S=((j=e.content)==null?void 0:j.sender)??"发送人",z=x(((T=e.content)==null?void 0:T.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(q=e.content)!=null&&q.avatar?i.createVNode("img",{src:e.content.avatar,alt:S},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[z])])},A=()=>{var z;const S=(z=e.content)==null?void 0:z.toolUseAboveText;return S!=null&&S.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[S.map((j,T)=>i.createVNode(Zt,{key:j.toolUseId??`tu-${T}`,content:j},null))]):null},k=()=>{var S;return(S=e.content)!=null&&S.thinkingContent?i.createVNode(Qf,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},F=()=>{var S;return(S=e.content)!=null&&S.startedTodo?i.createVNode(s1,{ref:o,content:e.content.startedTodo},null):null},_=S=>{if(!(S!=null&&S.type))return null;const{type:z}=S;return z==="page"&&S.pageUrl?p(S,{onNavigate:j=>{var T;(T=e.onPreview)==null||T.call(e,{url:j})}}):z==="file"&&S.fileContent?l(S,{onPreviewFile:d,onBatchPreviewFile:f}):z==="template"&&S.template?S.template():null},E=()=>{var T,q,M;if(!((M=(q=(T=e.content)==null?void 0:T.structuredContent)==null?void 0:q.sections)!=null&&M.length))return null;const{sections:S,showDivider:z}=e.content.structuredContent,j=G=>{const{content:re,label:ne}=G;return ne||re&&typeof re=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),G.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[G.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[G.content])]):_(G.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":z}]},[S.map((G,re)=>i.createVNode("div",{key:re,class:["f-chat-bubble-structured-section",{"section-divider":G.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[G.icon&&(G.icon.startsWith("http")||G.icon.startsWith("//")||G.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(G.icon)?i.createVNode("img",{alt:G.title,src:G.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${G.icon}`,style:G.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[G.title])]),G.items&&G.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[G.items.map((ne,I)=>i.createVNode("div",{key:I,class:"f-chat-bubble-structured-section-item"},[j(ne)]))])]))])},$=()=>{const S=h.value;if(!S)return null;const z={};return m.value&&(z.width=m.value),S.height&&(z.height=`${S.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:z},[_(S)])},R=()=>i.createVNode(Zo,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",onPreview:d,onBatchPreview:f},null),O=()=>{var z;const S=(z=e.content)==null?void 0:z.compositeInlineBlocks;return S!=null&&S.length?S.map((j,T)=>j.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${T}`,content:j.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${T}`,content:j.content,onOpen:e.onPreview},null)):null},P=()=>{var S,z,j,T,q,M;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&g(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(S=e.content)!=null&&S.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[k(),A()]),F(),E(),i.createVNode(Zf,{title:((z=e.content)==null?void 0:z.title)??"",subtitle:((j=e.content)==null?void 0:j.subtitle)??"",text:((T=e.content)==null?void 0:T.text)??"",textFormat:((q=e.content)==null?void 0:q.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),$(),(M=e.compositeTailRender)==null?void 0:M.call(e),O()]),s.value&&i.createVNode("div",{class:"f-chat-bubble-footer",style:c.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()])]),R()])};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,[u.value&&b(),P()]):i.createVNode(i.Fragment,null,[P(),u.value&&b()])])])}}),La={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},co=i.defineComponent({name:"FXBubbleAction",props:La,setup(e,t){const n=i.computed(()=>ve({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});Qn.install=e=>{e.component(Qn.name,Qn),e.component(co.name,co)};const Oa={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"}},Ia={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:()=>({})}},Qu=i.defineComponent({name:"FXCarouselItem",props:Ia,emits:["click"],setup(e,{slots:t,emit:n}){const r=i.computed(()=>{var l;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return ye(f,(l=e.classNames)==null?void 0:l.item)}),o=i.computed(()=>{var l,p;const f=ve({},(l=e.styles)==null?void 0:l.item);return ve(f,(p=e.styles)==null?void 0:p.item)}),u=()=>{var f,l,p;return e.item.image?i.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(l=e.styles)==null?void 0:l.image,src:e.item.image,alt:(p=e.item.title)==null?void 0:p.toString()},null):null},a=()=>{var f,l,p,m;return e.item.content?i.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(l=e.styles)==null?void 0:l.content},[e.item.content]):t.default?i.createVNode("div",{class:["fx-carousel--item-content",(p=e.classNames)==null?void 0:p.content],style:(m=e.styles)==null?void 0:m.content},[t.default()]):null},s=()=>{var f,l;return e.item.title?i.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(l=e.styles)==null?void 0:l.title},[e.item.title]):null},c=()=>{var f,l;return e.item.description?i.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(l=e.styles)==null?void 0:l.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:o.value,onClick:d},[u(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),c()])])}});function l1(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:o=!0,direction:u="horizontal"}=e,a=i.ref(0),s=i.ref(!1),c=i.ref(null),d=i.computed(()=>t.length),f=i.computed(()=>d.value<=1);i.computed(()=>a.value===0?o?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?o?0:a.value:a.value+1);const l=i.computed(()=>{const b=-a.value*100;return{transform:u==="horizontal"?`translateX(${b}%)`:`translateY(${b}%)`,transition:"transform 0.5s ease"}}),p=b=>{b<0||b>=d.value||(a.value,a.value=b)},m=()=>{f.value||(a.value===d.value-1?p(o?0:a.value):p(a.value+1))},h=()=>{f.value||(a.value===0?p(o?d.value-1:0):p(a.value-1))},x=()=>{!n||f.value||(y(),c.value=window.setInterval(()=>{s.value||m()},r))},y=()=>{c.value&&(clearInterval(c.value),c.value=null)},v=()=>{s.value=!0,n&&y()},g=()=>{s.value=!1,n&&x()};return i.onMounted(()=>{x()}),i.onUnmounted(()=>{y()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:l,goTo:p,next:m,prev:h,handleMouseEnter:v,handleMouseLeave:g}}const Kn=i.defineComponent({name:"FXCarousel",props:Oa,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:o,trackStyle:u,goTo:a,next:s,prev:c,handleMouseEnter:d,handleMouseLeave:f}=l1({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),l=k=>{n("update:modelValue",k),n("change",k,r.value)},p=i.computed(()=>{var F;const k={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":o.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return ye(k,(F=e.classNames)==null?void 0:F.root)}),m=i.computed(()=>{var _;const k={height:typeof e.height=="number"?`${e.height}px`:e.height},F=ve(k,e.customStyle);return ve(F,(_=e.styles)==null?void 0:_.root)}),h=i.computed(()=>{var F;const k={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return ye(k,(F=e.classNames)==null?void 0:F.container)}),x=i.computed(()=>{var F;return ye({"fx-carousel--track":!0},(F=e.classNames)==null?void 0:F.track)}),y=i.computed(()=>{var F;const k={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return ye(k,(F=e.classNames)==null?void 0:F.indicator)}),v=k=>{var _,E;const F={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":k==="left","fx-carousel--arrow-right":k==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return F[`fx-carousel--arrow-${e.buttonPosition}`]=!0,ye(F,k==="left"?(_=e.classNames)==null?void 0:_.arrowLeft:(E=e.classNames)==null?void 0:E.arrowRight)},g=k=>{var E,$;if(o.value)return null;const F=k==="left"?c:s,_=t[k==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:v(k),style:k==="left"?(E=e.styles)==null?void 0:E.arrowLeft:($=e.styles)==null?void 0:$.arrowRight,onClick:F,"aria-label":`${k} arrow`},[_?_():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${k==="left"?"left":"right"}`},null)])},b=()=>{var k;return o.value||!e.showIndicator?null:i.createVNode("div",{class:y.value,style:(k=e.styles)==null?void 0:k.indicator},[e.items.map((F,_)=>{var E,$;return i.createVNode("button",{"aria-label":`indicator ${_}`,key:_,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":_===r.value}],style:_===r.value?(E=e.styles)==null?void 0:E.indicatorItemActive:($=e.styles)==null?void 0:$.indicatorItem,onClick:()=>{a(_),l(_)}},null)})])},A=()=>i.createVNode("div",{class:x.value,style:u.value},[e.items.map((k,F)=>i.createVNode(Qu,{key:k.id||`item_${F}`,item:k,showInfo:e.showInfo,index:F,active:F===r.value,styles:e.styles,classNames:e.classNames,onClick:(_,E,$)=>{n("item-click",_,E,$)}},{default:()=>{var _,E;return[(_=t.item)==null?void 0:_.call(t,{item:k,index:F,active:F===r.value}),(E=t[`item${F}`])==null?void 0:E.call(t,{item:k,index:F,active:F===r.value})]}}))]);return()=>{var k;return i.createVNode("div",{class:p.value,style:m.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&g("left"),i.createVNode("div",{class:h.value,style:(k=e.styles)==null?void 0:k.container},[e.buttonPosition==="inner"&&g("left"),A(),e.buttonPosition==="inner"&&g("right")]),e.buttonPosition==="outer"&&g("right"),b()])}}});Kn.install=e=>{e.component(Kn.name,Kn),e.component(Qu.name,Qu)};const Ra={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:!0}},Jn=i.defineComponent({name:"FXConfirmDialog",props:Ra,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:n}){function r(){t("update:modelValue",!1)}function o(){t("cancel"),r()}function u(){t("confirm"),r()}function a(s){e.closeOnMask&&s.target===s.currentTarget&&o()}return()=>e.modelValue?i.createVNode(i.Teleport,{to:"body"},{default:()=>[i.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:a},[i.createVNode("div",{class:"f-chat-confirm-dialog"},[i.createVNode("div",{class:"f-chat-confirm-dialog-title"},[n.title?n.title():e.title]),i.createVNode("div",{class:"f-chat-confirm-dialog-description"},[n.default?n.default():e.description]),i.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:o},[e.cancelText]),i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:u},[e.confirmText])])])])]}):null}});Jn.install=e=>{e.component(Jn.name,Jn)};function Ma(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d1(e){if(Array.isArray(e))return e}function f1(e,t,n){return(t=x1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u,a,s=[],c=!0,d=!1;try{if(u=(n=n.call(e)).next,t!==0)for(;!(c=(r=u.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}function p1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pa(Object(n),!0).forEach(function(r){f1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function m1(e,t){if(e==null)return{};var n,r,o=g1(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)n=u[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g1(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function b1(e,t){return d1(e)||h1(e,t)||A1(e,t)||p1()}function y1(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x1(e){var t=y1(e,"string");return typeof t=="symbol"?t:t+""}function A1(e,t){if(e){if(typeof e=="string")return Ma(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}function w1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ba(Object(n),!0).forEach(function(r){w1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(o,u){return u(o)},r)}}function eu(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return t.apply(n,[].concat(o,s))}}}function Ku(e){return{}.toString.call(e).includes("Object")}function k1(e){return!Object.keys(e).length}function tu(e){return typeof e=="function"}function C1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function E1(e,t){return Ku(t)||Pt("changeType"),Object.keys(t).some(function(n){return!C1(e,n)})&&Pt("changeField"),t}function _1(e){tu(e)||Pt("selectorType")}function F1(e){tu(e)||Ku(e)||Pt("handlerType"),Ku(e)&&Object.values(e).some(function(t){return!tu(t)})&&Pt("handlersType")}function S1(e){e||Pt("initialIsRequired"),Ku(e)||Pt("initialType"),k1(e)&&Pt("initialContent")}function D1(e,t){throw new Error(e[t]||e.default)}var T1={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"},Pt=eu(D1)(T1),Ju={changes:E1,selector:_1,handler:F1,initial:S1};function N1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ju.initial(e),Ju.handler(t);var n={current:e},r=eu(I1)(n,t),o=eu(O1)(n),u=eu(Ju.changes)(e),a=eu(L1)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return Ju.selector(d),d(n.current)}function c(d){v1(r,o,u,a)(d)}return[s,c]}function L1(e,t){return tu(t)?t(e.current):t}function O1(e,t){return e.current=za(za({},e.current),t),t}function I1(e,t,n){return tu(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var R1={create:N1},M1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function P1(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return t.apply(n,[].concat(o,s))}}}function V1(e){return{}.toString.call(e).includes("Object")}function B1(e){return e||Ha("configIsRequired"),V1(e)||Ha("configType"),e.urls?(z1(),{paths:{vs:e.urls.monacoBase}}):e}function z1(){console.warn(ja.deprecation)}function j1(e,t){throw new Error(e[t]||e.default)}var ja={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!
30
- You are using deprecated way of configuration.
31
-
32
- Instead of using
33
- monaco.config({ urls: { monacoBase: '...' } })
34
- use
35
- monaco.config({ paths: { vs: '...' } })
36
-
37
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
38
- `},Ha=P1(j1)(ja),H1={config:B1},$1=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(u,a){return a(u)},o)}};function $a(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],$a(e[n],t[n]))}),Va(Va({},e),t)}var U1={type:"cancelation",msg:"operation is manually canceled"};function lo(e){var t=!1,n=new Promise(function(r,o){e.then(function(u){return t?o(U1):r(u)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var W1=["monaco"],G1=R1.create({config:M1,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ua=b1(G1,2),nu=Ua[0],er=Ua[1];function q1(e){var t=H1.config(e),n=t.monaco,r=m1(t,W1);er(function(o){return{config:$a(o.config,r),monaco:n}})}function X1(){var e=nu(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(er({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),lo(fo);if(window.monaco&&window.monaco.editor)return Wa(window.monaco),e.resolve(window.monaco),lo(fo);$1(Z1,Q1)(K1)}return lo(fo)}function Z1(e){return document.body.appendChild(e)}function Y1(e){var t=document.createElement("script");return e&&(t.src=e),t}function Q1(e){var t=nu(function(r){var o=r.config,u=r.reject;return{config:o,reject:u}}),n=Y1("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function K1(){var e=nu(function(n){var r=n.config,o=n.resolve,u=n.reject;return{config:r,resolve:o,reject:u}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Wa(r),e.resolve(r)},function(n){e.reject(n)})}function Wa(e){nu().monaco||er({monaco:e})}function J1(){return nu(function(e){var t=e.monaco;return t})}var fo=new Promise(function(e,t){return er({resolve:e,reject:t})}),eh={config:q1,init:X1,__getMonacoInstance:J1};const Ga={content:{type:Object,required:!0}},qa=20,th=16,bn=180;function nh(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const uu=i.defineComponent({name:"FXCodingMessage",props:Ga,setup(e){const t=i.ref(!0),n=i.ref(!1),r=i.ref(null),o=i.ref(null),u=i.ref(bn),a=i.ref(!1);function s(){t.value=!t.value}function c(){var g,b,A,k;const h=(g=e.content)==null?void 0:g.code;if(!h)return bn;const y=o.value;let v;if(y!=null&&y.getOriginalEditor&&(y!=null&&y.getModifiedEditor)){const F=((b=y.getOriginalEditor().getModel())==null?void 0:b.getLineCount())??0,_=((A=y.getModifiedEditor().getModel())==null?void 0:A.getLineCount())??0;v=F+_}else if(y!=null&&y.getModel)v=((k=y.getModel())==null?void 0:k.getLineCount())??0;else{const{value:F,originalValue:_}=h,E=(F||"").split(`
39
- `).length,$=_?_.split(`
40
- `).length:0;v=_?$+E:E}return th+v*qa}const d=i.computed(()=>(o.value,c()>bn));function f(){n.value=!n.value,u.value=n.value?c():bn,p()}function l(){if(!o.value)return;o.value=null;const x=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(x,{timeout:100}):setTimeout(x,0)}function p(){if(a.value)return;const h=r.value,x=o.value;if(!h||!(x!=null&&x.layout))return;const y=h.clientWidth||h.offsetWidth,v=u.value;requestAnimationFrame(()=>{var g,b;a.value||!o.value||(b=(g=o.value)==null?void 0:g.layout)==null||b.call(g,{width:y,height:v})})}function m(){var h;a.value||!r.value||!((h=e.content)!=null&&h.code)||eh.init().then(x=>{var A;if(a.value||!r.value||!((A=e.content)!=null&&A.code))return;const{value:y,originalValue:v,language:g="typescript"}=e.content.code,b={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:qa,padding:{top:8,bottom:8}};if(v){const k=x.editor.createDiffEditor(r.value,{...b,renderSideBySide:!1,renderOverviewRuler:!1});k.setModel({original:x.editor.createModel(v,g),modified:x.editor.createModel(y,g)}),k.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),k.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var _;if(a.value)return;const F=(_=k.getContainerDomNode)==null?void 0:_.call(k);if(F){const E=F.querySelector('.diff-editor-cell.original, [class*="original"]');E&&(E.style.display="none")}}),o.value=k}else{const k=x.editor.create(r.value,{value:y,language:g,...b});o.value=k}u.value=bn,i.nextTick(()=>p())})}return i.onMounted(()=>{nh(()=>{a.value||!r.value||m()})}),i.watch(t,h=>{h&&!a.value&&i.nextTick(()=>p())}),i.onBeforeUnmount(()=>{a.value=!0,l()}),i.watch(()=>{var h,x;return(x=(h=e.content)==null?void 0:h.code)==null?void 0:x.value},()=>{a.value||(n.value?u.value=c():u.value=bn,p())}),()=>{const h=e.content;if(!h)return null;const{message:x,fileIcon:y,fileName:v,code:g}=h;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:b=>b.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:y,alt:"",onError:b=>{var A;b.target.style.display="none",(A=b.target.parentElement)==null||A.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-expanddown":"fx-icon fx-icon-arrow-right"},null)])]),i.createVNode("span",{class:"f-chat-coding-header-filename"},[v]),i.createVNode("span",{class:"f-chat-coding-header-stats"},[i.createVNode("span",{class:"f-chat-coding-stat-add"},[i.createTextVNode("+"),g.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),g.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${u.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)])])])])}}});uu.install=e=>{e.component(uu.name,uu)};const Xa={content:{type:Object,required:!0}};function uh(e){return"file"in e&&"path"in e}const ru=i.defineComponent({name:"FileOperationMessage",props:Xa,setup(e){const t=i.ref(!0),n=i.ref({}),r=i.computed(()=>{var c;return!!((c=e.content)!=null&&c.summary)}),o=i.computed(()=>{var d;const c=(d=e.content)==null?void 0:d.summary;return c?`浏览了 ${c.explored} 个文件并查询了 ${c.searched} 个文件`:""});function u(){t.value=!t.value}function a(c){n.value={...n.value,[c]:!n.value[c]}}function s(c){return n.value[c]??!1}return()=>{const c=e.content;if(!c)return null;const{summary:d,operations:f}=c,l=!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:u,role:"button",tabindex:0,onKeydown:p=>p.key==="Enter"&&u()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[o.value]),i.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)])])]),l&&i.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((p,m)=>{var h,x,y,v;return i.createVNode("div",{key:m,class:"f-chat-file-op-operation"},[i.createVNode("div",i.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":p.type==="Read","has-details":!!((h=p.details)!=null&&h.length)}],onClick:()=>{var g;return((g=p.details)==null?void 0:g.length)&&a(m)}},(x=p.details)!=null&&x.length?{role:"button",tabIndex:0}:{},{onKeydown:g=>{var b;return((b=p.details)==null?void 0:b.length)&&g.key==="Enter"&&a(m)}}),[i.createVNode("span",{class:"f-chat-file-op-type"},[p.type]),i.createVNode("span",{class:"f-chat-file-op-message-wrap"},[i.createVNode("span",{class:"f-chat-file-op-message"},[p.message]),(y=p.details)!=null&&y.length?i.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(m)}]},[i.createVNode("i",{class:s(m)?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)]):null])]),((v=p.details)==null?void 0:v.length)&&s(m)&&i.createVNode("div",{class:"f-chat-file-op-details"},[p.details.map((g,b)=>uh(g)?i.createVNode("div",{key:b,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:g.icon,alt:"",onError:A=>{const k=A.target;k.style.display="none";const F=k.parentElement;F&&F.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"},[g.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:g.path},[g.path])]):i.createVNode("div",{key:b,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[g.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[g.text])]))])])})])])}}});ru.install=e=>{e.component(ru.name,ru)};const Za={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:()=>({})}},rh="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",ou=i.defineComponent({name:"FXGenerateProcess",props:Za,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return ye(d,e.customClass)}),r=i.computed(()=>ve({},e.customStyle));function o(){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?Cu(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:rh},null)])}function u(){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 c(d=()=>{}){t.emit("closed",{callback:d})}return i.watch(()=>e.visible,d=>{d||c()}),t.expose({close:c}),()=>{var d,f;return i.createVNode(i.Fragment,null,[e.visible&&s(),e.visible&&i.createVNode("div",{class:n.value,style:r.value},[o(),!e.showProgress&&u(),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"},[u(),i.createTextVNode(" "),a()])])])}}});ou.install=e=>{e.component(ou.name,ou)};const Ya={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},oh=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],iu=i.defineComponent({name:"FXChatHistory",props:Ya,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),c=new Date;return s.getDate()===c.getDate()&&s.getMonth()===c.getMonth()&&s.getFullYear()===c.getFullYear()},r=a=>{const s=new Date(a),c=new Date;return c.setDate(c.getDate()-7),s>=c&&!n(a)},o=i.computed(()=>{var c;const a={today:[],week:[],older:[]};(c=e.items)==null||c.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}),u=(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(c=>i.createVNode("div",{key:c.id,class:"f-chat-history-item",onClick:()=>t("itemClick",c)},[i.createVNode("span",{class:"f-chat-history-item-title"},[c.title])]))])]);return()=>i.createVNode("div",{class:"f-chat-history-manager"},[i.createVNode("div",{class:"f-chat-history-manager-scroll"},[o.value&&oh.map(a=>u(a.label,o.value[a.key]))])])}});iu.install=e=>{e.component(iu.name,iu)};const Qa={content:{type:String,default:null}},ih=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},ah=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},au=(e,t=new WeakMap)=>{if(e===null||ih(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return ah(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((o,u)=>{r.set(u,au(o,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const o of e)r.add(au(o,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(o=>{r.push(au(o,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=au(e[r],t));return n},sh=(e,t=200)=>{let n=0;return(...r)=>new Promise(o=>{n&&(clearTimeout(n),o("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,o("done")},t)})},ho=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,tr=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),ch=new Set(["__proto__","constructor","prototype"]),lh=e=>!ch.has(e),po=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return mo(e,t,n);const{excludeKeys:r}=n,o=e,u=t;for(const a of Object.keys(u)){if(!lh(a))continue;const s=u[a],c=o[a];r&&r(a)?o[a]=s:Array.isArray(s)&&Array.isArray(c)?o[a]=mo(c,s,n):tr(s)&&tr(c)?o[a]=po(c,s,n):o[a]=s}return e},mo=(e,t,n)=>{const r=e.slice();return t.forEach((o,u)=>{const a=r[u];Array.isArray(o)&&Array.isArray(a)?r[u]=mo(a,o,n):tr(o)&&tr(a)?r[u]=po(a,o,n):r[u]=o}),r},U="md-editor",de="https://unpkg.com",dh=`${de}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ka={main:`${de}/prettier@3.8.1/standalone.js`,markdown:`${de}/prettier@3.8.1/plugins/markdown.js`},fh={css:`${de}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${de}/cropperjs@1.6.2/dist/cropper.min.js`},hh=`${de}/screenfull@5.2.0/dist/screenfull.js`,ph=`${de}/mermaid@11.12.3/dist/mermaid.min.js`,mh={js:`${de}/katex@0.16.33/dist/katex.min.js`,css:`${de}/katex@0.16.33/dist/katex.min.css`},go={a11y:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},gh=`${de}/echarts@6.0.0/dist/echarts.min.js`,Ja={"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"}}},ot={editorExtensions:{highlight:{js:dh,css:go},prettier:{standaloneJs:Ka.main,parserMarkdownJs:Ka.markdown},cropper:{...fh},screenfull:{js:hh},mermaid:{js:ph,enableZoom:!0},katex:{...mh},echarts:{js:gh}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},bh=({instance:e,ctx:t,props:n={}},r="default")=>{const o=(e==null?void 0:e.$slots[r])||(t==null?void 0:t.slots[r]);return(o?o(e):"")||n[r]},yh="buildFinished",bo="errorCatcher",yo="catalogChanged",xh="pushCatalog",es="rerender",Ah="taskStateChanged";class wh{constructor(){fe(this,"pools",{})}remove(t,n,r){const o=this.pools[t]&&this.pools[t][n];o&&(this.pools[t][n]=o.filter(u=>u!==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 o=this.pools[t][n];o&&o.forEach(u=>{try{u(...r)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const nt=new wh,vh=(e,t)=>{if(!e)return e;const n=t.split(`
41
- `),r=['<span rn-wrapper aria-hidden="true">'];return n.forEach(()=>{r.push("<span></span>")}),r.push("</span>"),`<span class="${U}-code-block">${e}</span>${r.join("")}`};async function ts(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 kh={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 ${U}-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 ${U}-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 ${U}-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 ${U}-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 ${U}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},kt=(e,t)=>typeof t[e]=="string"?t[e]:kh[e],Vt=(e,t,n="")=>{var o;const r=document.getElementById(t.id);if(r)n!==""&&(Reflect.get(window,n)?(o=t.onload)==null||o.call(r,new Event("load")):t.onload&&r.addEventListener("load",t.onload));else{const u={...t};u.onload=null;const a=Eh(e,u);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},Ch=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Vt(e,t)},Eh=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},_h=(e,t)=>{const n=new Map;return e==null||e.forEach(r=>{let o=r.querySelector(`.${U}-mermaid-action`);o?o.querySelector(`.${U}-mermaid-copy`)||o.insertAdjacentHTML("beforeend",`<span class="${U}-mermaid-copy">${kt("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${U}-mermaid-action"><span class="${U}-mermaid-copy">${kt("copy",t.customIcon)}</span></div>`),o=r.querySelector(`.${U}-mermaid-action`));const u=o.querySelector(`.${U}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),ts(r.dataset.content||"").then(()=>{u.innerHTML=kt("check",t.customIcon)}).catch(()=>{u.innerHTML=kt("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{u.innerHTML=kt("copy",t.customIcon)},1500)})};u.addEventListener("click",s),n.set(r,{removeClick:()=>{u.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:r})=>{r==null||r()}),n.clear()}},Fh=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,o=0,u=0,a=!1,s,c,d,f=1;const l=()=>{n.style.transform=`translate(${o}px, ${u}px) scale(${r})`},p=A=>{A.touches.length===1?(a=!0,s=A.touches[0].clientX-o,c=A.touches[0].clientY-u):A.touches.length===2&&(d=Math.hypot(A.touches[0].clientX-A.touches[1].clientX,A.touches[0].clientY-A.touches[1].clientY),f=r)},m=A=>{if(A.preventDefault(),a&&A.touches.length===1)o=A.touches[0].clientX-s,u=A.touches[0].clientY-c,l();else if(A.touches.length===2){const k=Math.hypot(A.touches[0].clientX-A.touches[1].clientX,A.touches[0].clientY-A.touches[1].clientY)/d,F=r;r=f*(1+(k-1));const _=(A.touches[0].clientX+A.touches[1].clientX)/2,E=(A.touches[0].clientY+A.touches[1].clientY)/2,$=n.getBoundingClientRect(),R=(_-$.left)/F,O=(E-$.top)/F;o-=R*(r-F),u-=O*(r-F),l()}},h=()=>{a=!1},x=A=>{A.preventDefault();const k=.02,F=r;A.deltaY<0?r+=k:r=Math.max(.1,r-k);const _=n.getBoundingClientRect(),E=A.clientX-_.left,$=A.clientY-_.top;o-=E/F*(r-F),u-=$/F*(r-F),l()},y=A=>{a=!0,s=A.clientX-o,c=A.clientY-u},v=A=>{a&&(o=A.clientX-s,u=A.clientY-c,l())},g=()=>{a=!1},b=()=>{a=!1};return t.addEventListener("touchstart",p,{passive:!1}),t.addEventListener("touchmove",m,{passive:!1}),t.addEventListener("touchend",h),t.addEventListener("wheel",x,{passive:!1}),t.addEventListener("mousedown",y),t.addEventListener("mousemove",v),t.addEventListener("mouseup",g),t.addEventListener("mouseleave",b),()=>{t.removeEventListener("touchstart",p),t.removeEventListener("touchmove",m),t.removeEventListener("touchend",h),t.removeEventListener("wheel",x),t.removeEventListener("mousedown",y),t.removeEventListener("mousemove",v),t.removeEventListener("mouseup",g),t.removeEventListener("mouseleave",b)}};return(t,n)=>{const r=new Map;return t==null||t.forEach(o=>{let u=o.querySelector(`.${U}-mermaid-action`);u?u.querySelector(`.${U}-mermaid-zoom`)||u.insertAdjacentHTML("beforeend",`<span class="${U}-mermaid-zoom">${kt("pin-off",n.customIcon)}</span>`):(o.insertAdjacentHTML("beforeend",`<div class="${U}-mermaid-action"><span class="${U}-mermaid-zoom">${kt("pin-off",n.customIcon)}</span></div>`),u=o.querySelector(`.${U}-mermaid-action`));const a=u.querySelector(`.${U}-mermaid-zoom`),s=()=>{const c=r.get(o);if(c!=null&&c.removeEvent)c.removeEvent(),o.removeAttribute("data-grab"),r.set(o,{removeClick:c.removeClick}),a.innerHTML=kt("pin-off",n.customIcon);else{const d=e(o);o.setAttribute("data-grab",""),r.set(o,{removeEvent:d,removeClick:c==null?void 0:c.removeClick}),a.innerHTML=kt("pin",n.customIcon)}};a.addEventListener("click",s),r.set(o,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:o,removeClick:u})=>{o==null||o(),u==null||u()}),r.clear()}}})(),ns=new Set([!0,!1,"alt","title"]);function us(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function rs(e,t){e&&e.attrs&&(e.attrs=us(e.attrs,t))}function Sh(e,t){if(!ns.has(e))throw new TypeError(`figcaption must be one of: ${[...ns]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(rs(t,"title"),n[1]):void 0}function Dh(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let o=1,u=n.tokens.length;o<u-1;++o){const a=n.tokens[o];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,l]=a.children;if(d.type!=="link_open"||f.type!=="image"||l.type!=="link_close")continue}if(o!==0&&n.tokens[o-1].type!=="paragraph_open"||o!==u-1&&n.tokens[o+1].type!=="paragraph_close")continue;const s=n.tokens[o-1];let c;if(s.type="figure_open",s.tag="figure",n.tokens[o+1].type="figure_close",n.tokens[o+1].tag="figure",t.dataType&&n.tokens[o-1].attrPush(["data-type","image"]),t.link&&a.children.length===1){[c]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",c.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(c=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=Sh(t.figcaption,c);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)),c.attrs&&(c.attrs=us(c.attrs,"title"))}}if(t.copyAttrs&&c.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=c.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[o-1].attrPush(["tabindex",r]),r++),t.lazy&&(c.attrs.some(([d])=>d==="loading")||c.attrs.push(["loading","lazy"])),t.async&&(c.attrs.some(([d])=>d==="decoding")||c.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,l=c.attrs.length;f<l&&!d;f++){const p=c.attrs[f];p[0]==="class"&&(p[1]=`${p[1]} ${t.classes}`,d=!0)}d||c.attrs.push(["class",t.classes])}if(t.removeSrc){const d=c.attrs.find(([f])=>f==="src");c.attrs.push(["data-src",d[1]]),rs(c,"src")}}})}const Th=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Nh(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 o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){o=!0;break}e.md.inline.skipToken(e)}if(!o||r+1===e.pos)return e.pos=r,!1;const u=e.src.slice(r+1,e.pos);if(u.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=u.replace(Th,"$1");const c=e.push("sub_close","sub",-1);return c.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Lh(e){e.inline.ruler.after("emphasis","sub",Nh)}const Oh=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Ih(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 o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){o=!0;break}e.md.inline.skipToken(e)}if(!o||r+1===e.pos)return e.pos=r,!1;const u=e.src.slice(r+1,e.pos);if(u.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=u.replace(Oh,"$1");const c=e.push("sup_close","sup",-1);return c.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Rh(e){e.inline.ruler.after("emphasis","sup",Ih)}var Mh=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,os=new Set,xo=typeof process=="object"&&process?process:{},is=(e,t,n,r)=>{typeof xo.emitWarning=="function"?xo.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},nr=globalThis.AbortController,as=globalThis.AbortSignal;if(typeof nr>"u"){as=class{constructor(){fe(this,"onabort");fe(this,"_onabort",[]);fe(this,"reason");fe(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},nr=class{constructor(){fe(this,"signal",new as);t()}abort(n){var r,o;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let u of this.signal._onabort)u(n);(o=(r=this.signal).onabort)==null||o.call(r,n)}}};let e=((Js=xo.env)==null?void 0:Js.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,is("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 Ph=e=>!os.has(e),Bt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),ss=e=>Bt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ur:null:null,ur=class extends Array{constructor(t){super(t),this.fill(0)}},Vh=(Ct=class{constructor(t,n){fe(this,"heap");fe(this,"length");if(!w(Ct,An))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=ss(t);if(!n)return[];ee(Ct,An,!0);let r=new Ct(t,n);return ee(Ct,An,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},An=new WeakMap,ie(Ct,An,!1),Ct),Bh=(En=class{constructor(t){ie(this,H);ie(this,ut);ie(this,Ye);ie(this,it);ie(this,Kt);ie(this,at);ie(this,wn);ie(this,vn);ie(this,st);fe(this,"ttl");fe(this,"ttlResolution");fe(this,"ttlAutopurge");fe(this,"updateAgeOnGet");fe(this,"updateAgeOnHas");fe(this,"allowStale");fe(this,"noDisposeOnSet");fe(this,"noUpdateTTL");fe(this,"maxEntrySize");fe(this,"sizeCalculation");fe(this,"noDeleteOnFetchRejection");fe(this,"noDeleteOnStaleGet");fe(this,"allowStaleOnFetchAbort");fe(this,"allowStaleOnFetchRejection");fe(this,"ignoreFetchAbort");ie(this,Ce);ie(this,ct);ie(this,Ae);ie(this,he);ie(this,te);ie(this,je);ie(this,Qe);ie(this,Re);ie(this,Se);ie(this,lt);ie(this,De);ie(this,dt);ie(this,ft);ie(this,Ke);ie(this,Je);ie(this,ht);ie(this,Ht);ie(this,He);ie(this,kn);ie(this,Jt,()=>{});ie(this,Ft,()=>{});ie(this,bu,()=>{});ie(this,et,()=>!1);ie(this,en,t=>{});ie(this,Cn,(t,n,r)=>{});ie(this,yu,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});fe(this,ec,"LRUCache");let{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:u,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:c,dispose:d,onInsert:f,disposeAfter:l,noDisposeOnSet:p,noUpdateTTL:m,maxSize:h=0,maxEntrySize:x=0,sizeCalculation:y,fetchMethod:v,memoMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:F,ignoreFetchAbort:_,perf:E}=t;if(E!==void 0&&typeof(E==null?void 0:E.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ee(this,st,E??Mh),n!==0&&!Bt(n))throw new TypeError("max option must be a nonnegative integer");let $=n?ss(n):Array;if(!$)throw new Error("invalid max value: "+n);if(ee(this,ut,n),ee(this,Ye,h),this.maxEntrySize=x||w(this,Ye),this.sizeCalculation=y,this.sizeCalculation){if(!w(this,Ye)&&!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(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(ee(this,vn,g),v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(ee(this,wn,v),ee(this,Ht,!!v),ee(this,Ae,new Map),ee(this,he,new Array(n).fill(void 0)),ee(this,te,new Array(n).fill(void 0)),ee(this,je,new $(n)),ee(this,Qe,new $(n)),ee(this,Re,0),ee(this,Se,0),ee(this,lt,Vh.create(n)),ee(this,Ce,0),ee(this,ct,0),typeof d=="function"&&ee(this,it,d),typeof f=="function"&&ee(this,Kt,f),typeof l=="function"?(ee(this,at,l),ee(this,De,[])):(ee(this,at,void 0),ee(this,De,void 0)),ee(this,ht,!!w(this,it)),ee(this,kn,!!w(this,Kt)),ee(this,He,!!w(this,at)),this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!F,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(w(this,Ye)!==0&&!Bt(w(this,Ye)))throw new TypeError("maxSize must be a positive integer if specified");if(!Bt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");X(this,H,Ac).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Bt(o)||o===0?o:1,this.ttlAutopurge=!!u,this.ttl=r||0,this.ttl){if(!Bt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");X(this,H,jo).call(this)}if(w(this,ut)===0&&this.ttl===0&&w(this,Ye)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!w(this,ut)&&!w(this,Ye)){let R="LRU_CACHE_UNBOUNDED";Ph(R)&&(os.add(R),is("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",R,En))}}get perf(){return w(this,st)}static unsafeExposeInternals(t){return{starts:w(t,ft),ttls:w(t,Ke),autopurgeTimers:w(t,Je),sizes:w(t,dt),keyMap:w(t,Ae),keyList:w(t,he),valList:w(t,te),next:w(t,je),prev:w(t,Qe),get head(){return w(t,Re)},get tail(){return w(t,Se)},free:w(t,lt),isBackgroundFetch:n=>{var r;return X(r=t,H,pe).call(r,n)},backgroundFetch:(n,r,o,u)=>{var a;return X(a=t,H,Ar).call(a,n,r,o,u)},moveToTail:n=>{var r;return X(r=t,H,wu).call(r,n)},indexes:n=>{var r;return X(r=t,H,Ut).call(r,n)},rindexes:n=>{var r;return X(r=t,H,Wt).call(r,n)},isStale:n=>{var r;return w(r=t,et).call(r,n)}}}get max(){return w(this,ut)}get maxSize(){return w(this,Ye)}get calculatedSize(){return w(this,ct)}get size(){return w(this,Ce)}get fetchMethod(){return w(this,wn)}get memoMethod(){return w(this,vn)}get dispose(){return w(this,it)}get onInsert(){return w(this,Kt)}get disposeAfter(){return w(this,at)}getRemainingTTL(t){return w(this,Ae).has(t)?1/0:0}*entries(){for(let t of X(this,H,Ut).call(this))w(this,te)[t]!==void 0&&w(this,he)[t]!==void 0&&!X(this,H,pe).call(this,w(this,te)[t])&&(yield[w(this,he)[t],w(this,te)[t]])}*rentries(){for(let t of X(this,H,Wt).call(this))w(this,te)[t]!==void 0&&w(this,he)[t]!==void 0&&!X(this,H,pe).call(this,w(this,te)[t])&&(yield[w(this,he)[t],w(this,te)[t]])}*keys(){for(let t of X(this,H,Ut).call(this)){let n=w(this,he)[t];n!==void 0&&!X(this,H,pe).call(this,w(this,te)[t])&&(yield n)}}*rkeys(){for(let t of X(this,H,Wt).call(this)){let n=w(this,he)[t];n!==void 0&&!X(this,H,pe).call(this,w(this,te)[t])&&(yield n)}}*values(){for(let t of X(this,H,Ut).call(this))w(this,te)[t]!==void 0&&!X(this,H,pe).call(this,w(this,te)[t])&&(yield w(this,te)[t])}*rvalues(){for(let t of X(this,H,Wt).call(this))w(this,te)[t]!==void 0&&!X(this,H,pe).call(this,w(this,te)[t])&&(yield w(this,te)[t])}[(tc=Symbol.iterator,ec=Symbol.toStringTag,tc)](){return this.entries()}find(t,n={}){for(let r of X(this,H,Ut).call(this)){let o=w(this,te)[r],u=X(this,H,pe).call(this,o)?o.__staleWhileFetching:o;if(u!==void 0&&t(u,w(this,he)[r],this))return this.get(w(this,he)[r],n)}}forEach(t,n=this){for(let r of X(this,H,Ut).call(this)){let o=w(this,te)[r],u=X(this,H,pe).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,w(this,he)[r],this)}}rforEach(t,n=this){for(let r of X(this,H,Wt).call(this)){let o=w(this,te)[r],u=X(this,H,pe).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,w(this,he)[r],this)}}purgeStale(){let t=!1;for(let n of X(this,H,Wt).call(this,{allowStale:!0}))w(this,et).call(this,n)&&(X(this,H,Gt).call(this,w(this,he)[n],"expire"),t=!0);return t}info(t){let n=w(this,Ae).get(t);if(n===void 0)return;let r=w(this,te)[n],o=X(this,H,pe).call(this,r)?r.__staleWhileFetching:r;if(o===void 0)return;let u={value:o};if(w(this,Ke)&&w(this,ft)){let a=w(this,Ke)[n],s=w(this,ft)[n];if(a&&s){let c=a-(w(this,st).now()-s);u.ttl=c,u.start=Date.now()}}return w(this,dt)&&(u.size=w(this,dt)[n]),u}dump(){let t=[];for(let n of X(this,H,Ut).call(this,{allowStale:!0})){let r=w(this,he)[n],o=w(this,te)[n],u=X(this,H,pe).call(this,o)?o.__staleWhileFetching:o;if(u===void 0||r===void 0)continue;let a={value:u};if(w(this,Ke)&&w(this,ft)){a.ttl=w(this,Ke)[n];let s=w(this,st).now()-w(this,ft)[n];a.start=Math.floor(Date.now()-s)}w(this,dt)&&(a.size=w(this,dt)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let o=Date.now()-r.start;r.start=w(this,st).now()-o}this.set(n,r.value,r)}}set(t,n,r={}){var p,m,h,x,y,v,g;if(n===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:u,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:c}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=w(this,yu).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),X(this,H,Gt).call(this,t,"set"),this;let l=w(this,Ce)===0?void 0:w(this,Ae).get(t);if(l===void 0)l=w(this,Ce)===0?w(this,Se):w(this,lt).length!==0?w(this,lt).pop():w(this,Ce)===w(this,ut)?X(this,H,xr).call(this,!1):w(this,Ce),w(this,he)[l]=t,w(this,te)[l]=n,w(this,Ae).set(t,l),w(this,je)[w(this,Se)]=l,w(this,Qe)[l]=w(this,Se),ee(this,Se,l),yr(this,Ce)._++,w(this,Cn).call(this,l,f,c),c&&(c.set="add"),d=!1,w(this,kn)&&((p=w(this,Kt))==null||p.call(this,n,t,"add"));else{X(this,H,wu).call(this,l);let b=w(this,te)[l];if(n!==b){if(w(this,Ht)&&X(this,H,pe).call(this,b)){b.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:A}=b;A!==void 0&&!a&&(w(this,ht)&&((m=w(this,it))==null||m.call(this,A,t,"set")),w(this,He)&&((h=w(this,De))==null||h.push([A,t,"set"])))}else a||(w(this,ht)&&((x=w(this,it))==null||x.call(this,b,t,"set")),w(this,He)&&((y=w(this,De))==null||y.push([b,t,"set"])));if(w(this,en).call(this,l),w(this,Cn).call(this,l,f,c),w(this,te)[l]=n,c){c.set="replace";let A=b&&X(this,H,pe).call(this,b)?b.__staleWhileFetching:b;A!==void 0&&(c.oldValue=A)}}else c&&(c.set="update");w(this,kn)&&((v=this.onInsert)==null||v.call(this,n,t,n===b?"update":"replace"))}if(o!==0&&!w(this,Ke)&&X(this,H,jo).call(this),w(this,Ke)&&(d||w(this,bu).call(this,l,o,u),c&&w(this,Ft).call(this,c,l)),!a&&w(this,He)&&w(this,De)){let b=w(this,De),A;for(;A=b==null?void 0:b.shift();)(g=w(this,at))==null||g.call(this,...A)}return this}pop(){var t;try{for(;w(this,Ce);){let n=w(this,te)[w(this,Re)];if(X(this,H,xr).call(this,!0),X(this,H,pe).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(w(this,He)&&w(this,De)){let n=w(this,De),r;for(;r=n==null?void 0:n.shift();)(t=w(this,at))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,u=w(this,Ae).get(t);if(u!==void 0){let a=w(this,te)[u];if(X(this,H,pe).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(w(this,et).call(this,u))o&&(o.has="stale",w(this,Ft).call(this,o,u));else return r&&w(this,Jt).call(this,u),o&&(o.has="hit",w(this,Ft).call(this,o,u)),!0}else o&&(o.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,o=w(this,Ae).get(t);if(o===void 0||!r&&w(this,et).call(this,o))return;let u=w(this,te)[o];return X(this,H,pe).call(this,u)?u.__staleWhileFetching:u}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:c=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:x,forceRefresh:y=!1,status:v,signal:g}=n;if(!w(this,Ht))return v&&(v.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,status:v});let b={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,ttl:a,noDisposeOnSet:s,size:c,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:h,ignoreFetchAbort:m,status:v,signal:g},A=w(this,Ae).get(t);if(A===void 0){v&&(v.fetch="miss");let k=X(this,H,Ar).call(this,t,A,b,x);return k.__returned=k}else{let k=w(this,te)[A];if(X(this,H,pe).call(this,k)){let $=r&&k.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",$&&(v.returnedStale=!0)),$?k.__staleWhileFetching:k.__returned=k}let F=w(this,et).call(this,A);if(!y&&!F)return v&&(v.fetch="hit"),X(this,H,wu).call(this,A),o&&w(this,Jt).call(this,A),v&&w(this,Ft).call(this,v,A),k;let _=X(this,H,Ar).call(this,t,A,b,x),E=_.__staleWhileFetching!==void 0&&r;return v&&(v.fetch=F?"stale":"refresh",E&&F&&(v.returnedStale=!0)),E?_.__staleWhileFetching:_.__returned=_}}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=w(this,vn);if(!r)throw new Error("no memoMethod provided to constructor");let{context:o,forceRefresh:u,...a}=n,s=this.get(t,a);if(!u&&s!==void 0)return s;let c=r(t,s,{options:a,context:o});return this.set(t,c,a),c}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:a}=n,s=w(this,Ae).get(t);if(s!==void 0){let c=w(this,te)[s],d=X(this,H,pe).call(this,c);return a&&w(this,Ft).call(this,a,s),w(this,et).call(this,s)?(a&&(a.get="stale"),d?(a&&r&&c.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?c.__staleWhileFetching:void 0):(u||X(this,H,Gt).call(this,t,"expire"),a&&r&&(a.returnedStale=!0),r?c:void 0)):(a&&(a.get="hit"),d?c.__staleWhileFetching:(X(this,H,wu).call(this,s),o&&w(this,Jt).call(this,s),c))}else a&&(a.get="miss")}delete(t){return X(this,H,Gt).call(this,t,"delete")}clear(){return X(this,H,Uo).call(this,"delete")}},ut=new WeakMap,Ye=new WeakMap,it=new WeakMap,Kt=new WeakMap,at=new WeakMap,wn=new WeakMap,vn=new WeakMap,st=new WeakMap,Ce=new WeakMap,ct=new WeakMap,Ae=new WeakMap,he=new WeakMap,te=new WeakMap,je=new WeakMap,Qe=new WeakMap,Re=new WeakMap,Se=new WeakMap,lt=new WeakMap,De=new WeakMap,dt=new WeakMap,ft=new WeakMap,Ke=new WeakMap,Je=new WeakMap,ht=new WeakMap,Ht=new WeakMap,He=new WeakMap,kn=new WeakMap,H=new WeakSet,jo=function(){let t=new ur(w(this,ut)),n=new ur(w(this,ut));ee(this,Ke,t),ee(this,ft,n);let r=this.ttlAutopurge?new Array(w(this,ut)):void 0;ee(this,Je,r),ee(this,bu,(s,c,d=w(this,st).now())=>{n[s]=c!==0?d:0,t[s]=c,o(s,c)}),ee(this,Jt,s=>{n[s]=t[s]!==0?w(this,st).now():0,o(s,t[s])});let o=this.ttlAutopurge?(s,c)=>{if(r!=null&&r[s]&&(clearTimeout(r[s]),r[s]=void 0),c&&c!==0&&r){let d=setTimeout(()=>{w(this,et).call(this,s)&&X(this,H,Gt).call(this,w(this,he)[s],"expire")},c+1);d.unref&&d.unref(),r[s]=d}}:()=>{};ee(this,Ft,(s,c)=>{if(t[c]){let d=t[c],f=n[c];if(!d||!f)return;s.ttl=d,s.start=f,s.now=u||a();let l=s.now-f;s.remainingTTL=d-l}});let u=0,a=()=>{let s=w(this,st).now();if(this.ttlResolution>0){u=s;let c=setTimeout(()=>u=0,this.ttlResolution);c.unref&&c.unref()}return s};this.getRemainingTTL=s=>{let c=w(this,Ae).get(s);if(c===void 0)return 0;let d=t[c],f=n[c];if(!d||!f)return 1/0;let l=(u||a())-f;return d-l},ee(this,et,s=>{let c=n[s],d=t[s];return!!d&&!!c&&(u||a())-c>d})},Jt=new WeakMap,Ft=new WeakMap,bu=new WeakMap,et=new WeakMap,Ac=function(){let t=new ur(w(this,ut));ee(this,ct,0),ee(this,dt,t),ee(this,en,n=>{ee(this,ct,w(this,ct)-t[n]),t[n]=0}),ee(this,yu,(n,r,o,u)=>{if(X(this,H,pe).call(this,r))return 0;if(!Bt(o))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(o=u(r,n),!Bt(o))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 o}),ee(this,Cn,(n,r,o)=>{if(t[n]=r,w(this,Ye)){let u=w(this,Ye)-t[n];for(;w(this,ct)>u;)X(this,H,xr).call(this,!0)}ee(this,ct,w(this,ct)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=w(this,ct))})},en=new WeakMap,Cn=new WeakMap,yu=new WeakMap,Ut=function*({allowStale:t=this.allowStale}={}){if(w(this,Ce))for(let n=w(this,Se);!(!X(this,H,Ho).call(this,n)||((t||!w(this,et).call(this,n))&&(yield n),n===w(this,Re)));)n=w(this,Qe)[n]},Wt=function*({allowStale:t=this.allowStale}={}){if(w(this,Ce))for(let n=w(this,Re);!(!X(this,H,Ho).call(this,n)||((t||!w(this,et).call(this,n))&&(yield n),n===w(this,Se)));)n=w(this,je)[n]},Ho=function(t){return t!==void 0&&w(this,Ae).get(w(this,he)[t])===t},xr=function(t){var u,a,s;let n=w(this,Re),r=w(this,he)[n],o=w(this,te)[n];return w(this,Ht)&&X(this,H,pe).call(this,o)?o.__abortController.abort(new Error("evicted")):(w(this,ht)||w(this,He))&&(w(this,ht)&&((u=w(this,it))==null||u.call(this,o,r,"evict")),w(this,He)&&((a=w(this,De))==null||a.push([o,r,"evict"]))),w(this,en).call(this,n),(s=w(this,Je))!=null&&s[n]&&(clearTimeout(w(this,Je)[n]),w(this,Je)[n]=void 0),t&&(w(this,he)[n]=void 0,w(this,te)[n]=void 0,w(this,lt).push(n)),w(this,Ce)===1?(ee(this,Re,ee(this,Se,0)),w(this,lt).length=0):ee(this,Re,w(this,je)[n]),w(this,Ae).delete(r),yr(this,Ce)._--,n},Ar=function(t,n,r,o){let u=n===void 0?void 0:w(this,te)[n];if(X(this,H,pe).call(this,u))return u;let a=new nr,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let c={signal:a.signal,options:r,context:o},d=(x,y=!1)=>{let{aborted:v}=a.signal,g=r.ignoreFetchAbort&&x!==void 0,b=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&x!==void 0);if(r.status&&(v&&!y?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,g&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),v&&!g&&!y)return l(a.signal.reason,b);let A=m,k=w(this,te)[n];return(k===m||g&&y&&k===void 0)&&(x===void 0?A.__staleWhileFetching!==void 0?w(this,te)[n]=A.__staleWhileFetching:X(this,H,Gt).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,x,c.options))),x},f=x=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=x),l(x,!1)),l=(x,y)=>{let{aborted:v}=a.signal,g=v&&r.allowStaleOnFetchAbort,b=g||r.allowStaleOnFetchRejection,A=b||r.noDeleteOnFetchRejection,k=m;if(w(this,te)[n]===m&&(!A||!y&&k.__staleWhileFetching===void 0?X(this,H,Gt).call(this,t,"fetch"):g||(w(this,te)[n]=k.__staleWhileFetching)),b)return r.status&&k.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw x},p=(x,y)=>{var g;let v=(g=w(this,wn))==null?void 0:g.call(this,t,u,c);v&&v instanceof Promise&&v.then(b=>x(b===void 0?void 0:b),y),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(x(void 0),r.allowStaleOnFetchAbort&&(x=b=>d(b,!0)))})};r.status&&(r.status.fetchDispatched=!0);let m=new Promise(p).then(d,f),h=Object.assign(m,{__abortController:a,__staleWhileFetching:u,__returned:void 0});return n===void 0?(this.set(t,h,{...c.options,status:void 0}),n=w(this,Ae).get(t)):w(this,te)[n]=h,h},pe=function(t){if(!w(this,Ht))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof nr},$o=function(t,n){w(this,Qe)[n]=t,w(this,je)[t]=n},wu=function(t){t!==w(this,Se)&&(t===w(this,Re)?ee(this,Re,w(this,je)[t]):X(this,H,$o).call(this,w(this,Qe)[t],w(this,je)[t]),X(this,H,$o).call(this,w(this,Se),t),ee(this,Se,t))},Gt=function(t,n){var o,u,a,s,c,d;let r=!1;if(w(this,Ce)!==0){let f=w(this,Ae).get(t);if(f!==void 0)if((o=w(this,Je))!=null&&o[f]&&(clearTimeout((u=w(this,Je))==null?void 0:u[f]),w(this,Je)[f]=void 0),r=!0,w(this,Ce)===1)X(this,H,Uo).call(this,n);else{w(this,en).call(this,f);let l=w(this,te)[f];if(X(this,H,pe).call(this,l)?l.__abortController.abort(new Error("deleted")):(w(this,ht)||w(this,He))&&(w(this,ht)&&((a=w(this,it))==null||a.call(this,l,t,n)),w(this,He)&&((s=w(this,De))==null||s.push([l,t,n]))),w(this,Ae).delete(t),w(this,he)[f]=void 0,w(this,te)[f]=void 0,f===w(this,Se))ee(this,Se,w(this,Qe)[f]);else if(f===w(this,Re))ee(this,Re,w(this,je)[f]);else{let p=w(this,Qe)[f];w(this,je)[p]=w(this,je)[f];let m=w(this,je)[f];w(this,Qe)[m]=w(this,Qe)[f]}yr(this,Ce)._--,w(this,lt).push(f)}}if(w(this,He)&&((c=w(this,De))!=null&&c.length)){let f=w(this,De),l;for(;l=f==null?void 0:f.shift();)(d=w(this,at))==null||d.call(this,...l)}return r},Uo=function(t){var n,r,o,u;for(let a of X(this,H,Wt).call(this,{allowStale:!0})){let s=w(this,te)[a];if(X(this,H,pe).call(this,s))s.__abortController.abort(new Error("deleted"));else{let c=w(this,he)[a];w(this,ht)&&((n=w(this,it))==null||n.call(this,s,c,t)),w(this,He)&&((r=w(this,De))==null||r.push([s,c,t]))}}if(w(this,Ae).clear(),w(this,te).fill(void 0),w(this,he).fill(void 0),w(this,Ke)&&w(this,ft)){w(this,Ke).fill(0),w(this,ft).fill(0);for(let a of w(this,Je)??[])a!==void 0&&clearTimeout(a);(o=w(this,Je))==null||o.fill(void 0)}if(w(this,dt)&&w(this,dt).fill(0),ee(this,Re,0),ee(this,Se,0),w(this,lt).length=0,ee(this,ct,0),ee(this,Ce,0),w(this,He)&&w(this,De)){let a=w(this,De),s;for(;s=a==null?void 0:a.shift();)(u=w(this,at))==null||u.call(this,...s)}},En);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var Yt=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},rr=function(t){return t.tagName==="IMG"},zh=function(t){return NodeList.prototype.isPrototypeOf(t)},or=function(t){return t&&t.nodeType===1},cs=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},ls=function(t){try{return Array.isArray(t)?t.filter(rr):zh(t)?[].slice.call(t).filter(rr):or(t)?[t].filter(rr):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(rr):[]}catch{throw new TypeError(`The provided selector is invalid.
32
+ `;return fi("caf-assistant-widget-container__error",y)}),g=()=>{const y=a.value;y&&(s.value=new uh(y))},p=()=>{const y=s.value;y&&(y.dispose(),s.value=null)},v=()=>{const y=r.value,h=i.value;y&&(y.unmount(),y.dispose()),h&&h.cleanup(),r.value=null,i.value=null},x=async()=>{const y=await n(e.widgetAPIURL);if(!y)throw new Error("Failed to load widget API");await y.initialize();const h=y.createWidget();i.value=y,r.value=h},k=y=>{console.error(y),c.value=y};return o.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{v(),await x();const y=a.value,h=r.value;h==null||h.updateOptions(e.widgetOptions),h==null||h.updateData(e.widgetData),y&&h&&await h.mount(y)}catch(y){k(y)}}),o.watch(()=>e.widgetOptions,(y,h)=>{try{const b=r.value;b&&(!h||!u(h,y))&&b.updateOptions(y)}catch(b){k(b)}}),o.watch(()=>e.widgetData,(y,h)=>{try{const b=r.value;b&&(!h||!u(h,y))&&b.updateData(y)}catch(b){k(b)}}),o.onMounted(async()=>{try{const y=a.value;if(y){g();const h=s.value;if(h){await x();const b=r.value;b&&(b.updateOptions(e.widgetOptions),b.updateData(e.widgetData),b.mount(h.getElement()),o.nextTick(()=>{y.parentElement&&(y.style.width="100%")}))}}}catch(y){k(y)}}),o.onBeforeUnmount(async()=>{try{v(),p()}catch(y){console.error(y)}}),()=>o.createVNode("div",{class:d.value},[o.createVNode("div",{ref:a,class:l},null),o.createVNode("div",{class:m.value},null)])}}),Ta=(e,t)=>{var n;if(e.type===Oe.AssistantWidgetComplete){const u=e;return u.widgetUrl?o.createVNode(xn,{key:`widget-${t}`,widgetAPIURL:u.widgetUrl,widgetOptions:{mode:"embedded",implOptions:u.widgetImplOptions},widgetData:((n=u.widgetData)==null?void 0:n.data)||{}},null):null}return e.type===Oe.AssistantWidgetPending?o.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[o.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),o.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[o.createTextVNode("数据生成中......")])]):null},sh=3e4,Na=8e3,Le=new Map,Qe=new Map,Jn=new Map,_t=[];function Re(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function Jr(e){const t=Re(e);if(t)for(let n=_t.length-1;n>=0;n--)_t[n]===t&&_t.splice(n,1)}function ch(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function eu(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 lh(){return _t[_t.length-1]||void 0}function tu(e,t){const n=Re(t);return n?Re(e.instanceId)===n||e.componentId!=null&&Re(String(e.componentId))===n||e.name!=null&&Re(String(e.name))===n:!1}function mi(e){const t=Re(e);if(!t)return null;const n=Le.get(t);if(n)return{canonicalKey:t,entry:n};for(const[i,r]of Le.entries())if(Re(i)===t)return{canonicalKey:i,entry:r};const u=[];for(const[i,r]of Le.entries())tu(r.config,t)&&u.push({key:i,entry:r});if(u.length===1){const{key:i,entry:r}=u[0];return i!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${i}" (alias match)`),{canonicalKey:i,entry:r}}if(u.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${u.length} pending matches); refusing`),null;if(Le.size===1){const[i,r]=[...Le.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${i}"`),{canonicalKey:i,entry:r}}return null}function La(e,t){for(const[n,u]of Qe){const i=Re(n),r=e!==""&&i===e,a=String(t??"").trim(),s=e&&tu(u.config,e)||a&&tu(u.config,a);if(r||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 pi(){return{pendingKeys:[...Le.keys()],bootstrapQueue:[..._t],activeKeys:[...Qe.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function dh(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...pi()})}function fh(e){const t=Re(e);if(t){if(La(t,e))return{ok:!1,reason:"already_active_duplicate"};const u=mi(t);if(u)return{ok:!0,...u}}else if(La("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<_t.length;n++){const u=_t[n],i=mi(u);if(i)return _t.splice(n,1),t&&Re(u)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${u}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...i}}return{ok:!1,reason:"no_pending"}}function Ia(e){const t=Re(e);if(!t)return null;const n=Qe.get(t);if(n)return n;for(const[r,a]of Qe.entries())if(Re(r)===t)return a;const u=[];for(const r of Qe.values())tu(r.config,t)&&u.push(r);const i=[...new Map(u.map(r=>[r.config.instanceId,r])).values()];if(i.length===1)return i[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${i[0].config.instanceId}" (alias match)`),i[0];if(i.length>1)return console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${i.length} active matches)`),null;if(Qe.size===1){const r=[...Qe.values()][0];return console.warn(`[DynamicComponent] assistant post id "${t}" unmatched; delivering to sole active instance "${r.config.instanceId}"`),r}return null}function hh(e){const t=Re(e);if(!t)return t;const n=Ia(t);if(n)return n.config.instanceId;const u=mi(t);return u?u.canonicalKey:Le.size===1?[...Le.keys()][0]:Qe.size===1?[...Qe.values()][0].config.instanceId:t}function gi(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function Oa(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(gi(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function mh(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 Pa(e){const t=Qe.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=Le.get(e.instanceId);if(n)return new Promise((i,r)=>{const a=n.resolve,s=n.reject;n.resolve=c=>{a(c),i(c)},n.reject=c=>{s(c),r(c)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const u=mh(e);return new Promise((i,r)=>{const a={config:e,container:u,resolve:i,reject:r,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Le.delete(e.instanceId),Jr(e.instanceId),eu(e.instanceId),r(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},sh);a.timeoutId=s,Le.set(e.instanceId,a),_t.push(e.instanceId),ch(e.instanceId);const c=document.createElement("script");c.src=(e==null?void 0:e.jsUrl)??"",c.dataset.dynamicComponentId=e.instanceId,c.async=!1,c.onload=()=>{a.postLoadRegisterCheckTimerId=window.setTimeout(()=>{a.postLoadRegisterCheckTimerId=void 0,Le.has(e.instanceId)&&(clearTimeout(s),Le.delete(e.instanceId),Jr(e.instanceId),eu(e.instanceId),r(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${Na}ms after load: ${e.name||e.componentId}`)))},Na)},c.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Le.delete(e.instanceId),Jr(e.instanceId),eu(e.instanceId),r(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(c)})}function Ra(e){var i;const t=Qe.get(e);if(t){try{t.api.unmount()}catch{}(i=t.scriptElement)==null||i.remove(),Qe.delete(e)}const n=Le.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),Le.delete(e)),Jn.delete(e);const u=document.getElementById(`fluens-dynamic-component-${e}`);u&&u.remove()}function ph(e,t){const n=Re(e);if(!n)return!1;const u=Ia(n);if(u)return Oa(u.api,t);const i=hh(n),r=Jn.get(i)??[],a=r.findIndex(s=>s.messageId===t.messageId);return a>=0?r[a]=gi(t):r.push(gi(t)),Jn.set(i,r),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=pi,window.__fluens_dynamic_component_register=function(e,t){const n=Re(e),u=fh(e);if(!u.ok){if(u.reason==="already_active_duplicate")return;dh(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:i,entry:r}=u;Jr(i),eu(i),r.postLoadRegisterCheckTimerId!=null&&(clearTimeout(r.postLoadRegisterCheckTimerId),r.postLoadRegisterCheckTimerId=void 0),clearTimeout(r.timeoutId),Le.delete(i);const a={config:r.config,container:r.container,api:t,scriptElement:document.currentScript};Qe.set(i,a),a.container.parentElement;try{t.mount(r.container,r.config)}catch(c){console.error(`Failed to mount dynamic component: ${i}`,c)}const s=[i];n&&n!==i&&s.push(n);for(const c of s){const d=Jn.get(c);d&&d.length>0&&(Jn.delete(c),d.forEach(f=>Oa(t,f)))}r.resolve(t)});const wn=o.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=o.ref("loading"),n=o.ref(""),u=o.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),i=o.computed(()=>e.config.position==="inline"),r=o.computed(()=>!e.config.jsUrl&&!!e.config.url),a=o.computed(()=>({width:"fit-content",maxWidth:"100%",height:"auto",...t.value==="ready"&&i.value?{padding:"16px 0"}:{},...t.value==="ready"&&!i.value?{height:"100%",overflow:"hidden"}:{}}));return o.onMounted(()=>{r.value||(t.value="loading",n.value="",Pa(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),o.onUnmounted(()=>{r.value||Ra(e.config.instanceId)}),()=>r.value?null:o.createVNode("div",{class:"f-chat-dynamic-component-body",style:a.value},[o.createVNode("div",{id:u.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&o.createVNode("div",{class:"f-chat-dynamic-component-loading"},[o.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),o.createVNode("span",null,[o.createTextVNode("加载中......")])]),t.value==="error"&&o.createVNode("div",{class:"f-chat-dynamic-component-error"},[o.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[o.createTextVNode("!")]),o.createVNode("span",null,[n.value])])])}}),Va=(e,t,n)=>{if(e.type===Oe.DynamicComponentComplete){const u=e;if(!u.config)return null;if(u.config.position==="inline")return o.createVNode(wn,{key:`dc-${t}`,config:u.config},null);const i={type:"file",fileContent:{type:"md",name:u.config.title}},r={onPreviewFile:a=>{n.emit("showDynamicComponent",u.config)}};return o.nextTick(()=>n.emit("dynamicComponentsDetected",[u.config])),o.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(i,r)])}return e.type===Oe.DynamicComponentPending?o.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[o.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),o.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[o.createTextVNode("组件加载中......")])]):null};function gh(){return{[Oe.Text]:mf,[Oe.AssistantWidgetComplete]:Ta,[Oe.AssistantWidgetPending]:Ta,[Oe.DynamicComponentComplete]:Va,[Oe.DynamicComponentPending]:Va}}const bh=o.defineComponent({name:"FXBubbleTextContent",props:el,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=oo(),{propertyStates:u,registerProperty:i,updatePropertyValue:r,startStreaming:a}=Tr();i("title",e.title??""),i("subtitle",e.subtitle??""),i("text",e.text??""),o.watch([()=>e.title,()=>e.subtitle,()=>e.text],([p,v,x])=>{r("title",p??""),r("subtitle",v??""),r("text",x??"")});const s=o.computed(()=>e.textFormat==="markdown"),c=o.ref(!1),d=o.computed(()=>{var p,v,x;return c.value?{title:((p=u.title)==null?void 0:p.displayedValue)??"",subtitle:((v=u.subtitle)==null?void 0:v.displayedValue)??"",text:((x=u.text)==null?void 0:x.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=o.computed(()=>fl(d.value.text)),l={shouldShowMarkdown:s,emit:t.emit,renderFileEmbeddedContent:n},m=gh(),g=()=>f.value.length===0?null:o.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((p,v)=>{var x;return(x=m[p.type])==null?void 0:x.call(m,p,v,l)})]);return o.onMounted(()=>{c.value&&a()}),()=>o.createVNode(o.Fragment,null,[d.value.title&&o.createVNode("div",{class:"f-chat-bubble-content-title"},[d.value.title]),d.value.subtitle&&o.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[d.value.subtitle]),g()])}}),yh={content:{type:Object},outputMode:{type:String,default:"full"}};function nu({status:e}){const t=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`;return o.createVNode("span",{class:t,"aria-hidden":!0},null)}const Ma=100,xh=o.defineComponent({name:"FXBubbleThink",props:yh,setup(e,t){var z;const{propertyStates:n,registerProperty:u,updatePropertyValue:i,isAllDone:r}=Tr(),{elapsedSeconds:a,hasEverStarted:s,start:c,stop:d,reset:f}=Nu(),l=o.ref(((z=e.content)==null?void 0:z.completed)!==!0),m=o.ref(null),g=o.ref(null),p=o.ref(!1),v=o.ref(!1),x=o.computed(()=>e.outputMode==="streaming"),k=o.computed(()=>{var M;return(M=e.content)==null?void 0:M.completed}),y=o.computed(()=>{var $,F,R;const M=($=h.value)==null?void 0:$.trim(),I=M?M.slice(0,8):"",B=M&&M.length>8?"…":"",D=I?`<span class="f-chat-bubble-thinking-preview">${I}${B}</span>`:"";if(k.value){const O=s.value?`(用时${a.value}秒)`:"";return(((F=e.content)==null?void 0:F.title)??"思考完成"+O)+D}return(((R=e.content)==null?void 0:R.title)??"正在思考......")+D}),h=o.computed(()=>{var M,I;return x.value?((M=n.content)==null?void 0:M.displayedValue)??"":((I=e.content)==null?void 0:I.content)??""}),b=o.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!k.value,"is-completed":k.value})),w=()=>{const M=m.value;if(!M||!p.value){v.value=!1;return}v.value=M.scrollTop>0};o.watch(()=>k.value,M=>{M?d():c()},{immediate:!0}),o.watch(()=>k.value,M=>{M&&(l.value=!1)}),o.watch(()=>e.content,M=>{M&&(n.content?i("content",M.content??""):u("content",M.content??""))},{immediate:!0}),o.watch(h,async()=>{if(l.value){await o.nextTick();const M=g.value;if(!M)return;await o.nextTick(),p.value=M.scrollHeight>Ma;const I=m.value;I&&p.value&&(I.scrollTop=I.scrollHeight,v.value=!0)}},{immediate:!0}),o.watch(l,async M=>{if(M){await o.nextTick();const I=g.value;if(!I)return;await o.nextTick(),p.value=I.scrollHeight>Ma;const B=m.value;B&&p.value&&(B.scrollTop=B.scrollHeight,v.value=!0)}}),o.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(x.value?r.value:!0)&&k.value:!0}}});const C=()=>{l.value=!l.value},E=()=>k.value?null:o.createVNode(nu,{status:"Working"},null),_=()=>!h.value||!l.value?null:o.createVNode("div",{class:"f-chat-bubble-thinking-content"},[o.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:m,onScroll:w},[p.value&&v.value&&o.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),o.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[o.createVNode("div",{ref:g,class:"f-chat-bubble-thinking-content-text",innerHTML:h.value},null)])])]);return()=>o.createVNode("div",{class:b.value},[o.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:C},[E(),o.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:y.value},null),h.value&&o.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:l.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null)]),_()])}}),wh={content:{type:Object}},Ba={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:Object,default:o.ref(0)},offsetY:{type:Object,default:o.ref(0)},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function vh(e){const t=e.host?e.host:"body",n=o.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),u=o.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),i=o.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),r=o.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),a=o.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:i,hostTop:n,hostWidth:r,hostHeight:a,hostBottom:u}}function Ah(e,t,n,u){const i=o.ref(e.offsetX||0),r=o.ref(e.offsetY||0),a=o.ref(-1),s=o.ref(-1),c=o.ref(-1),d=o.ref(-1),f=o.ref(e.placement),l=o.ref(0),m=o.ref(0),g=o.ref(0),p=o.computed(()=>document.documentElement.scrollLeft),v=o.computed(()=>document.documentElement.scrollTop),{hostLeft:x,hostTop:k,hostWidth:y,hostHeight:h,hostBottom:b}=u;o.watch(()=>e.offsetX,T=>{i.value=T});const w=o.computed(()=>{const T={left:`${m.value}px`,top:`${g.value}px`,transform:`translate(${i.value}px, ${r.value}px)`};return e.zIndex!==-1&&(T["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(T.width=`${a.value}px`):a.value!==-1&&(T.width=`${a.value}px`),e.minWidth!==-1&&(T.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(T,e.customStyles),s.value>0&&(T.maxHeight=s.value+"px"),T}),C=o.computed(()=>({left:`${l.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function E(T){if(T&&e.keepWidthWithReference){const L=T.getBoundingClientRect();a.value=Math.max(e.minWidth,L.width)}}function _(T,L){const W=y.value-T.width-4;return W>0?W:L}function z(T,L){const W=h.value-T.height-12;return W>0?W:L}function M(T,L,W){const K=l.value,Z=L.left-x.value+L.width/2+p.value,Y=L.top-k.value-(T.height+W.height)+v.value;return{popoverLeft:Z,popoverTop:Y,arrowLeft:K}}function I(T,L,W){const K=L.top-k.value+(L.height+W.height)+v.value,Z=z(T,K);return Math.min(K,Z)}function B(T,L){const W=_(L,T),K=T<=W?l.value:T-W;return{popoverLeft:Math.min(T,W),arrowLeft:K,maxHeight:0}}function D(T,L){const W=_(L,T),K=T<=W?l.value:T-W;return{popoverLeft:T,arrowLeft:K,maxHeight:0}}function H(T,L,W){const K=L.left-x.value+p.value,{arrowLeft:Z,popoverLeft:Y}=D(K,T),{popoverTop:ue}=M(T,L,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function $(T,L,W){const K=L.left-x.value+L.width/2-(W.width/2-(T.left-x.value))+p.value,{arrowLeft:Z,popoverLeft:Y}=B(K,T),ue=I(T,L,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function F(T,L,W){const K=L.left-x.value+p.value,{arrowLeft:Z,popoverLeft:Y}=B(K,T),ue=I(T,L,W);return{popoverLeft:Y,popoverTop:ue,arrowLeft:Z,maxHeight:0}}function R(T,L,W){const K=L.left-x.value;let Z=0,Y=0,ue=0,ce=0,De="bottom-left";window.innerWidth-K>T.width?Z=K+p.value:(Z=L.right-T.width+p.value,ue=T.width-W.width-20);let Te=0;if(e.limitContentBySpace){const Xt={topHeight:L.top-k.value-W.height-8,bottomHeight:b.value-L.bottom-W.height-8};Te=Math.max(Xt.topHeight,Xt.bottomHeight),T.height>Te&&(ce=Te,n.value.classList.add("popover-limitmax"))}const yt=ce?Math.floor(ce):T.height,Me=L.top-k.value+(L.height+W.height);return b.value-Me>yt?Y=Me+v.value:(Y=L.top-yt-W.height+v.value,b.value-Me>L.top?(Y=Me+v.value,yt>L.top&&(Y=b.value-yt)):(Y=Y<0?0:Y,De="top")),n.value.classList.add("popover-"+De,"bs-popover-"+De),{popoverLeft:Z<0?5:Z,popoverTop:Y,arrowLeft:ue,maxHeight:ce}}function O(T,L,W){const K=L.left+L.width,Z=Math.max(L.top-(T.height/2-L.height/2),k.value);let Y=k.value+h.value-T.height;Y<0&&(Y=Z);const ue=Math.min(Z,Y);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}function U(T,L,W){const K=L.left+L.width,Z=Math.max(L.top-L.height,k.value);let Y=k.value+h.value-T.height;Y<0&&(Y=Z);const ue=Math.min(Z,Y);return{popoverLeft:K,popoverTop:ue,arrowLeft:0,maxHeight:0}}const re=new Map([["top",M],["top-left",H],["bottom",$],["bottom-left",F],["right",O],["right-top",U],["auto",R]]);function te(T){var Y;e.keepWidthWithReference&&E(T);const L=T.getBoundingClientRect();c.value=L.top,d.value=L.left;const W=t.value?t.value.getBoundingClientRect():{height:4,width:4},K=(Y=n.value)==null?void 0:Y.getBoundingClientRect();a.value=K.width;const Z=re.get(f.value);if(Z){const{arrowLeft:ue,popoverLeft:ce,popoverTop:De,maxHeight:Te}=Z(K,L,W);l.value=ue,m.value=ce,g.value=De,s.value=Te||-1}}function P(T){if(T){const L=T.getBoundingClientRect();(L.left!==d.value||L.top!==c.value)&&te(T)}}function V(){f.value=e.placement,l.value=0,m.value=0,g.value=0,a.value=-1}return{arrowStyle:C,popoverStyle:w,position:f,popoverWidth:a,fitToReference:E,followToReferencePosition:P,locateToReference:te,resetPosition:V}}function kh(e,t,n,u,i,r,a){const s=o.ref(e.visible),c=o.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:l}=a;let m;async function g(){s.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(s.value=!1,document.body.removeEventListener("click",m),document.body.removeEventListener("mousedown",m),document.body.removeEventListener("wheel",m,!0),document.removeEventListener("scroll",m),l(),t.emit("hidden")))}m=v=>{var y;if(!i.value)return;const x=i.value.contains(v.target);if(v.type==="scroll"||v.type==="wheel"&&x){g();return}if(v.target.closest(".time-picker-panel"))return;const k=(y=v.target)==null?void 0:y.closest(".popover");if(k&&u.value&&k===u.value){v.type!=="scroll"&&v.type!=="wheel"&&v.stopPropagation();return}if(!x&&s.value){const h=i.value.closest(".popover");h&&h.removeEventListener("click",m),g()}};async function p(v){if(u.value&&(e.showArrow===!1||e.showArrow&&n.value)&&v){s.value=!0,i.value=v,r.value&&d(v),await o.nextTick(),f(v),document.body.addEventListener("click",m),document.body.addEventListener("mousedown",m),document.body.addEventListener("wheel",m,!0),document.addEventListener("scroll",m),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",m));const x=v.closest(".popover");x&&x.addEventListener("click",m),t.emit("shown")}}return t.expose({hide:g,popoverRef:u,show:p,shown:c,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:m}}function Ch(e,t,n,u,i,r){const{popoverWidth:a,fitToReference:s,followToReferencePosition:c}=i;function d(){var f;if(r.value&&((f=r.value.style)==null?void 0:f.display)!=="none"&&n.value){c(n.value);const l=n.value.getBoundingClientRect();u.value&&l.width!==a.value&&s(n.value)}}return{onResize:d}}function Eh(e,t=500){const n=o.ref(e.value);let u;const i=o.watch(e,a=>{clearTimeout(u),u=setTimeout(()=>{n.value=a},t)}),r=()=>{clearTimeout(u),i()};return o.onUnmounted(r),{delayedValue:n,cleanup:r}}const Kt=o.defineComponent({name:"FXPopover",props:Ba,emits:["shown","hidden"],setup(e,t){const n=o.ref(),u=o.ref(),i=o.ref(e.reference),r=o.ref(e.keepWidthWithReference),a=o.computed(()=>!!e.title),s=vh(e),{host:c}=s,d=Ah(e,n,u,s),{position:f,arrowStyle:l,popoverStyle:m,fitToReference:g,locateToReference:p}=d,{showPopover:v,hidePopverOnClickBodyHandler:x}=kh(e,t,n,u,i,r,d),{onResize:k}=Ch(e,t,i,r,d,u),y=o.computed(()=>{let E=f.value;E==="top-left"&&(E="top");const _=`popover in popover-${E}`,z=`bs-popover-${E}`,M={"popover-fitcontent":e.fitContent,fade:!0};M[_]=!0,M[z]=!0;const I=(e.class||"").split(" ");return e.isSimpleTips&&I.unshift("popover-tips"),I.reduce((B,D)=>(B[D]=!0,B),M),M}),h=o.computed(()=>({"popover-content":!0,"popover-body":!0})),b=o.computed(()=>{const E={};return E.opacity=v.value?1:0,E.visibility=v.value?"visible":"hidden",E.zIndex=1060,E}),w=o.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:C}=Eh(b,50);return o.onMounted(()=>{var E;r.value&&g(i.value),e.reference&&p(i.value),window.addEventListener("resize",k),(E=u.value)==null||E.focus()}),o.onUnmounted(()=>{document.body.removeEventListener("click",x),window.removeEventListener("resize",k),v.value=!1}),()=>o.createVNode(o.Teleport,{to:c},{default:()=>{var E;return[o.withDirectives(o.createVNode("div",{tabindex:"-1",ref:u,class:y.value,style:{...m.value,...C.value},onMousedown:_=>{_.stopPropagation()},onClick:_=>{_.stopPropagation()}},[w.value&&o.createVNode("div",{ref:n,class:"popover-arrow arrow",style:l.value},null),a.value&&o.createVNode("h3",{class:"popover-title popover-header"},[e.title]),o.createVNode("div",{class:h.value},[t.slots.default&&((E=t.slots)==null?void 0:E.default())])]),[[o.vShow,v.value]])]}})}}),ru="FarrisX_PopoverInstancesKey";window[ru]=window[ru]||new WeakMap;function bi(e,t,n){e.stopPropagation();const u=t.value;u&&u.value&&!u.value.isShow&&(u.value.show(n),window[ru].set(n,u.value))}function za(e,t,n){e.stopPropagation(),t.value.value.hide(),window[ru].delete(n)}function _h(e,t,n){e.stopPropagation();const u=t.value;u&&u.value&&(u.value.isShow?za(e,t,n):bi(e,t,n))}function ja(e,t,n){t.arg&&t.arg==="toggle"?_h(e,t,n):bi(e,t,n)}const Ha={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",u=>bi(u,t,e)),e.addEventListener("mouseleave",u=>za(u,t,e))):t.modifiers.click?e.addEventListener("click",u=>ja(u,t,e)):e.addEventListener("click",u=>ja(u,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};Kt.install=e=>{e.component(Kt.name,Kt),e.directive("fxpopover",Ha)};const $a={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"}},Ua={items:{type:Array,default:()=>[]}},Wa={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"}},uu=o.defineComponent({name:"FXTodoListItemView",props:Wa,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:u,updatePropertyValue:i,startStreaming:r}=Tr();u("title",e.title??""),u("task",e.task??""),o.watch([()=>e.title,()=>e.task],([m,g])=>{i("title",m??""),i("task",g??"")});const a=o.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=o.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function c(){t("click",e,e.id)}const d=o.computed(()=>e.outputMode==="streaming"),f=o.computed(()=>{var m;return d.value?((m=n.title)==null?void 0:m.displayedValue)??"":e.title??""}),l=o.computed(()=>{var m;return d.value?((m=n.task)==null?void 0:m.displayedValue)??"":e.task??""});return o.computed(()=>{var m;return d.value?((m=n.detail)==null?void 0:m.displayedValue)??"":e.message??""}),o.onMounted(()=>{d.value&&r()}),()=>o.createVNode("li",{key:e.id,class:a.value,onClick:c},[e.todoList&&e.todoList.length>0&&o.createVNode(Qt,{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&&o.createVNode(o.Fragment,null,[e.showLoading&&o.createVNode(nu,{status:e.status??"Done"},null),f.value?o.createVNode("div",{class:"f-chat-todo-task-wrapper"},[o.createVNode("span",{class:s.value},[f.value]),o.createVNode("div",{class:"f-chat-todo-task-description"},[l.value])]):o.createVNode("div",{class:s.value},[l.value])])])}}),er=o.defineComponent({name:"FXTodoListView",props:Ua,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?o.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,u)=>o.createVNode(uu,o.mergeProps({key:u},n),null))]):null}}}),Sh="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e编组%207%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='M7.55915932,0%20L13.7556941,3.41136535%20L13.7556941,11.284674%20L13.3483936,11.690778%20L7.386,8.406%20L7.38699821,14.9818613%20L6.43606745,14.9818613%20L0.817648054,11.8789694%20L0,10.332184%20L0,3.84230019%20L1.11160458,3.1505903%20L6.167,6.164%20L6.16702601,0.0484363034%20L7.55915932,0%20Z%20M6.22734637,8.44496623%20L1.7439756,11.0288454%20L6.22734637,13.5008368%20L6.22734637,8.44496623%20Z%20M12.540835,4.77769015%20L8.0314841,7.40118228%20L12.540835,9.89639007%20L12.540835,4.77769015%20Z%20M1.21847977,4.6422718%20L1.21847977,9.89639007%20L5.74466316,7.33704011%20L1.21847977,4.6422718%20Z%20M7.38699821,1.29872452%20L7.38699821,6.38587585%20L11.9618229,3.74647178%20L7.38699821,1.29872452%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(-383,%20-2915)'%3e%3cg%20id='编组-3'%20transform='translate(353,%202900)'%3e%3cg%20id='编组-12'%20transform='translate(16,%200)'%3e%3cg%20id='编组-7'%20transform='translate(14,%2015)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.2571,%200.2571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='17.4857143'%20height='17.4857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(1.0286,%200.5143)'%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L8.20128715,9.24054761%20L8.20228536,15.8164089%20L7.25135461,15.8164089%20L1.63293521,12.713517%20L0.815287151,11.1667316%20L0.815287151,4.67684779%20L1.92689173,3.98513791%20L6.98228715,6.99854761%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M7.04263352,9.27951383%20L2.55926275,11.8633931%20L7.04263352,14.3353844%20L7.04263352,9.27951383%20Z%20M13.3561221,5.61223775%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3561221,5.61223775%20Z%20M2.03376692,5.47681941%20L2.03376692,10.7309377%20L6.55995031,8.17158771%20L2.03376692,5.47681941%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(0.8153,%200.8345)'%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='4.25315881%206.97898081%206.77390576%206.97898081%207.02656062%208.27871177%202.85827337%2011.0934106%201.11764364%208.72438079'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='7.02656062%206.72375166%208.13485635%204.53274022%208.34127598%201.90699543%205.4451985%201.76583085%205.65253089%205.06118714%206.77390576%206.72375166'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='10.0650382%207.40118228%207.32091739%207.49951705%207.32091739%208.25868082%208.54200343%2010.0061721%2010.9306691%2010.9000701%2012.5091187%208.51626021'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L6.98231316,8.56885311%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L8.49131316,7.05254761%20L8.49185956,7.71336245%20L9.03131316,8.12754761%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3553132,5.61654761%20L13.6305018,5.15381301%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='6.7778308%208.05322127%207.08945008%209.24101764%202.55926275%2011.8633931%202.19155022%2010.6380421'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M7.62936495,9.94195975%20C8.65711289,9.94195975%209.49026721,9.10880543%209.49026721,8.08105749%20C9.49026721,7.05330955%208.65711289,6.22015523%207.62936495,6.22015523%20C6.60161701,6.22015523%205.7684627,7.05330955%205.7684627,8.08105749%20C5.7684627,9.10880543%206.60161701,9.94195975%207.62936495,9.94195975%20Z%20M13.9785177,6.03107309%20C14.7793603,6.03107309%2015.4285714,5.38186193%2015.4285714,4.58101939%20C15.4285714,3.78017684%2014.7793603,3.13096568%2013.9785177,3.13096568%20C13.1776752,3.13096568%2012.528464,3.78017684%2012.528464,4.58101939%20C12.528464,5.38186193%2013.1776752,6.03107309%2013.9785177,6.03107309%20Z%20M7.62936495,16.4714598%20C8.4302075,16.4714598%209.07941866,15.8222486%209.07941866,15.0214061%20C9.07941866,14.2205635%208.4302075,13.5713524%207.62936495,13.5713524%20C6.8285224,13.5713524%206.17931125,14.2205635%206.17931125,15.0214061%20C6.17931125,15.8222486%206.8285224,16.4714598%207.62936495,16.4714598%20Z%20M1.45005371,13.0387617%20C2.25089625,13.0387617%202.90010741,12.3895505%202.90010741,11.588708%20C2.90010741,10.7878654%202.25089625,10.1386543%201.45005371,10.1386543%20C0.649211158,10.1386543%200,10.7878654%200,11.588708%20C0,12.3895505%200.649211158,13.0387617%201.45005371,13.0387617%20Z%20M7.62936495,2.51342642%20C8.32342849,2.51342642%208.88607816,1.95077675%208.88607816,1.25671321%20C8.88607816,0.56264967%208.32342849,0%207.62936495,0%20C6.93530141,0%206.37265174,0.56264967%206.37265174,1.25671321%20C6.37265174,1.95077675%206.93530141,2.51342642%207.62936495,2.51342642%20Z%20M13.9785177,12.9913309%20C14.6725813,12.9913309%2015.2352309,12.4286812%2015.2352309,11.7346177%20C15.2352309,11.0405541%2014.6725813,10.4779045%2013.9785177,10.4779045%20C13.2844542,10.4779045%2012.7218045,11.0405541%2012.7218045,11.7346177%20C12.7218045,12.4286812%2013.2844542,12.9913309%2013.9785177,12.9913309%20Z%20M1.45005371,5.50262617%20C2.14411725,5.50262617%202.70676692,4.9399765%202.70676692,4.24591296%20C2.70676692,3.55184942%202.14411725,2.98919975%201.45005371,2.98919975%20C0.755990164,2.98919975%200.193340494,3.55184942%200.193340494,4.24591296%20C0.193340494,4.9399765%200.755990164,5.50262617%201.45005371,5.50262617%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",Fh=300,Dh={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},Qt=o.defineComponent({name:"FXStartedTodo",props:$a,setup(e){const t=o.ref(null),n=o.ref(null),u=o.ref(null),i=o.ref(null),r=o.computed(()=>e.outputMode==="streaming"),{displayContent:a}=uo(()=>({detail:e.taskDetail??""}),()=>!0,r,{charInterval:30}),s=o.ref(e.initExpanded),c=o.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!s.value}));function d(){e.detailViewMode!=="expand"&&(i.value!=null&&(window.clearTimeout(i.value),i.value=null),u.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),u.value=null},Fh))}function f(){e.detailViewMode!=="expand"&&(u.value!=null&&(window.clearTimeout(u.value),u.value=null),i.value=window.setTimeout(()=>{var x,k;(k=(x=n.value)==null?void 0:x.hide)==null||k.call(x),i.value=null},150))}function l(){if(e.detailViewMode==="none")return null;const x=a.value.detail??"";return o.createVNode(o.Fragment,null,[x?o.createVNode("div",{class:"f-chat-started-todo-task-detail"},[x]):null,o.createVNode(er,{items:e.todoList},null)])}function m(){e.detailViewMode==="expand"&&(s.value=!s.value)}function g(){return e.detailViewMode==="expand"?o.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:s.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null):null}function p(){return e.detailViewMode==="hover"&&o.createVNode(Kt,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[o.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{i.value!=null&&(window.clearTimeout(i.value),i.value=null)},onMouseleave:f},[l()])]})}function v(){return e.showLoading?e.loading?e.loading:e.status==="Done"?o.createVNode("img",{src:Sh},null):o.createVNode(nu,{status:e.status},null):null}return()=>o.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working"}],onMouseenter:d,onMouseleave:f},[o.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:m},[e.showLabel&&o.createVNode("span",{class:"f-chat-started-todo-label"},[Dh[e.status]]),v(),o.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),g()]),e.detailViewMode==="expand"&&o.createVNode("div",{class:c.value},[l()]),p()])}});Qt.install=e=>{e.component(Qt.name,Qt)};const Th=o.defineComponent({name:"FXBubbleThoughtChain",props:wh,setup(e,t){const{elapsedSeconds:n,hasEverStarted:u,start:i,stop:r,reset:a}=Nu(),s=o.computed(()=>{var l;return((l=e.content)==null?void 0:l.status)==="Done"}),c=o.computed(()=>{var l;return((l=e.content)==null?void 0:l.message)??"正在思考......"}),d=o.computed(()=>{var g,p;const l=((g=e.content)==null?void 0:g.doneMessage)??((p=e.content)==null?void 0:p.message)??"思考完成",m=u.value?`(用时${n.value}秒)`:"";return""+l+m}),f=o.computed(()=>s.value?d.value:c.value);return o.watch(()=>{var l;return(l=e.content)==null?void 0:l.status},l=>{l==="Working"?i():l==="Done"?r():a()},{immediate:!0}),o.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var l,m,g;return e.content?o.createVNode(Qt,{status:((l=e.content)==null?void 0:l.status)??"Working",message:f.value,todoList:(m=e.content)==null?void 0:m.todoList,detailViewMode:((g=e.content)==null?void 0:g.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0},null):null}}}),yi=o.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>o.createVNode("div",{class:"f-ec-auth"},[o.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),o.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>o.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]))])])}}),Nh=300,Jt=o.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=o.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),n=o.computed(()=>e.content.success===!1),u=o.ref(!1);let i=setTimeout(()=>{u.value=!0},Nh);o.onBeforeUnmount(()=>{i&&clearTimeout(i)});const r=o.computed(()=>t.value),a=o.computed(()=>u.value&&!t.value),s=o.computed(()=>n.value?"执行失败":r.value?"执行完成":"调用中"),c=o.ref(!1),d=o.computed(()=>({"f-chat-tool-use":!0,"is-done":r.value,"is-error":n.value})),f=o.computed(()=>({"f-chat-tool-use-status":!0,"is-done":r.value&&!n.value,"is-run":a.value&&!n.value,"is-error":n.value}));o.watch(()=>[e.content.result,e.content.toolResultApplied,e.content.success],()=>{t.value&&(c.value=!1)},{flush:"post"});const l=()=>t.value?o.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>o.createVNode("div",{class:d.value},[o.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{c.value=!c.value}},[o.createVNode("i",{class:"fx-icon fx-icon-thinking_tool tool-icon"},null),o.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),o.createVNode("div",{class:f.value},[n.value?o.createVNode("i",{class:"fx-icon fx-icon-fail_line f-chat-tool-use-status-icon","aria-hidden":"true"},null):o.createVNode(nu,{status:r.value?"Done":a.value?"Working":"NotStart"},null),o.createVNode("span",{class:"f-chat-tool-use-status-text"},[s.value])]),o.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:c.value?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},null)]),c.value&&o.createVNode("div",{class:"f-chat-tool-use-content"},[l()])])}});Jt.install=e=>{e.component(Jt.name,Jt)};const tr=o.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":yi,"fx-app-preview-inline":at,FXToolUse:Jt},props:Sr,setup(e,t){const n=o.shallowRef(),u=o.ref(),i=o.ref(),r=o.computed(()=>!!e.showAvatar),a=o.computed(()=>r.value===!0||e.header==="ContentHeader"),s=o.computed(()=>t.slots.leftFooter||t.slots.rightFooter),c=o.computed(()=>{var D;return Ae({},(D=e.styles)==null?void 0:D.footer)}),d=D=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(D.type==="md"&&D.content){e.onPreview({content:D.content,contentType:"markdown"});return}if(D!=null&&D.url){const H=D!=null&&D.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:D.url,previewMode:H,title:D.name})}}},f=D=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const H=D==null?void 0:D.filter(F=>F.type==="md"&&F.content);if(H.length===0)return;const $=Object.fromEntries(H.map(F=>[F.name,F.content??""]));e.onPreview({contentMap:$,contentType:"markdown"})},{renderFileEmbeddedContent:l,renderPageEmbeddedContent:m}=oo(),g=o.ref(""),p=o.computed(()=>{var H,$;if((H=e.content)!=null&&H.footerContent)return e.content.footerContent;const D=($=e.content)==null?void 0:$.structuredContent;return D&&(D.footerTemplate||D.footerUrl||D.footerFile)?{type:D.footerUrl?"page":D.footerFile?"file":"template",pageUrl:D.footerUrl,fileContent:D.footerFile,template:D.footerTemplate,width:D.footerWidth,height:D.footerHeight}:null});o.watch(()=>{var D;return(D=p.value)==null?void 0:D.width},D=>{if(!D){g.value="";return}if(D.endsWith("%")){const H=parseFloat(D);isNaN(H)||o.nextTick(()=>{var F,R;const $=(R=(F=n.value)==null?void 0:F.parentElement)==null?void 0:R.clientWidth;$&&(g.value=`${$*H/100}px`)})}else g.value=D},{immediate:!0});const v=D=>{if(!D||D.length===0)return"我";const H=D.charAt(0);return/[\u4e00-\u9fa5]/.test(H)?H:H.toUpperCase()};function x(){return e.header==="ContentHeader"?Gc:Xc}const k=x(),{renderHeader:y}=k(e,t),h=()=>{var $,F,R;const D=(($=e.content)==null?void 0:$.sender)??"发送人",H=v(((F=e.content)==null?void 0:F.sender)??"");return o.createVNode("div",{class:"f-chat-bubble-avatar"},[(R=e.content)!=null&&R.avatar?o.createVNode("img",{src:e.content.avatar,alt:D},null):o.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[H])])},b=()=>{var H;const D=(H=e.content)==null?void 0:H.toolUseAboveText;return D!=null&&D.length?o.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[D.map(($,F)=>o.createVNode(Jt,{key:$.toolUseId??`tu-${F}`,content:$},null))]):null},w=()=>{var D;return(D=e.content)!=null&&D.thinkingContent?o.createVNode(xh,{ref:u,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},C=()=>{var D;return(D=e.content)!=null&&D.startedTodo?o.createVNode(Th,{ref:i,content:e.content.startedTodo},null):null},E=D=>{if(!(D!=null&&D.type))return null;const{type:H}=D;return H==="page"&&D.pageUrl?m(D,{onNavigate:$=>{var F;(F=e.onPreview)==null||F.call(e,{url:$})}}):H==="file"&&D.fileContent?l(D,{onPreviewFile:d,onBatchPreviewFile:f}):H==="template"&&D.template?D.template():null},_=()=>{var F,R,O;if(!((O=(R=(F=e.content)==null?void 0:F.structuredContent)==null?void 0:R.sections)!=null&&O.length))return null;const{sections:D,showDivider:H}=e.content.structuredContent,$=U=>{const{content:re,label:te}=U;return te||re&&typeof re=="string"?o.createVNode(o.Fragment,null,[o.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),U.label&&o.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[U.label]),o.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[U.content])]):E(U.content)};return o.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":H}]},[D.map((U,re)=>o.createVNode("div",{key:re,class:["f-chat-bubble-structured-section",{"section-divider":U.showDivider}]},[o.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[U.icon&&(U.icon.startsWith("http")||U.icon.startsWith("//")||U.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(U.icon)?o.createVNode("img",{alt:U.title,src:U.icon,class:"f-chat-bubble-structured-section-icon"},null):o.createVNode("i",{class:`fx-icon ${U.icon}`,style:U.iconStyle},null)),o.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[U.title])]),U.items&&U.items.length>0&&o.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[U.items.map((te,P)=>o.createVNode("div",{key:P,class:"f-chat-bubble-structured-section-item"},[$(te)]))])]))])},z=()=>{const D=p.value;if(!D)return null;const H={};return g.value&&(H.width=g.value),D.height&&(H.height=`${D.height}px`),o.createVNode("div",{class:"f-chat-bubble-content-footer",style:H},[E(D)])},M=()=>{const D=e.attachmentRowClickOpensPreview!==!1?d:void 0;return o.createVNode(io,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:D,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0},null)},I=()=>{var H;const D=(H=e.content)==null?void 0:H.compositeInlineBlocks;return D!=null&&D.length?D.map(($,F)=>$.kind==="userAuth"?o.createVNode(o.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${F}`,content:$.content,onConfirm:e.onUserAuthConfirm},null):o.createVNode(o.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${F}`,content:$.content,onOpen:e.onPreview},null)):null},B=()=>{var D,H,$,F,R,O;return o.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&y(),M(),o.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(D=e.content)!=null&&D.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():o.createVNode(o.Fragment,null,[w(),b()]),C(),_(),o.createVNode(bh,{title:((H=e.content)==null?void 0:H.title)??"",subtitle:(($=e.content)==null?void 0:$.subtitle)??"",text:typeof((F=e.content)==null?void 0:F.text)=="string"?e.content.text:"",textFormat:((R=e.content)==null?void 0:R.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),z(),(O=e.compositeTailRender)==null?void 0:O.call(e),I()]),s.value&&o.createVNode("div",{class:"f-chat-bubble-footer",style:c.value},[t.slots.leftFooter&&o.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&o.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>o.createVNode("div",{class:"f-chat-bubble-container",ref:n},[o.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?o.createVNode(o.Fragment,null,[r.value&&h(),B()]):o.createVNode(o.Fragment,null,[B(),r.value&&h()])])])}}),Ga={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},xi=o.defineComponent({name:"FXBubbleAction",props:Ga,setup(e,t){const n=o.computed(()=>Ae({},e.customStyle));return()=>t.slots.default&&o.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});tr.install=e=>{e.component(tr.name,tr),e.component(xi.name,xi)};const Xa={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"}},qa={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:()=>({})}},iu=o.defineComponent({name:"FXCarouselItem",props:qa,emits:["click"],setup(e,{slots:t,emit:n}){const u=o.computed(()=>{var l;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return ye(f,(l=e.classNames)==null?void 0:l.item)}),i=o.computed(()=>{var l,m;const f=Ae({},(l=e.styles)==null?void 0:l.item);return Ae(f,(m=e.styles)==null?void 0:m.item)}),r=()=>{var f,l,m;return e.item.image?o.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(l=e.styles)==null?void 0:l.image,src:e.item.image,alt:(m=e.item.title)==null?void 0:m.toString()},null):null},a=()=>{var f,l,m,g;return e.item.content?o.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(l=e.styles)==null?void 0:l.content},[e.item.content]):t.default?o.createVNode("div",{class:["fx-carousel--item-content",(m=e.classNames)==null?void 0:m.content],style:(g=e.styles)==null?void 0:g.content},[t.default()]):null},s=()=>{var f,l;return e.item.title?o.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(l=e.styles)==null?void 0:l.title},[e.item.title]):null},c=()=>{var f,l;return e.item.description?o.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(l=e.styles)==null?void 0:l.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>o.createVNode("div",{class:u.value,style:i.value,onClick:d},[r(),a(),e.showInfo&&o.createVNode("div",{class:"fx-carousel--item-info"},[s(),c()])])}});function Lh(e){const{items:t,autoplay:n=!1,interval:u=3e3,loop:i=!0,direction:r="horizontal"}=e,a=o.ref(0),s=o.ref(!1),c=o.ref(null),d=o.computed(()=>t.length),f=o.computed(()=>d.value<=1);o.computed(()=>a.value===0?i?d.value-1:0:a.value-1),o.computed(()=>a.value===d.value-1?i?0:a.value:a.value+1);const l=o.computed(()=>{const h=-a.value*100;return{transform:r==="horizontal"?`translateX(${h}%)`:`translateY(${h}%)`,transition:"transform 0.5s ease"}}),m=h=>{h<0||h>=d.value||(a.value,a.value=h)},g=()=>{f.value||(a.value===d.value-1?m(i?0:a.value):m(a.value+1))},p=()=>{f.value||(a.value===0?m(i?d.value-1:0):m(a.value-1))},v=()=>{!n||f.value||(x(),c.value=window.setInterval(()=>{s.value||g()},u))},x=()=>{c.value&&(clearInterval(c.value),c.value=null)},k=()=>{s.value=!0,n&&x()},y=()=>{s.value=!1,n&&v()};return o.onMounted(()=>{v()}),o.onUnmounted(()=>{x()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:l,goTo:m,next:g,prev:p,handleMouseEnter:k,handleMouseLeave:y}}const nr=o.defineComponent({name:"FXCarousel",props:Xa,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:u,isSingleItem:i,trackStyle:r,goTo:a,next:s,prev:c,handleMouseEnter:d,handleMouseLeave:f}=Lh({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),l=w=>{n("update:modelValue",w),n("change",w,u.value)},m=o.computed(()=>{var C;const w={"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 ye(w,(C=e.classNames)==null?void 0:C.root)}),g=o.computed(()=>{var E;const w={height:typeof e.height=="number"?`${e.height}px`:e.height},C=Ae(w,e.customStyle);return Ae(C,(E=e.styles)==null?void 0:E.root)}),p=o.computed(()=>{var C;const w={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return ye(w,(C=e.classNames)==null?void 0:C.container)}),v=o.computed(()=>{var C;return ye({"fx-carousel--track":!0},(C=e.classNames)==null?void 0:C.track)}),x=o.computed(()=>{var C;const w={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return ye(w,(C=e.classNames)==null?void 0:C.indicator)}),k=w=>{var E,_;const C={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":w==="left","fx-carousel--arrow-right":w==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return C[`fx-carousel--arrow-${e.buttonPosition}`]=!0,ye(C,w==="left"?(E=e.classNames)==null?void 0:E.arrowLeft:(_=e.classNames)==null?void 0:_.arrowRight)},y=w=>{var _,z;if(i.value)return null;const C=w==="left"?c:s,E=t[w==="left"?"prevArrow":"nextArrow"];return o.createVNode("button",{class:k(w),style:w==="left"?(_=e.styles)==null?void 0:_.arrowLeft:(z=e.styles)==null?void 0:z.arrowRight,onClick:C,"aria-label":`${w} arrow`},[E?E():o.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${w==="left"?"left":"right"}`},null)])},h=()=>{var w;return i.value||!e.showIndicator?null:o.createVNode("div",{class:x.value,style:(w=e.styles)==null?void 0:w.indicator},[e.items.map((C,E)=>{var _,z;return o.createVNode("button",{"aria-label":`indicator ${E}`,key:E,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":E===u.value}],style:E===u.value?(_=e.styles)==null?void 0:_.indicatorItemActive:(z=e.styles)==null?void 0:z.indicatorItem,onClick:()=>{a(E),l(E)}},null)})])},b=()=>o.createVNode("div",{class:v.value,style:r.value},[e.items.map((w,C)=>o.createVNode(iu,{key:w.id||`item_${C}`,item:w,showInfo:e.showInfo,index:C,active:C===u.value,styles:e.styles,classNames:e.classNames,onClick:(E,_,z)=>{n("item-click",E,_,z)}},{default:()=>{var E,_;return[(E=t.item)==null?void 0:E.call(t,{item:w,index:C,active:C===u.value}),(_=t[`item${C}`])==null?void 0:_.call(t,{item:w,index:C,active:C===u.value})]}}))]);return()=>{var w;return o.createVNode("div",{class:m.value,style:g.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&y("left"),o.createVNode("div",{class:p.value,style:(w=e.styles)==null?void 0:w.container},[e.buttonPosition==="inner"&&y("left"),b(),e.buttonPosition==="inner"&&y("right")]),e.buttonPosition==="outer"&&y("right"),h()])}}});nr.install=e=>{e.component(nr.name,nr),e.component(iu.name,iu)};const Za={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function Ih(e){const t=o.ref(-1),n=o.ref(-1),u=o.ref(0),i=o.ref(0),r=o.ref(!1),a=o.ref(!1),s=o.computed(()=>({display:r.value?"block":"none",left:`${u.value}px`,cursor:"e-resize"})),c=o.computed(()=>({display:a.value?"block":"none",top:`${i.value}px`,cursor:"n-resize"})),d=o.computed(()=>{const x={display:a.value||r.value?"block":"none"};return i.value>0&&(x.cursor="n-resize"),x});function f(x,k,y,h){const b=e.value;if(b){const{left:w,right:C,width:E}=b.getBoundingClientRect();let _=x.clientX-w;h==="right"&&(_=C-x.clientX),_>k&&(_=k),_<y&&(_=y),h==="right"&&(_=E-_),u.value=_}}function l(x,k,y,h){const b=e.value;if(b){const{top:w,bottom:C,height:E}=b.getBoundingClientRect();let _=x.clientY-w;h==="bottom"&&(_=C-x.clientY),_>k&&(_=k),_<y&&(_=y),h==="bottom"&&(_=E-_),i.value=_}}function m(){const x=e.value;if(x){const{width:k,height:y}=x.getBoundingClientRect();return{width:k,height:y}}return null}function g(){const x=e.value;return x?Array.from(x.querySelectorAll("[data-position]")).reduce((k,y)=>{const h=y.getAttribute("data-position");return k=Object.assign(k,{[h]:y}),k},{}):null}function p(x,k){const y=m(),h=g();if(y&&h){const b=h==null?void 0:h.right,w=h==null?void 0:h.left;if(x==="left"&&w)return b?y.width-b.clientWidth-k:y.width-k;if(x==="right"&&b)return w?y.width-w.clientWidth-k:y.width-k}}function v(x,k){const y=m(),h=g();if(y&&h){const b=h==null?void 0:h.bottom,w=h==null?void 0:h.top;if(x==="top"&&w)return b?y.height-b.clientHeight-k:y.height-k;if(x==="bottom"&&b)return w?y.height-w.clientHeight-k:y.height-k}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:c,resizeOverlayStyle:d,showHorizontalResizeHandle:r,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:i,horizontalResizeHandleOffset:u,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:l,getPanelMaxWidth:p,getPanelMaxHeight:v}}const vn=o.defineComponent({name:"FXSplitter",props:Za,emits:[],setup(e,t){const n=o.ref(),u=Ih(n),{horizontalResizeHandleStyle:i,verticalResizeHandleStyle:r,resizeOverlayStyle:a}=u;o.provide("splitter",{useResizeHandleComposition:u});const s=o.computed(()=>ye({"f-splitter":!0},e==null?void 0:e.customClass)),c=o.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ae(d,e==null?void 0:e.customStyle)});return()=>o.createVNode("div",{class:s.value,ref:n,style:c.value},[t.slots.default&&t.slots.default(),o.createVNode("div",{class:"f-splitter-resize-overlay",style:a.value},null),o.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:i.value},null),o.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:r.value},null)])}}),Oh={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 Ph(e,t){const n=o.ref(e.width),u=o.ref(e.height),{horizontalResizeBarPosition:i,horizontalResizeHandleOffset:r,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:c,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:l,getPanelMaxWidth:m,getPanelMaxHeight:g}=t;let p="",v,x,k;const y=()=>e.maxWidth?e.maxWidth:m(p,e.minWidth)||0,h=()=>e.maxHeight?e.maxHeight:g(p,e.minHeight)||0;function b(E){if((p==="left"||p==="right")&&x){const{left:_}=x.getBoundingClientRect(),{width:z}=v.getBoundingClientRect(),M=E.clientX-_;let I=p==="left"?(z||0)+(M-i.value):(z||0)-(M-i.value);I=e.minWidth>0?Math.max(e.minWidth,I):I;const B=y();B!=null&&B>0&&(I=B>I?I:B),n.value=I}if((p==="top"||p==="bottom")&&x){const{top:_}=x.getBoundingClientRect(),{height:z}=v.getBoundingClientRect(),M=E.clientY-_;let I=p==="top"?(z||0)+(M-c.value):(z||0)-(M-c.value);I=e.minHeight>0?Math.max(e.minHeight,I):I;const B=h();B!=null&&B>0&&(I=B>I?I:B),u.value=I}r.value=0,d.value=0,i.value=-1,c.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",b),document.body.style.userSelect="",p="",v=null,x=null}function w(E,_,z){if(p=_,v=z,a.value=!0,x=E.composedPath().find(I=>I.className.split(" ")[0]==="f-splitter"),x){const{left:I}=x.getBoundingClientRect();r.value=E.clientX-I,i.value=E.clientX-I;const B=y();k=D=>f(D,B,e.minWidth,p),document.addEventListener("mousemove",k),document.addEventListener("mouseup",b),document.body.style.userSelect="none"}}function C(E,_,z){if(p=_,v=z,s.value=!0,x=E.composedPath().find(I=>I.className.split(" ")[0]==="f-splitter"),x){const{top:I}=x.getBoundingClientRect();d.value=E.clientY-I,c.value=E.clientY-I;const B=h();k=D=>l(D,B,e.minHeight,p),document.addEventListener("mousemove",k),document.addEventListener("mouseup",b),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:u,onClickSplitterHorizontalResizeBar:w,onClickSplitterVerticalResizeBar:C}}const rr=o.defineComponent({name:"FSplitterPane",props:Oh,emits:[],setup(e,t){const n=o.ref(),u=o.inject("splitter"),{useResizeHandleComposition:i}=u,r=Ph(e,i),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:c,onClickSplitterVerticalResizeBar:d}=r,f=o.ref(e.position),l=o.computed(()=>{const h={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return h["f-splitter-pane-"+f.value]=!0,ye(h,e==null?void 0:e.customClass)}),m=o.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(h=>["e","n","s","w"].find(b=>b===h)):[]),g=o.computed(()=>{const h={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||m.value.find(b=>b==="e")||m.value.find(b=>b==="w"))&&(h.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||m.value.find(b=>b==="s")||m.value.find(b=>b==="n"))&&(h.height=`${a.value}px`),e.visible||(h.display="none"),Ae(h,e==null?void 0:e.customStyle)}),p=o.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 v(h){return{e:"left",w:"right",s:"top",n:"bottom"}[h]||h}function x(h,b){b=v(b),["left","right"].find(w=>w===b)&&c(h,b,n.value),["top","bottom"].find(w=>w===b)&&d(h,b,n.value)}function k(){return m.value.length>0?m.value.map(h=>o.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+h,onMousedown:b=>x(b,h)},null)):o.createVNode("span",{class:p.value,onMousedown:h=>x(h,f.value)},null)}function y(){s.value=e.width,a.value=e.height,g.value}return t.expose({reset:y}),()=>o.createVNode("div",{ref:n,class:l.value,style:g.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&k()])}});vn.install=e=>{e.component(vn.name,vn),e.component(rr.name,rr)};const Ya={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},Ka={content:{type:String,default:null}},Rh=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},Vh=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},ur=(e,t=new WeakMap)=>{if(e===null||Rh(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return Vh(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const u=new Map;return t.set(e,u),e.forEach((i,r)=>{u.set(r,ur(i,t))}),u}if(e instanceof Set){const u=new Set;t.set(e,u);for(const i of e)u.add(ur(i,t));return u}if(Array.isArray(e)){const u=[];return t.set(e,u),e.forEach(i=>{u.push(ur(i,t))}),u}const n={};t.set(e,n);for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=ur(e[u],t));return n},Mh=(e,t=200)=>{let n=0;return(...u)=>new Promise(i=>{n&&(clearTimeout(n),i("cancel")),n=window.setTimeout(()=>{e.apply(void 0,u),n=0,i("done")},t)})},wi=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,ou=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Bh=new Set(["__proto__","constructor","prototype"]),zh=e=>!Bh.has(e),vi=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return Ai(e,t,n);const{excludeKeys:u}=n,i=e,r=t;for(const a of Object.keys(r)){if(!zh(a))continue;const s=r[a],c=i[a];u&&u(a)?i[a]=s:Array.isArray(s)&&Array.isArray(c)?i[a]=Ai(c,s,n):ou(s)&&ou(c)?i[a]=vi(c,s,n):i[a]=s}return e},Ai=(e,t,n)=>{const u=e.slice();return t.forEach((i,r)=>{const a=u[r];Array.isArray(i)&&Array.isArray(a)?u[r]=Ai(a,i,n):ou(i)&&ou(a)?u[r]=vi(a,i,n):u[r]=i}),u},X="md-editor",de="https://unpkg.com",jh=`${de}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Qa={main:`${de}/prettier@3.8.1/standalone.js`,markdown:`${de}/prettier@3.8.1/plugins/markdown.js`},Hh={css:`${de}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${de}/cropperjs@1.6.2/dist/cropper.min.js`},$h=`${de}/screenfull@5.2.0/dist/screenfull.js`,Uh=`${de}/mermaid@11.12.3/dist/mermaid.min.js`,Wh={js:`${de}/katex@0.16.33/dist/katex.min.js`,css:`${de}/katex@0.16.33/dist/katex.min.css`},ki={a11y:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Gh=`${de}/echarts@6.0.0/dist/echarts.min.js`,Ja={"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"}}},ct={editorExtensions:{highlight:{js:jh,css:ki},prettier:{standaloneJs:Qa.main,parserMarkdownJs:Qa.markdown},cropper:{...Hh},screenfull:{js:$h},mermaid:{js:Uh,enableZoom:!0},katex:{...Wh},echarts:{js:Gh}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},Xh=({instance:e,ctx:t,props:n={}},u="default")=>{const i=(e==null?void 0:e.$slots[u])||(t==null?void 0:t.slots[u]);return(i?i(e):"")||n[u]},qh="buildFinished",Ci="errorCatcher",Ei="catalogChanged",Zh="pushCatalog",es="rerender",Yh="taskStateChanged";class Kh{constructor(){fe(this,"pools",{})}remove(t,n,u){const i=this.pools[t]&&this.pools[t][n];i&&(this.pools[t][n]=i.filter(r=>r!==u))}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,...u){this.pools[t]||(this.pools[t]={});const i=this.pools[t][n];i&&i.forEach(r=>{try{r(...u)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const it=new Kh,Qh=(e,t)=>{if(!e)return e;const n=t.split(`
33
+ `),u=['<span rn-wrapper aria-hidden="true">'];return n.forEach(()=>{u.push("<span></span>")}),u.push("</span>"),`<span class="${X}-code-block">${e}</span>${u.join("")}`};async function ts(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 Jh={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 ${X}-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 ${X}-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 ${X}-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 ${X}-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 ${X}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},St=(e,t)=>typeof t[e]=="string"?t[e]:Jh[e],jt=(e,t,n="")=>{var i;const u=document.getElementById(t.id);if(u)n!==""&&(Reflect.get(window,n)?(i=t.onload)==null||i.call(u,new Event("load")):t.onload&&u.addEventListener("load",t.onload));else{const r={...t};r.onload=null;const a=t1(e,r);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},e1=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),jt(e,t)},t1=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(u=>{t[u]!==void 0&&(n[u]=t[u])}),n},n1=(e,t)=>{const n=new Map;return e==null||e.forEach(u=>{let i=u.querySelector(`.${X}-mermaid-action`);i?i.querySelector(`.${X}-mermaid-copy`)||i.insertAdjacentHTML("beforeend",`<span class="${X}-mermaid-copy">${St("copy",t.customIcon)}</span>`):(u.insertAdjacentHTML("beforeend",`<div class="${X}-mermaid-action"><span class="${X}-mermaid-copy">${St("copy",t.customIcon)}</span></div>`),i=u.querySelector(`.${X}-mermaid-action`));const r=i.querySelector(`.${X}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),ts(u.dataset.content||"").then(()=>{r.innerHTML=St("check",t.customIcon)}).catch(()=>{r.innerHTML=St("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{r.innerHTML=St("copy",t.customIcon)},1500)})};r.addEventListener("click",s),n.set(u,{removeClick:()=>{r.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:u})=>{u==null||u()}),n.clear()}},r1=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let u=1,i=0,r=0,a=!1,s,c,d,f=1;const l=()=>{n.style.transform=`translate(${i}px, ${r}px) scale(${u})`},m=b=>{b.touches.length===1?(a=!0,s=b.touches[0].clientX-i,c=b.touches[0].clientY-r):b.touches.length===2&&(d=Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY),f=u)},g=b=>{if(b.preventDefault(),a&&b.touches.length===1)i=b.touches[0].clientX-s,r=b.touches[0].clientY-c,l();else if(b.touches.length===2){const w=Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY)/d,C=u;u=f*(1+(w-1));const E=(b.touches[0].clientX+b.touches[1].clientX)/2,_=(b.touches[0].clientY+b.touches[1].clientY)/2,z=n.getBoundingClientRect(),M=(E-z.left)/C,I=(_-z.top)/C;i-=M*(u-C),r-=I*(u-C),l()}},p=()=>{a=!1},v=b=>{b.preventDefault();const w=.02,C=u;b.deltaY<0?u+=w:u=Math.max(.1,u-w);const E=n.getBoundingClientRect(),_=b.clientX-E.left,z=b.clientY-E.top;i-=_/C*(u-C),r-=z/C*(u-C),l()},x=b=>{a=!0,s=b.clientX-i,c=b.clientY-r},k=b=>{a&&(i=b.clientX-s,r=b.clientY-c,l())},y=()=>{a=!1},h=()=>{a=!1};return t.addEventListener("touchstart",m,{passive:!1}),t.addEventListener("touchmove",g,{passive:!1}),t.addEventListener("touchend",p),t.addEventListener("wheel",v,{passive:!1}),t.addEventListener("mousedown",x),t.addEventListener("mousemove",k),t.addEventListener("mouseup",y),t.addEventListener("mouseleave",h),()=>{t.removeEventListener("touchstart",m),t.removeEventListener("touchmove",g),t.removeEventListener("touchend",p),t.removeEventListener("wheel",v),t.removeEventListener("mousedown",x),t.removeEventListener("mousemove",k),t.removeEventListener("mouseup",y),t.removeEventListener("mouseleave",h)}};return(t,n)=>{const u=new Map;return t==null||t.forEach(i=>{let r=i.querySelector(`.${X}-mermaid-action`);r?r.querySelector(`.${X}-mermaid-zoom`)||r.insertAdjacentHTML("beforeend",`<span class="${X}-mermaid-zoom">${St("pin-off",n.customIcon)}</span>`):(i.insertAdjacentHTML("beforeend",`<div class="${X}-mermaid-action"><span class="${X}-mermaid-zoom">${St("pin-off",n.customIcon)}</span></div>`),r=i.querySelector(`.${X}-mermaid-action`));const a=r.querySelector(`.${X}-mermaid-zoom`),s=()=>{const c=u.get(i);if(c!=null&&c.removeEvent)c.removeEvent(),i.removeAttribute("data-grab"),u.set(i,{removeClick:c.removeClick}),a.innerHTML=St("pin-off",n.customIcon);else{const d=e(i);i.setAttribute("data-grab",""),u.set(i,{removeEvent:d,removeClick:c==null?void 0:c.removeClick}),a.innerHTML=St("pin",n.customIcon)}};a.addEventListener("click",s),u.set(i,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{u.forEach(({removeEvent:i,removeClick:r})=>{i==null||i(),r==null||r()}),u.clear()}}})(),ns=new Set([!0,!1,"alt","title"]);function rs(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function us(e,t){e&&e.attrs&&(e.attrs=rs(e.attrs,t))}function u1(e,t){if(!ns.has(e))throw new TypeError(`figcaption must be one of: ${[...ns]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([u])=>u==="title");return Array.isArray(n)&&n[1]?(us(t,"title"),n[1]):void 0}function i1(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let u=1;for(let i=1,r=n.tokens.length;i<r-1;++i){const a=n.tokens[i];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,l]=a.children;if(d.type!=="link_open"||f.type!=="image"||l.type!=="link_close")continue}if(i!==0&&n.tokens[i-1].type!=="paragraph_open"||i!==r-1&&n.tokens[i+1].type!=="paragraph_close")continue;const s=n.tokens[i-1];let c;if(s.type="figure_open",s.tag="figure",n.tokens[i+1].type="figure_close",n.tokens[i+1].tag="figure",t.dataType&&n.tokens[i-1].attrPush(["data-type","image"]),t.link&&a.children.length===1){[c]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",c.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(c=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=u1(t.figcaption,c);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)),c.attrs&&(c.attrs=rs(c.attrs,"title"))}}if(t.copyAttrs&&c.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=c.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[i-1].attrPush(["tabindex",u]),u++),t.lazy&&(c.attrs.some(([d])=>d==="loading")||c.attrs.push(["loading","lazy"])),t.async&&(c.attrs.some(([d])=>d==="decoding")||c.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,l=c.attrs.length;f<l&&!d;f++){const m=c.attrs[f];m[0]==="class"&&(m[1]=`${m[1]} ${t.classes}`,d=!0)}d||c.attrs.push(["class",t.classes])}if(t.removeSrc){const d=c.attrs.find(([f])=>f==="src");c.attrs.push(["data-src",d[1]]),us(c,"src")}}})}const o1=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function a1(e,t){const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==126||t||u+2>=n)return!1;e.pos=u+1;let i=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){i=!0;break}e.md.inline.skipToken(e)}if(!i||u+1===e.pos)return e.pos=u,!1;const r=e.src.slice(u+1,e.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return e.pos=u,!1;e.posMax=e.pos,e.pos=u+1;const a=e.push("sub_open","sub",1);a.markup="~";const s=e.push("text","",0);s.content=r.replace(o1,"$1");const c=e.push("sub_close","sub",-1);return c.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function s1(e){e.inline.ruler.after("emphasis","sub",a1)}const c1=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function l1(e,t){const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==94||t||u+2>=n)return!1;e.pos=u+1;let i=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){i=!0;break}e.md.inline.skipToken(e)}if(!i||u+1===e.pos)return e.pos=u,!1;const r=e.src.slice(u+1,e.pos);if(r.match(/(^|[^\\])(\\\\)*\s/))return e.pos=u,!1;e.posMax=e.pos,e.pos=u+1;const a=e.push("sup_open","sup",1);a.markup="^";const s=e.push("text","",0);s.content=r.replace(c1,"$1");const c=e.push("sup_close","sup",-1);return c.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function d1(e){e.inline.ruler.after("emphasis","sup",l1)}var f1=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,is=new Set,_i=typeof process=="object"&&process?process:{},os=(e,t,n,u)=>{typeof _i.emitWarning=="function"?_i.emitWarning(e,t,n,u):console.error(`[${n}] ${t}: ${e}`)},au=globalThis.AbortController,as=globalThis.AbortSignal;if(typeof au>"u"){as=class{constructor(){fe(this,"onabort");fe(this,"_onabort",[]);fe(this,"reason");fe(this,"aborted",!1)}addEventListener(n,u){this._onabort.push(u)}},au=class{constructor(){fe(this,"signal",new as);t()}abort(n){var u,i;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let r of this.signal._onabort)r(n);(i=(u=this.signal).onabort)==null||i.call(u,n)}}};let e=((wc=_i.env)==null?void 0:wc.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,os("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 h1=e=>!is.has(e),Ht=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),ss=e=>Ht(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?su:null:null,su=class extends Array{constructor(t){super(t),this.fill(0)}},m1=(Ft=class{constructor(t,n){fe(this,"heap");fe(this,"length");if(!A(Ft,En))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=ss(t);if(!n)return[];ee(Ft,En,!0);let u=new Ft(t,n);return ee(Ft,En,!1),u}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},En=new WeakMap,oe(Ft,En,!1),Ft),p1=(Tn=class{constructor(t){oe(this,G);oe(this,ot);oe(this,Je);oe(this,lt);oe(this,un);oe(this,dt);oe(this,_n);oe(this,Sn);oe(this,ft);fe(this,"ttl");fe(this,"ttlResolution");fe(this,"ttlAutopurge");fe(this,"updateAgeOnGet");fe(this,"updateAgeOnHas");fe(this,"allowStale");fe(this,"noDisposeOnSet");fe(this,"noUpdateTTL");fe(this,"maxEntrySize");fe(this,"sizeCalculation");fe(this,"noDeleteOnFetchRejection");fe(this,"noDeleteOnStaleGet");fe(this,"allowStaleOnFetchAbort");fe(this,"allowStaleOnFetchRejection");fe(this,"ignoreFetchAbort");oe(this,ke);oe(this,ht);oe(this,we);oe(this,he);oe(this,ne);oe(this,$e);oe(this,et);oe(this,Ve);oe(this,Se);oe(this,mt);oe(this,Fe);oe(this,pt);oe(this,gt);oe(this,tt);oe(this,nt);oe(this,bt);oe(this,Gt);oe(this,Ue);oe(this,Fn);oe(this,on,()=>{});oe(this,Nt,()=>{});oe(this,Ar,()=>{});oe(this,rt,()=>!1);oe(this,an,t=>{});oe(this,Dn,(t,n,u)=>{});oe(this,kr,(t,n,u,i)=>{if(u||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});fe(this,vc,"LRUCache");let{max:n=0,ttl:u,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:c,dispose:d,onInsert:f,disposeAfter:l,noDisposeOnSet:m,noUpdateTTL:g,maxSize:p=0,maxEntrySize:v=0,sizeCalculation:x,fetchMethod:k,memoMethod:y,noDeleteOnFetchRejection:h,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:C,ignoreFetchAbort:E,perf:_}=t;if(_!==void 0&&typeof(_==null?void 0:_.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ee(this,ft,_??f1),n!==0&&!Ht(n))throw new TypeError("max option must be a nonnegative integer");let z=n?ss(n):Array;if(!z)throw new Error("invalid max value: "+n);if(ee(this,ot,n),ee(this,Je,p),this.maxEntrySize=v||A(this,Je),this.sizeCalculation=x,this.sizeCalculation){if(!A(this,Je)&&!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(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(ee(this,Sn,y),k!==void 0&&typeof k!="function")throw new TypeError("fetchMethod must be a function if specified");if(ee(this,_n,k),ee(this,Gt,!!k),ee(this,we,new Map),ee(this,he,new Array(n).fill(void 0)),ee(this,ne,new Array(n).fill(void 0)),ee(this,$e,new z(n)),ee(this,et,new z(n)),ee(this,Ve,0),ee(this,Se,0),ee(this,mt,m1.create(n)),ee(this,ke,0),ee(this,ht,0),typeof d=="function"&&ee(this,lt,d),typeof f=="function"&&ee(this,un,f),typeof l=="function"?(ee(this,dt,l),ee(this,Fe,[])):(ee(this,dt,void 0),ee(this,Fe,void 0)),ee(this,bt,!!A(this,lt)),ee(this,Fn,!!A(this,un)),ee(this,Ue,!!A(this,dt)),this.noDisposeOnSet=!!m,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!h,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!E,this.maxEntrySize!==0){if(A(this,Je)!==0&&!Ht(A(this,Je)))throw new TypeError("maxSize must be a positive integer if specified");if(!Ht(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");q(this,G,jc).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Ht(i)||i===0?i:1,this.ttlAutopurge=!!r,this.ttl=u||0,this.ttl){if(!Ht(this.ttl))throw new TypeError("ttl must be a positive integer if specified");q(this,G,Qi).call(this)}if(A(this,ot)===0&&this.ttl===0&&A(this,Je)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!A(this,ot)&&!A(this,Je)){let M="LRU_CACHE_UNBOUNDED";h1(M)&&(is.add(M),os("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",M,Tn))}}get perf(){return A(this,ft)}static unsafeExposeInternals(t){return{starts:A(t,gt),ttls:A(t,tt),autopurgeTimers:A(t,nt),sizes:A(t,pt),keyMap:A(t,we),keyList:A(t,he),valList:A(t,ne),next:A(t,$e),prev:A(t,et),get head(){return A(t,Ve)},get tail(){return A(t,Se)},free:A(t,mt),isBackgroundFetch:n=>{var u;return q(u=t,G,me).call(u,n)},backgroundFetch:(n,u,i,r)=>{var a;return q(a=t,G,Fu).call(a,n,u,i,r)},moveToTail:n=>{var u;return q(u=t,G,_r).call(u,n)},indexes:n=>{var u;return q(u=t,G,qt).call(u,n)},rindexes:n=>{var u;return q(u=t,G,Zt).call(u,n)},isStale:n=>{var u;return A(u=t,rt).call(u,n)}}}get max(){return A(this,ot)}get maxSize(){return A(this,Je)}get calculatedSize(){return A(this,ht)}get size(){return A(this,ke)}get fetchMethod(){return A(this,_n)}get memoMethod(){return A(this,Sn)}get dispose(){return A(this,lt)}get onInsert(){return A(this,un)}get disposeAfter(){return A(this,dt)}getRemainingTTL(t){return A(this,we).has(t)?1/0:0}*entries(){for(let t of q(this,G,qt).call(this))A(this,ne)[t]!==void 0&&A(this,he)[t]!==void 0&&!q(this,G,me).call(this,A(this,ne)[t])&&(yield[A(this,he)[t],A(this,ne)[t]])}*rentries(){for(let t of q(this,G,Zt).call(this))A(this,ne)[t]!==void 0&&A(this,he)[t]!==void 0&&!q(this,G,me).call(this,A(this,ne)[t])&&(yield[A(this,he)[t],A(this,ne)[t]])}*keys(){for(let t of q(this,G,qt).call(this)){let n=A(this,he)[t];n!==void 0&&!q(this,G,me).call(this,A(this,ne)[t])&&(yield n)}}*rkeys(){for(let t of q(this,G,Zt).call(this)){let n=A(this,he)[t];n!==void 0&&!q(this,G,me).call(this,A(this,ne)[t])&&(yield n)}}*values(){for(let t of q(this,G,qt).call(this))A(this,ne)[t]!==void 0&&!q(this,G,me).call(this,A(this,ne)[t])&&(yield A(this,ne)[t])}*rvalues(){for(let t of q(this,G,Zt).call(this))A(this,ne)[t]!==void 0&&!q(this,G,me).call(this,A(this,ne)[t])&&(yield A(this,ne)[t])}[(Ac=Symbol.iterator,vc=Symbol.toStringTag,Ac)](){return this.entries()}find(t,n={}){for(let u of q(this,G,qt).call(this)){let i=A(this,ne)[u],r=q(this,G,me).call(this,i)?i.__staleWhileFetching:i;if(r!==void 0&&t(r,A(this,he)[u],this))return this.get(A(this,he)[u],n)}}forEach(t,n=this){for(let u of q(this,G,qt).call(this)){let i=A(this,ne)[u],r=q(this,G,me).call(this,i)?i.__staleWhileFetching:i;r!==void 0&&t.call(n,r,A(this,he)[u],this)}}rforEach(t,n=this){for(let u of q(this,G,Zt).call(this)){let i=A(this,ne)[u],r=q(this,G,me).call(this,i)?i.__staleWhileFetching:i;r!==void 0&&t.call(n,r,A(this,he)[u],this)}}purgeStale(){let t=!1;for(let n of q(this,G,Zt).call(this,{allowStale:!0}))A(this,rt).call(this,n)&&(q(this,G,Yt).call(this,A(this,he)[n],"expire"),t=!0);return t}info(t){let n=A(this,we).get(t);if(n===void 0)return;let u=A(this,ne)[n],i=q(this,G,me).call(this,u)?u.__staleWhileFetching:u;if(i===void 0)return;let r={value:i};if(A(this,tt)&&A(this,gt)){let a=A(this,tt)[n],s=A(this,gt)[n];if(a&&s){let c=a-(A(this,ft).now()-s);r.ttl=c,r.start=Date.now()}}return A(this,pt)&&(r.size=A(this,pt)[n]),r}dump(){let t=[];for(let n of q(this,G,qt).call(this,{allowStale:!0})){let u=A(this,he)[n],i=A(this,ne)[n],r=q(this,G,me).call(this,i)?i.__staleWhileFetching:i;if(r===void 0||u===void 0)continue;let a={value:r};if(A(this,tt)&&A(this,gt)){a.ttl=A(this,tt)[n];let s=A(this,ft).now()-A(this,gt)[n];a.start=Math.floor(Date.now()-s)}A(this,pt)&&(a.size=A(this,pt)[n]),t.unshift([u,a])}return t}load(t){this.clear();for(let[n,u]of t){if(u.start){let i=Date.now()-u.start;u.start=A(this,ft).now()-i}this.set(n,u.value,u)}}set(t,n,u={}){var m,g,p,v,x,k,y;if(n===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:c}=u,{noUpdateTTL:d=this.noUpdateTTL}=u,f=A(this,kr).call(this,t,n,u.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),q(this,G,Yt).call(this,t,"set"),this;let l=A(this,ke)===0?void 0:A(this,we).get(t);if(l===void 0)l=A(this,ke)===0?A(this,Se):A(this,mt).length!==0?A(this,mt).pop():A(this,ke)===A(this,ot)?q(this,G,Su).call(this,!1):A(this,ke),A(this,he)[l]=t,A(this,ne)[l]=n,A(this,we).set(t,l),A(this,$e)[A(this,Se)]=l,A(this,et)[l]=A(this,Se),ee(this,Se,l),_u(this,ke)._++,A(this,Dn).call(this,l,f,c),c&&(c.set="add"),d=!1,A(this,Fn)&&((m=A(this,un))==null||m.call(this,n,t,"add"));else{q(this,G,_r).call(this,l);let h=A(this,ne)[l];if(n!==h){if(A(this,Gt)&&q(this,G,me).call(this,h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:b}=h;b!==void 0&&!a&&(A(this,bt)&&((g=A(this,lt))==null||g.call(this,b,t,"set")),A(this,Ue)&&((p=A(this,Fe))==null||p.push([b,t,"set"])))}else a||(A(this,bt)&&((v=A(this,lt))==null||v.call(this,h,t,"set")),A(this,Ue)&&((x=A(this,Fe))==null||x.push([h,t,"set"])));if(A(this,an).call(this,l),A(this,Dn).call(this,l,f,c),A(this,ne)[l]=n,c){c.set="replace";let b=h&&q(this,G,me).call(this,h)?h.__staleWhileFetching:h;b!==void 0&&(c.oldValue=b)}}else c&&(c.set="update");A(this,Fn)&&((k=this.onInsert)==null||k.call(this,n,t,n===h?"update":"replace"))}if(i!==0&&!A(this,tt)&&q(this,G,Qi).call(this),A(this,tt)&&(d||A(this,Ar).call(this,l,i,r),c&&A(this,Nt).call(this,c,l)),!a&&A(this,Ue)&&A(this,Fe)){let h=A(this,Fe),b;for(;b=h==null?void 0:h.shift();)(y=A(this,dt))==null||y.call(this,...b)}return this}pop(){var t;try{for(;A(this,ke);){let n=A(this,ne)[A(this,Ve)];if(q(this,G,Su).call(this,!0),q(this,G,me).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(A(this,Ue)&&A(this,Fe)){let n=A(this,Fe),u;for(;u=n==null?void 0:n.shift();)(t=A(this,dt))==null||t.call(this,...u)}}}has(t,n={}){let{updateAgeOnHas:u=this.updateAgeOnHas,status:i}=n,r=A(this,we).get(t);if(r!==void 0){let a=A(this,ne)[r];if(q(this,G,me).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(A(this,rt).call(this,r))i&&(i.has="stale",A(this,Nt).call(this,i,r));else return u&&A(this,on).call(this,r),i&&(i.has="hit",A(this,Nt).call(this,i,r)),!0}else i&&(i.has="miss");return!1}peek(t,n={}){let{allowStale:u=this.allowStale}=n,i=A(this,we).get(t);if(i===void 0||!u&&A(this,rt).call(this,i))return;let r=A(this,ne)[i];return q(this,G,me).call(this,r)?r.__staleWhileFetching:r}async fetch(t,n={}){let{allowStale:u=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:c=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:v,forceRefresh:x=!1,status:k,signal:y}=n;if(!A(this,Gt))return k&&(k.fetch="get"),this.get(t,{allowStale:u,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:k});let h={allowStale:u,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:s,size:c,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:p,ignoreFetchAbort:g,status:k,signal:y},b=A(this,we).get(t);if(b===void 0){k&&(k.fetch="miss");let w=q(this,G,Fu).call(this,t,b,h,v);return w.__returned=w}else{let w=A(this,ne)[b];if(q(this,G,me).call(this,w)){let z=u&&w.__staleWhileFetching!==void 0;return k&&(k.fetch="inflight",z&&(k.returnedStale=!0)),z?w.__staleWhileFetching:w.__returned=w}let C=A(this,rt).call(this,b);if(!x&&!C)return k&&(k.fetch="hit"),q(this,G,_r).call(this,b),i&&A(this,on).call(this,b),k&&A(this,Nt).call(this,k,b),w;let E=q(this,G,Fu).call(this,t,b,h,v),_=E.__staleWhileFetching!==void 0&&u;return k&&(k.fetch=C?"stale":"refresh",_&&C&&(k.returnedStale=!0)),_?E.__staleWhileFetching:E.__returned=E}}async forceFetch(t,n={}){let u=await this.fetch(t,n);if(u===void 0)throw new Error("fetch() returned undefined");return u}memo(t,n={}){let u=A(this,Sn);if(!u)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:r,...a}=n,s=this.get(t,a);if(!r&&s!==void 0)return s;let c=u(t,s,{options:a,context:i});return this.set(t,c,a),c}get(t,n={}){let{allowStale:u=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=n,s=A(this,we).get(t);if(s!==void 0){let c=A(this,ne)[s],d=q(this,G,me).call(this,c);return a&&A(this,Nt).call(this,a,s),A(this,rt).call(this,s)?(a&&(a.get="stale"),d?(a&&u&&c.__staleWhileFetching!==void 0&&(a.returnedStale=!0),u?c.__staleWhileFetching:void 0):(r||q(this,G,Yt).call(this,t,"expire"),a&&u&&(a.returnedStale=!0),u?c:void 0)):(a&&(a.get="hit"),d?c.__staleWhileFetching:(q(this,G,_r).call(this,s),i&&A(this,on).call(this,s),c))}else a&&(a.get="miss")}delete(t){return q(this,G,Yt).call(this,t,"delete")}clear(){return q(this,G,to).call(this,"delete")}},ot=new WeakMap,Je=new WeakMap,lt=new WeakMap,un=new WeakMap,dt=new WeakMap,_n=new WeakMap,Sn=new WeakMap,ft=new WeakMap,ke=new WeakMap,ht=new WeakMap,we=new WeakMap,he=new WeakMap,ne=new WeakMap,$e=new WeakMap,et=new WeakMap,Ve=new WeakMap,Se=new WeakMap,mt=new WeakMap,Fe=new WeakMap,pt=new WeakMap,gt=new WeakMap,tt=new WeakMap,nt=new WeakMap,bt=new WeakMap,Gt=new WeakMap,Ue=new WeakMap,Fn=new WeakMap,G=new WeakSet,Qi=function(){let t=new su(A(this,ot)),n=new su(A(this,ot));ee(this,tt,t),ee(this,gt,n);let u=this.ttlAutopurge?new Array(A(this,ot)):void 0;ee(this,nt,u),ee(this,Ar,(s,c,d=A(this,ft).now())=>{n[s]=c!==0?d:0,t[s]=c,i(s,c)}),ee(this,on,s=>{n[s]=t[s]!==0?A(this,ft).now():0,i(s,t[s])});let i=this.ttlAutopurge?(s,c)=>{if(u!=null&&u[s]&&(clearTimeout(u[s]),u[s]=void 0),c&&c!==0&&u){let d=setTimeout(()=>{A(this,rt).call(this,s)&&q(this,G,Yt).call(this,A(this,he)[s],"expire")},c+1);d.unref&&d.unref(),u[s]=d}}:()=>{};ee(this,Nt,(s,c)=>{if(t[c]){let d=t[c],f=n[c];if(!d||!f)return;s.ttl=d,s.start=f,s.now=r||a();let l=s.now-f;s.remainingTTL=d-l}});let r=0,a=()=>{let s=A(this,ft).now();if(this.ttlResolution>0){r=s;let c=setTimeout(()=>r=0,this.ttlResolution);c.unref&&c.unref()}return s};this.getRemainingTTL=s=>{let c=A(this,we).get(s);if(c===void 0)return 0;let d=t[c],f=n[c];if(!d||!f)return 1/0;let l=(r||a())-f;return d-l},ee(this,rt,s=>{let c=n[s],d=t[s];return!!d&&!!c&&(r||a())-c>d})},on=new WeakMap,Nt=new WeakMap,Ar=new WeakMap,rt=new WeakMap,jc=function(){let t=new su(A(this,ot));ee(this,ht,0),ee(this,pt,t),ee(this,an,n=>{ee(this,ht,A(this,ht)-t[n]),t[n]=0}),ee(this,kr,(n,u,i,r)=>{if(q(this,G,me).call(this,u))return 0;if(!Ht(i))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(i=r(u,n),!Ht(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}),ee(this,Dn,(n,u,i)=>{if(t[n]=u,A(this,Je)){let r=A(this,Je)-t[n];for(;A(this,ht)>r;)q(this,G,Su).call(this,!0)}ee(this,ht,A(this,ht)+t[n]),i&&(i.entrySize=u,i.totalCalculatedSize=A(this,ht))})},an=new WeakMap,Dn=new WeakMap,kr=new WeakMap,qt=function*({allowStale:t=this.allowStale}={}){if(A(this,ke))for(let n=A(this,Se);!(!q(this,G,Ji).call(this,n)||((t||!A(this,rt).call(this,n))&&(yield n),n===A(this,Ve)));)n=A(this,et)[n]},Zt=function*({allowStale:t=this.allowStale}={}){if(A(this,ke))for(let n=A(this,Ve);!(!q(this,G,Ji).call(this,n)||((t||!A(this,rt).call(this,n))&&(yield n),n===A(this,Se)));)n=A(this,$e)[n]},Ji=function(t){return t!==void 0&&A(this,we).get(A(this,he)[t])===t},Su=function(t){var r,a,s;let n=A(this,Ve),u=A(this,he)[n],i=A(this,ne)[n];return A(this,Gt)&&q(this,G,me).call(this,i)?i.__abortController.abort(new Error("evicted")):(A(this,bt)||A(this,Ue))&&(A(this,bt)&&((r=A(this,lt))==null||r.call(this,i,u,"evict")),A(this,Ue)&&((a=A(this,Fe))==null||a.push([i,u,"evict"]))),A(this,an).call(this,n),(s=A(this,nt))!=null&&s[n]&&(clearTimeout(A(this,nt)[n]),A(this,nt)[n]=void 0),t&&(A(this,he)[n]=void 0,A(this,ne)[n]=void 0,A(this,mt).push(n)),A(this,ke)===1?(ee(this,Ve,ee(this,Se,0)),A(this,mt).length=0):ee(this,Ve,A(this,$e)[n]),A(this,we).delete(u),_u(this,ke)._--,n},Fu=function(t,n,u,i){let r=n===void 0?void 0:A(this,ne)[n];if(q(this,G,me).call(this,r))return r;let a=new au,{signal:s}=u;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let c={signal:a.signal,options:u,context:i},d=(v,x=!1)=>{let{aborted:k}=a.signal,y=u.ignoreFetchAbort&&v!==void 0,h=u.ignoreFetchAbort||!!(u.allowStaleOnFetchAbort&&v!==void 0);if(u.status&&(k&&!x?(u.status.fetchAborted=!0,u.status.fetchError=a.signal.reason,y&&(u.status.fetchAbortIgnored=!0)):u.status.fetchResolved=!0),k&&!y&&!x)return l(a.signal.reason,h);let b=g,w=A(this,ne)[n];return(w===g||y&&x&&w===void 0)&&(v===void 0?b.__staleWhileFetching!==void 0?A(this,ne)[n]=b.__staleWhileFetching:q(this,G,Yt).call(this,t,"fetch"):(u.status&&(u.status.fetchUpdated=!0),this.set(t,v,c.options))),v},f=v=>(u.status&&(u.status.fetchRejected=!0,u.status.fetchError=v),l(v,!1)),l=(v,x)=>{let{aborted:k}=a.signal,y=k&&u.allowStaleOnFetchAbort,h=y||u.allowStaleOnFetchRejection,b=h||u.noDeleteOnFetchRejection,w=g;if(A(this,ne)[n]===g&&(!b||!x&&w.__staleWhileFetching===void 0?q(this,G,Yt).call(this,t,"fetch"):y||(A(this,ne)[n]=w.__staleWhileFetching)),h)return u.status&&w.__staleWhileFetching!==void 0&&(u.status.returnedStale=!0),w.__staleWhileFetching;if(w.__returned===w)throw v},m=(v,x)=>{var y;let k=(y=A(this,_n))==null?void 0:y.call(this,t,r,c);k&&k instanceof Promise&&k.then(h=>v(h===void 0?void 0:h),x),a.signal.addEventListener("abort",()=>{(!u.ignoreFetchAbort||u.allowStaleOnFetchAbort)&&(v(void 0),u.allowStaleOnFetchAbort&&(v=h=>d(h,!0)))})};u.status&&(u.status.fetchDispatched=!0);let g=new Promise(m).then(d,f),p=Object.assign(g,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return n===void 0?(this.set(t,p,{...c.options,status:void 0}),n=A(this,we).get(t)):A(this,ne)[n]=p,p},me=function(t){if(!A(this,Gt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof au},eo=function(t,n){A(this,et)[n]=t,A(this,$e)[t]=n},_r=function(t){t!==A(this,Se)&&(t===A(this,Ve)?ee(this,Ve,A(this,$e)[t]):q(this,G,eo).call(this,A(this,et)[t],A(this,$e)[t]),q(this,G,eo).call(this,A(this,Se),t),ee(this,Se,t))},Yt=function(t,n){var i,r,a,s,c,d;let u=!1;if(A(this,ke)!==0){let f=A(this,we).get(t);if(f!==void 0)if((i=A(this,nt))!=null&&i[f]&&(clearTimeout((r=A(this,nt))==null?void 0:r[f]),A(this,nt)[f]=void 0),u=!0,A(this,ke)===1)q(this,G,to).call(this,n);else{A(this,an).call(this,f);let l=A(this,ne)[f];if(q(this,G,me).call(this,l)?l.__abortController.abort(new Error("deleted")):(A(this,bt)||A(this,Ue))&&(A(this,bt)&&((a=A(this,lt))==null||a.call(this,l,t,n)),A(this,Ue)&&((s=A(this,Fe))==null||s.push([l,t,n]))),A(this,we).delete(t),A(this,he)[f]=void 0,A(this,ne)[f]=void 0,f===A(this,Se))ee(this,Se,A(this,et)[f]);else if(f===A(this,Ve))ee(this,Ve,A(this,$e)[f]);else{let m=A(this,et)[f];A(this,$e)[m]=A(this,$e)[f];let g=A(this,$e)[f];A(this,et)[g]=A(this,et)[f]}_u(this,ke)._--,A(this,mt).push(f)}}if(A(this,Ue)&&((c=A(this,Fe))!=null&&c.length)){let f=A(this,Fe),l;for(;l=f==null?void 0:f.shift();)(d=A(this,dt))==null||d.call(this,...l)}return u},to=function(t){var n,u,i,r;for(let a of q(this,G,Zt).call(this,{allowStale:!0})){let s=A(this,ne)[a];if(q(this,G,me).call(this,s))s.__abortController.abort(new Error("deleted"));else{let c=A(this,he)[a];A(this,bt)&&((n=A(this,lt))==null||n.call(this,s,c,t)),A(this,Ue)&&((u=A(this,Fe))==null||u.push([s,c,t]))}}if(A(this,we).clear(),A(this,ne).fill(void 0),A(this,he).fill(void 0),A(this,tt)&&A(this,gt)){A(this,tt).fill(0),A(this,gt).fill(0);for(let a of A(this,nt)??[])a!==void 0&&clearTimeout(a);(i=A(this,nt))==null||i.fill(void 0)}if(A(this,pt)&&A(this,pt).fill(0),ee(this,Ve,0),ee(this,Se,0),A(this,mt).length=0,ee(this,ht,0),ee(this,ke,0),A(this,Ue)&&A(this,Fe)){let a=A(this,Fe),s;for(;s=a==null?void 0:a.shift();)(r=A(this,dt))==null||r.call(this,...s)}},Tn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var en=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u])}return e},cu=function(t){return t.tagName==="IMG"},g1=function(t){return NodeList.prototype.isPrototypeOf(t)},lu=function(t){return t&&t.nodeType===1},cs=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},ls=function(t){try{return Array.isArray(t)?t.filter(cu):g1(t)?[].slice.call(t).filter(cu):lu(t)?[t].filter(cu):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(cu):[]}catch{throw new TypeError(`The provided selector is invalid.
42
34
  Expects a CSS selector, a Node element, a NodeList or an array.
43
- See: https://github.com/francoischalifour/medium-zoom`)}},jh=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},Hh=function(t){var n=t.getBoundingClientRect(),r=n.top,o=n.left,u=n.width,a=n.height,s=t.cloneNode(),c=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+c+"px",s.style.left=o+d+"px",s.style.width=u+"px",s.style.height=a+"px",s.style.transform="",s},yn=function(t,n){var r=Yt({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),o},$h=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(P){function S(){}P(S,S)},o=function(P){var S=P.target;if(S===$){h();return}b.indexOf(S)!==-1&&x({target:S})},u=function(){if(!(k||!E.original)){var P=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(F-P)>_.scrollOffset&&setTimeout(h,150)}},a=function(P){var S=P.key||P.keyCode;(S==="Escape"||S==="Esc"||S===27)&&h()},s=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=P;if(P.background&&($.style.background=P.background),P.container&&P.container instanceof Object&&(S.container=Yt({},_.container,P.container)),P.template){var z=or(P.template)?P.template:document.querySelector(P.template);S.template=z}return _=Yt({},_,S),b.forEach(function(j){j.dispatchEvent(yn("medium-zoom:update",{detail:{zoom:R}}))}),R},c=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(Yt({},_,P))},d=function(){for(var P=arguments.length,S=Array(P),z=0;z<P;z++)S[z]=arguments[z];var j=S.reduce(function(T,q){return[].concat(T,ls(q))},[]);return j.filter(function(T){return b.indexOf(T)===-1}).forEach(function(T){b.push(T),T.classList.add("medium-zoom-image")}),A.forEach(function(T){var q=T.type,M=T.listener,G=T.options;j.forEach(function(re){re.addEventListener(q,M,G)})}),R},f=function(){for(var P=arguments.length,S=Array(P),z=0;z<P;z++)S[z]=arguments[z];E.zoomed&&h();var j=S.length>0?S.reduce(function(T,q){return[].concat(T,ls(q))},[]):b;return j.forEach(function(T){T.classList.remove("medium-zoom-image"),T.dispatchEvent(yn("medium-zoom:detach",{detail:{zoom:R}}))}),b=b.filter(function(T){return j.indexOf(T)===-1}),R},l=function(P,S){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return b.forEach(function(j){j.addEventListener("medium-zoom:"+P,S,z)}),A.push({type:"medium-zoom:"+P,listener:S,options:z}),R},p=function(P,S){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return b.forEach(function(j){j.removeEventListener("medium-zoom:"+P,S,z)}),A=A.filter(function(j){return!(j.type==="medium-zoom:"+P&&j.listener.toString()===S.toString())}),R},m=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=P.target,z=function(){var T={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},q=void 0,M=void 0;if(_.container)if(_.container instanceof Object)T=Yt({},T,_.container),q=T.width-T.left-T.right-_.margin*2,M=T.height-T.top-T.bottom-_.margin*2;else{var G=or(_.container)?_.container:document.querySelector(_.container),re=G.getBoundingClientRect(),ne=re.width,I=re.height,V=re.left,D=re.top;T=Yt({},T,{width:ne,height:I,left:V,top:D})}q=q||T.width-_.margin*2,M=M||T.height-_.margin*2;var L=E.zoomedHd||E.original,W=cs(L)?q:L.naturalWidth||q,K=cs(L)?M:L.naturalHeight||M,Y=L.getBoundingClientRect(),Z=Y.top,ue=Y.left,ce=Y.width,Te=Y.height,Ne=Math.min(Math.max(ce,W),q)/ce,pt=Math.min(Math.max(Te,K),M)/Te,Me=Math.min(Ne,pt),_n=(-ue+(q-ce)/2+_.margin+T.left)/Me,$t=(-Z+(M-Te)/2+_.margin+T.top)/Me,St="scale("+Me+") translate3d("+_n+"px, "+$t+"px, 0)";E.zoomed.style.transform=St,E.zoomedHd&&(E.zoomedHd.style.transform=St)};return new r(function(j){if(S&&b.indexOf(S)===-1){j(R);return}var T=function ne(){k=!1,E.zoomed.removeEventListener("transitionend",ne),E.original.dispatchEvent(yn("medium-zoom:opened",{detail:{zoom:R}})),j(R)};if(E.zoomed){j(R);return}if(S)E.original=S;else if(b.length>0){var q=b;E.original=q[0]}else{j(R);return}if(E.original.dispatchEvent(yn("medium-zoom:open",{detail:{zoom:R}})),F=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,E.zoomed=Hh(E.original),document.body.appendChild($),_.template){var M=or(_.template)?_.template:document.querySelector(_.template);E.template=document.createElement("div"),E.template.appendChild(M.content.cloneNode(!0)),document.body.appendChild(E.template)}if(E.original.parentElement&&E.original.parentElement.tagName==="PICTURE"&&E.original.currentSrc&&(E.zoomed.src=E.original.currentSrc),document.body.appendChild(E.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),E.original.classList.add("medium-zoom-image--hidden"),E.zoomed.classList.add("medium-zoom-image--opened"),E.zoomed.addEventListener("click",h),E.zoomed.addEventListener("transitionend",T),E.original.getAttribute("data-zoom-src")){E.zoomedHd=E.zoomed.cloneNode(),E.zoomedHd.removeAttribute("srcset"),E.zoomedHd.removeAttribute("sizes"),E.zoomedHd.removeAttribute("loading"),E.zoomedHd.src=E.zoomed.getAttribute("data-zoom-src"),E.zoomedHd.onerror=function(){clearInterval(G),console.warn("Unable to reach the zoom image target "+E.zoomedHd.src),E.zoomedHd=null,z()};var G=setInterval(function(){E.zoomedHd.complete&&(clearInterval(G),E.zoomedHd.classList.add("medium-zoom-image--opened"),E.zoomedHd.addEventListener("click",h),document.body.appendChild(E.zoomedHd),z())},10)}else if(E.original.hasAttribute("srcset")){E.zoomedHd=E.zoomed.cloneNode(),E.zoomedHd.removeAttribute("sizes"),E.zoomedHd.removeAttribute("loading");var re=E.zoomedHd.addEventListener("load",function(){E.zoomedHd.removeEventListener("load",re),E.zoomedHd.classList.add("medium-zoom-image--opened"),E.zoomedHd.addEventListener("click",h),document.body.appendChild(E.zoomedHd),z()})}else z()})},h=function(){return new r(function(P){if(k||!E.original){P(R);return}var S=function z(){E.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(E.zoomed),E.zoomedHd&&document.body.removeChild(E.zoomedHd),document.body.removeChild($),E.zoomed.classList.remove("medium-zoom-image--opened"),E.template&&document.body.removeChild(E.template),k=!1,E.zoomed.removeEventListener("transitionend",z),E.original.dispatchEvent(yn("medium-zoom:closed",{detail:{zoom:R}})),E.original=null,E.zoomed=null,E.zoomedHd=null,E.template=null,P(R)};k=!0,document.body.classList.remove("medium-zoom--opened"),E.zoomed.style.transform="",E.zoomedHd&&(E.zoomedHd.style.transform=""),E.template&&(E.template.style.transition="opacity 150ms",E.template.style.opacity=0),E.original.dispatchEvent(yn("medium-zoom:close",{detail:{zoom:R}})),E.zoomed.addEventListener("transitionend",S)})},x=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=P.target;return E.original?h():m({target:S})},y=function(){return _},v=function(){return b},g=function(){return E.original},b=[],A=[],k=!1,F=0,_=n,E={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?_=t:(t||typeof t=="string")&&d(t),_=Yt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},_);var $=jh(_.background);document.addEventListener("click",o),document.addEventListener("keyup",a),document.addEventListener("scroll",u),window.addEventListener("resize",h);var R={open:m,close:h,toggle:x,update:s,clone:c,attach:d,detach:f,on:l,off:p,getOptions:y,getImages:v,getZoomedImage:g};return R};function Uh(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var Wh=".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}";Uh(Wh);const zt={hljs:`${U}-hljs`,hlcss:`${U}-hlCss`,mermaidM:`${U}-mermaid-m`,mermaid:`${U}-mermaid`,katexjs:`${U}-katex`,katexcss:`${U}-katexCss`,echarts:`${U}-echarts`},Gh=(e,{editorId:t,rootRef:n,setting:r})=>{const o=ot.editorExtensions.highlight,u=ot.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}=o,c={...go,...o.css},{js:d,css:f={}}=u||{},l=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,p=c[e.codeTheme]?c[e.codeTheme][l]:go.atom[l],m=c[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][l]:f.atom?f.atom[l]:{};return{js:{src:s,...d},css:{href:p,...m}}})),i.provide("showCodeRowNumber",e.showCodeRowNumber);const a=i.computed(()=>{const s={...Ja,...ot.editorConfig.languageUserDefined};return po(au(Ja["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}},qh=e=>{const t=i.useId();return e.id||e.editorId||`${U}-${t}`},Xh=(e,t,n)=>{const r=i.inject("editorId"),o=i.inject("rootRef"),u=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{o.value.querySelectorAll(`#${r} .${U}-preview .${U}-code`).forEach(f=>{let l=-1;const p=f.querySelector(`.${U}-copy-button:not([data-processed])`);p&&(p.onclick=m=>{m.preventDefault(),clearTimeout(l);const h=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:x,successTips:y,failTips:v}=u.value.copyCode;let g=y;ts(e.formatCopiedText(h||"")).catch(()=>{g=v}).finally(()=>{p.dataset.isIcon?p.dataset.tips=g:p.innerHTML=g,l=window.setTimeout(()=>{p.dataset.isIcon?p.dataset.tips=x:p.innerHTML=x},1500)})},p.setAttribute("data-processed","true"))})},c=()=>{i.nextTick(s)},d=f=>{f&&i.nextTick(s)};i.watch([t,n],c),i.watch(()=>a.value.preview,d),i.watch(()=>a.value.htmlPreview,d),i.onMounted(s)},Zh=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u}=ot;let a=o.echarts.instance;const s=i.shallowRef(-1),c=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{c()}),i.onMounted(()=>{var x;if(e.noEcharts||a)return;const h=o.echarts.js;Vt("script",{...(x=u.echarts)==null?void 0:x.js,src:h,id:zt.echarts,onload(){a=window.echarts,c()}},"echarts")});let d=[],f=[],l=[];const p=(h=!1)=>{if(!d.length){h&&(f.forEach(g=>{var b;(b=g.dispose)==null||b.call(g)}),l.forEach(g=>{var b;(b=g.disconnect)==null||b.call(g)}),f=[],l=[]);return}const x=[],y=[],v=[];d.forEach((g,b)=>{var F,_;const A=f[b],k=l[b];if(h||!g||!g.isConnected||r!=null&&r.value&&!r.value.contains(g)){(F=A==null?void 0:A.dispose)==null||F.call(A),(_=k==null?void 0:k.disconnect)==null||_.call(k);return}x.push(g),A&&y.push(A),k&&v.push(k)}),d=x,f=y,l=v},m=()=>{p(),!e.noEcharts&&a&&Array.from(r.value.querySelectorAll(`#${t} div.${U}-echarts:not([data-processed])`)).forEach(h=>{if(h.dataset.closed==="false")return!1;try{const x=new Function(`return ${h.innerText}`)(),y=a.init(h,n.value);y.setOption(x),h.setAttribute("data-processed",""),d.push(h),f.push(y);const v=new ResizeObserver(()=>{y.resize()});v.observe(h),l.push(v)}catch(x){nt.emit(t,bo,{name:"echarts",message:x==null?void 0:x.message,error:x})}})};return i.onBeforeUnmount(()=>{p(!0)}),{reRenderEcharts:s,replaceEcharts:m}},Yh=e=>{const t=i.inject("highlight"),n=i.shallowRef(ot.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Vt("link",{...t.value.css,rel:"stylesheet",id:zt.hlcss}),Vt("script",{...t.value.js,id:zt.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||ot.editorExtensions.highlight.instance||Ch("link",{...t.value.css,rel:"stylesheet",id:zt.hlcss})}),n},Qh=e=>{const t=i.shallowRef(ot.editorExtensions.katex.instance);return i.onMounted(()=>{var o,u;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=ot;Vt("script",{...(o=r.katex)==null?void 0:o.js,src:n.katex.js,id:zt.katexjs,onload(){t.value=window.katex}},"katex"),Vt("link",{...(u=r.katex)==null?void 0:u.css,rel:"stylesheet",href:n.katex.css,id:zt.katexcss})}),t},ir=new Bh({max:1e3,ttl:6e5}),Kh=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u,mermaidConfig:a}=ot;let s=o.mermaid.instance;const c=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)),c.value=c.value+1}};return i.watch(()=>n.value,()=>{ir.clear(),d()}),i.onMounted(()=>{var l,p;if(e.noMermaid||s)return;const f=o.mermaid.js;/\.mjs/.test(f)?(Vt("link",{...(l=u.mermaid)==null?void 0:l.js,rel:"modulepreload",href:f,id:zt.mermaidM}),import(f).then(m=>{s=m.default,d()}).catch(m=>{nt.emit(t,bo,{name:"mermaid",message:`Failed to load mermaid module: ${m.message}`,error:m})})):Vt("script",{...(p=u.mermaid)==null?void 0:p.js,src:f,id:zt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:c,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${U}-mermaid`),l=document.createElement("div"),p=document.body.offsetWidth>1366?document.body.offsetWidth:1366,m=document.body.offsetHeight>768?document.body.offsetHeight:768;l.style.width=p+"px",l.style.height=m+"px",l.style.position="fixed",l.style.zIndex="-10000",l.style.top="-10000";let h=f.length;h>0&&document.body.appendChild(l),await Promise.allSettled(Array.from(f).map(x=>(async y=>{var b;if(y.dataset.closed==="false")return!1;const v=y.innerText;let g=ir.get(v);if(!g){const A=ho();let k={svg:""};try{k=await s.render(A,v,l),g=await e.sanitizeMermaid(k.svg);const F=document.createElement("p");F.className=`${U}-mermaid`,F.setAttribute("data-processed",""),F.setAttribute("data-content",v),F.innerHTML=g,(b=F.children[0])==null||b.removeAttribute("height"),ir.set(v,F.innerHTML),y.dataset.line!==void 0&&(F.dataset.line=y.dataset.line),y.replaceWith(F)}catch(F){nt.emit(t,bo,{name:"mermaid",message:F.message,error:F})}--h===0&&l.remove()}})(x)))}}}},Jh=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",o=r.charCodeAt(0),u=r.length;let a="",s="";const c=(f,l,p,m,h)=>{const x=f[l];return x.type==="admonition_open"?f[l].attrPush(["class",`${U}-admonition ${U}-admonition-${x.info}`]):x.type==="admonition_title_open"&&f[l].attrPush(["class",`${U}-admonition-title`]),h.renderToken(f,l,p)},d=f=>{const l=f.trim().split(" ",2);s="",a=l[0],l.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,l,p,m)=>{let h,x,y,v=!1,g=f.bMarks[l]+f.tShift[l],b=f.eMarks[l];if(o!==f.src.charCodeAt(g))return!1;for(h=g+1;h<=b&&r[(h-g)%u]===f.src[h];h++);const A=Math.floor((h-g)/u);if(A!==n)return!1;h-=(h-g)%u;const k=f.src.slice(g,h),F=f.src.slice(h,b);if(d(F),m)return!0;for(x=l;x++,!(x>=p||(g=f.bMarks[x]+f.tShift[x],b=f.eMarks[x],g<b&&f.sCount[x]<f.blkIndent));)if(o===f.src.charCodeAt(g)&&!(f.sCount[x]-f.blkIndent>=4)){for(h=g+1;h<=b&&r[(h-g)%u]===f.src[h];h++);if(!(Math.floor((h-g)/u)<A)&&(h-=(h-g)%u,h=f.skipSpaces(h),!(h<b))){v=!0;break}}const _=f.parentType,E=f.lineMax;return f.parentType="root",f.lineMax=x,y=f.push("admonition_open","div",1),y.markup=k,y.block=!0,y.info=a,y.map=[l,x],s&&(y=f.push("admonition_title_open","p",1),y.markup=k+" "+a,y.map=[l,x],y=f.push("inline","",0),y.content=s,y.map=[l,f.line-1],y.children=[],y=f.push("admonition_title_close","p",-1),y.markup=k+" "+a),f.md.block.tokenize(f,l+1,x),y=f.push("admonition_close","div",-1),y.markup=f.src.slice(g,h),y.block=!0,f.parentType=_,f.lineMax=E,f.line=x+(v?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=c,e.renderer.rules.admonition_title_open=c,e.renderer.rules.admonition_title_close=c,e.renderer.rules.admonition_close=c},Ao=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(r=>{const o=e.attrIndex(r[0]);o<0?n.push(r):(n[o]=n[o].slice(),n[o][1]+=` ${r[1]}`)}),n},e2=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,o=/\[(\w*)(?::([\w ]*))?\]/,u=/::(open|close)/,a=l=>l.info?r(l.info).trim():"",s=l=>{const p=a(l),[m=null,h=""]=(o.exec(p)||[]).slice(1);return[m,h]},c=l=>{const p=a(l);return p?p.split(/(\s+)/g)[0]:""},d=l=>{const p=l.info.match(u)||[],m=p[1]==="open"||p[1]!=="close"&&t.codeFoldable&&l.content.trim().split(`
44
- `).length<t.autoFoldThreshold,h=p[1]||t.codeFoldable?"details":"div",x=p[1]||t.codeFoldable?"summary":"div";return{open:m,tagContainer:h,tagHeader:x}},f=(l,p,m,h,x)=>{var q;if(l[p].hidden)return"";const y=(q=t.usedLanguageTextRef.value)==null?void 0:q.copyCode.text,v=t.customIconRef.value.copy||y,g=!!t.customIconRef.value.copy,b=`<span class="${U}-collapse-tips">${kt("collapse-tips",t.customIconRef.value)}</span>`,[A]=s(l[p]);if(A===null){const{open:M,tagContainer:G,tagHeader:re}=d(l[p]),ne=[["class",`${U}-code`]];M&&ne.push(["open",""]);const I={attrs:Ao(l[p],ne)};l[p].info=l[p].info.replace(u,"");const V=n(l,p,m,h,x);return`
45
- <${G} ${x.renderAttrs(I)}>
46
- <${re} class="${U}-code-head">
47
- <div class="${U}-code-flag"><span></span><span></span><span></span></div>
48
- <div class="${U}-code-action">
49
- <span class="${U}-code-lang">${e.utils.escapeHtml(l[p].info.trim())}</span>
50
- <span class="${U}-copy-button" data-tips="${y}"${g?" data-is-icon=true":""}>${v}</span>
51
- ${t.extraTools instanceof Function?t.extraTools({lang:l[p].info.trim()}):t.extraTools||""}
52
- ${G==="details"?b:""}
35
+ See: https://github.com/francoischalifour/medium-zoom`)}},b1=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},y1=function(t){var n=t.getBoundingClientRect(),u=n.top,i=n.left,r=n.width,a=n.height,s=t.cloneNode(),c=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=u+c+"px",s.style.left=i+d+"px",s.style.width=r+"px",s.style.height=a+"px",s.style.transform="",s},An=function(t,n){var u=en({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,u);var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,u.bubbles,u.cancelable,u.detail),i},x1=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=window.Promise||function(B){function D(){}B(D,D)},i=function(B){var D=B.target;if(D===z){p();return}h.indexOf(D)!==-1&&v({target:D})},r=function(){if(!(w||!_.original)){var B=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(C-B)>E.scrollOffset&&setTimeout(p,150)}},a=function(B){var D=B.key||B.keyCode;(D==="Escape"||D==="Esc"||D===27)&&p()},s=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=B;if(B.background&&(z.style.background=B.background),B.container&&B.container instanceof Object&&(D.container=en({},E.container,B.container)),B.template){var H=lu(B.template)?B.template:document.querySelector(B.template);D.template=H}return E=en({},E,D),h.forEach(function($){$.dispatchEvent(An("medium-zoom:update",{detail:{zoom:M}}))}),M},c=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(en({},E,B))},d=function(){for(var B=arguments.length,D=Array(B),H=0;H<B;H++)D[H]=arguments[H];var $=D.reduce(function(F,R){return[].concat(F,ls(R))},[]);return $.filter(function(F){return h.indexOf(F)===-1}).forEach(function(F){h.push(F),F.classList.add("medium-zoom-image")}),b.forEach(function(F){var R=F.type,O=F.listener,U=F.options;$.forEach(function(re){re.addEventListener(R,O,U)})}),M},f=function(){for(var B=arguments.length,D=Array(B),H=0;H<B;H++)D[H]=arguments[H];_.zoomed&&p();var $=D.length>0?D.reduce(function(F,R){return[].concat(F,ls(R))},[]):h;return $.forEach(function(F){F.classList.remove("medium-zoom-image"),F.dispatchEvent(An("medium-zoom:detach",{detail:{zoom:M}}))}),h=h.filter(function(F){return $.indexOf(F)===-1}),M},l=function(B,D){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.forEach(function($){$.addEventListener("medium-zoom:"+B,D,H)}),b.push({type:"medium-zoom:"+B,listener:D,options:H}),M},m=function(B,D){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.forEach(function($){$.removeEventListener("medium-zoom:"+B,D,H)}),b=b.filter(function($){return!($.type==="medium-zoom:"+B&&$.listener.toString()===D.toString())}),M},g=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=B.target,H=function(){var F={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},R=void 0,O=void 0;if(E.container)if(E.container instanceof Object)F=en({},F,E.container),R=F.width-F.left-F.right-E.margin*2,O=F.height-F.top-F.bottom-E.margin*2;else{var U=lu(E.container)?E.container:document.querySelector(E.container),re=U.getBoundingClientRect(),te=re.width,P=re.height,V=re.left,T=re.top;F=en({},F,{width:te,height:P,left:V,top:T})}R=R||F.width-E.margin*2,O=O||F.height-E.margin*2;var L=_.zoomedHd||_.original,W=cs(L)?R:L.naturalWidth||R,K=cs(L)?O:L.naturalHeight||O,Z=L.getBoundingClientRect(),Y=Z.top,ue=Z.left,ce=Z.width,De=Z.height,Te=Math.min(Math.max(ce,W),R)/ce,yt=Math.min(Math.max(De,K),O)/De,Me=Math.min(Te,yt),Nn=(-ue+(R-ce)/2+E.margin+F.left)/Me,Xt=(-Y+(O-De)/2+E.margin+F.top)/Me,Lt="scale("+Me+") translate3d("+Nn+"px, "+Xt+"px, 0)";_.zoomed.style.transform=Lt,_.zoomedHd&&(_.zoomedHd.style.transform=Lt)};return new u(function($){if(D&&h.indexOf(D)===-1){$(M);return}var F=function te(){w=!1,_.zoomed.removeEventListener("transitionend",te),_.original.dispatchEvent(An("medium-zoom:opened",{detail:{zoom:M}})),$(M)};if(_.zoomed){$(M);return}if(D)_.original=D;else if(h.length>0){var R=h;_.original=R[0]}else{$(M);return}if(_.original.dispatchEvent(An("medium-zoom:open",{detail:{zoom:M}})),C=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,w=!0,_.zoomed=y1(_.original),document.body.appendChild(z),E.template){var O=lu(E.template)?E.template:document.querySelector(E.template);_.template=document.createElement("div"),_.template.appendChild(O.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",p),_.zoomed.addEventListener("transitionend",F),_.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(U),console.warn("Unable to reach the zoom image target "+_.zoomedHd.src),_.zoomedHd=null,H()};var U=setInterval(function(){_.zoomedHd.complete&&(clearInterval(U),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",p),document.body.appendChild(_.zoomedHd),H())},10)}else if(_.original.hasAttribute("srcset")){_.zoomedHd=_.zoomed.cloneNode(),_.zoomedHd.removeAttribute("sizes"),_.zoomedHd.removeAttribute("loading");var re=_.zoomedHd.addEventListener("load",function(){_.zoomedHd.removeEventListener("load",re),_.zoomedHd.classList.add("medium-zoom-image--opened"),_.zoomedHd.addEventListener("click",p),document.body.appendChild(_.zoomedHd),H()})}else H()})},p=function(){return new u(function(B){if(w||!_.original){B(M);return}var D=function H(){_.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(_.zoomed),_.zoomedHd&&document.body.removeChild(_.zoomedHd),document.body.removeChild(z),_.zoomed.classList.remove("medium-zoom-image--opened"),_.template&&document.body.removeChild(_.template),w=!1,_.zoomed.removeEventListener("transitionend",H),_.original.dispatchEvent(An("medium-zoom:closed",{detail:{zoom:M}})),_.original=null,_.zoomed=null,_.zoomedHd=null,_.template=null,B(M)};w=!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(An("medium-zoom:close",{detail:{zoom:M}})),_.zoomed.addEventListener("transitionend",D)})},v=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=B.target;return _.original?p():g({target:D})},x=function(){return E},k=function(){return h},y=function(){return _.original},h=[],b=[],w=!1,C=0,E=n,_={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?E=t:(t||typeof t=="string")&&d(t),E=en({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},E);var z=b1(E.background);document.addEventListener("click",i),document.addEventListener("keyup",a),document.addEventListener("scroll",r),window.addEventListener("resize",p);var M={open:g,close:p,toggle:v,update:s,clone:c,attach:d,detach:f,on:l,off:m,getOptions:x,getImages:k,getZoomedImage:y};return M};function w1(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var u=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&u.firstChild?u.insertBefore(i,u.firstChild):u.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var v1=".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}";w1(v1);const $t={hljs:`${X}-hljs`,hlcss:`${X}-hlCss`,mermaidM:`${X}-mermaid-m`,mermaid:`${X}-mermaid`,katexjs:`${X}-katex`,katexcss:`${X}-katexCss`,echarts:`${X}-echarts`},A1=(e,{editorId:t,rootRef:n,setting:u})=>{const i=ct.editorExtensions.highlight,r=ct.editorExtensionsAttrs.highlight;o.provide("editorId",t),o.provide("rootRef",n),o.provide("theme",o.computed(()=>e.theme)),o.provide("language",o.computed(()=>e.language)),o.provide("highlight",o.computed(()=>{const{js:s}=i,c={...ki,...i.css},{js:d,css:f={}}=r||{},l=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,m=c[e.codeTheme]?c[e.codeTheme][l]:ki.atom[l],g=c[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][l]:f.atom?f.atom[l]:{};return{js:{src:s,...d},css:{href:m,...g}}})),o.provide("showCodeRowNumber",e.showCodeRowNumber);const a=o.computed(()=>{const s={...Ja,...ct.editorConfig.languageUserDefined};return vi(ur(Ja["en-US"]),s[e.language]||{})});return o.provide("usedLanguageText",a),o.provide("previewTheme",o.computed(()=>e.previewTheme)),o.provide("customIcon",o.computed(()=>e.customIcon)),o.provide("setting",o.computed(()=>u?{...u}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},k1=e=>{const t=o.useId();return e.id||e.editorId||`${X}-${t}`},C1=(e,t,n)=>{const u=o.inject("editorId"),i=o.inject("rootRef"),r=o.inject("usedLanguageText"),a=o.inject("setting"),s=()=>{i.value.querySelectorAll(`#${u} .${X}-preview .${X}-code`).forEach(f=>{let l=-1;const m=f.querySelector(`.${X}-copy-button:not([data-processed])`);m&&(m.onclick=g=>{g.preventDefault(),clearTimeout(l);const p=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:v,successTips:x,failTips:k}=r.value.copyCode;let y=x;ts(e.formatCopiedText(p||"")).catch(()=>{y=k}).finally(()=>{m.dataset.isIcon?m.dataset.tips=y:m.innerHTML=y,l=window.setTimeout(()=>{m.dataset.isIcon?m.dataset.tips=v:m.innerHTML=v},1500)})},m.setAttribute("data-processed","true"))})},c=()=>{o.nextTick(s)},d=f=>{f&&o.nextTick(s)};o.watch([t,n],c),o.watch(()=>a.value.preview,d),o.watch(()=>a.value.htmlPreview,d),o.onMounted(s)},E1=e=>{const t=o.inject("editorId"),n=o.inject("theme"),u=o.inject("rootRef"),{editorExtensions:i,editorExtensionsAttrs:r}=ct;let a=i.echarts.instance;const s=o.shallowRef(-1),c=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};o.watch(()=>n.value,()=>{c()}),o.onMounted(()=>{var v;if(e.noEcharts||a)return;const p=i.echarts.js;jt("script",{...(v=r.echarts)==null?void 0:v.js,src:p,id:$t.echarts,onload(){a=window.echarts,c()}},"echarts")});let d=[],f=[],l=[];const m=(p=!1)=>{if(!d.length){p&&(f.forEach(y=>{var h;(h=y.dispose)==null||h.call(y)}),l.forEach(y=>{var h;(h=y.disconnect)==null||h.call(y)}),f=[],l=[]);return}const v=[],x=[],k=[];d.forEach((y,h)=>{var C,E;const b=f[h],w=l[h];if(p||!y||!y.isConnected||u!=null&&u.value&&!u.value.contains(y)){(C=b==null?void 0:b.dispose)==null||C.call(b),(E=w==null?void 0:w.disconnect)==null||E.call(w);return}v.push(y),b&&x.push(b),w&&k.push(w)}),d=v,f=x,l=k},g=()=>{m(),!e.noEcharts&&a&&Array.from(u.value.querySelectorAll(`#${t} div.${X}-echarts:not([data-processed])`)).forEach(p=>{if(p.dataset.closed==="false")return!1;try{const v=new Function(`return ${p.innerText}`)(),x=a.init(p,n.value);x.setOption(v),p.setAttribute("data-processed",""),d.push(p),f.push(x);const k=new ResizeObserver(()=>{x.resize()});k.observe(p),l.push(k)}catch(v){it.emit(t,Ci,{name:"echarts",message:v==null?void 0:v.message,error:v})}})};return o.onBeforeUnmount(()=>{m(!0)}),{reRenderEcharts:s,replaceEcharts:g}},_1=e=>{const t=o.inject("highlight"),n=o.shallowRef(ct.editorExtensions.highlight.instance);return o.onMounted(()=>{e.noHighlight||n.value||(jt("link",{...t.value.css,rel:"stylesheet",id:$t.hlcss}),jt("script",{...t.value.js,id:$t.hljs,onload(){n.value=window.hljs}},"hljs"))}),o.watch(()=>t.value.css,()=>{e.noHighlight||ct.editorExtensions.highlight.instance||e1("link",{...t.value.css,rel:"stylesheet",id:$t.hlcss})}),n},S1=e=>{const t=o.shallowRef(ct.editorExtensions.katex.instance);return o.onMounted(()=>{var i,r;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:u}=ct;jt("script",{...(i=u.katex)==null?void 0:i.js,src:n.katex.js,id:$t.katexjs,onload(){t.value=window.katex}},"katex"),jt("link",{...(r=u.katex)==null?void 0:r.css,rel:"stylesheet",href:n.katex.css,id:$t.katexcss})}),t},du=new p1({max:1e3,ttl:6e5}),F1=e=>{const t=o.inject("editorId"),n=o.inject("theme"),u=o.inject("rootRef"),{editorExtensions:i,editorExtensionsAttrs:r,mermaidConfig:a}=ct;let s=i.mermaid.instance;const c=o.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)),c.value=c.value+1}};return o.watch(()=>n.value,()=>{du.clear(),d()}),o.onMounted(()=>{var l,m;if(e.noMermaid||s)return;const f=i.mermaid.js;/\.mjs/.test(f)?(jt("link",{...(l=r.mermaid)==null?void 0:l.js,rel:"modulepreload",href:f,id:$t.mermaidM}),import(f).then(g=>{s=g.default,d()}).catch(g=>{it.emit(t,Ci,{name:"mermaid",message:`Failed to load mermaid module: ${g.message}`,error:g})})):jt("script",{...(m=r.mermaid)==null?void 0:m.js,src:f,id:$t.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:c,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=u.value.querySelectorAll(`div.${X}-mermaid`),l=document.createElement("div"),m=document.body.offsetWidth>1366?document.body.offsetWidth:1366,g=document.body.offsetHeight>768?document.body.offsetHeight:768;l.style.width=m+"px",l.style.height=g+"px",l.style.position="fixed",l.style.zIndex="-10000",l.style.top="-10000";let p=f.length;p>0&&document.body.appendChild(l),await Promise.allSettled(Array.from(f).map(v=>(async x=>{var h;if(x.dataset.closed==="false")return!1;const k=x.innerText;let y=du.get(k);if(!y){const b=wi();let w={svg:""};try{w=await s.render(b,k,l),y=await e.sanitizeMermaid(w.svg);const C=document.createElement("p");C.className=`${X}-mermaid`,C.setAttribute("data-processed",""),C.setAttribute("data-content",k),C.innerHTML=y,(h=C.children[0])==null||h.removeAttribute("height"),du.set(k,C.innerHTML),x.dataset.line!==void 0&&(C.dataset.line=x.dataset.line),x.replaceWith(C)}catch(C){it.emit(t,Ci,{name:"mermaid",message:C.message,error:C})}--p===0&&l.remove()}})(v)))}}}},D1=(e,t)=>{t=t||{};const n=3,u=t.marker||"!",i=u.charCodeAt(0),r=u.length;let a="",s="";const c=(f,l,m,g,p)=>{const v=f[l];return v.type==="admonition_open"?f[l].attrPush(["class",`${X}-admonition ${X}-admonition-${v.info}`]):v.type==="admonition_title_open"&&f[l].attrPush(["class",`${X}-admonition-title`]),p.renderToken(f,l,m)},d=f=>{const l=f.trim().split(" ",2);s="",a=l[0],l.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,l,m,g)=>{let p,v,x,k=!1,y=f.bMarks[l]+f.tShift[l],h=f.eMarks[l];if(i!==f.src.charCodeAt(y))return!1;for(p=y+1;p<=h&&u[(p-y)%r]===f.src[p];p++);const b=Math.floor((p-y)/r);if(b!==n)return!1;p-=(p-y)%r;const w=f.src.slice(y,p),C=f.src.slice(p,h);if(d(C),g)return!0;for(v=l;v++,!(v>=m||(y=f.bMarks[v]+f.tShift[v],h=f.eMarks[v],y<h&&f.sCount[v]<f.blkIndent));)if(i===f.src.charCodeAt(y)&&!(f.sCount[v]-f.blkIndent>=4)){for(p=y+1;p<=h&&u[(p-y)%r]===f.src[p];p++);if(!(Math.floor((p-y)/r)<b)&&(p-=(p-y)%r,p=f.skipSpaces(p),!(p<h))){k=!0;break}}const E=f.parentType,_=f.lineMax;return f.parentType="root",f.lineMax=v,x=f.push("admonition_open","div",1),x.markup=w,x.block=!0,x.info=a,x.map=[l,v],s&&(x=f.push("admonition_title_open","p",1),x.markup=w+" "+a,x.map=[l,v],x=f.push("inline","",0),x.content=s,x.map=[l,f.line-1],x.children=[],x=f.push("admonition_title_close","p",-1),x.markup=w+" "+a),f.md.block.tokenize(f,l+1,v),x=f.push("admonition_close","div",-1),x.markup=f.src.slice(y,p),x.block=!0,f.parentType=E,f.lineMax=_,f.line=v+(k?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=c,e.renderer.rules.admonition_title_open=c,e.renderer.rules.admonition_title_close=c,e.renderer.rules.admonition_close=c},Si=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(u=>{const i=e.attrIndex(u[0]);i<0?n.push(u):(n[i]=n[i].slice(),n[i][1]+=` ${u[1]}`)}),n},T1=(e,t)=>{const n=e.renderer.rules.fence,u=e.utils.unescapeAll,i=/\[(\w*)(?::([\w ]*))?\]/,r=/::(open|close)/,a=l=>l.info?u(l.info).trim():"",s=l=>{const m=a(l),[g=null,p=""]=(i.exec(m)||[]).slice(1);return[g,p]},c=l=>{const m=a(l);return m?m.split(/(\s+)/g)[0]:""},d=l=>{const m=l.info.match(r)||[],g=m[1]==="open"||m[1]!=="close"&&t.codeFoldable&&l.content.trim().split(`
36
+ `).length<t.autoFoldThreshold,p=m[1]||t.codeFoldable?"details":"div",v=m[1]||t.codeFoldable?"summary":"div";return{open:g,tagContainer:p,tagHeader:v}},f=(l,m,g,p,v)=>{var R;if(l[m].hidden)return"";const x=(R=t.usedLanguageTextRef.value)==null?void 0:R.copyCode.text,k=t.customIconRef.value.copy||x,y=!!t.customIconRef.value.copy,h=`<span class="${X}-collapse-tips">${St("collapse-tips",t.customIconRef.value)}</span>`,[b]=s(l[m]);if(b===null){const{open:O,tagContainer:U,tagHeader:re}=d(l[m]),te=[["class",`${X}-code`]];O&&te.push(["open",""]);const P={attrs:Si(l[m],te)};l[m].info=l[m].info.replace(r,"");const V=n(l,m,g,p,v);return`
37
+ <${U} ${v.renderAttrs(P)}>
38
+ <${re} class="${X}-code-head">
39
+ <div class="${X}-code-flag"><span></span><span></span><span></span></div>
40
+ <div class="${X}-code-action">
41
+ <span class="${X}-code-lang">${e.utils.escapeHtml(l[m].info.trim())}</span>
42
+ <span class="${X}-copy-button" data-tips="${x}"${y?" data-is-icon=true":""}>${k}</span>
43
+ ${t.extraTools instanceof Function?t.extraTools({lang:l[m].info.trim()}):t.extraTools||""}
44
+ ${U==="details"?h:""}
53
45
  </div>
54
46
  </${re}>
55
47
  ${V}
56
- </${G}>
57
- `}let k,F,_,E,$="",R="",O="";const{open:P,tagContainer:S,tagHeader:z}=d(l[p]),j=[["class",`${U}-code`]];P&&j.push(["open",""]);const T={attrs:Ao(l[p],j)};for(let M=p;M<l.length&&(k=l[M],[F,_]=s(k),F===A);M++){k.info=k.info.replace(o,"").replace(u,""),k.hidden=!0;const G=`${U}-codetab-${t.editorId}-${p}-${M-p}`;E=M-p>0?"":"checked",$+=`
48
+ </${U}>
49
+ `}let w,C,E,_,z="",M="",I="";const{open:B,tagContainer:D,tagHeader:H}=d(l[m]),$=[["class",`${X}-code`]];B&&$.push(["open",""]);const F={attrs:Si(l[m],$)};for(let O=m;O<l.length&&(w=l[O],[C,E]=s(w),C===b);O++){w.info=w.info.replace(i,"").replace(r,""),w.hidden=!0;const U=`${X}-codetab-${t.editorId}-${m}-${O-m}`;_=O-m>0?"":"checked",z+=`
58
50
  <li>
59
51
  <input
60
52
  type="radio"
61
- id="label-${U}-codetab-label-1-${t.editorId}-${p}-${M-p}"
62
- name="${U}-codetab-label-${t.editorId}-${p}"
63
- class="${G}"
64
- ${E}
53
+ id="label-${X}-codetab-label-1-${t.editorId}-${m}-${O-m}"
54
+ name="${X}-codetab-label-${t.editorId}-${m}"
55
+ class="${U}"
56
+ ${_}
65
57
  >
66
58
  <label
67
- for="label-${U}-codetab-label-1-${t.editorId}-${p}-${M-p}"
68
- onclick="this.getRootNode().querySelectorAll('.${G}').forEach(e => e.click())"
59
+ for="label-${X}-codetab-label-1-${t.editorId}-${m}-${O-m}"
60
+ onclick="this.getRootNode().querySelectorAll('.${U}').forEach(e => e.click())"
69
61
  >
70
- ${e.utils.escapeHtml(_||c(k))}
62
+ ${e.utils.escapeHtml(E||c(w))}
71
63
  </label>
72
- </li>`,R+=`
64
+ </li>`,M+=`
73
65
  <div role="tabpanel">
74
66
  <input
75
67
  type="radio"
76
- name="${U}-codetab-pre-${t.editorId}-${p}"
77
- class="${G}"
78
- ${E}
68
+ name="${X}-codetab-pre-${t.editorId}-${m}"
69
+ class="${U}"
70
+ ${_}
79
71
  role="presentation">
80
- ${n(l,M,m,h,x)}
81
- </div>`,O+=`
72
+ ${n(l,O,g,p,v)}
73
+ </div>`,I+=`
82
74
  <input
83
75
  type="radio"
84
- name="${U}-codetab-lang-${t.editorId}-${p}"
85
- class="${G}"
86
- ${E}
76
+ name="${X}-codetab-lang-${t.editorId}-${m}"
77
+ class="${U}"
78
+ ${_}
87
79
  role="presentation">
88
- <span class=${U}-code-lang role="note">${e.utils.escapeHtml(c(k))}</span>`}return`
89
- <${S} ${x.renderAttrs(T)}>
90
- <${z} class="${U}-code-head">
91
- <div class="${U}-code-flag">
92
- <ul class="${U}-codetab-label" role="tablist">${$}</ul>
80
+ <span class=${X}-code-lang role="note">${e.utils.escapeHtml(c(w))}</span>`}return`
81
+ <${D} ${v.renderAttrs(F)}>
82
+ <${H} class="${X}-code-head">
83
+ <div class="${X}-code-flag">
84
+ <ul class="${X}-codetab-label" role="tablist">${z}</ul>
93
85
  </div>
94
- <div class="${U}-code-action">
95
- <span class="${U}-codetab-lang">${O}</span>
96
- <span class="${U}-copy-button" data-tips="${y}"${g?" data-is-icon=true":""}>${v}</span>
97
- ${t.extraTools instanceof Function?t.extraTools({lang:l[p].info.trim()}):t.extraTools||""}
98
- ${S==="details"?b:""}
86
+ <div class="${X}-code-action">
87
+ <span class="${X}-codetab-lang">${I}</span>
88
+ <span class="${X}-copy-button" data-tips="${x}"${y?" data-is-icon=true":""}>${k}</span>
89
+ ${t.extraTools instanceof Function?t.extraTools({lang:l[m].info.trim()}):t.extraTools||""}
90
+ ${D==="details"?h:""}
99
91
  </div>
100
- </${z}>
101
- ${R}
102
- </${S}>
103
- `};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},t2=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,a,s)=>{var f,l;const c=r[o],d=c.content.trim();if(c.info==="echarts"){if(c.attrSet("class",`${U}-echarts`),c.attrSet("data-echarts-theme",t.themeRef.value),c.map&&c.level===0){const p=c.map[1]-1,m=!!((l=(f=a.srcLines[p])==null?void 0:f.trim())!=null&&l.startsWith("```"));c.attrSet("data-closed",`${m}`),c.attrSet("data-line",String(c.map[0]))}return`<div ${s.renderAttrs(c)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,a,s)}},n2=(e,t)=>{e.renderer.rules.heading_open=(n,r)=>{var s;const o=n[r],u=((s=n[r+1].children)==null?void 0:s.reduce((c,d)=>c+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=o.markup.length;return t.headsRef.value.push({text:u,level:a,line:o.map[0],currentToken:o,nextToken:n[r+1]}),o.map&&o.level===0&&o.attrSet("id",t.mdHeadingId({text:u,level:a,index:t.headsRef.value.length,currentToken:o,nextToken:n[r+1]})),e.renderer.renderToken(n,r,t)},e.renderer.rules.heading_close=(n,r,o,u,a)=>a.renderToken(n,r,o)},ds={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},u2=e=>(t,n)=>{const r=e.delimiters;for(const o of r){if(!t.src.startsWith(o.open,t.pos))continue;const u=t.pos+o.open.length;let a=u;for(;(a=t.src.indexOf(o.close,a))!==-1;){let s=0,c=a-1;for(;c>=0&&t.src[c]==="\\";)s++,c--;if(s%2===0)break;a+=o.close.length}if(a!==-1){if(a-u===0)return n||(t.pending+=o.open+o.close),t.pos=a+o.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=o.open,s.content=t.src.slice(u,a)}return t.pos=a+o.close.length,!0}}return!1},r2=e=>(t,n,r,o)=>{const u=e.delimiters,a=t.bMarks[n]+t.tShift[n],s=t.eMarks[n],c=(d,f,l)=>{t.line=f;const p=t.push("math_block","math",0);return p.block=!0,p.content=d,p.map=[n,t.line],p.markup=l,!0};for(const d of u){const f=a;if(t.src.slice(f,f+d.open.length)!==d.open)continue;const l=f+d.open.length,p=t.src.slice(l,s).trim(),m=p==="",h=p===d.close,x=p.endsWith(d.close);if(!m&&!h&&!x)continue;if(o)return!0;if(h)return c("",n+1,d.open);if(!m&&x){const A=p.slice(0,-d.close.length);return c(A,n+1,d.open)}let y=n+1,v=!1,g="";for(;y<r;y++){const A=t.bMarks[y]+t.tShift[y],k=t.eMarks[y];if(A<k&&t.tShift[y]<t.blkIndent)break;if(t.src.slice(A,k).trim().endsWith(d.close)){const F=t.src.slice(0,k).lastIndexOf(d.close);g=t.src.slice(A,F),v=!0;break}}if(!v)continue;const b=t.getLines(n+1,y,t.tShift[n],!0)+(g.trim()?g:"");return c(b,y+1,d.open)}return!1},o2=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:r})=>{const o=(s,c,d,f,l=!1)=>{const p={attrs:Ao(s,[["class",c]])},m=f.renderAttrs(p);if(!t.value)return`<${d} ${m}>${s.content}</${d}>`;const h=t.value.renderToString(s.content,ot.katexConfig({throwOnError:!1,displayMode:l}));return`<${d} ${m} data-processed>${h}</${d}>`},u=(s,c,d,f,l)=>o(s[c],`${U}-katex-inline`,"span",l),a=(s,c,d,f,l)=>o(s[c],`${U}-katex-block`,"p",l,!0);e.inline.ruler.before("escape","math_inline",u2({delimiters:n||ds.inline})),e.block.ruler.after("blockquote","math_block",r2({delimiters:r||ds.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=u,e.renderer.rules.math_block=a},i2=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,a,s)=>{var f,l;const c=r[o],d=c.content.trim();if(c.info==="mermaid"){if(c.attrSet("class",`${U}-mermaid`),c.attrSet("data-mermaid-theme",t.themeRef.value),c.map&&c.level===0){const m=c.map[1]-1,h=!!((l=(f=a.srcLines[m])==null?void 0:f.trim())!=null&&l.startsWith("```"));c.attrSet("data-closed",`${h}`),c.attrSet("data-line",String(c.map[0]))}const p=ir.get(d);return p?(c.attrSet("data-processed",""),c.attrSet("data-content",d),`<p ${s.renderAttrs(c)}>${p}</p>`):`<div ${s.renderAttrs(c)}>${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,a,s)}},fs=(e,t,n)=>{const r=e.attrIndex(t),o=[t,n];r<0?e.attrPush(o):(e.attrs=e.attrs||[],e.attrs[r]=o)},a2=e=>e.type==="inline",s2=e=>e.type==="paragraph_open",c2=e=>e.type==="list_item_open",l2=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,d2=(e,t)=>a2(e[t])&&s2(e[t-1])&&c2(e[t-2])&&l2(e[t]),f2=(e,t)=>{const n=e[t].level-1;for(let r=t-1;r>=0;r--)if(e[r].level===n)return r;return-1},h2=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},p2=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},m2=(e,t,n)=>{const r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",r.attrs=[["for",t]],r},g2=(e,t,n)=>{const r=new t("html_inline","",0),o=n.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?r.content='<input class="task-list-item-checkbox"'+o+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(r.content='<input class="task-list-item-checkbox" checked=""'+o+'type="checkbox">'),r},b2=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(g2(e,t,n)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n.label)if(n.labelAfter){e.children.pop();const r="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+r+'">',e.children.push(m2(e.content,r,t))}else e.children.unshift(h2(t)),e.children.push(p2(t))},y2=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const r=n.tokens;for(let o=2;o<r.length;o++)d2(r,o)&&(b2(r[o],n.Token,t),fs(r[o-2],"class","task-list-item"+(t.enabled?" enabled":" ")),fs(r[f2(r,o-2)],"class","contains-task-list"))})},x2=e=>{e.core.ruler.push("init-line-number",t=>(t.tokens.forEach(n=>{n.map&&(n.attrs||(n.attrs=[]),n.attrs.push(["data-line",n.map[0].toString()]))}),!0))},A2=(e,t)=>{const{editorConfig:n,markdownItPlugins:r}=ot,o=i.inject("editorId"),u=i.inject("language"),a=i.inject("usedLanguageText"),s=i.inject("showCodeRowNumber"),c=i.inject("theme"),d=i.inject("customIcon"),f=i.inject("rootRef"),l=i.inject("setting"),p=i.ref([]),m=Yh(e),h=Qh(e),{reRenderRef:x,replaceMermaid:y}=Kh(e),{reRenderEcharts:v,replaceEcharts:g}=Zh(e),b=qe({html:!0,breaks:!0,linkify:!0}),A=[{type:"image",plugin:Dh,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:Jh,options:{}},{type:"taskList",plugin:y2,options:{}},{type:"heading",plugin:n2,options:{mdHeadingId:e.mdHeadingId,headsRef:p}},{type:"code",plugin:e2,options:{editorId:o,usedLanguageTextRef:a,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:Lh,options:{}},{type:"sup",plugin:Rh,options:{}}];e.noKatex||A.push({type:"katex",plugin:o2,options:{katexRef:h}}),e.noMermaid||A.push({type:"mermaid",plugin:i2,options:{themeRef:c}}),e.noEcharts||A.push({type:"echarts",plugin:t2,options:{themeRef:c}}),r(A,{editorId:o}).forEach(j=>{b.use(j.plugin,j.options)});const k=b.options.highlight;b.set({highlight:(j,T,q)=>{if(k){const re=k(j,T,q);if(re)return re}let M;!e.noHighlight&&m.value?m.value.getLanguage(T)?M=m.value.highlight(j,{language:T,ignoreIllegals:!0}).value:M=m.value.highlightAuto(j).value:M=b.utils.escapeHtml(j);const G=s?vh(M.replace(/^\n+|\n+$/g,""),j.replace(/^\n+|\n+$/g,"")):`<span class="${U}-code-block">${M.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${T}" language=${T}>${G}</code></pre>`}}),x2(b);const F=i.ref(`_article-key_${ho()}`),_=i.ref(e.sanitize(b.render(e.modelValue,{srcLines:e.modelValue.split(`
104
- `)})));let E=()=>{},$=()=>{};const R=()=>{var T;const j=(T=f.value)==null?void 0:T.querySelectorAll(`#${o} p.${U}-mermaid:not([data-closed=false])`);$(),$=_h(j,{customIcon:d.value}),E(),E=Fh(j,{customIcon:d.value})},O=()=>{nt.emit(o,yh,_.value),e.onHtmlChanged(_.value),e.onGetCatalog(p.value),nt.emit(o,yo,p.value),i.nextTick(()=>{y().then(R),g()})},P=()=>{p.value=[],_.value=e.sanitize(b.render(e.modelValue,{srcLines:e.modelValue.split(`
105
- `)}))},S=i.computed(()=>(e.noKatex||!!h.value)&&(e.noHighlight||!!m.value));let z=-1;return i.watch([i.toRef(e,"modelValue"),S,x,u],()=>{z=window.setTimeout(()=>{P()},t?0:n.renderDelay)}),i.watch(()=>l.value.preview,()=>{l.value.preview&&i.nextTick(()=>{y().then(R),g(),nt.emit(o,yo,p.value)})}),i.watch([_,v],()=>{O()}),i.onMounted(O),i.onMounted(()=>{nt.on(o,{name:xh,callback(){nt.emit(o,yo,p.value)}}),nt.on(o,{name:es,callback:()=>{F.value=`_article-key_${ho()}`,P()}})}),i.onBeforeUnmount(()=>{E(),$(),clearTimeout(z)}),{html:_,key:F}},w2=(e,t)=>{const n=i.inject("editorId"),r=i.inject("setting"),{noImgZoomIn:o}=e,u=sh(()=>{const a=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);a.length!==0&&$h(a,{background:"#00000073"})});i.onMounted(async()=>{!o&&r.value.preview&&await u()}),i.watch([t,()=>r.value.preview],async()=>{!o&&r.value.preview&&await u()})},hs={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},v2=(e,t)=>{const n=i.inject("editorId"),r=i.inject("rootRef");let o=()=>{};const u=()=>{if(!r.value)return!1;const a=r.value.querySelectorAll(".task-list-item.enabled"),s=c=>{var h;c.preventDefault();const d=c.target.checked?"unChecked":"checked",f=(h=c.target.parentElement)==null?void 0:h.dataset.line;if(!f)return;const l=Number(f),p=e.modelValue.split(`
106
- `),m=p[Number(l)].replace(hs[d].regexp,hs[d].value);e.previewOnly?(p[Number(l)]=m,e.onChange(p.join(`
107
- `))):nt.emit(n,Ah,l+1,m)};a.forEach(c=>{c.addEventListener("click",s)}),o=()=>{a.forEach(c=>{c.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{o()}),i.watch([t],()=>{o(),i.nextTick(u)},{immediate:!0})},k2=(e,t,n)=>{const r=i.inject("setting"),o=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},u=a=>{a&&o()};i.watch([t,n],o),i.watch(()=>r.value.preview,u),i.watch(()=>r.value.htmlPreview,u),i.onMounted(o)},ps={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}};({...ps});const ms=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},C2=(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,E2=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=(o,u)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),c=Math.min(o.length,u.length);let d=-1;for(let l=0;l<c;l++)if(!C2(o[l],u[l])){d=l;break}if(d===-1)if(u.length>o.length)d=o.length;else if(o.length>u.length)d=u.length;else return;const f=Math.min(d,s.length);for(let l=s.length-1;l>=f;l--)s[l].remove();for(let l=d;l<o.length;l++)a.appendChild(o[l].cloneNode(!0))};return i.watch(()=>e.html,(o,u)=>{const a=ms(o),s=ms(u||"");r(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),_2=i.defineComponent({name:"ContentPreview",props:ps,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),r=i.inject("previewTheme"),o=i.inject("showCodeRowNumber"),{html:u,key:a}=A2(e,e.previewOnly);Xh(e,u,a),w2(e,u),v2(e,u),k2(e,u,a);const s=i.computed(()=>[`${U}-preview`,`${r==null?void 0:r.value}-theme`,o&&`${U}-scrn`].filter(Boolean)),c=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:u.value,id:d,class:s.value}):i.createVNode(E2,{key:a.value,html:u.value,id:d,class:s.value},null)};return()=>i.createVNode(i.Fragment,null,[n.value.preview&&(e.previewOnly?c():i.createVNode("div",{id:`${t}-preview-wrapper`,class:`${U}-preview-wrapper`,key:"content-preview-wrapper"},[c()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${U}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${U}-html`},[u.value])])])}}),F2=({text:e})=>e,gs={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:F2},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}};({...gs});const bs=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...bs];const S2=(e,t,n)=>{const{editorId:r}=n,o={rerender(){nt.emit(r,es)}};t.expose(o)},ar=i.defineComponent({name:"MdPreview",props:gs,emits:bs,setup(e,t){const{noKatex:n,noMermaid:r,noHighlight:o}=e,u=i.ref(),a=qh(e);Gh(e,{rootRef:u,editorId:a}),S2(e,t,{editorId:a}),i.onBeforeUnmount(()=>{nt.clear(a)});const s=l=>{var p;(p=e.onChange)==null||p.call(e,l),t.emit("onChange",l),t.emit("update:modelValue",l)},c=l=>{var p;(p=e.onHtmlChanged)==null||p.call(e,l),t.emit("onHtmlChanged",l)},d=l=>{var p;(p=e.onGetCatalog)==null||p.call(e,l),t.emit("onGetCatalog",l)},f=()=>{var l;(l=e.onRemount)==null||l.call(e),t.emit("onRemount")};return()=>i.createVNode("div",{id:a,class:[U,e.class,e.theme==="dark"&&`${U}-dark`,`${U}-previewOnly`],style:e.style,ref:u},[i.createVNode(_2,{modelValue:e.modelValue,onChange:s,onHtmlChanged:c,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:r,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:o,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});ar.install=e=>(e.component(ar.name,ar),e);const D2={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},wo=i.defineComponent({name:"NormalFooterToolbar",props:D2,emits:["onClick"],setup(e,t){return()=>{const n=bh({props:e,ctx:t});return i.createVNode("div",{class:[`${U}-footer-item`,e.disabled&&`${U}-disabled`],onClick:r=>{var o;e.disabled||((o=e.onClick)==null||o.call(e,r),t.emit("onClick",r))}},[n])}}});wo.install=e=>(e.component(wo.name,wo),e);var vo={exports:{}},me={},ko={exports:{}},Qt={},ys;function xs(){if(ys)return Qt;ys=1;function e(){var u={};return u["align-content"]=!1,u["align-items"]=!1,u["align-self"]=!1,u["alignment-adjust"]=!1,u["alignment-baseline"]=!1,u.all=!1,u["anchor-point"]=!1,u.animation=!1,u["animation-delay"]=!1,u["animation-direction"]=!1,u["animation-duration"]=!1,u["animation-fill-mode"]=!1,u["animation-iteration-count"]=!1,u["animation-name"]=!1,u["animation-play-state"]=!1,u["animation-timing-function"]=!1,u.azimuth=!1,u["backface-visibility"]=!1,u.background=!0,u["background-attachment"]=!0,u["background-clip"]=!0,u["background-color"]=!0,u["background-image"]=!0,u["background-origin"]=!0,u["background-position"]=!0,u["background-repeat"]=!0,u["background-size"]=!0,u["baseline-shift"]=!1,u.binding=!1,u.bleed=!1,u["bookmark-label"]=!1,u["bookmark-level"]=!1,u["bookmark-state"]=!1,u.border=!0,u["border-bottom"]=!0,u["border-bottom-color"]=!0,u["border-bottom-left-radius"]=!0,u["border-bottom-right-radius"]=!0,u["border-bottom-style"]=!0,u["border-bottom-width"]=!0,u["border-collapse"]=!0,u["border-color"]=!0,u["border-image"]=!0,u["border-image-outset"]=!0,u["border-image-repeat"]=!0,u["border-image-slice"]=!0,u["border-image-source"]=!0,u["border-image-width"]=!0,u["border-left"]=!0,u["border-left-color"]=!0,u["border-left-style"]=!0,u["border-left-width"]=!0,u["border-radius"]=!0,u["border-right"]=!0,u["border-right-color"]=!0,u["border-right-style"]=!0,u["border-right-width"]=!0,u["border-spacing"]=!0,u["border-style"]=!0,u["border-top"]=!0,u["border-top-color"]=!0,u["border-top-left-radius"]=!0,u["border-top-right-radius"]=!0,u["border-top-style"]=!0,u["border-top-width"]=!0,u["border-width"]=!0,u.bottom=!1,u["box-decoration-break"]=!0,u["box-shadow"]=!0,u["box-sizing"]=!0,u["box-snap"]=!0,u["box-suppress"]=!0,u["break-after"]=!0,u["break-before"]=!0,u["break-inside"]=!0,u["caption-side"]=!1,u.chains=!1,u.clear=!0,u.clip=!1,u["clip-path"]=!1,u["clip-rule"]=!1,u.color=!0,u["color-interpolation-filters"]=!0,u["column-count"]=!1,u["column-fill"]=!1,u["column-gap"]=!1,u["column-rule"]=!1,u["column-rule-color"]=!1,u["column-rule-style"]=!1,u["column-rule-width"]=!1,u["column-span"]=!1,u["column-width"]=!1,u.columns=!1,u.contain=!1,u.content=!1,u["counter-increment"]=!1,u["counter-reset"]=!1,u["counter-set"]=!1,u.crop=!1,u.cue=!1,u["cue-after"]=!1,u["cue-before"]=!1,u.cursor=!1,u.direction=!1,u.display=!0,u["display-inside"]=!0,u["display-list"]=!0,u["display-outside"]=!0,u["dominant-baseline"]=!1,u.elevation=!1,u["empty-cells"]=!1,u.filter=!1,u.flex=!1,u["flex-basis"]=!1,u["flex-direction"]=!1,u["flex-flow"]=!1,u["flex-grow"]=!1,u["flex-shrink"]=!1,u["flex-wrap"]=!1,u.float=!1,u["float-offset"]=!1,u["flood-color"]=!1,u["flood-opacity"]=!1,u["flow-from"]=!1,u["flow-into"]=!1,u.font=!0,u["font-family"]=!0,u["font-feature-settings"]=!0,u["font-kerning"]=!0,u["font-language-override"]=!0,u["font-size"]=!0,u["font-size-adjust"]=!0,u["font-stretch"]=!0,u["font-style"]=!0,u["font-synthesis"]=!0,u["font-variant"]=!0,u["font-variant-alternates"]=!0,u["font-variant-caps"]=!0,u["font-variant-east-asian"]=!0,u["font-variant-ligatures"]=!0,u["font-variant-numeric"]=!0,u["font-variant-position"]=!0,u["font-weight"]=!0,u.grid=!1,u["grid-area"]=!1,u["grid-auto-columns"]=!1,u["grid-auto-flow"]=!1,u["grid-auto-rows"]=!1,u["grid-column"]=!1,u["grid-column-end"]=!1,u["grid-column-start"]=!1,u["grid-row"]=!1,u["grid-row-end"]=!1,u["grid-row-start"]=!1,u["grid-template"]=!1,u["grid-template-areas"]=!1,u["grid-template-columns"]=!1,u["grid-template-rows"]=!1,u["hanging-punctuation"]=!1,u.height=!0,u.hyphens=!1,u.icon=!1,u["image-orientation"]=!1,u["image-resolution"]=!1,u["ime-mode"]=!1,u["initial-letters"]=!1,u["inline-box-align"]=!1,u["justify-content"]=!1,u["justify-items"]=!1,u["justify-self"]=!1,u.left=!1,u["letter-spacing"]=!0,u["lighting-color"]=!0,u["line-box-contain"]=!1,u["line-break"]=!1,u["line-grid"]=!1,u["line-height"]=!1,u["line-snap"]=!1,u["line-stacking"]=!1,u["line-stacking-ruby"]=!1,u["line-stacking-shift"]=!1,u["line-stacking-strategy"]=!1,u["list-style"]=!0,u["list-style-image"]=!0,u["list-style-position"]=!0,u["list-style-type"]=!0,u.margin=!0,u["margin-bottom"]=!0,u["margin-left"]=!0,u["margin-right"]=!0,u["margin-top"]=!0,u["marker-offset"]=!1,u["marker-side"]=!1,u.marks=!1,u.mask=!1,u["mask-box"]=!1,u["mask-box-outset"]=!1,u["mask-box-repeat"]=!1,u["mask-box-slice"]=!1,u["mask-box-source"]=!1,u["mask-box-width"]=!1,u["mask-clip"]=!1,u["mask-image"]=!1,u["mask-origin"]=!1,u["mask-position"]=!1,u["mask-repeat"]=!1,u["mask-size"]=!1,u["mask-source-type"]=!1,u["mask-type"]=!1,u["max-height"]=!0,u["max-lines"]=!1,u["max-width"]=!0,u["min-height"]=!0,u["min-width"]=!0,u["move-to"]=!1,u["nav-down"]=!1,u["nav-index"]=!1,u["nav-left"]=!1,u["nav-right"]=!1,u["nav-up"]=!1,u["object-fit"]=!1,u["object-position"]=!1,u.opacity=!1,u.order=!1,u.orphans=!1,u.outline=!1,u["outline-color"]=!1,u["outline-offset"]=!1,u["outline-style"]=!1,u["outline-width"]=!1,u.overflow=!1,u["overflow-wrap"]=!1,u["overflow-x"]=!1,u["overflow-y"]=!1,u.padding=!0,u["padding-bottom"]=!0,u["padding-left"]=!0,u["padding-right"]=!0,u["padding-top"]=!0,u.page=!1,u["page-break-after"]=!1,u["page-break-before"]=!1,u["page-break-inside"]=!1,u["page-policy"]=!1,u.pause=!1,u["pause-after"]=!1,u["pause-before"]=!1,u.perspective=!1,u["perspective-origin"]=!1,u.pitch=!1,u["pitch-range"]=!1,u["play-during"]=!1,u.position=!1,u["presentation-level"]=!1,u.quotes=!1,u["region-fragment"]=!1,u.resize=!1,u.rest=!1,u["rest-after"]=!1,u["rest-before"]=!1,u.richness=!1,u.right=!1,u.rotation=!1,u["rotation-point"]=!1,u["ruby-align"]=!1,u["ruby-merge"]=!1,u["ruby-position"]=!1,u["shape-image-threshold"]=!1,u["shape-outside"]=!1,u["shape-margin"]=!1,u.size=!1,u.speak=!1,u["speak-as"]=!1,u["speak-header"]=!1,u["speak-numeral"]=!1,u["speak-punctuation"]=!1,u["speech-rate"]=!1,u.stress=!1,u["string-set"]=!1,u["tab-size"]=!1,u["table-layout"]=!1,u["text-align"]=!0,u["text-align-last"]=!0,u["text-combine-upright"]=!0,u["text-decoration"]=!0,u["text-decoration-color"]=!0,u["text-decoration-line"]=!0,u["text-decoration-skip"]=!0,u["text-decoration-style"]=!0,u["text-emphasis"]=!0,u["text-emphasis-color"]=!0,u["text-emphasis-position"]=!0,u["text-emphasis-style"]=!0,u["text-height"]=!0,u["text-indent"]=!0,u["text-justify"]=!0,u["text-orientation"]=!0,u["text-overflow"]=!0,u["text-shadow"]=!0,u["text-space-collapse"]=!0,u["text-transform"]=!0,u["text-underline-position"]=!0,u["text-wrap"]=!0,u.top=!1,u.transform=!1,u["transform-origin"]=!1,u["transform-style"]=!1,u.transition=!1,u["transition-delay"]=!1,u["transition-duration"]=!1,u["transition-property"]=!1,u["transition-timing-function"]=!1,u["unicode-bidi"]=!1,u["vertical-align"]=!1,u.visibility=!1,u["voice-balance"]=!1,u["voice-duration"]=!1,u["voice-family"]=!1,u["voice-pitch"]=!1,u["voice-range"]=!1,u["voice-rate"]=!1,u["voice-stress"]=!1,u["voice-volume"]=!1,u.volume=!1,u["white-space"]=!1,u.widows=!1,u.width=!0,u["will-change"]=!1,u["word-break"]=!0,u["word-spacing"]=!0,u["word-wrap"]=!0,u["wrap-flow"]=!1,u["wrap-through"]=!1,u["writing-mode"]=!1,u["z-index"]=!1,u}function t(u,a,s){}function n(u,a,s){}var r=/javascript\s*\:/img;function o(u,a){return r.test(a)?"":a}return Qt.whiteList=e(),Qt.getDefaultWhiteList=e,Qt.onAttr=t,Qt.onIgnoreAttr=n,Qt.safeAttrValue=o,Qt}var As,ws;function vs(){return ws||(ws=1,As={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,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;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,"")}}),As}var Co,ks;function T2(){if(ks)return Co;ks=1;var e=vs();function t(n,r){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var o=n.length,u=!1,a=0,s=0,c="";function d(){if(!u){var p=e.trim(n.slice(a,s)),m=p.indexOf(":");if(m!==-1){var h=e.trim(p.slice(0,m)),x=e.trim(p.slice(m+1));if(h){var y=r(a,c.length,h,x,p);y&&(c+=y+"; ")}}}a=s+1}for(;s<o;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var l=n.indexOf("*/",s+2);if(l===-1)break;s=l+1,a=s+1,u=!1}else f==="("?u=!0:f===")"?u=!1:f===";"?u||d():f===`
108
- `&&d()}return e.trim(c)}return Co=t,Co}var Eo,Cs;function N2(){if(Cs)return Eo;Cs=1;var e=xs(),t=T2();vs();function n(u){return u==null}function r(u){var a={};for(var s in u)a[s]=u[s];return a}function o(u){u=r(u||{}),u.whiteList=u.whiteList||e.whiteList,u.onAttr=u.onAttr||e.onAttr,u.onIgnoreAttr=u.onIgnoreAttr||e.onIgnoreAttr,u.safeAttrValue=u.safeAttrValue||e.safeAttrValue,this.options=u}return o.prototype.process=function(u){if(u=u||"",u=u.toString(),!u)return"";var a=this,s=a.options,c=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,l=s.safeAttrValue,p=t(u,function(m,h,x,y,v){var g=c[x],b=!1;if(g===!0?b=g:typeof g=="function"?b=g(y):g instanceof RegExp&&(b=g.test(y)),b!==!0&&(b=!1),y=l(x,y),!!y){var A={position:h,sourcePosition:m,source:v,isWhite:b};if(b){var k=d(x,y,A);return n(k)?x+":"+y:k}else{var k=f(x,y,A);if(!n(k))return k}}});return p},Eo=o,Eo}var Es;function _o(){return Es||(Es=1,function(e,t){var n=xs(),r=N2();function o(a,s){var c=new r(s);return c.process(a)}t=e.exports=o,t.FilterCSS=r;for(var u in n)t[u]=n[u];typeof window<"u"&&(window.filterCSS=e.exports)}(ko,ko.exports)),ko.exports}var _s,Fs;function Fo(){return Fs||(Fs=1,_s={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,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;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}}),_s}var Ss;function Ds(){if(Ss)return me;Ss=1;var e=_o().FilterCSS,t=_o().getDefaultWhiteList,n=Fo();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 o=new e;function u(T,q,M){}function a(T,q,M){}function s(T,q,M){}function c(T,q,M){}function d(T){return T.replace(l,"&lt;").replace(p,"&gt;")}function f(T,q,M,G){if(M=R(M),q==="href"||q==="src"){if(M=n.trim(M),M==="#")return"#";if(!(M.substr(0,7)==="http://"||M.substr(0,8)==="https://"||M.substr(0,7)==="mailto:"||M.substr(0,4)==="tel:"||M.substr(0,11)==="data:image/"||M.substr(0,6)==="ftp://"||M.substr(0,2)==="./"||M.substr(0,3)==="../"||M[0]==="#"||M[0]==="/"))return""}else if(q==="background"){if(g.lastIndex=0,g.test(M))return""}else if(q==="style"){if(b.lastIndex=0,b.test(M)||(A.lastIndex=0,A.test(M)&&(g.lastIndex=0,g.test(M))))return"";G!==!1&&(G=G||o,M=G.process(M))}return M=O(M),M}var l=/</g,p=/>/g,m=/"/g,h=/&quot;/g,x=/&#([a-zA-Z0-9]*);?/gim,y=/&colon;?/gim,v=/&newline;?/gim,g=/((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,b=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,A=/u\s*r\s*l\s*\(.*/gi;function k(T){return T.replace(m,"&quot;")}function F(T){return T.replace(h,'"')}function _(T){return T.replace(x,function(q,M){return M[0]==="x"||M[0]==="X"?String.fromCharCode(parseInt(M.substr(1),16)):String.fromCharCode(parseInt(M,10))})}function E(T){return T.replace(y,":").replace(v," ")}function $(T){for(var q="",M=0,G=T.length;M<G;M++)q+=T.charCodeAt(M)<32?" ":T.charAt(M);return n.trim(q)}function R(T){return T=F(T),T=_(T),T=E(T),T=$(T),T}function O(T){return T=k(T),T=d(T),T}function P(){return""}function S(T,q){typeof q!="function"&&(q=function(){});var M=!Array.isArray(T);function G(I){return M?!0:n.indexOf(T,I)!==-1}var re=[],ne=!1;return{onIgnoreTag:function(I,V,D){if(G(I))if(D.isClosing){var L="[/removed]",W=D.position+L.length;return re.push([ne!==!1?ne:D.position,W]),ne=!1,L}else return ne||(ne=D.position),"[removed]";else return q(I,V,D)},remove:function(I){var V="",D=0;return n.forEach(re,function(L){V+=I.slice(D,L[0]),D=L[1]}),V+=I.slice(D),V}}}function z(T){for(var q="",M=0;M<T.length;){var G=T.indexOf("<!--",M);if(G===-1){q+=T.slice(M);break}q+=T.slice(M,G);var re=T.indexOf("-->",G);if(re===-1)break;M=re+3}return q}function j(T){var q=T.split("");return q=q.filter(function(M){var G=M.charCodeAt(0);return G===127?!1:G<=31?G===10||G===13:!0}),q.join("")}return me.whiteList=r(),me.getDefaultWhiteList=r,me.onTag=u,me.onIgnoreTag=a,me.onTagAttr=s,me.onIgnoreTagAttr=c,me.safeAttrValue=f,me.escapeHtml=d,me.escapeQuote=k,me.unescapeQuote=F,me.escapeHtmlEntities=_,me.escapeDangerHtml5Entities=E,me.clearNonPrintableCharacter=$,me.friendlyAttrValue=R,me.escapeAttrValue=O,me.onIgnoreTagStripAll=P,me.StripTagBody=S,me.stripCommentTag=z,me.stripBlankChar=j,me.attributeWrapSign='"',me.cssFilter=o,me.getDefaultCSSWhiteList=t,me}var sr={},Ts;function Ns(){if(Ts)return sr;Ts=1;var e=Fo();function t(l){var p=e.spaceIndex(l),m;return p===-1?m=l.slice(1,-1):m=l.slice(1,p+1),m=e.trim(m).toLowerCase(),m.slice(0,1)==="/"&&(m=m.slice(1)),m.slice(-1)==="/"&&(m=m.slice(0,-1)),m}function n(l){return l.slice(0,2)==="</"}function r(l,p,m){var h="",x=0,y=!1,v=!1,g=0,b=l.length,A="",k="";e:for(g=0;g<b;g++){var F=l.charAt(g);if(y===!1){if(F==="<"){y=g;continue}}else if(v===!1){if(F==="<"){h+=m(l.slice(x,g)),y=g,x=g;continue}if(F===">"||g===b-1){h+=m(l.slice(x,y)),k=l.slice(y,g+1),A=t(k),h+=p(y,h.length,A,k,n(k)),x=g+1,y=!1;continue}if(F==='"'||F==="'")for(var _=1,E=l.charAt(g-_);E.trim()===""||E==="=";){if(E==="="){v=F;continue e}E=l.charAt(g-++_)}}else if(F===v){v=!1;continue}}return x<b&&(h+=m(l.substr(x))),h}var o=/[^a-zA-Z0-9\\_:.-]/gim;function u(l,p){var m=0,h=0,x=[],y=!1,v=l.length;function g(_,E){if(_=e.trim(_),_=_.replace(o,"").toLowerCase(),!(_.length<1)){var $=p(_,E||"");$&&x.push($)}}for(var b=0;b<v;b++){var A=l.charAt(b),k,F;if(y===!1&&A==="="){y=l.slice(m,b),m=b+1,h=l.charAt(m)==='"'||l.charAt(m)==="'"?m:s(l,b+1);continue}if(y!==!1&&b===h){if(F=l.indexOf(A,b+1),F===-1)break;k=e.trim(l.slice(h+1,F)),g(y,k),y=!1,b=F,m=b+1;continue}if(/\s|\n|\t/.test(A))if(l=l.replace(/\s|\n|\t/g," "),y===!1)if(F=a(l,b),F===-1){k=e.trim(l.slice(m,b)),g(k),y=!1,m=b+1;continue}else{b=F-1;continue}else if(F=c(l,b-1),F===-1){k=e.trim(l.slice(m,b)),k=f(k),g(y,k),y=!1,m=b+1;continue}else continue}return m<l.length&&(y===!1?g(l.slice(m)):g(y,f(e.trim(l.slice(m))))),e.trim(x.join(" "))}function a(l,p){for(;p<l.length;p++){var m=l[p];if(m!==" ")return m==="="?p:-1}}function s(l,p){for(;p<l.length;p++){var m=l[p];if(m!==" ")return m==="'"||m==='"'?p:-1}}function c(l,p){for(;p>0;p--){var m=l[p];if(m!==" ")return m==="="?p:-1}}function d(l){return l[0]==='"'&&l[l.length-1]==='"'||l[0]==="'"&&l[l.length-1]==="'"}function f(l){return d(l)?l.substr(1,l.length-2):l}return sr.parseTag=r,sr.parseAttr=u,sr}var So,Ls;function L2(){if(Ls)return So;Ls=1;var e=_o().FilterCSS,t=Ds(),n=Ns(),r=n.parseTag,o=n.parseAttr,u=Fo();function a(l){return l==null}function s(l){var p=u.spaceIndex(l);if(p===-1)return{html:"",closing:l[l.length-2]==="/"};l=u.trim(l.slice(p+1,-1));var m=l[l.length-1]==="/";return m&&(l=u.trim(l.slice(0,-1))),{html:l,closing:m}}function c(l){var p={};for(var m in l)p[m]=l[m];return p}function d(l){var p={};for(var m in l)Array.isArray(l[m])?p[m.toLowerCase()]=l[m].map(function(h){return h.toLowerCase()}):p[m.toLowerCase()]=l[m];return p}function f(l){l=c(l||{}),l.stripIgnoreTag&&(l.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),l.onIgnoreTag=t.onIgnoreTagStripAll),l.whiteList||l.allowList?l.whiteList=d(l.whiteList||l.allowList):l.whiteList=t.whiteList,this.attributeWrapSign=l.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,l.onTag=l.onTag||t.onTag,l.onTagAttr=l.onTagAttr||t.onTagAttr,l.onIgnoreTag=l.onIgnoreTag||t.onIgnoreTag,l.onIgnoreTagAttr=l.onIgnoreTagAttr||t.onIgnoreTagAttr,l.safeAttrValue=l.safeAttrValue||t.safeAttrValue,l.escapeHtml=l.escapeHtml||t.escapeHtml,this.options=l,l.css===!1?this.cssFilter=!1:(l.css=l.css||{},this.cssFilter=new e(l.css))}return f.prototype.process=function(l){if(l=l||"",l=l.toString(),!l)return"";var p=this,m=p.options,h=m.whiteList,x=m.onTag,y=m.onIgnoreTag,v=m.onTagAttr,g=m.onIgnoreTagAttr,b=m.safeAttrValue,A=m.escapeHtml,k=p.attributeWrapSign,F=p.cssFilter;m.stripBlankChar&&(l=t.stripBlankChar(l)),m.allowCommentTag||(l=t.stripCommentTag(l));var _=!1;m.stripIgnoreTagBody&&(_=t.StripTagBody(m.stripIgnoreTagBody,y),y=_.onIgnoreTag);var E=r(l,function($,R,O,P,S){var z={sourcePosition:$,position:R,isClosing:S,isWhite:Object.prototype.hasOwnProperty.call(h,O)},j=x(O,P,z);if(!a(j))return j;if(z.isWhite){if(z.isClosing)return"</"+O+">";var T=s(P),q=h[O],M=o(T.html,function(G,re){var ne=u.indexOf(q,G)!==-1,I=v(O,G,re,ne);return a(I)?ne?(re=b(O,G,re,F),re?G+"="+k+re+k:G):(I=g(O,G,re,ne),a(I)?void 0:I):I});return P="<"+O,M&&(P+=" "+M),T.closing&&(P+=" /"),P+=">",P}else return j=y(O,P,z),a(j)?A(P):j},A);return _&&(E=_.remove(E)),E},So=f,So}var Os;function O2(){return Os||(Os=1,function(e,t){var n=Ds(),r=Ns(),o=L2();function u(s,c){var d=new o(c);return d.process(s)}t=e.exports=u,t.filterXSS=u,t.FilterXSS=o,function(){for(var s in n)t[s]=n[s];for(var c in r)t[c]=r[c]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(vo,vo.exports)),vo.exports}O2();const su=i.defineComponent({name:"FMarkdownPreview",props:Qa,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(ar,{modelValue:e.content},null)])}});su.install=e=>{e.component(su.name,su)};const Is={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 Rs=(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))(Rs||{});const Ms={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:Rs.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},cr=i.defineComponent({name:"FPrompt",props:Ms,setup(e){const t=i.computed(()=>!e.id&&e.children&&e.children.length>0),n=i.computed(()=>{var p;let l={"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 l=ye(l,(p=e.classNames)==null?void 0:p.item),ye(l,e.customClass)}),r=i.computed(()=>{let l={"fx-prompt--item":!0};return l[`fx-prompt--${e.showType||"none"}`]=!0,l}),o=i.computed(()=>{var p;const l=ve({},(p=e.styles)==null?void 0:p.item);return ve(l,e.customStyle)}),u=()=>{var l,p;return e.icon?i.createVNode("div",{class:["fx-prompt--item-icon",(l=e.classNames)==null?void 0:l.icon],style:(p=e.styles)==null?void 0:p.icon},[Cu(e.icon)]):null},a=()=>{var l,p;return e.label?i.createVNode("h6",{class:["fx-prompt--item-label",(l=e.classNames)==null?void 0:l.label],style:(p=e.styles)==null?void 0:p.label},[Nn(e.label)]):null};function s(){var p;const l={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(l["badge-default"]=!0),ye(l,(p=e.classNames)==null?void 0:p.badge)}const c=()=>{var l;return e.badge?i.createVNode("span",{class:s(),style:(l=e.styles)==null?void 0:l.badge},[Nn(e.badge)]):null},d=()=>{var l,p;return e.description?i.createVNode("p",{class:["fx-prompt--item-description",(l=e.classNames)==null?void 0:l.description],style:(p=e.styles)==null?void 0:p.description},[Nn(e.description)]):null},f=()=>{var l,p,m,h;return!e.children||e.children.length===0?null:i.createVNode(xn,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(l=e.classNames)==null?void 0:l.subItems,customStyle:(p=e.styles)==null?void 0:p.subItems,styles:{item:((m=e.styles)==null?void 0:m.subItem)??{}},classNames:{item:((h=e.classNames)==null?void 0:h.subItem)??""}},null)};return()=>{var l,p;return i.createVNode("div",{class:n.value,style:o.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:r.value},[u(),c(),i.createVNode("div",{class:["fx-prompt--item-content",(l=e.classNames)==null?void 0:l.itemContent],style:(p=e.styles)==null?void 0:p.itemContent},[a(),d(),f()])])])}}}),xn=i.defineComponent({name:"FXPrompts",props:Is,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=ye(d,e.customClass),d=ye(d,(f=e.classNames)==null?void 0:f.root),d});function r(d=null){var l;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=ye(f,(l=e.classNames)==null?void 0:l.items),f=ye(f,d==null?void 0:d.customClass),f}function o(d=null){var l;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=ve(f,(l=e.styles)==null?void 0:l.items),f=ve(f,d==null?void 0:d.customStyle),f}const u=(d,f)=>{f.disabled||f.children&&f.children.length>0||t.emit("item-click",d,f)},a=d=>{var f,l;return d!=null&&d.title?i.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(l=e.styles)==null?void 0:l.title},[Nn(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:o(d)},[d.items.map((f,l)=>i.createVNode(cr,{key:f.id||`key_${l}`,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:p=>u(p,f)},null))])}function c(){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),c()])}}});xn.install=e=>{e.component(xn.name,xn),e.component(cr.name,cr)};const Ps={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助理"}},cu=i.defineComponent({name:"FXSuggestion",props:Ps,setup(e,t){const n=i.ref(null),r=i.ref(!1),o=i.ref(!1),u=i.ref({top:0,left:0,height:0}),a=i.ref(-1),s=i.ref(""),c=i.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=i.computed(()=>{var v;return(((v=e.items)==null?void 0:v.length)??0)===0}),f=()=>{var $;if(!n.value||d.value)return;if(((($=n.value.textContent)==null?void 0:$.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",x();return}const g=window.getSelection();if(!g||g.rangeCount===0)return;const b=g.getRangeAt(0),A=b.cloneRange();A.selectNodeContents(n.value),A.setEnd(b.endContainer,b.endOffset);const k=A.toString(),F=k.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",F!==-1&&k.substring(F+1).trim()===""&&(n.value.textContent=k.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,r.value=!0,b.selectNodeContents(n.value),b.collapse(!1),g.removeAllRanges(),g.addRange(b)),r.value===!1){o.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const R=document.createRange();R.setStart(n.value,0),R.setEnd(b.endContainer,b.endOffset);const{top:O,right:P}=R.getBoundingClientRect(),S=l();u.value={top:O-S-5,left:P+5,height:S},a.value===-1&&(a.value=0),o.value=!0}else o.value=!1,a.value=-1},l=()=>{const g=e.items.length*38-6;return Math.min(g+28+20,e.height)},p=v=>{var k;if(!n.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const b=((k=n.value.textContent)==null?void 0:k.replace(/\s*$/,""))||"";n.value.textContent=`${b} ${v.label}`;const A=g.getRangeAt(0);A.selectNodeContents(n.value),A.collapse(!1),g.removeAllRanges(),g.addRange(A),x()},m=async v=>{if(!o.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(v.key)&&v.preventDefault(),v.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&&p(e.items[a.value]);break;case"Escape":x();break}await i.nextTick();const g=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",b=document.querySelector(g);b==null||b.scrollIntoView({block:"nearest",behavior:"smooth"})},h=v=>{n.value&&!n.value.contains(v.target)&&x()},x=()=>{r.value=!1,o.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",h)}),i.onUnmounted(()=>{document.removeEventListener("click",h)});const y=v=>{const g=v.iconUrl||"",b=v.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[g?i.createVNode("img",{alt:"suggestion item icon",src:g},null):i.createVNode("i",{class:b},null),i.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[v.label])])};return()=>{var v;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:m,"data-placeholder":c.value},null),o.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${u.value.top}px`,left:`${u.value.left}px`,height:`${u.value.height}px`}},[i.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),i.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(v=e.items)==null?void 0:v.map((g,b)=>i.createVNode("div",{key:b,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":b===a.value}],onClick:()=>p(g),onMouseenter:()=>a.value===b},[y(g)]))])])])}}});cu.install=e=>{e.component(cu.name,cu)};const Vs={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},lu=i.defineComponent({name:"Todo",props:Vs,setup(e){const t=i.ref(!0),n=i.computed(()=>{var o;return(o=e.items)==null?void 0:o.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:o=>o.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-expanddown":"fx-icon fx-icon-arrow-right"},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(Yn,{items:e.items},null)])])])}});lu.install=e=>{e.component(lu.name,lu),e.component(Yn.name,Yn),e.component(Yu.name,Yu)};const Bs={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:()=>({})}},du=i.defineComponent({name:"FXWelcome",props:Bs,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),ye(a,e.customClass)}),r=i.computed(()=>ve({},e.customStyle));function o(){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},[Cu(e.icon)]):null}function u(){var a,s,c,d,f,l;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",(c=e.classNames)==null?void 0:c.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:(l=e.styles)==null?void 0:l.description},[e.description])])}return()=>i.createVNode("div",{class:n.value,style:r.value},[o(),u()])}});du.install=e=>{e.component(du.name,du)};const zs={content:{type:Object,required:!0},onOpen:{type:Function}},I2="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",R2="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",M2="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==",js="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",P2="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",fu=i.defineComponent({name:"FChatAttachmentPreview",props:zs,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return I2;case"xlsx":case"xls":return R2;case"ppt":case"mobi":return M2;case"txt":return js;case"png":case"jpg":case"jpeg":case"gif":return P2;default:return js}}function n(s){return s.icon?s.icon:t(s.type||"")}function r(s){if(s===0)return"0 B";const c=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(c));return parseFloat((s/Math.pow(c,f)).toFixed(2))+" "+d[f]}async function o(s){var c;(c=e.onOpen)==null||c.call(e,s)}async function u(s,c){s.stopPropagation(),s.preventDefault();const d=rn(c);d&&await ku(d,c.name)}function a(s,c){const d=r(s.size||0),f=n(s),l=rn(s);return i.createVNode("div",{key:c,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:()=>o(s),onKeydown:p=>p.key==="Enter"&&o(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])])])]),l?i.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:p=>u(p,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:c,attachments:d}=s;return i.createVNode("div",{class:"f-chat-attachment-preview"},[c&&i.createVNode("div",{class:"f-chat-attachment-preview-message"},[c]),i.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,l)=>a(f,l))])])}}});fu.install=e=>{e.component(fu.name,fu)},mn.install=e=>{e.component(mn.name,mn)},gn.install=e=>{e.component(gn.name,gn)};const Hs={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function V2(e){const t=i.ref(-1),n=i.ref(-1),r=i.ref(0),o=i.ref(0),u=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:u.value?"block":"none",left:`${r.value}px`,cursor:"e-resize"})),c=i.computed(()=>({display:a.value?"block":"none",top:`${o.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const y={display:a.value||u.value?"block":"none"};return o.value>0&&(y.cursor="n-resize"),y});function f(y,v,g,b){const A=e.value;if(A){const{left:k,right:F,width:_}=A.getBoundingClientRect();let E=y.clientX-k;b==="right"&&(E=F-y.clientX),E>v&&(E=v),E<g&&(E=g),b==="right"&&(E=_-E),r.value=E}}function l(y,v,g,b){const A=e.value;if(A){const{top:k,bottom:F,height:_}=A.getBoundingClientRect();let E=y.clientY-k;b==="bottom"&&(E=F-y.clientY),E>v&&(E=v),E<g&&(E=g),b==="bottom"&&(E=_-E),o.value=E}}function p(){const y=e.value;if(y){const{width:v,height:g}=y.getBoundingClientRect();return{width:v,height:g}}return null}function m(){const y=e.value;return y?Array.from(y.querySelectorAll("[data-position]")).reduce((v,g)=>{const b=g.getAttribute("data-position");return v=Object.assign(v,{[b]:g}),v},{}):null}function h(y,v){const g=p(),b=m();if(g&&b){const A=b==null?void 0:b.right,k=b==null?void 0:b.left;if(y==="left"&&k)return A?g.width-A.clientWidth-v:g.width-v;if(y==="right"&&A)return k?g.width-k.clientWidth-v:g.width-v}}function x(y,v){const g=p(),b=m();if(g&&b){const A=b==null?void 0:b.bottom,k=b==null?void 0:b.top;if(y==="top"&&k)return A?g.height-A.clientHeight-v:g.height-v;if(y==="bottom"&&A)return k?g.height-k.clientHeight-v:g.height-v}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:c,resizeOverlayStyle:d,showHorizontalResizeHandle:u,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:o,horizontalResizeHandleOffset:r,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:l,getPanelMaxWidth:h,getPanelMaxHeight:x}}const hu=i.defineComponent({name:"FXSplitter",props:Hs,emits:[],setup(e,t){const n=i.ref(),r=V2(n),{horizontalResizeHandleStyle:o,verticalResizeHandleStyle:u,resizeOverlayStyle:a}=r;i.provide("splitter",{useResizeHandleComposition:r});const s=i.computed(()=>ye({"f-splitter":!0},e==null?void 0:e.customClass)),c=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return ve(d,e==null?void 0:e.customStyle)});return()=>i.createVNode("div",{class:s.value,ref:n,style:c.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:o.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:u.value},null)])}}),B2={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 z2(e,t){const n=i.ref(e.width),r=i.ref(e.height),{horizontalResizeBarPosition:o,horizontalResizeHandleOffset:u,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:c,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:l,getPanelMaxWidth:p,getPanelMaxHeight:m}=t;let h="",x,y,v;const g=()=>e.maxWidth?e.maxWidth:p(h,e.minWidth)||0,b=()=>e.maxHeight?e.maxHeight:m(h,e.minHeight)||0;function A(_){if((h==="left"||h==="right")&&y){const{left:E}=y.getBoundingClientRect(),{width:$}=x.getBoundingClientRect(),R=_.clientX-E;let O=h==="left"?($||0)+(R-o.value):($||0)-(R-o.value);O=e.minWidth>0?Math.max(e.minWidth,O):O;const P=g();P!=null&&P>0&&(O=P>O?O:P),n.value=O}if((h==="top"||h==="bottom")&&y){const{top:E}=y.getBoundingClientRect(),{height:$}=x.getBoundingClientRect(),R=_.clientY-E;let O=h==="top"?($||0)+(R-c.value):($||0)-(R-c.value);O=e.minHeight>0?Math.max(e.minHeight,O):O;const P=b();P!=null&&P>0&&(O=P>O?O:P),r.value=O}u.value=0,d.value=0,o.value=-1,c.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",A),document.body.style.userSelect="",h="",x=null,y=null}function k(_,E,$){if(h=E,x=$,a.value=!0,y=_.composedPath().find(O=>O.className.split(" ")[0]==="f-splitter"),y){const{left:O}=y.getBoundingClientRect();u.value=_.clientX-O,o.value=_.clientX-O;const P=g();v=S=>f(S,P,e.minWidth,h),document.addEventListener("mousemove",v),document.addEventListener("mouseup",A),document.body.style.userSelect="none"}}function F(_,E,$){if(h=E,x=$,s.value=!0,y=_.composedPath().find(O=>O.className.split(" ")[0]==="f-splitter"),y){const{top:O}=y.getBoundingClientRect();d.value=_.clientY-O,c.value=_.clientY-O;const P=b();v=S=>l(S,P,e.minHeight,h),document.addEventListener("mousemove",v),document.addEventListener("mouseup",A),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:r,onClickSplitterHorizontalResizeBar:k,onClickSplitterVerticalResizeBar:F}}const Do=i.defineComponent({name:"FSplitterPane",props:B2,emits:[],setup(e,t){const n=i.ref(),r=i.inject("splitter"),{useResizeHandleComposition:o}=r,u=z2(e,o),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:c,onClickSplitterVerticalResizeBar:d}=u,f=i.ref(e.position),l=i.computed(()=>{const b={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return b["f-splitter-pane-"+f.value]=!0,ye(b,e==null?void 0:e.customClass)}),p=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(b=>["e","n","s","w"].find(A=>A===b)):[]),m=i.computed(()=>{const b={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||p.value.find(A=>A==="e")||p.value.find(A=>A==="w"))&&(b.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||p.value.find(A=>A==="s")||p.value.find(A=>A==="n"))&&(b.height=`${a.value}px`),e.visible||(b.display="none"),ve(b,e==null?void 0:e.customStyle)}),h=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(b){return{e:"left",w:"right",s:"top",n:"bottom"}[b]||b}function y(b,A){A=x(A),["left","right"].find(k=>k===A)&&c(b,A,n.value),["top","bottom"].find(k=>k===A)&&d(b,A,n.value)}function v(){return p.value.length>0?p.value.map(b=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+b,onMousedown:A=>y(A,b)},null)):i.createVNode("span",{class:h.value,onMousedown:b=>y(b,f.value)},null)}function g(){s.value=e.width,a.value=e.height,m.value}return t.expose({reset:g}),()=>i.createVNode("div",{ref:n,class:l.value,style:m.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&v()])}});hu.install=e=>{e.component(hu.name,hu),e.component(Do.name,Do)};const $s={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:""}},pu=i.defineComponent({name:"FXNav",props:$s,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),r=i.ref(e.navData);function o(f){if(r.value&&r.value.length){let l=r.value.find(p=>p[e.idField]===f&&p[e.disableField]!==!0);l||(l=r.value.find(p=>p[e.disableField]!==!0)),l&&n.value!==l.id&&(n.value=l.id,t.emit("nav",l))}}i.watch([()=>e.activeNavId,()=>e.navData],([f,l])=>{r.value=l,o(f)});const u=i.computed(()=>e.visible&&r.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const l=e.navPicking;return l&&typeof l=="function"?l(f):!0}).then(l=>{let p=!0;typeof l=="object"?l.canContinue||(p=!1,l.message&&console.error({message:l.message,position:"top-center"})):p=l,p&&(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 ye(f,e.customClass)}),c=i.computed(()=>ve({},e.customStyle));function d(f){r.value=f,o(n.value)}return t.expose({updateNavData:d}),()=>{var f;return u.value&&i.createVNode("div",{class:s.value,style:c.value},[(f=r.value)==null?void 0:f.map(l=>i.createVNode("div",{class:["farris-nav-item",{active:l[e.idField]===n.value},{disabled:l[e.disableField]}],onClick:()=>a(l)},[i.createVNode("div",{class:"farris-nav-item-link pt-3"},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof l[e.displayField]=="function"?l[e.displayField]():l[e.displayField],l[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[l[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[l[e.valueField]]),l[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});pu.install=e=>{e.component(pu.name,pu)};const Us={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}},Ws={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}},lr=i.defineComponent({name:"FXSearchBoxContainer",props:Ws,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),r=i.ref(""),o=i.computed(()=>{if(!r.value)return n.value;const d=r.value.toLowerCase();return n.value.filter(f=>String(f[e.textField]??"").toLowerCase().includes(d))});function u(d){r.value=d}function a(d){t.emit("confirmResult",d[e.textField]),t.emit("searchedValue",[d])}function s(d){return t.slots.default?t.slots.default({item:d}):i.createVNode("span",null,[d[e.textField]])}const c=i.computed(()=>{const d={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(d.maxHeight=`${e.maxHeight}px`),d});return i.watch(()=>e.data,d=>{d!==n.value&&(n.value=d)}),t.expose({search:u}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:c.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"},[o.value.map(d=>i.createVNode("li",{class:"search-box-item dropdown-item",key:d[e.idField],onClick:()=>a(d)},[s(d)])),!e.loading&&o.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),mu=i.defineComponent({name:"FXSearchBox",props:Us,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),r=i.ref(),o=i.ref(),u=i.ref(e.modelValue),a=i.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',c=i.computed(()=>e.loading?s:e.buttonContent);i.watch(u,A=>{var k;(k=o.value)==null||k.search(A),t.emit("update:modelValue",A)}),i.watch(()=>e.modelValue,A=>{u.value=A});function d(A){u.value=A,h()}function f(A){const k=u.value;t.emit("change",A,{oldValue:k,newValue:A})}function l(A){t.emit("selectedValue",A)}function p(){t.emit("clickButton",{})}async function m(){var A;a.value=!0,await i.nextTick(),(A=r.value)==null||A.show(n.value)}function h(){var A;(A=r.value)==null||A.hide(),a.value=!1}function x(){a.value?h():m()}function y(A){const k=A.target.value;u.value=k,f(k),e.showDropdown&&k&&m()}function v(){e.showDropdown&&u.value&&m()}function g(){u.value="",t.emit("update:modelValue",""),h()}t.expose({togglePopup:x,hidePopup:h,showPopup:m});const b=i.computed(()=>{const A=ye({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof A=="string"?[A]:Array.isArray(A)?A:[]]});return()=>i.createVNode("div",{class:b.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:u.value,disabled:e.disable,onInput:y,onFocus:v},null),u.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:g},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),i.createVNode("span",{class:"f-search-box-button",onClick:p},[i.createVNode("i",{class:"fx-icon fx-icon-search",innerHTML:c.value},null)])]),e.showDropdown&&i.createVNode(qt,{ref:r,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost},{default:()=>[i.createVNode(lr,{ref:o,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:A=>l(A),loading:e.loading,maxHeight:e.maxHeight},t.slots)]})])}});mu.install=e=>{e.component(mu.name,mu),e.component(lr.name,lr)};const To={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 j2(e){const t=i.ref([...e.data]),n=i.ref([]),r=i.ref(""),o=i.computed(()=>{var p;const l=e.group;return l!=null&&l.enable&&((p=l.groupFields)!=null&&p.length)?u(t.value,l):t.value.map((m,h)=>({type:0,data:m,originalIndex:h}))});function u(l,p){const m=[],h=p.groupFields[0],x=new Map;l.forEach(v=>{const g=String(v[h]??"");x.has(g)||x.set(g,[]),x.get(g).push(v)});let y=0;return x.forEach((v,g)=>{m.push({type:1,data:{[h]:g},groupField:h,groupValue:g,originalIndex:y++}),v.forEach(b=>{m.push({type:0,data:b,groupField:h,groupValue:g,originalIndex:y++})})}),m}function a(l){t.value=[...l],n.value=[],r.value=""}function s(l){r.value=l;const p=t.value.find(m=>m[e.idField]===l);p&&!n.value.includes(p)&&(n.value=[p])}function c(){n.value=[],r.value=""}function d(l){const p=n.value.indexOf(l);p>=0?n.value.splice(p,1):n.value=[l],r.value=l[e.idField]}function f(l){return n.value.includes(l)}return{data:t,visualData:o,selectedItems:n,activeItemId:r,updateDataSource:a,activeRowById:s,clearSelection:c,toggleSelection:d,isSelected:f}}const H2=i.defineComponent({name:"FXListViewItem",props:{...To,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]])])}}),$2=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])])])}}),gu=i.defineComponent({name:"FXListView",props:To,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:r,updateDataSource:o,activeRowById:u,clearSelection:a,toggleSelection:s,isSelected:c}=j2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>ye({"f-list-view":!0},e.customClass));function f(l,p){s(l),t.emit("clickItem",l,p)}return t.expose({updateDataSource:o,activeRowById:u,clearSelection:a}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-list-view-content"},[i.createVNode("ul",{class:"f-list-view-items"},[n.value.map((l,p)=>l.type===1?i.createVNode($2,{key:`group_${l.groupValue}_${p}`,groupData:l.data,groupField:l.groupField,groupValue:l.groupValue,index:p},{default:t.slots.group}):i.createVNode(H2,{key:`${l.data[e.idField]}_${p}`,item:l.data,index:l.originalIndex,isActive:l.data[e.idField]===r.value,isSelected:c(l.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});gu.install=e=>{e.component(gu.name,gu)};const No=i.defineComponent({name:"FXAgentThinkingMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content,n=t.streamStatus==="end"||t.streamStatus===void 0;return i.createVNode("details",{class:"f-ec-thinking",open:!0},[i.createVNode("summary",{class:"f-ec-thinking-summary"},[i.createTextVNode("思考过程"),n?null:i.createVNode("span",{class:"f-ec-thinking-badge"},[i.createTextVNode("进行中")])]),i.createVNode("div",{class:"f-ec-thinking-body"},[t.text]),t.sources&&t.sources.length>0?i.createVNode("ul",{class:"f-ec-thinking-sources"},[t.sources.map((r,o)=>i.createVNode("li",{key:o},[r]))]):null])}}});function U2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function W2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function G2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const Gs=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>W2(e.content.media)),n=i.computed(()=>rn(G2(e.content.media)));async function r(o){o.preventDefault(),o.stopPropagation();const u=n.value;u&&await ku(u,e.content.name)}return()=>{const o=!!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"},[U2(e.content.size)])])])]),o?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])}}}),q2={0:"高",1:"中",2:"低"},qs=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"},[q2[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])}}});function X2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Xs=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var o;X2(e.content,r),(o=e.onPick)==null||o.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]))])])}}),Zs=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])])}}}),Ys=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])]))])])}}),jt="__hitl_other__";function dr(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"?t:"text"}const Qs=i.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},onSubmitAnswers:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref({}),r=i.ref({});function o(h){const x={},y={};for(const v of h){const g=dr(v.ui_type);g==="confirm"?x[v.id]=v.default_value==="true"||v.default_value==="1":x[v.id]=v.default_value??"",y[v.id]={active:!1,text:""}}n.value=x,r.value=y}i.watch(()=>e.content.questions,h=>{Array.isArray(h)&&h.length&&o(h)},{immediate:!0});const u=i.computed(()=>{var h,x;if(t.value||e.disabled)return!1;for(const y of e.content.questions){const v=dr(y.ui_type),g=n.value[y.id];if(v==="text"&&(typeof g!="string"||g.trim()==="")||v==="select"&&(typeof g!="string"||g.trim()===""||g===jt&&(((x=(h=r.value[y.id])==null?void 0:h.text)==null?void 0:x.trim())??"")==="")||v==="confirm"&&typeof g!="boolean")return!1}return!0});function a(h,x){n.value={...n.value,[h]:x}}function s(h,x){var y;x===jt?(r.value={...r.value,[h.id]:{...r.value[h.id],active:!0,text:((y=r.value[h.id])==null?void 0:y.text)??""}},a(h.id,jt)):(r.value={...r.value,[h.id]:{active:!1,text:""}},a(h.id,x))}function c(){var x,y,v;if(!u.value)return;const h=[];for(const g of e.content.questions){const b=dr(g.ui_type);let A=n.value[g.id];b==="select"&&A===jt&&(A=((y=(x=r.value[g.id])==null?void 0:x.text)==null?void 0:y.trim())??""),h.push({id:g.id,answer:A})}t.value=!0,(v=e.onSubmitAnswers)==null||v.call(e,h)}function d(h){const x=n.value[h.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?i.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,i.createVNode("div",{class:"f-hitl-field__label"},[h.question]),i.createVNode("input",{class:"f-hitl-input",type:"text",value:x,placeholder:h.placeholder??"请输入",disabled:t.value||e.disabled,onInput:y=>a(h.id,y.target.value)},null)])}function f(h,x){const y=n.value[h.id]??"",v=r.value[h.id]??{active:!1,text:""};return i.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?i.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,i.createVNode("div",{class:"f-hitl-field__label"},[h.question]),i.createVNode("div",{class:"f-hitl-select-group"},[x.map(g=>i.createVNode("button",{key:g.label,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":y===g.label&&!v.active}],disabled:t.value||e.disabled,onClick:()=>s(h,g.label)},[i.createVNode("span",{class:"f-hitl-opt__label"},[g.label]),g.description?i.createVNode("span",{class:"f-hitl-opt__desc"},[g.description]):null])),h.allow_other?i.createVNode("button",{type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":y===jt||v.active}],disabled:t.value||e.disabled,onClick:()=>s(h,jt)},[i.createTextVNode("其他")]):null]),h.allow_other&&(y===jt||v.active)?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:v.text,placeholder:"请输入自定义内容",disabled:t.value||e.disabled,onInput:g=>{const b=g.target.value;r.value={...r.value,[h.id]:{active:!0,text:b}},a(h.id,jt)}},null):null])}function l(h){const x=n.value[h.id];return i.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?i.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,i.createVNode("div",{class:"f-hitl-field__label"},[h.question]),i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":x===!0}],disabled:t.value||e.disabled,onClick:()=>a(h.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":x===!1}],disabled:t.value||e.disabled,onClick:()=>a(h.id,!1)},[i.createTextVNode("否")])])])}function p(h){return i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:h.id},[i.createVNode("div",{class:"f-hitl-field__label"},[h.question]),i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持 ui_type「"),String(h.ui_type),i.createTextVNode("」,请升级前端。")])])}function m(h){const x=dr(h.ui_type);if(x==="text")return d(h);if(x==="select"){const y=Array.isArray(h.options)?h.options:[];return y.length===0?p({...h,ui_type:"text"}):f(h,y)}return x==="confirm"?l(h):p(h)}return()=>i.createVNode("div",{class:"f-hitl-card"},[i.createVNode("div",{class:"f-hitl-card__meta"},[i.createVNode("span",{class:"f-hitl-chip"},[i.createTextVNode("人机协同")])]),i.createVNode("div",{class:"f-hitl-card__body"},[e.content.questions.map(h=>m(h))]),i.createVNode("div",{class:"f-hitl-card__footer"},[i.createVNode("button",{type:"button",class:"f-hitl-submit",disabled:!u.value,onClick:c},[t.value?"已提交":"提交回答"])])])}}),Ks=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??"客户端无法识别此消息类型,已按占位展示。"])])}}),Z2=[No,Gs,qs,Qs,Xs,Zs,Ys,Zt,Ks,so];No.install=e=>{for(const t of Z2)e.component(t.name,t)};const Y2={install(e){e.use(un).use(Qn).use(Kn).use(Jn).use(uu).use(ru).use(ou).use(iu).use(dn).use(su).use(xn).use(Xt).use(cu).use(lu).use(du).use(fu).use(mn).use(gn).use(qt).use(hu).use(pu).use(mu).use(gu)}};N.FXAgentThinking=No,N.FXAppPreview=un,N.FXAttachmentFile=Gs,N.FXAttachmentPreview=fu,N.FXBubble=Qn,N.FXBubbleAction=co,N.FXCarousel=Kn,N.FXCarouselItem=Qu,N.FXCoding=uu,N.FXConfirmDialog=Jn,N.FXDynamicComponent=gn,N.FXErrorReminder=qs,N.FXFileOperation=ru,N.FXGenerateProcess=ou,N.FXHistory=iu,N.FXHitlQuestion=Qs,N.FXInputRecommend=Xs,N.FXLinkCard=Zs,N.FXListView=gu,N.FXMarkdown=dn,N.FXMarkdownPreview=su,N.FXNav=pu,N.FXPopover=qt,N.FXPopoverDirective=Sa,N.FXPrompt=cr,N.FXPrompts=xn,N.FXReferenceSources=Ys,N.FXSearchBox=mu,N.FXSearchBoxContainer=lr,N.FXSplitter=hu,N.FXSplitterPane=Do,N.FXStartedTodo=Xt,N.FXSuggestion=cu,N.FXTodo=lu,N.FXTodoListItemView=Yu,N.FXTodoListView=Yn,N.FXToolUse=Zt,N.FXUnknownEnterprise=Ks,N.FXUserAuth=so,N.FXWelcome=du,N.FXWidgetContainer=mn,N.appPreviewMessageProps=vu,N.attachmentPreviewProps=zs,N.bubbleActionProps=La,N.bubbleProps=Wo,N.carouselItemProps=Ia,N.carouselProps=Oa,N.chatHistoryProps=Ya,N.codingMessageProps=Ga,N.confirmDialogProps=Ra,N.default=Y2,N.extractFileIdFromRuntimeDownloadUrl=Go,N.fileOperationMessageProps=Xa,N.generateProcessProps=Za,N.getCustomClass=ye,N.getCustomStyle=ve,N.isImageUrl=qo,N.listViewProps=To,N.loadDynamicComponent=wa,N.markdownMessageProps=Ji,N.markdownPreviewProps=Qa,N.navProps=$s,N.popoverProps=Ea,N.postDynamicComponentAssistantMessage=qf,N.promptProps=Ms,N.promptsProps=Is,N.renderIconNode=Cu,N.renderNode=Nn,N.resolveHrefForAttachmentDownload=rn,N.resolveRuntimeAttachmentDownloadUrl=vr,N.searchBoxContainerProps=Ws,N.searchBoxProps=Us,N.splitterProps=Hs,N.startedTodoProps=Da,N.suggestionProps=Ps,N.todoListItemProps=Na,N.todoListViewProps=Ta,N.todoProps=Vs,N.triggerAttachmentDownload=ku,N.unloadDynamicComponent=va,N.useSequentialStreaming=Eu,N.useStreamingOutput=Xo,N.useTimer=kr,N.welcomeProps=Bs,N.widgetContainerProps=ya,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
92
+ </${H}>
93
+ ${M}
94
+ </${D}>
95
+ `};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},N1=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(u,i,r,a,s)=>{var f,l;const c=u[i],d=c.content.trim();if(c.info==="echarts"){if(c.attrSet("class",`${X}-echarts`),c.attrSet("data-echarts-theme",t.themeRef.value),c.map&&c.level===0){const m=c.map[1]-1,g=!!((l=(f=a.srcLines[m])==null?void 0:f.trim())!=null&&l.startsWith("```"));c.attrSet("data-closed",`${g}`),c.attrSet("data-line",String(c.map[0]))}return`<div ${s.renderAttrs(c)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(d)}</div>`}return n(u,i,r,a,s)}},L1=(e,t)=>{e.renderer.rules.heading_open=(n,u)=>{var s;const i=n[u],r=((s=n[u+1].children)==null?void 0:s.reduce((c,d)=>c+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=i.markup.length;return t.headsRef.value.push({text:r,level:a,line:i.map[0],currentToken:i,nextToken:n[u+1]}),i.map&&i.level===0&&i.attrSet("id",t.mdHeadingId({text:r,level:a,index:t.headsRef.value.length,currentToken:i,nextToken:n[u+1]})),e.renderer.renderToken(n,u,t)},e.renderer.rules.heading_close=(n,u,i,r,a)=>a.renderToken(n,u,i)},ds={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},I1=e=>(t,n)=>{const u=e.delimiters;for(const i of u){if(!t.src.startsWith(i.open,t.pos))continue;const r=t.pos+i.open.length;let a=r;for(;(a=t.src.indexOf(i.close,a))!==-1;){let s=0,c=a-1;for(;c>=0&&t.src[c]==="\\";)s++,c--;if(s%2===0)break;a+=i.close.length}if(a!==-1){if(a-r===0)return n||(t.pending+=i.open+i.close),t.pos=a+i.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=i.open,s.content=t.src.slice(r,a)}return t.pos=a+i.close.length,!0}}return!1},O1=e=>(t,n,u,i)=>{const r=e.delimiters,a=t.bMarks[n]+t.tShift[n],s=t.eMarks[n],c=(d,f,l)=>{t.line=f;const m=t.push("math_block","math",0);return m.block=!0,m.content=d,m.map=[n,t.line],m.markup=l,!0};for(const d of r){const f=a;if(t.src.slice(f,f+d.open.length)!==d.open)continue;const l=f+d.open.length,m=t.src.slice(l,s).trim(),g=m==="",p=m===d.close,v=m.endsWith(d.close);if(!g&&!p&&!v)continue;if(i)return!0;if(p)return c("",n+1,d.open);if(!g&&v){const b=m.slice(0,-d.close.length);return c(b,n+1,d.open)}let x=n+1,k=!1,y="";for(;x<u;x++){const b=t.bMarks[x]+t.tShift[x],w=t.eMarks[x];if(b<w&&t.tShift[x]<t.blkIndent)break;if(t.src.slice(b,w).trim().endsWith(d.close)){const C=t.src.slice(0,w).lastIndexOf(d.close);y=t.src.slice(b,C),k=!0;break}}if(!k)continue;const h=t.getLines(n+1,x,t.tShift[n],!0)+(y.trim()?y:"");return c(h,x+1,d.open)}return!1},P1=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:u})=>{const i=(s,c,d,f,l=!1)=>{const m={attrs:Si(s,[["class",c]])},g=f.renderAttrs(m);if(!t.value)return`<${d} ${g}>${s.content}</${d}>`;const p=t.value.renderToString(s.content,ct.katexConfig({throwOnError:!1,displayMode:l}));return`<${d} ${g} data-processed>${p}</${d}>`},r=(s,c,d,f,l)=>i(s[c],`${X}-katex-inline`,"span",l),a=(s,c,d,f,l)=>i(s[c],`${X}-katex-block`,"p",l,!0);e.inline.ruler.before("escape","math_inline",I1({delimiters:n||ds.inline})),e.block.ruler.after("blockquote","math_block",O1({delimiters:u||ds.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=r,e.renderer.rules.math_block=a},R1=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(u,i,r,a,s)=>{var f,l;const c=u[i],d=c.content.trim();if(c.info==="mermaid"){if(c.attrSet("class",`${X}-mermaid`),c.attrSet("data-mermaid-theme",t.themeRef.value),c.map&&c.level===0){const g=c.map[1]-1,p=!!((l=(f=a.srcLines[g])==null?void 0:f.trim())!=null&&l.startsWith("```"));c.attrSet("data-closed",`${p}`),c.attrSet("data-line",String(c.map[0]))}const m=du.get(d);return m?(c.attrSet("data-processed",""),c.attrSet("data-content",d),`<p ${s.renderAttrs(c)}>${m}</p>`):`<div ${s.renderAttrs(c)}>${e.utils.escapeHtml(d)}</div>`}return n(u,i,r,a,s)}},fs=(e,t,n)=>{const u=e.attrIndex(t),i=[t,n];u<0?e.attrPush(i):(e.attrs=e.attrs||[],e.attrs[u]=i)},V1=e=>e.type==="inline",M1=e=>e.type==="paragraph_open",B1=e=>e.type==="list_item_open",z1=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,j1=(e,t)=>V1(e[t])&&M1(e[t-1])&&B1(e[t-2])&&z1(e[t]),H1=(e,t)=>{const n=e[t].level-1;for(let u=t-1;u>=0;u--)if(e[u].level===n)return u;return-1},$1=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},U1=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},W1=(e,t,n)=>{const u=new n("html_inline","",0);return u.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",u.attrs=[["for",t]],u},G1=(e,t,n)=>{const u=new t("html_inline","",0),i=n.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?u.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(u.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),u},X1=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(G1(e,t,n)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n.label)if(n.labelAfter){e.children.pop();const u="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+u+'">',e.children.push(W1(e.content,u,t))}else e.children.unshift($1(t)),e.children.push(U1(t))},q1=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const u=n.tokens;for(let i=2;i<u.length;i++)j1(u,i)&&(X1(u[i],n.Token,t),fs(u[i-2],"class","task-list-item"+(t.enabled?" enabled":" ")),fs(u[H1(u,i-2)],"class","contains-task-list"))})},Z1=e=>{e.core.ruler.push("init-line-number",t=>(t.tokens.forEach(n=>{n.map&&(n.attrs||(n.attrs=[]),n.attrs.push(["data-line",n.map[0].toString()]))}),!0))},Y1=(e,t)=>{const{editorConfig:n,markdownItPlugins:u}=ct,i=o.inject("editorId"),r=o.inject("language"),a=o.inject("usedLanguageText"),s=o.inject("showCodeRowNumber"),c=o.inject("theme"),d=o.inject("customIcon"),f=o.inject("rootRef"),l=o.inject("setting"),m=o.ref([]),g=_1(e),p=S1(e),{reRenderRef:v,replaceMermaid:x}=F1(e),{reRenderEcharts:k,replaceEcharts:y}=E1(e),h=Ze({html:!0,breaks:!0,linkify:!0}),b=[{type:"image",plugin:i1,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:D1,options:{}},{type:"taskList",plugin:q1,options:{}},{type:"heading",plugin:L1,options:{mdHeadingId:e.mdHeadingId,headsRef:m}},{type:"code",plugin:T1,options:{editorId:i,usedLanguageTextRef:a,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:s1,options:{}},{type:"sup",plugin:d1,options:{}}];e.noKatex||b.push({type:"katex",plugin:P1,options:{katexRef:p}}),e.noMermaid||b.push({type:"mermaid",plugin:R1,options:{themeRef:c}}),e.noEcharts||b.push({type:"echarts",plugin:N1,options:{themeRef:c}}),u(b,{editorId:i}).forEach($=>{h.use($.plugin,$.options)});const w=h.options.highlight;h.set({highlight:($,F,R)=>{if(w){const re=w($,F,R);if(re)return re}let O;!e.noHighlight&&g.value?g.value.getLanguage(F)?O=g.value.highlight($,{language:F,ignoreIllegals:!0}).value:O=g.value.highlightAuto($).value:O=h.utils.escapeHtml($);const U=s?Qh(O.replace(/^\n+|\n+$/g,""),$.replace(/^\n+|\n+$/g,"")):`<span class="${X}-code-block">${O.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${F}" language=${F}>${U}</code></pre>`}}),Z1(h);const C=o.ref(`_article-key_${wi()}`),E=o.ref(e.sanitize(h.render(e.modelValue,{srcLines:e.modelValue.split(`
96
+ `)})));let _=()=>{},z=()=>{};const M=()=>{var F;const $=(F=f.value)==null?void 0:F.querySelectorAll(`#${i} p.${X}-mermaid:not([data-closed=false])`);z(),z=n1($,{customIcon:d.value}),_(),_=r1($,{customIcon:d.value})},I=()=>{it.emit(i,qh,E.value),e.onHtmlChanged(E.value),e.onGetCatalog(m.value),it.emit(i,Ei,m.value),o.nextTick(()=>{x().then(M),y()})},B=()=>{m.value=[],E.value=e.sanitize(h.render(e.modelValue,{srcLines:e.modelValue.split(`
97
+ `)}))},D=o.computed(()=>(e.noKatex||!!p.value)&&(e.noHighlight||!!g.value));let H=-1;return o.watch([o.toRef(e,"modelValue"),D,v,r],()=>{H=window.setTimeout(()=>{B()},t?0:n.renderDelay)}),o.watch(()=>l.value.preview,()=>{l.value.preview&&o.nextTick(()=>{x().then(M),y(),it.emit(i,Ei,m.value)})}),o.watch([E,k],()=>{I()}),o.onMounted(I),o.onMounted(()=>{it.on(i,{name:Zh,callback(){it.emit(i,Ei,m.value)}}),it.on(i,{name:es,callback:()=>{C.value=`_article-key_${wi()}`,B()}})}),o.onBeforeUnmount(()=>{_(),z(),clearTimeout(H)}),{html:E,key:C}},K1=(e,t)=>{const n=o.inject("editorId"),u=o.inject("setting"),{noImgZoomIn:i}=e,r=Mh(()=>{const a=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);a.length!==0&&x1(a,{background:"#00000073"})});o.onMounted(async()=>{!i&&u.value.preview&&await r()}),o.watch([t,()=>u.value.preview],async()=>{!i&&u.value.preview&&await r()})},hs={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},Q1=(e,t)=>{const n=o.inject("editorId"),u=o.inject("rootRef");let i=()=>{};const r=()=>{if(!u.value)return!1;const a=u.value.querySelectorAll(".task-list-item.enabled"),s=c=>{var p;c.preventDefault();const d=c.target.checked?"unChecked":"checked",f=(p=c.target.parentElement)==null?void 0:p.dataset.line;if(!f)return;const l=Number(f),m=e.modelValue.split(`
98
+ `),g=m[Number(l)].replace(hs[d].regexp,hs[d].value);e.previewOnly?(m[Number(l)]=g,e.onChange(m.join(`
99
+ `))):it.emit(n,Yh,l+1,g)};a.forEach(c=>{c.addEventListener("click",s)}),i=()=>{a.forEach(c=>{c.removeEventListener("click",s)})}};o.onBeforeUnmount(()=>{i()}),o.watch([t],()=>{i(),o.nextTick(r)},{immediate:!0})},J1=(e,t,n)=>{const u=o.inject("setting"),i=()=>{o.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},r=a=>{a&&i()};o.watch([t,n],i),o.watch(()=>u.value.preview,r),o.watch(()=>u.value.htmlPreview,r),o.onMounted(i)},ms={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}};({...ms});const ps=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},e2=(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,t2=o.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=o.ref(),n=e.html,u=(i,r)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),c=Math.min(i.length,r.length);let d=-1;for(let l=0;l<c;l++)if(!e2(i[l],r[l])){d=l;break}if(d===-1)if(r.length>i.length)d=i.length;else if(i.length>r.length)d=r.length;else return;const f=Math.min(d,s.length);for(let l=s.length-1;l>=f;l--)s[l].remove();for(let l=d;l<i.length;l++)a.appendChild(i[l].cloneNode(!0))};return o.watch(()=>e.html,(i,r)=>{const a=ps(i),s=ps(r||"");u(a,s)}),()=>o.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),n2=o.defineComponent({name:"ContentPreview",props:ms,setup(e){const t=o.inject("editorId"),n=o.inject("setting"),u=o.inject("previewTheme"),i=o.inject("showCodeRowNumber"),{html:r,key:a}=Y1(e,e.previewOnly);C1(e,r,a),K1(e,r),Q1(e,r),J1(e,r,a);const s=o.computed(()=>[`${X}-preview`,`${u==null?void 0:u.value}-theme`,i&&`${X}-scrn`].filter(Boolean)),c=()=>{const d=`${t}-preview`;return e.previewComponent?o.h(e.previewComponent,{key:a.value,html:r.value,id:d,class:s.value}):o.createVNode(t2,{key:a.value,html:r.value,id:d,class:s.value},null)};return()=>o.createVNode(o.Fragment,null,[n.value.preview&&(e.previewOnly?c():o.createVNode("div",{id:`${t}-preview-wrapper`,class:`${X}-preview-wrapper`,key:"content-preview-wrapper"},[c()])),n.value.htmlPreview&&o.createVNode("div",{id:`${t}-html-wrapper`,class:`${X}-preview-wrapper`,key:"html-preview-wrapper"},[o.createVNode("div",{class:`${X}-html`},[r.value])])])}}),r2=({text:e})=>e,gs={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:r2},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}};({...gs});const bs=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...bs];const u2=(e,t,n)=>{const{editorId:u}=n,i={rerender(){it.emit(u,es)}};t.expose(i)},fu=o.defineComponent({name:"MdPreview",props:gs,emits:bs,setup(e,t){const{noKatex:n,noMermaid:u,noHighlight:i}=e,r=o.ref(),a=k1(e);A1(e,{rootRef:r,editorId:a}),u2(e,t,{editorId:a}),o.onBeforeUnmount(()=>{it.clear(a)});const s=l=>{var m;(m=e.onChange)==null||m.call(e,l),t.emit("onChange",l),t.emit("update:modelValue",l)},c=l=>{var m;(m=e.onHtmlChanged)==null||m.call(e,l),t.emit("onHtmlChanged",l)},d=l=>{var m;(m=e.onGetCatalog)==null||m.call(e,l),t.emit("onGetCatalog",l)},f=()=>{var l;(l=e.onRemount)==null||l.call(e),t.emit("onRemount")};return()=>o.createVNode("div",{id:a,class:[X,e.class,e.theme==="dark"&&`${X}-dark`,`${X}-previewOnly`],style:e.style,ref:r},[o.createVNode(n2,{modelValue:e.modelValue,onChange:s,onHtmlChanged:c,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:u,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:i,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});fu.install=e=>(e.component(fu.name,fu),e);const i2={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Fi=o.defineComponent({name:"NormalFooterToolbar",props:i2,emits:["onClick"],setup(e,t){return()=>{const n=Xh({props:e,ctx:t});return o.createVNode("div",{class:[`${X}-footer-item`,e.disabled&&`${X}-disabled`],onClick:u=>{var i;e.disabled||((i=e.onClick)==null||i.call(e,u),t.emit("onClick",u))}},[n])}}});Fi.install=e=>(e.component(Fi.name,Fi),e);var Di={exports:{}},pe={},Ti={exports:{}},tn={},ys;function xs(){if(ys)return tn;ys=1;function e(){var r={};return r["align-content"]=!1,r["align-items"]=!1,r["align-self"]=!1,r["alignment-adjust"]=!1,r["alignment-baseline"]=!1,r.all=!1,r["anchor-point"]=!1,r.animation=!1,r["animation-delay"]=!1,r["animation-direction"]=!1,r["animation-duration"]=!1,r["animation-fill-mode"]=!1,r["animation-iteration-count"]=!1,r["animation-name"]=!1,r["animation-play-state"]=!1,r["animation-timing-function"]=!1,r.azimuth=!1,r["backface-visibility"]=!1,r.background=!0,r["background-attachment"]=!0,r["background-clip"]=!0,r["background-color"]=!0,r["background-image"]=!0,r["background-origin"]=!0,r["background-position"]=!0,r["background-repeat"]=!0,r["background-size"]=!0,r["baseline-shift"]=!1,r.binding=!1,r.bleed=!1,r["bookmark-label"]=!1,r["bookmark-level"]=!1,r["bookmark-state"]=!1,r.border=!0,r["border-bottom"]=!0,r["border-bottom-color"]=!0,r["border-bottom-left-radius"]=!0,r["border-bottom-right-radius"]=!0,r["border-bottom-style"]=!0,r["border-bottom-width"]=!0,r["border-collapse"]=!0,r["border-color"]=!0,r["border-image"]=!0,r["border-image-outset"]=!0,r["border-image-repeat"]=!0,r["border-image-slice"]=!0,r["border-image-source"]=!0,r["border-image-width"]=!0,r["border-left"]=!0,r["border-left-color"]=!0,r["border-left-style"]=!0,r["border-left-width"]=!0,r["border-radius"]=!0,r["border-right"]=!0,r["border-right-color"]=!0,r["border-right-style"]=!0,r["border-right-width"]=!0,r["border-spacing"]=!0,r["border-style"]=!0,r["border-top"]=!0,r["border-top-color"]=!0,r["border-top-left-radius"]=!0,r["border-top-right-radius"]=!0,r["border-top-style"]=!0,r["border-top-width"]=!0,r["border-width"]=!0,r.bottom=!1,r["box-decoration-break"]=!0,r["box-shadow"]=!0,r["box-sizing"]=!0,r["box-snap"]=!0,r["box-suppress"]=!0,r["break-after"]=!0,r["break-before"]=!0,r["break-inside"]=!0,r["caption-side"]=!1,r.chains=!1,r.clear=!0,r.clip=!1,r["clip-path"]=!1,r["clip-rule"]=!1,r.color=!0,r["color-interpolation-filters"]=!0,r["column-count"]=!1,r["column-fill"]=!1,r["column-gap"]=!1,r["column-rule"]=!1,r["column-rule-color"]=!1,r["column-rule-style"]=!1,r["column-rule-width"]=!1,r["column-span"]=!1,r["column-width"]=!1,r.columns=!1,r.contain=!1,r.content=!1,r["counter-increment"]=!1,r["counter-reset"]=!1,r["counter-set"]=!1,r.crop=!1,r.cue=!1,r["cue-after"]=!1,r["cue-before"]=!1,r.cursor=!1,r.direction=!1,r.display=!0,r["display-inside"]=!0,r["display-list"]=!0,r["display-outside"]=!0,r["dominant-baseline"]=!1,r.elevation=!1,r["empty-cells"]=!1,r.filter=!1,r.flex=!1,r["flex-basis"]=!1,r["flex-direction"]=!1,r["flex-flow"]=!1,r["flex-grow"]=!1,r["flex-shrink"]=!1,r["flex-wrap"]=!1,r.float=!1,r["float-offset"]=!1,r["flood-color"]=!1,r["flood-opacity"]=!1,r["flow-from"]=!1,r["flow-into"]=!1,r.font=!0,r["font-family"]=!0,r["font-feature-settings"]=!0,r["font-kerning"]=!0,r["font-language-override"]=!0,r["font-size"]=!0,r["font-size-adjust"]=!0,r["font-stretch"]=!0,r["font-style"]=!0,r["font-synthesis"]=!0,r["font-variant"]=!0,r["font-variant-alternates"]=!0,r["font-variant-caps"]=!0,r["font-variant-east-asian"]=!0,r["font-variant-ligatures"]=!0,r["font-variant-numeric"]=!0,r["font-variant-position"]=!0,r["font-weight"]=!0,r.grid=!1,r["grid-area"]=!1,r["grid-auto-columns"]=!1,r["grid-auto-flow"]=!1,r["grid-auto-rows"]=!1,r["grid-column"]=!1,r["grid-column-end"]=!1,r["grid-column-start"]=!1,r["grid-row"]=!1,r["grid-row-end"]=!1,r["grid-row-start"]=!1,r["grid-template"]=!1,r["grid-template-areas"]=!1,r["grid-template-columns"]=!1,r["grid-template-rows"]=!1,r["hanging-punctuation"]=!1,r.height=!0,r.hyphens=!1,r.icon=!1,r["image-orientation"]=!1,r["image-resolution"]=!1,r["ime-mode"]=!1,r["initial-letters"]=!1,r["inline-box-align"]=!1,r["justify-content"]=!1,r["justify-items"]=!1,r["justify-self"]=!1,r.left=!1,r["letter-spacing"]=!0,r["lighting-color"]=!0,r["line-box-contain"]=!1,r["line-break"]=!1,r["line-grid"]=!1,r["line-height"]=!1,r["line-snap"]=!1,r["line-stacking"]=!1,r["line-stacking-ruby"]=!1,r["line-stacking-shift"]=!1,r["line-stacking-strategy"]=!1,r["list-style"]=!0,r["list-style-image"]=!0,r["list-style-position"]=!0,r["list-style-type"]=!0,r.margin=!0,r["margin-bottom"]=!0,r["margin-left"]=!0,r["margin-right"]=!0,r["margin-top"]=!0,r["marker-offset"]=!1,r["marker-side"]=!1,r.marks=!1,r.mask=!1,r["mask-box"]=!1,r["mask-box-outset"]=!1,r["mask-box-repeat"]=!1,r["mask-box-slice"]=!1,r["mask-box-source"]=!1,r["mask-box-width"]=!1,r["mask-clip"]=!1,r["mask-image"]=!1,r["mask-origin"]=!1,r["mask-position"]=!1,r["mask-repeat"]=!1,r["mask-size"]=!1,r["mask-source-type"]=!1,r["mask-type"]=!1,r["max-height"]=!0,r["max-lines"]=!1,r["max-width"]=!0,r["min-height"]=!0,r["min-width"]=!0,r["move-to"]=!1,r["nav-down"]=!1,r["nav-index"]=!1,r["nav-left"]=!1,r["nav-right"]=!1,r["nav-up"]=!1,r["object-fit"]=!1,r["object-position"]=!1,r.opacity=!1,r.order=!1,r.orphans=!1,r.outline=!1,r["outline-color"]=!1,r["outline-offset"]=!1,r["outline-style"]=!1,r["outline-width"]=!1,r.overflow=!1,r["overflow-wrap"]=!1,r["overflow-x"]=!1,r["overflow-y"]=!1,r.padding=!0,r["padding-bottom"]=!0,r["padding-left"]=!0,r["padding-right"]=!0,r["padding-top"]=!0,r.page=!1,r["page-break-after"]=!1,r["page-break-before"]=!1,r["page-break-inside"]=!1,r["page-policy"]=!1,r.pause=!1,r["pause-after"]=!1,r["pause-before"]=!1,r.perspective=!1,r["perspective-origin"]=!1,r.pitch=!1,r["pitch-range"]=!1,r["play-during"]=!1,r.position=!1,r["presentation-level"]=!1,r.quotes=!1,r["region-fragment"]=!1,r.resize=!1,r.rest=!1,r["rest-after"]=!1,r["rest-before"]=!1,r.richness=!1,r.right=!1,r.rotation=!1,r["rotation-point"]=!1,r["ruby-align"]=!1,r["ruby-merge"]=!1,r["ruby-position"]=!1,r["shape-image-threshold"]=!1,r["shape-outside"]=!1,r["shape-margin"]=!1,r.size=!1,r.speak=!1,r["speak-as"]=!1,r["speak-header"]=!1,r["speak-numeral"]=!1,r["speak-punctuation"]=!1,r["speech-rate"]=!1,r.stress=!1,r["string-set"]=!1,r["tab-size"]=!1,r["table-layout"]=!1,r["text-align"]=!0,r["text-align-last"]=!0,r["text-combine-upright"]=!0,r["text-decoration"]=!0,r["text-decoration-color"]=!0,r["text-decoration-line"]=!0,r["text-decoration-skip"]=!0,r["text-decoration-style"]=!0,r["text-emphasis"]=!0,r["text-emphasis-color"]=!0,r["text-emphasis-position"]=!0,r["text-emphasis-style"]=!0,r["text-height"]=!0,r["text-indent"]=!0,r["text-justify"]=!0,r["text-orientation"]=!0,r["text-overflow"]=!0,r["text-shadow"]=!0,r["text-space-collapse"]=!0,r["text-transform"]=!0,r["text-underline-position"]=!0,r["text-wrap"]=!0,r.top=!1,r.transform=!1,r["transform-origin"]=!1,r["transform-style"]=!1,r.transition=!1,r["transition-delay"]=!1,r["transition-duration"]=!1,r["transition-property"]=!1,r["transition-timing-function"]=!1,r["unicode-bidi"]=!1,r["vertical-align"]=!1,r.visibility=!1,r["voice-balance"]=!1,r["voice-duration"]=!1,r["voice-family"]=!1,r["voice-pitch"]=!1,r["voice-range"]=!1,r["voice-rate"]=!1,r["voice-stress"]=!1,r["voice-volume"]=!1,r.volume=!1,r["white-space"]=!1,r.widows=!1,r.width=!0,r["will-change"]=!1,r["word-break"]=!0,r["word-spacing"]=!0,r["word-wrap"]=!0,r["wrap-flow"]=!1,r["wrap-through"]=!1,r["writing-mode"]=!1,r["z-index"]=!1,r}function t(r,a,s){}function n(r,a,s){}var u=/javascript\s*\:/img;function i(r,a){return u.test(a)?"":a}return tn.whiteList=e(),tn.getDefaultWhiteList=e,tn.onAttr=t,tn.onIgnoreAttr=n,tn.safeAttrValue=i,tn}var ws,vs;function As(){return vs||(vs=1,ws={indexOf:function(e,t){var n,u;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,u=e.length;n<u;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var u,i;if(Array.prototype.forEach)return e.forEach(t,n);for(u=0,i=e.length;u<i;u++)t.call(n,e[u],u,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,"")}}),ws}var Ni,ks;function o2(){if(ks)return Ni;ks=1;var e=As();function t(n,u){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var i=n.length,r=!1,a=0,s=0,c="";function d(){if(!r){var m=e.trim(n.slice(a,s)),g=m.indexOf(":");if(g!==-1){var p=e.trim(m.slice(0,g)),v=e.trim(m.slice(g+1));if(p){var x=u(a,c.length,p,v,m);x&&(c+=x+"; ")}}}a=s+1}for(;s<i;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var l=n.indexOf("*/",s+2);if(l===-1)break;s=l+1,a=s+1,r=!1}else f==="("?r=!0:f===")"?r=!1:f===";"?r||d():f===`
100
+ `&&d()}return e.trim(c)}return Ni=t,Ni}var Li,Cs;function a2(){if(Cs)return Li;Cs=1;var e=xs(),t=o2();As();function n(r){return r==null}function u(r){var a={};for(var s in r)a[s]=r[s];return a}function i(r){r=u(r||{}),r.whiteList=r.whiteList||e.whiteList,r.onAttr=r.onAttr||e.onAttr,r.onIgnoreAttr=r.onIgnoreAttr||e.onIgnoreAttr,r.safeAttrValue=r.safeAttrValue||e.safeAttrValue,this.options=r}return i.prototype.process=function(r){if(r=r||"",r=r.toString(),!r)return"";var a=this,s=a.options,c=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,l=s.safeAttrValue,m=t(r,function(g,p,v,x,k){var y=c[v],h=!1;if(y===!0?h=y:typeof y=="function"?h=y(x):y instanceof RegExp&&(h=y.test(x)),h!==!0&&(h=!1),x=l(v,x),!!x){var b={position:p,sourcePosition:g,source:k,isWhite:h};if(h){var w=d(v,x,b);return n(w)?v+":"+x:w}else{var w=f(v,x,b);if(!n(w))return w}}});return m},Li=i,Li}var Es;function Ii(){return Es||(Es=1,function(e,t){var n=xs(),u=a2();function i(a,s){var c=new u(s);return c.process(a)}t=e.exports=i,t.FilterCSS=u;for(var r in n)t[r]=n[r];typeof window<"u"&&(window.filterCSS=e.exports)}(Ti,Ti.exports)),Ti.exports}var _s,Ss;function Oi(){return Ss||(Ss=1,_s={indexOf:function(e,t){var n,u;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,u=e.length;n<u;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var u,i;if(Array.prototype.forEach)return e.forEach(t,n);for(u=0,i=e.length;u<i;u++)t.call(n,e[u],u,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}}),_s}var Fs;function Ds(){if(Fs)return pe;Fs=1;var e=Ii().FilterCSS,t=Ii().getDefaultWhiteList,n=Oi();function u(){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 r(F,R,O){}function a(F,R,O){}function s(F,R,O){}function c(F,R,O){}function d(F){return F.replace(l,"&lt;").replace(m,"&gt;")}function f(F,R,O,U){if(O=M(O),R==="href"||R==="src"){if(O=n.trim(O),O==="#")return"#";if(!(O.substr(0,7)==="http://"||O.substr(0,8)==="https://"||O.substr(0,7)==="mailto:"||O.substr(0,4)==="tel:"||O.substr(0,11)==="data:image/"||O.substr(0,6)==="ftp://"||O.substr(0,2)==="./"||O.substr(0,3)==="../"||O[0]==="#"||O[0]==="/"))return""}else if(R==="background"){if(y.lastIndex=0,y.test(O))return""}else if(R==="style"){if(h.lastIndex=0,h.test(O)||(b.lastIndex=0,b.test(O)&&(y.lastIndex=0,y.test(O))))return"";U!==!1&&(U=U||i,O=U.process(O))}return O=I(O),O}var l=/</g,m=/>/g,g=/"/g,p=/&quot;/g,v=/&#([a-zA-Z0-9]*);?/gim,x=/&colon;?/gim,k=/&newline;?/gim,y=/((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,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b=/u\s*r\s*l\s*\(.*/gi;function w(F){return F.replace(g,"&quot;")}function C(F){return F.replace(p,'"')}function E(F){return F.replace(v,function(R,O){return O[0]==="x"||O[0]==="X"?String.fromCharCode(parseInt(O.substr(1),16)):String.fromCharCode(parseInt(O,10))})}function _(F){return F.replace(x,":").replace(k," ")}function z(F){for(var R="",O=0,U=F.length;O<U;O++)R+=F.charCodeAt(O)<32?" ":F.charAt(O);return n.trim(R)}function M(F){return F=C(F),F=E(F),F=_(F),F=z(F),F}function I(F){return F=w(F),F=d(F),F}function B(){return""}function D(F,R){typeof R!="function"&&(R=function(){});var O=!Array.isArray(F);function U(P){return O?!0:n.indexOf(F,P)!==-1}var re=[],te=!1;return{onIgnoreTag:function(P,V,T){if(U(P))if(T.isClosing){var L="[/removed]",W=T.position+L.length;return re.push([te!==!1?te:T.position,W]),te=!1,L}else return te||(te=T.position),"[removed]";else return R(P,V,T)},remove:function(P){var V="",T=0;return n.forEach(re,function(L){V+=P.slice(T,L[0]),T=L[1]}),V+=P.slice(T),V}}}function H(F){for(var R="",O=0;O<F.length;){var U=F.indexOf("<!--",O);if(U===-1){R+=F.slice(O);break}R+=F.slice(O,U);var re=F.indexOf("-->",U);if(re===-1)break;O=re+3}return R}function $(F){var R=F.split("");return R=R.filter(function(O){var U=O.charCodeAt(0);return U===127?!1:U<=31?U===10||U===13:!0}),R.join("")}return pe.whiteList=u(),pe.getDefaultWhiteList=u,pe.onTag=r,pe.onIgnoreTag=a,pe.onTagAttr=s,pe.onIgnoreTagAttr=c,pe.safeAttrValue=f,pe.escapeHtml=d,pe.escapeQuote=w,pe.unescapeQuote=C,pe.escapeHtmlEntities=E,pe.escapeDangerHtml5Entities=_,pe.clearNonPrintableCharacter=z,pe.friendlyAttrValue=M,pe.escapeAttrValue=I,pe.onIgnoreTagStripAll=B,pe.StripTagBody=D,pe.stripCommentTag=H,pe.stripBlankChar=$,pe.attributeWrapSign='"',pe.cssFilter=i,pe.getDefaultCSSWhiteList=t,pe}var hu={},Ts;function Ns(){if(Ts)return hu;Ts=1;var e=Oi();function t(l){var m=e.spaceIndex(l),g;return m===-1?g=l.slice(1,-1):g=l.slice(1,m+1),g=e.trim(g).toLowerCase(),g.slice(0,1)==="/"&&(g=g.slice(1)),g.slice(-1)==="/"&&(g=g.slice(0,-1)),g}function n(l){return l.slice(0,2)==="</"}function u(l,m,g){var p="",v=0,x=!1,k=!1,y=0,h=l.length,b="",w="";e:for(y=0;y<h;y++){var C=l.charAt(y);if(x===!1){if(C==="<"){x=y;continue}}else if(k===!1){if(C==="<"){p+=g(l.slice(v,y)),x=y,v=y;continue}if(C===">"||y===h-1){p+=g(l.slice(v,x)),w=l.slice(x,y+1),b=t(w),p+=m(x,p.length,b,w,n(w)),v=y+1,x=!1;continue}if(C==='"'||C==="'")for(var E=1,_=l.charAt(y-E);_.trim()===""||_==="=";){if(_==="="){k=C;continue e}_=l.charAt(y-++E)}}else if(C===k){k=!1;continue}}return v<h&&(p+=g(l.substr(v))),p}var i=/[^a-zA-Z0-9\\_:.-]/gim;function r(l,m){var g=0,p=0,v=[],x=!1,k=l.length;function y(E,_){if(E=e.trim(E),E=E.replace(i,"").toLowerCase(),!(E.length<1)){var z=m(E,_||"");z&&v.push(z)}}for(var h=0;h<k;h++){var b=l.charAt(h),w,C;if(x===!1&&b==="="){x=l.slice(g,h),g=h+1,p=l.charAt(g)==='"'||l.charAt(g)==="'"?g:s(l,h+1);continue}if(x!==!1&&h===p){if(C=l.indexOf(b,h+1),C===-1)break;w=e.trim(l.slice(p+1,C)),y(x,w),x=!1,h=C,g=h+1;continue}if(/\s|\n|\t/.test(b))if(l=l.replace(/\s|\n|\t/g," "),x===!1)if(C=a(l,h),C===-1){w=e.trim(l.slice(g,h)),y(w),x=!1,g=h+1;continue}else{h=C-1;continue}else if(C=c(l,h-1),C===-1){w=e.trim(l.slice(g,h)),w=f(w),y(x,w),x=!1,g=h+1;continue}else continue}return g<l.length&&(x===!1?y(l.slice(g)):y(x,f(e.trim(l.slice(g))))),e.trim(v.join(" "))}function a(l,m){for(;m<l.length;m++){var g=l[m];if(g!==" ")return g==="="?m:-1}}function s(l,m){for(;m<l.length;m++){var g=l[m];if(g!==" ")return g==="'"||g==='"'?m:-1}}function c(l,m){for(;m>0;m--){var g=l[m];if(g!==" ")return g==="="?m:-1}}function d(l){return l[0]==='"'&&l[l.length-1]==='"'||l[0]==="'"&&l[l.length-1]==="'"}function f(l){return d(l)?l.substr(1,l.length-2):l}return hu.parseTag=u,hu.parseAttr=r,hu}var Pi,Ls;function s2(){if(Ls)return Pi;Ls=1;var e=Ii().FilterCSS,t=Ds(),n=Ns(),u=n.parseTag,i=n.parseAttr,r=Oi();function a(l){return l==null}function s(l){var m=r.spaceIndex(l);if(m===-1)return{html:"",closing:l[l.length-2]==="/"};l=r.trim(l.slice(m+1,-1));var g=l[l.length-1]==="/";return g&&(l=r.trim(l.slice(0,-1))),{html:l,closing:g}}function c(l){var m={};for(var g in l)m[g]=l[g];return m}function d(l){var m={};for(var g in l)Array.isArray(l[g])?m[g.toLowerCase()]=l[g].map(function(p){return p.toLowerCase()}):m[g.toLowerCase()]=l[g];return m}function f(l){l=c(l||{}),l.stripIgnoreTag&&(l.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),l.onIgnoreTag=t.onIgnoreTagStripAll),l.whiteList||l.allowList?l.whiteList=d(l.whiteList||l.allowList):l.whiteList=t.whiteList,this.attributeWrapSign=l.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,l.onTag=l.onTag||t.onTag,l.onTagAttr=l.onTagAttr||t.onTagAttr,l.onIgnoreTag=l.onIgnoreTag||t.onIgnoreTag,l.onIgnoreTagAttr=l.onIgnoreTagAttr||t.onIgnoreTagAttr,l.safeAttrValue=l.safeAttrValue||t.safeAttrValue,l.escapeHtml=l.escapeHtml||t.escapeHtml,this.options=l,l.css===!1?this.cssFilter=!1:(l.css=l.css||{},this.cssFilter=new e(l.css))}return f.prototype.process=function(l){if(l=l||"",l=l.toString(),!l)return"";var m=this,g=m.options,p=g.whiteList,v=g.onTag,x=g.onIgnoreTag,k=g.onTagAttr,y=g.onIgnoreTagAttr,h=g.safeAttrValue,b=g.escapeHtml,w=m.attributeWrapSign,C=m.cssFilter;g.stripBlankChar&&(l=t.stripBlankChar(l)),g.allowCommentTag||(l=t.stripCommentTag(l));var E=!1;g.stripIgnoreTagBody&&(E=t.StripTagBody(g.stripIgnoreTagBody,x),x=E.onIgnoreTag);var _=u(l,function(z,M,I,B,D){var H={sourcePosition:z,position:M,isClosing:D,isWhite:Object.prototype.hasOwnProperty.call(p,I)},$=v(I,B,H);if(!a($))return $;if(H.isWhite){if(H.isClosing)return"</"+I+">";var F=s(B),R=p[I],O=i(F.html,function(U,re){var te=r.indexOf(R,U)!==-1,P=k(I,U,re,te);return a(P)?te?(re=h(I,U,re,C),re?U+"="+w+re+w:U):(P=y(I,U,re,te),a(P)?void 0:P):P});return B="<"+I,O&&(B+=" "+O),F.closing&&(B+=" /"),B+=">",B}else return $=x(I,B,H),a($)?b(B):$},b);return E&&(_=E.remove(_)),_},Pi=f,Pi}var Is;function c2(){return Is||(Is=1,function(e,t){var n=Ds(),u=Ns(),i=s2();function r(s,c){var d=new i(c);return d.process(s)}t=e.exports=r,t.filterXSS=r,t.FilterXSS=i,function(){for(var s in n)t[s]=n[s];for(var c in u)t[c]=u[c]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(Di,Di.exports)),Di.exports}c2();const nn=o.defineComponent({name:"FMarkdownPreview",props:Ka,setup(e){return()=>o.createVNode("div",{class:"f-markdown-preview-container"},[o.createVNode(fu,{modelValue:e.content},null)])}});nn.install=e=>{e.component(nn.name,nn)};const Ri="farris-x-preview-bridge",Vi=1,Mi="assistant.message";function Os(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function Ps(e){return e!==null&&typeof e=="object"}function Rs(e){if(!Ps(e)||e.source!==Ri||e.v!==Vi||e.type!==Mi)return!1;const t=e.payload;return!(!Ps(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function l2(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function Vs(e,t,n){const u=Os(n);try{return e.postMessage({source:Ri,v:Vi,type:Mi,payload:u},t),!0}catch{return!1}}function Ms(e){const t=e.allowTopAsSource!==!1,n=u=>{var i;l2(u,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(u.origin)||Rs(u.data)&&((i=e.onAssistantMessage)==null||i.call(e,u.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const d2="/platform/common/web/renderer/index.html#/preview",f2="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",h2="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",m2="67441dbb-0219-46f2-b247-51555c317995";function Bs(e){if(e.url)return e.url;const t=e.baseUri??d2,n=e.metadataPath??f2,u=e.projectPath??h2,i=e.baseMetadataId??m2;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(u)}&baseMetadataId=${encodeURIComponent(i)}`}function p2(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=Bs(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const ir=o.defineComponent({name:"ChatPreview",props:Ya,setup(e,{expose:t}){const n=o.ref(null),u=o.ref(null),i=o.ref(!1),r=o.ref(!1),a=o.computed(()=>Bs(e.previewConfig??{})),s=o.computed(()=>{var F;return((F=e.previewConfig)==null?void 0:F.contentType)==="markdown"}),c=o.computed(()=>{var F;return Object.keys(((F=e.previewConfig)==null?void 0:F.contentMap)??{})}),d=o.computed(()=>c.value.filter(F=>F).length>0),f=o.ref(),l=o.ref(),m=o.ref(!1);let g=null;o.onBeforeUnmount(()=>{g==null||g(),g=null,B()}),o.watch(()=>[a.value,n.value,s.value],()=>{if(g==null||g(),g=null,s.value)return;const F=n.value;if(!F)return;m.value=!1,i.value=!1,r.value=!1;const R=Date.now(),O=200,U=300,re=1e4;let te=!1,P=null,V=null;V=window.setTimeout(()=>{V=null,te||(r.value=!0)},O);const T=()=>{if(te)return;if(te=!0,P&&(window.clearTimeout(P),P=null),V&&(window.clearTimeout(V),V=null),m.value=!0,D(F),r.value){const K=Date.now()-R,Z=Math.max(0,U-K);setTimeout(()=>{i.value=!0},Z)}else i.value=!0;const W=()=>{var K;return(K=e.onIframeLoad)==null?void 0:K.call(e)};W(),window.setTimeout(W,0),window.setTimeout(W,120)},L=()=>{var W;te||(te=!0,V&&(window.clearTimeout(V),V=null),console.warn("ChatPreview: iframe load timeout"),m.value=!0,i.value=!0,(W=e.onIframeLoad)==null||W.call(e))};F.addEventListener("load",T,{once:!0}),P=window.setTimeout(L,re),g=()=>{F.removeEventListener("load",T),P&&(window.clearTimeout(P),P=null),V&&(window.clearTimeout(V),V=null)}},{flush:"post"}),o.watch([s,()=>{var F;return(F=e.previewConfig)==null?void 0:F.contentMap}],()=>{B(),s.value&&o.nextTick(()=>I())},{flush:"post"}),o.watch(()=>{var F;return(F=e.previewConfig)==null?void 0:F.contentMap},F=>{if(F){const R=Object.keys(F);f.value=R[0]??""}else f.value="";p()},{immediate:!0});function p(F){var R,O;F&&(f.value=F),d.value&&f.value?l.value=((O=(R=e.previewConfig)==null?void 0:R.contentMap)==null?void 0:O[f.value])||"":l.value=""}function v(F){var U;if(s.value||!m.value)return!1;const R=(U=n.value)==null?void 0:U.contentWindow;if(!R)return!1;const O=p2(e.previewConfig??{});return O?Vs(R,O,F):!1}t({postAssistantPayload:v});const x=o.ref(!1);let k=null;const y=800;function h(){x.value=!0,M(!0),k!=null&&(window.clearTimeout(k),k=null)}function b(){k!=null&&window.clearTimeout(k),k=window.setTimeout(()=>{x.value=!1,M(!1),k=null},y)}function w(){h(),b()}function C(){h()}function E(){b()}let _=[];function z(){const F=u.value;if(!F)return[];const R=[],O=F.querySelectorAll(".f-markdown-preview-container");return O.length>0&&O.forEach(U=>R.push(U)),R.length===0&&F.scrollHeight>F.clientHeight&&R.push(F),R}function M(F){const R=u.value;R&&R.querySelectorAll(".f-markdown-preview-container").forEach(O=>{O.classList.toggle("f-chat-preview-scrollbar-visible",F)})}function I(){const F=z();_=F,F.forEach(R=>{R.addEventListener("scroll",w,{passive:!0}),R.addEventListener("mouseenter",C),R.addEventListener("mouseleave",E)})}function B(){_.forEach(F=>{F.removeEventListener("scroll",w),F.removeEventListener("mouseenter",C),F.removeEventListener("mouseleave",E)}),_=[]}function D(F){try{const R=F.contentDocument;if(!R)return;const O="f-chat-preview-injected-scrollbar-style";if(R.getElementById(O))return;const U=R.createElement("style");U.id=O,U.textContent=`
101
+ html, body {
102
+ scrollbar-width: thin;
103
+ scrollbar-color: transparent transparent;
104
+ }
105
+ html::-webkit-scrollbar,
106
+ body::-webkit-scrollbar {
107
+ width: 6px;
108
+ }
109
+ html::-webkit-scrollbar-thumb,
110
+ body::-webkit-scrollbar-thumb {
111
+ background: transparent;
112
+ border-radius: 3px;
113
+ }
114
+ html::-webkit-scrollbar-thumb:hover,
115
+ body::-webkit-scrollbar-thumb:hover {
116
+ background: rgba(0, 0, 0, 0.35);
117
+ }
118
+ html.iframe-scrollbar-visible,
119
+ body.iframe-scrollbar-visible {
120
+ scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
121
+ }
122
+ html.iframe-scrollbar-visible::-webkit-scrollbar-thumb,
123
+ body.iframe-scrollbar-visible::-webkit-scrollbar-thumb {
124
+ background: rgba(0, 0, 0, 0.2);
125
+ }
126
+ `,(R.head||R.documentElement).appendChild(U);const re="f-chat-preview-injected-scrollbar-script";if(R.getElementById(re))return;const te=R.createElement("script");te.id=re,te.textContent=`
127
+ (function() {
128
+ var hideTimer = null;
129
+ var HIDE_DELAY = 800;
130
+ function show() {
131
+ document.documentElement.classList.add('iframe-scrollbar-visible');
132
+ document.body.classList.add('iframe-scrollbar-visible');
133
+ if (hideTimer != null) { clearTimeout(hideTimer); hideTimer = null; }
134
+ }
135
+ function scheduleHide() {
136
+ if (hideTimer != null) clearTimeout(hideTimer);
137
+ hideTimer = setTimeout(function() {
138
+ document.documentElement.classList.remove('iframe-scrollbar-visible');
139
+ document.body.classList.remove('iframe-scrollbar-visible');
140
+ hideTimer = null;
141
+ }, HIDE_DELAY);
142
+ }
143
+ window.addEventListener('scroll', function() { show(); scheduleHide(); }, true);
144
+ document.addEventListener('mouseenter', show);
145
+ document.addEventListener('mouseleave', scheduleHide);
146
+ })();
147
+ `,(R.head||R.documentElement).appendChild(te)}catch{}}const H=()=>{var F;return o.createVNode("div",{class:"f-chat-preview-header"},[o.createVNode("div",{class:"f-chat-preview-header-left"},[o.createVNode("button",{class:"f-chat-preview-preview-btn"},[o.createVNode("i",{class:"fx-icon fx-icon-card_info"},null),o.createVNode("span",{class:"f-chat-preview-preview-text"},[((F=e.previewConfig)==null?void 0:F.title)||"预览"])])]),o.createVNode("div",{class:"f-chat-preview-header-right"},[o.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var R;return(R=e.onClose)==null?void 0:R.call(e)}},[o.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},$=()=>{var F;return d.value?l.value?o.createVNode("div",{class:"d-flex"},[o.createVNode(vn,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[o.createVNode(rr,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[o.createVNode("div",{class:"f-chat-preview-content-nav"},[o.createVNode("div",{class:"f-chat-preview-content-nav-title"},[o.createTextVNode("全部文件")]),o.createVNode("div",{class:"f-chat-preview-content-nav-content"},[c.value.map((R,O)=>o.createVNode("div",{key:O,class:["f-chat-preview-content-nav-item",R===f.value?"active-nav-item":""],title:R,onClick:()=>p(R)},[R]))])])]}),o.createVNode(rr,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[o.createVNode(nn,{content:l.value},null)]})]})]):null:o.createVNode(nn,{content:((F=e.previewConfig)==null?void 0:F.content)??""},null)};return()=>o.createVNode("div",{class:"f-chat-preview"},[H(),o.createVNode("div",{ref:u,class:"f-chat-preview-content",style:{overflow:s.value?"auto":"hidden"}},[s.value?$():o.createVNode(o.Fragment,null,[o.withDirectives(o.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":i.value}]},[o.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"60%"}},null),o.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"80%"}},null),o.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"45%"}},null),o.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"70%"}},null),o.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"55%"}},null)]),[[o.vShow,r.value]]),o.createVNode("iframe",{ref:n,name:"preview-iframe",title:"preview-iframe",src:a.value,class:["f-chat-preview-iframe",{"f-chat-preview-iframe--visible":i.value}]},null)])])])}});function g2(e,t){const n=typeof window<"u"?window.AgentWorkbenchSDK:void 0;if(!n){console.warn("[AgentWorkbenchSDK] invoke: window.AgentWorkbenchSDK is not available");return}try{const u=n[e];if(typeof u!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return u(...t??[])}catch(u){console.warn("[AgentWorkbenchSDK] invoke error:",e,u);return}}function b2(e){return Ms(e)}let y2=0;const or=[];function rn(){var e;return((e=or[or.length-1])==null?void 0:e.h)??{}}function x2(e){const t=++y2;return or.push({id:t,h:e}),()=>{const n=or.findIndex(u=>u.id===t);n>=0&&or.splice(n,1)}}const w2={showPreview(e){var t,n;(n=(t=rn()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=rn()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=rn()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=rn()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=rn()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=rn()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof rn().showPreview=="function"}};ir.install=e=>{e.component(ir.name,ir)};const zs={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:!0}},ar=o.defineComponent({name:"FXConfirmDialog",props:zs,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:n}){function u(){t("update:modelValue",!1)}function i(){t("cancel"),u()}function r(){t("confirm"),u()}function a(s){e.closeOnMask&&s.target===s.currentTarget&&i()}return()=>e.modelValue?o.createVNode(o.Teleport,{to:"body"},{default:()=>[o.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:a},[o.createVNode("div",{class:"f-chat-confirm-dialog"},[o.createVNode("div",{class:"f-chat-confirm-dialog-title"},[n.title?n.title():e.title]),o.createVNode("div",{class:"f-chat-confirm-dialog-description"},[n.default?n.default():e.description]),o.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[o.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:i},[e.cancelText]),o.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:r},[e.confirmText])])])])]}):null}});ar.install=e=>{e.component(ar.name,ar)};function js(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function v2(e){if(Array.isArray(e))return e}function A2(e,t,n){return(t=D2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,i,r,a,s=[],c=!0,d=!1;try{if(r=(n=n.call(e)).next,t!==0)for(;!(c=(u=r.call(n)).done)&&(s.push(u.value),s.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return s}}function C2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
148
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,u)}return n}function $s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hs(Object(n),!0).forEach(function(u){A2(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function E2(e,t){if(e==null)return{};var n,u,i=_2(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(u=0;u<r.length;u++)n=r[u],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _2(e,t){if(e==null)return{};var n={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(t.indexOf(u)!==-1)continue;n[u]=e[u]}return n}function S2(e,t){return v2(e)||k2(e,t)||T2(e,t)||C2()}function F2(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var u=n.call(e,t);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D2(e){var t=F2(e,"string");return typeof t=="symbol"?t:t+""}function T2(e,t){if(e){if(typeof e=="string")return js(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?js(e,t):void 0}}function N2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,u)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Us(Object(n),!0).forEach(function(u){N2(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function L2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(u){return t.reduceRight(function(i,r){return r(i)},u)}}function sr(e){return function t(){for(var n=this,u=arguments.length,i=new Array(u),r=0;r<u;r++)i[r]=arguments[r];return i.length>=e.length?e.apply(this,i):function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return t.apply(n,[].concat(i,s))}}}function mu(e){return{}.toString.call(e).includes("Object")}function I2(e){return!Object.keys(e).length}function cr(e){return typeof e=="function"}function O2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function P2(e,t){return mu(t)||Ut("changeType"),Object.keys(t).some(function(n){return!O2(e,n)})&&Ut("changeField"),t}function R2(e){cr(e)||Ut("selectorType")}function V2(e){cr(e)||mu(e)||Ut("handlerType"),mu(e)&&Object.values(e).some(function(t){return!cr(t)})&&Ut("handlersType")}function M2(e){e||Ut("initialIsRequired"),mu(e)||Ut("initialType"),I2(e)&&Ut("initialContent")}function B2(e,t){throw new Error(e[t]||e.default)}var z2={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"},Ut=sr(B2)(z2),pu={changes:P2,selector:R2,handler:V2,initial:M2};function j2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pu.initial(e),pu.handler(t);var n={current:e},u=sr(U2)(n,t),i=sr($2)(n),r=sr(pu.changes)(e),a=sr(H2)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return pu.selector(d),d(n.current)}function c(d){L2(u,i,r,a)(d)}return[s,c]}function H2(e,t){return cr(t)?t(e.current):t}function $2(e,t){return e.current=Ws(Ws({},e.current),t),t}function U2(e,t,n){return cr(t)?t(e.current):Object.keys(n).forEach(function(u){var i;return(i=t[u])===null||i===void 0?void 0:i.call(t,e.current[u])}),n}var W2={create:j2},G2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function X2(e){return function t(){for(var n=this,u=arguments.length,i=new Array(u),r=0;r<u;r++)i[r]=arguments[r];return i.length>=e.length?e.apply(this,i):function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return t.apply(n,[].concat(i,s))}}}function q2(e){return{}.toString.call(e).includes("Object")}function Z2(e){return e||Xs("configIsRequired"),q2(e)||Xs("configType"),e.urls?(Y2(),{paths:{vs:e.urls.monacoBase}}):e}function Y2(){console.warn(Gs.deprecation)}function K2(e,t){throw new Error(e[t]||e.default)}var Gs={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!
149
+ You are using deprecated way of configuration.
150
+
151
+ Instead of using
152
+ monaco.config({ urls: { monacoBase: '...' } })
153
+ use
154
+ monaco.config({ paths: { vs: '...' } })
155
+
156
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
157
+ `},Xs=X2(K2)(Gs),Q2={config:Z2},J2=function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return function(i){return n.reduceRight(function(r,a){return a(r)},i)}};function qs(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],qs(e[n],t[n]))}),$s($s({},e),t)}var em={type:"cancelation",msg:"operation is manually canceled"};function Bi(e){var t=!1,n=new Promise(function(u,i){e.then(function(r){return t?i(em):u(r)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var tm=["monaco"],nm=W2.create({config:G2,isInitialized:!1,resolve:null,reject:null,monaco:null}),Zs=S2(nm,2),lr=Zs[0],gu=Zs[1];function rm(e){var t=Q2.config(e),n=t.monaco,u=E2(t,tm);gu(function(i){return{config:qs(i.config,u),monaco:n}})}function um(){var e=lr(function(t){var n=t.monaco,u=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:u,resolve:i}});if(!e.isInitialized){if(gu({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Bi(zi);if(window.monaco&&window.monaco.editor)return Ys(window.monaco),e.resolve(window.monaco),Bi(zi);J2(im,am)(sm)}return Bi(zi)}function im(e){return document.body.appendChild(e)}function om(e){var t=document.createElement("script");return e&&(t.src=e),t}function am(e){var t=lr(function(u){var i=u.config,r=u.reject;return{config:i,reject:r}}),n=om("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function sm(){var e=lr(function(n){var u=n.config,i=n.resolve,r=n.reject;return{config:u,resolve:i,reject:r}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var u=n.m||n;Ys(u),e.resolve(u)},function(n){e.reject(n)})}function Ys(e){lr().monaco||gu({monaco:e})}function cm(){return lr(function(e){var t=e.monaco;return t})}var zi=new Promise(function(e,t){return gu({resolve:e,reject:t})}),lm={config:rm,init:um,__getMonacoInstance:cm};const Ks={content:{type:Object,required:!0}},Qs=20,dm=16,kn=180;function fm(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const dr=o.defineComponent({name:"FXCodingMessage",props:Ks,setup(e){const t=o.ref(!0),n=o.ref(!1),u=o.ref(null),i=o.ref(null),r=o.ref(kn),a=o.ref(!1);function s(){t.value=!t.value}function c(){var y,h,b,w;const p=(y=e.content)==null?void 0:y.code;if(!p)return kn;const x=i.value;let k;if(x!=null&&x.getOriginalEditor&&(x!=null&&x.getModifiedEditor)){const C=((h=x.getOriginalEditor().getModel())==null?void 0:h.getLineCount())??0,E=((b=x.getModifiedEditor().getModel())==null?void 0:b.getLineCount())??0;k=C+E}else if(x!=null&&x.getModel)k=((w=x.getModel())==null?void 0:w.getLineCount())??0;else{const{value:C,originalValue:E}=p,_=(C||"").split(`
158
+ `).length,z=E?E.split(`
159
+ `).length:0;k=E?z+_:_}return dm+k*Qs}const d=o.computed(()=>(i.value,c()>kn));function f(){n.value=!n.value,r.value=n.value?c():kn,m()}function l(){if(!i.value)return;i.value=null;const v=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(v,{timeout:100}):setTimeout(v,0)}function m(){if(a.value)return;const p=u.value,v=i.value;if(!p||!(v!=null&&v.layout))return;const x=p.clientWidth||p.offsetWidth,k=r.value;requestAnimationFrame(()=>{var y,h;a.value||!i.value||(h=(y=i.value)==null?void 0:y.layout)==null||h.call(y,{width:x,height:k})})}function g(){var p;a.value||!u.value||!((p=e.content)!=null&&p.code)||lm.init().then(v=>{var b;if(a.value||!u.value||!((b=e.content)!=null&&b.code))return;const{value:x,originalValue:k,language:y="typescript"}=e.content.code,h={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Qs,padding:{top:8,bottom:8}};if(k){const w=v.editor.createDiffEditor(u.value,{...h,renderSideBySide:!1,renderOverviewRuler:!1});w.setModel({original:v.editor.createModel(k,y),modified:v.editor.createModel(x,y)}),w.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),w.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),o.nextTick(()=>{var E;if(a.value)return;const C=(E=w.getContainerDomNode)==null?void 0:E.call(w);if(C){const _=C.querySelector('.diff-editor-cell.original, [class*="original"]');_&&(_.style.display="none")}}),i.value=w}else{const w=v.editor.create(u.value,{value:x,language:y,...h});i.value=w}r.value=kn,o.nextTick(()=>m())})}return o.onMounted(()=>{fm(()=>{a.value||!u.value||g()})}),o.watch(t,p=>{p&&!a.value&&o.nextTick(()=>m())}),o.onBeforeUnmount(()=>{a.value=!0,l()}),o.watch(()=>{var p,v;return(v=(p=e.content)==null?void 0:p.code)==null?void 0:v.value},()=>{a.value||(n.value?r.value=c():r.value=kn,m())}),()=>{const p=e.content;if(!p)return null;const{message:v,fileIcon:x,fileName:k,code:y}=p;return o.createVNode("div",{class:"f-chat-message-coding"},[o.createVNode("div",{class:"f-chat-coding-message"},[v]),o.createVNode("div",{class:"f-chat-coding-card"},[o.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&s()},[o.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[o.createVNode("span",{class:"f-chat-coding-header-icon"},[o.createVNode("img",{src:x,alt:"",onError:h=>{var b;h.target.style.display="none",(b=h.target.parentElement)==null||b.classList.add("icon-error")}},null),o.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[o.createTextVNode("📄")])]),o.createVNode("span",{class:"f-chat-coding-header-expand"},[o.createVNode("i",{class:t.value?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)])]),o.createVNode("span",{class:"f-chat-coding-header-filename"},[k]),o.createVNode("span",{class:"f-chat-coding-header-stats"},[o.createVNode("span",{class:"f-chat-coding-stat-add"},[o.createTextVNode("+"),y.addedLines]),o.createVNode("span",{class:"f-chat-coding-stat-del"},[o.createTextVNode("-"),y.deletedLines])])]),o.createVNode("div",{style:{display:t.value?"block":"none"}},[o.createVNode("div",{ref:u,class:"f-chat-coding-editor",style:{height:`${r.value}px`}},null),d.value&&o.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[o.createVNode("i",{class:["fx-icon fx-icon-expanddown",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});dr.install=e=>{e.component(dr.name,dr)};const Js={content:{type:Object,required:!0}};function hm(e){return"file"in e&&"path"in e}const fr=o.defineComponent({name:"FileOperationMessage",props:Js,setup(e){const t=o.ref(!0),n=o.ref({}),u=o.computed(()=>{var c;return!!((c=e.content)!=null&&c.summary)}),i=o.computed(()=>{var d;const c=(d=e.content)==null?void 0:d.summary;return c?`浏览了 ${c.explored} 个文件并查询了 ${c.searched} 个文件`:""});function r(){t.value=!t.value}function a(c){n.value={...n.value,[c]:!n.value[c]}}function s(c){return n.value[c]??!1}return()=>{const c=e.content;if(!c)return null;const{summary:d,operations:f}=c,l=!u.value||t.value;return o.createVNode("div",{class:"f-chat-message-file-operation"},[d&&o.createVNode("div",{class:"f-chat-file-op-summary",onClick:r,role:"button",tabindex:0,onKeydown:m=>m.key==="Enter"&&r()},[o.createVNode("span",{class:"f-chat-file-op-summary-inner"},[o.createVNode("span",{class:"f-chat-file-op-summary-text"},[i.value]),o.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[o.createVNode("i",{class:t.value?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)])])]),l&&o.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((m,g)=>{var p,v,x,k;return o.createVNode("div",{key:g,class:"f-chat-file-op-operation"},[o.createVNode("div",o.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":m.type==="Read","has-details":!!((p=m.details)!=null&&p.length)}],onClick:()=>{var y;return((y=m.details)==null?void 0:y.length)&&a(g)}},(v=m.details)!=null&&v.length?{role:"button",tabIndex:0}:{},{onKeydown:y=>{var h;return((h=m.details)==null?void 0:h.length)&&y.key==="Enter"&&a(g)}}),[o.createVNode("span",{class:"f-chat-file-op-type"},[m.type]),o.createVNode("span",{class:"f-chat-file-op-message-wrap"},[o.createVNode("span",{class:"f-chat-file-op-message"},[m.message]),(x=m.details)!=null&&x.length?o.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(g)}]},[o.createVNode("i",{class:s(g)?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)]):null])]),((k=m.details)==null?void 0:k.length)&&s(g)&&o.createVNode("div",{class:"f-chat-file-op-details"},[m.details.map((y,h)=>hm(y)?o.createVNode("div",{key:h,class:"f-chat-file-op-detail-file"},[o.createVNode("span",{class:"f-chat-file-op-file-icon"},[o.createVNode("img",{src:y.icon,alt:"",onError:b=>{const w=b.target;w.style.display="none";const C=w.parentElement;C&&C.classList.add("icon-error")}},null),o.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[o.createTextVNode("📄")])]),o.createVNode("span",{class:"f-chat-file-op-file-name"},[y.file]),o.createVNode("span",{class:"f-chat-file-op-file-path",title:y.path},[y.path])]):o.createVNode("div",{key:h,class:"f-chat-file-op-detail-text"},[o.createVNode("div",{class:"f-chat-file-op-detail-title"},[y.title]),o.createVNode("div",{class:"f-chat-file-op-detail-content"},[y.text])]))])])})])])}}});fr.install=e=>{e.component(fr.name,fr)};const ec={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:()=>({})}},mm="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",hr=o.defineComponent({name:"FXGenerateProcess",props:ec,emits:["closed"],setup(e,t){const n=o.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return ye(d,e.customClass)}),u=o.computed(()=>Ae({},e.customStyle));function i(){var d,f;return t.slots.icon?t.slots.icon():o.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?Dr(e.icon):o.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:mm},null)])}function r(){var d,f;return e.description&&o.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&&o.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,o.createTextVNode("%")])}function s(){return o.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function c(d=()=>{}){t.emit("closed",{callback:d})}return o.watch(()=>e.visible,d=>{d||c()}),t.expose({close:c}),()=>{var d,f;return o.createVNode(o.Fragment,null,[e.visible&&s(),e.visible&&o.createVNode("div",{class:n.value,style:u.value},[i(),!e.showProgress&&r(),e.showProgress&&o.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"]},[o.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&a()]),e.description&&e.progress>0&&o.createVNode("div",{class:"fx-generate-process--progress"},[r(),o.createTextVNode(" "),a()])])])}}});hr.install=e=>{e.component(hr.name,hr)};const tc={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},pm=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],mr=o.defineComponent({name:"FXChatHistory",props:tc,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),c=new Date;return s.getDate()===c.getDate()&&s.getMonth()===c.getMonth()&&s.getFullYear()===c.getFullYear()},u=a=>{const s=new Date(a),c=new Date;return c.setDate(c.getDate()-7),s>=c&&!n(a)},i=o.computed(()=>{var c;const a={today:[],week:[],older:[]};(c=e.items)==null||c.forEach(d=>{n(d.timestamp)?a.today.push(d):u(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}),r=(a,s)=>s.length>0&&o.createVNode("div",{class:"f-chat-history-section"},[o.createVNode("span",{class:"f-chat-history-section-header"},[a]),o.createVNode("div",{class:"d-flex flex-column"},[s.map(c=>o.createVNode("div",{key:c.id,class:"f-chat-history-item",onClick:()=>t("itemClick",c)},[o.createVNode("span",{class:"f-chat-history-item-title"},[c.title])]))])]);return()=>o.createVNode("div",{class:"f-chat-history-manager"},[o.createVNode("div",{class:"f-chat-history-manager-scroll"},[i.value&&pm.map(a=>r(a.label,i.value[a.key]))])])}});mr.install=e=>{e.component(mr.name,mr)};const nc={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 rc=(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))(rc||{});const uc={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:rc.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},bu=o.defineComponent({name:"FPrompt",props:uc,setup(e){const t=o.computed(()=>!e.id&&e.children&&e.children.length>0),n=o.computed(()=>{var m;let l={"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 l=ye(l,(m=e.classNames)==null?void 0:m.item),ye(l,e.customClass)}),u=o.computed(()=>{let l={"fx-prompt--item":!0};return l[`fx-prompt--${e.showType||"none"}`]=!0,l}),i=o.computed(()=>{var m;const l=Ae({},(m=e.styles)==null?void 0:m.item);return Ae(l,e.customStyle)}),r=()=>{var l,m;return e.icon?o.createVNode("div",{class:["fx-prompt--item-icon",(l=e.classNames)==null?void 0:l.icon],style:(m=e.styles)==null?void 0:m.icon},[Dr(e.icon)]):null},a=()=>{var l,m;return e.label?o.createVNode("h6",{class:["fx-prompt--item-label",(l=e.classNames)==null?void 0:l.label],style:(m=e.styles)==null?void 0:m.label},[Rn(e.label)]):null};function s(){var m;const l={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(l["badge-default"]=!0),ye(l,(m=e.classNames)==null?void 0:m.badge)}const c=()=>{var l;return e.badge?o.createVNode("span",{class:s(),style:(l=e.styles)==null?void 0:l.badge},[Rn(e.badge)]):null},d=()=>{var l,m;return e.description?o.createVNode("p",{class:["fx-prompt--item-description",(l=e.classNames)==null?void 0:l.description],style:(m=e.styles)==null?void 0:m.description},[Rn(e.description)]):null},f=()=>{var l,m,g,p;return!e.children||e.children.length===0?null:o.createVNode(Cn,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(l=e.classNames)==null?void 0:l.subItems,customStyle:(m=e.styles)==null?void 0:m.subItems,styles:{item:((g=e.styles)==null?void 0:g.subItem)??{}},classNames:{item:((p=e.classNames)==null?void 0:p.subItem)??""}},null)};return()=>{var l,m;return o.createVNode("div",{class:n.value,style:i.value,onClick:e.onClick},[t.value?f():o.createVNode("div",{class:u.value},[r(),c(),o.createVNode("div",{class:["fx-prompt--item-content",(l=e.classNames)==null?void 0:l.itemContent],style:(m=e.styles)==null?void 0:m.itemContent},[a(),d(),f()])])])}}}),Cn=o.defineComponent({name:"FXPrompts",props:nc,emits:["item-click"],setup(e,t){const n=o.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=ye(d,e.customClass),d=ye(d,(f=e.classNames)==null?void 0:f.root),d});function u(d=null){var l;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=ye(f,(l=e.classNames)==null?void 0:l.items),f=ye(f,d==null?void 0:d.customClass),f}function i(d=null){var l;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ae(f,(l=e.styles)==null?void 0:l.items),f=Ae(f,d==null?void 0:d.customStyle),f}const r=(d,f)=>{f.disabled||f.children&&f.children.length>0||t.emit("item-click",d,f)},a=d=>{var f,l;return d!=null&&d.title?o.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(l=e.styles)==null?void 0:l.title},[Rn(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:o.createVNode("div",{class:u(d),style:i(d)},[d.items.map((f,l)=>o.createVNode(bu,{key:f.id||`key_${l}`,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:m=>r(m,f)},null))])}function c(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return o.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),c()])}}});Cn.install=e=>{e.component(Cn.name,Cn),e.component(bu.name,bu)};const ic={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助理"}},pr=o.defineComponent({name:"FXSuggestion",props:ic,setup(e,t){const n=o.ref(null),u=o.ref(!1),i=o.ref(!1),r=o.ref({top:0,left:0,height:0}),a=o.ref(-1),s=o.ref(""),c=o.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=o.computed(()=>{var k;return(((k=e.items)==null?void 0:k.length)??0)===0}),f=()=>{var z;if(!n.value||d.value)return;if((((z=n.value.textContent)==null?void 0:z.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",v();return}const y=window.getSelection();if(!y||y.rangeCount===0)return;const h=y.getRangeAt(0),b=h.cloneRange();b.selectNodeContents(n.value),b.setEnd(h.endContainer,h.endOffset);const w=b.toString(),C=w.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",C!==-1&&w.substring(C+1).trim()===""&&(n.value.textContent=w.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,u.value=!0,h.selectNodeContents(n.value),h.collapse(!1),y.removeAllRanges(),y.addRange(h)),u.value===!1){i.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const M=document.createRange();M.setStart(n.value,0),M.setEnd(h.endContainer,h.endOffset);const{top:I,right:B}=M.getBoundingClientRect(),D=l();r.value={top:I-D-5,left:B+5,height:D},a.value===-1&&(a.value=0),i.value=!0}else i.value=!1,a.value=-1},l=()=>{const y=e.items.length*38-6;return Math.min(y+28+20,e.height)},m=k=>{var w;if(!n.value)return;const y=window.getSelection();if(!y||y.rangeCount===0)return;const h=((w=n.value.textContent)==null?void 0:w.replace(/\s*$/,""))||"";n.value.textContent=`${h} ${k.label}`;const b=y.getRangeAt(0);b.selectNodeContents(n.value),b.collapse(!1),y.removeAllRanges(),y.addRange(b),v()},g=async k=>{if(!i.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(k.key)&&k.preventDefault(),k.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&&m(e.items[a.value]);break;case"Escape":v();break}await o.nextTick();const y=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",h=document.querySelector(y);h==null||h.scrollIntoView({block:"nearest",behavior:"smooth"})},p=k=>{n.value&&!n.value.contains(k.target)&&v()},v=()=>{u.value=!1,i.value=!1,a.value=-1};o.onMounted(()=>{document.addEventListener("click",p)}),o.onUnmounted(()=>{document.removeEventListener("click",p)});const x=k=>{const y=k.iconUrl||"",h=k.icon||"fx-icon fx-icon-sender_task";return o.createVNode(o.Fragment,null,[y?o.createVNode("img",{alt:"suggestion item icon",src:y},null):o.createVNode("i",{class:h},null),o.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[k.label])])};return()=>{var k;return o.createVNode("div",{class:"f-chat-suggestion-container"},[o.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:g,"data-placeholder":c.value},null),i.value&&o.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${r.value.top}px`,left:`${r.value.left}px`,height:`${r.value.height}px`}},[o.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),o.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(k=e.items)==null?void 0:k.map((y,h)=>o.createVNode("div",{key:h,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":h===a.value}],onClick:()=>m(y),onMouseenter:()=>a.value===h},[x(y)]))])])])}}});pr.install=e=>{e.component(pr.name,pr)};const oc={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},gr=o.defineComponent({name:"Todo",props:oc,setup(e){const t=o.ref(!0),n=o.computed(()=>{var i;return(i=e.items)==null?void 0:i.length});function u(){t.value=!t.value}return()=>o.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[o.createVNode("div",{class:"f-chat-todo-message"},[e.message]),o.createVNode("div",{class:"f-chat-todo-list"},[o.createVNode("div",{class:"f-chat-todo-header",onClick:u,role:"button",tabindex:0,onKeydown:i=>i.key==="Enter"&&u()},[o.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[o.createVNode("span",{class:"f-chat-todo-header-icon"},[o.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),o.createVNode("span",{class:"f-chat-todo-header-expand"},[o.createVNode("i",{class:t.value?"fx-icon fx-icon-expanddown":"fx-icon fx-icon-arrow-right"},null)])]),o.createVNode("span",{class:"f-chat-todo-header-label"},[o.createTextVNode("待办任务")]),o.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&o.createVNode("div",{class:"f-chat-todo-content"},[o.createVNode(er,{items:e.items},null)])])])}});gr.install=e=>{e.component(gr.name,gr),e.component(er.name,er),e.component(uu.name,uu)};const ac={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:()=>({})}},br=o.defineComponent({name:"FXWelcome",props:ac,emits:[],setup(e,t){const n=o.computed(()=>{const a={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(a["fx-welcome--no-description"]=!0),ye(a,e.customClass)}),u=o.computed(()=>Ae({},e.customStyle));function i(){var a,s;return t.slots.icon?t.slots.icon():e.icon?o.createVNode("div",{class:["fx-welcome--icon",(a=e.classNames)==null?void 0:a.icon],style:(s=e.styles)==null?void 0:s.icon},[Dr(e.icon)]):null}function r(){var a,s,c,d,f,l;return t.slots.content?o.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&o.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&&o.createVNode("h4",{class:["fx-welcome--title",(c=e.classNames)==null?void 0:c.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&o.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(l=e.styles)==null?void 0:l.description},[e.description])])}return()=>o.createVNode("div",{class:n.value,style:u.value},[i(),r()])}});br.install=e=>{e.component(br.name,br)};const sc={content:{type:Object,required:!0},onOpen:{type:Function}},gm="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",bm="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",ym="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==",cc="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",xm="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",yr=o.defineComponent({name:"FChatAttachmentPreview",props:sc,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return gm;case"xlsx":case"xls":return bm;case"ppt":case"mobi":return ym;case"txt":return cc;case"png":case"jpg":case"jpeg":case"gif":return xm;default:return cc}}function n(s){return s.icon?s.icon:t(s.type||"")}function u(s){if(s===0)return"0 B";const c=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(c));return parseFloat((s/Math.pow(c,f)).toFixed(2))+" "+d[f]}async function i(s){var c;(c=e.onOpen)==null||c.call(e,s)}async function r(s,c){s.stopPropagation(),s.preventDefault();const d=cn(c);d&&await Fr(d,c.name)}function a(s,c){const d=u(s.size||0),f=n(s),l=cn(s);return o.createVNode("div",{key:c,class:"f-chat-attachment-preview-card"},[o.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[o.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>i(s),onKeydown:m=>m.key==="Enter"&&i(s)},[o.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[o.createVNode("img",{src:f,alt:""},null)]),o.createVNode("div",{class:"f-chat-attachment-preview-info"},[o.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),o.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&o.createVNode("span",null,[d])])])]),l?o.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:m=>r(m,s)},[o.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[o.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),o.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),o.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:c,attachments:d}=s;return o.createVNode("div",{class:"f-chat-attachment-preview"},[c&&o.createVNode("div",{class:"f-chat-attachment-preview-message"},[c]),o.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,l)=>a(f,l))])])}}});yr.install=e=>{e.component(yr.name,yr)},xn.install=e=>{e.component(xn.name,xn)},wn.install=e=>{e.component(wn.name,wn)};const lc={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:""}},xr=o.defineComponent({name:"FXNav",props:lc,emits:["nav","update:activeNavId"],setup(e,t){const n=o.ref(e.activeNavId),u=o.ref(e.navData);function i(f){if(u.value&&u.value.length){let l=u.value.find(m=>m[e.idField]===f&&m[e.disableField]!==!0);l||(l=u.value.find(m=>m[e.disableField]!==!0)),l&&n.value!==l.id&&(n.value=l.id,t.emit("nav",l))}}o.watch([()=>e.activeNavId,()=>e.navData],([f,l])=>{u.value=l,i(f)});const r=o.computed(()=>e.visible&&u.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const l=e.navPicking;return l&&typeof l=="function"?l(f):!0}).then(l=>{let m=!0;typeof l=="object"?l.canContinue||(m=!1,l.message&&console.error({message:l.message,position:"top-center"})):m=l,m&&(n.value=f.id,t.emit("update:activeNavId",f.id),t.emit("nav",f))})}const s=o.computed(()=>{const f={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return ye(f,e.customClass)}),c=o.computed(()=>Ae({},e.customStyle));function d(f){u.value=f,i(n.value)}return t.expose({updateNavData:d}),()=>{var f;return r.value&&o.createVNode("div",{class:s.value,style:c.value},[(f=u.value)==null?void 0:f.map(l=>o.createVNode("div",{class:["farris-nav-item",{active:l[e.idField]===n.value},{disabled:l[e.disableField]}],onClick:()=>a(l)},[o.createVNode("div",{class:"farris-nav-item-link pt-3"},[o.createVNode("span",{class:"farris-nav-item-link-text"},[typeof l[e.displayField]=="function"?l[e.displayField]():l[e.displayField],l[e.valueField]&&o.createVNode("div",{class:"farris-nav-item-tag"},[l[e.valueField]<=e.maxNum&&o.createVNode("span",{class:"tag-text"},[l[e.valueField]]),l[e.valueField]>e.maxNum&&o.createVNode("span",{class:"tag-text"},[e.maxNum,o.createTextVNode("+")])])]),o.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});xr.install=e=>{e.component(xr.name,xr)};const dc={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}},fc={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}},yu=o.defineComponent({name:"FXSearchBoxContainer",props:fc,emits:["confirmResult","searchedValue"],setup(e,t){const n=o.ref(e.data),u=o.ref(""),i=o.computed(()=>{if(!u.value)return n.value;const d=u.value.toLowerCase();return n.value.filter(f=>String(f[e.textField]??"").toLowerCase().includes(d))});function r(d){u.value=d}function a(d){t.emit("confirmResult",d[e.textField]),t.emit("searchedValue",[d])}function s(d){return t.slots.default?t.slots.default({item:d}):o.createVNode("span",null,[d[e.textField]])}const c=o.computed(()=>{const d={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(d.maxHeight=`${e.maxHeight}px`),d});return o.watch(()=>e.data,d=>{d!==n.value&&(n.value=d)}),t.expose({search:r}),()=>o.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:c.value},[e.loading&&o.createVNode("div",{class:"search-box-loading"},[o.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),o.createVNode("ul",{class:"search-box-list"},[i.value.map(d=>o.createVNode("li",{class:"search-box-item dropdown-item",key:d[e.idField],onClick:()=>a(d)},[s(d)])),!e.loading&&i.value.length===0&&o.createVNode("li",{class:"search-box-empty"},[o.createTextVNode("无匹配结果")])])])}}),wr=o.defineComponent({name:"FXSearchBox",props:dc,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=o.ref(),u=o.ref(),i=o.ref(),r=o.ref(e.modelValue),a=o.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',c=o.computed(()=>e.loading?s:e.buttonContent);o.watch(r,b=>{var w;(w=i.value)==null||w.search(b),t.emit("update:modelValue",b)}),o.watch(()=>e.modelValue,b=>{r.value=b});function d(b){r.value=b,p()}function f(b){const w=r.value;t.emit("change",b,{oldValue:w,newValue:b})}function l(b){t.emit("selectedValue",b)}function m(){t.emit("clickButton",{})}async function g(){var b;a.value=!0,await o.nextTick(),(b=u.value)==null||b.show(n.value)}function p(){var b;(b=u.value)==null||b.hide(),a.value=!1}function v(){a.value?p():g()}function x(b){const w=b.target.value;r.value=w,f(w),e.showDropdown&&w&&g()}function k(){e.showDropdown&&r.value&&g()}function y(){r.value="",t.emit("update:modelValue",""),p()}t.expose({togglePopup:v,hidePopup:p,showPopup:g});const h=o.computed(()=>{const b=ye({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof b=="string"?[b]:Array.isArray(b)?b:[]]});return()=>o.createVNode("div",{class:h.value},[o.createVNode("div",{class:"f-search-box-input-group",ref:n},[o.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:r.value,disabled:e.disable,onInput:x,onFocus:k},null),r.value&&!e.disable&&o.createVNode("span",{class:"f-search-box-clear",onClick:y},[o.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),o.createVNode("span",{class:"f-search-box-button",onClick:m,innerHTML:c.value},null)]),e.showDropdown&&o.createVNode(Kt,{ref:u,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost},{default:()=>[o.createVNode(yu,{ref:i,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:b=>l(b),loading:e.loading,maxHeight:e.maxHeight},t.slots)]})])}});wr.install=e=>{e.component(wr.name,wr),e.component(yu.name,yu)};const ji={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 wm(e){const t=o.ref([...e.data]),n=o.ref([]),u=o.ref(""),i=o.computed(()=>{var m;const l=e.group;return l!=null&&l.enable&&((m=l.groupFields)!=null&&m.length)?r(t.value,l):t.value.map((g,p)=>({type:0,data:g,originalIndex:p}))});function r(l,m){const g=[],p=m.groupFields[0],v=new Map;l.forEach(k=>{const y=String(k[p]??"");v.has(y)||v.set(y,[]),v.get(y).push(k)});let x=0;return v.forEach((k,y)=>{g.push({type:1,data:{[p]:y},groupField:p,groupValue:y,originalIndex:x++}),k.forEach(h=>{g.push({type:0,data:h,groupField:p,groupValue:y,originalIndex:x++})})}),g}function a(l){t.value=[...l],n.value=[],u.value=""}function s(l){u.value=l;const m=t.value.find(g=>g[e.idField]===l);m&&!n.value.includes(m)&&(n.value=[m])}function c(){n.value=[],u.value=""}function d(l){const m=n.value.indexOf(l);m>=0?n.value.splice(m,1):n.value=[l],u.value=l[e.idField]}function f(l){return n.value.includes(l)}return{data:t,visualData:i,selectedItems:n,activeItemId:u,updateDataSource:a,activeRowById:s,clearSelection:c,toggleSelection:d,isSelected:f}}const vm=o.defineComponent({name:"FXListViewItem",props:{...ji,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=o.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>o.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}):o.createVNode("span",null,[e.item[e.textField]])])}}),Am=o.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()=>o.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):o.createVNode("div",{class:"f-list-view-group-header"},[o.createVNode("i",{class:"fx-icon f-accordion-expand"},null),o.createVNode("span",null,[e.groupValue])])])}}),vr=o.defineComponent({name:"FXListView",props:ji,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:u,updateDataSource:i,activeRowById:r,clearSelection:a,toggleSelection:s,isSelected:c}=wm({data:e.data,idField:e.idField,group:e.group}),d=o.computed(()=>ye({"f-list-view":!0},e.customClass));function f(l,m){s(l),t.emit("clickItem",l,m)}return t.expose({updateDataSource:i,activeRowById:r,clearSelection:a}),()=>o.createVNode("div",{class:d.value},[o.createVNode("div",{class:"f-list-view-content"},[o.createVNode("ul",{class:"f-listview-items"},[n.value.map((l,m)=>l.type===1?o.createVNode(Am,{key:`group_${l.groupValue}_${m}`,groupData:l.data,groupField:l.groupField,groupValue:l.groupValue,index:m},{default:t.slots.group}):o.createVNode(vm,{key:`${l.data[e.idField]}_${m}`,item:l.data,index:l.originalIndex,isActive:l.data[e.idField]===u.value,isSelected:c(l.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});vr.install=e=>{e.component(vr.name,vr)};const Hi=o.defineComponent({name:"FXAgentThinkingMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content,n=t.streamStatus==="end"||t.streamStatus===void 0;return o.createVNode("details",{class:"f-ec-thinking",open:!0},[o.createVNode("summary",{class:"f-ec-thinking-summary"},[o.createTextVNode("思考过程"),n?null:o.createVNode("span",{class:"f-ec-thinking-badge"},[o.createTextVNode("进行中")])]),o.createVNode("div",{class:"f-ec-thinking-body"},[t.text]),t.sources&&t.sources.length>0?o.createVNode("ul",{class:"f-ec-thinking-sources"},[t.sources.map((u,i)=>o.createVNode("li",{key:i},[u]))]):null])}}});function km(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Cm(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function Em(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const hc=o.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=o.computed(()=>Cm(e.content.media)),n=o.computed(()=>cn(Em(e.content.media)));async function u(i){i.preventDefault(),i.stopPropagation();const r=n.value;r&&await Fr(r,e.content.name)}return()=>{const i=!!n.value;return o.createVNode("div",{class:"f-ec-attach-row"},[o.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[o.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[o.createTextVNode("📎")]),o.createVNode("span",{class:"f-ec-attach-body"},[o.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),o.createVNode("span",{class:"f-ec-attach-meta"},[o.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),o.createVNode("span",{class:"f-ec-attach-size"},[km(e.content.size)])])])]),i?o.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:u},[o.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[o.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),o.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),o.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}}),_m={0:"高",1:"中",2:"低"},mc=o.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return o.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[o.createVNode("div",{class:"f-ec-error-head"},[o.createVNode("span",{class:"f-ec-error-badge"},[_m[t]]),o.createVNode("span",{class:"f-ec-error-label"},[o.createTextVNode("错误提醒")])]),o.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?o.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[o.createTextVNode("查看详情")]):null])}}});function Sm(e,t){var u;const n=(u=e.pickActions)==null?void 0:u[t];return n||e.pickActionDefault}const pc=o.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,u)=>{var i;Sm(e.content,u),(i=e.onPick)==null||i.call(e,n)};return()=>o.createVNode("div",{class:"f-ec-recommend"},[e.content.title?o.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,o.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,u)=>o.createVNode("button",{key:u,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,u)},[n]))])])}}),gc=o.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return o.createVNode("div",{class:"f-ec-linkcard"},[t.poster?o.createVNode("div",{class:"f-ec-linkcard-poster"},[o.createVNode("img",{src:t.poster,alt:""},null)]):null,o.createVNode("div",{class:"f-ec-linkcard-body"},[o.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?o.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?o.createVNode("div",{class:"f-ec-linkcard-related"},[o.createVNode("div",{class:"f-ec-linkcard-related-label"},[o.createTextVNode("相关阅读")]),o.createVNode("ul",null,[t.relatedLinks.map((n,u)=>o.createVNode("li",{key:u},[o.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}}),bc=o.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>o.createVNode("div",{class:"f-ec-sources"},[o.createVNode("div",{class:"f-ec-sources-title"},[o.createTextVNode("引用来源")]),o.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>o.createVNode("li",{key:n},[o.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}}),Wt="__hitl_other__";function xu(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"?t:"text"}const yc=o.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},onSubmitAnswers:{type:Function,default:void 0}},setup(e){const t=o.ref(!1),n=o.ref({}),u=o.ref({});function i(h){const b={},w={};for(const C of h){const E=xu(C.ui_type);if(E==="confirm")b[C.id]=C.default_value==="true"||C.default_value==="1";else if(E==="text"||E==="select")b[C.id]=C.default_value??"";else if(E==="multi_select")b[C.id]=C.default_value?JSON.parse(C.default_value):[];else if(E==="form"){const _={};if(Array.isArray(C.fields))for(const z of C.fields)_[z.name]=z.default_value??"";b[C.id]=_}else b[C.id]=C.default_value??"";w[C.id]={active:!1,text:""}}n.value=b,u.value=w}o.watch(()=>e.content.questions,h=>{Array.isArray(h)&&h.length&&i(h)},{immediate:!0});const r=o.computed(()=>{var h,b;if(t.value||e.disabled)return!1;for(const w of e.content.questions){const C=xu(w.ui_type),E=n.value[w.id];if(C==="text"&&(typeof E!="string"||E.trim()==="")||C==="select"&&(typeof E!="string"||E.trim()===""||E===Wt&&(((b=(h=u.value[w.id])==null?void 0:h.text)==null?void 0:b.trim())??"")==="")||C==="confirm"&&typeof E!="boolean"||C==="multi_select"&&(!Array.isArray(E)||E.length===0))return!1;if(C==="form"){const _=w.fields??[],z=E;for(const M of _)if(M.required){const I=z[M.name];if(typeof I!="string"||I.trim()==="")return!1}}if((C==="date"||C==="number")&&(typeof E!="string"||E.trim()===""))return!1}return!0});function a(h,b){n.value={...n.value,[h]:b}}function s(h,b){var w;b===Wt?(u.value={...u.value,[h.id]:{...u.value[h.id],active:!0,text:((w=u.value[h.id])==null?void 0:w.text)??""}},a(h.id,Wt)):(u.value={...u.value,[h.id]:{active:!1,text:""}},a(h.id,b))}function c(h,b){const w=n.value[h.id]??[];w.includes(b)?a(h.id,w.filter(C=>C!==b)):a(h.id,[...w,b])}function d(){var b,w,C;if(!r.value)return;const h=[];for(const E of e.content.questions){const _=xu(E.ui_type);let z=n.value[E.id];_==="select"&&z===Wt&&(z=((w=(b=u.value[E.id])==null?void 0:b.text)==null?void 0:w.trim())??""),_==="number"&&(z=Number(z)),h.push({id:E.id,answer:z})}t.value=!0,(C=e.onSubmitAnswers)==null||C.call(e,h)}function f(h){const b=n.value[h.id]??"";return o.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?o.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("input",{class:"f-hitl-input",type:"text",value:b,placeholder:h.placeholder??"请输入",disabled:t.value||e.disabled,onInput:w=>a(h.id,w.target.value)},null)])}function l(h,b){const w=n.value[h.id]??"",C=u.value[h.id]??{active:!1,text:""};return o.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?o.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("div",{class:"f-hitl-select-group"},[b.map(E=>o.createVNode("button",{key:E.label,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":w===E.label&&!C.active}],disabled:t.value||e.disabled,onClick:()=>s(h,E.label)},[o.createVNode("span",{class:"f-hitl-opt__label"},[E.label]),E.description?o.createVNode("span",{class:"f-hitl-opt__desc"},[E.description]):null])),h.allow_other?o.createVNode("button",{type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":w===Wt||C.active}],disabled:t.value||e.disabled,onClick:()=>s(h,Wt)},[o.createTextVNode("其他")]):null]),h.allow_other&&(w===Wt||C.active)?o.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:C.text,placeholder:"请输入自定义内容",disabled:t.value||e.disabled,onInput:E=>{const _=E.target.value;u.value={...u.value,[h.id]:{active:!0,text:_}},a(h.id,Wt)}},null):null])}function m(h,b){const w=n.value[h.id]??[],C=u.value[h.id]??{active:!1,text:""};return o.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?o.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("div",{class:"f-hitl-select-group"},[b.map(E=>o.createVNode("button",{key:E.label,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":w.includes(E.label)}],disabled:t.value||e.disabled,onClick:()=>c(h,E.label)},[o.createVNode("span",{class:"f-hitl-opt__label"},[E.label]),E.description?o.createVNode("span",{class:"f-hitl-opt__desc"},[E.description]):null])),h.allow_other?o.createVNode("button",{type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":C.active}],disabled:t.value||e.disabled,onClick:()=>{const E=C.text;if(C.active){const _=n.value[h.id]??[];a(h.id,_.filter(z=>z!==E)),u.value={...u.value,[h.id]:{active:!1,text:""}}}else u.value={...u.value,[h.id]:{active:!0,text:C.text}},C.text&&!w.includes(C.text)&&a(h.id,[...w,C.text])}},[o.createTextVNode("其他")]):null]),h.allow_other&&C.active?o.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:C.text,placeholder:"请输入自定义内容",disabled:t.value||e.disabled,onInput:E=>{const _=E.target.value,z=C.text;u.value={...u.value,[h.id]:{active:!0,text:_}};const M=n.value[h.id]??[];a(h.id,[...M.filter(I=>I!==z),_])}},null):null])}function g(h){const b=n.value[h.id]??{},w=h.fields??[];return o.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?o.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("div",{class:"f-hitl-form-group"},[w.map(C=>{const E=b[C.name]??"";return C.type==="select"?o.createVNode("div",{class:"f-hitl-form-item",key:C.name},[o.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),o.createVNode("div",{class:"f-hitl-select-group"},[(C.options??[]).map(_=>o.createVNode("button",{key:_,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":E===_}],disabled:t.value||e.disabled,onClick:()=>a(h.id,{...b,[C.name]:_})},[_]))])]):C.type==="number"?o.createVNode("div",{class:"f-hitl-form-item",key:C.name},[o.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),o.createVNode("input",{class:"f-hitl-input",type:"number",value:E,min:C.min,max:C.max,disabled:t.value||e.disabled,onInput:_=>a(h.id,{...b,[C.name]:_.target.value})},null)]):C.type==="date"?o.createVNode("div",{class:"f-hitl-form-item",key:C.name},[o.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),o.createVNode("input",{class:"f-hitl-input",type:"date",value:E,disabled:t.value||e.disabled,onInput:_=>a(h.id,{...b,[C.name]:_.target.value})},null)]):o.createVNode("div",{class:"f-hitl-form-item",key:C.name},[o.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),o.createVNode("input",{class:"f-hitl-input",type:"text",value:E,placeholder:C.default_value??"请输入",disabled:t.value||e.disabled,onInput:_=>a(h.id,{...b,[C.name]:_.target.value})},null)])})])])}function p(h){const b=n.value[h.id]??"";return o.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?o.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("input",{class:"f-hitl-input",type:"date",value:b,disabled:t.value||e.disabled,onInput:w=>a(h.id,w.target.value)},null)])}function v(h){const b=n.value[h.id]??"";return o.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?o.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("input",{class:"f-hitl-input",type:"number",value:b,min:h.min,max:h.max,disabled:t.value||e.disabled,onInput:w=>a(h.id,w.target.value)},null)])}function x(h){const b=n.value[h.id];return o.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?o.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("div",{class:"f-hitl-confirm"},[o.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":b===!0}],disabled:t.value||e.disabled,onClick:()=>a(h.id,!0)},[o.createTextVNode("是")]),o.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":b===!1}],disabled:t.value||e.disabled,onClick:()=>a(h.id,!1)},[o.createTextVNode("否")])])])}function k(h){return o.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:h.id},[o.createVNode("div",{class:"f-hitl-field__label"},[h.question]),o.createVNode("div",{class:"f-hitl-unsupported"},[o.createTextVNode("暂不支持 ui_type「"),String(h.ui_type),o.createTextVNode("」,请升级前端。")])])}function y(h){const b=xu(h.ui_type);if(b==="text")return f(h);if(b==="multi_select"){const w=Array.isArray(h.options)?h.options:[];return m(h,w)}if(b==="form")return g(h);if(b==="select"){const w=Array.isArray(h.options)?h.options:[];return w.length===0?k({...h,ui_type:"text"}):l(h,w)}return b==="confirm"?x(h):b==="date"?p(h):b==="number"?v(h):k(h)}return()=>o.createVNode("div",{class:"f-hitl-card"},[o.createVNode("div",{class:"f-hitl-card__meta"},[o.createVNode("span",{class:"f-hitl-chip"},[o.createTextVNode("人机协同")])]),o.createVNode("div",{class:"f-hitl-card__body"},[e.content.questions.map(h=>y(h))]),o.createVNode("div",{class:"f-hitl-card__footer"},[o.createVNode("button",{type:"button",class:"f-hitl-submit",disabled:!r.value,onClick:d},[t.value?"已提交":"提交回答"])])])}}),xc=o.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>o.createVNode("div",{class:"f-ec-unknown"},[o.createVNode("div",{class:"f-ec-unknown-title"},[o.createTextVNode("未知类型消息")]),e.content.wireType?o.createVNode("div",{class:"f-ec-unknown-wire"},[o.createTextVNode("wire type: "),e.content.wireType]):null,o.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}}),Fm=[Hi,hc,mc,yc,pc,gc,bc,Jt,xc,yi];Hi.install=e=>{for(const t of Fm)e.component(t.name,t)};const Dm={install(e){e.use(at).use(tr).use(nr).use(ir).use(ar).use(dr).use(fr).use(hr).use(mr).use(pn).use(nn).use(Cn).use(Qt).use(pr).use(gr).use(br).use(yr).use(xn).use(wn).use(Kt).use(vn).use(xr).use(wr).use(vr)}};N.FXAgentThinking=Hi,N.FXAppPreview=at,N.FXAttachmentFile=hc,N.FXAttachmentPreview=yr,N.FXBubble=tr,N.FXBubbleAction=xi,N.FXCarousel=nr,N.FXCarouselItem=iu,N.FXChatPreview=ir,N.FXCoding=dr,N.FXConfirmDialog=ar,N.FXDynamicComponent=wn,N.FXErrorReminder=mc,N.FXFileOperation=fr,N.FXGenerateProcess=hr,N.FXHistory=mr,N.FXHitlQuestion=yc,N.FXInputRecommend=pc,N.FXLinkCard=gc,N.FXListView=vr,N.FXMarkdown=pn,N.FXMarkdownPreview=nn,N.FXNav=xr,N.FXPopover=Kt,N.FXPopoverDirective=Ha,N.FXPrompt=bu,N.FXPrompts=Cn,N.FXReferenceSources=bc,N.FXSearchBox=wr,N.FXSearchBoxContainer=yu,N.FXSplitter=vn,N.FXSplitterPane=rr,N.FXStartedTodo=Qt,N.FXSuggestion=pr,N.FXTodo=gr,N.FXTodoListItemView=uu,N.FXTodoListView=er,N.FXToolUse=Jt,N.FXUnknownEnterprise=xc,N.FXUserAuth=yi,N.FXWelcome=br,N.FXWidgetContainer=xn,N.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=Mi,N.PREVIEW_BRIDGE_SOURCE=Ri,N.PREVIEW_BRIDGE_VERSION=Vi,N.appPreviewMessageProps=be,N.attachmentPreviewProps=sc,N.bubbleActionProps=Ga,N.bubbleProps=Sr,N.carouselItemProps=qa,N.carouselProps=Xa,N.chatHistoryProps=tc,N.chatPreviewProps=Ya,N.clonePreviewPayloadForPostMessage=Os,N.codingMessageProps=Ks,N.confirmDialogProps=zs,N.createPreviewIframeSdk=b2,N.default=Dm,N.extractFileIdFromRuntimeDownloadUrl=no,N.fileOperationMessageProps=Js,N.generateProcessProps=ec,N.getCustomClass=ye,N.getCustomStyle=Ae,N.getDynamicComponentRegistryDebugSnapshot=pi,N.invokeAgentWorkbenchSdkApi=g2,N.isImageUrl=ro,N.isPreviewBridgeAssistantMessage=Rs,N.listViewProps=ji,N.loadDynamicComponent=Pa,N.markdownMessageProps=la,N.markdownPreviewProps=Ka,N.navProps=lc,N.normalizeDynamicComponentRegisterClaim=Re,N.peekDynamicComponentRegisterBootstrapId=lh,N.popoverProps=Ba,N.postAssistantToPreviewIframe=Vs,N.postDynamicComponentAssistantMessage=ph,N.previewLayoutBridge=w2,N.promptProps=uc,N.promptsProps=nc,N.registerPreviewChromeSdk=x2,N.renderIconNode=Dr,N.renderNode=Rn,N.resolveHrefForAttachmentDownload=cn,N.resolveRuntimeAttachmentDownloadUrl=Tu,N.searchBoxContainerProps=fc,N.searchBoxProps=dc,N.splitterProps=Za,N.startedTodoProps=$a,N.subscribeAssistantInPreviewIframe=Ms,N.suggestionProps=ic,N.todoListItemProps=Wa,N.todoListViewProps=Ua,N.todoProps=oc,N.triggerAttachmentDownload=Fr,N.unloadDynamicComponent=Ra,N.useSequentialStreaming=Tr,N.useStreamingOutput=uo,N.useTimer=Nu,N.welcomeProps=ac,N.widgetContainerProps=Da,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});