From 7244db71835b444ad52b1b1eb053386f78c7bd77 Mon Sep 17 00:00:00 2001 From: xiangtianyu Date: Tue, 16 Jul 2024 15:46:18 +0800 Subject: [PATCH] fix webview error when using rag (#50) --- src/main/resources/webview/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/webview/index.html b/src/main/resources/webview/index.html index bc8fa8b1..a83468e1 100644 --- a/src/main/resources/webview/index.html +++ b/src/main/resources/webview/index.html @@ -247,8 +247,8 @@ font-family: monospace; color: ${o=>o.theme.text}; `,getSelectedText=()=>{const o=document.getSelection();return o?o.toString().split(/\n/).map(et=>et.replace(/^\d+/,"")).join(` -`):""},getContent=o=>{const a=getSelectedText();return a&&o.includes(a)?a:o},MarkdownComponents=()=>{const o={codeblockActions(a,et,rt,ht){throw new Error("Method not implemented.")},linkActions(a){throw new Error("Method not implemented.")},a({node:a,...et}){return jsxRuntimeExports.jsx("a",{...et,onClick:rt=>{this.linkActions(a.properties.href)&&(rt.preventDefault(),rt.stopPropagation())}})},div(a){const{node:et,className:rt,...ht}=a;if(rt==="rag-files"){const mt=ht["data-repo"];return jsxRuntimeExports.jsx(RAGFileList,{files:a.children.map(dt=>dt.props.children[0]),clickAction:dt=>{this.codeblockActions(PluginCommand.OpenFile,dt,"text",{repo:mt})}})}else return React.createElement("div",ht,a.children)},code({node:a,className:et,...rt}){var jt;const ht=/language-(\w+)/.exec(et||""),mt=ht?ht[1]:"",dt=(jt=a==null?void 0:a.data)==null?void 0:jt.meta,Tt=a.properties.inline==="true",bt=It=>{var Rt;if(dt){const Lt=/{([\d,-]+)}/,zt=(Rt=a.data.meta)==null?void 0:Rt.replace(/\s/g,""),Ut=Lt.test(zt)?Lt.exec(zt)[1]:"0";return{data:rangeParser(Ut).includes(It)?"highlight":null}}else return{}},kt=useTheme(),{text:$t}=useI18n(),Ct=kt==="dark"?prism$1.oneDark:prism$1.oneLight,Ot=replaceLast(rt.children[0],` -`,""),{show:xt,hideAll:Pt}=Fe({id:"CODEBLOCK_CONTEXT_MENU"});function Dt(It){It.stopPropagation(),xt({event:It,props:{key:"value"}})}return Tt?jsxRuntimeExports.jsx("code",{className:et,...skip(rt,"inline")}):jsxRuntimeExports.jsxs(CodeEditor,{onContextMenu:Dt,children:[jsxRuntimeExports.jsxs(CodeEditorActionBar,{children:[mt&&jsxRuntimeExports.jsx(LanguageTag,{children:mt}),jsxRuntimeExports.jsx(IconButton,{icon:"cursor",type:"fade",title:$t.codeblockActions.insertAtCursor,onClick:()=>this.codeblockActions(PluginCommand.InsertCodeAtCaret,getContent(Ot),mt)}),jsxRuntimeExports.jsx(IconButton,{icon:"replace",type:"fade",title:$t.codeblockActions.replaceSelectedCode,onClick:()=>this.codeblockActions(PluginCommand.ReplaceSelectedCode,getContent(Ot),mt)}),jsxRuntimeExports.jsx(IconButton,{icon:"file",type:"fade",title:$t.codeblockActions.createFileWithCode,onClick:()=>this.codeblockActions(PluginCommand.CreateNewFile,getContent(Ot),mt)}),jsxRuntimeExports.jsx(IconButton,{icon:"copy",type:"fade",title:$t.codeblockActions.copyToClipboard,onClick:()=>{var Rt;let It=getContent(Ot);(Rt=navigator==null?void 0:navigator.clipboard)==null||Rt.writeText(It),this.codeblockActions(PluginCommand.CopyCode,It,mt)}})]}),jsxRuntimeExports.jsx(SyntaxHighlighter,{style:Ct,language:mt,PreTag:"div",className:"codeStyle",showLineNumbers:!0,wrapLines:dt,useInlineStyles:!0,lineProps:bt,children:Ot}),jsxRuntimeExports.jsxs(it,{id:"CODEBLOCK_CONTEXT_MENU",theme:kt,animation:!1,children:[jsxRuntimeExports.jsx(pt,{id:"text.codeblockActions.replaceSelectedCode",onClick:()=>{this.codeblockActions(PluginCommand.ReplaceSelectedCode,getContent(Ot),mt),Pt()},children:$t.codeblockActions.replaceSelectedCode}),jsxRuntimeExports.jsx(pt,{id:"text.codeblockActions.insertAtCursor",onClick:()=>{this.codeblockActions(PluginCommand.InsertCodeAtCaret,getContent(Ot),mt),Pt()},children:$t.codeblockActions.insertAtCursor})]})]})}};return o.code=o.code.bind(o),o.div=o.div.bind(o),o.a=o.a.bind(o),o},CodeEditorGen=MarkdownComponents;function rehypeInlineCodeProperty(){return function(o){visit(o,a=>a.tagName==="code",function(a,et,rt){rt&&rt.tagName==="pre"?a.properties.inline="false":a.properties.inline="true"})}}function Markdown({markdown:o,codeblockActions:a,linkActions:et}){const rt=CodeEditorGen();return rt.codeblockActions=a.bind(rt),rt.linkActions=et.bind(rt),jsxRuntimeExports.jsx(ReactMarkdown,{className:"markdown-renderer",children:o,components:rt,rehypePlugins:[rehypeRaw,rehypeInlineCodeProperty]})}const Devpilot="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1698142371454'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1990'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M476.643556%20126.023111v165.930667h56.888888V126.008889z'%20fill='%23D8E2FF'%20p-id='1991'%3e%3c/path%3e%3cpath%20d='M505.088%20119.111111m-62.222222%200a62.222222%2062.222222%200%201%200%20124.444444%200%2062.222222%2062.222222%200%201%200-124.444444%200Z'%20fill='%2300BC70'%20p-id='1992'%3e%3c/path%3e%3cpath%20d='M42.666667%20513.180444h54.513777v179.768889H42.666667a28.444444%2028.444444%200%200%201-28.444445-28.444444v-122.88a28.444444%2028.444444%200%200%201%2028.444445-28.444445z%20m938.666666%200h-54.513777v179.768889H981.333333a28.444444%2028.444444%200%200%200%2028.444445-28.444444v-122.88a28.444444%2028.444444%200%200%200-28.444445-28.444445z'%20fill='%23ABB6D5'%20p-id='1993'%3e%3c/path%3e%3cpath%20d='M926.336%20452.224v22.869333a56.917333%2056.917333%200%200%201%2041.955556%2054.912v126.478223c0%2026.24-17.777778%2048.355556-41.955556%2054.897777v102.442667a113.777778%20113.777778%200%200%201-113.777778%20113.777778H211.441778a113.777778%20113.777778%200%200%201-113.777778-113.777778V711.395556a56.917333%2056.917333%200%200%201-41.955556-54.912v-126.478223c0-26.254222%2017.777778-48.355556%2041.955556-54.897777v-22.883556h828.672zM696.718222%20222.435556c126.819556%200%20229.617778%20102.798222%20229.617778%20229.617777H97.664c0-126.819556%20102.798222-229.617778%20229.617778-229.617777z'%20fill='%23D6E1FF'%20p-id='1994'%3e%3c/path%3e%3cpath%20d='M926.336%20466.446222v22.869334a56.917333%2056.917333%200%200%201%2041.955556%2054.912v126.478222c0%2026.24-17.777778%2048.355556-41.955556%2054.897778v102.442666a113.777778%20113.777778%200%200%201-113.777778%20113.777778H211.441778a113.777778%20113.777778%200%200%201-113.777778-113.777778V725.617778a56.917333%2056.917333%200%200%201-41.955556-54.912v-126.478222c0-26.254222%2017.777778-48.355556%2041.955556-54.897778v-22.883556h828.672zM696.718222%20236.657778c126.819556%200%20229.617778%20102.798222%20229.617778%20229.617778H97.664c0-126.819556%20102.798222-229.617778%20229.617778-229.617778z'%20fill='%23ECF1FF'%20p-id='1995'%3e%3c/path%3e%3cpath%20d='M688.341333%20402.574222c84.522667%200%20153.287111%2067.413333%20155.448889%20151.424l0.056889%204.067556v175.032889a84.280889%2084.280889%200%200%201-84.280889%2084.280889H264.433778a84.280889%2084.280889%200%200%201-84.280889-84.280889V547.555556c0-78.734222%2062.762667-142.805333%20140.970667-144.924445l3.996444-0.042667h60.572444a147.313778%20147.313778%200%200%200%20121.031112%2063.203556c50.119111%200%2094.392889-25.002667%20121.045333-63.203556H688.355556z'%20fill='%23001C3C'%20p-id='1996'%3e%3c/path%3e%3cpath%20d='M389.404444%20395.463111l2.119112%203.043556a140.188444%20140.188444%200%200%200%20115.2%2060.16c46.478222%200%2089.116444-22.755556%20115.214222-60.16l2.133333-3.043556h64.270222c88.220444%200%20160.298667%2070.343111%20162.56%20158.435556l0.056889%204.167111v175.032889a91.392%2091.392%200%200%201-91.392%2091.392H264.433778a91.392%2091.392%200%200%201-91.392-91.392V547.555556c0-82.432%2065.678222-149.802667%20147.996444-152.035556l4.081778-0.042667h64.284444z%20m242.005334%2014.222222l-0.554667%200.782223a154.353778%20154.353778%200%200%201-119.324444%2062.350222l-4.792889%200.071111c-51.185778%200-98.133333-25.059556-126.876445-66.247111l2.190223%203.043555h-56.832l-3.896889%200.042667c-74.524444%202.019556-134.058667%2063.089778-134.058667%20137.813333v185.557334a77.169778%2077.169778%200%200%200%2077.169778%2077.169777h495.132444a77.169778%2077.169778%200%200%200%2077.169778-77.169777v-174.933334l-0.042667-3.982222c-2.076444-80.312889-67.84-144.497778-148.352-144.497778h-56.931555z'%20fill='%23FAFAFA'%20p-id='1997'%3e%3c/path%3e%3cpath%20d='M356.337778%20623.800889a58.865778%2038.129778%2090%201%200%2076.259555%200%2058.865778%2038.129778%2090%201%200-76.259555%200Z'%20fill='%23C6F7FF'%20p-id='1998'%3e%3c/path%3e%3cpath%20d='M591.402667%20623.800889a58.865778%2038.129778%2090%201%200%2076.259555%200%2058.865778%2038.129778%2090%201%200-76.259555%200Z'%20fill='%23C6F7FF'%20p-id='1999'%3e%3c/path%3e%3c/svg%3e",User="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1697185115302'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5398'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2074.666667C270.933333%2074.666667%2074.666667%20270.933333%2074.666667%20512S270.933333%20949.333333%20512%20949.333333%20949.333333%20753.066667%20949.333333%20512%20753.066667%2074.666667%20512%2074.666667z%20m0%20160c70.4%200%20128%2057.6%20128%20128s-57.6%20128-128%20128-128-57.6-128-128%2057.6-128%20128-128z%20m236.8%20507.733333c-23.466667%2032-117.333333%20100.266667-236.8%20100.266667s-213.333333-68.266667-236.8-100.266667c-8.533333-10.666667-10.666667-21.333333-8.533333-32%2029.866667-110.933333%20130.133333-187.733333%20245.333333-187.733333s215.466667%2076.8%20245.333333%20187.733333c2.133333%2010.666667%200%2021.333333-8.533333%2032z'%20fill='%23666666'%20p-id='5399'%3e%3c/path%3e%3c/svg%3e";function Loading(){return jsxRuntimeExports.jsxs("div",{className:"loading",children:[jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{})]})}var dayjs_min={exports:{}},hasRequiredDayjs_min;function requireDayjs_min(){return hasRequiredDayjs_min||(hasRequiredDayjs_min=1,function(o,a){(function(et,rt){o.exports=rt()})(commonjsGlobal,function(){var et=1e3,rt=6e4,ht=36e5,mt="millisecond",dt="second",Tt="minute",bt="hour",kt="day",$t="week",Ct="month",Ot="quarter",xt="year",Pt="date",Dt="Invalid Date",jt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,It=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Rt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(un){var rn=["th","st","nd","rd"],dn=un%100;return"["+un+(rn[(dn-20)%10]||rn[dn]||rn[0])+"]"}},Lt=function(un,rn,dn){var Qt=String(un);return!Qt||Qt.length>=rn?un:""+Array(rn+1-Qt.length).join(dn)+un},zt={s:Lt,z:function(un){var rn=-un.utcOffset(),dn=Math.abs(rn),Qt=Math.floor(dn/60),Kt=dn%60;return(rn<=0?"+":"-")+Lt(Qt,2,"0")+":"+Lt(Kt,2,"0")},m:function un(rn,dn){if(rn.date()1)return un(Gt[0])}else{var sn=rn.name;Mt[sn]=rn,Kt=sn}return!Qt&&Kt&&(Ut=Kt),Kt||!Qt&&Ut},Jt=function(un,rn){if(Vt(un))return un.clone();var dn=typeof rn=="object"?rn:{};return dn.date=un,dn.args=arguments,new ln(dn)},Zt=zt;Zt.l=Xt,Zt.i=Vt,Zt.w=function(un,rn){return Jt(un,{locale:rn.$L,utc:rn.$u,x:rn.$x,$offset:rn.$offset})};var ln=function(){function un(dn){this.$L=Xt(dn.locale,null,!0),this.parse(dn),this.$x=this.$x||dn.x||{},this[Bt]=!0}var rn=un.prototype;return rn.parse=function(dn){this.$d=function(Qt){var Kt=Qt.date,on=Qt.utc;if(Kt===null)return new Date(NaN);if(Zt.u(Kt))return new Date;if(Kt instanceof Date)return new Date(Kt);if(typeof Kt=="string"&&!/Z$/i.test(Kt)){var Gt=Kt.match(jt);if(Gt){var sn=Gt[2]-1||0,nn=(Gt[7]||"0").substring(0,3);return on?new Date(Date.UTC(Gt[1],sn,Gt[3]||1,Gt[4]||0,Gt[5]||0,Gt[6]||0,nn)):new Date(Gt[1],sn,Gt[3]||1,Gt[4]||0,Gt[5]||0,Gt[6]||0,nn)}}return new Date(Kt)}(dn),this.init()},rn.init=function(){var dn=this.$d;this.$y=dn.getFullYear(),this.$M=dn.getMonth(),this.$D=dn.getDate(),this.$W=dn.getDay(),this.$H=dn.getHours(),this.$m=dn.getMinutes(),this.$s=dn.getSeconds(),this.$ms=dn.getMilliseconds()},rn.$utils=function(){return Zt},rn.isValid=function(){return this.$d.toString()!==Dt},rn.isSame=function(dn,Qt){var Kt=Jt(dn);return this.startOf(Qt)<=Kt&&Kt<=this.endOf(Qt)},rn.isAfter=function(dn,Qt){return Jt(dn)0,Mt<=Ut.r||!Ut.r){Mt<=1&&zt>0&&(Ut=Rt[zt-1]);var Bt=It[Ut.l];xt&&(Mt=xt(""+Mt)),Dt=typeof Bt=="string"?Bt.replace("%d",Mt):Bt(Mt,$t,Ut.l,jt);break}}if($t)return Dt;var Vt=jt?It.future:It.past;return typeof Vt=="function"?Vt(Dt):Vt.replace("%s",Dt)},mt.to=function(kt,$t){return Tt(kt,$t,this,!0)},mt.from=function(kt,$t){return Tt(kt,$t,this)};var bt=function(kt){return kt.$u?ht.utc():ht()};mt.toNow=function(kt){return this.to(bt(this),kt)},mt.fromNow=function(kt){return this.from(bt(this),kt)}}})})(relativeTime$1);var relativeTimeExports=relativeTime$1.exports;const relativeTime=getDefaultExportFromCjs(relativeTimeExports);dayjs.extend(relativeTime);dayjs.locale("en");function getRelativeTime(o,a){return typeof o=="number"&&(o=new Date(o)),dayjs.locale(a==="cn"?"zh-cn":"en"),dayjs(o||new Date).fromNow()}const Text=pt$1.span` +`):""},getContent=o=>{const a=getSelectedText();return a&&o.includes(a)?a:o},MarkdownComponents=()=>{const o={codeblockActions(a,et,rt,ht){throw new Error("Method not implemented.")},linkActions(a){throw new Error("Method not implemented.")},a({node:a,...et}){return jsxRuntimeExports.jsx("a",{...et,onClick:rt=>{this.linkActions(a.properties.href)&&(rt.preventDefault(),rt.stopPropagation())}})},div(a){const{node:et,className:rt,...ht}=a;if(rt==="rag-files"&&a.children){const mt=ht["data-repo"];return jsxRuntimeExports.jsx(RAGFileList,{files:a.children.map(dt=>{var Tt;return(Tt=dt.props.children)==null?void 0:Tt[0]}),clickAction:dt=>{this.codeblockActions(PluginCommand.OpenFile,dt,"text",{repo:mt})}})}else return React.createElement("div",ht,a.children)},code({node:a,className:et,...rt}){var jt;const ht=/language-(\w+)/.exec(et||""),mt=ht?ht[1]:"",dt=(jt=a==null?void 0:a.data)==null?void 0:jt.meta,Tt=a.properties.inline==="true",bt=It=>{var Rt;if(dt){const Lt=/{([\d,-]+)}/,zt=(Rt=a.data.meta)==null?void 0:Rt.replace(/\s/g,""),Ut=Lt.test(zt)?Lt.exec(zt)[1]:"0";return{data:rangeParser(Ut).includes(It)?"highlight":null}}else return{}},kt=useTheme(),{text:$t}=useI18n(),Ct=kt==="dark"?prism$1.oneDark:prism$1.oneLight,Ot=replaceLast(rt.children[0],` +`,""),{show:xt,hideAll:Pt}=Fe({id:"CODEBLOCK_CONTEXT_MENU"});function Dt(It){It.stopPropagation(),xt({event:It,props:{key:"value"}})}return Tt?jsxRuntimeExports.jsx("code",{className:et,...skip(rt,"inline")}):jsxRuntimeExports.jsxs(CodeEditor,{onContextMenu:Dt,children:[jsxRuntimeExports.jsxs(CodeEditorActionBar,{children:[mt&&jsxRuntimeExports.jsx(LanguageTag,{children:mt}),jsxRuntimeExports.jsx(IconButton,{icon:"cursor",type:"fade",title:$t.codeblockActions.insertAtCursor,onClick:()=>this.codeblockActions(PluginCommand.InsertCodeAtCaret,getContent(Ot),mt)}),jsxRuntimeExports.jsx(IconButton,{icon:"replace",type:"fade",title:$t.codeblockActions.replaceSelectedCode,onClick:()=>this.codeblockActions(PluginCommand.ReplaceSelectedCode,getContent(Ot),mt)}),jsxRuntimeExports.jsx(IconButton,{icon:"file",type:"fade",title:$t.codeblockActions.createFileWithCode,onClick:()=>this.codeblockActions(PluginCommand.CreateNewFile,getContent(Ot),mt)}),jsxRuntimeExports.jsx(IconButton,{icon:"copy",type:"fade",title:$t.codeblockActions.copyToClipboard,onClick:()=>{var Rt;let It=getContent(Ot);(Rt=navigator==null?void 0:navigator.clipboard)==null||Rt.writeText(It),this.codeblockActions(PluginCommand.CopyCode,It,mt)}})]}),jsxRuntimeExports.jsx(SyntaxHighlighter,{style:Ct,language:mt,PreTag:"div",className:"codeStyle",showLineNumbers:!0,wrapLines:dt,useInlineStyles:!0,lineProps:bt,children:Ot}),jsxRuntimeExports.jsxs(it,{id:"CODEBLOCK_CONTEXT_MENU",theme:kt,animation:!1,children:[jsxRuntimeExports.jsx(pt,{id:"text.codeblockActions.replaceSelectedCode",onClick:()=>{this.codeblockActions(PluginCommand.ReplaceSelectedCode,getContent(Ot),mt),Pt()},children:$t.codeblockActions.replaceSelectedCode}),jsxRuntimeExports.jsx(pt,{id:"text.codeblockActions.insertAtCursor",onClick:()=>{this.codeblockActions(PluginCommand.InsertCodeAtCaret,getContent(Ot),mt),Pt()},children:$t.codeblockActions.insertAtCursor})]})]})}};return o.code=o.code.bind(o),o.div=o.div.bind(o),o.a=o.a.bind(o),o},CodeEditorGen=MarkdownComponents;function rehypeInlineCodeProperty(){return function(o){visit(o,a=>a.tagName==="code",function(a,et,rt){rt&&rt.tagName==="pre"?a.properties.inline="false":a.properties.inline="true"})}}function Markdown({markdown:o,codeblockActions:a,linkActions:et}){const rt=CodeEditorGen();return rt.codeblockActions=a.bind(rt),rt.linkActions=et.bind(rt),jsxRuntimeExports.jsx(ReactMarkdown,{className:"markdown-renderer",children:o,components:rt,rehypePlugins:[rehypeRaw,rehypeInlineCodeProperty]})}const Devpilot="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1698142371454'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1990'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M476.643556%20126.023111v165.930667h56.888888V126.008889z'%20fill='%23D8E2FF'%20p-id='1991'%3e%3c/path%3e%3cpath%20d='M505.088%20119.111111m-62.222222%200a62.222222%2062.222222%200%201%200%20124.444444%200%2062.222222%2062.222222%200%201%200-124.444444%200Z'%20fill='%2300BC70'%20p-id='1992'%3e%3c/path%3e%3cpath%20d='M42.666667%20513.180444h54.513777v179.768889H42.666667a28.444444%2028.444444%200%200%201-28.444445-28.444444v-122.88a28.444444%2028.444444%200%200%201%2028.444445-28.444445z%20m938.666666%200h-54.513777v179.768889H981.333333a28.444444%2028.444444%200%200%200%2028.444445-28.444444v-122.88a28.444444%2028.444444%200%200%200-28.444445-28.444445z'%20fill='%23ABB6D5'%20p-id='1993'%3e%3c/path%3e%3cpath%20d='M926.336%20452.224v22.869333a56.917333%2056.917333%200%200%201%2041.955556%2054.912v126.478223c0%2026.24-17.777778%2048.355556-41.955556%2054.897777v102.442667a113.777778%20113.777778%200%200%201-113.777778%20113.777778H211.441778a113.777778%20113.777778%200%200%201-113.777778-113.777778V711.395556a56.917333%2056.917333%200%200%201-41.955556-54.912v-126.478223c0-26.254222%2017.777778-48.355556%2041.955556-54.897777v-22.883556h828.672zM696.718222%20222.435556c126.819556%200%20229.617778%20102.798222%20229.617778%20229.617777H97.664c0-126.819556%20102.798222-229.617778%20229.617778-229.617777z'%20fill='%23D6E1FF'%20p-id='1994'%3e%3c/path%3e%3cpath%20d='M926.336%20466.446222v22.869334a56.917333%2056.917333%200%200%201%2041.955556%2054.912v126.478222c0%2026.24-17.777778%2048.355556-41.955556%2054.897778v102.442666a113.777778%20113.777778%200%200%201-113.777778%20113.777778H211.441778a113.777778%20113.777778%200%200%201-113.777778-113.777778V725.617778a56.917333%2056.917333%200%200%201-41.955556-54.912v-126.478222c0-26.254222%2017.777778-48.355556%2041.955556-54.897778v-22.883556h828.672zM696.718222%20236.657778c126.819556%200%20229.617778%20102.798222%20229.617778%20229.617778H97.664c0-126.819556%20102.798222-229.617778%20229.617778-229.617778z'%20fill='%23ECF1FF'%20p-id='1995'%3e%3c/path%3e%3cpath%20d='M688.341333%20402.574222c84.522667%200%20153.287111%2067.413333%20155.448889%20151.424l0.056889%204.067556v175.032889a84.280889%2084.280889%200%200%201-84.280889%2084.280889H264.433778a84.280889%2084.280889%200%200%201-84.280889-84.280889V547.555556c0-78.734222%2062.762667-142.805333%20140.970667-144.924445l3.996444-0.042667h60.572444a147.313778%20147.313778%200%200%200%20121.031112%2063.203556c50.119111%200%2094.392889-25.002667%20121.045333-63.203556H688.355556z'%20fill='%23001C3C'%20p-id='1996'%3e%3c/path%3e%3cpath%20d='M389.404444%20395.463111l2.119112%203.043556a140.188444%20140.188444%200%200%200%20115.2%2060.16c46.478222%200%2089.116444-22.755556%20115.214222-60.16l2.133333-3.043556h64.270222c88.220444%200%20160.298667%2070.343111%20162.56%20158.435556l0.056889%204.167111v175.032889a91.392%2091.392%200%200%201-91.392%2091.392H264.433778a91.392%2091.392%200%200%201-91.392-91.392V547.555556c0-82.432%2065.678222-149.802667%20147.996444-152.035556l4.081778-0.042667h64.284444z%20m242.005334%2014.222222l-0.554667%200.782223a154.353778%20154.353778%200%200%201-119.324444%2062.350222l-4.792889%200.071111c-51.185778%200-98.133333-25.059556-126.876445-66.247111l2.190223%203.043555h-56.832l-3.896889%200.042667c-74.524444%202.019556-134.058667%2063.089778-134.058667%20137.813333v185.557334a77.169778%2077.169778%200%200%200%2077.169778%2077.169777h495.132444a77.169778%2077.169778%200%200%200%2077.169778-77.169777v-174.933334l-0.042667-3.982222c-2.076444-80.312889-67.84-144.497778-148.352-144.497778h-56.931555z'%20fill='%23FAFAFA'%20p-id='1997'%3e%3c/path%3e%3cpath%20d='M356.337778%20623.800889a58.865778%2038.129778%2090%201%200%2076.259555%200%2058.865778%2038.129778%2090%201%200-76.259555%200Z'%20fill='%23C6F7FF'%20p-id='1998'%3e%3c/path%3e%3cpath%20d='M591.402667%20623.800889a58.865778%2038.129778%2090%201%200%2076.259555%200%2058.865778%2038.129778%2090%201%200-76.259555%200Z'%20fill='%23C6F7FF'%20p-id='1999'%3e%3c/path%3e%3c/svg%3e",User="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1697185115302'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5398'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='16'%20height='16'%3e%3cpath%20d='M512%2074.666667C270.933333%2074.666667%2074.666667%20270.933333%2074.666667%20512S270.933333%20949.333333%20512%20949.333333%20949.333333%20753.066667%20949.333333%20512%20753.066667%2074.666667%20512%2074.666667z%20m0%20160c70.4%200%20128%2057.6%20128%20128s-57.6%20128-128%20128-128-57.6-128-128%2057.6-128%20128-128z%20m236.8%20507.733333c-23.466667%2032-117.333333%20100.266667-236.8%20100.266667s-213.333333-68.266667-236.8-100.266667c-8.533333-10.666667-10.666667-21.333333-8.533333-32%2029.866667-110.933333%20130.133333-187.733333%20245.333333-187.733333s215.466667%2076.8%20245.333333%20187.733333c2.133333%2010.666667%200%2021.333333-8.533333%2032z'%20fill='%23666666'%20p-id='5399'%3e%3c/path%3e%3c/svg%3e";function Loading(){return jsxRuntimeExports.jsxs("div",{className:"loading",children:[jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{})]})}var dayjs_min={exports:{}};(function(o,a){(function(et,rt){o.exports=rt()})(commonjsGlobal,function(){var et=1e3,rt=6e4,ht=36e5,mt="millisecond",dt="second",Tt="minute",bt="hour",kt="day",$t="week",Ct="month",Ot="quarter",xt="year",Pt="date",Dt="Invalid Date",jt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,It=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Rt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(un){var rn=["th","st","nd","rd"],dn=un%100;return"["+un+(rn[(dn-20)%10]||rn[dn]||rn[0])+"]"}},Lt=function(un,rn,dn){var Qt=String(un);return!Qt||Qt.length>=rn?un:""+Array(rn+1-Qt.length).join(dn)+un},zt={s:Lt,z:function(un){var rn=-un.utcOffset(),dn=Math.abs(rn),Qt=Math.floor(dn/60),Kt=dn%60;return(rn<=0?"+":"-")+Lt(Qt,2,"0")+":"+Lt(Kt,2,"0")},m:function un(rn,dn){if(rn.date()1)return un(Gt[0])}else{var sn=rn.name;Mt[sn]=rn,Kt=sn}return!Qt&&Kt&&(Ut=Kt),Kt||!Qt&&Ut},Jt=function(un,rn){if(Vt(un))return un.clone();var dn=typeof rn=="object"?rn:{};return dn.date=un,dn.args=arguments,new ln(dn)},Zt=zt;Zt.l=Xt,Zt.i=Vt,Zt.w=function(un,rn){return Jt(un,{locale:rn.$L,utc:rn.$u,x:rn.$x,$offset:rn.$offset})};var ln=function(){function un(dn){this.$L=Xt(dn.locale,null,!0),this.parse(dn),this.$x=this.$x||dn.x||{},this[Bt]=!0}var rn=un.prototype;return rn.parse=function(dn){this.$d=function(Qt){var Kt=Qt.date,on=Qt.utc;if(Kt===null)return new Date(NaN);if(Zt.u(Kt))return new Date;if(Kt instanceof Date)return new Date(Kt);if(typeof Kt=="string"&&!/Z$/i.test(Kt)){var Gt=Kt.match(jt);if(Gt){var sn=Gt[2]-1||0,nn=(Gt[7]||"0").substring(0,3);return on?new Date(Date.UTC(Gt[1],sn,Gt[3]||1,Gt[4]||0,Gt[5]||0,Gt[6]||0,nn)):new Date(Gt[1],sn,Gt[3]||1,Gt[4]||0,Gt[5]||0,Gt[6]||0,nn)}}return new Date(Kt)}(dn),this.init()},rn.init=function(){var dn=this.$d;this.$y=dn.getFullYear(),this.$M=dn.getMonth(),this.$D=dn.getDate(),this.$W=dn.getDay(),this.$H=dn.getHours(),this.$m=dn.getMinutes(),this.$s=dn.getSeconds(),this.$ms=dn.getMilliseconds()},rn.$utils=function(){return Zt},rn.isValid=function(){return this.$d.toString()!==Dt},rn.isSame=function(dn,Qt){var Kt=Jt(dn);return this.startOf(Qt)<=Kt&&Kt<=this.endOf(Qt)},rn.isAfter=function(dn,Qt){return Jt(dn)0,Mt<=Ut.r||!Ut.r){Mt<=1&&zt>0&&(Ut=Rt[zt-1]);var Bt=It[Ut.l];xt&&(Mt=xt(""+Mt)),Dt=typeof Bt=="string"?Bt.replace("%d",Mt):Bt(Mt,$t,Ut.l,jt);break}}if($t)return Dt;var Vt=jt?It.future:It.past;return typeof Vt=="function"?Vt(Dt):Vt.replace("%s",Dt)},mt.to=function(kt,$t){return Tt(kt,$t,this,!0)},mt.from=function(kt,$t){return Tt(kt,$t,this)};var bt=function(kt){return kt.$u?ht.utc():ht()};mt.toNow=function(kt){return this.to(bt(this),kt)},mt.fromNow=function(kt){return this.from(bt(this),kt)}}})})(relativeTime$1);var relativeTimeExports=relativeTime$1.exports;const relativeTime=getDefaultExportFromCjs(relativeTimeExports);dayjs.extend(relativeTime);dayjs.locale("en");function getRelativeTime(o,a){return typeof o=="number"&&(o=new Date(o)),dayjs.locale(a==="cn"?"zh-cn":"en"),dayjs(o||new Date).fromNow()}const Text=pt$1.span` color: ${o=>o.theme.textFaint}; white-space: nowrap; font-size: 12px;